1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.69 for Gource 0.51.
4#
5# Report bugs to <acaudwell@gmail.com>.
6#
7#
8# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
9#
10#
11# This configure script is free software; the Free Software Foundation
12# gives unlimited permission to copy, distribute and modify it.
13## -------------------- ##
14## M4sh Initialization. ##
15## -------------------- ##
16
17# Be more Bourne compatible
18DUALCASE=1; export DUALCASE # for MKS sh
19if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20  emulate sh
21  NULLCMD=:
22  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23  # is contrary to our usage.  Disable this feature.
24  alias -g '${1+"$@"}'='"$@"'
25  setopt NO_GLOB_SUBST
26else
27  case `(set -o) 2>/dev/null` in #(
28  *posix*) :
29    set -o posix ;; #(
30  *) :
31     ;;
32esac
33fi
34
35
36as_nl='
37'
38export as_nl
39# Printing a long string crashes Solaris 7 /usr/bin/printf.
40as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43# Prefer a ksh shell builtin over an external printf program on Solaris,
44# but without wasting forks for bash or zsh.
45if test -z "$BASH_VERSION$ZSH_VERSION" \
46    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
47  as_echo='print -r --'
48  as_echo_n='print -rn --'
49elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50  as_echo='printf %s\n'
51  as_echo_n='printf %s'
52else
53  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55    as_echo_n='/usr/ucb/echo -n'
56  else
57    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58    as_echo_n_body='eval
59      arg=$1;
60      case $arg in #(
61      *"$as_nl"*)
62	expr "X$arg" : "X\\(.*\\)$as_nl";
63	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64      esac;
65      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66    '
67    export as_echo_n_body
68    as_echo_n='sh -c $as_echo_n_body as_echo'
69  fi
70  export as_echo_body
71  as_echo='sh -c $as_echo_body as_echo'
72fi
73
74# The user is always right.
75if test "${PATH_SEPARATOR+set}" != set; then
76  PATH_SEPARATOR=:
77  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79      PATH_SEPARATOR=';'
80  }
81fi
82
83
84# IFS
85# We need space, tab and new line, in precisely that order.  Quoting is
86# there to prevent editors from complaining about space-tab.
87# (If _AS_PATH_WALK were called with IFS unset, it would disable word
88# splitting by setting IFS to empty value.)
89IFS=" ""	$as_nl"
90
91# Find who we are.  Look in the path if we contain no directory separator.
92as_myself=
93case $0 in #((
94  *[\\/]* ) as_myself=$0 ;;
95  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
96for as_dir in $PATH
97do
98  IFS=$as_save_IFS
99  test -z "$as_dir" && as_dir=.
100    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
101  done
102IFS=$as_save_IFS
103
104     ;;
105esac
106# We did not find ourselves, most probably we were run as `sh COMMAND'
107# in which case we are not to be found in the path.
108if test "x$as_myself" = x; then
109  as_myself=$0
110fi
111if test ! -f "$as_myself"; then
112  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113  exit 1
114fi
115
116# Unset variables that we do not need and which cause bugs (e.g. in
117# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
118# suppresses any "Segmentation fault" message there.  '((' could
119# trigger a bug in pdksh 5.2.14.
120for as_var in BASH_ENV ENV MAIL MAILPATH
121do eval test x\${$as_var+set} = xset \
122  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
123done
124PS1='$ '
125PS2='> '
126PS4='+ '
127
128# NLS nuisances.
129LC_ALL=C
130export LC_ALL
131LANGUAGE=C
132export LANGUAGE
133
134# CDPATH.
135(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
136
137# Use a proper internal environment variable to ensure we don't fall
138  # into an infinite loop, continuously re-executing ourselves.
139  if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
140    _as_can_reexec=no; export _as_can_reexec;
141    # We cannot yet assume a decent shell, so we have to provide a
142# neutralization value for shells without unset; and this also
143# works around shells that cannot unset nonexistent variables.
144# Preserve -v and -x to the replacement shell.
145BASH_ENV=/dev/null
146ENV=/dev/null
147(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
148case $- in # ((((
149  *v*x* | *x*v* ) as_opts=-vx ;;
150  *v* ) as_opts=-v ;;
151  *x* ) as_opts=-x ;;
152  * ) as_opts= ;;
153esac
154exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
155# Admittedly, this is quite paranoid, since all the known shells bail
156# out after a failed `exec'.
157$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
158as_fn_exit 255
159  fi
160  # We don't want this to propagate to other subprocesses.
161          { _as_can_reexec=; unset _as_can_reexec;}
162if test "x$CONFIG_SHELL" = x; then
163  as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
164  emulate sh
165  NULLCMD=:
166  # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
167  # is contrary to our usage.  Disable this feature.
168  alias -g '\${1+\"\$@\"}'='\"\$@\"'
169  setopt NO_GLOB_SUBST
170else
171  case \`(set -o) 2>/dev/null\` in #(
172  *posix*) :
173    set -o posix ;; #(
174  *) :
175     ;;
176esac
177fi
178"
179  as_required="as_fn_return () { (exit \$1); }
180as_fn_success () { as_fn_return 0; }
181as_fn_failure () { as_fn_return 1; }
182as_fn_ret_success () { return 0; }
183as_fn_ret_failure () { return 1; }
184
185exitcode=0
186as_fn_success || { exitcode=1; echo as_fn_success failed.; }
187as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
188as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
189as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
190if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
191
192else
193  exitcode=1; echo positional parameters were not saved.
194fi
195test x\$exitcode = x0 || exit 1
196test -x / || exit 1"
197  as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
198  as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
199  eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
200  test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
201test \$(( 1 + 1 )) = 2 || exit 1"
202  if (eval "$as_required") 2>/dev/null; then :
203  as_have_required=yes
204else
205  as_have_required=no
206fi
207  if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
208
209else
210  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
211as_found=false
212for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
213do
214  IFS=$as_save_IFS
215  test -z "$as_dir" && as_dir=.
216  as_found=:
217  case $as_dir in #(
218	 /*)
219	   for as_base in sh bash ksh sh5; do
220	     # Try only shells that exist, to save several forks.
221	     as_shell=$as_dir/$as_base
222	     if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
223		    { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
224  CONFIG_SHELL=$as_shell as_have_required=yes
225		   if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
226  break 2
227fi
228fi
229	   done;;
230       esac
231  as_found=false
232done
233$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
234	      { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
235  CONFIG_SHELL=$SHELL as_have_required=yes
236fi; }
237IFS=$as_save_IFS
238
239
240      if test "x$CONFIG_SHELL" != x; then :
241  export CONFIG_SHELL
242             # We cannot yet assume a decent shell, so we have to provide a
243# neutralization value for shells without unset; and this also
244# works around shells that cannot unset nonexistent variables.
245# Preserve -v and -x to the replacement shell.
246BASH_ENV=/dev/null
247ENV=/dev/null
248(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
249case $- in # ((((
250  *v*x* | *x*v* ) as_opts=-vx ;;
251  *v* ) as_opts=-v ;;
252  *x* ) as_opts=-x ;;
253  * ) as_opts= ;;
254esac
255exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
256# Admittedly, this is quite paranoid, since all the known shells bail
257# out after a failed `exec'.
258$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
259exit 255
260fi
261
262    if test x$as_have_required = xno; then :
263  $as_echo "$0: This script requires a shell more modern than all"
264  $as_echo "$0: the shells that I found on your system."
265  if test x${ZSH_VERSION+set} = xset ; then
266    $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
267    $as_echo "$0: be upgraded to zsh 4.3.4 or later."
268  else
269    $as_echo "$0: Please tell bug-autoconf@gnu.org and
270$0: acaudwell@gmail.com about your system, including any
271$0: error possibly output before this message. Then install
272$0: a modern shell, or manually run the script under such a
273$0: shell if you do have one."
274  fi
275  exit 1
276fi
277fi
278fi
279SHELL=${CONFIG_SHELL-/bin/sh}
280export SHELL
281# Unset more variables known to interfere with behavior of common tools.
282CLICOLOR_FORCE= GREP_OPTIONS=
283unset CLICOLOR_FORCE GREP_OPTIONS
284
285## --------------------- ##
286## M4sh Shell Functions. ##
287## --------------------- ##
288# as_fn_unset VAR
289# ---------------
290# Portably unset VAR.
291as_fn_unset ()
292{
293  { eval $1=; unset $1;}
294}
295as_unset=as_fn_unset
296
297# as_fn_set_status STATUS
298# -----------------------
299# Set $? to STATUS, without forking.
300as_fn_set_status ()
301{
302  return $1
303} # as_fn_set_status
304
305# as_fn_exit STATUS
306# -----------------
307# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
308as_fn_exit ()
309{
310  set +e
311  as_fn_set_status $1
312  exit $1
313} # as_fn_exit
314
315# as_fn_mkdir_p
316# -------------
317# Create "$as_dir" as a directory, including parents if necessary.
318as_fn_mkdir_p ()
319{
320
321  case $as_dir in #(
322  -*) as_dir=./$as_dir;;
323  esac
324  test -d "$as_dir" || eval $as_mkdir_p || {
325    as_dirs=
326    while :; do
327      case $as_dir in #(
328      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
329      *) as_qdir=$as_dir;;
330      esac
331      as_dirs="'$as_qdir' $as_dirs"
332      as_dir=`$as_dirname -- "$as_dir" ||
333$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
334	 X"$as_dir" : 'X\(//\)[^/]' \| \
335	 X"$as_dir" : 'X\(//\)$' \| \
336	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
337$as_echo X"$as_dir" |
338    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
339	    s//\1/
340	    q
341	  }
342	  /^X\(\/\/\)[^/].*/{
343	    s//\1/
344	    q
345	  }
346	  /^X\(\/\/\)$/{
347	    s//\1/
348	    q
349	  }
350	  /^X\(\/\).*/{
351	    s//\1/
352	    q
353	  }
354	  s/.*/./; q'`
355      test -d "$as_dir" && break
356    done
357    test -z "$as_dirs" || eval "mkdir $as_dirs"
358  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
359
360
361} # as_fn_mkdir_p
362
363# as_fn_executable_p FILE
364# -----------------------
365# Test if FILE is an executable regular file.
366as_fn_executable_p ()
367{
368  test -f "$1" && test -x "$1"
369} # as_fn_executable_p
370# as_fn_append VAR VALUE
371# ----------------------
372# Append the text in VALUE to the end of the definition contained in VAR. Take
373# advantage of any shell optimizations that allow amortized linear growth over
374# repeated appends, instead of the typical quadratic growth present in naive
375# implementations.
376if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
377  eval 'as_fn_append ()
378  {
379    eval $1+=\$2
380  }'
381else
382  as_fn_append ()
383  {
384    eval $1=\$$1\$2
385  }
386fi # as_fn_append
387
388# as_fn_arith ARG...
389# ------------------
390# Perform arithmetic evaluation on the ARGs, and store the result in the
391# global $as_val. Take advantage of shells that can avoid forks. The arguments
392# must be portable across $(()) and expr.
393if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
394  eval 'as_fn_arith ()
395  {
396    as_val=$(( $* ))
397  }'
398else
399  as_fn_arith ()
400  {
401    as_val=`expr "$@" || test $? -eq 1`
402  }
403fi # as_fn_arith
404
405
406# as_fn_error STATUS ERROR [LINENO LOG_FD]
407# ----------------------------------------
408# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
409# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
410# script with STATUS, using 1 if that was 0.
411as_fn_error ()
412{
413  as_status=$1; test $as_status -eq 0 && as_status=1
414  if test "$4"; then
415    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
416    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
417  fi
418  $as_echo "$as_me: error: $2" >&2
419  as_fn_exit $as_status
420} # as_fn_error
421
422if expr a : '\(a\)' >/dev/null 2>&1 &&
423   test "X`expr 00001 : '.*\(...\)'`" = X001; then
424  as_expr=expr
425else
426  as_expr=false
427fi
428
429if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
430  as_basename=basename
431else
432  as_basename=false
433fi
434
435if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
436  as_dirname=dirname
437else
438  as_dirname=false
439fi
440
441as_me=`$as_basename -- "$0" ||
442$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
443	 X"$0" : 'X\(//\)$' \| \
444	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
445$as_echo X/"$0" |
446    sed '/^.*\/\([^/][^/]*\)\/*$/{
447	    s//\1/
448	    q
449	  }
450	  /^X\/\(\/\/\)$/{
451	    s//\1/
452	    q
453	  }
454	  /^X\/\(\/\).*/{
455	    s//\1/
456	    q
457	  }
458	  s/.*/./; q'`
459
460# Avoid depending upon Character Ranges.
461as_cr_letters='abcdefghijklmnopqrstuvwxyz'
462as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
463as_cr_Letters=$as_cr_letters$as_cr_LETTERS
464as_cr_digits='0123456789'
465as_cr_alnum=$as_cr_Letters$as_cr_digits
466
467
468  as_lineno_1=$LINENO as_lineno_1a=$LINENO
469  as_lineno_2=$LINENO as_lineno_2a=$LINENO
470  eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
471  test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
472  # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
473  sed -n '
474    p
475    /[$]LINENO/=
476  ' <$as_myself |
477    sed '
478      s/[$]LINENO.*/&-/
479      t lineno
480      b
481      :lineno
482      N
483      :loop
484      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
485      t loop
486      s/-\n.*//
487    ' >$as_me.lineno &&
488  chmod +x "$as_me.lineno" ||
489    { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
490
491  # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
492  # already done that, so ensure we don't try to do so again and fall
493  # in an infinite loop.  This has already happened in practice.
494  _as_can_reexec=no; export _as_can_reexec
495  # Don't try to exec as it changes $[0], causing all sort of problems
496  # (the dirname of $[0] is not the place where we might find the
497  # original and so on.  Autoconf is especially sensitive to this).
498  . "./$as_me.lineno"
499  # Exit status is that of the last command.
500  exit
501}
502
503ECHO_C= ECHO_N= ECHO_T=
504case `echo -n x` in #(((((
505-n*)
506  case `echo 'xy\c'` in
507  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
508  xy)  ECHO_C='\c';;
509  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
510       ECHO_T='	';;
511  esac;;
512*)
513  ECHO_N='-n';;
514esac
515
516rm -f conf$$ conf$$.exe conf$$.file
517if test -d conf$$.dir; then
518  rm -f conf$$.dir/conf$$.file
519else
520  rm -f conf$$.dir
521  mkdir conf$$.dir 2>/dev/null
522fi
523if (echo >conf$$.file) 2>/dev/null; then
524  if ln -s conf$$.file conf$$ 2>/dev/null; then
525    as_ln_s='ln -s'
526    # ... but there are two gotchas:
527    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
528    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
529    # In both cases, we have to default to `cp -pR'.
530    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
531      as_ln_s='cp -pR'
532  elif ln conf$$.file conf$$ 2>/dev/null; then
533    as_ln_s=ln
534  else
535    as_ln_s='cp -pR'
536  fi
537else
538  as_ln_s='cp -pR'
539fi
540rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
541rmdir conf$$.dir 2>/dev/null
542
543if mkdir -p . 2>/dev/null; then
544  as_mkdir_p='mkdir -p "$as_dir"'
545else
546  test -d ./-p && rmdir ./-p
547  as_mkdir_p=false
548fi
549
550as_test_x='test -x'
551as_executable_p=as_fn_executable_p
552
553# Sed expression to map a string onto a valid CPP name.
554as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
555
556# Sed expression to map a string onto a valid variable name.
557as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
558
559
560test -n "$DJDIR" || exec 7<&0 </dev/null
561exec 6>&1
562
563# Name of the host.
564# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
565# so uname gets run too.
566ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
567
568#
569# Initializations.
570#
571ac_default_prefix=/usr/local
572ac_clean_files=
573ac_config_libobj_dir=.
574LIBOBJS=
575cross_compiling=no
576subdirs=
577MFLAGS=
578MAKEFLAGS=
579
580# Identity of this package.
581PACKAGE_NAME='Gource'
582PACKAGE_TARNAME='gource'
583PACKAGE_VERSION='0.51'
584PACKAGE_STRING='Gource 0.51'
585PACKAGE_BUGREPORT='acaudwell@gmail.com'
586PACKAGE_URL=''
587
588ac_unique_file="src/main.h"
589# Factoring default headers for most tests.
590ac_includes_default="\
591#include <stdio.h>
592#ifdef HAVE_SYS_TYPES_H
593# include <sys/types.h>
594#endif
595#ifdef HAVE_SYS_STAT_H
596# include <sys/stat.h>
597#endif
598#ifdef STDC_HEADERS
599# include <stdlib.h>
600# include <stddef.h>
601#else
602# ifdef HAVE_STDLIB_H
603#  include <stdlib.h>
604# endif
605#endif
606#ifdef HAVE_STRING_H
607# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
608#  include <memory.h>
609# endif
610# include <string.h>
611#endif
612#ifdef HAVE_STRINGS_H
613# include <strings.h>
614#endif
615#ifdef HAVE_INTTYPES_H
616# include <inttypes.h>
617#endif
618#ifdef HAVE_STDINT_H
619# include <stdint.h>
620#endif
621#ifdef HAVE_UNISTD_H
622# include <unistd.h>
623#endif"
624
625ac_subst_vars='am__EXEEXT_FALSE
626am__EXEEXT_TRUE
627LTLIBOBJS
628LIBOBJS
629USE_BUNDLED_TINYXML_FALSE
630USE_BUNDLED_TINYXML_TRUE
631gourcefontdir
632FONTDIR_FALSE
633FONTDIR_TRUE
634gourcefontfile
635FONTFILE_FALSE
636FONTFILE_TRUE
637BOOST_FILESYSTEM_LIB
638BOOST_SYSTEM_LIB
639BOOST_LDFLAGS
640BOOST_CPPFLAGS
641PNG_LIBS
642PNG_CFLAGS
643SDL2_LIBS
644SDL2_CFLAGS
645GLEW_LIBS
646GLEW_CFLAGS
647PCRE_LIBS
648PCRE_CFLAGS
649FT2_LIBS
650FT2_CFLAGS
651PKG_CONFIG
652GLU_LIBS
653GLU_CFLAGS
654GL_LIBS
655GL_CFLAGS
656EGREP
657GREP
658CPP
659PTHREAD_CFLAGS
660PTHREAD_LIBS
661PTHREAD_CC
662ax_pthread_config
663am__fastdepCC_FALSE
664am__fastdepCC_TRUE
665CCDEPMODE
666ac_ct_CC
667CFLAGS
668CC
669SED
670CXXCPP
671XMKMF
672am__fastdepCXX_FALSE
673am__fastdepCXX_TRUE
674CXXDEPMODE
675am__nodep
676AMDEPBACKSLASH
677AMDEP_FALSE
678AMDEP_TRUE
679am__quote
680am__include
681DEPDIR
682OBJEXT
683EXEEXT
684ac_ct_CXX
685CPPFLAGS
686LDFLAGS
687CXXFLAGS
688CXX
689host_os
690host_vendor
691host_cpu
692host
693build_os
694build_vendor
695build_cpu
696build
697AM_BACKSLASH
698AM_DEFAULT_VERBOSITY
699AM_DEFAULT_V
700AM_V
701am__untar
702am__tar
703AMTAR
704am__leading_dot
705SET_MAKE
706AWK
707mkdir_p
708MKDIR_P
709INSTALL_STRIP_PROGRAM
710STRIP
711install_sh
712MAKEINFO
713AUTOHEADER
714AUTOMAKE
715AUTOCONF
716ACLOCAL
717VERSION
718PACKAGE
719CYGPATH_W
720am__isrc
721INSTALL_DATA
722INSTALL_SCRIPT
723INSTALL_PROGRAM
724target_alias
725host_alias
726build_alias
727LIBS
728ECHO_T
729ECHO_N
730ECHO_C
731DEFS
732mandir
733localedir
734libdir
735psdir
736pdfdir
737dvidir
738htmldir
739infodir
740docdir
741oldincludedir
742includedir
743runstatedir
744localstatedir
745sharedstatedir
746sysconfdir
747datadir
748datarootdir
749libexecdir
750sbindir
751bindir
752program_transform_name
753prefix
754exec_prefix
755PACKAGE_URL
756PACKAGE_BUGREPORT
757PACKAGE_STRING
758PACKAGE_VERSION
759PACKAGE_TARNAME
760PACKAGE_NAME
761PATH_SEPARATOR
762SHELL'
763ac_subst_files=''
764ac_user_opts='
765enable_option_checking
766enable_silent_rules
767enable_dependency_tracking
768with_x
769with_boost
770with_boost_libdir
771with_boost_system
772with_boost_filesystem
773enable_font_file
774enable_ttf_font_dir
775with_tinyxml
776'
777      ac_precious_vars='build_alias
778host_alias
779target_alias
780CXX
781CXXFLAGS
782LDFLAGS
783LIBS
784CPPFLAGS
785CCC
786XMKMF
787CXXCPP
788CC
789CFLAGS
790CPP
791PKG_CONFIG
792FT2_CFLAGS
793FT2_LIBS
794PCRE_CFLAGS
795PCRE_LIBS
796GLEW_CFLAGS
797GLEW_LIBS
798SDL2_CFLAGS
799SDL2_LIBS
800PNG_CFLAGS
801PNG_LIBS'
802
803
804# Initialize some variables set by options.
805ac_init_help=
806ac_init_version=false
807ac_unrecognized_opts=
808ac_unrecognized_sep=
809# The variables have the same names as the options, with
810# dashes changed to underlines.
811cache_file=/dev/null
812exec_prefix=NONE
813no_create=
814no_recursion=
815prefix=NONE
816program_prefix=NONE
817program_suffix=NONE
818program_transform_name=s,x,x,
819silent=
820site=
821srcdir=
822verbose=
823x_includes=NONE
824x_libraries=NONE
825
826# Installation directory options.
827# These are left unexpanded so users can "make install exec_prefix=/foo"
828# and all the variables that are supposed to be based on exec_prefix
829# by default will actually change.
830# Use braces instead of parens because sh, perl, etc. also accept them.
831# (The list follows the same order as the GNU Coding Standards.)
832bindir='${exec_prefix}/bin'
833sbindir='${exec_prefix}/sbin'
834libexecdir='${exec_prefix}/libexec'
835datarootdir='${prefix}/share'
836datadir='${datarootdir}'
837sysconfdir='${prefix}/etc'
838sharedstatedir='${prefix}/com'
839localstatedir='${prefix}/var'
840runstatedir='${localstatedir}/run'
841includedir='${prefix}/include'
842oldincludedir='/usr/include'
843docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
844infodir='${datarootdir}/info'
845htmldir='${docdir}'
846dvidir='${docdir}'
847pdfdir='${docdir}'
848psdir='${docdir}'
849libdir='${exec_prefix}/lib'
850localedir='${datarootdir}/locale'
851mandir='${datarootdir}/man'
852
853ac_prev=
854ac_dashdash=
855for ac_option
856do
857  # If the previous option needs an argument, assign it.
858  if test -n "$ac_prev"; then
859    eval $ac_prev=\$ac_option
860    ac_prev=
861    continue
862  fi
863
864  case $ac_option in
865  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
866  *=)   ac_optarg= ;;
867  *)    ac_optarg=yes ;;
868  esac
869
870  # Accept the important Cygnus configure options, so we can diagnose typos.
871
872  case $ac_dashdash$ac_option in
873  --)
874    ac_dashdash=yes ;;
875
876  -bindir | --bindir | --bindi | --bind | --bin | --bi)
877    ac_prev=bindir ;;
878  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
879    bindir=$ac_optarg ;;
880
881  -build | --build | --buil | --bui | --bu)
882    ac_prev=build_alias ;;
883  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
884    build_alias=$ac_optarg ;;
885
886  -cache-file | --cache-file | --cache-fil | --cache-fi \
887  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
888    ac_prev=cache_file ;;
889  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
890  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
891    cache_file=$ac_optarg ;;
892
893  --config-cache | -C)
894    cache_file=config.cache ;;
895
896  -datadir | --datadir | --datadi | --datad)
897    ac_prev=datadir ;;
898  -datadir=* | --datadir=* | --datadi=* | --datad=*)
899    datadir=$ac_optarg ;;
900
901  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
902  | --dataroo | --dataro | --datar)
903    ac_prev=datarootdir ;;
904  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
905  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
906    datarootdir=$ac_optarg ;;
907
908  -disable-* | --disable-*)
909    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
910    # Reject names that are not valid shell variable names.
911    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
912      as_fn_error $? "invalid feature name: $ac_useropt"
913    ac_useropt_orig=$ac_useropt
914    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
915    case $ac_user_opts in
916      *"
917"enable_$ac_useropt"
918"*) ;;
919      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
920	 ac_unrecognized_sep=', ';;
921    esac
922    eval enable_$ac_useropt=no ;;
923
924  -docdir | --docdir | --docdi | --doc | --do)
925    ac_prev=docdir ;;
926  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
927    docdir=$ac_optarg ;;
928
929  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
930    ac_prev=dvidir ;;
931  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
932    dvidir=$ac_optarg ;;
933
934  -enable-* | --enable-*)
935    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
936    # Reject names that are not valid shell variable names.
937    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
938      as_fn_error $? "invalid feature name: $ac_useropt"
939    ac_useropt_orig=$ac_useropt
940    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
941    case $ac_user_opts in
942      *"
943"enable_$ac_useropt"
944"*) ;;
945      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
946	 ac_unrecognized_sep=', ';;
947    esac
948    eval enable_$ac_useropt=\$ac_optarg ;;
949
950  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
951  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
952  | --exec | --exe | --ex)
953    ac_prev=exec_prefix ;;
954  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
955  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
956  | --exec=* | --exe=* | --ex=*)
957    exec_prefix=$ac_optarg ;;
958
959  -gas | --gas | --ga | --g)
960    # Obsolete; use --with-gas.
961    with_gas=yes ;;
962
963  -help | --help | --hel | --he | -h)
964    ac_init_help=long ;;
965  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
966    ac_init_help=recursive ;;
967  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
968    ac_init_help=short ;;
969
970  -host | --host | --hos | --ho)
971    ac_prev=host_alias ;;
972  -host=* | --host=* | --hos=* | --ho=*)
973    host_alias=$ac_optarg ;;
974
975  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
976    ac_prev=htmldir ;;
977  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
978  | --ht=*)
979    htmldir=$ac_optarg ;;
980
981  -includedir | --includedir | --includedi | --included | --include \
982  | --includ | --inclu | --incl | --inc)
983    ac_prev=includedir ;;
984  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
985  | --includ=* | --inclu=* | --incl=* | --inc=*)
986    includedir=$ac_optarg ;;
987
988  -infodir | --infodir | --infodi | --infod | --info | --inf)
989    ac_prev=infodir ;;
990  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
991    infodir=$ac_optarg ;;
992
993  -libdir | --libdir | --libdi | --libd)
994    ac_prev=libdir ;;
995  -libdir=* | --libdir=* | --libdi=* | --libd=*)
996    libdir=$ac_optarg ;;
997
998  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
999  | --libexe | --libex | --libe)
1000    ac_prev=libexecdir ;;
1001  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1002  | --libexe=* | --libex=* | --libe=*)
1003    libexecdir=$ac_optarg ;;
1004
1005  -localedir | --localedir | --localedi | --localed | --locale)
1006    ac_prev=localedir ;;
1007  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1008    localedir=$ac_optarg ;;
1009
1010  -localstatedir | --localstatedir | --localstatedi | --localstated \
1011  | --localstate | --localstat | --localsta | --localst | --locals)
1012    ac_prev=localstatedir ;;
1013  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1014  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1015    localstatedir=$ac_optarg ;;
1016
1017  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1018    ac_prev=mandir ;;
1019  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1020    mandir=$ac_optarg ;;
1021
1022  -nfp | --nfp | --nf)
1023    # Obsolete; use --without-fp.
1024    with_fp=no ;;
1025
1026  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1027  | --no-cr | --no-c | -n)
1028    no_create=yes ;;
1029
1030  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1031  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1032    no_recursion=yes ;;
1033
1034  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1035  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1036  | --oldin | --oldi | --old | --ol | --o)
1037    ac_prev=oldincludedir ;;
1038  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1039  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1040  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1041    oldincludedir=$ac_optarg ;;
1042
1043  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1044    ac_prev=prefix ;;
1045  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1046    prefix=$ac_optarg ;;
1047
1048  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1049  | --program-pre | --program-pr | --program-p)
1050    ac_prev=program_prefix ;;
1051  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1052  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1053    program_prefix=$ac_optarg ;;
1054
1055  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1056  | --program-suf | --program-su | --program-s)
1057    ac_prev=program_suffix ;;
1058  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1059  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1060    program_suffix=$ac_optarg ;;
1061
1062  -program-transform-name | --program-transform-name \
1063  | --program-transform-nam | --program-transform-na \
1064  | --program-transform-n | --program-transform- \
1065  | --program-transform | --program-transfor \
1066  | --program-transfo | --program-transf \
1067  | --program-trans | --program-tran \
1068  | --progr-tra | --program-tr | --program-t)
1069    ac_prev=program_transform_name ;;
1070  -program-transform-name=* | --program-transform-name=* \
1071  | --program-transform-nam=* | --program-transform-na=* \
1072  | --program-transform-n=* | --program-transform-=* \
1073  | --program-transform=* | --program-transfor=* \
1074  | --program-transfo=* | --program-transf=* \
1075  | --program-trans=* | --program-tran=* \
1076  | --progr-tra=* | --program-tr=* | --program-t=*)
1077    program_transform_name=$ac_optarg ;;
1078
1079  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1080    ac_prev=pdfdir ;;
1081  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1082    pdfdir=$ac_optarg ;;
1083
1084  -psdir | --psdir | --psdi | --psd | --ps)
1085    ac_prev=psdir ;;
1086  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1087    psdir=$ac_optarg ;;
1088
1089  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1090  | -silent | --silent | --silen | --sile | --sil)
1091    silent=yes ;;
1092
1093  -runstatedir | --runstatedir | --runstatedi | --runstated \
1094  | --runstate | --runstat | --runsta | --runst | --runs \
1095  | --run | --ru | --r)
1096    ac_prev=runstatedir ;;
1097  -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1098  | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1099  | --run=* | --ru=* | --r=*)
1100    runstatedir=$ac_optarg ;;
1101
1102  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1103    ac_prev=sbindir ;;
1104  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1105  | --sbi=* | --sb=*)
1106    sbindir=$ac_optarg ;;
1107
1108  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1109  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1110  | --sharedst | --shareds | --shared | --share | --shar \
1111  | --sha | --sh)
1112    ac_prev=sharedstatedir ;;
1113  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1114  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1115  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1116  | --sha=* | --sh=*)
1117    sharedstatedir=$ac_optarg ;;
1118
1119  -site | --site | --sit)
1120    ac_prev=site ;;
1121  -site=* | --site=* | --sit=*)
1122    site=$ac_optarg ;;
1123
1124  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1125    ac_prev=srcdir ;;
1126  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1127    srcdir=$ac_optarg ;;
1128
1129  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1130  | --syscon | --sysco | --sysc | --sys | --sy)
1131    ac_prev=sysconfdir ;;
1132  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1133  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1134    sysconfdir=$ac_optarg ;;
1135
1136  -target | --target | --targe | --targ | --tar | --ta | --t)
1137    ac_prev=target_alias ;;
1138  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1139    target_alias=$ac_optarg ;;
1140
1141  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1142    verbose=yes ;;
1143
1144  -version | --version | --versio | --versi | --vers | -V)
1145    ac_init_version=: ;;
1146
1147  -with-* | --with-*)
1148    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1149    # Reject names that are not valid shell variable names.
1150    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1151      as_fn_error $? "invalid package name: $ac_useropt"
1152    ac_useropt_orig=$ac_useropt
1153    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1154    case $ac_user_opts in
1155      *"
1156"with_$ac_useropt"
1157"*) ;;
1158      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1159	 ac_unrecognized_sep=', ';;
1160    esac
1161    eval with_$ac_useropt=\$ac_optarg ;;
1162
1163  -without-* | --without-*)
1164    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1165    # Reject names that are not valid shell variable names.
1166    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1167      as_fn_error $? "invalid package name: $ac_useropt"
1168    ac_useropt_orig=$ac_useropt
1169    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1170    case $ac_user_opts in
1171      *"
1172"with_$ac_useropt"
1173"*) ;;
1174      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1175	 ac_unrecognized_sep=', ';;
1176    esac
1177    eval with_$ac_useropt=no ;;
1178
1179  --x)
1180    # Obsolete; use --with-x.
1181    with_x=yes ;;
1182
1183  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1184  | --x-incl | --x-inc | --x-in | --x-i)
1185    ac_prev=x_includes ;;
1186  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1187  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1188    x_includes=$ac_optarg ;;
1189
1190  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1191  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1192    ac_prev=x_libraries ;;
1193  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1194  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1195    x_libraries=$ac_optarg ;;
1196
1197  -*) as_fn_error $? "unrecognized option: \`$ac_option'
1198Try \`$0 --help' for more information"
1199    ;;
1200
1201  *=*)
1202    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1203    # Reject names that are not valid shell variable names.
1204    case $ac_envvar in #(
1205      '' | [0-9]* | *[!_$as_cr_alnum]* )
1206      as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1207    esac
1208    eval $ac_envvar=\$ac_optarg
1209    export $ac_envvar ;;
1210
1211  *)
1212    # FIXME: should be removed in autoconf 3.0.
1213    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1214    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1215      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1216    : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1217    ;;
1218
1219  esac
1220done
1221
1222if test -n "$ac_prev"; then
1223  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1224  as_fn_error $? "missing argument to $ac_option"
1225fi
1226
1227if test -n "$ac_unrecognized_opts"; then
1228  case $enable_option_checking in
1229    no) ;;
1230    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1231    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1232  esac
1233fi
1234
1235# Check all directory arguments for consistency.
1236for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1237		datadir sysconfdir sharedstatedir localstatedir includedir \
1238		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1239		libdir localedir mandir runstatedir
1240do
1241  eval ac_val=\$$ac_var
1242  # Remove trailing slashes.
1243  case $ac_val in
1244    */ )
1245      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1246      eval $ac_var=\$ac_val;;
1247  esac
1248  # Be sure to have absolute directory names.
1249  case $ac_val in
1250    [\\/$]* | ?:[\\/]* )  continue;;
1251    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1252  esac
1253  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1254done
1255
1256# There might be people who depend on the old broken behavior: `$host'
1257# used to hold the argument of --host etc.
1258# FIXME: To remove some day.
1259build=$build_alias
1260host=$host_alias
1261target=$target_alias
1262
1263# FIXME: To remove some day.
1264if test "x$host_alias" != x; then
1265  if test "x$build_alias" = x; then
1266    cross_compiling=maybe
1267  elif test "x$build_alias" != "x$host_alias"; then
1268    cross_compiling=yes
1269  fi
1270fi
1271
1272ac_tool_prefix=
1273test -n "$host_alias" && ac_tool_prefix=$host_alias-
1274
1275test "$silent" = yes && exec 6>/dev/null
1276
1277
1278ac_pwd=`pwd` && test -n "$ac_pwd" &&
1279ac_ls_di=`ls -di .` &&
1280ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1281  as_fn_error $? "working directory cannot be determined"
1282test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1283  as_fn_error $? "pwd does not report name of working directory"
1284
1285
1286# Find the source files, if location was not specified.
1287if test -z "$srcdir"; then
1288  ac_srcdir_defaulted=yes
1289  # Try the directory containing this script, then the parent directory.
1290  ac_confdir=`$as_dirname -- "$as_myself" ||
1291$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1292	 X"$as_myself" : 'X\(//\)[^/]' \| \
1293	 X"$as_myself" : 'X\(//\)$' \| \
1294	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1295$as_echo X"$as_myself" |
1296    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1297	    s//\1/
1298	    q
1299	  }
1300	  /^X\(\/\/\)[^/].*/{
1301	    s//\1/
1302	    q
1303	  }
1304	  /^X\(\/\/\)$/{
1305	    s//\1/
1306	    q
1307	  }
1308	  /^X\(\/\).*/{
1309	    s//\1/
1310	    q
1311	  }
1312	  s/.*/./; q'`
1313  srcdir=$ac_confdir
1314  if test ! -r "$srcdir/$ac_unique_file"; then
1315    srcdir=..
1316  fi
1317else
1318  ac_srcdir_defaulted=no
1319fi
1320if test ! -r "$srcdir/$ac_unique_file"; then
1321  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1322  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1323fi
1324ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1325ac_abs_confdir=`(
1326	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1327	pwd)`
1328# When building in place, set srcdir=.
1329if test "$ac_abs_confdir" = "$ac_pwd"; then
1330  srcdir=.
1331fi
1332# Remove unnecessary trailing slashes from srcdir.
1333# Double slashes in file names in object file debugging info
1334# mess up M-x gdb in Emacs.
1335case $srcdir in
1336*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1337esac
1338for ac_var in $ac_precious_vars; do
1339  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1340  eval ac_env_${ac_var}_value=\$${ac_var}
1341  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1342  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1343done
1344
1345#
1346# Report the --help message.
1347#
1348if test "$ac_init_help" = "long"; then
1349  # Omit some internal or obsolete options to make the list less imposing.
1350  # This message is too long to be a string in the A/UX 3.1 sh.
1351  cat <<_ACEOF
1352\`configure' configures Gource 0.51 to adapt to many kinds of systems.
1353
1354Usage: $0 [OPTION]... [VAR=VALUE]...
1355
1356To assign environment variables (e.g., CC, CFLAGS...), specify them as
1357VAR=VALUE.  See below for descriptions of some of the useful variables.
1358
1359Defaults for the options are specified in brackets.
1360
1361Configuration:
1362  -h, --help              display this help and exit
1363      --help=short        display options specific to this package
1364      --help=recursive    display the short help of all the included packages
1365  -V, --version           display version information and exit
1366  -q, --quiet, --silent   do not print \`checking ...' messages
1367      --cache-file=FILE   cache test results in FILE [disabled]
1368  -C, --config-cache      alias for \`--cache-file=config.cache'
1369  -n, --no-create         do not create output files
1370      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1371
1372Installation directories:
1373  --prefix=PREFIX         install architecture-independent files in PREFIX
1374                          [$ac_default_prefix]
1375  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1376                          [PREFIX]
1377
1378By default, \`make install' will install all the files in
1379\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1380an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1381for instance \`--prefix=\$HOME'.
1382
1383For better control, use the options below.
1384
1385Fine tuning of the installation directories:
1386  --bindir=DIR            user executables [EPREFIX/bin]
1387  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1388  --libexecdir=DIR        program executables [EPREFIX/libexec]
1389  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1390  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1391  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1392  --runstatedir=DIR       modifiable per-process data [LOCALSTATEDIR/run]
1393  --libdir=DIR            object code libraries [EPREFIX/lib]
1394  --includedir=DIR        C header files [PREFIX/include]
1395  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1396  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1397  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1398  --infodir=DIR           info documentation [DATAROOTDIR/info]
1399  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1400  --mandir=DIR            man documentation [DATAROOTDIR/man]
1401  --docdir=DIR            documentation root [DATAROOTDIR/doc/gource]
1402  --htmldir=DIR           html documentation [DOCDIR]
1403  --dvidir=DIR            dvi documentation [DOCDIR]
1404  --pdfdir=DIR            pdf documentation [DOCDIR]
1405  --psdir=DIR             ps documentation [DOCDIR]
1406_ACEOF
1407
1408  cat <<\_ACEOF
1409
1410Program names:
1411  --program-prefix=PREFIX            prepend PREFIX to installed program names
1412  --program-suffix=SUFFIX            append SUFFIX to installed program names
1413  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1414
1415X features:
1416  --x-includes=DIR    X include files are in DIR
1417  --x-libraries=DIR   X library files are in DIR
1418
1419System types:
1420  --build=BUILD     configure for building on BUILD [guessed]
1421  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1422_ACEOF
1423fi
1424
1425if test -n "$ac_init_help"; then
1426  case $ac_init_help in
1427     short | recursive ) echo "Configuration of Gource 0.51:";;
1428   esac
1429  cat <<\_ACEOF
1430
1431Optional Features:
1432  --disable-option-checking  ignore unrecognized --enable/--with options
1433  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1434  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1435  --enable-silent-rules   less verbose build output (undo: "make V=1")
1436  --disable-silent-rules  verbose build output (undo: "make V=0")
1437  --enable-dependency-tracking
1438                          do not reject slow dependency extractors
1439  --disable-dependency-tracking
1440                          speeds up one-time build
1441  --enable-font-file=FILE override the default font
1442  --enable-ttf-font-dir=DIR
1443                          directory containing GNU FreeFont TTF fonts
1444
1445Optional Packages:
1446  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1447  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1448  --with-x                use the X Window System
1449  --with-boost[=ARG]      use Boost library from a standard location
1450                          (ARG=yes), from the specified location (ARG=<path>),
1451                          or disable it (ARG=no) [ARG=yes]
1452  --with-boost-libdir=LIB_DIR
1453                          Force given directory for boost libraries. Note that
1454                          this will override library path detection, so use
1455                          this parameter only if default library detection
1456                          fails and you know exactly where your boost
1457                          libraries are located.
1458  --with-boost-system[=special-lib]
1459                          use the System library from boost - it is possible
1460                          to specify a certain library for the linker e.g.
1461                          --with-boost-system=boost_system-gcc-mt
1462  --with-boost-filesystem[=special-lib]
1463                          use the Filesystem library from boost - it is
1464                          possible to specify a certain library for the linker
1465                          e.g. --with-boost-filesystem=boost_filesystem-gcc-mt
1466  --with-tinyxml          Use system installed TinyXML library
1467
1468Some influential environment variables:
1469  CXX         C++ compiler command
1470  CXXFLAGS    C++ compiler flags
1471  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1472              nonstandard directory <lib dir>
1473  LIBS        libraries to pass to the linker, e.g. -l<library>
1474  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1475              you have headers in a nonstandard directory <include dir>
1476  XMKMF       Path to xmkmf, Makefile generator for X Window System
1477  CXXCPP      C++ preprocessor
1478  CC          C compiler command
1479  CFLAGS      C compiler flags
1480  CPP         C preprocessor
1481  PKG_CONFIG  path to pkg-config utility
1482  FT2_CFLAGS  C compiler flags for FT2, overriding pkg-config
1483  FT2_LIBS    linker flags for FT2, overriding pkg-config
1484  PCRE_CFLAGS C compiler flags for PCRE, overriding pkg-config
1485  PCRE_LIBS   linker flags for PCRE, overriding pkg-config
1486  GLEW_CFLAGS C compiler flags for GLEW, overriding pkg-config
1487  GLEW_LIBS   linker flags for GLEW, overriding pkg-config
1488  SDL2_CFLAGS C compiler flags for SDL2, overriding pkg-config
1489  SDL2_LIBS   linker flags for SDL2, overriding pkg-config
1490  PNG_CFLAGS  C compiler flags for PNG, overriding pkg-config
1491  PNG_LIBS    linker flags for PNG, overriding pkg-config
1492
1493Use these variables to override the choices made by `configure' or to help
1494it to find libraries and programs with nonstandard names/locations.
1495
1496Report bugs to <acaudwell@gmail.com>.
1497_ACEOF
1498ac_status=$?
1499fi
1500
1501if test "$ac_init_help" = "recursive"; then
1502  # If there are subdirs, report their specific --help.
1503  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1504    test -d "$ac_dir" ||
1505      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1506      continue
1507    ac_builddir=.
1508
1509case "$ac_dir" in
1510.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1511*)
1512  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1513  # A ".." for each directory in $ac_dir_suffix.
1514  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1515  case $ac_top_builddir_sub in
1516  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1517  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1518  esac ;;
1519esac
1520ac_abs_top_builddir=$ac_pwd
1521ac_abs_builddir=$ac_pwd$ac_dir_suffix
1522# for backward compatibility:
1523ac_top_builddir=$ac_top_build_prefix
1524
1525case $srcdir in
1526  .)  # We are building in place.
1527    ac_srcdir=.
1528    ac_top_srcdir=$ac_top_builddir_sub
1529    ac_abs_top_srcdir=$ac_pwd ;;
1530  [\\/]* | ?:[\\/]* )  # Absolute name.
1531    ac_srcdir=$srcdir$ac_dir_suffix;
1532    ac_top_srcdir=$srcdir
1533    ac_abs_top_srcdir=$srcdir ;;
1534  *) # Relative name.
1535    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1536    ac_top_srcdir=$ac_top_build_prefix$srcdir
1537    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1538esac
1539ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1540
1541    cd "$ac_dir" || { ac_status=$?; continue; }
1542    # Check for guested configure.
1543    if test -f "$ac_srcdir/configure.gnu"; then
1544      echo &&
1545      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1546    elif test -f "$ac_srcdir/configure"; then
1547      echo &&
1548      $SHELL "$ac_srcdir/configure" --help=recursive
1549    else
1550      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1551    fi || ac_status=$?
1552    cd "$ac_pwd" || { ac_status=$?; break; }
1553  done
1554fi
1555
1556test -n "$ac_init_help" && exit $ac_status
1557if $ac_init_version; then
1558  cat <<\_ACEOF
1559Gource configure 0.51
1560generated by GNU Autoconf 2.69
1561
1562Copyright (C) 2012 Free Software Foundation, Inc.
1563This configure script is free software; the Free Software Foundation
1564gives unlimited permission to copy, distribute and modify it.
1565_ACEOF
1566  exit
1567fi
1568
1569## ------------------------ ##
1570## Autoconf initialization. ##
1571## ------------------------ ##
1572
1573# ac_fn_cxx_try_compile LINENO
1574# ----------------------------
1575# Try to compile conftest.$ac_ext, and return whether this succeeded.
1576ac_fn_cxx_try_compile ()
1577{
1578  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1579  rm -f conftest.$ac_objext
1580  if { { ac_try="$ac_compile"
1581case "(($ac_try" in
1582  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1583  *) ac_try_echo=$ac_try;;
1584esac
1585eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1586$as_echo "$ac_try_echo"; } >&5
1587  (eval "$ac_compile") 2>conftest.err
1588  ac_status=$?
1589  if test -s conftest.err; then
1590    grep -v '^ *+' conftest.err >conftest.er1
1591    cat conftest.er1 >&5
1592    mv -f conftest.er1 conftest.err
1593  fi
1594  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1595  test $ac_status = 0; } && {
1596	 test -z "$ac_cxx_werror_flag" ||
1597	 test ! -s conftest.err
1598       } && test -s conftest.$ac_objext; then :
1599  ac_retval=0
1600else
1601  $as_echo "$as_me: failed program was:" >&5
1602sed 's/^/| /' conftest.$ac_ext >&5
1603
1604	ac_retval=1
1605fi
1606  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1607  as_fn_set_status $ac_retval
1608
1609} # ac_fn_cxx_try_compile
1610
1611# ac_fn_cxx_try_link LINENO
1612# -------------------------
1613# Try to link conftest.$ac_ext, and return whether this succeeded.
1614ac_fn_cxx_try_link ()
1615{
1616  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1617  rm -f conftest.$ac_objext conftest$ac_exeext
1618  if { { ac_try="$ac_link"
1619case "(($ac_try" in
1620  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1621  *) ac_try_echo=$ac_try;;
1622esac
1623eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1624$as_echo "$ac_try_echo"; } >&5
1625  (eval "$ac_link") 2>conftest.err
1626  ac_status=$?
1627  if test -s conftest.err; then
1628    grep -v '^ *+' conftest.err >conftest.er1
1629    cat conftest.er1 >&5
1630    mv -f conftest.er1 conftest.err
1631  fi
1632  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1633  test $ac_status = 0; } && {
1634	 test -z "$ac_cxx_werror_flag" ||
1635	 test ! -s conftest.err
1636       } && test -s conftest$ac_exeext && {
1637	 test "$cross_compiling" = yes ||
1638	 test -x conftest$ac_exeext
1639       }; then :
1640  ac_retval=0
1641else
1642  $as_echo "$as_me: failed program was:" >&5
1643sed 's/^/| /' conftest.$ac_ext >&5
1644
1645	ac_retval=1
1646fi
1647  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1648  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1649  # interfere with the next link command; also delete a directory that is
1650  # left behind by Apple's compiler.  We do this before executing the actions.
1651  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1652  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1653  as_fn_set_status $ac_retval
1654
1655} # ac_fn_cxx_try_link
1656
1657# ac_fn_cxx_check_func LINENO FUNC VAR
1658# ------------------------------------
1659# Tests whether FUNC exists, setting the cache variable VAR accordingly
1660ac_fn_cxx_check_func ()
1661{
1662  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1663  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1664$as_echo_n "checking for $2... " >&6; }
1665if eval \${$3+:} false; then :
1666  $as_echo_n "(cached) " >&6
1667else
1668  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1669/* end confdefs.h.  */
1670/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1671   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1672#define $2 innocuous_$2
1673
1674/* System header to define __stub macros and hopefully few prototypes,
1675    which can conflict with char $2 (); below.
1676    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1677    <limits.h> exists even on freestanding compilers.  */
1678
1679#ifdef __STDC__
1680# include <limits.h>
1681#else
1682# include <assert.h>
1683#endif
1684
1685#undef $2
1686
1687/* Override any GCC internal prototype to avoid an error.
1688   Use char because int might match the return type of a GCC
1689   builtin and then its argument prototype would still apply.  */
1690#ifdef __cplusplus
1691extern "C"
1692#endif
1693char $2 ();
1694/* The GNU C library defines this for functions which it implements
1695    to always fail with ENOSYS.  Some functions are actually named
1696    something starting with __ and the normal name is an alias.  */
1697#if defined __stub_$2 || defined __stub___$2
1698choke me
1699#endif
1700
1701int
1702main ()
1703{
1704return $2 ();
1705  ;
1706  return 0;
1707}
1708_ACEOF
1709if ac_fn_cxx_try_link "$LINENO"; then :
1710  eval "$3=yes"
1711else
1712  eval "$3=no"
1713fi
1714rm -f core conftest.err conftest.$ac_objext \
1715    conftest$ac_exeext conftest.$ac_ext
1716fi
1717eval ac_res=\$$3
1718	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1719$as_echo "$ac_res" >&6; }
1720  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1721
1722} # ac_fn_cxx_check_func
1723
1724# ac_fn_cxx_try_cpp LINENO
1725# ------------------------
1726# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1727ac_fn_cxx_try_cpp ()
1728{
1729  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1730  if { { ac_try="$ac_cpp conftest.$ac_ext"
1731case "(($ac_try" in
1732  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1733  *) ac_try_echo=$ac_try;;
1734esac
1735eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1736$as_echo "$ac_try_echo"; } >&5
1737  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1738  ac_status=$?
1739  if test -s conftest.err; then
1740    grep -v '^ *+' conftest.err >conftest.er1
1741    cat conftest.er1 >&5
1742    mv -f conftest.er1 conftest.err
1743  fi
1744  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1745  test $ac_status = 0; } > conftest.i && {
1746	 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
1747	 test ! -s conftest.err
1748       }; then :
1749  ac_retval=0
1750else
1751  $as_echo "$as_me: failed program was:" >&5
1752sed 's/^/| /' conftest.$ac_ext >&5
1753
1754    ac_retval=1
1755fi
1756  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1757  as_fn_set_status $ac_retval
1758
1759} # ac_fn_cxx_try_cpp
1760
1761# ac_fn_c_try_compile LINENO
1762# --------------------------
1763# Try to compile conftest.$ac_ext, and return whether this succeeded.
1764ac_fn_c_try_compile ()
1765{
1766  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1767  rm -f conftest.$ac_objext
1768  if { { ac_try="$ac_compile"
1769case "(($ac_try" in
1770  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1771  *) ac_try_echo=$ac_try;;
1772esac
1773eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1774$as_echo "$ac_try_echo"; } >&5
1775  (eval "$ac_compile") 2>conftest.err
1776  ac_status=$?
1777  if test -s conftest.err; then
1778    grep -v '^ *+' conftest.err >conftest.er1
1779    cat conftest.er1 >&5
1780    mv -f conftest.er1 conftest.err
1781  fi
1782  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1783  test $ac_status = 0; } && {
1784	 test -z "$ac_c_werror_flag" ||
1785	 test ! -s conftest.err
1786       } && test -s conftest.$ac_objext; then :
1787  ac_retval=0
1788else
1789  $as_echo "$as_me: failed program was:" >&5
1790sed 's/^/| /' conftest.$ac_ext >&5
1791
1792	ac_retval=1
1793fi
1794  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1795  as_fn_set_status $ac_retval
1796
1797} # ac_fn_c_try_compile
1798
1799# ac_fn_c_try_link LINENO
1800# -----------------------
1801# Try to link conftest.$ac_ext, and return whether this succeeded.
1802ac_fn_c_try_link ()
1803{
1804  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1805  rm -f conftest.$ac_objext conftest$ac_exeext
1806  if { { ac_try="$ac_link"
1807case "(($ac_try" in
1808  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1809  *) ac_try_echo=$ac_try;;
1810esac
1811eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1812$as_echo "$ac_try_echo"; } >&5
1813  (eval "$ac_link") 2>conftest.err
1814  ac_status=$?
1815  if test -s conftest.err; then
1816    grep -v '^ *+' conftest.err >conftest.er1
1817    cat conftest.er1 >&5
1818    mv -f conftest.er1 conftest.err
1819  fi
1820  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1821  test $ac_status = 0; } && {
1822	 test -z "$ac_c_werror_flag" ||
1823	 test ! -s conftest.err
1824       } && test -s conftest$ac_exeext && {
1825	 test "$cross_compiling" = yes ||
1826	 test -x conftest$ac_exeext
1827       }; then :
1828  ac_retval=0
1829else
1830  $as_echo "$as_me: failed program was:" >&5
1831sed 's/^/| /' conftest.$ac_ext >&5
1832
1833	ac_retval=1
1834fi
1835  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1836  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1837  # interfere with the next link command; also delete a directory that is
1838  # left behind by Apple's compiler.  We do this before executing the actions.
1839  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1840  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1841  as_fn_set_status $ac_retval
1842
1843} # ac_fn_c_try_link
1844
1845# ac_fn_c_try_cpp LINENO
1846# ----------------------
1847# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1848ac_fn_c_try_cpp ()
1849{
1850  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1851  if { { ac_try="$ac_cpp conftest.$ac_ext"
1852case "(($ac_try" in
1853  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1854  *) ac_try_echo=$ac_try;;
1855esac
1856eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1857$as_echo "$ac_try_echo"; } >&5
1858  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1859  ac_status=$?
1860  if test -s conftest.err; then
1861    grep -v '^ *+' conftest.err >conftest.er1
1862    cat conftest.er1 >&5
1863    mv -f conftest.er1 conftest.err
1864  fi
1865  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1866  test $ac_status = 0; } > conftest.i && {
1867	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1868	 test ! -s conftest.err
1869       }; then :
1870  ac_retval=0
1871else
1872  $as_echo "$as_me: failed program was:" >&5
1873sed 's/^/| /' conftest.$ac_ext >&5
1874
1875    ac_retval=1
1876fi
1877  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1878  as_fn_set_status $ac_retval
1879
1880} # ac_fn_c_try_cpp
1881
1882# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1883# -------------------------------------------------------
1884# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1885# the include files in INCLUDES and setting the cache variable VAR
1886# accordingly.
1887ac_fn_c_check_header_mongrel ()
1888{
1889  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1890  if eval \${$3+:} false; then :
1891  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1892$as_echo_n "checking for $2... " >&6; }
1893if eval \${$3+:} false; then :
1894  $as_echo_n "(cached) " >&6
1895fi
1896eval ac_res=\$$3
1897	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1898$as_echo "$ac_res" >&6; }
1899else
1900  # Is the header compilable?
1901{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1902$as_echo_n "checking $2 usability... " >&6; }
1903cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1904/* end confdefs.h.  */
1905$4
1906#include <$2>
1907_ACEOF
1908if ac_fn_c_try_compile "$LINENO"; then :
1909  ac_header_compiler=yes
1910else
1911  ac_header_compiler=no
1912fi
1913rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1914{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1915$as_echo "$ac_header_compiler" >&6; }
1916
1917# Is the header present?
1918{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1919$as_echo_n "checking $2 presence... " >&6; }
1920cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1921/* end confdefs.h.  */
1922#include <$2>
1923_ACEOF
1924if ac_fn_c_try_cpp "$LINENO"; then :
1925  ac_header_preproc=yes
1926else
1927  ac_header_preproc=no
1928fi
1929rm -f conftest.err conftest.i conftest.$ac_ext
1930{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1931$as_echo "$ac_header_preproc" >&6; }
1932
1933# So?  What about this header?
1934case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1935  yes:no: )
1936    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1937$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1938    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1939$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1940    ;;
1941  no:yes:* )
1942    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1943$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1944    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
1945$as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
1946    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1947$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1948    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
1949$as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
1950    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1951$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1952( $as_echo "## ---------------------------------- ##
1953## Report this to acaudwell@gmail.com ##
1954## ---------------------------------- ##"
1955     ) | sed "s/^/$as_me: WARNING:     /" >&2
1956    ;;
1957esac
1958  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1959$as_echo_n "checking for $2... " >&6; }
1960if eval \${$3+:} false; then :
1961  $as_echo_n "(cached) " >&6
1962else
1963  eval "$3=\$ac_header_compiler"
1964fi
1965eval ac_res=\$$3
1966	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1967$as_echo "$ac_res" >&6; }
1968fi
1969  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1970
1971} # ac_fn_c_check_header_mongrel
1972
1973# ac_fn_c_try_run LINENO
1974# ----------------------
1975# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1976# that executables *can* be run.
1977ac_fn_c_try_run ()
1978{
1979  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1980  if { { ac_try="$ac_link"
1981case "(($ac_try" in
1982  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1983  *) ac_try_echo=$ac_try;;
1984esac
1985eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1986$as_echo "$ac_try_echo"; } >&5
1987  (eval "$ac_link") 2>&5
1988  ac_status=$?
1989  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1990  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1991  { { case "(($ac_try" in
1992  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1993  *) ac_try_echo=$ac_try;;
1994esac
1995eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1996$as_echo "$ac_try_echo"; } >&5
1997  (eval "$ac_try") 2>&5
1998  ac_status=$?
1999  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2000  test $ac_status = 0; }; }; then :
2001  ac_retval=0
2002else
2003  $as_echo "$as_me: program exited with status $ac_status" >&5
2004       $as_echo "$as_me: failed program was:" >&5
2005sed 's/^/| /' conftest.$ac_ext >&5
2006
2007       ac_retval=$ac_status
2008fi
2009  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2010  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2011  as_fn_set_status $ac_retval
2012
2013} # ac_fn_c_try_run
2014
2015# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2016# -------------------------------------------------------
2017# Tests whether HEADER exists and can be compiled using the include files in
2018# INCLUDES, setting the cache variable VAR accordingly.
2019ac_fn_c_check_header_compile ()
2020{
2021  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2022  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2023$as_echo_n "checking for $2... " >&6; }
2024if eval \${$3+:} false; then :
2025  $as_echo_n "(cached) " >&6
2026else
2027  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2028/* end confdefs.h.  */
2029$4
2030#include <$2>
2031_ACEOF
2032if ac_fn_c_try_compile "$LINENO"; then :
2033  eval "$3=yes"
2034else
2035  eval "$3=no"
2036fi
2037rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2038fi
2039eval ac_res=\$$3
2040	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2041$as_echo "$ac_res" >&6; }
2042  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2043
2044} # ac_fn_c_check_header_compile
2045
2046# ac_fn_cxx_check_header_compile LINENO HEADER VAR INCLUDES
2047# ---------------------------------------------------------
2048# Tests whether HEADER exists and can be compiled using the include files in
2049# INCLUDES, setting the cache variable VAR accordingly.
2050ac_fn_cxx_check_header_compile ()
2051{
2052  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2053  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2054$as_echo_n "checking for $2... " >&6; }
2055if eval \${$3+:} false; then :
2056  $as_echo_n "(cached) " >&6
2057else
2058  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2059/* end confdefs.h.  */
2060$4
2061#include <$2>
2062_ACEOF
2063if ac_fn_cxx_try_compile "$LINENO"; then :
2064  eval "$3=yes"
2065else
2066  eval "$3=no"
2067fi
2068rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2069fi
2070eval ac_res=\$$3
2071	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2072$as_echo "$ac_res" >&6; }
2073  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2074
2075} # ac_fn_cxx_check_header_compile
2076
2077# ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES
2078# ---------------------------------------------------------
2079# Tests whether HEADER exists, giving a warning if it cannot be compiled using
2080# the include files in INCLUDES and setting the cache variable VAR
2081# accordingly.
2082ac_fn_cxx_check_header_mongrel ()
2083{
2084  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2085  if eval \${$3+:} false; then :
2086  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2087$as_echo_n "checking for $2... " >&6; }
2088if eval \${$3+:} false; then :
2089  $as_echo_n "(cached) " >&6
2090fi
2091eval ac_res=\$$3
2092	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2093$as_echo "$ac_res" >&6; }
2094else
2095  # Is the header compilable?
2096{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2097$as_echo_n "checking $2 usability... " >&6; }
2098cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2099/* end confdefs.h.  */
2100$4
2101#include <$2>
2102_ACEOF
2103if ac_fn_cxx_try_compile "$LINENO"; then :
2104  ac_header_compiler=yes
2105else
2106  ac_header_compiler=no
2107fi
2108rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2109{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2110$as_echo "$ac_header_compiler" >&6; }
2111
2112# Is the header present?
2113{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2114$as_echo_n "checking $2 presence... " >&6; }
2115cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2116/* end confdefs.h.  */
2117#include <$2>
2118_ACEOF
2119if ac_fn_cxx_try_cpp "$LINENO"; then :
2120  ac_header_preproc=yes
2121else
2122  ac_header_preproc=no
2123fi
2124rm -f conftest.err conftest.i conftest.$ac_ext
2125{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2126$as_echo "$ac_header_preproc" >&6; }
2127
2128# So?  What about this header?
2129case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #((
2130  yes:no: )
2131    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2132$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2133    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2134$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2135    ;;
2136  no:yes:* )
2137    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2138$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2139    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
2140$as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
2141    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2142$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2143    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
2144$as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
2145    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2146$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2147( $as_echo "## ---------------------------------- ##
2148## Report this to acaudwell@gmail.com ##
2149## ---------------------------------- ##"
2150     ) | sed "s/^/$as_me: WARNING:     /" >&2
2151    ;;
2152esac
2153  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2154$as_echo_n "checking for $2... " >&6; }
2155if eval \${$3+:} false; then :
2156  $as_echo_n "(cached) " >&6
2157else
2158  eval "$3=\$ac_header_compiler"
2159fi
2160eval ac_res=\$$3
2161	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2162$as_echo "$ac_res" >&6; }
2163fi
2164  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2165
2166} # ac_fn_cxx_check_header_mongrel
2167cat >config.log <<_ACEOF
2168This file contains any messages produced by compilers while
2169running configure, to aid debugging if configure makes a mistake.
2170
2171It was created by Gource $as_me 0.51, which was
2172generated by GNU Autoconf 2.69.  Invocation command line was
2173
2174  $ $0 $@
2175
2176_ACEOF
2177exec 5>>config.log
2178{
2179cat <<_ASUNAME
2180## --------- ##
2181## Platform. ##
2182## --------- ##
2183
2184hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2185uname -m = `(uname -m) 2>/dev/null || echo unknown`
2186uname -r = `(uname -r) 2>/dev/null || echo unknown`
2187uname -s = `(uname -s) 2>/dev/null || echo unknown`
2188uname -v = `(uname -v) 2>/dev/null || echo unknown`
2189
2190/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2191/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2192
2193/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2194/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2195/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2196/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2197/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2198/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2199/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2200
2201_ASUNAME
2202
2203as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2204for as_dir in $PATH
2205do
2206  IFS=$as_save_IFS
2207  test -z "$as_dir" && as_dir=.
2208    $as_echo "PATH: $as_dir"
2209  done
2210IFS=$as_save_IFS
2211
2212} >&5
2213
2214cat >&5 <<_ACEOF
2215
2216
2217## ----------- ##
2218## Core tests. ##
2219## ----------- ##
2220
2221_ACEOF
2222
2223
2224# Keep a trace of the command line.
2225# Strip out --no-create and --no-recursion so they do not pile up.
2226# Strip out --silent because we don't want to record it for future runs.
2227# Also quote any args containing shell meta-characters.
2228# Make two passes to allow for proper duplicate-argument suppression.
2229ac_configure_args=
2230ac_configure_args0=
2231ac_configure_args1=
2232ac_must_keep_next=false
2233for ac_pass in 1 2
2234do
2235  for ac_arg
2236  do
2237    case $ac_arg in
2238    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2239    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2240    | -silent | --silent | --silen | --sile | --sil)
2241      continue ;;
2242    *\'*)
2243      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2244    esac
2245    case $ac_pass in
2246    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2247    2)
2248      as_fn_append ac_configure_args1 " '$ac_arg'"
2249      if test $ac_must_keep_next = true; then
2250	ac_must_keep_next=false # Got value, back to normal.
2251      else
2252	case $ac_arg in
2253	  *=* | --config-cache | -C | -disable-* | --disable-* \
2254	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2255	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2256	  | -with-* | --with-* | -without-* | --without-* | --x)
2257	    case "$ac_configure_args0 " in
2258	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2259	    esac
2260	    ;;
2261	  -* ) ac_must_keep_next=true ;;
2262	esac
2263      fi
2264      as_fn_append ac_configure_args " '$ac_arg'"
2265      ;;
2266    esac
2267  done
2268done
2269{ ac_configure_args0=; unset ac_configure_args0;}
2270{ ac_configure_args1=; unset ac_configure_args1;}
2271
2272# When interrupted or exit'd, cleanup temporary files, and complete
2273# config.log.  We remove comments because anyway the quotes in there
2274# would cause problems or look ugly.
2275# WARNING: Use '\'' to represent an apostrophe within the trap.
2276# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2277trap 'exit_status=$?
2278  # Save into config.log some information that might help in debugging.
2279  {
2280    echo
2281
2282    $as_echo "## ---------------- ##
2283## Cache variables. ##
2284## ---------------- ##"
2285    echo
2286    # The following way of writing the cache mishandles newlines in values,
2287(
2288  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2289    eval ac_val=\$$ac_var
2290    case $ac_val in #(
2291    *${as_nl}*)
2292      case $ac_var in #(
2293      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2294$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2295      esac
2296      case $ac_var in #(
2297      _ | IFS | as_nl) ;; #(
2298      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2299      *) { eval $ac_var=; unset $ac_var;} ;;
2300      esac ;;
2301    esac
2302  done
2303  (set) 2>&1 |
2304    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2305    *${as_nl}ac_space=\ *)
2306      sed -n \
2307	"s/'\''/'\''\\\\'\'''\''/g;
2308	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2309      ;; #(
2310    *)
2311      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2312      ;;
2313    esac |
2314    sort
2315)
2316    echo
2317
2318    $as_echo "## ----------------- ##
2319## Output variables. ##
2320## ----------------- ##"
2321    echo
2322    for ac_var in $ac_subst_vars
2323    do
2324      eval ac_val=\$$ac_var
2325      case $ac_val in
2326      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2327      esac
2328      $as_echo "$ac_var='\''$ac_val'\''"
2329    done | sort
2330    echo
2331
2332    if test -n "$ac_subst_files"; then
2333      $as_echo "## ------------------- ##
2334## File substitutions. ##
2335## ------------------- ##"
2336      echo
2337      for ac_var in $ac_subst_files
2338      do
2339	eval ac_val=\$$ac_var
2340	case $ac_val in
2341	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2342	esac
2343	$as_echo "$ac_var='\''$ac_val'\''"
2344      done | sort
2345      echo
2346    fi
2347
2348    if test -s confdefs.h; then
2349      $as_echo "## ----------- ##
2350## confdefs.h. ##
2351## ----------- ##"
2352      echo
2353      cat confdefs.h
2354      echo
2355    fi
2356    test "$ac_signal" != 0 &&
2357      $as_echo "$as_me: caught signal $ac_signal"
2358    $as_echo "$as_me: exit $exit_status"
2359  } >&5
2360  rm -f core *.core core.conftest.* &&
2361    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2362    exit $exit_status
2363' 0
2364for ac_signal in 1 2 13 15; do
2365  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2366done
2367ac_signal=0
2368
2369# confdefs.h avoids OS command line length limits that DEFS can exceed.
2370rm -f -r conftest* confdefs.h
2371
2372$as_echo "/* confdefs.h */" > confdefs.h
2373
2374# Predefined preprocessor variables.
2375
2376cat >>confdefs.h <<_ACEOF
2377#define PACKAGE_NAME "$PACKAGE_NAME"
2378_ACEOF
2379
2380cat >>confdefs.h <<_ACEOF
2381#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2382_ACEOF
2383
2384cat >>confdefs.h <<_ACEOF
2385#define PACKAGE_VERSION "$PACKAGE_VERSION"
2386_ACEOF
2387
2388cat >>confdefs.h <<_ACEOF
2389#define PACKAGE_STRING "$PACKAGE_STRING"
2390_ACEOF
2391
2392cat >>confdefs.h <<_ACEOF
2393#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2394_ACEOF
2395
2396cat >>confdefs.h <<_ACEOF
2397#define PACKAGE_URL "$PACKAGE_URL"
2398_ACEOF
2399
2400
2401# Let the site file select an alternate cache file if it wants to.
2402# Prefer an explicitly selected file to automatically selected ones.
2403ac_site_file1=NONE
2404ac_site_file2=NONE
2405if test -n "$CONFIG_SITE"; then
2406  # We do not want a PATH search for config.site.
2407  case $CONFIG_SITE in #((
2408    -*)  ac_site_file1=./$CONFIG_SITE;;
2409    */*) ac_site_file1=$CONFIG_SITE;;
2410    *)   ac_site_file1=./$CONFIG_SITE;;
2411  esac
2412elif test "x$prefix" != xNONE; then
2413  ac_site_file1=$prefix/share/config.site
2414  ac_site_file2=$prefix/etc/config.site
2415else
2416  ac_site_file1=$ac_default_prefix/share/config.site
2417  ac_site_file2=$ac_default_prefix/etc/config.site
2418fi
2419for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2420do
2421  test "x$ac_site_file" = xNONE && continue
2422  if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2423    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2424$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2425    sed 's/^/| /' "$ac_site_file" >&5
2426    . "$ac_site_file" \
2427      || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2428$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2429as_fn_error $? "failed to load site script $ac_site_file
2430See \`config.log' for more details" "$LINENO" 5; }
2431  fi
2432done
2433
2434if test -r "$cache_file"; then
2435  # Some versions of bash will fail to source /dev/null (special files
2436  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2437  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2438    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2439$as_echo "$as_me: loading cache $cache_file" >&6;}
2440    case $cache_file in
2441      [\\/]* | ?:[\\/]* ) . "$cache_file";;
2442      *)                      . "./$cache_file";;
2443    esac
2444  fi
2445else
2446  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2447$as_echo "$as_me: creating cache $cache_file" >&6;}
2448  >$cache_file
2449fi
2450
2451# Check that the precious variables saved in the cache have kept the same
2452# value.
2453ac_cache_corrupted=false
2454for ac_var in $ac_precious_vars; do
2455  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2456  eval ac_new_set=\$ac_env_${ac_var}_set
2457  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2458  eval ac_new_val=\$ac_env_${ac_var}_value
2459  case $ac_old_set,$ac_new_set in
2460    set,)
2461      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2462$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2463      ac_cache_corrupted=: ;;
2464    ,set)
2465      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2466$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2467      ac_cache_corrupted=: ;;
2468    ,);;
2469    *)
2470      if test "x$ac_old_val" != "x$ac_new_val"; then
2471	# differences in whitespace do not lead to failure.
2472	ac_old_val_w=`echo x $ac_old_val`
2473	ac_new_val_w=`echo x $ac_new_val`
2474	if test "$ac_old_val_w" != "$ac_new_val_w"; then
2475	  { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2476$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2477	  ac_cache_corrupted=:
2478	else
2479	  { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2480$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2481	  eval $ac_var=\$ac_old_val
2482	fi
2483	{ $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2484$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2485	{ $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2486$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2487      fi;;
2488  esac
2489  # Pass precious variables to config.status.
2490  if test "$ac_new_set" = set; then
2491    case $ac_new_val in
2492    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2493    *) ac_arg=$ac_var=$ac_new_val ;;
2494    esac
2495    case " $ac_configure_args " in
2496      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2497      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2498    esac
2499  fi
2500done
2501if $ac_cache_corrupted; then
2502  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2503$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2504  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2505$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2506  as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2507fi
2508## -------------------- ##
2509## Main body of script. ##
2510## -------------------- ##
2511
2512ac_ext=c
2513ac_cpp='$CPP $CPPFLAGS'
2514ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2515ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2516ac_compiler_gnu=$ac_cv_c_compiler_gnu
2517
2518
2519ac_aux_dir=
2520for ac_dir in build-aux "$srcdir"/build-aux; do
2521  if test -f "$ac_dir/install-sh"; then
2522    ac_aux_dir=$ac_dir
2523    ac_install_sh="$ac_aux_dir/install-sh -c"
2524    break
2525  elif test -f "$ac_dir/install.sh"; then
2526    ac_aux_dir=$ac_dir
2527    ac_install_sh="$ac_aux_dir/install.sh -c"
2528    break
2529  elif test -f "$ac_dir/shtool"; then
2530    ac_aux_dir=$ac_dir
2531    ac_install_sh="$ac_aux_dir/shtool install -c"
2532    break
2533  fi
2534done
2535if test -z "$ac_aux_dir"; then
2536  as_fn_error $? "cannot find install-sh, install.sh, or shtool in build-aux \"$srcdir\"/build-aux" "$LINENO" 5
2537fi
2538
2539# These three variables are undocumented and unsupported,
2540# and are intended to be withdrawn in a future Autoconf release.
2541# They can cause serious problems if a builder's source tree is in a directory
2542# whose full name contains unusual characters.
2543ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2544ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2545ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2546
2547
2548
2549am__api_version='1.15'
2550
2551# Find a good install program.  We prefer a C program (faster),
2552# so one script is as good as another.  But avoid the broken or
2553# incompatible versions:
2554# SysV /etc/install, /usr/sbin/install
2555# SunOS /usr/etc/install
2556# IRIX /sbin/install
2557# AIX /bin/install
2558# AmigaOS /C/install, which installs bootblocks on floppy discs
2559# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2560# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2561# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2562# OS/2's system install, which has a completely different semantic
2563# ./install, which can be erroneously created by make from ./install.sh.
2564# Reject install programs that cannot install multiple files.
2565{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2566$as_echo_n "checking for a BSD-compatible install... " >&6; }
2567if test -z "$INSTALL"; then
2568if ${ac_cv_path_install+:} false; then :
2569  $as_echo_n "(cached) " >&6
2570else
2571  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2572for as_dir in $PATH
2573do
2574  IFS=$as_save_IFS
2575  test -z "$as_dir" && as_dir=.
2576    # Account for people who put trailing slashes in PATH elements.
2577case $as_dir/ in #((
2578  ./ | .// | /[cC]/* | \
2579  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2580  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2581  /usr/ucb/* ) ;;
2582  *)
2583    # OSF1 and SCO ODT 3.0 have their own names for install.
2584    # Don't use installbsd from OSF since it installs stuff as root
2585    # by default.
2586    for ac_prog in ginstall scoinst install; do
2587      for ac_exec_ext in '' $ac_executable_extensions; do
2588	if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2589	  if test $ac_prog = install &&
2590	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2591	    # AIX install.  It has an incompatible calling convention.
2592	    :
2593	  elif test $ac_prog = install &&
2594	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2595	    # program-specific install script used by HP pwplus--don't use.
2596	    :
2597	  else
2598	    rm -rf conftest.one conftest.two conftest.dir
2599	    echo one > conftest.one
2600	    echo two > conftest.two
2601	    mkdir conftest.dir
2602	    if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2603	      test -s conftest.one && test -s conftest.two &&
2604	      test -s conftest.dir/conftest.one &&
2605	      test -s conftest.dir/conftest.two
2606	    then
2607	      ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2608	      break 3
2609	    fi
2610	  fi
2611	fi
2612      done
2613    done
2614    ;;
2615esac
2616
2617  done
2618IFS=$as_save_IFS
2619
2620rm -rf conftest.one conftest.two conftest.dir
2621
2622fi
2623  if test "${ac_cv_path_install+set}" = set; then
2624    INSTALL=$ac_cv_path_install
2625  else
2626    # As a last resort, use the slow shell script.  Don't cache a
2627    # value for INSTALL within a source directory, because that will
2628    # break other packages using the cache if that directory is
2629    # removed, or if the value is a relative name.
2630    INSTALL=$ac_install_sh
2631  fi
2632fi
2633{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2634$as_echo "$INSTALL" >&6; }
2635
2636# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2637# It thinks the first close brace ends the variable substitution.
2638test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2639
2640test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2641
2642test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2643
2644{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2645$as_echo_n "checking whether build environment is sane... " >&6; }
2646# Reject unsafe characters in $srcdir or the absolute working directory
2647# name.  Accept space and tab only in the latter.
2648am_lf='
2649'
2650case `pwd` in
2651  *[\\\"\#\$\&\'\`$am_lf]*)
2652    as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2653esac
2654case $srcdir in
2655  *[\\\"\#\$\&\'\`$am_lf\ \	]*)
2656    as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2657esac
2658
2659# Do 'set' in a subshell so we don't clobber the current shell's
2660# arguments.  Must try -L first in case configure is actually a
2661# symlink; some systems play weird games with the mod time of symlinks
2662# (eg FreeBSD returns the mod time of the symlink's containing
2663# directory).
2664if (
2665   am_has_slept=no
2666   for am_try in 1 2; do
2667     echo "timestamp, slept: $am_has_slept" > conftest.file
2668     set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2669     if test "$*" = "X"; then
2670	# -L didn't work.
2671	set X `ls -t "$srcdir/configure" conftest.file`
2672     fi
2673     if test "$*" != "X $srcdir/configure conftest.file" \
2674	&& test "$*" != "X conftest.file $srcdir/configure"; then
2675
2676	# If neither matched, then we have a broken ls.  This can happen
2677	# if, for instance, CONFIG_SHELL is bash and it inherits a
2678	# broken ls alias from the environment.  This has actually
2679	# happened.  Such a system could not be considered "sane".
2680	as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
2681  alias in your environment" "$LINENO" 5
2682     fi
2683     if test "$2" = conftest.file || test $am_try -eq 2; then
2684       break
2685     fi
2686     # Just in case.
2687     sleep 1
2688     am_has_slept=yes
2689   done
2690   test "$2" = conftest.file
2691   )
2692then
2693   # Ok.
2694   :
2695else
2696   as_fn_error $? "newly created file is older than distributed files!
2697Check your system clock" "$LINENO" 5
2698fi
2699{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2700$as_echo "yes" >&6; }
2701# If we didn't sleep, we still need to ensure time stamps of config.status and
2702# generated files are strictly newer.
2703am_sleep_pid=
2704if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2705  ( sleep 1 ) &
2706  am_sleep_pid=$!
2707fi
2708
2709rm -f conftest.file
2710
2711test "$program_prefix" != NONE &&
2712  program_transform_name="s&^&$program_prefix&;$program_transform_name"
2713# Use a double $ so make ignores it.
2714test "$program_suffix" != NONE &&
2715  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2716# Double any \ or $.
2717# By default was `s,x,x', remove it if useless.
2718ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2719program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2720
2721# Expand $ac_aux_dir to an absolute path.
2722am_aux_dir=`cd "$ac_aux_dir" && pwd`
2723
2724if test x"${MISSING+set}" != xset; then
2725  case $am_aux_dir in
2726  *\ * | *\	*)
2727    MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2728  *)
2729    MISSING="\${SHELL} $am_aux_dir/missing" ;;
2730  esac
2731fi
2732# Use eval to expand $SHELL
2733if eval "$MISSING --is-lightweight"; then
2734  am_missing_run="$MISSING "
2735else
2736  am_missing_run=
2737  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2738$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2739fi
2740
2741if test x"${install_sh+set}" != xset; then
2742  case $am_aux_dir in
2743  *\ * | *\	*)
2744    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2745  *)
2746    install_sh="\${SHELL} $am_aux_dir/install-sh"
2747  esac
2748fi
2749
2750# Installed binaries are usually stripped using 'strip' when the user
2751# run "make install-strip".  However 'strip' might not be the right
2752# tool to use in cross-compilation environments, therefore Automake
2753# will honor the 'STRIP' environment variable to overrule this program.
2754if test "$cross_compiling" != no; then
2755  if test -n "$ac_tool_prefix"; then
2756  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2757set dummy ${ac_tool_prefix}strip; ac_word=$2
2758{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2759$as_echo_n "checking for $ac_word... " >&6; }
2760if ${ac_cv_prog_STRIP+:} false; then :
2761  $as_echo_n "(cached) " >&6
2762else
2763  if test -n "$STRIP"; then
2764  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2765else
2766as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2767for as_dir in $PATH
2768do
2769  IFS=$as_save_IFS
2770  test -z "$as_dir" && as_dir=.
2771    for ac_exec_ext in '' $ac_executable_extensions; do
2772  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2773    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2774    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2775    break 2
2776  fi
2777done
2778  done
2779IFS=$as_save_IFS
2780
2781fi
2782fi
2783STRIP=$ac_cv_prog_STRIP
2784if test -n "$STRIP"; then
2785  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2786$as_echo "$STRIP" >&6; }
2787else
2788  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2789$as_echo "no" >&6; }
2790fi
2791
2792
2793fi
2794if test -z "$ac_cv_prog_STRIP"; then
2795  ac_ct_STRIP=$STRIP
2796  # Extract the first word of "strip", so it can be a program name with args.
2797set dummy strip; ac_word=$2
2798{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2799$as_echo_n "checking for $ac_word... " >&6; }
2800if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2801  $as_echo_n "(cached) " >&6
2802else
2803  if test -n "$ac_ct_STRIP"; then
2804  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2805else
2806as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2807for as_dir in $PATH
2808do
2809  IFS=$as_save_IFS
2810  test -z "$as_dir" && as_dir=.
2811    for ac_exec_ext in '' $ac_executable_extensions; do
2812  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2813    ac_cv_prog_ac_ct_STRIP="strip"
2814    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2815    break 2
2816  fi
2817done
2818  done
2819IFS=$as_save_IFS
2820
2821fi
2822fi
2823ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2824if test -n "$ac_ct_STRIP"; then
2825  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2826$as_echo "$ac_ct_STRIP" >&6; }
2827else
2828  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2829$as_echo "no" >&6; }
2830fi
2831
2832  if test "x$ac_ct_STRIP" = x; then
2833    STRIP=":"
2834  else
2835    case $cross_compiling:$ac_tool_warned in
2836yes:)
2837{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2838$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2839ac_tool_warned=yes ;;
2840esac
2841    STRIP=$ac_ct_STRIP
2842  fi
2843else
2844  STRIP="$ac_cv_prog_STRIP"
2845fi
2846
2847fi
2848INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2849
2850{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2851$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2852if test -z "$MKDIR_P"; then
2853  if ${ac_cv_path_mkdir+:} false; then :
2854  $as_echo_n "(cached) " >&6
2855else
2856  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2857for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2858do
2859  IFS=$as_save_IFS
2860  test -z "$as_dir" && as_dir=.
2861    for ac_prog in mkdir gmkdir; do
2862	 for ac_exec_ext in '' $ac_executable_extensions; do
2863	   as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2864	   case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2865	     'mkdir (GNU coreutils) '* | \
2866	     'mkdir (coreutils) '* | \
2867	     'mkdir (fileutils) '4.1*)
2868	       ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2869	       break 3;;
2870	   esac
2871	 done
2872       done
2873  done
2874IFS=$as_save_IFS
2875
2876fi
2877
2878  test -d ./--version && rmdir ./--version
2879  if test "${ac_cv_path_mkdir+set}" = set; then
2880    MKDIR_P="$ac_cv_path_mkdir -p"
2881  else
2882    # As a last resort, use the slow shell script.  Don't cache a
2883    # value for MKDIR_P within a source directory, because that will
2884    # break other packages using the cache if that directory is
2885    # removed, or if the value is a relative name.
2886    MKDIR_P="$ac_install_sh -d"
2887  fi
2888fi
2889{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2890$as_echo "$MKDIR_P" >&6; }
2891
2892for ac_prog in gawk mawk nawk awk
2893do
2894  # Extract the first word of "$ac_prog", so it can be a program name with args.
2895set dummy $ac_prog; ac_word=$2
2896{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2897$as_echo_n "checking for $ac_word... " >&6; }
2898if ${ac_cv_prog_AWK+:} false; then :
2899  $as_echo_n "(cached) " >&6
2900else
2901  if test -n "$AWK"; then
2902  ac_cv_prog_AWK="$AWK" # Let the user override the test.
2903else
2904as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2905for as_dir in $PATH
2906do
2907  IFS=$as_save_IFS
2908  test -z "$as_dir" && as_dir=.
2909    for ac_exec_ext in '' $ac_executable_extensions; do
2910  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2911    ac_cv_prog_AWK="$ac_prog"
2912    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2913    break 2
2914  fi
2915done
2916  done
2917IFS=$as_save_IFS
2918
2919fi
2920fi
2921AWK=$ac_cv_prog_AWK
2922if test -n "$AWK"; then
2923  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2924$as_echo "$AWK" >&6; }
2925else
2926  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2927$as_echo "no" >&6; }
2928fi
2929
2930
2931  test -n "$AWK" && break
2932done
2933
2934{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2935$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2936set x ${MAKE-make}
2937ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2938if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2939  $as_echo_n "(cached) " >&6
2940else
2941  cat >conftest.make <<\_ACEOF
2942SHELL = /bin/sh
2943all:
2944	@echo '@@@%%%=$(MAKE)=@@@%%%'
2945_ACEOF
2946# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2947case `${MAKE-make} -f conftest.make 2>/dev/null` in
2948  *@@@%%%=?*=@@@%%%*)
2949    eval ac_cv_prog_make_${ac_make}_set=yes;;
2950  *)
2951    eval ac_cv_prog_make_${ac_make}_set=no;;
2952esac
2953rm -f conftest.make
2954fi
2955if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2956  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2957$as_echo "yes" >&6; }
2958  SET_MAKE=
2959else
2960  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2961$as_echo "no" >&6; }
2962  SET_MAKE="MAKE=${MAKE-make}"
2963fi
2964
2965rm -rf .tst 2>/dev/null
2966mkdir .tst 2>/dev/null
2967if test -d .tst; then
2968  am__leading_dot=.
2969else
2970  am__leading_dot=_
2971fi
2972rmdir .tst 2>/dev/null
2973
2974# Check whether --enable-silent-rules was given.
2975if test "${enable_silent_rules+set}" = set; then :
2976  enableval=$enable_silent_rules;
2977fi
2978
2979case $enable_silent_rules in # (((
2980  yes) AM_DEFAULT_VERBOSITY=0;;
2981   no) AM_DEFAULT_VERBOSITY=1;;
2982    *) AM_DEFAULT_VERBOSITY=1;;
2983esac
2984am_make=${MAKE-make}
2985{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
2986$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
2987if ${am_cv_make_support_nested_variables+:} false; then :
2988  $as_echo_n "(cached) " >&6
2989else
2990  if $as_echo 'TRUE=$(BAR$(V))
2991BAR0=false
2992BAR1=true
2993V=1
2994am__doit:
2995	@$(TRUE)
2996.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
2997  am_cv_make_support_nested_variables=yes
2998else
2999  am_cv_make_support_nested_variables=no
3000fi
3001fi
3002{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3003$as_echo "$am_cv_make_support_nested_variables" >&6; }
3004if test $am_cv_make_support_nested_variables = yes; then
3005    AM_V='$(V)'
3006  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3007else
3008  AM_V=$AM_DEFAULT_VERBOSITY
3009  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3010fi
3011AM_BACKSLASH='\'
3012
3013if test "`cd $srcdir && pwd`" != "`pwd`"; then
3014  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3015  # is not polluted with repeated "-I."
3016  am__isrc=' -I$(srcdir)'
3017  # test to see if srcdir already configured
3018  if test -f $srcdir/config.status; then
3019    as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3020  fi
3021fi
3022
3023# test whether we have cygpath
3024if test -z "$CYGPATH_W"; then
3025  if (cygpath --version) >/dev/null 2>/dev/null; then
3026    CYGPATH_W='cygpath -w'
3027  else
3028    CYGPATH_W=echo
3029  fi
3030fi
3031
3032
3033# Define the identity of the package.
3034 PACKAGE='gource'
3035 VERSION='0.51'
3036
3037
3038cat >>confdefs.h <<_ACEOF
3039#define PACKAGE "$PACKAGE"
3040_ACEOF
3041
3042
3043cat >>confdefs.h <<_ACEOF
3044#define VERSION "$VERSION"
3045_ACEOF
3046
3047# Some tools Automake needs.
3048
3049ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3050
3051
3052AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3053
3054
3055AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3056
3057
3058AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3059
3060
3061MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3062
3063# For better backward compatibility.  To be removed once Automake 1.9.x
3064# dies out for good.  For more background, see:
3065# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3066# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3067mkdir_p='$(MKDIR_P)'
3068
3069# We need awk for the "check" target (and possibly the TAP driver).  The
3070# system "awk" is bad on some platforms.
3071# Always define AMTAR for backward compatibility.  Yes, it's still used
3072# in the wild :-(  We should find a proper way to deprecate it ...
3073AMTAR='$${TAR-tar}'
3074
3075
3076# We'll loop over all known methods to create a tar archive until one works.
3077_am_tools='gnutar  pax cpio none'
3078
3079am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3080
3081
3082
3083
3084
3085
3086# POSIX will say in a future version that running "rm -f" with no argument
3087# is OK; and we want to be able to make that assumption in our Makefile
3088# recipes.  So use an aggressive probe to check that the usage we want is
3089# actually supported "in the wild" to an acceptable degree.
3090# See automake bug#10828.
3091# To make any issue more visible, cause the running configure to be aborted
3092# by default if the 'rm' program in use doesn't match our expectations; the
3093# user can still override this though.
3094if rm -f && rm -fr && rm -rf; then : OK; else
3095  cat >&2 <<'END'
3096Oops!
3097
3098Your 'rm' program seems unable to run without file operands specified
3099on the command line, even when the '-f' option is present.  This is contrary
3100to the behaviour of most rm programs out there, and not conforming with
3101the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3102
3103Please tell bug-automake@gnu.org about your system, including the value
3104of your $PATH and any error possibly output before this message.  This
3105can help us improve future automake versions.
3106
3107END
3108  if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3109    echo 'Configuration will proceed anyway, since you have set the' >&2
3110    echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3111    echo >&2
3112  else
3113    cat >&2 <<'END'
3114Aborting the configuration process, to ensure you take notice of the issue.
3115
3116You can download and install GNU coreutils to get an 'rm' implementation
3117that behaves properly: <http://www.gnu.org/software/coreutils/>.
3118
3119If you want to complete the configuration process using your problematic
3120'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3121to "yes", and re-run configure.
3122
3123END
3124    as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3125  fi
3126fi
3127
3128
3129# Make sure we can run config.sub.
3130$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3131  as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3132
3133{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3134$as_echo_n "checking build system type... " >&6; }
3135if ${ac_cv_build+:} false; then :
3136  $as_echo_n "(cached) " >&6
3137else
3138  ac_build_alias=$build_alias
3139test "x$ac_build_alias" = x &&
3140  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3141test "x$ac_build_alias" = x &&
3142  as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
3143ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3144  as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3145
3146fi
3147{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3148$as_echo "$ac_cv_build" >&6; }
3149case $ac_cv_build in
3150*-*-*) ;;
3151*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
3152esac
3153build=$ac_cv_build
3154ac_save_IFS=$IFS; IFS='-'
3155set x $ac_cv_build
3156shift
3157build_cpu=$1
3158build_vendor=$2
3159shift; shift
3160# Remember, the first character of IFS is used to create $*,
3161# except with old shells:
3162build_os=$*
3163IFS=$ac_save_IFS
3164case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3165
3166
3167{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3168$as_echo_n "checking host system type... " >&6; }
3169if ${ac_cv_host+:} false; then :
3170  $as_echo_n "(cached) " >&6
3171else
3172  if test "x$host_alias" = x; then
3173  ac_cv_host=$ac_cv_build
3174else
3175  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3176    as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3177fi
3178
3179fi
3180{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3181$as_echo "$ac_cv_host" >&6; }
3182case $ac_cv_host in
3183*-*-*) ;;
3184*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
3185esac
3186host=$ac_cv_host
3187ac_save_IFS=$IFS; IFS='-'
3188set x $ac_cv_host
3189shift
3190host_cpu=$1
3191host_vendor=$2
3192shift; shift
3193# Remember, the first character of IFS is used to create $*,
3194# except with old shells:
3195host_os=$*
3196IFS=$ac_save_IFS
3197case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3198
3199
3200
3201# Checks for programs.
3202ac_ext=cpp
3203ac_cpp='$CXXCPP $CPPFLAGS'
3204ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3205ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3206ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3207if test -z "$CXX"; then
3208  if test -n "$CCC"; then
3209    CXX=$CCC
3210  else
3211    if test -n "$ac_tool_prefix"; then
3212  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3213  do
3214    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3215set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3216{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3217$as_echo_n "checking for $ac_word... " >&6; }
3218if ${ac_cv_prog_CXX+:} false; then :
3219  $as_echo_n "(cached) " >&6
3220else
3221  if test -n "$CXX"; then
3222  ac_cv_prog_CXX="$CXX" # Let the user override the test.
3223else
3224as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3225for as_dir in $PATH
3226do
3227  IFS=$as_save_IFS
3228  test -z "$as_dir" && as_dir=.
3229    for ac_exec_ext in '' $ac_executable_extensions; do
3230  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3231    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3232    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3233    break 2
3234  fi
3235done
3236  done
3237IFS=$as_save_IFS
3238
3239fi
3240fi
3241CXX=$ac_cv_prog_CXX
3242if test -n "$CXX"; then
3243  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
3244$as_echo "$CXX" >&6; }
3245else
3246  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3247$as_echo "no" >&6; }
3248fi
3249
3250
3251    test -n "$CXX" && break
3252  done
3253fi
3254if test -z "$CXX"; then
3255  ac_ct_CXX=$CXX
3256  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3257do
3258  # Extract the first word of "$ac_prog", so it can be a program name with args.
3259set dummy $ac_prog; ac_word=$2
3260{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3261$as_echo_n "checking for $ac_word... " >&6; }
3262if ${ac_cv_prog_ac_ct_CXX+:} false; then :
3263  $as_echo_n "(cached) " >&6
3264else
3265  if test -n "$ac_ct_CXX"; then
3266  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3267else
3268as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3269for as_dir in $PATH
3270do
3271  IFS=$as_save_IFS
3272  test -z "$as_dir" && as_dir=.
3273    for ac_exec_ext in '' $ac_executable_extensions; do
3274  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3275    ac_cv_prog_ac_ct_CXX="$ac_prog"
3276    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3277    break 2
3278  fi
3279done
3280  done
3281IFS=$as_save_IFS
3282
3283fi
3284fi
3285ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3286if test -n "$ac_ct_CXX"; then
3287  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
3288$as_echo "$ac_ct_CXX" >&6; }
3289else
3290  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3291$as_echo "no" >&6; }
3292fi
3293
3294
3295  test -n "$ac_ct_CXX" && break
3296done
3297
3298  if test "x$ac_ct_CXX" = x; then
3299    CXX="g++"
3300  else
3301    case $cross_compiling:$ac_tool_warned in
3302yes:)
3303{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3304$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3305ac_tool_warned=yes ;;
3306esac
3307    CXX=$ac_ct_CXX
3308  fi
3309fi
3310
3311  fi
3312fi
3313# Provide some information about the compiler.
3314$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
3315set X $ac_compile
3316ac_compiler=$2
3317for ac_option in --version -v -V -qversion; do
3318  { { ac_try="$ac_compiler $ac_option >&5"
3319case "(($ac_try" in
3320  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3321  *) ac_try_echo=$ac_try;;
3322esac
3323eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3324$as_echo "$ac_try_echo"; } >&5
3325  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3326  ac_status=$?
3327  if test -s conftest.err; then
3328    sed '10a\
3329... rest of stderr output deleted ...
3330         10q' conftest.err >conftest.er1
3331    cat conftest.er1 >&5
3332  fi
3333  rm -f conftest.er1 conftest.err
3334  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3335  test $ac_status = 0; }
3336done
3337
3338cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3339/* end confdefs.h.  */
3340
3341int
3342main ()
3343{
3344
3345  ;
3346  return 0;
3347}
3348_ACEOF
3349ac_clean_files_save=$ac_clean_files
3350ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3351# Try to create an executable without -o first, disregard a.out.
3352# It will help us diagnose broken compilers, and finding out an intuition
3353# of exeext.
3354{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C++ compiler works" >&5
3355$as_echo_n "checking whether the C++ compiler works... " >&6; }
3356ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3357
3358# The possible output files:
3359ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3360
3361ac_rmfiles=
3362for ac_file in $ac_files
3363do
3364  case $ac_file in
3365    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3366    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3367  esac
3368done
3369rm -f $ac_rmfiles
3370
3371if { { ac_try="$ac_link_default"
3372case "(($ac_try" in
3373  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3374  *) ac_try_echo=$ac_try;;
3375esac
3376eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3377$as_echo "$ac_try_echo"; } >&5
3378  (eval "$ac_link_default") 2>&5
3379  ac_status=$?
3380  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3381  test $ac_status = 0; }; then :
3382  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3383# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3384# in a Makefile.  We should not override ac_cv_exeext if it was cached,
3385# so that the user can short-circuit this test for compilers unknown to
3386# Autoconf.
3387for ac_file in $ac_files ''
3388do
3389  test -f "$ac_file" || continue
3390  case $ac_file in
3391    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3392	;;
3393    [ab].out )
3394	# We found the default executable, but exeext='' is most
3395	# certainly right.
3396	break;;
3397    *.* )
3398	if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3399	then :; else
3400	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3401	fi
3402	# We set ac_cv_exeext here because the later test for it is not
3403	# safe: cross compilers may not add the suffix if given an `-o'
3404	# argument, so we may need to know it at that point already.
3405	# Even if this section looks crufty: it has the advantage of
3406	# actually working.
3407	break;;
3408    * )
3409	break;;
3410  esac
3411done
3412test "$ac_cv_exeext" = no && ac_cv_exeext=
3413
3414else
3415  ac_file=''
3416fi
3417if test -z "$ac_file"; then :
3418  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3419$as_echo "no" >&6; }
3420$as_echo "$as_me: failed program was:" >&5
3421sed 's/^/| /' conftest.$ac_ext >&5
3422
3423{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3424$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3425as_fn_error 77 "C++ compiler cannot create executables
3426See \`config.log' for more details" "$LINENO" 5; }
3427else
3428  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3429$as_echo "yes" >&6; }
3430fi
3431{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler default output file name" >&5
3432$as_echo_n "checking for C++ compiler default output file name... " >&6; }
3433{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3434$as_echo "$ac_file" >&6; }
3435ac_exeext=$ac_cv_exeext
3436
3437rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3438ac_clean_files=$ac_clean_files_save
3439{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3440$as_echo_n "checking for suffix of executables... " >&6; }
3441if { { ac_try="$ac_link"
3442case "(($ac_try" in
3443  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3444  *) ac_try_echo=$ac_try;;
3445esac
3446eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3447$as_echo "$ac_try_echo"; } >&5
3448  (eval "$ac_link") 2>&5
3449  ac_status=$?
3450  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3451  test $ac_status = 0; }; then :
3452  # If both `conftest.exe' and `conftest' are `present' (well, observable)
3453# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3454# work properly (i.e., refer to `conftest.exe'), while it won't with
3455# `rm'.
3456for ac_file in conftest.exe conftest conftest.*; do
3457  test -f "$ac_file" || continue
3458  case $ac_file in
3459    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3460    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3461	  break;;
3462    * ) break;;
3463  esac
3464done
3465else
3466  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3467$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3468as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3469See \`config.log' for more details" "$LINENO" 5; }
3470fi
3471rm -f conftest conftest$ac_cv_exeext
3472{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3473$as_echo "$ac_cv_exeext" >&6; }
3474
3475rm -f conftest.$ac_ext
3476EXEEXT=$ac_cv_exeext
3477ac_exeext=$EXEEXT
3478cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3479/* end confdefs.h.  */
3480#include <stdio.h>
3481int
3482main ()
3483{
3484FILE *f = fopen ("conftest.out", "w");
3485 return ferror (f) || fclose (f) != 0;
3486
3487  ;
3488  return 0;
3489}
3490_ACEOF
3491ac_clean_files="$ac_clean_files conftest.out"
3492# Check that the compiler produces executables we can run.  If not, either
3493# the compiler is broken, or we cross compile.
3494{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3495$as_echo_n "checking whether we are cross compiling... " >&6; }
3496if test "$cross_compiling" != yes; then
3497  { { ac_try="$ac_link"
3498case "(($ac_try" in
3499  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3500  *) ac_try_echo=$ac_try;;
3501esac
3502eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3503$as_echo "$ac_try_echo"; } >&5
3504  (eval "$ac_link") 2>&5
3505  ac_status=$?
3506  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3507  test $ac_status = 0; }
3508  if { ac_try='./conftest$ac_cv_exeext'
3509  { { case "(($ac_try" in
3510  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3511  *) ac_try_echo=$ac_try;;
3512esac
3513eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3514$as_echo "$ac_try_echo"; } >&5
3515  (eval "$ac_try") 2>&5
3516  ac_status=$?
3517  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3518  test $ac_status = 0; }; }; then
3519    cross_compiling=no
3520  else
3521    if test "$cross_compiling" = maybe; then
3522	cross_compiling=yes
3523    else
3524	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3525$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3526as_fn_error $? "cannot run C++ compiled programs.
3527If you meant to cross compile, use \`--host'.
3528See \`config.log' for more details" "$LINENO" 5; }
3529    fi
3530  fi
3531fi
3532{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3533$as_echo "$cross_compiling" >&6; }
3534
3535rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3536ac_clean_files=$ac_clean_files_save
3537{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3538$as_echo_n "checking for suffix of object files... " >&6; }
3539if ${ac_cv_objext+:} false; then :
3540  $as_echo_n "(cached) " >&6
3541else
3542  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3543/* end confdefs.h.  */
3544
3545int
3546main ()
3547{
3548
3549  ;
3550  return 0;
3551}
3552_ACEOF
3553rm -f conftest.o conftest.obj
3554if { { ac_try="$ac_compile"
3555case "(($ac_try" in
3556  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3557  *) ac_try_echo=$ac_try;;
3558esac
3559eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3560$as_echo "$ac_try_echo"; } >&5
3561  (eval "$ac_compile") 2>&5
3562  ac_status=$?
3563  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3564  test $ac_status = 0; }; then :
3565  for ac_file in conftest.o conftest.obj conftest.*; do
3566  test -f "$ac_file" || continue;
3567  case $ac_file in
3568    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3569    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3570       break;;
3571  esac
3572done
3573else
3574  $as_echo "$as_me: failed program was:" >&5
3575sed 's/^/| /' conftest.$ac_ext >&5
3576
3577{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3578$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3579as_fn_error $? "cannot compute suffix of object files: cannot compile
3580See \`config.log' for more details" "$LINENO" 5; }
3581fi
3582rm -f conftest.$ac_cv_objext conftest.$ac_ext
3583fi
3584{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3585$as_echo "$ac_cv_objext" >&6; }
3586OBJEXT=$ac_cv_objext
3587ac_objext=$OBJEXT
3588{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
3589$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
3590if ${ac_cv_cxx_compiler_gnu+:} false; then :
3591  $as_echo_n "(cached) " >&6
3592else
3593  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3594/* end confdefs.h.  */
3595
3596int
3597main ()
3598{
3599#ifndef __GNUC__
3600       choke me
3601#endif
3602
3603  ;
3604  return 0;
3605}
3606_ACEOF
3607if ac_fn_cxx_try_compile "$LINENO"; then :
3608  ac_compiler_gnu=yes
3609else
3610  ac_compiler_gnu=no
3611fi
3612rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3613ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3614
3615fi
3616{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
3617$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
3618if test $ac_compiler_gnu = yes; then
3619  GXX=yes
3620else
3621  GXX=
3622fi
3623ac_test_CXXFLAGS=${CXXFLAGS+set}
3624ac_save_CXXFLAGS=$CXXFLAGS
3625{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
3626$as_echo_n "checking whether $CXX accepts -g... " >&6; }
3627if ${ac_cv_prog_cxx_g+:} false; then :
3628  $as_echo_n "(cached) " >&6
3629else
3630  ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3631   ac_cxx_werror_flag=yes
3632   ac_cv_prog_cxx_g=no
3633   CXXFLAGS="-g"
3634   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3635/* end confdefs.h.  */
3636
3637int
3638main ()
3639{
3640
3641  ;
3642  return 0;
3643}
3644_ACEOF
3645if ac_fn_cxx_try_compile "$LINENO"; then :
3646  ac_cv_prog_cxx_g=yes
3647else
3648  CXXFLAGS=""
3649      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3650/* end confdefs.h.  */
3651
3652int
3653main ()
3654{
3655
3656  ;
3657  return 0;
3658}
3659_ACEOF
3660if ac_fn_cxx_try_compile "$LINENO"; then :
3661
3662else
3663  ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3664	 CXXFLAGS="-g"
3665	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3666/* end confdefs.h.  */
3667
3668int
3669main ()
3670{
3671
3672  ;
3673  return 0;
3674}
3675_ACEOF
3676if ac_fn_cxx_try_compile "$LINENO"; then :
3677  ac_cv_prog_cxx_g=yes
3678fi
3679rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3680fi
3681rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3682fi
3683rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3684   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3685fi
3686{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
3687$as_echo "$ac_cv_prog_cxx_g" >&6; }
3688if test "$ac_test_CXXFLAGS" = set; then
3689  CXXFLAGS=$ac_save_CXXFLAGS
3690elif test $ac_cv_prog_cxx_g = yes; then
3691  if test "$GXX" = yes; then
3692    CXXFLAGS="-g -O2"
3693  else
3694    CXXFLAGS="-g"
3695  fi
3696else
3697  if test "$GXX" = yes; then
3698    CXXFLAGS="-O2"
3699  else
3700    CXXFLAGS=
3701  fi
3702fi
3703ac_ext=c
3704ac_cpp='$CPP $CPPFLAGS'
3705ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3706ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3707ac_compiler_gnu=$ac_cv_c_compiler_gnu
3708DEPDIR="${am__leading_dot}deps"
3709
3710ac_config_commands="$ac_config_commands depfiles"
3711
3712
3713am_make=${MAKE-make}
3714cat > confinc << 'END'
3715am__doit:
3716	@echo this is the am__doit target
3717.PHONY: am__doit
3718END
3719# If we don't find an include directive, just comment out the code.
3720{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3721$as_echo_n "checking for style of include used by $am_make... " >&6; }
3722am__include="#"
3723am__quote=
3724_am_result=none
3725# First try GNU make style include.
3726echo "include confinc" > confmf
3727# Ignore all kinds of additional output from 'make'.
3728case `$am_make -s -f confmf 2> /dev/null` in #(
3729*the\ am__doit\ target*)
3730  am__include=include
3731  am__quote=
3732  _am_result=GNU
3733  ;;
3734esac
3735# Now try BSD make style include.
3736if test "$am__include" = "#"; then
3737   echo '.include "confinc"' > confmf
3738   case `$am_make -s -f confmf 2> /dev/null` in #(
3739   *the\ am__doit\ target*)
3740     am__include=.include
3741     am__quote="\""
3742     _am_result=BSD
3743     ;;
3744   esac
3745fi
3746
3747
3748{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3749$as_echo "$_am_result" >&6; }
3750rm -f confinc confmf
3751
3752# Check whether --enable-dependency-tracking was given.
3753if test "${enable_dependency_tracking+set}" = set; then :
3754  enableval=$enable_dependency_tracking;
3755fi
3756
3757if test "x$enable_dependency_tracking" != xno; then
3758  am_depcomp="$ac_aux_dir/depcomp"
3759  AMDEPBACKSLASH='\'
3760  am__nodep='_no'
3761fi
3762 if test "x$enable_dependency_tracking" != xno; then
3763  AMDEP_TRUE=
3764  AMDEP_FALSE='#'
3765else
3766  AMDEP_TRUE='#'
3767  AMDEP_FALSE=
3768fi
3769
3770
3771
3772depcc="$CXX"  am_compiler_list=
3773
3774{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3775$as_echo_n "checking dependency style of $depcc... " >&6; }
3776if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
3777  $as_echo_n "(cached) " >&6
3778else
3779  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3780  # We make a subdir and do the tests there.  Otherwise we can end up
3781  # making bogus files that we don't know about and never remove.  For
3782  # instance it was reported that on HP-UX the gcc test will end up
3783  # making a dummy file named 'D' -- because '-MD' means "put the output
3784  # in D".
3785  rm -rf conftest.dir
3786  mkdir conftest.dir
3787  # Copy depcomp to subdir because otherwise we won't find it if we're
3788  # using a relative directory.
3789  cp "$am_depcomp" conftest.dir
3790  cd conftest.dir
3791  # We will build objects and dependencies in a subdirectory because
3792  # it helps to detect inapplicable dependency modes.  For instance
3793  # both Tru64's cc and ICC support -MD to output dependencies as a
3794  # side effect of compilation, but ICC will put the dependencies in
3795  # the current directory while Tru64 will put them in the object
3796  # directory.
3797  mkdir sub
3798
3799  am_cv_CXX_dependencies_compiler_type=none
3800  if test "$am_compiler_list" = ""; then
3801     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3802  fi
3803  am__universal=false
3804  case " $depcc " in #(
3805     *\ -arch\ *\ -arch\ *) am__universal=true ;;
3806     esac
3807
3808  for depmode in $am_compiler_list; do
3809    # Setup a source with many dependencies, because some compilers
3810    # like to wrap large dependency lists on column 80 (with \), and
3811    # we should not choose a depcomp mode which is confused by this.
3812    #
3813    # We need to recreate these files for each test, as the compiler may
3814    # overwrite some of them when testing with obscure command lines.
3815    # This happens at least with the AIX C compiler.
3816    : > sub/conftest.c
3817    for i in 1 2 3 4 5 6; do
3818      echo '#include "conftst'$i'.h"' >> sub/conftest.c
3819      # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
3820      # Solaris 10 /bin/sh.
3821      echo '/* dummy */' > sub/conftst$i.h
3822    done
3823    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3824
3825    # We check with '-c' and '-o' for the sake of the "dashmstdout"
3826    # mode.  It turns out that the SunPro C++ compiler does not properly
3827    # handle '-M -o', and we need to detect this.  Also, some Intel
3828    # versions had trouble with output in subdirs.
3829    am__obj=sub/conftest.${OBJEXT-o}
3830    am__minus_obj="-o $am__obj"
3831    case $depmode in
3832    gcc)
3833      # This depmode causes a compiler race in universal mode.
3834      test "$am__universal" = false || continue
3835      ;;
3836    nosideeffect)
3837      # After this tag, mechanisms are not by side-effect, so they'll
3838      # only be used when explicitly requested.
3839      if test "x$enable_dependency_tracking" = xyes; then
3840	continue
3841      else
3842	break
3843      fi
3844      ;;
3845    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
3846      # This compiler won't grok '-c -o', but also, the minuso test has
3847      # not run yet.  These depmodes are late enough in the game, and
3848      # so weak that their functioning should not be impacted.
3849      am__obj=conftest.${OBJEXT-o}
3850      am__minus_obj=
3851      ;;
3852    none) break ;;
3853    esac
3854    if depmode=$depmode \
3855       source=sub/conftest.c object=$am__obj \
3856       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3857       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3858         >/dev/null 2>conftest.err &&
3859       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3860       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3861       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3862       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3863      # icc doesn't choke on unknown options, it will just issue warnings
3864      # or remarks (even with -Werror).  So we grep stderr for any message
3865      # that says an option was ignored or not supported.
3866      # When given -MP, icc 7.0 and 7.1 complain thusly:
3867      #   icc: Command line warning: ignoring option '-M'; no argument required
3868      # The diagnosis changed in icc 8.0:
3869      #   icc: Command line remark: option '-MP' not supported
3870      if (grep 'ignoring option' conftest.err ||
3871          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3872        am_cv_CXX_dependencies_compiler_type=$depmode
3873        break
3874      fi
3875    fi
3876  done
3877
3878  cd ..
3879  rm -rf conftest.dir
3880else
3881  am_cv_CXX_dependencies_compiler_type=none
3882fi
3883
3884fi
3885{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
3886$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
3887CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
3888
3889 if
3890  test "x$enable_dependency_tracking" != xno \
3891  && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
3892  am__fastdepCXX_TRUE=
3893  am__fastdepCXX_FALSE='#'
3894else
3895  am__fastdepCXX_TRUE='#'
3896  am__fastdepCXX_FALSE=
3897fi
3898
3899
3900ac_ext=cpp
3901ac_cpp='$CXXCPP $CPPFLAGS'
3902ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3903ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3904ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3905
3906
3907
3908for ac_func in timegm unsetenv
3909do :
3910  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
3911ac_fn_cxx_check_func "$LINENO" "$ac_func" "$as_ac_var"
3912if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
3913  cat >>confdefs.h <<_ACEOF
3914#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
3915_ACEOF
3916
3917fi
3918done
3919
3920
3921#Disable X11 on Macs unless required
3922if test "$with_x" != yes; then :
3923
3924    case "$host_os" in
3925    darwin*)
3926        with_x="no"
3927        LIBS="$LIBS -framework CoreFoundation"
3928    ;;
3929    esac
3930
3931fi
3932
3933#GL
3934ac_ext=cpp
3935ac_cpp='$CXXCPP $CPPFLAGS'
3936ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3937ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3938ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3939{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
3940$as_echo_n "checking how to run the C++ preprocessor... " >&6; }
3941if test -z "$CXXCPP"; then
3942  if ${ac_cv_prog_CXXCPP+:} false; then :
3943  $as_echo_n "(cached) " >&6
3944else
3945      # Double quotes because CXXCPP needs to be expanded
3946    for CXXCPP in "$CXX -E" "/lib/cpp"
3947    do
3948      ac_preproc_ok=false
3949for ac_cxx_preproc_warn_flag in '' yes
3950do
3951  # Use a header file that comes with gcc, so configuring glibc
3952  # with a fresh cross-compiler works.
3953  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3954  # <limits.h> exists even on freestanding compilers.
3955  # On the NeXT, cc -E runs the code through the compiler's parser,
3956  # not just through cpp. "Syntax error" is here to catch this case.
3957  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3958/* end confdefs.h.  */
3959#ifdef __STDC__
3960# include <limits.h>
3961#else
3962# include <assert.h>
3963#endif
3964		     Syntax error
3965_ACEOF
3966if ac_fn_cxx_try_cpp "$LINENO"; then :
3967
3968else
3969  # Broken: fails on valid input.
3970continue
3971fi
3972rm -f conftest.err conftest.i conftest.$ac_ext
3973
3974  # OK, works on sane cases.  Now check whether nonexistent headers
3975  # can be detected and how.
3976  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3977/* end confdefs.h.  */
3978#include <ac_nonexistent.h>
3979_ACEOF
3980if ac_fn_cxx_try_cpp "$LINENO"; then :
3981  # Broken: success on invalid input.
3982continue
3983else
3984  # Passes both tests.
3985ac_preproc_ok=:
3986break
3987fi
3988rm -f conftest.err conftest.i conftest.$ac_ext
3989
3990done
3991# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3992rm -f conftest.i conftest.err conftest.$ac_ext
3993if $ac_preproc_ok; then :
3994  break
3995fi
3996
3997    done
3998    ac_cv_prog_CXXCPP=$CXXCPP
3999
4000fi
4001  CXXCPP=$ac_cv_prog_CXXCPP
4002else
4003  ac_cv_prog_CXXCPP=$CXXCPP
4004fi
4005{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
4006$as_echo "$CXXCPP" >&6; }
4007ac_preproc_ok=false
4008for ac_cxx_preproc_warn_flag in '' yes
4009do
4010  # Use a header file that comes with gcc, so configuring glibc
4011  # with a fresh cross-compiler works.
4012  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4013  # <limits.h> exists even on freestanding compilers.
4014  # On the NeXT, cc -E runs the code through the compiler's parser,
4015  # not just through cpp. "Syntax error" is here to catch this case.
4016  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4017/* end confdefs.h.  */
4018#ifdef __STDC__
4019# include <limits.h>
4020#else
4021# include <assert.h>
4022#endif
4023		     Syntax error
4024_ACEOF
4025if ac_fn_cxx_try_cpp "$LINENO"; then :
4026
4027else
4028  # Broken: fails on valid input.
4029continue
4030fi
4031rm -f conftest.err conftest.i conftest.$ac_ext
4032
4033  # OK, works on sane cases.  Now check whether nonexistent headers
4034  # can be detected and how.
4035  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4036/* end confdefs.h.  */
4037#include <ac_nonexistent.h>
4038_ACEOF
4039if ac_fn_cxx_try_cpp "$LINENO"; then :
4040  # Broken: success on invalid input.
4041continue
4042else
4043  # Passes both tests.
4044ac_preproc_ok=:
4045break
4046fi
4047rm -f conftest.err conftest.i conftest.$ac_ext
4048
4049done
4050# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4051rm -f conftest.i conftest.err conftest.$ac_ext
4052if $ac_preproc_ok; then :
4053
4054else
4055  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4056$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4057as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
4058See \`config.log' for more details" "$LINENO" 5; }
4059fi
4060
4061ac_ext=cpp
4062ac_cpp='$CXXCPP $CPPFLAGS'
4063ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4064ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4065ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4066
4067
4068{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
4069$as_echo_n "checking for X... " >&6; }
4070
4071
4072# Check whether --with-x was given.
4073if test "${with_x+set}" = set; then :
4074  withval=$with_x;
4075fi
4076
4077# $have_x is `yes', `no', `disabled', or empty when we do not yet know.
4078if test "x$with_x" = xno; then
4079  # The user explicitly disabled X.
4080  have_x=disabled
4081else
4082  case $x_includes,$x_libraries in #(
4083    *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #(
4084    *,NONE | NONE,*) if ${ac_cv_have_x+:} false; then :
4085  $as_echo_n "(cached) " >&6
4086else
4087  # One or both of the vars are not set, and there is no cached value.
4088ac_x_includes=no ac_x_libraries=no
4089rm -f -r conftest.dir
4090if mkdir conftest.dir; then
4091  cd conftest.dir
4092  cat >Imakefile <<'_ACEOF'
4093incroot:
4094	@echo incroot='${INCROOT}'
4095usrlibdir:
4096	@echo usrlibdir='${USRLIBDIR}'
4097libdir:
4098	@echo libdir='${LIBDIR}'
4099_ACEOF
4100  if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
4101    # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
4102    for ac_var in incroot usrlibdir libdir; do
4103      eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
4104    done
4105    # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
4106    for ac_extension in a so sl dylib la dll; do
4107      if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
4108	 test -f "$ac_im_libdir/libX11.$ac_extension"; then
4109	ac_im_usrlibdir=$ac_im_libdir; break
4110      fi
4111    done
4112    # Screen out bogus values from the imake configuration.  They are
4113    # bogus both because they are the default anyway, and because
4114    # using them would break gcc on systems where it needs fixed includes.
4115    case $ac_im_incroot in
4116	/usr/include) ac_x_includes= ;;
4117	*) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
4118    esac
4119    case $ac_im_usrlibdir in
4120	/usr/lib | /usr/lib64 | /lib | /lib64) ;;
4121	*) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
4122    esac
4123  fi
4124  cd ..
4125  rm -f -r conftest.dir
4126fi
4127
4128# Standard set of common directories for X headers.
4129# Check X11 before X11Rn because it is often a symlink to the current release.
4130ac_x_header_dirs='
4131/usr/X11/include
4132/usr/X11R7/include
4133/usr/X11R6/include
4134/usr/X11R5/include
4135/usr/X11R4/include
4136
4137/usr/include/X11
4138/usr/include/X11R7
4139/usr/include/X11R6
4140/usr/include/X11R5
4141/usr/include/X11R4
4142
4143/usr/local/X11/include
4144/usr/local/X11R7/include
4145/usr/local/X11R6/include
4146/usr/local/X11R5/include
4147/usr/local/X11R4/include
4148
4149/usr/local/include/X11
4150/usr/local/include/X11R7
4151/usr/local/include/X11R6
4152/usr/local/include/X11R5
4153/usr/local/include/X11R4
4154
4155/usr/X386/include
4156/usr/x386/include
4157/usr/XFree86/include/X11
4158
4159/usr/include
4160/usr/local/include
4161/usr/unsupported/include
4162/usr/athena/include
4163/usr/local/x11r5/include
4164/usr/lpp/Xamples/include
4165
4166/usr/openwin/include
4167/usr/openwin/share/include'
4168
4169if test "$ac_x_includes" = no; then
4170  # Guess where to find include files, by looking for Xlib.h.
4171  # First, try using that file with no special directory specified.
4172  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4173/* end confdefs.h.  */
4174#include <X11/Xlib.h>
4175_ACEOF
4176if ac_fn_cxx_try_cpp "$LINENO"; then :
4177  # We can compile using X headers with no special include directory.
4178ac_x_includes=
4179else
4180  for ac_dir in $ac_x_header_dirs; do
4181  if test -r "$ac_dir/X11/Xlib.h"; then
4182    ac_x_includes=$ac_dir
4183    break
4184  fi
4185done
4186fi
4187rm -f conftest.err conftest.i conftest.$ac_ext
4188fi # $ac_x_includes = no
4189
4190if test "$ac_x_libraries" = no; then
4191  # Check for the libraries.
4192  # See if we find them without any special options.
4193  # Don't add to $LIBS permanently.
4194  ac_save_LIBS=$LIBS
4195  LIBS="-lX11 $LIBS"
4196  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4197/* end confdefs.h.  */
4198#include <X11/Xlib.h>
4199int
4200main ()
4201{
4202XrmInitialize ()
4203  ;
4204  return 0;
4205}
4206_ACEOF
4207if ac_fn_cxx_try_link "$LINENO"; then :
4208  LIBS=$ac_save_LIBS
4209# We can link X programs with no special library path.
4210ac_x_libraries=
4211else
4212  LIBS=$ac_save_LIBS
4213for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
4214do
4215  # Don't even attempt the hair of trying to link an X program!
4216  for ac_extension in a so sl dylib la dll; do
4217    if test -r "$ac_dir/libX11.$ac_extension"; then
4218      ac_x_libraries=$ac_dir
4219      break 2
4220    fi
4221  done
4222done
4223fi
4224rm -f core conftest.err conftest.$ac_objext \
4225    conftest$ac_exeext conftest.$ac_ext
4226fi # $ac_x_libraries = no
4227
4228case $ac_x_includes,$ac_x_libraries in #(
4229  no,* | *,no | *\'*)
4230    # Didn't find X, or a directory has "'" in its name.
4231    ac_cv_have_x="have_x=no";; #(
4232  *)
4233    # Record where we found X for the cache.
4234    ac_cv_have_x="have_x=yes\
4235	ac_x_includes='$ac_x_includes'\
4236	ac_x_libraries='$ac_x_libraries'"
4237esac
4238fi
4239;; #(
4240    *) have_x=yes;;
4241  esac
4242  eval "$ac_cv_have_x"
4243fi # $with_x != no
4244
4245if test "$have_x" != yes; then
4246  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
4247$as_echo "$have_x" >&6; }
4248  no_x=yes
4249else
4250  # If each of the values was on the command line, it overrides each guess.
4251  test "x$x_includes" = xNONE && x_includes=$ac_x_includes
4252  test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
4253  # Update the cache value to reflect the command line values.
4254  ac_cv_have_x="have_x=yes\
4255	ac_x_includes='$x_includes'\
4256	ac_x_libraries='$x_libraries'"
4257  { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
4258$as_echo "libraries $x_libraries, headers $x_includes" >&6; }
4259fi
4260
4261{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4262$as_echo_n "checking for a sed that does not truncate output... " >&6; }
4263if ${ac_cv_path_SED+:} false; then :
4264  $as_echo_n "(cached) " >&6
4265else
4266            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4267     for ac_i in 1 2 3 4 5 6 7; do
4268       ac_script="$ac_script$as_nl$ac_script"
4269     done
4270     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4271     { ac_script=; unset ac_script;}
4272     if test -z "$SED"; then
4273  ac_path_SED_found=false
4274  # Loop through the user's path and test for each of PROGNAME-LIST
4275  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4276for as_dir in $PATH
4277do
4278  IFS=$as_save_IFS
4279  test -z "$as_dir" && as_dir=.
4280    for ac_prog in sed gsed; do
4281    for ac_exec_ext in '' $ac_executable_extensions; do
4282      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4283      as_fn_executable_p "$ac_path_SED" || continue
4284# Check for GNU ac_path_SED and select it if it is found.
4285  # Check for GNU $ac_path_SED
4286case `"$ac_path_SED" --version 2>&1` in
4287*GNU*)
4288  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4289*)
4290  ac_count=0
4291  $as_echo_n 0123456789 >"conftest.in"
4292  while :
4293  do
4294    cat "conftest.in" "conftest.in" >"conftest.tmp"
4295    mv "conftest.tmp" "conftest.in"
4296    cp "conftest.in" "conftest.nl"
4297    $as_echo '' >> "conftest.nl"
4298    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4299    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4300    as_fn_arith $ac_count + 1 && ac_count=$as_val
4301    if test $ac_count -gt ${ac_path_SED_max-0}; then
4302      # Best one so far, save it but keep looking for a better one
4303      ac_cv_path_SED="$ac_path_SED"
4304      ac_path_SED_max=$ac_count
4305    fi
4306    # 10*(2^10) chars as input seems more than enough
4307    test $ac_count -gt 10 && break
4308  done
4309  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4310esac
4311
4312      $ac_path_SED_found && break 3
4313    done
4314  done
4315  done
4316IFS=$as_save_IFS
4317  if test -z "$ac_cv_path_SED"; then
4318    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4319  fi
4320else
4321  ac_cv_path_SED=$SED
4322fi
4323
4324fi
4325{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4326$as_echo "$ac_cv_path_SED" >&6; }
4327 SED="$ac_cv_path_SED"
4328  rm -f conftest.sed
4329
4330ac_ext=c
4331ac_cpp='$CPP $CPPFLAGS'
4332ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4333ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4334ac_compiler_gnu=$ac_cv_c_compiler_gnu
4335if test -n "$ac_tool_prefix"; then
4336  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4337set dummy ${ac_tool_prefix}gcc; ac_word=$2
4338{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4339$as_echo_n "checking for $ac_word... " >&6; }
4340if ${ac_cv_prog_CC+:} false; then :
4341  $as_echo_n "(cached) " >&6
4342else
4343  if test -n "$CC"; then
4344  ac_cv_prog_CC="$CC" # Let the user override the test.
4345else
4346as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4347for as_dir in $PATH
4348do
4349  IFS=$as_save_IFS
4350  test -z "$as_dir" && as_dir=.
4351    for ac_exec_ext in '' $ac_executable_extensions; do
4352  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4353    ac_cv_prog_CC="${ac_tool_prefix}gcc"
4354    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4355    break 2
4356  fi
4357done
4358  done
4359IFS=$as_save_IFS
4360
4361fi
4362fi
4363CC=$ac_cv_prog_CC
4364if test -n "$CC"; then
4365  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4366$as_echo "$CC" >&6; }
4367else
4368  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4369$as_echo "no" >&6; }
4370fi
4371
4372
4373fi
4374if test -z "$ac_cv_prog_CC"; then
4375  ac_ct_CC=$CC
4376  # Extract the first word of "gcc", so it can be a program name with args.
4377set dummy gcc; ac_word=$2
4378{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4379$as_echo_n "checking for $ac_word... " >&6; }
4380if ${ac_cv_prog_ac_ct_CC+:} false; then :
4381  $as_echo_n "(cached) " >&6
4382else
4383  if test -n "$ac_ct_CC"; then
4384  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4385else
4386as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4387for as_dir in $PATH
4388do
4389  IFS=$as_save_IFS
4390  test -z "$as_dir" && as_dir=.
4391    for ac_exec_ext in '' $ac_executable_extensions; do
4392  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4393    ac_cv_prog_ac_ct_CC="gcc"
4394    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4395    break 2
4396  fi
4397done
4398  done
4399IFS=$as_save_IFS
4400
4401fi
4402fi
4403ac_ct_CC=$ac_cv_prog_ac_ct_CC
4404if test -n "$ac_ct_CC"; then
4405  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4406$as_echo "$ac_ct_CC" >&6; }
4407else
4408  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4409$as_echo "no" >&6; }
4410fi
4411
4412  if test "x$ac_ct_CC" = x; then
4413    CC=""
4414  else
4415    case $cross_compiling:$ac_tool_warned in
4416yes:)
4417{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4418$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4419ac_tool_warned=yes ;;
4420esac
4421    CC=$ac_ct_CC
4422  fi
4423else
4424  CC="$ac_cv_prog_CC"
4425fi
4426
4427if test -z "$CC"; then
4428          if test -n "$ac_tool_prefix"; then
4429    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4430set dummy ${ac_tool_prefix}cc; ac_word=$2
4431{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4432$as_echo_n "checking for $ac_word... " >&6; }
4433if ${ac_cv_prog_CC+:} false; then :
4434  $as_echo_n "(cached) " >&6
4435else
4436  if test -n "$CC"; then
4437  ac_cv_prog_CC="$CC" # Let the user override the test.
4438else
4439as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4440for as_dir in $PATH
4441do
4442  IFS=$as_save_IFS
4443  test -z "$as_dir" && as_dir=.
4444    for ac_exec_ext in '' $ac_executable_extensions; do
4445  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4446    ac_cv_prog_CC="${ac_tool_prefix}cc"
4447    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4448    break 2
4449  fi
4450done
4451  done
4452IFS=$as_save_IFS
4453
4454fi
4455fi
4456CC=$ac_cv_prog_CC
4457if test -n "$CC"; then
4458  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4459$as_echo "$CC" >&6; }
4460else
4461  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4462$as_echo "no" >&6; }
4463fi
4464
4465
4466  fi
4467fi
4468if test -z "$CC"; then
4469  # Extract the first word of "cc", so it can be a program name with args.
4470set dummy cc; ac_word=$2
4471{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4472$as_echo_n "checking for $ac_word... " >&6; }
4473if ${ac_cv_prog_CC+:} false; then :
4474  $as_echo_n "(cached) " >&6
4475else
4476  if test -n "$CC"; then
4477  ac_cv_prog_CC="$CC" # Let the user override the test.
4478else
4479  ac_prog_rejected=no
4480as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4481for as_dir in $PATH
4482do
4483  IFS=$as_save_IFS
4484  test -z "$as_dir" && as_dir=.
4485    for ac_exec_ext in '' $ac_executable_extensions; do
4486  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4487    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4488       ac_prog_rejected=yes
4489       continue
4490     fi
4491    ac_cv_prog_CC="cc"
4492    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4493    break 2
4494  fi
4495done
4496  done
4497IFS=$as_save_IFS
4498
4499if test $ac_prog_rejected = yes; then
4500  # We found a bogon in the path, so make sure we never use it.
4501  set dummy $ac_cv_prog_CC
4502  shift
4503  if test $# != 0; then
4504    # We chose a different compiler from the bogus one.
4505    # However, it has the same basename, so the bogon will be chosen
4506    # first if we set CC to just the basename; use the full file name.
4507    shift
4508    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4509  fi
4510fi
4511fi
4512fi
4513CC=$ac_cv_prog_CC
4514if test -n "$CC"; then
4515  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4516$as_echo "$CC" >&6; }
4517else
4518  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4519$as_echo "no" >&6; }
4520fi
4521
4522
4523fi
4524if test -z "$CC"; then
4525  if test -n "$ac_tool_prefix"; then
4526  for ac_prog in cl.exe
4527  do
4528    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4529set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4530{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4531$as_echo_n "checking for $ac_word... " >&6; }
4532if ${ac_cv_prog_CC+:} false; then :
4533  $as_echo_n "(cached) " >&6
4534else
4535  if test -n "$CC"; then
4536  ac_cv_prog_CC="$CC" # Let the user override the test.
4537else
4538as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4539for as_dir in $PATH
4540do
4541  IFS=$as_save_IFS
4542  test -z "$as_dir" && as_dir=.
4543    for ac_exec_ext in '' $ac_executable_extensions; do
4544  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4545    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4546    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4547    break 2
4548  fi
4549done
4550  done
4551IFS=$as_save_IFS
4552
4553fi
4554fi
4555CC=$ac_cv_prog_CC
4556if test -n "$CC"; then
4557  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4558$as_echo "$CC" >&6; }
4559else
4560  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4561$as_echo "no" >&6; }
4562fi
4563
4564
4565    test -n "$CC" && break
4566  done
4567fi
4568if test -z "$CC"; then
4569  ac_ct_CC=$CC
4570  for ac_prog in cl.exe
4571do
4572  # Extract the first word of "$ac_prog", so it can be a program name with args.
4573set dummy $ac_prog; ac_word=$2
4574{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4575$as_echo_n "checking for $ac_word... " >&6; }
4576if ${ac_cv_prog_ac_ct_CC+:} false; then :
4577  $as_echo_n "(cached) " >&6
4578else
4579  if test -n "$ac_ct_CC"; then
4580  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4581else
4582as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4583for as_dir in $PATH
4584do
4585  IFS=$as_save_IFS
4586  test -z "$as_dir" && as_dir=.
4587    for ac_exec_ext in '' $ac_executable_extensions; do
4588  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4589    ac_cv_prog_ac_ct_CC="$ac_prog"
4590    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4591    break 2
4592  fi
4593done
4594  done
4595IFS=$as_save_IFS
4596
4597fi
4598fi
4599ac_ct_CC=$ac_cv_prog_ac_ct_CC
4600if test -n "$ac_ct_CC"; then
4601  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4602$as_echo "$ac_ct_CC" >&6; }
4603else
4604  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4605$as_echo "no" >&6; }
4606fi
4607
4608
4609  test -n "$ac_ct_CC" && break
4610done
4611
4612  if test "x$ac_ct_CC" = x; then
4613    CC=""
4614  else
4615    case $cross_compiling:$ac_tool_warned in
4616yes:)
4617{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4618$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4619ac_tool_warned=yes ;;
4620esac
4621    CC=$ac_ct_CC
4622  fi
4623fi
4624
4625fi
4626
4627
4628test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4629$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4630as_fn_error $? "no acceptable C compiler found in \$PATH
4631See \`config.log' for more details" "$LINENO" 5; }
4632
4633# Provide some information about the compiler.
4634$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4635set X $ac_compile
4636ac_compiler=$2
4637for ac_option in --version -v -V -qversion; do
4638  { { ac_try="$ac_compiler $ac_option >&5"
4639case "(($ac_try" in
4640  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4641  *) ac_try_echo=$ac_try;;
4642esac
4643eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4644$as_echo "$ac_try_echo"; } >&5
4645  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4646  ac_status=$?
4647  if test -s conftest.err; then
4648    sed '10a\
4649... rest of stderr output deleted ...
4650         10q' conftest.err >conftest.er1
4651    cat conftest.er1 >&5
4652  fi
4653  rm -f conftest.er1 conftest.err
4654  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4655  test $ac_status = 0; }
4656done
4657
4658{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4659$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4660if ${ac_cv_c_compiler_gnu+:} false; then :
4661  $as_echo_n "(cached) " >&6
4662else
4663  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4664/* end confdefs.h.  */
4665
4666int
4667main ()
4668{
4669#ifndef __GNUC__
4670       choke me
4671#endif
4672
4673  ;
4674  return 0;
4675}
4676_ACEOF
4677if ac_fn_c_try_compile "$LINENO"; then :
4678  ac_compiler_gnu=yes
4679else
4680  ac_compiler_gnu=no
4681fi
4682rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4683ac_cv_c_compiler_gnu=$ac_compiler_gnu
4684
4685fi
4686{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4687$as_echo "$ac_cv_c_compiler_gnu" >&6; }
4688if test $ac_compiler_gnu = yes; then
4689  GCC=yes
4690else
4691  GCC=
4692fi
4693ac_test_CFLAGS=${CFLAGS+set}
4694ac_save_CFLAGS=$CFLAGS
4695{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4696$as_echo_n "checking whether $CC accepts -g... " >&6; }
4697if ${ac_cv_prog_cc_g+:} false; then :
4698  $as_echo_n "(cached) " >&6
4699else
4700  ac_save_c_werror_flag=$ac_c_werror_flag
4701   ac_c_werror_flag=yes
4702   ac_cv_prog_cc_g=no
4703   CFLAGS="-g"
4704   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4705/* end confdefs.h.  */
4706
4707int
4708main ()
4709{
4710
4711  ;
4712  return 0;
4713}
4714_ACEOF
4715if ac_fn_c_try_compile "$LINENO"; then :
4716  ac_cv_prog_cc_g=yes
4717else
4718  CFLAGS=""
4719      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4720/* end confdefs.h.  */
4721
4722int
4723main ()
4724{
4725
4726  ;
4727  return 0;
4728}
4729_ACEOF
4730if ac_fn_c_try_compile "$LINENO"; then :
4731
4732else
4733  ac_c_werror_flag=$ac_save_c_werror_flag
4734	 CFLAGS="-g"
4735	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4736/* end confdefs.h.  */
4737
4738int
4739main ()
4740{
4741
4742  ;
4743  return 0;
4744}
4745_ACEOF
4746if ac_fn_c_try_compile "$LINENO"; then :
4747  ac_cv_prog_cc_g=yes
4748fi
4749rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4750fi
4751rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4752fi
4753rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4754   ac_c_werror_flag=$ac_save_c_werror_flag
4755fi
4756{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4757$as_echo "$ac_cv_prog_cc_g" >&6; }
4758if test "$ac_test_CFLAGS" = set; then
4759  CFLAGS=$ac_save_CFLAGS
4760elif test $ac_cv_prog_cc_g = yes; then
4761  if test "$GCC" = yes; then
4762    CFLAGS="-g -O2"
4763  else
4764    CFLAGS="-g"
4765  fi
4766else
4767  if test "$GCC" = yes; then
4768    CFLAGS="-O2"
4769  else
4770    CFLAGS=
4771  fi
4772fi
4773{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4774$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4775if ${ac_cv_prog_cc_c89+:} false; then :
4776  $as_echo_n "(cached) " >&6
4777else
4778  ac_cv_prog_cc_c89=no
4779ac_save_CC=$CC
4780cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4781/* end confdefs.h.  */
4782#include <stdarg.h>
4783#include <stdio.h>
4784struct stat;
4785/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
4786struct buf { int x; };
4787FILE * (*rcsopen) (struct buf *, struct stat *, int);
4788static char *e (p, i)
4789     char **p;
4790     int i;
4791{
4792  return p[i];
4793}
4794static char *f (char * (*g) (char **, int), char **p, ...)
4795{
4796  char *s;
4797  va_list v;
4798  va_start (v,p);
4799  s = g (p, va_arg (v,int));
4800  va_end (v);
4801  return s;
4802}
4803
4804/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
4805   function prototypes and stuff, but not '\xHH' hex character constants.
4806   These don't provoke an error unfortunately, instead are silently treated
4807   as 'x'.  The following induces an error, until -std is added to get
4808   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
4809   array size at least.  It's necessary to write '\x00'==0 to get something
4810   that's true only with -std.  */
4811int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4812
4813/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4814   inside strings and character constants.  */
4815#define FOO(x) 'x'
4816int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4817
4818int test (int i, double x);
4819struct s1 {int (*f) (int a);};
4820struct s2 {int (*f) (double a);};
4821int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4822int argc;
4823char **argv;
4824int
4825main ()
4826{
4827return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
4828  ;
4829  return 0;
4830}
4831_ACEOF
4832for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4833	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4834do
4835  CC="$ac_save_CC $ac_arg"
4836  if ac_fn_c_try_compile "$LINENO"; then :
4837  ac_cv_prog_cc_c89=$ac_arg
4838fi
4839rm -f core conftest.err conftest.$ac_objext
4840  test "x$ac_cv_prog_cc_c89" != "xno" && break
4841done
4842rm -f conftest.$ac_ext
4843CC=$ac_save_CC
4844
4845fi
4846# AC_CACHE_VAL
4847case "x$ac_cv_prog_cc_c89" in
4848  x)
4849    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4850$as_echo "none needed" >&6; } ;;
4851  xno)
4852    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4853$as_echo "unsupported" >&6; } ;;
4854  *)
4855    CC="$CC $ac_cv_prog_cc_c89"
4856    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4857$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4858esac
4859if test "x$ac_cv_prog_cc_c89" != xno; then :
4860
4861fi
4862
4863ac_ext=c
4864ac_cpp='$CPP $CPPFLAGS'
4865ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4866ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4867ac_compiler_gnu=$ac_cv_c_compiler_gnu
4868
4869ac_ext=c
4870ac_cpp='$CPP $CPPFLAGS'
4871ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4872ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4873ac_compiler_gnu=$ac_cv_c_compiler_gnu
4874{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4875$as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
4876if ${am_cv_prog_cc_c_o+:} false; then :
4877  $as_echo_n "(cached) " >&6
4878else
4879  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4880/* end confdefs.h.  */
4881
4882int
4883main ()
4884{
4885
4886  ;
4887  return 0;
4888}
4889_ACEOF
4890  # Make sure it works both with $CC and with simple cc.
4891  # Following AC_PROG_CC_C_O, we do the test twice because some
4892  # compilers refuse to overwrite an existing .o file with -o,
4893  # though they will create one.
4894  am_cv_prog_cc_c_o=yes
4895  for am_i in 1 2; do
4896    if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4897   ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4898   ac_status=$?
4899   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4900   (exit $ac_status); } \
4901         && test -f conftest2.$ac_objext; then
4902      : OK
4903    else
4904      am_cv_prog_cc_c_o=no
4905      break
4906    fi
4907  done
4908  rm -f core conftest*
4909  unset am_i
4910fi
4911{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4912$as_echo "$am_cv_prog_cc_c_o" >&6; }
4913if test "$am_cv_prog_cc_c_o" != yes; then
4914   # Losing compiler, so override with the script.
4915   # FIXME: It is wrong to rewrite CC.
4916   # But if we don't then we get into trouble of one sort or another.
4917   # A longer-term fix would be to have automake use am__CC in this case,
4918   # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4919   CC="$am_aux_dir/compile $CC"
4920fi
4921ac_ext=c
4922ac_cpp='$CPP $CPPFLAGS'
4923ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4924ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4925ac_compiler_gnu=$ac_cv_c_compiler_gnu
4926
4927
4928depcc="$CC"   am_compiler_list=
4929
4930{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4931$as_echo_n "checking dependency style of $depcc... " >&6; }
4932if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4933  $as_echo_n "(cached) " >&6
4934else
4935  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4936  # We make a subdir and do the tests there.  Otherwise we can end up
4937  # making bogus files that we don't know about and never remove.  For
4938  # instance it was reported that on HP-UX the gcc test will end up
4939  # making a dummy file named 'D' -- because '-MD' means "put the output
4940  # in D".
4941  rm -rf conftest.dir
4942  mkdir conftest.dir
4943  # Copy depcomp to subdir because otherwise we won't find it if we're
4944  # using a relative directory.
4945  cp "$am_depcomp" conftest.dir
4946  cd conftest.dir
4947  # We will build objects and dependencies in a subdirectory because
4948  # it helps to detect inapplicable dependency modes.  For instance
4949  # both Tru64's cc and ICC support -MD to output dependencies as a
4950  # side effect of compilation, but ICC will put the dependencies in
4951  # the current directory while Tru64 will put them in the object
4952  # directory.
4953  mkdir sub
4954
4955  am_cv_CC_dependencies_compiler_type=none
4956  if test "$am_compiler_list" = ""; then
4957     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4958  fi
4959  am__universal=false
4960  case " $depcc " in #(
4961     *\ -arch\ *\ -arch\ *) am__universal=true ;;
4962     esac
4963
4964  for depmode in $am_compiler_list; do
4965    # Setup a source with many dependencies, because some compilers
4966    # like to wrap large dependency lists on column 80 (with \), and
4967    # we should not choose a depcomp mode which is confused by this.
4968    #
4969    # We need to recreate these files for each test, as the compiler may
4970    # overwrite some of them when testing with obscure command lines.
4971    # This happens at least with the AIX C compiler.
4972    : > sub/conftest.c
4973    for i in 1 2 3 4 5 6; do
4974      echo '#include "conftst'$i'.h"' >> sub/conftest.c
4975      # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4976      # Solaris 10 /bin/sh.
4977      echo '/* dummy */' > sub/conftst$i.h
4978    done
4979    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4980
4981    # We check with '-c' and '-o' for the sake of the "dashmstdout"
4982    # mode.  It turns out that the SunPro C++ compiler does not properly
4983    # handle '-M -o', and we need to detect this.  Also, some Intel
4984    # versions had trouble with output in subdirs.
4985    am__obj=sub/conftest.${OBJEXT-o}
4986    am__minus_obj="-o $am__obj"
4987    case $depmode in
4988    gcc)
4989      # This depmode causes a compiler race in universal mode.
4990      test "$am__universal" = false || continue
4991      ;;
4992    nosideeffect)
4993      # After this tag, mechanisms are not by side-effect, so they'll
4994      # only be used when explicitly requested.
4995      if test "x$enable_dependency_tracking" = xyes; then
4996	continue
4997      else
4998	break
4999      fi
5000      ;;
5001    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
5002      # This compiler won't grok '-c -o', but also, the minuso test has
5003      # not run yet.  These depmodes are late enough in the game, and
5004      # so weak that their functioning should not be impacted.
5005      am__obj=conftest.${OBJEXT-o}
5006      am__minus_obj=
5007      ;;
5008    none) break ;;
5009    esac
5010    if depmode=$depmode \
5011       source=sub/conftest.c object=$am__obj \
5012       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5013       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5014         >/dev/null 2>conftest.err &&
5015       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5016       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5017       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5018       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5019      # icc doesn't choke on unknown options, it will just issue warnings
5020      # or remarks (even with -Werror).  So we grep stderr for any message
5021      # that says an option was ignored or not supported.
5022      # When given -MP, icc 7.0 and 7.1 complain thusly:
5023      #   icc: Command line warning: ignoring option '-M'; no argument required
5024      # The diagnosis changed in icc 8.0:
5025      #   icc: Command line remark: option '-MP' not supported
5026      if (grep 'ignoring option' conftest.err ||
5027          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5028        am_cv_CC_dependencies_compiler_type=$depmode
5029        break
5030      fi
5031    fi
5032  done
5033
5034  cd ..
5035  rm -rf conftest.dir
5036else
5037  am_cv_CC_dependencies_compiler_type=none
5038fi
5039
5040fi
5041{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5042$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
5043CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5044
5045 if
5046  test "x$enable_dependency_tracking" != xno \
5047  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5048  am__fastdepCC_TRUE=
5049  am__fastdepCC_FALSE='#'
5050else
5051  am__fastdepCC_TRUE='#'
5052  am__fastdepCC_FALSE=
5053fi
5054
5055
5056
5057
5058
5059
5060ac_ext=c
5061ac_cpp='$CPP $CPPFLAGS'
5062ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5063ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5064ac_compiler_gnu=$ac_cv_c_compiler_gnu
5065
5066ax_pthread_ok=no
5067
5068# We used to check for pthread.h first, but this fails if pthread.h
5069# requires special compiler flags (e.g. on True64 or Sequent).
5070# It gets checked for in the link test anyway.
5071
5072# First of all, check if the user has set any of the PTHREAD_LIBS,
5073# etcetera environment variables, and if threads linking works using
5074# them:
5075if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
5076        save_CFLAGS="$CFLAGS"
5077        CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
5078        save_LIBS="$LIBS"
5079        LIBS="$PTHREAD_LIBS $LIBS"
5080        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
5081$as_echo_n "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... " >&6; }
5082        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5083/* end confdefs.h.  */
5084
5085/* Override any GCC internal prototype to avoid an error.
5086   Use char because int might match the return type of a GCC
5087   builtin and then its argument prototype would still apply.  */
5088#ifdef __cplusplus
5089extern "C"
5090#endif
5091char pthread_join ();
5092int
5093main ()
5094{
5095return pthread_join ();
5096  ;
5097  return 0;
5098}
5099_ACEOF
5100if ac_fn_c_try_link "$LINENO"; then :
5101  ax_pthread_ok=yes
5102fi
5103rm -f core conftest.err conftest.$ac_objext \
5104    conftest$ac_exeext conftest.$ac_ext
5105        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
5106$as_echo "$ax_pthread_ok" >&6; }
5107        if test x"$ax_pthread_ok" = xno; then
5108                PTHREAD_LIBS=""
5109                PTHREAD_CFLAGS=""
5110        fi
5111        LIBS="$save_LIBS"
5112        CFLAGS="$save_CFLAGS"
5113fi
5114
5115# We must check for the threads library under a number of different
5116# names; the ordering is very important because some systems
5117# (e.g. DEC) have both -lpthread and -lpthreads, where one of the
5118# libraries is broken (non-POSIX).
5119
5120# Create a list of thread flags to try.  Items starting with a "-" are
5121# C compiler flags, and other items are library names, except for "none"
5122# which indicates that we try without any flags at all, and "pthread-config"
5123# which is a program returning the flags for the Pth emulation library.
5124
5125ax_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
5126
5127# The ordering *is* (sometimes) important.  Some notes on the
5128# individual items follow:
5129
5130# pthreads: AIX (must check this before -lpthread)
5131# none: in case threads are in libc; should be tried before -Kthread and
5132#       other compiler flags to prevent continual compiler warnings
5133# -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
5134# -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
5135# lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
5136# -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
5137# -pthreads: Solaris/gcc
5138# -mthreads: Mingw32/gcc, Lynx/gcc
5139# -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
5140#      doesn't hurt to check since this sometimes defines pthreads too;
5141#      also defines -D_REENTRANT)
5142#      ... -mt is also the pthreads flag for HP/aCC
5143# pthread: Linux, etcetera
5144# --thread-safe: KAI C++
5145# pthread-config: use pthread-config program (for GNU Pth library)
5146
5147case "${host_cpu}-${host_os}" in
5148        *solaris*)
5149
5150        # On Solaris (at least, for some versions), libc contains stubbed
5151        # (non-functional) versions of the pthreads routines, so link-based
5152        # tests will erroneously succeed.  (We need to link with -pthreads/-mt/
5153        # -lpthread.)  (The stubs are missing pthread_cleanup_push, or rather
5154        # a function called by this macro, so we could check for that, but
5155        # who knows whether they'll stub that too in a future libc.)  So,
5156        # we'll just look for -pthreads and -lpthread first:
5157
5158        ax_pthread_flags="-pthreads pthread -mt -pthread $ax_pthread_flags"
5159        ;;
5160esac
5161
5162if test x"$ax_pthread_ok" = xno; then
5163for flag in $ax_pthread_flags; do
5164
5165        case $flag in
5166                none)
5167                { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
5168$as_echo_n "checking whether pthreads work without any flags... " >&6; }
5169                ;;
5170
5171                -*)
5172                { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $flag" >&5
5173$as_echo_n "checking whether pthreads work with $flag... " >&6; }
5174                PTHREAD_CFLAGS="$flag"
5175                ;;
5176
5177		pthread-config)
5178		# Extract the first word of "pthread-config", so it can be a program name with args.
5179set dummy pthread-config; ac_word=$2
5180{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5181$as_echo_n "checking for $ac_word... " >&6; }
5182if ${ac_cv_prog_ax_pthread_config+:} false; then :
5183  $as_echo_n "(cached) " >&6
5184else
5185  if test -n "$ax_pthread_config"; then
5186  ac_cv_prog_ax_pthread_config="$ax_pthread_config" # Let the user override the test.
5187else
5188as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5189for as_dir in $PATH
5190do
5191  IFS=$as_save_IFS
5192  test -z "$as_dir" && as_dir=.
5193    for ac_exec_ext in '' $ac_executable_extensions; do
5194  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5195    ac_cv_prog_ax_pthread_config="yes"
5196    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5197    break 2
5198  fi
5199done
5200  done
5201IFS=$as_save_IFS
5202
5203  test -z "$ac_cv_prog_ax_pthread_config" && ac_cv_prog_ax_pthread_config="no"
5204fi
5205fi
5206ax_pthread_config=$ac_cv_prog_ax_pthread_config
5207if test -n "$ax_pthread_config"; then
5208  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_config" >&5
5209$as_echo "$ax_pthread_config" >&6; }
5210else
5211  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5212$as_echo "no" >&6; }
5213fi
5214
5215
5216		if test x"$ax_pthread_config" = xno; then continue; fi
5217		PTHREAD_CFLAGS="`pthread-config --cflags`"
5218		PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
5219		;;
5220
5221                *)
5222                { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$flag" >&5
5223$as_echo_n "checking for the pthreads library -l$flag... " >&6; }
5224                PTHREAD_LIBS="-l$flag"
5225                ;;
5226        esac
5227
5228        save_LIBS="$LIBS"
5229        save_CFLAGS="$CFLAGS"
5230        LIBS="$PTHREAD_LIBS $LIBS"
5231        CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
5232
5233        # Check for various functions.  We must include pthread.h,
5234        # since some functions may be macros.  (On the Sequent, we
5235        # need a special flag -Kthread to make this header compile.)
5236        # We check for pthread_join because it is in -lpthread on IRIX
5237        # while pthread_create is in libc.  We check for pthread_attr_init
5238        # due to DEC craziness with -lpthreads.  We check for
5239        # pthread_cleanup_push because it is one of the few pthread
5240        # functions on Solaris that doesn't have a non-functional libc stub.
5241        # We try pthread_create on general principles.
5242        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5243/* end confdefs.h.  */
5244#include <pthread.h>
5245	             static void routine(void* a) {a=0;}
5246	             static void* start_routine(void* a) {return a;}
5247int
5248main ()
5249{
5250pthread_t th; pthread_attr_t attr;
5251                     pthread_join(th, 0);
5252                     pthread_attr_init(&attr);
5253                     pthread_cleanup_push(routine, 0);
5254                     pthread_create(&th,0,start_routine,0);
5255                     pthread_cleanup_pop(0);
5256  ;
5257  return 0;
5258}
5259_ACEOF
5260if ac_fn_c_try_link "$LINENO"; then :
5261  ax_pthread_ok=yes
5262fi
5263rm -f core conftest.err conftest.$ac_objext \
5264    conftest$ac_exeext conftest.$ac_ext
5265
5266        LIBS="$save_LIBS"
5267        CFLAGS="$save_CFLAGS"
5268
5269        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
5270$as_echo "$ax_pthread_ok" >&6; }
5271        if test "x$ax_pthread_ok" = xyes; then
5272                break;
5273        fi
5274
5275        PTHREAD_LIBS=""
5276        PTHREAD_CFLAGS=""
5277done
5278fi
5279
5280# Various other checks:
5281if test "x$ax_pthread_ok" = xyes; then
5282        save_LIBS="$LIBS"
5283        LIBS="$PTHREAD_LIBS $LIBS"
5284        save_CFLAGS="$CFLAGS"
5285        CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
5286
5287        # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
5288	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
5289$as_echo_n "checking for joinable pthread attribute... " >&6; }
5290	attr_name=unknown
5291	for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
5292	    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5293/* end confdefs.h.  */
5294#include <pthread.h>
5295int
5296main ()
5297{
5298int attr=$attr; return attr;
5299  ;
5300  return 0;
5301}
5302_ACEOF
5303if ac_fn_c_try_link "$LINENO"; then :
5304  attr_name=$attr; break
5305fi
5306rm -f core conftest.err conftest.$ac_objext \
5307    conftest$ac_exeext conftest.$ac_ext
5308	done
5309        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $attr_name" >&5
5310$as_echo "$attr_name" >&6; }
5311        if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then
5312
5313cat >>confdefs.h <<_ACEOF
5314#define PTHREAD_CREATE_JOINABLE $attr_name
5315_ACEOF
5316
5317        fi
5318
5319        { $as_echo "$as_me:${as_lineno-$LINENO}: checking if more special flags are required for pthreads" >&5
5320$as_echo_n "checking if more special flags are required for pthreads... " >&6; }
5321        flag=no
5322        case "${host_cpu}-${host_os}" in
5323            *-aix* | *-freebsd* | *-darwin*) flag="-D_THREAD_SAFE";;
5324            *solaris* | *-osf* | *-hpux*) flag="-D_REENTRANT";;
5325        esac
5326        { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${flag}" >&5
5327$as_echo "${flag}" >&6; }
5328        if test "x$flag" != xno; then
5329            PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
5330        fi
5331
5332        LIBS="$save_LIBS"
5333        CFLAGS="$save_CFLAGS"
5334
5335        # More AIX lossage: must compile with xlc_r or cc_r
5336	if test x"$GCC" != xyes; then
5337          for ac_prog in xlc_r cc_r
5338do
5339  # Extract the first word of "$ac_prog", so it can be a program name with args.
5340set dummy $ac_prog; ac_word=$2
5341{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5342$as_echo_n "checking for $ac_word... " >&6; }
5343if ${ac_cv_prog_PTHREAD_CC+:} false; then :
5344  $as_echo_n "(cached) " >&6
5345else
5346  if test -n "$PTHREAD_CC"; then
5347  ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
5348else
5349as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5350for as_dir in $PATH
5351do
5352  IFS=$as_save_IFS
5353  test -z "$as_dir" && as_dir=.
5354    for ac_exec_ext in '' $ac_executable_extensions; do
5355  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5356    ac_cv_prog_PTHREAD_CC="$ac_prog"
5357    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5358    break 2
5359  fi
5360done
5361  done
5362IFS=$as_save_IFS
5363
5364fi
5365fi
5366PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
5367if test -n "$PTHREAD_CC"; then
5368  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
5369$as_echo "$PTHREAD_CC" >&6; }
5370else
5371  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5372$as_echo "no" >&6; }
5373fi
5374
5375
5376  test -n "$PTHREAD_CC" && break
5377done
5378test -n "$PTHREAD_CC" || PTHREAD_CC="${CC}"
5379
5380        else
5381          PTHREAD_CC=$CC
5382	fi
5383else
5384        PTHREAD_CC="$CC"
5385fi
5386
5387
5388
5389
5390
5391# Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
5392if test x"$ax_pthread_ok" = xyes; then
5393
5394$as_echo "#define HAVE_PTHREAD 1" >>confdefs.h
5395
5396        :
5397else
5398        ax_pthread_ok=no
5399
5400fi
5401ac_ext=cpp
5402ac_cpp='$CXXCPP $CPPFLAGS'
5403ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5404ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5405ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5406
5407
5408ac_ext=c
5409ac_cpp='$CPP $CPPFLAGS'
5410ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5411ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5412ac_compiler_gnu=$ac_cv_c_compiler_gnu
5413{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5414$as_echo_n "checking how to run the C preprocessor... " >&6; }
5415# On Suns, sometimes $CPP names a directory.
5416if test -n "$CPP" && test -d "$CPP"; then
5417  CPP=
5418fi
5419if test -z "$CPP"; then
5420  if ${ac_cv_prog_CPP+:} false; then :
5421  $as_echo_n "(cached) " >&6
5422else
5423      # Double quotes because CPP needs to be expanded
5424    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5425    do
5426      ac_preproc_ok=false
5427for ac_c_preproc_warn_flag in '' yes
5428do
5429  # Use a header file that comes with gcc, so configuring glibc
5430  # with a fresh cross-compiler works.
5431  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5432  # <limits.h> exists even on freestanding compilers.
5433  # On the NeXT, cc -E runs the code through the compiler's parser,
5434  # not just through cpp. "Syntax error" is here to catch this case.
5435  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5436/* end confdefs.h.  */
5437#ifdef __STDC__
5438# include <limits.h>
5439#else
5440# include <assert.h>
5441#endif
5442		     Syntax error
5443_ACEOF
5444if ac_fn_c_try_cpp "$LINENO"; then :
5445
5446else
5447  # Broken: fails on valid input.
5448continue
5449fi
5450rm -f conftest.err conftest.i conftest.$ac_ext
5451
5452  # OK, works on sane cases.  Now check whether nonexistent headers
5453  # can be detected and how.
5454  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5455/* end confdefs.h.  */
5456#include <ac_nonexistent.h>
5457_ACEOF
5458if ac_fn_c_try_cpp "$LINENO"; then :
5459  # Broken: success on invalid input.
5460continue
5461else
5462  # Passes both tests.
5463ac_preproc_ok=:
5464break
5465fi
5466rm -f conftest.err conftest.i conftest.$ac_ext
5467
5468done
5469# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5470rm -f conftest.i conftest.err conftest.$ac_ext
5471if $ac_preproc_ok; then :
5472  break
5473fi
5474
5475    done
5476    ac_cv_prog_CPP=$CPP
5477
5478fi
5479  CPP=$ac_cv_prog_CPP
5480else
5481  ac_cv_prog_CPP=$CPP
5482fi
5483{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5484$as_echo "$CPP" >&6; }
5485ac_preproc_ok=false
5486for ac_c_preproc_warn_flag in '' yes
5487do
5488  # Use a header file that comes with gcc, so configuring glibc
5489  # with a fresh cross-compiler works.
5490  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5491  # <limits.h> exists even on freestanding compilers.
5492  # On the NeXT, cc -E runs the code through the compiler's parser,
5493  # not just through cpp. "Syntax error" is here to catch this case.
5494  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5495/* end confdefs.h.  */
5496#ifdef __STDC__
5497# include <limits.h>
5498#else
5499# include <assert.h>
5500#endif
5501		     Syntax error
5502_ACEOF
5503if ac_fn_c_try_cpp "$LINENO"; then :
5504
5505else
5506  # Broken: fails on valid input.
5507continue
5508fi
5509rm -f conftest.err conftest.i conftest.$ac_ext
5510
5511  # OK, works on sane cases.  Now check whether nonexistent headers
5512  # can be detected and how.
5513  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5514/* end confdefs.h.  */
5515#include <ac_nonexistent.h>
5516_ACEOF
5517if ac_fn_c_try_cpp "$LINENO"; then :
5518  # Broken: success on invalid input.
5519continue
5520else
5521  # Passes both tests.
5522ac_preproc_ok=:
5523break
5524fi
5525rm -f conftest.err conftest.i conftest.$ac_ext
5526
5527done
5528# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5529rm -f conftest.i conftest.err conftest.$ac_ext
5530if $ac_preproc_ok; then :
5531
5532else
5533  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5534$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5535as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
5536See \`config.log' for more details" "$LINENO" 5; }
5537fi
5538
5539ac_ext=c
5540ac_cpp='$CPP $CPPFLAGS'
5541ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5542ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5543ac_compiler_gnu=$ac_cv_c_compiler_gnu
5544
5545
5546{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5547$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5548if ${ac_cv_path_GREP+:} false; then :
5549  $as_echo_n "(cached) " >&6
5550else
5551  if test -z "$GREP"; then
5552  ac_path_GREP_found=false
5553  # Loop through the user's path and test for each of PROGNAME-LIST
5554  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5555for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5556do
5557  IFS=$as_save_IFS
5558  test -z "$as_dir" && as_dir=.
5559    for ac_prog in grep ggrep; do
5560    for ac_exec_ext in '' $ac_executable_extensions; do
5561      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5562      as_fn_executable_p "$ac_path_GREP" || continue
5563# Check for GNU ac_path_GREP and select it if it is found.
5564  # Check for GNU $ac_path_GREP
5565case `"$ac_path_GREP" --version 2>&1` in
5566*GNU*)
5567  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5568*)
5569  ac_count=0
5570  $as_echo_n 0123456789 >"conftest.in"
5571  while :
5572  do
5573    cat "conftest.in" "conftest.in" >"conftest.tmp"
5574    mv "conftest.tmp" "conftest.in"
5575    cp "conftest.in" "conftest.nl"
5576    $as_echo 'GREP' >> "conftest.nl"
5577    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5578    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5579    as_fn_arith $ac_count + 1 && ac_count=$as_val
5580    if test $ac_count -gt ${ac_path_GREP_max-0}; then
5581      # Best one so far, save it but keep looking for a better one
5582      ac_cv_path_GREP="$ac_path_GREP"
5583      ac_path_GREP_max=$ac_count
5584    fi
5585    # 10*(2^10) chars as input seems more than enough
5586    test $ac_count -gt 10 && break
5587  done
5588  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5589esac
5590
5591      $ac_path_GREP_found && break 3
5592    done
5593  done
5594  done
5595IFS=$as_save_IFS
5596  if test -z "$ac_cv_path_GREP"; then
5597    as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5598  fi
5599else
5600  ac_cv_path_GREP=$GREP
5601fi
5602
5603fi
5604{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5605$as_echo "$ac_cv_path_GREP" >&6; }
5606 GREP="$ac_cv_path_GREP"
5607
5608
5609{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5610$as_echo_n "checking for egrep... " >&6; }
5611if ${ac_cv_path_EGREP+:} false; then :
5612  $as_echo_n "(cached) " >&6
5613else
5614  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5615   then ac_cv_path_EGREP="$GREP -E"
5616   else
5617     if test -z "$EGREP"; then
5618  ac_path_EGREP_found=false
5619  # Loop through the user's path and test for each of PROGNAME-LIST
5620  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5621for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5622do
5623  IFS=$as_save_IFS
5624  test -z "$as_dir" && as_dir=.
5625    for ac_prog in egrep; do
5626    for ac_exec_ext in '' $ac_executable_extensions; do
5627      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5628      as_fn_executable_p "$ac_path_EGREP" || continue
5629# Check for GNU ac_path_EGREP and select it if it is found.
5630  # Check for GNU $ac_path_EGREP
5631case `"$ac_path_EGREP" --version 2>&1` in
5632*GNU*)
5633  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5634*)
5635  ac_count=0
5636  $as_echo_n 0123456789 >"conftest.in"
5637  while :
5638  do
5639    cat "conftest.in" "conftest.in" >"conftest.tmp"
5640    mv "conftest.tmp" "conftest.in"
5641    cp "conftest.in" "conftest.nl"
5642    $as_echo 'EGREP' >> "conftest.nl"
5643    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5644    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5645    as_fn_arith $ac_count + 1 && ac_count=$as_val
5646    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5647      # Best one so far, save it but keep looking for a better one
5648      ac_cv_path_EGREP="$ac_path_EGREP"
5649      ac_path_EGREP_max=$ac_count
5650    fi
5651    # 10*(2^10) chars as input seems more than enough
5652    test $ac_count -gt 10 && break
5653  done
5654  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5655esac
5656
5657      $ac_path_EGREP_found && break 3
5658    done
5659  done
5660  done
5661IFS=$as_save_IFS
5662  if test -z "$ac_cv_path_EGREP"; then
5663    as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5664  fi
5665else
5666  ac_cv_path_EGREP=$EGREP
5667fi
5668
5669   fi
5670fi
5671{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5672$as_echo "$ac_cv_path_EGREP" >&6; }
5673 EGREP="$ac_cv_path_EGREP"
5674
5675
5676{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5677$as_echo_n "checking for ANSI C header files... " >&6; }
5678if ${ac_cv_header_stdc+:} false; then :
5679  $as_echo_n "(cached) " >&6
5680else
5681  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5682/* end confdefs.h.  */
5683#include <stdlib.h>
5684#include <stdarg.h>
5685#include <string.h>
5686#include <float.h>
5687
5688int
5689main ()
5690{
5691
5692  ;
5693  return 0;
5694}
5695_ACEOF
5696if ac_fn_c_try_compile "$LINENO"; then :
5697  ac_cv_header_stdc=yes
5698else
5699  ac_cv_header_stdc=no
5700fi
5701rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5702
5703if test $ac_cv_header_stdc = yes; then
5704  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5705  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5706/* end confdefs.h.  */
5707#include <string.h>
5708
5709_ACEOF
5710if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5711  $EGREP "memchr" >/dev/null 2>&1; then :
5712
5713else
5714  ac_cv_header_stdc=no
5715fi
5716rm -f conftest*
5717
5718fi
5719
5720if test $ac_cv_header_stdc = yes; then
5721  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5722  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5723/* end confdefs.h.  */
5724#include <stdlib.h>
5725
5726_ACEOF
5727if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5728  $EGREP "free" >/dev/null 2>&1; then :
5729
5730else
5731  ac_cv_header_stdc=no
5732fi
5733rm -f conftest*
5734
5735fi
5736
5737if test $ac_cv_header_stdc = yes; then
5738  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5739  if test "$cross_compiling" = yes; then :
5740  :
5741else
5742  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5743/* end confdefs.h.  */
5744#include <ctype.h>
5745#include <stdlib.h>
5746#if ((' ' & 0x0FF) == 0x020)
5747# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5748# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5749#else
5750# define ISLOWER(c) \
5751		   (('a' <= (c) && (c) <= 'i') \
5752		     || ('j' <= (c) && (c) <= 'r') \
5753		     || ('s' <= (c) && (c) <= 'z'))
5754# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5755#endif
5756
5757#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5758int
5759main ()
5760{
5761  int i;
5762  for (i = 0; i < 256; i++)
5763    if (XOR (islower (i), ISLOWER (i))
5764	|| toupper (i) != TOUPPER (i))
5765      return 2;
5766  return 0;
5767}
5768_ACEOF
5769if ac_fn_c_try_run "$LINENO"; then :
5770
5771else
5772  ac_cv_header_stdc=no
5773fi
5774rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5775  conftest.$ac_objext conftest.beam conftest.$ac_ext
5776fi
5777
5778fi
5779fi
5780{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5781$as_echo "$ac_cv_header_stdc" >&6; }
5782if test $ac_cv_header_stdc = yes; then
5783
5784$as_echo "#define STDC_HEADERS 1" >>confdefs.h
5785
5786fi
5787
5788# On IRIX 5.3, sys/types and inttypes.h are conflicting.
5789for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5790		  inttypes.h stdint.h unistd.h
5791do :
5792  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5793ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5794"
5795if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5796  cat >>confdefs.h <<_ACEOF
5797#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5798_ACEOF
5799
5800fi
5801
5802done
5803
5804
5805
5806ac_ext=c
5807ac_cpp='$CPP $CPPFLAGS'
5808ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5809ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5810ac_compiler_gnu=$ac_cv_c_compiler_gnu
5811
5812{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the Microsoft C compiler" >&5
5813$as_echo_n "checking whether we are using the Microsoft C compiler... " >&6; }
5814if ${ax_cv_c_compiler_ms+:} false; then :
5815  $as_echo_n "(cached) " >&6
5816else
5817  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5818/* end confdefs.h.  */
5819
5820int
5821main ()
5822{
5823#ifndef _MSC_VER
5824       choke me
5825#endif
5826
5827  ;
5828  return 0;
5829}
5830_ACEOF
5831if ac_fn_c_try_compile "$LINENO"; then :
5832  ax_compiler_ms=yes
5833else
5834  ax_compiler_ms=no
5835fi
5836rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5837ax_cv_c_compiler_ms=$ax_compiler_ms
5838
5839fi
5840{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_c_compiler_ms" >&5
5841$as_echo "$ax_cv_c_compiler_ms" >&6; }
5842if test X$ax_compiler_ms = Xno; then :
5843  GL_CFLAGS="${PTHREAD_CFLAGS}"; GL_LIBS="${PTHREAD_LIBS}"
5844fi
5845
5846#
5847# Use x_includes and x_libraries if they have been set (presumably by
5848# AC_PATH_X).
5849#
5850if test X$no_x != Xyes -a -n "$x_includes"; then :
5851  GL_CFLAGS="-I$x_includes $GL_CFLAGS"
5852fi
5853
5854for ac_header in windows.h
5855do :
5856  ac_fn_c_check_header_mongrel "$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default"
5857if test "x$ac_cv_header_windows_h" = xyes; then :
5858  cat >>confdefs.h <<_ACEOF
5859#define HAVE_WINDOWS_H 1
5860_ACEOF
5861
5862fi
5863
5864done
5865
5866
5867ax_save_CPPFLAGS=$CPPFLAGS
5868CPPFLAGS="$GL_CFLAGS $CPPFLAGS"
5869for ac_header in GL/gl.h OpenGL/gl.h
5870do :
5871  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5872ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "
5873# if defined(HAVE_WINDOWS_H) && defined(_WIN32)
5874#   include <windows.h>
5875# endif
5876
5877"
5878if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5879  cat >>confdefs.h <<_ACEOF
5880#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5881_ACEOF
5882
5883fi
5884
5885done
5886
5887CPPFLAGS=$ax_save_CPPFLAGS
5888
5889
5890
5891
5892
5893{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenGL library" >&5
5894$as_echo_n "checking for OpenGL library... " >&6; }
5895if ${ax_cv_check_gl_libgl+:} false; then :
5896  $as_echo_n "(cached) " >&6
5897else
5898  ax_cv_check_gl_libgl=no
5899case $host_cpu in
5900  x86_64) ax_check_gl_libdir=lib64 ;;
5901  *)      ax_check_gl_libdir=lib ;;
5902esac
5903ax_save_CPPFLAGS=$CPPFLAGS
5904CPPFLAGS="$CPPFLAGS $GL_CFLAGS"
5905ax_save_LDFLAGS=$LDFLAGS
5906if test X$no_x != Xyes -a -n "$x_libraries"; then :
5907  LDFLAGS="$LDFLAGS -L$x_libraries"
5908fi
5909ax_save_LIBS=$LIBS
5910ax_check_libs="-lopengl32 -lGL"
5911for ax_lib in $ax_check_libs; do
5912  if test X$ax_compiler_ms = Xyes; then :
5913  ax_try_lib=`echo $ax_lib | $SED -e 's/^-l//' -e 's/$/.lib/'`
5914else
5915  ax_try_lib=$ax_lib
5916fi
5917  LDFLAGS="$ax_save_LDFLAGS $GL_LIBS"
5918  LIBS="$ax_try_lib $ax_save_LIBS"
5919cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5920/* end confdefs.h.  */
5921
5922# if defined(HAVE_WINDOWS_H) && defined(_WIN32)
5923#   include <windows.h>
5924# endif
5925# ifdef HAVE_GL_GL_H
5926#   include <GL/gl.h>
5927# elif defined(HAVE_OPENGL_GL_H)
5928#   include <OpenGL/gl.h>
5929# else
5930#   error no gl.h
5931# endif
5932int
5933main ()
5934{
5935glBegin(0)
5936  ;
5937  return 0;
5938}
5939_ACEOF
5940if ac_fn_c_try_link "$LINENO"; then :
5941  ax_cv_check_gl_libgl=$ax_try_lib; break
5942else
5943  ax_check_gl_nvidia_flags="-L/usr/$ax_check_gl_libdir/nvidia"
5944                LDFLAGS="$ax_save_LDFLAGS $GL_LIBS $ax_check_gl_nvidia_flags"
5945                cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5946/* end confdefs.h.  */
5947
5948# if defined(HAVE_WINDOWS_H) && defined(_WIN32)
5949#   include <windows.h>
5950# endif
5951# ifdef HAVE_GL_GL_H
5952#   include <GL/gl.h>
5953# elif defined(HAVE_OPENGL_GL_H)
5954#   include <OpenGL/gl.h>
5955# else
5956#   error no gl.h
5957# endif
5958int
5959main ()
5960{
5961glBegin(0)
5962  ;
5963  return 0;
5964}
5965_ACEOF
5966if ac_fn_c_try_link "$LINENO"; then :
5967  ax_cv_check_gl_libgl="$ax_check_gl_nvidia_flags $ax_try_lib"; break
5968else
5969  ax_check_gl_dylib_flag='-dylib_file /System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGL.dylib:/System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGL.dylib'
5970                                LDFLAGS="$ax_save_LDFLAGS $GL_LIBS $ax_check_gl_dylib_flag"
5971                                cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5972/* end confdefs.h.  */
5973
5974# if defined(HAVE_WINDOWS_H) && defined(_WIN32)
5975#   include <windows.h>
5976# endif
5977# ifdef HAVE_GL_GL_H
5978#   include <GL/gl.h>
5979# elif defined(HAVE_OPENGL_GL_H)
5980#   include <OpenGL/gl.h>
5981# else
5982#   error no gl.h
5983# endif
5984int
5985main ()
5986{
5987glBegin(0)
5988  ;
5989  return 0;
5990}
5991_ACEOF
5992if ac_fn_c_try_link "$LINENO"; then :
5993  ax_cv_check_gl_libgl="$ax_check_gl_dylib_flag $ax_try_lib"; break
5994fi
5995rm -f core conftest.err conftest.$ac_objext \
5996    conftest$ac_exeext conftest.$ac_ext
5997fi
5998rm -f core conftest.err conftest.$ac_objext \
5999    conftest$ac_exeext conftest.$ac_ext
6000fi
6001rm -f core conftest.err conftest.$ac_objext \
6002    conftest$ac_exeext conftest.$ac_ext
6003done
6004
6005#
6006# If no_x is "yes", we don't want to wind up using a libGL that is
6007# linked with X11.  Test to see if the found libGL includes GLX
6008# functions.  If it does and no_x is "yes", we want to reset
6009# ax_cv_check_gl_libgl back to "no".
6010#
6011# Note that LDFLAGS and LIBS should still have whatever values they
6012# had when we broke out of the test loop above; use that.
6013#
6014if test "X$ax_cv_check_gl_libgl" != Xno; then :
6015  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6016/* end confdefs.h.  */
6017
6018# if defined(HAVE_WINDOWS_H) && defined(_WIN32)
6019#   include <windows.h>
6020# endif
6021# ifdef HAVE_GL_GL_H
6022#   include <GL/gl.h>
6023# elif defined(HAVE_OPENGL_GL_H)
6024#   include <OpenGL/gl.h>
6025# else
6026#   error no gl.h
6027# endif
6028int
6029main ()
6030{
6031glXQueryVersion(0, 0, 0)
6032  ;
6033  return 0;
6034}
6035_ACEOF
6036if ac_fn_c_try_link "$LINENO"; then :
6037  if test X$no_x = Xyes; then :
6038  ax_cv_check_gl_libgl=no
6039fi
6040fi
6041rm -f core conftest.err conftest.$ac_objext \
6042    conftest$ac_exeext conftest.$ac_ext
6043fi
6044
6045LIBS=$ax_save_LIBS
6046if test "X$ax_cv_check_gl_libgl" = Xno -a X$no_x = Xyes; then :
6047  LDFLAGS="$ax_save_LDFLAGS -framework OpenGL"
6048      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6049/* end confdefs.h.  */
6050
6051# if defined(HAVE_WINDOWS_H) && defined(_WIN32)
6052#   include <windows.h>
6053# endif
6054# ifdef HAVE_GL_GL_H
6055#   include <GL/gl.h>
6056# elif defined(HAVE_OPENGL_GL_H)
6057#   include <OpenGL/gl.h>
6058# else
6059#   error no gl.h
6060# endif
6061int
6062main ()
6063{
6064glBegin(0)
6065  ;
6066  return 0;
6067}
6068_ACEOF
6069if ac_fn_c_try_link "$LINENO"; then :
6070  ax_cv_check_gl_libgl='-framework OpenGL'
6071fi
6072rm -f core conftest.err conftest.$ac_objext \
6073    conftest$ac_exeext conftest.$ac_ext
6074fi
6075
6076LDFLAGS=$ax_save_LDFLAGS
6077CPPFLAGS=$ax_save_CPPFLAGS
6078fi
6079{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_gl_libgl" >&5
6080$as_echo "$ax_cv_check_gl_libgl" >&6; }
6081
6082if test "X$ax_cv_check_gl_libgl" = Xno; then :
6083  no_gl=yes; GL_CFLAGS=""; GL_LIBS=""
6084else
6085  GL_LIBS="$ax_cv_check_gl_libgl $GL_LIBS"
6086fi
6087ac_ext=cpp
6088ac_cpp='$CXXCPP $CPPFLAGS'
6089ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6090ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6091ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6092
6093
6094
6095
6096
6097GLU_CFLAGS=$GL_CFLAGS
6098
6099ax_save_CPPFLAGS=$CPPFLAGS
6100CPPFLAGS="$GL_CFLAGS $CPPFLAGS"
6101for ac_header in GL/glu.h OpenGL/glu.h
6102do :
6103  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6104ac_fn_cxx_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "
6105# if defined(HAVE_WINDOWS_H) && defined(_WIN32)
6106#   include <windows.h>
6107# endif
6108
6109"
6110if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6111  cat >>confdefs.h <<_ACEOF
6112#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6113_ACEOF
6114
6115fi
6116
6117done
6118
6119CPPFLAGS=$ax_save_CPPFLAGS
6120
6121
6122
6123{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenGL Utility library" >&5
6124$as_echo_n "checking for OpenGL Utility library... " >&6; }
6125if ${ax_cv_check_glu_libglu+:} false; then :
6126  $as_echo_n "(cached) " >&6
6127else
6128  ax_cv_check_glu_libglu=no
6129ax_save_CPPFLAGS=$CPPFLAGS
6130CPPFLAGS="$GL_CFLAGS $CPPFLAGS"
6131ax_save_LDFLAGS=$LDFLAGS
6132ax_save_LIBS=$LIBS
6133
6134#
6135# First, check for the possibility that everything we need is already in
6136# GL_LIBS.
6137#
6138LDFLAGS="$ax_save_LDFLAGS $GL_LIBS"
6139#
6140# libGLU typically links with libstdc++ on POSIX platforms.
6141# However, setting the language to C++ means that test program
6142# source is named "conftest.cc"; and Microsoft cl doesn't know what
6143# to do with such a file.
6144#
6145ac_ext=cpp
6146ac_cpp='$CXXCPP $CPPFLAGS'
6147ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6148ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6149ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6150
6151if test X$ax_compiler_ms = Xyes; then :
6152  ac_ext=c
6153ac_cpp='$CPP $CPPFLAGS'
6154ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6155ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6156ac_compiler_gnu=$ac_cv_c_compiler_gnu
6157
6158fi
6159cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6160/* end confdefs.h.  */
6161
6162# if defined(HAVE_WINDOWS_H) && defined(_WIN32)
6163#   include <windows.h>
6164# endif
6165# ifdef HAVE_GL_GLU_H
6166#   include <GL/glu.h>
6167# elif defined(HAVE_OPENGL_GLU_H)
6168#   include <OpenGL/glu.h>
6169# else
6170#   error no glu.h
6171# endif
6172int
6173main ()
6174{
6175gluBeginCurve(0)
6176  ;
6177  return 0;
6178}
6179_ACEOF
6180if ac_fn_c_try_link "$LINENO"; then :
6181  ax_cv_check_glu_libglu=yes
6182else
6183  LIBS=""
6184                ax_check_libs="-lglu32 -lGLU"
6185                for ax_lib in ${ax_check_libs}; do
6186                  if test X$ax_compiler_ms = Xyes; then :
6187  ax_try_lib=`echo $ax_lib | $SED -e 's/^-l//' -e 's/$/.lib/'`
6188else
6189  ax_try_lib=$ax_lib
6190fi
6191                  LIBS="$ax_try_lib $ax_save_LIBS"
6192                  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6193/* end confdefs.h.  */
6194
6195# if defined(HAVE_WINDOWS_H) && defined(_WIN32)
6196#   include <windows.h>
6197# endif
6198# ifdef HAVE_GL_GLU_H
6199#   include <GL/glu.h>
6200# elif defined(HAVE_OPENGL_GLU_H)
6201#   include <OpenGL/glu.h>
6202# else
6203#   error no glu.h
6204# endif
6205int
6206main ()
6207{
6208gluBeginCurve(0)
6209  ;
6210  return 0;
6211}
6212_ACEOF
6213if ac_fn_c_try_link "$LINENO"; then :
6214  ax_cv_check_glu_libglu=$ax_try_lib; break
6215fi
6216rm -f core conftest.err conftest.$ac_objext \
6217    conftest$ac_exeext conftest.$ac_ext
6218                done
6219fi
6220rm -f core conftest.err conftest.$ac_objext \
6221    conftest$ac_exeext conftest.$ac_ext
6222if test X$ax_compiler_ms = Xyes; then :
6223  ac_ext=cpp
6224ac_cpp='$CXXCPP $CPPFLAGS'
6225ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6226ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6227ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6228
6229fi
6230ac_ext=cpp
6231ac_cpp='$CXXCPP $CPPFLAGS'
6232ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6233ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6234ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6235
6236
6237LIBS=$ax_save_LIBS
6238LDFLAGS=$ax_save_LDFLAGS
6239CPPFLAGS=$ax_save_CPPFLAGS
6240fi
6241{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_glu_libglu" >&5
6242$as_echo "$ax_cv_check_glu_libglu" >&6; }
6243if test "X$ax_cv_check_glu_libglu" = Xno; then :
6244  no_glu=yes; GLU_CFLAGS=""; GLU_LIBS=""
6245else
6246  if test "X$ax_cv_check_glu_libglu" = Xyes; then :
6247  GLU_LIBS=""
6248else
6249  GLU_LIBS="$ax_cv_check_glu_libglu"
6250fi
6251fi
6252
6253
6254
6255#
6256# Some versions of Mac OS X include a broken interpretation of the GLU
6257# tesselation callback function signature when using the C++ compiler.
6258#
6259if test "X$ax_cv_check_glu_libglu" != Xno; then :
6260  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for varargs GLU tesselator callback function type" >&5
6261$as_echo_n "checking for varargs GLU tesselator callback function type... " >&6; }
6262if ${ax_cv_varargs_glu_tesscb+:} false; then :
6263  $as_echo_n "(cached) " >&6
6264else
6265  ac_ext=cpp
6266ac_cpp='$CXXCPP $CPPFLAGS'
6267ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6268ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6269ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6270
6271                      ax_cv_varargs_glu_tesscb=no
6272                      ax_save_CXXFLAGS=$CXXFLAGS
6273                      CXXFLAGS="$GL_CFLAGS $CXXFLAGS"
6274                      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6275/* end confdefs.h.  */
6276
6277# ifdef HAVE_GL_GLU_H
6278#   include <GL/glu.h>
6279# else
6280#   include <OpenGL/glu.h>
6281# endif
6282int
6283main ()
6284{
6285GLvoid (*func)(...); gluTessCallback(0, 0, func)
6286  ;
6287  return 0;
6288}
6289_ACEOF
6290if ac_fn_cxx_try_compile "$LINENO"; then :
6291  ax_cv_varargs_glu_tesscb=yes
6292fi
6293rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6294                      CXXFLAGS=$ax_save_CXXFLAGS
6295                      ac_ext=cpp
6296ac_cpp='$CXXCPP $CPPFLAGS'
6297ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6298ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6299ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6300
6301fi
6302{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_varargs_glu_tesscb" >&5
6303$as_echo "$ax_cv_varargs_glu_tesscb" >&6; }
6304      if test X$ax_cv_varargs_glu_tesscb = Xyes; then :
6305
6306$as_echo "#define HAVE_VARARGS_GLU_TESSCB 1" >>confdefs.h
6307
6308fi
6309fi
6310
6311CXXFLAGS="$CXXFLAGS $GL_CFLAGS $GLU_CFLAGS"
6312CPPFLAGS="$CPPFLAGS $GL_CFLAGS $GLU_CFLAGS"
6313LIBS="$LIBS $GL_LIBS $GLU_LIBS"
6314
6315
6316
6317if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
6318	if test -n "$ac_tool_prefix"; then
6319  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
6320set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
6321{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6322$as_echo_n "checking for $ac_word... " >&6; }
6323if ${ac_cv_path_PKG_CONFIG+:} false; then :
6324  $as_echo_n "(cached) " >&6
6325else
6326  case $PKG_CONFIG in
6327  [\\/]* | ?:[\\/]*)
6328  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
6329  ;;
6330  *)
6331  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6332for as_dir in $PATH
6333do
6334  IFS=$as_save_IFS
6335  test -z "$as_dir" && as_dir=.
6336    for ac_exec_ext in '' $ac_executable_extensions; do
6337  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6338    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
6339    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6340    break 2
6341  fi
6342done
6343  done
6344IFS=$as_save_IFS
6345
6346  ;;
6347esac
6348fi
6349PKG_CONFIG=$ac_cv_path_PKG_CONFIG
6350if test -n "$PKG_CONFIG"; then
6351  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
6352$as_echo "$PKG_CONFIG" >&6; }
6353else
6354  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6355$as_echo "no" >&6; }
6356fi
6357
6358
6359fi
6360if test -z "$ac_cv_path_PKG_CONFIG"; then
6361  ac_pt_PKG_CONFIG=$PKG_CONFIG
6362  # Extract the first word of "pkg-config", so it can be a program name with args.
6363set dummy pkg-config; ac_word=$2
6364{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6365$as_echo_n "checking for $ac_word... " >&6; }
6366if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
6367  $as_echo_n "(cached) " >&6
6368else
6369  case $ac_pt_PKG_CONFIG in
6370  [\\/]* | ?:[\\/]*)
6371  ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
6372  ;;
6373  *)
6374  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6375for as_dir in $PATH
6376do
6377  IFS=$as_save_IFS
6378  test -z "$as_dir" && as_dir=.
6379    for ac_exec_ext in '' $ac_executable_extensions; do
6380  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6381    ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
6382    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6383    break 2
6384  fi
6385done
6386  done
6387IFS=$as_save_IFS
6388
6389  ;;
6390esac
6391fi
6392ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
6393if test -n "$ac_pt_PKG_CONFIG"; then
6394  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
6395$as_echo "$ac_pt_PKG_CONFIG" >&6; }
6396else
6397  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6398$as_echo "no" >&6; }
6399fi
6400
6401  if test "x$ac_pt_PKG_CONFIG" = x; then
6402    PKG_CONFIG=""
6403  else
6404    case $cross_compiling:$ac_tool_warned in
6405yes:)
6406{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6407$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6408ac_tool_warned=yes ;;
6409esac
6410    PKG_CONFIG=$ac_pt_PKG_CONFIG
6411  fi
6412else
6413  PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
6414fi
6415
6416fi
6417if test -n "$PKG_CONFIG"; then
6418	_pkg_min_version=0.9.0
6419	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
6420$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
6421	if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
6422		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6423$as_echo "yes" >&6; }
6424	else
6425		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6426$as_echo "no" >&6; }
6427		PKG_CONFIG=""
6428	fi
6429
6430fi
6431
6432pkg_failed=no
6433{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for FT2" >&5
6434$as_echo_n "checking for FT2... " >&6; }
6435
6436if test -n "$PKG_CONFIG"; then
6437    if test -n "$FT2_CFLAGS"; then
6438        pkg_cv_FT2_CFLAGS="$FT2_CFLAGS"
6439    else
6440        if test -n "$PKG_CONFIG" && \
6441    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"freetype2 >= 9.0.3\""; } >&5
6442  ($PKG_CONFIG --exists --print-errors "freetype2 >= 9.0.3") 2>&5
6443  ac_status=$?
6444  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6445  test $ac_status = 0; }; then
6446  pkg_cv_FT2_CFLAGS=`$PKG_CONFIG --cflags "freetype2 >= 9.0.3" 2>/dev/null`
6447else
6448  pkg_failed=yes
6449fi
6450    fi
6451else
6452	pkg_failed=untried
6453fi
6454if test -n "$PKG_CONFIG"; then
6455    if test -n "$FT2_LIBS"; then
6456        pkg_cv_FT2_LIBS="$FT2_LIBS"
6457    else
6458        if test -n "$PKG_CONFIG" && \
6459    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"freetype2 >= 9.0.3\""; } >&5
6460  ($PKG_CONFIG --exists --print-errors "freetype2 >= 9.0.3") 2>&5
6461  ac_status=$?
6462  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6463  test $ac_status = 0; }; then
6464  pkg_cv_FT2_LIBS=`$PKG_CONFIG --libs "freetype2 >= 9.0.3" 2>/dev/null`
6465else
6466  pkg_failed=yes
6467fi
6468    fi
6469else
6470	pkg_failed=untried
6471fi
6472
6473
6474
6475if test $pkg_failed = yes; then
6476
6477if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
6478        _pkg_short_errors_supported=yes
6479else
6480        _pkg_short_errors_supported=no
6481fi
6482        if test $_pkg_short_errors_supported = yes; then
6483	        FT2_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "freetype2 >= 9.0.3"`
6484        else
6485	        FT2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "freetype2 >= 9.0.3"`
6486        fi
6487	# Put the nasty error message in config.log where it belongs
6488	echo "$FT2_PKG_ERRORS" >&5
6489
6490	as_fn_error $? "Package requirements (freetype2 >= 9.0.3) were not met:
6491
6492$FT2_PKG_ERRORS
6493
6494Consider adjusting the PKG_CONFIG_PATH environment variable if you
6495installed software in a non-standard prefix.
6496
6497Alternatively, you may set the environment variables FT2_CFLAGS
6498and FT2_LIBS to avoid the need to call pkg-config.
6499See the pkg-config man page for more details.
6500" "$LINENO" 5
6501elif test $pkg_failed = untried; then
6502	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6503$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6504as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
6505is in your PATH or set the PKG_CONFIG environment variable to the full
6506path to pkg-config.
6507
6508Alternatively, you may set the environment variables FT2_CFLAGS
6509and FT2_LIBS to avoid the need to call pkg-config.
6510See the pkg-config man page for more details.
6511
6512To get pkg-config, see <http://pkg-config.freedesktop.org/>.
6513See \`config.log' for more details" "$LINENO" 5; }
6514else
6515	FT2_CFLAGS=$pkg_cv_FT2_CFLAGS
6516	FT2_LIBS=$pkg_cv_FT2_LIBS
6517        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6518$as_echo "yes" >&6; }
6519	:
6520fi
6521
6522pkg_failed=no
6523{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for PCRE" >&5
6524$as_echo_n "checking for PCRE... " >&6; }
6525
6526if test -n "$PKG_CONFIG"; then
6527    if test -n "$PCRE_CFLAGS"; then
6528        pkg_cv_PCRE_CFLAGS="$PCRE_CFLAGS"
6529    else
6530        if test -n "$PKG_CONFIG" && \
6531    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpcre\""; } >&5
6532  ($PKG_CONFIG --exists --print-errors "libpcre") 2>&5
6533  ac_status=$?
6534  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6535  test $ac_status = 0; }; then
6536  pkg_cv_PCRE_CFLAGS=`$PKG_CONFIG --cflags "libpcre" 2>/dev/null`
6537else
6538  pkg_failed=yes
6539fi
6540    fi
6541else
6542	pkg_failed=untried
6543fi
6544if test -n "$PKG_CONFIG"; then
6545    if test -n "$PCRE_LIBS"; then
6546        pkg_cv_PCRE_LIBS="$PCRE_LIBS"
6547    else
6548        if test -n "$PKG_CONFIG" && \
6549    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpcre\""; } >&5
6550  ($PKG_CONFIG --exists --print-errors "libpcre") 2>&5
6551  ac_status=$?
6552  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6553  test $ac_status = 0; }; then
6554  pkg_cv_PCRE_LIBS=`$PKG_CONFIG --libs "libpcre" 2>/dev/null`
6555else
6556  pkg_failed=yes
6557fi
6558    fi
6559else
6560	pkg_failed=untried
6561fi
6562
6563
6564
6565if test $pkg_failed = yes; then
6566
6567if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
6568        _pkg_short_errors_supported=yes
6569else
6570        _pkg_short_errors_supported=no
6571fi
6572        if test $_pkg_short_errors_supported = yes; then
6573	        PCRE_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "libpcre"`
6574        else
6575	        PCRE_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libpcre"`
6576        fi
6577	# Put the nasty error message in config.log where it belongs
6578	echo "$PCRE_PKG_ERRORS" >&5
6579
6580	as_fn_error $? "Package requirements (libpcre) were not met:
6581
6582$PCRE_PKG_ERRORS
6583
6584Consider adjusting the PKG_CONFIG_PATH environment variable if you
6585installed software in a non-standard prefix.
6586
6587Alternatively, you may set the environment variables PCRE_CFLAGS
6588and PCRE_LIBS to avoid the need to call pkg-config.
6589See the pkg-config man page for more details.
6590" "$LINENO" 5
6591elif test $pkg_failed = untried; then
6592	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6593$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6594as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
6595is in your PATH or set the PKG_CONFIG environment variable to the full
6596path to pkg-config.
6597
6598Alternatively, you may set the environment variables PCRE_CFLAGS
6599and PCRE_LIBS to avoid the need to call pkg-config.
6600See the pkg-config man page for more details.
6601
6602To get pkg-config, see <http://pkg-config.freedesktop.org/>.
6603See \`config.log' for more details" "$LINENO" 5; }
6604else
6605	PCRE_CFLAGS=$pkg_cv_PCRE_CFLAGS
6606	PCRE_LIBS=$pkg_cv_PCRE_LIBS
6607        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6608$as_echo "yes" >&6; }
6609	:
6610fi
6611
6612pkg_failed=no
6613{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GLEW" >&5
6614$as_echo_n "checking for GLEW... " >&6; }
6615
6616if test -n "$PKG_CONFIG"; then
6617    if test -n "$GLEW_CFLAGS"; then
6618        pkg_cv_GLEW_CFLAGS="$GLEW_CFLAGS"
6619    else
6620        if test -n "$PKG_CONFIG" && \
6621    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"glew\""; } >&5
6622  ($PKG_CONFIG --exists --print-errors "glew") 2>&5
6623  ac_status=$?
6624  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6625  test $ac_status = 0; }; then
6626  pkg_cv_GLEW_CFLAGS=`$PKG_CONFIG --cflags "glew" 2>/dev/null`
6627else
6628  pkg_failed=yes
6629fi
6630    fi
6631else
6632	pkg_failed=untried
6633fi
6634if test -n "$PKG_CONFIG"; then
6635    if test -n "$GLEW_LIBS"; then
6636        pkg_cv_GLEW_LIBS="$GLEW_LIBS"
6637    else
6638        if test -n "$PKG_CONFIG" && \
6639    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"glew\""; } >&5
6640  ($PKG_CONFIG --exists --print-errors "glew") 2>&5
6641  ac_status=$?
6642  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6643  test $ac_status = 0; }; then
6644  pkg_cv_GLEW_LIBS=`$PKG_CONFIG --libs "glew" 2>/dev/null`
6645else
6646  pkg_failed=yes
6647fi
6648    fi
6649else
6650	pkg_failed=untried
6651fi
6652
6653
6654
6655if test $pkg_failed = yes; then
6656
6657if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
6658        _pkg_short_errors_supported=yes
6659else
6660        _pkg_short_errors_supported=no
6661fi
6662        if test $_pkg_short_errors_supported = yes; then
6663	        GLEW_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "glew"`
6664        else
6665	        GLEW_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "glew"`
6666        fi
6667	# Put the nasty error message in config.log where it belongs
6668	echo "$GLEW_PKG_ERRORS" >&5
6669
6670	as_fn_error $? "Package requirements (glew) were not met:
6671
6672$GLEW_PKG_ERRORS
6673
6674Consider adjusting the PKG_CONFIG_PATH environment variable if you
6675installed software in a non-standard prefix.
6676
6677Alternatively, you may set the environment variables GLEW_CFLAGS
6678and GLEW_LIBS to avoid the need to call pkg-config.
6679See the pkg-config man page for more details.
6680" "$LINENO" 5
6681elif test $pkg_failed = untried; then
6682	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6683$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6684as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
6685is in your PATH or set the PKG_CONFIG environment variable to the full
6686path to pkg-config.
6687
6688Alternatively, you may set the environment variables GLEW_CFLAGS
6689and GLEW_LIBS to avoid the need to call pkg-config.
6690See the pkg-config man page for more details.
6691
6692To get pkg-config, see <http://pkg-config.freedesktop.org/>.
6693See \`config.log' for more details" "$LINENO" 5; }
6694else
6695	GLEW_CFLAGS=$pkg_cv_GLEW_CFLAGS
6696	GLEW_LIBS=$pkg_cv_GLEW_LIBS
6697        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6698$as_echo "yes" >&6; }
6699	:
6700fi
6701
6702pkg_failed=no
6703{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for SDL2" >&5
6704$as_echo_n "checking for SDL2... " >&6; }
6705
6706if test -n "$PKG_CONFIG"; then
6707    if test -n "$SDL2_CFLAGS"; then
6708        pkg_cv_SDL2_CFLAGS="$SDL2_CFLAGS"
6709    else
6710        if test -n "$PKG_CONFIG" && \
6711    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"sdl2 SDL2_image\""; } >&5
6712  ($PKG_CONFIG --exists --print-errors "sdl2 SDL2_image") 2>&5
6713  ac_status=$?
6714  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6715  test $ac_status = 0; }; then
6716  pkg_cv_SDL2_CFLAGS=`$PKG_CONFIG --cflags "sdl2 SDL2_image" 2>/dev/null`
6717else
6718  pkg_failed=yes
6719fi
6720    fi
6721else
6722	pkg_failed=untried
6723fi
6724if test -n "$PKG_CONFIG"; then
6725    if test -n "$SDL2_LIBS"; then
6726        pkg_cv_SDL2_LIBS="$SDL2_LIBS"
6727    else
6728        if test -n "$PKG_CONFIG" && \
6729    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"sdl2 SDL2_image\""; } >&5
6730  ($PKG_CONFIG --exists --print-errors "sdl2 SDL2_image") 2>&5
6731  ac_status=$?
6732  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6733  test $ac_status = 0; }; then
6734  pkg_cv_SDL2_LIBS=`$PKG_CONFIG --libs "sdl2 SDL2_image" 2>/dev/null`
6735else
6736  pkg_failed=yes
6737fi
6738    fi
6739else
6740	pkg_failed=untried
6741fi
6742
6743
6744
6745if test $pkg_failed = yes; then
6746
6747if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
6748        _pkg_short_errors_supported=yes
6749else
6750        _pkg_short_errors_supported=no
6751fi
6752        if test $_pkg_short_errors_supported = yes; then
6753	        SDL2_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "sdl2 SDL2_image"`
6754        else
6755	        SDL2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "sdl2 SDL2_image"`
6756        fi
6757	# Put the nasty error message in config.log where it belongs
6758	echo "$SDL2_PKG_ERRORS" >&5
6759
6760	as_fn_error $? "Package requirements (sdl2 SDL2_image) were not met:
6761
6762$SDL2_PKG_ERRORS
6763
6764Consider adjusting the PKG_CONFIG_PATH environment variable if you
6765installed software in a non-standard prefix.
6766
6767Alternatively, you may set the environment variables SDL2_CFLAGS
6768and SDL2_LIBS to avoid the need to call pkg-config.
6769See the pkg-config man page for more details.
6770" "$LINENO" 5
6771elif test $pkg_failed = untried; then
6772	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6773$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6774as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
6775is in your PATH or set the PKG_CONFIG environment variable to the full
6776path to pkg-config.
6777
6778Alternatively, you may set the environment variables SDL2_CFLAGS
6779and SDL2_LIBS to avoid the need to call pkg-config.
6780See the pkg-config man page for more details.
6781
6782To get pkg-config, see <http://pkg-config.freedesktop.org/>.
6783See \`config.log' for more details" "$LINENO" 5; }
6784else
6785	SDL2_CFLAGS=$pkg_cv_SDL2_CFLAGS
6786	SDL2_LIBS=$pkg_cv_SDL2_LIBS
6787        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6788$as_echo "yes" >&6; }
6789	:
6790fi;
6791
6792pkg_failed=no
6793{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for PNG" >&5
6794$as_echo_n "checking for PNG... " >&6; }
6795
6796if test -n "$PKG_CONFIG"; then
6797    if test -n "$PNG_CFLAGS"; then
6798        pkg_cv_PNG_CFLAGS="$PNG_CFLAGS"
6799    else
6800        if test -n "$PKG_CONFIG" && \
6801    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpng >= 1.2\""; } >&5
6802  ($PKG_CONFIG --exists --print-errors "libpng >= 1.2") 2>&5
6803  ac_status=$?
6804  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6805  test $ac_status = 0; }; then
6806  pkg_cv_PNG_CFLAGS=`$PKG_CONFIG --cflags "libpng >= 1.2" 2>/dev/null`
6807else
6808  pkg_failed=yes
6809fi
6810    fi
6811else
6812	pkg_failed=untried
6813fi
6814if test -n "$PKG_CONFIG"; then
6815    if test -n "$PNG_LIBS"; then
6816        pkg_cv_PNG_LIBS="$PNG_LIBS"
6817    else
6818        if test -n "$PKG_CONFIG" && \
6819    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpng >= 1.2\""; } >&5
6820  ($PKG_CONFIG --exists --print-errors "libpng >= 1.2") 2>&5
6821  ac_status=$?
6822  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6823  test $ac_status = 0; }; then
6824  pkg_cv_PNG_LIBS=`$PKG_CONFIG --libs "libpng >= 1.2" 2>/dev/null`
6825else
6826  pkg_failed=yes
6827fi
6828    fi
6829else
6830	pkg_failed=untried
6831fi
6832
6833
6834
6835if test $pkg_failed = yes; then
6836
6837if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
6838        _pkg_short_errors_supported=yes
6839else
6840        _pkg_short_errors_supported=no
6841fi
6842        if test $_pkg_short_errors_supported = yes; then
6843	        PNG_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "libpng >= 1.2"`
6844        else
6845	        PNG_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libpng >= 1.2"`
6846        fi
6847	# Put the nasty error message in config.log where it belongs
6848	echo "$PNG_PKG_ERRORS" >&5
6849
6850	as_fn_error $? "Package requirements (libpng >= 1.2) were not met:
6851
6852$PNG_PKG_ERRORS
6853
6854Consider adjusting the PKG_CONFIG_PATH environment variable if you
6855installed software in a non-standard prefix.
6856
6857Alternatively, you may set the environment variables PNG_CFLAGS
6858and PNG_LIBS to avoid the need to call pkg-config.
6859See the pkg-config man page for more details.
6860" "$LINENO" 5
6861elif test $pkg_failed = untried; then
6862	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6863$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6864as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
6865is in your PATH or set the PKG_CONFIG environment variable to the full
6866path to pkg-config.
6867
6868Alternatively, you may set the environment variables PNG_CFLAGS
6869and PNG_LIBS to avoid the need to call pkg-config.
6870See the pkg-config man page for more details.
6871
6872To get pkg-config, see <http://pkg-config.freedesktop.org/>.
6873See \`config.log' for more details" "$LINENO" 5; }
6874else
6875	PNG_CFLAGS=$pkg_cv_PNG_CFLAGS
6876	PNG_LIBS=$pkg_cv_PNG_LIBS
6877        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6878$as_echo "yes" >&6; }
6879	:
6880fi
6881
6882CPPFLAGS="${CPPFLAGS} ${FT2_CFLAGS} ${PCRE_CFLAGS} ${GLEW_CFLAGS} ${SDL2_CFLAGS} ${PNG_CFLAGS}"
6883LIBS="${LIBS} ${FT2_LIBS} ${PCRE_LIBS} ${GLEW_LIBS} ${SDL2_LIBS} ${PNG_LIBS}"
6884
6885for ac_func in IMG_LoadPNG_RW
6886do :
6887  ac_fn_cxx_check_func "$LINENO" "IMG_LoadPNG_RW" "ac_cv_func_IMG_LoadPNG_RW"
6888if test "x$ac_cv_func_IMG_LoadPNG_RW" = xyes; then :
6889  cat >>confdefs.h <<_ACEOF
6890#define HAVE_IMG_LOADPNG_RW 1
6891_ACEOF
6892
6893else
6894  as_fn_error $? "SDL2_image with PNG support required. Please see INSTALL" "$LINENO" 5
6895fi
6896done
6897
6898for ac_func in IMG_LoadJPG_RW
6899do :
6900  ac_fn_cxx_check_func "$LINENO" "IMG_LoadJPG_RW" "ac_cv_func_IMG_LoadJPG_RW"
6901if test "x$ac_cv_func_IMG_LoadJPG_RW" = xyes; then :
6902  cat >>confdefs.h <<_ACEOF
6903#define HAVE_IMG_LOADJPG_RW 1
6904_ACEOF
6905
6906else
6907  as_fn_error $? "SDL2_image with JPEG support required. Please see INSTALL" "$LINENO" 5
6908fi
6909done
6910
6911
6912#BOOST
6913
6914
6915# Check whether --with-boost was given.
6916if test "${with_boost+set}" = set; then :
6917  withval=$with_boost;
6918     case $withval in #(
6919  no) :
6920    want_boost="no";_AX_BOOST_BASE_boost_path="" ;; #(
6921  yes) :
6922    want_boost="yes";_AX_BOOST_BASE_boost_path="" ;; #(
6923  *) :
6924    want_boost="yes";_AX_BOOST_BASE_boost_path="$withval" ;;
6925esac
6926
6927else
6928  want_boost="yes"
6929fi
6930
6931
6932
6933
6934# Check whether --with-boost-libdir was given.
6935if test "${with_boost_libdir+set}" = set; then :
6936  withval=$with_boost_libdir;
6937   if test -d "$withval"; then :
6938  _AX_BOOST_BASE_boost_lib_path="$withval"
6939else
6940  as_fn_error $? "--with-boost-libdir expected directory name" "$LINENO" 5
6941fi
6942
6943else
6944  _AX_BOOST_BASE_boost_lib_path=""
6945fi
6946
6947
6948BOOST_LDFLAGS=""
6949BOOST_CPPFLAGS=""
6950if test "x$want_boost" = "xyes"; then :
6951
6952
6953  if test "x1.46" = "x"; then :
6954  _AX_BOOST_BASE_TONUMERICVERSION_req="1.20.0"
6955else
6956  _AX_BOOST_BASE_TONUMERICVERSION_req="1.46"
6957fi
6958  _AX_BOOST_BASE_TONUMERICVERSION_req_shorten=`expr $_AX_BOOST_BASE_TONUMERICVERSION_req : '\([0-9]*\.[0-9]*\)'`
6959  _AX_BOOST_BASE_TONUMERICVERSION_req_major=`expr $_AX_BOOST_BASE_TONUMERICVERSION_req : '\([0-9]*\)'`
6960  if test "x$_AX_BOOST_BASE_TONUMERICVERSION_req_major" = "x"; then :
6961  as_fn_error $? "You should at least specify libboost major version" "$LINENO" 5
6962fi
6963  _AX_BOOST_BASE_TONUMERICVERSION_req_minor=`expr $_AX_BOOST_BASE_TONUMERICVERSION_req : '[0-9]*\.\([0-9]*\)'`
6964  if test "x$_AX_BOOST_BASE_TONUMERICVERSION_req_minor" = "x"; then :
6965  _AX_BOOST_BASE_TONUMERICVERSION_req_minor="0"
6966fi
6967  _AX_BOOST_BASE_TONUMERICVERSION_req_sub_minor=`expr $_AX_BOOST_BASE_TONUMERICVERSION_req : '[0-9]*\.[0-9]*\.\([0-9]*\)'`
6968  if test "X$_AX_BOOST_BASE_TONUMERICVERSION_req_sub_minor" = "X"; then :
6969  _AX_BOOST_BASE_TONUMERICVERSION_req_sub_minor="0"
6970fi
6971  _AX_BOOST_BASE_TONUMERICVERSION_RET=`expr $_AX_BOOST_BASE_TONUMERICVERSION_req_major \* 100000 \+  $_AX_BOOST_BASE_TONUMERICVERSION_req_minor \* 100 \+ $_AX_BOOST_BASE_TONUMERICVERSION_req_sub_minor`
6972  WANT_BOOST_VERSION=$_AX_BOOST_BASE_TONUMERICVERSION_RET
6973
6974    succeeded=no
6975
6976
6977
6978                        case ${host_cpu} in #(
6979  x86_64) :
6980    libsubdirs="lib64 libx32 lib lib64" ;; #(
6981  ppc64|s390x|sparc64|aarch64|ppc64le) :
6982    libsubdirs="lib64 lib lib64" ;; #(
6983  *) :
6984    libsubdirs="lib"
6985     ;;
6986esac
6987
6988                case ${host_cpu} in #(
6989  i?86) :
6990    multiarch_libsubdir="lib/i386-${host_os}" ;; #(
6991  *) :
6992    multiarch_libsubdir="lib/${host_cpu}-${host_os}"
6993     ;;
6994esac
6995
6996                if test "x$_AX_BOOST_BASE_boost_path" != "x"; then :
6997
6998        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for boostlib >= 1.46 ($WANT_BOOST_VERSION) includes in \"$_AX_BOOST_BASE_boost_path/include\"" >&5
6999$as_echo_n "checking for boostlib >= 1.46 ($WANT_BOOST_VERSION) includes in \"$_AX_BOOST_BASE_boost_path/include\"... " >&6; }
7000         if test -d "$_AX_BOOST_BASE_boost_path/include" && test -r "$_AX_BOOST_BASE_boost_path/include"; then :
7001
7002           { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7003$as_echo "yes" >&6; }
7004           BOOST_CPPFLAGS="-I$_AX_BOOST_BASE_boost_path/include"
7005           for _AX_BOOST_BASE_boost_path_tmp in $multiarch_libsubdir $libsubdirs; do
7006                { $as_echo "$as_me:${as_lineno-$LINENO}: checking for boostlib >= 1.46 ($WANT_BOOST_VERSION) lib path in \"$_AX_BOOST_BASE_boost_path/$_AX_BOOST_BASE_boost_path_tmp\"" >&5
7007$as_echo_n "checking for boostlib >= 1.46 ($WANT_BOOST_VERSION) lib path in \"$_AX_BOOST_BASE_boost_path/$_AX_BOOST_BASE_boost_path_tmp\"... " >&6; }
7008                if test -d "$_AX_BOOST_BASE_boost_path/$_AX_BOOST_BASE_boost_path_tmp" && test -r "$_AX_BOOST_BASE_boost_path/$_AX_BOOST_BASE_boost_path_tmp" ; then :
7009
7010                        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7011$as_echo "yes" >&6; }
7012                        BOOST_LDFLAGS="-L$_AX_BOOST_BASE_boost_path/$_AX_BOOST_BASE_boost_path_tmp";
7013                        break;
7014
7015else
7016  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7017$as_echo "no" >&6; }
7018fi
7019           done
7020else
7021
7022      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7023$as_echo "no" >&6; }
7024fi
7025
7026else
7027
7028        if test X"$cross_compiling" = Xyes; then
7029            search_libsubdirs=$multiarch_libsubdir
7030        else
7031            search_libsubdirs="$multiarch_libsubdir $libsubdirs"
7032        fi
7033        for _AX_BOOST_BASE_boost_path_tmp in /usr /usr/local /opt /opt/local ; do
7034            if test -d "$_AX_BOOST_BASE_boost_path_tmp/include/boost" && test -r "$_AX_BOOST_BASE_boost_path_tmp/include/boost" ; then
7035                for libsubdir in $search_libsubdirs ; do
7036                    if ls "$_AX_BOOST_BASE_boost_path_tmp/$libsubdir/libboost_"* >/dev/null 2>&1 ; then break; fi
7037                done
7038                BOOST_LDFLAGS="-L$_AX_BOOST_BASE_boost_path_tmp/$libsubdir"
7039                BOOST_CPPFLAGS="-I$_AX_BOOST_BASE_boost_path_tmp/include"
7040                break;
7041            fi
7042        done
7043
7044fi
7045
7046            if test "x$_AX_BOOST_BASE_boost_lib_path" != "x"; then :
7047  BOOST_LDFLAGS="-L$_AX_BOOST_BASE_boost_lib_path"
7048fi
7049
7050    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for boostlib >= 1.46 ($WANT_BOOST_VERSION)" >&5
7051$as_echo_n "checking for boostlib >= 1.46 ($WANT_BOOST_VERSION)... " >&6; }
7052    CPPFLAGS_SAVED="$CPPFLAGS"
7053    CPPFLAGS="$CPPFLAGS $BOOST_CPPFLAGS"
7054    export CPPFLAGS
7055
7056    LDFLAGS_SAVED="$LDFLAGS"
7057    LDFLAGS="$LDFLAGS $BOOST_LDFLAGS"
7058    export LDFLAGS
7059
7060
7061    ac_ext=cpp
7062ac_cpp='$CXXCPP $CPPFLAGS'
7063ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7064ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7065ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7066
7067        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7068/* end confdefs.h.  */
7069
7070#include <boost/version.hpp>
7071
7072int
7073main ()
7074{
7075
7076(void) ((void)sizeof(char[1 - 2*!!((BOOST_VERSION) < ($WANT_BOOST_VERSION))]));
7077
7078  ;
7079  return 0;
7080}
7081_ACEOF
7082if ac_fn_cxx_try_compile "$LINENO"; then :
7083
7084        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7085$as_echo "yes" >&6; }
7086    succeeded=yes
7087    found_system=yes
7088
7089fi
7090rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7091    ac_ext=cpp
7092ac_cpp='$CXXCPP $CPPFLAGS'
7093ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7094ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7095ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7096
7097
7098
7099
7100            if test "x$succeeded" != "xyes" ; then
7101        CPPFLAGS="$CPPFLAGS_SAVED"
7102        LDFLAGS="$LDFLAGS_SAVED"
7103        BOOST_CPPFLAGS=
7104        if test -z "$_AX_BOOST_BASE_boost_lib_path" ; then
7105            BOOST_LDFLAGS=
7106        fi
7107        _version=0
7108        if test -n "$_AX_BOOST_BASE_boost_path" ; then
7109            if test -d "$_AX_BOOST_BASE_boost_path" && test -r "$_AX_BOOST_BASE_boost_path"; then
7110                for i in `ls -d $_AX_BOOST_BASE_boost_path/include/boost-* 2>/dev/null`; do
7111                    _version_tmp=`echo $i | sed "s#$_AX_BOOST_BASE_boost_path##" | sed 's/\/include\/boost-//' | sed 's/_/./'`
7112                    V_CHECK=`expr $_version_tmp \> $_version`
7113                    if test "x$V_CHECK" = "x1" ; then
7114                        _version=$_version_tmp
7115                    fi
7116                    VERSION_UNDERSCORE=`echo $_version | sed 's/\./_/'`
7117                    BOOST_CPPFLAGS="-I$_AX_BOOST_BASE_boost_path/include/boost-$VERSION_UNDERSCORE"
7118                done
7119                                if test -z "$BOOST_CPPFLAGS"; then
7120                    if test -d "$_AX_BOOST_BASE_boost_path/boost" && test -r "$_AX_BOOST_BASE_boost_path/boost"; then
7121                        BOOST_CPPFLAGS="-I$_AX_BOOST_BASE_boost_path"
7122                    fi
7123                fi
7124                                                if test -n "$BOOST_CPPFLAGS" && test -z "$BOOST_LDFLAGS"; then
7125                    for libsubdir in $libsubdirs ; do
7126                        if ls "$_AX_BOOST_BASE_boost_path/$libsubdir/libboost_"* >/dev/null 2>&1 ; then break; fi
7127                    done
7128                    BOOST_LDFLAGS="-L$_AX_BOOST_BASE_boost_path/$libsubdir"
7129                fi
7130            fi
7131        else
7132            if test "x$cross_compiling" != "xyes" ; then
7133                for _AX_BOOST_BASE_boost_path in /usr /usr/local /opt /opt/local ; do
7134                    if test -d "$_AX_BOOST_BASE_boost_path" && test -r "$_AX_BOOST_BASE_boost_path" ; then
7135                        for i in `ls -d $_AX_BOOST_BASE_boost_path/include/boost-* 2>/dev/null`; do
7136                            _version_tmp=`echo $i | sed "s#$_AX_BOOST_BASE_boost_path##" | sed 's/\/include\/boost-//' | sed 's/_/./'`
7137                            V_CHECK=`expr $_version_tmp \> $_version`
7138                            if test "x$V_CHECK" = "x1" ; then
7139                                _version=$_version_tmp
7140                                best_path=$_AX_BOOST_BASE_boost_path
7141                            fi
7142                        done
7143                    fi
7144                done
7145
7146                VERSION_UNDERSCORE=`echo $_version | sed 's/\./_/'`
7147                BOOST_CPPFLAGS="-I$best_path/include/boost-$VERSION_UNDERSCORE"
7148                if test -z "$_AX_BOOST_BASE_boost_lib_path" ; then
7149                    for libsubdir in $libsubdirs ; do
7150                        if ls "$best_path/$libsubdir/libboost_"* >/dev/null 2>&1 ; then break; fi
7151                    done
7152                    BOOST_LDFLAGS="-L$best_path/$libsubdir"
7153                fi
7154            fi
7155
7156            if test -n "$BOOST_ROOT" ; then
7157                for libsubdir in $libsubdirs ; do
7158                    if ls "$BOOST_ROOT/stage/$libsubdir/libboost_"* >/dev/null 2>&1 ; then break; fi
7159                done
7160                if test -d "$BOOST_ROOT" && test -r "$BOOST_ROOT" && test -d "$BOOST_ROOT/stage/$libsubdir" && test -r "$BOOST_ROOT/stage/$libsubdir"; then
7161                    version_dir=`expr //$BOOST_ROOT : '.*/\(.*\)'`
7162                    stage_version=`echo $version_dir | sed 's/boost_//' | sed 's/_/./g'`
7163                        stage_version_shorten=`expr $stage_version : '\([0-9]*\.[0-9]*\)'`
7164                    V_CHECK=`expr $stage_version_shorten \>\= $_version`
7165                    if test "x$V_CHECK" = "x1" && test -z "$_AX_BOOST_BASE_boost_lib_path" ; then
7166                        { $as_echo "$as_me:${as_lineno-$LINENO}: We will use a staged boost library from $BOOST_ROOT" >&5
7167$as_echo "$as_me: We will use a staged boost library from $BOOST_ROOT" >&6;}
7168                        BOOST_CPPFLAGS="-I$BOOST_ROOT"
7169                        BOOST_LDFLAGS="-L$BOOST_ROOT/stage/$libsubdir"
7170                    fi
7171                fi
7172            fi
7173        fi
7174
7175        CPPFLAGS="$CPPFLAGS $BOOST_CPPFLAGS"
7176        export CPPFLAGS
7177        LDFLAGS="$LDFLAGS $BOOST_LDFLAGS"
7178        export LDFLAGS
7179
7180        ac_ext=cpp
7181ac_cpp='$CXXCPP $CPPFLAGS'
7182ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7183ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7184ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7185
7186            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7187/* end confdefs.h.  */
7188
7189#include <boost/version.hpp>
7190
7191int
7192main ()
7193{
7194
7195(void) ((void)sizeof(char[1 - 2*!!((BOOST_VERSION) < ($WANT_BOOST_VERSION))]));
7196
7197  ;
7198  return 0;
7199}
7200_ACEOF
7201if ac_fn_cxx_try_compile "$LINENO"; then :
7202
7203            { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7204$as_echo "yes" >&6; }
7205        succeeded=yes
7206        found_system=yes
7207
7208fi
7209rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7210        ac_ext=cpp
7211ac_cpp='$CXXCPP $CPPFLAGS'
7212ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7213ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7214ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7215
7216    fi
7217
7218    if test "x$succeeded" != "xyes" ; then
7219        if test "x$_version" = "x0" ; then
7220            { $as_echo "$as_me:${as_lineno-$LINENO}: We could not detect the boost libraries (version 1.46 or higher). If you have a staged boost library (still not installed) please specify \$BOOST_ROOT in your environment and do not give a PATH to --with-boost option.  If you are sure you have boost installed, then check your version number looking in <boost/version.hpp>. See http://randspringer.de/boost for more documentation." >&5
7221$as_echo "$as_me: We could not detect the boost libraries (version 1.46 or higher). If you have a staged boost library (still not installed) please specify \$BOOST_ROOT in your environment and do not give a PATH to --with-boost option.  If you are sure you have boost installed, then check your version number looking in <boost/version.hpp>. See http://randspringer.de/boost for more documentation." >&6;}
7222        else
7223            { $as_echo "$as_me:${as_lineno-$LINENO}: Your boost libraries seems to old (version $_version)." >&5
7224$as_echo "$as_me: Your boost libraries seems to old (version $_version)." >&6;}
7225        fi
7226        # execute ACTION-IF-NOT-FOUND (if present):
7227        as_fn_error $? "Boost Filesystem >= 1.46 is required. Please see INSTALL" "$LINENO" 5
7228    else
7229
7230$as_echo "#define HAVE_BOOST /**/" >>confdefs.h
7231
7232        # execute ACTION-IF-FOUND (if present):
7233        :
7234    fi
7235
7236    CPPFLAGS="$CPPFLAGS_SAVED"
7237    LDFLAGS="$LDFLAGS_SAVED"
7238
7239
7240fi
7241
7242
7243
7244
7245
7246# Check whether --with-boost-system was given.
7247if test "${with_boost_system+set}" = set; then :
7248  withval=$with_boost_system;
7249        if test "$withval" = "no"; then
7250			want_boost="no"
7251        elif test "$withval" = "yes"; then
7252            want_boost="yes"
7253            ax_boost_user_system_lib=""
7254        else
7255		    want_boost="yes"
7256		ax_boost_user_system_lib="$withval"
7257		fi
7258
7259else
7260  want_boost="yes"
7261
7262fi
7263
7264
7265	if test "x$want_boost" = "xyes"; then
7266
7267
7268		CPPFLAGS_SAVED="$CPPFLAGS"
7269		CPPFLAGS="$CPPFLAGS $BOOST_CPPFLAGS"
7270		export CPPFLAGS
7271
7272		LDFLAGS_SAVED="$LDFLAGS"
7273		LDFLAGS="$LDFLAGS $BOOST_LDFLAGS"
7274		export LDFLAGS
7275
7276        { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the Boost::System library is available" >&5
7277$as_echo_n "checking whether the Boost::System library is available... " >&6; }
7278if ${ax_cv_boost_system+:} false; then :
7279  $as_echo_n "(cached) " >&6
7280else
7281  ac_ext=cpp
7282ac_cpp='$CXXCPP $CPPFLAGS'
7283ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7284ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7285ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7286
7287			 CXXFLAGS_SAVE=$CXXFLAGS
7288			 CXXFLAGS=
7289
7290			 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7291/* end confdefs.h.  */
7292#include <boost/system/error_code.hpp>
7293int
7294main ()
7295{
7296boost::system::error_category *a = 0;
7297  ;
7298  return 0;
7299}
7300_ACEOF
7301if ac_fn_cxx_try_compile "$LINENO"; then :
7302  ax_cv_boost_system=yes
7303else
7304  ax_cv_boost_system=no
7305fi
7306rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7307			 CXXFLAGS=$CXXFLAGS_SAVE
7308             ac_ext=cpp
7309ac_cpp='$CXXCPP $CPPFLAGS'
7310ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7311ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7312ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7313
7314
7315fi
7316{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_boost_system" >&5
7317$as_echo "$ax_cv_boost_system" >&6; }
7318		if test "x$ax_cv_boost_system" = "xyes"; then
7319
7320
7321
7322$as_echo "#define HAVE_BOOST_SYSTEM /**/" >>confdefs.h
7323
7324            BOOSTLIBDIR=`echo $BOOST_LDFLAGS | sed -e 's/[^\/]*//'`
7325
7326			LDFLAGS_SAVE=$LDFLAGS
7327            if test "x$ax_boost_user_system_lib" = "x"; then
7328                for libextension in `ls -r $BOOSTLIBDIR/libboost_system* 2>/dev/null | sed 's,.*/lib,,' | sed 's,\..*,,'` ; do
7329                     ax_lib=${libextension}
7330				    as_ac_Lib=`$as_echo "ac_cv_lib_$ax_lib''_exit" | $as_tr_sh`
7331{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for exit in -l$ax_lib" >&5
7332$as_echo_n "checking for exit in -l$ax_lib... " >&6; }
7333if eval \${$as_ac_Lib+:} false; then :
7334  $as_echo_n "(cached) " >&6
7335else
7336  ac_check_lib_save_LIBS=$LIBS
7337LIBS="-l$ax_lib  $LIBS"
7338cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7339/* end confdefs.h.  */
7340
7341/* Override any GCC internal prototype to avoid an error.
7342   Use char because int might match the return type of a GCC
7343   builtin and then its argument prototype would still apply.  */
7344#ifdef __cplusplus
7345extern "C"
7346#endif
7347char exit ();
7348int
7349main ()
7350{
7351return exit ();
7352  ;
7353  return 0;
7354}
7355_ACEOF
7356if ac_fn_cxx_try_link "$LINENO"; then :
7357  eval "$as_ac_Lib=yes"
7358else
7359  eval "$as_ac_Lib=no"
7360fi
7361rm -f core conftest.err conftest.$ac_objext \
7362    conftest$ac_exeext conftest.$ac_ext
7363LIBS=$ac_check_lib_save_LIBS
7364fi
7365eval ac_res=\$$as_ac_Lib
7366	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7367$as_echo "$ac_res" >&6; }
7368if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
7369  BOOST_SYSTEM_LIB="-l$ax_lib";  link_system="yes"; break
7370else
7371  link_system="no"
7372fi
7373
7374				done
7375                if test "x$link_system" != "xyes"; then
7376                for libextension in `ls -r $BOOSTLIBDIR/boost_system* 2>/dev/null | sed 's,.*/,,' | sed -e 's,\..*,,'` ; do
7377                     ax_lib=${libextension}
7378				    as_ac_Lib=`$as_echo "ac_cv_lib_$ax_lib''_exit" | $as_tr_sh`
7379{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for exit in -l$ax_lib" >&5
7380$as_echo_n "checking for exit in -l$ax_lib... " >&6; }
7381if eval \${$as_ac_Lib+:} false; then :
7382  $as_echo_n "(cached) " >&6
7383else
7384  ac_check_lib_save_LIBS=$LIBS
7385LIBS="-l$ax_lib  $LIBS"
7386cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7387/* end confdefs.h.  */
7388
7389/* Override any GCC internal prototype to avoid an error.
7390   Use char because int might match the return type of a GCC
7391   builtin and then its argument prototype would still apply.  */
7392#ifdef __cplusplus
7393extern "C"
7394#endif
7395char exit ();
7396int
7397main ()
7398{
7399return exit ();
7400  ;
7401  return 0;
7402}
7403_ACEOF
7404if ac_fn_cxx_try_link "$LINENO"; then :
7405  eval "$as_ac_Lib=yes"
7406else
7407  eval "$as_ac_Lib=no"
7408fi
7409rm -f core conftest.err conftest.$ac_objext \
7410    conftest$ac_exeext conftest.$ac_ext
7411LIBS=$ac_check_lib_save_LIBS
7412fi
7413eval ac_res=\$$as_ac_Lib
7414	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7415$as_echo "$ac_res" >&6; }
7416if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
7417  BOOST_SYSTEM_LIB="-l$ax_lib";  link_system="yes"; break
7418else
7419  link_system="no"
7420fi
7421
7422				done
7423                fi
7424
7425            else
7426               for ax_lib in $ax_boost_user_system_lib boost_system-$ax_boost_user_system_lib; do
7427				      as_ac_Lib=`$as_echo "ac_cv_lib_$ax_lib''_exit" | $as_tr_sh`
7428{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for exit in -l$ax_lib" >&5
7429$as_echo_n "checking for exit in -l$ax_lib... " >&6; }
7430if eval \${$as_ac_Lib+:} false; then :
7431  $as_echo_n "(cached) " >&6
7432else
7433  ac_check_lib_save_LIBS=$LIBS
7434LIBS="-l$ax_lib  $LIBS"
7435cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7436/* end confdefs.h.  */
7437
7438/* Override any GCC internal prototype to avoid an error.
7439   Use char because int might match the return type of a GCC
7440   builtin and then its argument prototype would still apply.  */
7441#ifdef __cplusplus
7442extern "C"
7443#endif
7444char exit ();
7445int
7446main ()
7447{
7448return exit ();
7449  ;
7450  return 0;
7451}
7452_ACEOF
7453if ac_fn_cxx_try_link "$LINENO"; then :
7454  eval "$as_ac_Lib=yes"
7455else
7456  eval "$as_ac_Lib=no"
7457fi
7458rm -f core conftest.err conftest.$ac_objext \
7459    conftest$ac_exeext conftest.$ac_ext
7460LIBS=$ac_check_lib_save_LIBS
7461fi
7462eval ac_res=\$$as_ac_Lib
7463	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7464$as_echo "$ac_res" >&6; }
7465if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
7466  BOOST_SYSTEM_LIB="-l$ax_lib";  link_system="yes"; break
7467else
7468  link_system="no"
7469fi
7470
7471                  done
7472
7473            fi
7474            if test "x$ax_lib" = "x"; then
7475                as_fn_error $? "Could not find a version of the library!" "$LINENO" 5
7476            fi
7477			if test "x$link_system" = "xno"; then
7478				as_fn_error $? "Could not link against $ax_lib !" "$LINENO" 5
7479			fi
7480		fi
7481
7482		CPPFLAGS="$CPPFLAGS_SAVED"
7483	LDFLAGS="$LDFLAGS_SAVED"
7484	fi
7485
7486
7487
7488# Check whether --with-boost-filesystem was given.
7489if test "${with_boost_filesystem+set}" = set; then :
7490  withval=$with_boost_filesystem;
7491        if test "$withval" = "no"; then
7492			want_boost="no"
7493        elif test "$withval" = "yes"; then
7494            want_boost="yes"
7495            ax_boost_user_filesystem_lib=""
7496        else
7497		    want_boost="yes"
7498		ax_boost_user_filesystem_lib="$withval"
7499		fi
7500
7501else
7502  want_boost="yes"
7503
7504fi
7505
7506
7507	if test "x$want_boost" = "xyes"; then
7508
7509		CPPFLAGS_SAVED="$CPPFLAGS"
7510		CPPFLAGS="$CPPFLAGS $BOOST_CPPFLAGS"
7511		export CPPFLAGS
7512
7513		LDFLAGS_SAVED="$LDFLAGS"
7514		LDFLAGS="$LDFLAGS $BOOST_LDFLAGS"
7515		export LDFLAGS
7516
7517		LIBS_SAVED=$LIBS
7518		LIBS="$LIBS $BOOST_SYSTEM_LIB"
7519		export LIBS
7520
7521        { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the Boost::Filesystem library is available" >&5
7522$as_echo_n "checking whether the Boost::Filesystem library is available... " >&6; }
7523if ${ax_cv_boost_filesystem+:} false; then :
7524  $as_echo_n "(cached) " >&6
7525else
7526  ac_ext=cpp
7527ac_cpp='$CXXCPP $CPPFLAGS'
7528ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7529ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7530ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7531
7532         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7533/* end confdefs.h.  */
7534#include <boost/filesystem/path.hpp>
7535int
7536main ()
7537{
7538using namespace boost::filesystem;
7539                                   path my_path( "foo/bar/data.txt" );
7540                                   return 0;
7541  ;
7542  return 0;
7543}
7544_ACEOF
7545if ac_fn_cxx_try_compile "$LINENO"; then :
7546  ax_cv_boost_filesystem=yes
7547else
7548  ax_cv_boost_filesystem=no
7549fi
7550rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7551         ac_ext=cpp
7552ac_cpp='$CXXCPP $CPPFLAGS'
7553ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7554ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7555ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7556
7557
7558fi
7559{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_boost_filesystem" >&5
7560$as_echo "$ax_cv_boost_filesystem" >&6; }
7561		if test "x$ax_cv_boost_filesystem" = "xyes"; then
7562
7563$as_echo "#define HAVE_BOOST_FILESYSTEM /**/" >>confdefs.h
7564
7565            BOOSTLIBDIR=`echo $BOOST_LDFLAGS | sed -e 's/[^\/]*//'`
7566            if test "x$ax_boost_user_filesystem_lib" = "x"; then
7567                for libextension in `ls -r $BOOSTLIBDIR/libboost_filesystem* 2>/dev/null | sed 's,.*/lib,,' | sed 's,\..*,,'` ; do
7568                     ax_lib=${libextension}
7569				    as_ac_Lib=`$as_echo "ac_cv_lib_$ax_lib''_exit" | $as_tr_sh`
7570{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for exit in -l$ax_lib" >&5
7571$as_echo_n "checking for exit in -l$ax_lib... " >&6; }
7572if eval \${$as_ac_Lib+:} false; then :
7573  $as_echo_n "(cached) " >&6
7574else
7575  ac_check_lib_save_LIBS=$LIBS
7576LIBS="-l$ax_lib  $LIBS"
7577cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7578/* end confdefs.h.  */
7579
7580/* Override any GCC internal prototype to avoid an error.
7581   Use char because int might match the return type of a GCC
7582   builtin and then its argument prototype would still apply.  */
7583#ifdef __cplusplus
7584extern "C"
7585#endif
7586char exit ();
7587int
7588main ()
7589{
7590return exit ();
7591  ;
7592  return 0;
7593}
7594_ACEOF
7595if ac_fn_cxx_try_link "$LINENO"; then :
7596  eval "$as_ac_Lib=yes"
7597else
7598  eval "$as_ac_Lib=no"
7599fi
7600rm -f core conftest.err conftest.$ac_objext \
7601    conftest$ac_exeext conftest.$ac_ext
7602LIBS=$ac_check_lib_save_LIBS
7603fi
7604eval ac_res=\$$as_ac_Lib
7605	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7606$as_echo "$ac_res" >&6; }
7607if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
7608  BOOST_FILESYSTEM_LIB="-l$ax_lib";  link_filesystem="yes"; break
7609else
7610  link_filesystem="no"
7611fi
7612
7613				done
7614                if test "x$link_filesystem" != "xyes"; then
7615                for libextension in `ls -r $BOOSTLIBDIR/boost_filesystem* 2>/dev/null | sed 's,.*/,,' | sed -e 's,\..*,,'` ; do
7616                     ax_lib=${libextension}
7617				    as_ac_Lib=`$as_echo "ac_cv_lib_$ax_lib''_exit" | $as_tr_sh`
7618{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for exit in -l$ax_lib" >&5
7619$as_echo_n "checking for exit in -l$ax_lib... " >&6; }
7620if eval \${$as_ac_Lib+:} false; then :
7621  $as_echo_n "(cached) " >&6
7622else
7623  ac_check_lib_save_LIBS=$LIBS
7624LIBS="-l$ax_lib  $LIBS"
7625cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7626/* end confdefs.h.  */
7627
7628/* Override any GCC internal prototype to avoid an error.
7629   Use char because int might match the return type of a GCC
7630   builtin and then its argument prototype would still apply.  */
7631#ifdef __cplusplus
7632extern "C"
7633#endif
7634char exit ();
7635int
7636main ()
7637{
7638return exit ();
7639  ;
7640  return 0;
7641}
7642_ACEOF
7643if ac_fn_cxx_try_link "$LINENO"; then :
7644  eval "$as_ac_Lib=yes"
7645else
7646  eval "$as_ac_Lib=no"
7647fi
7648rm -f core conftest.err conftest.$ac_objext \
7649    conftest$ac_exeext conftest.$ac_ext
7650LIBS=$ac_check_lib_save_LIBS
7651fi
7652eval ac_res=\$$as_ac_Lib
7653	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7654$as_echo "$ac_res" >&6; }
7655if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
7656  BOOST_FILESYSTEM_LIB="-l$ax_lib";  link_filesystem="yes"; break
7657else
7658  link_filesystem="no"
7659fi
7660
7661				done
7662		    fi
7663            else
7664               for ax_lib in $ax_boost_user_filesystem_lib boost_filesystem-$ax_boost_user_filesystem_lib; do
7665				      as_ac_Lib=`$as_echo "ac_cv_lib_$ax_lib''_exit" | $as_tr_sh`
7666{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for exit in -l$ax_lib" >&5
7667$as_echo_n "checking for exit in -l$ax_lib... " >&6; }
7668if eval \${$as_ac_Lib+:} false; then :
7669  $as_echo_n "(cached) " >&6
7670else
7671  ac_check_lib_save_LIBS=$LIBS
7672LIBS="-l$ax_lib  $LIBS"
7673cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7674/* end confdefs.h.  */
7675
7676/* Override any GCC internal prototype to avoid an error.
7677   Use char because int might match the return type of a GCC
7678   builtin and then its argument prototype would still apply.  */
7679#ifdef __cplusplus
7680extern "C"
7681#endif
7682char exit ();
7683int
7684main ()
7685{
7686return exit ();
7687  ;
7688  return 0;
7689}
7690_ACEOF
7691if ac_fn_cxx_try_link "$LINENO"; then :
7692  eval "$as_ac_Lib=yes"
7693else
7694  eval "$as_ac_Lib=no"
7695fi
7696rm -f core conftest.err conftest.$ac_objext \
7697    conftest$ac_exeext conftest.$ac_ext
7698LIBS=$ac_check_lib_save_LIBS
7699fi
7700eval ac_res=\$$as_ac_Lib
7701	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7702$as_echo "$ac_res" >&6; }
7703if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
7704  BOOST_FILESYSTEM_LIB="-l$ax_lib";  link_filesystem="yes"; break
7705else
7706  link_filesystem="no"
7707fi
7708
7709                  done
7710
7711            fi
7712            if test "x$ax_lib" = "x"; then
7713                as_fn_error $? "Could not find a version of the library!" "$LINENO" 5
7714            fi
7715			if test "x$link_filesystem" != "xyes"; then
7716				as_fn_error $? "Could not link against $ax_lib !" "$LINENO" 5
7717			fi
7718		fi
7719
7720		CPPFLAGS="$CPPFLAGS_SAVED"
7721		LDFLAGS="$LDFLAGS_SAVED"
7722		LIBS="$LIBS_SAVED"
7723	fi
7724
7725
7726CPPFLAGS="$CPPFLAGS $BOOST_CPPFLAGS"
7727LIBS="$LIBS $BOOST_SYSTEM_LIB $BOOST_FILESYSTEM_LIB"
7728
7729# Check whether --enable-font-file was given.
7730if test "${enable_font_file+set}" = set; then :
7731  enableval=$enable_font_file; gourcefontfile="$enableval"
7732else
7733  gourcefontfile=""
7734fi
7735
7736 if test "x$gourcefontfile" != "x"; then
7737  FONTFILE_TRUE=
7738  FONTFILE_FALSE='#'
7739else
7740  FONTFILE_TRUE='#'
7741  FONTFILE_FALSE=
7742fi
7743
7744
7745
7746#see if ttf-font-dir option is enabled
7747# Check whether --enable-ttf-font-dir was given.
7748if test "${enable_ttf_font_dir+set}" = set; then :
7749  enableval=$enable_ttf_font_dir; gourcefontdir="$enableval"
7750else
7751  gourcefontdir=""
7752fi
7753
7754 if test "x$gourcefontdir" != "x"; then
7755  FONTDIR_TRUE=
7756  FONTDIR_FALSE='#'
7757else
7758  FONTDIR_TRUE='#'
7759  FONTDIR_FALSE=
7760fi
7761
7762
7763
7764#GLM
7765ac_fn_cxx_check_header_mongrel "$LINENO" "glm/glm.hpp" "ac_cv_header_glm_glm_hpp" "$ac_includes_default"
7766if test "x$ac_cv_header_glm_glm_hpp" = xyes; then :
7767
7768else
7769  as_fn_error $? "GLM headers are required. Please see INSTALL" "$LINENO" 5
7770fi
7771
7772
7773
7774#see if building against system TinyXML library
7775use_tinyxml_system_library=no
7776
7777# Check whether --with-tinyxml was given.
7778if test "${with_tinyxml+set}" = set; then :
7779  withval=$with_tinyxml; use_tinyxml_system_library=$withval
7780fi
7781
7782if test "x$use_tinyxml_system_library" = "xyes"; then
7783    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -ltinyxml" >&5
7784$as_echo_n "checking for main in -ltinyxml... " >&6; }
7785if ${ac_cv_lib_tinyxml_main+:} false; then :
7786  $as_echo_n "(cached) " >&6
7787else
7788  ac_check_lib_save_LIBS=$LIBS
7789LIBS="-ltinyxml  $LIBS"
7790cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7791/* end confdefs.h.  */
7792
7793
7794int
7795main ()
7796{
7797return main ();
7798  ;
7799  return 0;
7800}
7801_ACEOF
7802if ac_fn_cxx_try_link "$LINENO"; then :
7803  ac_cv_lib_tinyxml_main=yes
7804else
7805  ac_cv_lib_tinyxml_main=no
7806fi
7807rm -f core conftest.err conftest.$ac_objext \
7808    conftest$ac_exeext conftest.$ac_ext
7809LIBS=$ac_check_lib_save_LIBS
7810fi
7811{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tinyxml_main" >&5
7812$as_echo "$ac_cv_lib_tinyxml_main" >&6; }
7813if test "x$ac_cv_lib_tinyxml_main" = xyes; then :
7814  cat >>confdefs.h <<_ACEOF
7815#define HAVE_LIBTINYXML 1
7816_ACEOF
7817
7818  LIBS="-ltinyxml $LIBS"
7819
7820else
7821  as_fn_error $? "TinyXML library was requested but not found" "$LINENO" 5
7822fi
7823ac_cv_lib_tinyxml=ac_cv_lib_tinyxml_main
7824
7825fi
7826 if test "x$use_tinyxml_system_library" != "xyes"; then
7827  USE_BUNDLED_TINYXML_TRUE=
7828  USE_BUNDLED_TINYXML_FALSE='#'
7829else
7830  USE_BUNDLED_TINYXML_TRUE='#'
7831  USE_BUNDLED_TINYXML_FALSE=
7832fi
7833
7834
7835ac_config_files="$ac_config_files Makefile"
7836
7837cat >confcache <<\_ACEOF
7838# This file is a shell script that caches the results of configure
7839# tests run on this system so they can be shared between configure
7840# scripts and configure runs, see configure's option --config-cache.
7841# It is not useful on other systems.  If it contains results you don't
7842# want to keep, you may remove or edit it.
7843#
7844# config.status only pays attention to the cache file if you give it
7845# the --recheck option to rerun configure.
7846#
7847# `ac_cv_env_foo' variables (set or unset) will be overridden when
7848# loading this file, other *unset* `ac_cv_foo' will be assigned the
7849# following values.
7850
7851_ACEOF
7852
7853# The following way of writing the cache mishandles newlines in values,
7854# but we know of no workaround that is simple, portable, and efficient.
7855# So, we kill variables containing newlines.
7856# Ultrix sh set writes to stderr and can't be redirected directly,
7857# and sets the high bit in the cache file unless we assign to the vars.
7858(
7859  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
7860    eval ac_val=\$$ac_var
7861    case $ac_val in #(
7862    *${as_nl}*)
7863      case $ac_var in #(
7864      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
7865$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
7866      esac
7867      case $ac_var in #(
7868      _ | IFS | as_nl) ;; #(
7869      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
7870      *) { eval $ac_var=; unset $ac_var;} ;;
7871      esac ;;
7872    esac
7873  done
7874
7875  (set) 2>&1 |
7876    case $as_nl`(ac_space=' '; set) 2>&1` in #(
7877    *${as_nl}ac_space=\ *)
7878      # `set' does not quote correctly, so add quotes: double-quote
7879      # substitution turns \\\\ into \\, and sed turns \\ into \.
7880      sed -n \
7881	"s/'/'\\\\''/g;
7882	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
7883      ;; #(
7884    *)
7885      # `set' quotes correctly as required by POSIX, so do not add quotes.
7886      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
7887      ;;
7888    esac |
7889    sort
7890) |
7891  sed '
7892     /^ac_cv_env_/b end
7893     t clear
7894     :clear
7895     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
7896     t end
7897     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
7898     :end' >>confcache
7899if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
7900  if test -w "$cache_file"; then
7901    if test "x$cache_file" != "x/dev/null"; then
7902      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
7903$as_echo "$as_me: updating cache $cache_file" >&6;}
7904      if test ! -f "$cache_file" || test -h "$cache_file"; then
7905	cat confcache >"$cache_file"
7906      else
7907        case $cache_file in #(
7908        */* | ?:*)
7909	  mv -f confcache "$cache_file"$$ &&
7910	  mv -f "$cache_file"$$ "$cache_file" ;; #(
7911        *)
7912	  mv -f confcache "$cache_file" ;;
7913	esac
7914      fi
7915    fi
7916  else
7917    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
7918$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
7919  fi
7920fi
7921rm -f confcache
7922
7923test "x$prefix" = xNONE && prefix=$ac_default_prefix
7924# Let make expand exec_prefix.
7925test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
7926
7927# Transform confdefs.h into DEFS.
7928# Protect against shell expansion while executing Makefile rules.
7929# Protect against Makefile macro expansion.
7930#
7931# If the first sed substitution is executed (which looks for macros that
7932# take arguments), then branch to the quote section.  Otherwise,
7933# look for a macro that doesn't take arguments.
7934ac_script='
7935:mline
7936/\\$/{
7937 N
7938 s,\\\n,,
7939 b mline
7940}
7941t clear
7942:clear
7943s/^[	 ]*#[	 ]*define[	 ][	 ]*\([^	 (][^	 (]*([^)]*)\)[	 ]*\(.*\)/-D\1=\2/g
7944t quote
7945s/^[	 ]*#[	 ]*define[	 ][	 ]*\([^	 ][^	 ]*\)[	 ]*\(.*\)/-D\1=\2/g
7946t quote
7947b any
7948:quote
7949s/[	 `~#$^&*(){}\\|;'\''"<>?]/\\&/g
7950s/\[/\\&/g
7951s/\]/\\&/g
7952s/\$/$$/g
7953H
7954:any
7955${
7956	g
7957	s/^\n//
7958	s/\n/ /g
7959	p
7960}
7961'
7962DEFS=`sed -n "$ac_script" confdefs.h`
7963
7964
7965ac_libobjs=
7966ac_ltlibobjs=
7967U=
7968for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
7969  # 1. Remove the extension, and $U if already installed.
7970  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
7971  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
7972  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
7973  #    will be set to the directory where LIBOBJS objects are built.
7974  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
7975  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
7976done
7977LIBOBJS=$ac_libobjs
7978
7979LTLIBOBJS=$ac_ltlibobjs
7980
7981
7982{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
7983$as_echo_n "checking that generated files are newer than configure... " >&6; }
7984   if test -n "$am_sleep_pid"; then
7985     # Hide warnings about reused PIDs.
7986     wait $am_sleep_pid 2>/dev/null
7987   fi
7988   { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
7989$as_echo "done" >&6; }
7990 if test -n "$EXEEXT"; then
7991  am__EXEEXT_TRUE=
7992  am__EXEEXT_FALSE='#'
7993else
7994  am__EXEEXT_TRUE='#'
7995  am__EXEEXT_FALSE=
7996fi
7997
7998if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
7999  as_fn_error $? "conditional \"AMDEP\" was never defined.
8000Usually this means the macro was only invoked conditionally." "$LINENO" 5
8001fi
8002if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
8003  as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
8004Usually this means the macro was only invoked conditionally." "$LINENO" 5
8005fi
8006if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
8007  as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
8008Usually this means the macro was only invoked conditionally." "$LINENO" 5
8009fi
8010if test -z "${FONTFILE_TRUE}" && test -z "${FONTFILE_FALSE}"; then
8011  as_fn_error $? "conditional \"FONTFILE\" was never defined.
8012Usually this means the macro was only invoked conditionally." "$LINENO" 5
8013fi
8014if test -z "${FONTDIR_TRUE}" && test -z "${FONTDIR_FALSE}"; then
8015  as_fn_error $? "conditional \"FONTDIR\" was never defined.
8016Usually this means the macro was only invoked conditionally." "$LINENO" 5
8017fi
8018if test -z "${USE_BUNDLED_TINYXML_TRUE}" && test -z "${USE_BUNDLED_TINYXML_FALSE}"; then
8019  as_fn_error $? "conditional \"USE_BUNDLED_TINYXML\" was never defined.
8020Usually this means the macro was only invoked conditionally." "$LINENO" 5
8021fi
8022
8023: "${CONFIG_STATUS=./config.status}"
8024ac_write_fail=0
8025ac_clean_files_save=$ac_clean_files
8026ac_clean_files="$ac_clean_files $CONFIG_STATUS"
8027{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
8028$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
8029as_write_fail=0
8030cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
8031#! $SHELL
8032# Generated by $as_me.
8033# Run this file to recreate the current configuration.
8034# Compiler output produced by configure, useful for debugging
8035# configure, is in config.log if it exists.
8036
8037debug=false
8038ac_cs_recheck=false
8039ac_cs_silent=false
8040
8041SHELL=\${CONFIG_SHELL-$SHELL}
8042export SHELL
8043_ASEOF
8044cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
8045## -------------------- ##
8046## M4sh Initialization. ##
8047## -------------------- ##
8048
8049# Be more Bourne compatible
8050DUALCASE=1; export DUALCASE # for MKS sh
8051if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
8052  emulate sh
8053  NULLCMD=:
8054  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
8055  # is contrary to our usage.  Disable this feature.
8056  alias -g '${1+"$@"}'='"$@"'
8057  setopt NO_GLOB_SUBST
8058else
8059  case `(set -o) 2>/dev/null` in #(
8060  *posix*) :
8061    set -o posix ;; #(
8062  *) :
8063     ;;
8064esac
8065fi
8066
8067
8068as_nl='
8069'
8070export as_nl
8071# Printing a long string crashes Solaris 7 /usr/bin/printf.
8072as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
8073as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
8074as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
8075# Prefer a ksh shell builtin over an external printf program on Solaris,
8076# but without wasting forks for bash or zsh.
8077if test -z "$BASH_VERSION$ZSH_VERSION" \
8078    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
8079  as_echo='print -r --'
8080  as_echo_n='print -rn --'
8081elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
8082  as_echo='printf %s\n'
8083  as_echo_n='printf %s'
8084else
8085  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
8086    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
8087    as_echo_n='/usr/ucb/echo -n'
8088  else
8089    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
8090    as_echo_n_body='eval
8091      arg=$1;
8092      case $arg in #(
8093      *"$as_nl"*)
8094	expr "X$arg" : "X\\(.*\\)$as_nl";
8095	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
8096      esac;
8097      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
8098    '
8099    export as_echo_n_body
8100    as_echo_n='sh -c $as_echo_n_body as_echo'
8101  fi
8102  export as_echo_body
8103  as_echo='sh -c $as_echo_body as_echo'
8104fi
8105
8106# The user is always right.
8107if test "${PATH_SEPARATOR+set}" != set; then
8108  PATH_SEPARATOR=:
8109  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
8110    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
8111      PATH_SEPARATOR=';'
8112  }
8113fi
8114
8115
8116# IFS
8117# We need space, tab and new line, in precisely that order.  Quoting is
8118# there to prevent editors from complaining about space-tab.
8119# (If _AS_PATH_WALK were called with IFS unset, it would disable word
8120# splitting by setting IFS to empty value.)
8121IFS=" ""	$as_nl"
8122
8123# Find who we are.  Look in the path if we contain no directory separator.
8124as_myself=
8125case $0 in #((
8126  *[\\/]* ) as_myself=$0 ;;
8127  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8128for as_dir in $PATH
8129do
8130  IFS=$as_save_IFS
8131  test -z "$as_dir" && as_dir=.
8132    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
8133  done
8134IFS=$as_save_IFS
8135
8136     ;;
8137esac
8138# We did not find ourselves, most probably we were run as `sh COMMAND'
8139# in which case we are not to be found in the path.
8140if test "x$as_myself" = x; then
8141  as_myself=$0
8142fi
8143if test ! -f "$as_myself"; then
8144  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
8145  exit 1
8146fi
8147
8148# Unset variables that we do not need and which cause bugs (e.g. in
8149# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
8150# suppresses any "Segmentation fault" message there.  '((' could
8151# trigger a bug in pdksh 5.2.14.
8152for as_var in BASH_ENV ENV MAIL MAILPATH
8153do eval test x\${$as_var+set} = xset \
8154  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
8155done
8156PS1='$ '
8157PS2='> '
8158PS4='+ '
8159
8160# NLS nuisances.
8161LC_ALL=C
8162export LC_ALL
8163LANGUAGE=C
8164export LANGUAGE
8165
8166# CDPATH.
8167(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
8168
8169
8170# as_fn_error STATUS ERROR [LINENO LOG_FD]
8171# ----------------------------------------
8172# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
8173# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
8174# script with STATUS, using 1 if that was 0.
8175as_fn_error ()
8176{
8177  as_status=$1; test $as_status -eq 0 && as_status=1
8178  if test "$4"; then
8179    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
8180    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
8181  fi
8182  $as_echo "$as_me: error: $2" >&2
8183  as_fn_exit $as_status
8184} # as_fn_error
8185
8186
8187# as_fn_set_status STATUS
8188# -----------------------
8189# Set $? to STATUS, without forking.
8190as_fn_set_status ()
8191{
8192  return $1
8193} # as_fn_set_status
8194
8195# as_fn_exit STATUS
8196# -----------------
8197# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
8198as_fn_exit ()
8199{
8200  set +e
8201  as_fn_set_status $1
8202  exit $1
8203} # as_fn_exit
8204
8205# as_fn_unset VAR
8206# ---------------
8207# Portably unset VAR.
8208as_fn_unset ()
8209{
8210  { eval $1=; unset $1;}
8211}
8212as_unset=as_fn_unset
8213# as_fn_append VAR VALUE
8214# ----------------------
8215# Append the text in VALUE to the end of the definition contained in VAR. Take
8216# advantage of any shell optimizations that allow amortized linear growth over
8217# repeated appends, instead of the typical quadratic growth present in naive
8218# implementations.
8219if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
8220  eval 'as_fn_append ()
8221  {
8222    eval $1+=\$2
8223  }'
8224else
8225  as_fn_append ()
8226  {
8227    eval $1=\$$1\$2
8228  }
8229fi # as_fn_append
8230
8231# as_fn_arith ARG...
8232# ------------------
8233# Perform arithmetic evaluation on the ARGs, and store the result in the
8234# global $as_val. Take advantage of shells that can avoid forks. The arguments
8235# must be portable across $(()) and expr.
8236if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
8237  eval 'as_fn_arith ()
8238  {
8239    as_val=$(( $* ))
8240  }'
8241else
8242  as_fn_arith ()
8243  {
8244    as_val=`expr "$@" || test $? -eq 1`
8245  }
8246fi # as_fn_arith
8247
8248
8249if expr a : '\(a\)' >/dev/null 2>&1 &&
8250   test "X`expr 00001 : '.*\(...\)'`" = X001; then
8251  as_expr=expr
8252else
8253  as_expr=false
8254fi
8255
8256if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
8257  as_basename=basename
8258else
8259  as_basename=false
8260fi
8261
8262if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
8263  as_dirname=dirname
8264else
8265  as_dirname=false
8266fi
8267
8268as_me=`$as_basename -- "$0" ||
8269$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
8270	 X"$0" : 'X\(//\)$' \| \
8271	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
8272$as_echo X/"$0" |
8273    sed '/^.*\/\([^/][^/]*\)\/*$/{
8274	    s//\1/
8275	    q
8276	  }
8277	  /^X\/\(\/\/\)$/{
8278	    s//\1/
8279	    q
8280	  }
8281	  /^X\/\(\/\).*/{
8282	    s//\1/
8283	    q
8284	  }
8285	  s/.*/./; q'`
8286
8287# Avoid depending upon Character Ranges.
8288as_cr_letters='abcdefghijklmnopqrstuvwxyz'
8289as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
8290as_cr_Letters=$as_cr_letters$as_cr_LETTERS
8291as_cr_digits='0123456789'
8292as_cr_alnum=$as_cr_Letters$as_cr_digits
8293
8294ECHO_C= ECHO_N= ECHO_T=
8295case `echo -n x` in #(((((
8296-n*)
8297  case `echo 'xy\c'` in
8298  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
8299  xy)  ECHO_C='\c';;
8300  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
8301       ECHO_T='	';;
8302  esac;;
8303*)
8304  ECHO_N='-n';;
8305esac
8306
8307rm -f conf$$ conf$$.exe conf$$.file
8308if test -d conf$$.dir; then
8309  rm -f conf$$.dir/conf$$.file
8310else
8311  rm -f conf$$.dir
8312  mkdir conf$$.dir 2>/dev/null
8313fi
8314if (echo >conf$$.file) 2>/dev/null; then
8315  if ln -s conf$$.file conf$$ 2>/dev/null; then
8316    as_ln_s='ln -s'
8317    # ... but there are two gotchas:
8318    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
8319    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
8320    # In both cases, we have to default to `cp -pR'.
8321    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
8322      as_ln_s='cp -pR'
8323  elif ln conf$$.file conf$$ 2>/dev/null; then
8324    as_ln_s=ln
8325  else
8326    as_ln_s='cp -pR'
8327  fi
8328else
8329  as_ln_s='cp -pR'
8330fi
8331rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
8332rmdir conf$$.dir 2>/dev/null
8333
8334
8335# as_fn_mkdir_p
8336# -------------
8337# Create "$as_dir" as a directory, including parents if necessary.
8338as_fn_mkdir_p ()
8339{
8340
8341  case $as_dir in #(
8342  -*) as_dir=./$as_dir;;
8343  esac
8344  test -d "$as_dir" || eval $as_mkdir_p || {
8345    as_dirs=
8346    while :; do
8347      case $as_dir in #(
8348      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
8349      *) as_qdir=$as_dir;;
8350      esac
8351      as_dirs="'$as_qdir' $as_dirs"
8352      as_dir=`$as_dirname -- "$as_dir" ||
8353$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8354	 X"$as_dir" : 'X\(//\)[^/]' \| \
8355	 X"$as_dir" : 'X\(//\)$' \| \
8356	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
8357$as_echo X"$as_dir" |
8358    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
8359	    s//\1/
8360	    q
8361	  }
8362	  /^X\(\/\/\)[^/].*/{
8363	    s//\1/
8364	    q
8365	  }
8366	  /^X\(\/\/\)$/{
8367	    s//\1/
8368	    q
8369	  }
8370	  /^X\(\/\).*/{
8371	    s//\1/
8372	    q
8373	  }
8374	  s/.*/./; q'`
8375      test -d "$as_dir" && break
8376    done
8377    test -z "$as_dirs" || eval "mkdir $as_dirs"
8378  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
8379
8380
8381} # as_fn_mkdir_p
8382if mkdir -p . 2>/dev/null; then
8383  as_mkdir_p='mkdir -p "$as_dir"'
8384else
8385  test -d ./-p && rmdir ./-p
8386  as_mkdir_p=false
8387fi
8388
8389
8390# as_fn_executable_p FILE
8391# -----------------------
8392# Test if FILE is an executable regular file.
8393as_fn_executable_p ()
8394{
8395  test -f "$1" && test -x "$1"
8396} # as_fn_executable_p
8397as_test_x='test -x'
8398as_executable_p=as_fn_executable_p
8399
8400# Sed expression to map a string onto a valid CPP name.
8401as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
8402
8403# Sed expression to map a string onto a valid variable name.
8404as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
8405
8406
8407exec 6>&1
8408## ----------------------------------- ##
8409## Main body of $CONFIG_STATUS script. ##
8410## ----------------------------------- ##
8411_ASEOF
8412test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
8413
8414cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8415# Save the log message, to keep $0 and so on meaningful, and to
8416# report actual input values of CONFIG_FILES etc. instead of their
8417# values after options handling.
8418ac_log="
8419This file was extended by Gource $as_me 0.51, which was
8420generated by GNU Autoconf 2.69.  Invocation command line was
8421
8422  CONFIG_FILES    = $CONFIG_FILES
8423  CONFIG_HEADERS  = $CONFIG_HEADERS
8424  CONFIG_LINKS    = $CONFIG_LINKS
8425  CONFIG_COMMANDS = $CONFIG_COMMANDS
8426  $ $0 $@
8427
8428on `(hostname || uname -n) 2>/dev/null | sed 1q`
8429"
8430
8431_ACEOF
8432
8433case $ac_config_files in *"
8434"*) set x $ac_config_files; shift; ac_config_files=$*;;
8435esac
8436
8437
8438
8439cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8440# Files that config.status was made for.
8441config_files="$ac_config_files"
8442config_commands="$ac_config_commands"
8443
8444_ACEOF
8445
8446cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8447ac_cs_usage="\
8448\`$as_me' instantiates files and other configuration actions
8449from templates according to the current configuration.  Unless the files
8450and actions are specified as TAGs, all are instantiated by default.
8451
8452Usage: $0 [OPTION]... [TAG]...
8453
8454  -h, --help       print this help, then exit
8455  -V, --version    print version number and configuration settings, then exit
8456      --config     print configuration, then exit
8457  -q, --quiet, --silent
8458                   do not print progress messages
8459  -d, --debug      don't remove temporary files
8460      --recheck    update $as_me by reconfiguring in the same conditions
8461      --file=FILE[:TEMPLATE]
8462                   instantiate the configuration file FILE
8463
8464Configuration files:
8465$config_files
8466
8467Configuration commands:
8468$config_commands
8469
8470Report bugs to <acaudwell@gmail.com>."
8471
8472_ACEOF
8473cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8474ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
8475ac_cs_version="\\
8476Gource config.status 0.51
8477configured by $0, generated by GNU Autoconf 2.69,
8478  with options \\"\$ac_cs_config\\"
8479
8480Copyright (C) 2012 Free Software Foundation, Inc.
8481This config.status script is free software; the Free Software Foundation
8482gives unlimited permission to copy, distribute and modify it."
8483
8484ac_pwd='$ac_pwd'
8485srcdir='$srcdir'
8486INSTALL='$INSTALL'
8487MKDIR_P='$MKDIR_P'
8488AWK='$AWK'
8489test -n "\$AWK" || AWK=awk
8490_ACEOF
8491
8492cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8493# The default lists apply if the user does not specify any file.
8494ac_need_defaults=:
8495while test $# != 0
8496do
8497  case $1 in
8498  --*=?*)
8499    ac_option=`expr "X$1" : 'X\([^=]*\)='`
8500    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
8501    ac_shift=:
8502    ;;
8503  --*=)
8504    ac_option=`expr "X$1" : 'X\([^=]*\)='`
8505    ac_optarg=
8506    ac_shift=:
8507    ;;
8508  *)
8509    ac_option=$1
8510    ac_optarg=$2
8511    ac_shift=shift
8512    ;;
8513  esac
8514
8515  case $ac_option in
8516  # Handling of the options.
8517  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
8518    ac_cs_recheck=: ;;
8519  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
8520    $as_echo "$ac_cs_version"; exit ;;
8521  --config | --confi | --conf | --con | --co | --c )
8522    $as_echo "$ac_cs_config"; exit ;;
8523  --debug | --debu | --deb | --de | --d | -d )
8524    debug=: ;;
8525  --file | --fil | --fi | --f )
8526    $ac_shift
8527    case $ac_optarg in
8528    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
8529    '') as_fn_error $? "missing file argument" ;;
8530    esac
8531    as_fn_append CONFIG_FILES " '$ac_optarg'"
8532    ac_need_defaults=false;;
8533  --he | --h |  --help | --hel | -h )
8534    $as_echo "$ac_cs_usage"; exit ;;
8535  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
8536  | -silent | --silent | --silen | --sile | --sil | --si | --s)
8537    ac_cs_silent=: ;;
8538
8539  # This is an error.
8540  -*) as_fn_error $? "unrecognized option: \`$1'
8541Try \`$0 --help' for more information." ;;
8542
8543  *) as_fn_append ac_config_targets " $1"
8544     ac_need_defaults=false ;;
8545
8546  esac
8547  shift
8548done
8549
8550ac_configure_extra_args=
8551
8552if $ac_cs_silent; then
8553  exec 6>/dev/null
8554  ac_configure_extra_args="$ac_configure_extra_args --silent"
8555fi
8556
8557_ACEOF
8558cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8559if \$ac_cs_recheck; then
8560  set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
8561  shift
8562  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
8563  CONFIG_SHELL='$SHELL'
8564  export CONFIG_SHELL
8565  exec "\$@"
8566fi
8567
8568_ACEOF
8569cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8570exec 5>>config.log
8571{
8572  echo
8573  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
8574## Running $as_me. ##
8575_ASBOX
8576  $as_echo "$ac_log"
8577} >&5
8578
8579_ACEOF
8580cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8581#
8582# INIT-COMMANDS
8583#
8584AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
8585
8586_ACEOF
8587
8588cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8589
8590# Handling of arguments.
8591for ac_config_target in $ac_config_targets
8592do
8593  case $ac_config_target in
8594    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
8595    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
8596
8597  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
8598  esac
8599done
8600
8601
8602# If the user did not use the arguments to specify the items to instantiate,
8603# then the envvar interface is used.  Set only those that are not.
8604# We use the long form for the default assignment because of an extremely
8605# bizarre bug on SunOS 4.1.3.
8606if $ac_need_defaults; then
8607  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
8608  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
8609fi
8610
8611# Have a temporary directory for convenience.  Make it in the build tree
8612# simply because there is no reason against having it here, and in addition,
8613# creating and moving files from /tmp can sometimes cause problems.
8614# Hook for its removal unless debugging.
8615# Note that there is a small window in which the directory will not be cleaned:
8616# after its creation but before its name has been assigned to `$tmp'.
8617$debug ||
8618{
8619  tmp= ac_tmp=
8620  trap 'exit_status=$?
8621  : "${ac_tmp:=$tmp}"
8622  { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
8623' 0
8624  trap 'as_fn_exit 1' 1 2 13 15
8625}
8626# Create a (secure) tmp directory for tmp files.
8627
8628{
8629  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
8630  test -d "$tmp"
8631}  ||
8632{
8633  tmp=./conf$$-$RANDOM
8634  (umask 077 && mkdir "$tmp")
8635} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
8636ac_tmp=$tmp
8637
8638# Set up the scripts for CONFIG_FILES section.
8639# No need to generate them if there are no CONFIG_FILES.
8640# This happens for instance with `./config.status config.h'.
8641if test -n "$CONFIG_FILES"; then
8642
8643
8644ac_cr=`echo X | tr X '\015'`
8645# On cygwin, bash can eat \r inside `` if the user requested igncr.
8646# But we know of no other shell where ac_cr would be empty at this
8647# point, so we can use a bashism as a fallback.
8648if test "x$ac_cr" = x; then
8649  eval ac_cr=\$\'\\r\'
8650fi
8651ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
8652if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
8653  ac_cs_awk_cr='\\r'
8654else
8655  ac_cs_awk_cr=$ac_cr
8656fi
8657
8658echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
8659_ACEOF
8660
8661
8662{
8663  echo "cat >conf$$subs.awk <<_ACEOF" &&
8664  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
8665  echo "_ACEOF"
8666} >conf$$subs.sh ||
8667  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
8668ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
8669ac_delim='%!_!# '
8670for ac_last_try in false false false false false :; do
8671  . ./conf$$subs.sh ||
8672    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
8673
8674  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
8675  if test $ac_delim_n = $ac_delim_num; then
8676    break
8677  elif $ac_last_try; then
8678    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
8679  else
8680    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
8681  fi
8682done
8683rm -f conf$$subs.sh
8684
8685cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8686cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
8687_ACEOF
8688sed -n '
8689h
8690s/^/S["/; s/!.*/"]=/
8691p
8692g
8693s/^[^!]*!//
8694:repl
8695t repl
8696s/'"$ac_delim"'$//
8697t delim
8698:nl
8699h
8700s/\(.\{148\}\)..*/\1/
8701t more1
8702s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
8703p
8704n
8705b repl
8706:more1
8707s/["\\]/\\&/g; s/^/"/; s/$/"\\/
8708p
8709g
8710s/.\{148\}//
8711t nl
8712:delim
8713h
8714s/\(.\{148\}\)..*/\1/
8715t more2
8716s/["\\]/\\&/g; s/^/"/; s/$/"/
8717p
8718b
8719:more2
8720s/["\\]/\\&/g; s/^/"/; s/$/"\\/
8721p
8722g
8723s/.\{148\}//
8724t delim
8725' <conf$$subs.awk | sed '
8726/^[^""]/{
8727  N
8728  s/\n//
8729}
8730' >>$CONFIG_STATUS || ac_write_fail=1
8731rm -f conf$$subs.awk
8732cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8733_ACAWK
8734cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
8735  for (key in S) S_is_set[key] = 1
8736  FS = ""
8737
8738}
8739{
8740  line = $ 0
8741  nfields = split(line, field, "@")
8742  substed = 0
8743  len = length(field[1])
8744  for (i = 2; i < nfields; i++) {
8745    key = field[i]
8746    keylen = length(key)
8747    if (S_is_set[key]) {
8748      value = S[key]
8749      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
8750      len += length(value) + length(field[++i])
8751      substed = 1
8752    } else
8753      len += 1 + keylen
8754  }
8755
8756  print line
8757}
8758
8759_ACAWK
8760_ACEOF
8761cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8762if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
8763  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
8764else
8765  cat
8766fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
8767  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
8768_ACEOF
8769
8770# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
8771# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
8772# trailing colons and then remove the whole line if VPATH becomes empty
8773# (actually we leave an empty line to preserve line numbers).
8774if test "x$srcdir" = x.; then
8775  ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{
8776h
8777s///
8778s/^/:/
8779s/[	 ]*$/:/
8780s/:\$(srcdir):/:/g
8781s/:\${srcdir}:/:/g
8782s/:@srcdir@:/:/g
8783s/^:*//
8784s/:*$//
8785x
8786s/\(=[	 ]*\).*/\1/
8787G
8788s/\n//
8789s/^[^=]*=[	 ]*$//
8790}'
8791fi
8792
8793cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8794fi # test -n "$CONFIG_FILES"
8795
8796
8797eval set X "  :F $CONFIG_FILES      :C $CONFIG_COMMANDS"
8798shift
8799for ac_tag
8800do
8801  case $ac_tag in
8802  :[FHLC]) ac_mode=$ac_tag; continue;;
8803  esac
8804  case $ac_mode$ac_tag in
8805  :[FHL]*:*);;
8806  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
8807  :[FH]-) ac_tag=-:-;;
8808  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
8809  esac
8810  ac_save_IFS=$IFS
8811  IFS=:
8812  set x $ac_tag
8813  IFS=$ac_save_IFS
8814  shift
8815  ac_file=$1
8816  shift
8817
8818  case $ac_mode in
8819  :L) ac_source=$1;;
8820  :[FH])
8821    ac_file_inputs=
8822    for ac_f
8823    do
8824      case $ac_f in
8825      -) ac_f="$ac_tmp/stdin";;
8826      *) # Look for the file first in the build tree, then in the source tree
8827	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
8828	 # because $ac_f cannot contain `:'.
8829	 test -f "$ac_f" ||
8830	   case $ac_f in
8831	   [\\/$]*) false;;
8832	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
8833	   esac ||
8834	   as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
8835      esac
8836      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
8837      as_fn_append ac_file_inputs " '$ac_f'"
8838    done
8839
8840    # Let's still pretend it is `configure' which instantiates (i.e., don't
8841    # use $as_me), people would be surprised to read:
8842    #    /* config.h.  Generated by config.status.  */
8843    configure_input='Generated from '`
8844	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
8845	`' by configure.'
8846    if test x"$ac_file" != x-; then
8847      configure_input="$ac_file.  $configure_input"
8848      { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
8849$as_echo "$as_me: creating $ac_file" >&6;}
8850    fi
8851    # Neutralize special characters interpreted by sed in replacement strings.
8852    case $configure_input in #(
8853    *\&* | *\|* | *\\* )
8854       ac_sed_conf_input=`$as_echo "$configure_input" |
8855       sed 's/[\\\\&|]/\\\\&/g'`;; #(
8856    *) ac_sed_conf_input=$configure_input;;
8857    esac
8858
8859    case $ac_tag in
8860    *:-:* | *:-) cat >"$ac_tmp/stdin" \
8861      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
8862    esac
8863    ;;
8864  esac
8865
8866  ac_dir=`$as_dirname -- "$ac_file" ||
8867$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8868	 X"$ac_file" : 'X\(//\)[^/]' \| \
8869	 X"$ac_file" : 'X\(//\)$' \| \
8870	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
8871$as_echo X"$ac_file" |
8872    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
8873	    s//\1/
8874	    q
8875	  }
8876	  /^X\(\/\/\)[^/].*/{
8877	    s//\1/
8878	    q
8879	  }
8880	  /^X\(\/\/\)$/{
8881	    s//\1/
8882	    q
8883	  }
8884	  /^X\(\/\).*/{
8885	    s//\1/
8886	    q
8887	  }
8888	  s/.*/./; q'`
8889  as_dir="$ac_dir"; as_fn_mkdir_p
8890  ac_builddir=.
8891
8892case "$ac_dir" in
8893.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
8894*)
8895  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
8896  # A ".." for each directory in $ac_dir_suffix.
8897  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
8898  case $ac_top_builddir_sub in
8899  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
8900  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
8901  esac ;;
8902esac
8903ac_abs_top_builddir=$ac_pwd
8904ac_abs_builddir=$ac_pwd$ac_dir_suffix
8905# for backward compatibility:
8906ac_top_builddir=$ac_top_build_prefix
8907
8908case $srcdir in
8909  .)  # We are building in place.
8910    ac_srcdir=.
8911    ac_top_srcdir=$ac_top_builddir_sub
8912    ac_abs_top_srcdir=$ac_pwd ;;
8913  [\\/]* | ?:[\\/]* )  # Absolute name.
8914    ac_srcdir=$srcdir$ac_dir_suffix;
8915    ac_top_srcdir=$srcdir
8916    ac_abs_top_srcdir=$srcdir ;;
8917  *) # Relative name.
8918    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
8919    ac_top_srcdir=$ac_top_build_prefix$srcdir
8920    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
8921esac
8922ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
8923
8924
8925  case $ac_mode in
8926  :F)
8927  #
8928  # CONFIG_FILE
8929  #
8930
8931  case $INSTALL in
8932  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
8933  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
8934  esac
8935  ac_MKDIR_P=$MKDIR_P
8936  case $MKDIR_P in
8937  [\\/$]* | ?:[\\/]* ) ;;
8938  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
8939  esac
8940_ACEOF
8941
8942cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8943# If the template does not know about datarootdir, expand it.
8944# FIXME: This hack should be removed a few years after 2.60.
8945ac_datarootdir_hack=; ac_datarootdir_seen=
8946ac_sed_dataroot='
8947/datarootdir/ {
8948  p
8949  q
8950}
8951/@datadir@/p
8952/@docdir@/p
8953/@infodir@/p
8954/@localedir@/p
8955/@mandir@/p'
8956case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
8957*datarootdir*) ac_datarootdir_seen=yes;;
8958*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
8959  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
8960$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
8961_ACEOF
8962cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8963  ac_datarootdir_hack='
8964  s&@datadir@&$datadir&g
8965  s&@docdir@&$docdir&g
8966  s&@infodir@&$infodir&g
8967  s&@localedir@&$localedir&g
8968  s&@mandir@&$mandir&g
8969  s&\\\${datarootdir}&$datarootdir&g' ;;
8970esac
8971_ACEOF
8972
8973# Neutralize VPATH when `$srcdir' = `.'.
8974# Shell code in configure.ac might set extrasub.
8975# FIXME: do we really want to maintain this feature?
8976cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8977ac_sed_extra="$ac_vpsub
8978$extrasub
8979_ACEOF
8980cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8981:t
8982/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
8983s|@configure_input@|$ac_sed_conf_input|;t t
8984s&@top_builddir@&$ac_top_builddir_sub&;t t
8985s&@top_build_prefix@&$ac_top_build_prefix&;t t
8986s&@srcdir@&$ac_srcdir&;t t
8987s&@abs_srcdir@&$ac_abs_srcdir&;t t
8988s&@top_srcdir@&$ac_top_srcdir&;t t
8989s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
8990s&@builddir@&$ac_builddir&;t t
8991s&@abs_builddir@&$ac_abs_builddir&;t t
8992s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
8993s&@INSTALL@&$ac_INSTALL&;t t
8994s&@MKDIR_P@&$ac_MKDIR_P&;t t
8995$ac_datarootdir_hack
8996"
8997eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
8998  >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
8999
9000test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
9001  { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
9002  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' \
9003      "$ac_tmp/out"`; test -z "$ac_out"; } &&
9004  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
9005which seems to be undefined.  Please make sure it is defined" >&5
9006$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
9007which seems to be undefined.  Please make sure it is defined" >&2;}
9008
9009  rm -f "$ac_tmp/stdin"
9010  case $ac_file in
9011  -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
9012  *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
9013  esac \
9014  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
9015 ;;
9016
9017
9018  :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
9019$as_echo "$as_me: executing $ac_file commands" >&6;}
9020 ;;
9021  esac
9022
9023
9024  case $ac_file$ac_mode in
9025    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
9026  # Older Autoconf quotes --file arguments for eval, but not when files
9027  # are listed without --file.  Let's play safe and only enable the eval
9028  # if we detect the quoting.
9029  case $CONFIG_FILES in
9030  *\'*) eval set x "$CONFIG_FILES" ;;
9031  *)   set x $CONFIG_FILES ;;
9032  esac
9033  shift
9034  for mf
9035  do
9036    # Strip MF so we end up with the name of the file.
9037    mf=`echo "$mf" | sed -e 's/:.*$//'`
9038    # Check whether this is an Automake generated Makefile or not.
9039    # We used to match only the files named 'Makefile.in', but
9040    # some people rename them; so instead we look at the file content.
9041    # Grep'ing the first line is not enough: some people post-process
9042    # each Makefile.in and add a new line on top of each file to say so.
9043    # Grep'ing the whole file is not good either: AIX grep has a line
9044    # limit of 2048, but all sed's we know have understand at least 4000.
9045    if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
9046      dirpart=`$as_dirname -- "$mf" ||
9047$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9048	 X"$mf" : 'X\(//\)[^/]' \| \
9049	 X"$mf" : 'X\(//\)$' \| \
9050	 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
9051$as_echo X"$mf" |
9052    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
9053	    s//\1/
9054	    q
9055	  }
9056	  /^X\(\/\/\)[^/].*/{
9057	    s//\1/
9058	    q
9059	  }
9060	  /^X\(\/\/\)$/{
9061	    s//\1/
9062	    q
9063	  }
9064	  /^X\(\/\).*/{
9065	    s//\1/
9066	    q
9067	  }
9068	  s/.*/./; q'`
9069    else
9070      continue
9071    fi
9072    # Extract the definition of DEPDIR, am__include, and am__quote
9073    # from the Makefile without running 'make'.
9074    DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
9075    test -z "$DEPDIR" && continue
9076    am__include=`sed -n 's/^am__include = //p' < "$mf"`
9077    test -z "$am__include" && continue
9078    am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
9079    # Find all dependency output files, they are included files with
9080    # $(DEPDIR) in their names.  We invoke sed twice because it is the
9081    # simplest approach to changing $(DEPDIR) to its actual value in the
9082    # expansion.
9083    for file in `sed -n "
9084      s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
9085	 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
9086      # Make sure the directory exists.
9087      test -f "$dirpart/$file" && continue
9088      fdir=`$as_dirname -- "$file" ||
9089$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9090	 X"$file" : 'X\(//\)[^/]' \| \
9091	 X"$file" : 'X\(//\)$' \| \
9092	 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
9093$as_echo X"$file" |
9094    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
9095	    s//\1/
9096	    q
9097	  }
9098	  /^X\(\/\/\)[^/].*/{
9099	    s//\1/
9100	    q
9101	  }
9102	  /^X\(\/\/\)$/{
9103	    s//\1/
9104	    q
9105	  }
9106	  /^X\(\/\).*/{
9107	    s//\1/
9108	    q
9109	  }
9110	  s/.*/./; q'`
9111      as_dir=$dirpart/$fdir; as_fn_mkdir_p
9112      # echo "creating $dirpart/$file"
9113      echo '# dummy' > "$dirpart/$file"
9114    done
9115  done
9116}
9117 ;;
9118
9119  esac
9120done # for ac_tag
9121
9122
9123as_fn_exit 0
9124_ACEOF
9125ac_clean_files=$ac_clean_files_save
9126
9127test $ac_write_fail = 0 ||
9128  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
9129
9130
9131# configure is writing to config.log, and then calls config.status.
9132# config.status does its own redirection, appending to config.log.
9133# Unfortunately, on DOS this fails, as config.log is still kept open
9134# by configure, so config.status won't be able to write to it; its
9135# output is simply discarded.  So we exec the FD to /dev/null,
9136# effectively closing config.log, so it can be properly (re)opened and
9137# appended to by config.status.  When coming back to configure, we
9138# need to make the FD available again.
9139if test "$no_create" != yes; then
9140  ac_cs_success=:
9141  ac_config_status_args=
9142  test "$silent" = yes &&
9143    ac_config_status_args="$ac_config_status_args --quiet"
9144  exec 5>/dev/null
9145  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
9146  exec 5>>config.log
9147  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
9148  # would make configure fail if this is the last instruction.
9149  $ac_cs_success || as_fn_exit 1
9150fi
9151if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
9152  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
9153$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
9154fi
9155
9156