2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.68.
6 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
7 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
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 ## -------------------- ##
17 # Be more Bourne compatible
18 DUALCASE=1; export DUALCASE # for MKS sh
19 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
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+"$@"}'='"$@"'
27 case `(set -o) 2>/dev/null` in #(
39 # Printing a long string crashes Solaris 7 /usr/bin/printf.
40 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42 as_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.
45 if test -z "$BASH_VERSION$ZSH_VERSION" \
46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
48 as_echo_n='print -rn --'
49 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
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'
57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
62 expr "X$arg" : "X\\(.*\\)$as_nl";
63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
68 as_echo_n='sh -c $as_echo_n_body as_echo'
71 as_echo='sh -c $as_echo_body as_echo'
74 # The user is always right.
75 if test "${PATH_SEPARATOR+set}" != set; then
77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
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.)
91 # Find who we are. Look in the path if we contain no directory separator.
94 *[\\/]* ) as_myself=$0 ;;
95 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
99 test -z "$as_dir" && as_dir=.
100 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
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.
108 if test "x$as_myself" = x; then
111 if test ! -f "$as_myself"; then
112 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
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.
120 for as_var in BASH_ENV ENV MAIL MAILPATH
121 do eval test x\${$as_var+set} = xset \
122 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
135 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
137 if test "x$CONFIG_SHELL" = x; then
138 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
141 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
142 # is contrary to our usage. Disable this feature.
143 alias -g '\${1+\"\$@\"}'='\"\$@\"'
146 case \`(set -o) 2>/dev/null\` in #(
154 as_required="as_fn_return () { (exit \$1); }
155 as_fn_success () { as_fn_return 0; }
156 as_fn_failure () { as_fn_return 1; }
157 as_fn_ret_success () { return 0; }
158 as_fn_ret_failure () { return 1; }
161 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
162 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
163 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
164 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
165 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
168 exitcode=1; echo positional parameters were not saved.
170 test x\$exitcode = x0 || exit 1"
171 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
172 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
173 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
174 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
175 test \$(( 1 + 1 )) = 2 || exit 1"
176 if (eval "$as_required") 2>/dev/null; then :
181 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
184 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
186 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
189 test -z "$as_dir" && as_dir=.
193 for as_base in sh bash ksh sh5; do
194 # Try only shells that exist, to save several forks.
195 as_shell=$as_dir/$as_base
196 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
197 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
198 CONFIG_SHELL=$as_shell as_have_required=yes
199 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
207 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
208 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
209 CONFIG_SHELL=$SHELL as_have_required=yes
214 if test "x$CONFIG_SHELL" != x; then :
215 # We cannot yet assume a decent shell, so we have to provide a
216 # neutralization value for shells without unset; and this also
217 # works around shells that cannot unset nonexistent variables.
218 # Preserve -v and -x to the replacement shell.
221 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
224 *v*x* | *x*v* ) as_opts=-vx ;;
229 exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"}
232 if test x$as_have_required = xno; then :
233 $as_echo "$0: This script requires a shell more modern than all"
234 $as_echo "$0: the shells that I found on your system."
235 if test x${ZSH_VERSION+set} = xset ; then
236 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
237 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
239 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
240 $0: including any error possibly output before this
241 $0: message. Then install a modern shell, or manually run
242 $0: the script under such a shell if you do have one."
248 SHELL=${CONFIG_SHELL-/bin/sh}
250 # Unset more variables known to interfere with behavior of common tools.
251 CLICOLOR_FORCE= GREP_OPTIONS=
252 unset CLICOLOR_FORCE GREP_OPTIONS
254 ## --------------------- ##
255 ## M4sh Shell Functions. ##
256 ## --------------------- ##
259 # Portably unset VAR.
262 { eval $1=; unset $1;}
266 # as_fn_set_status STATUS
267 # -----------------------
268 # Set $? to STATUS, without forking.
276 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
286 # Create "$as_dir" as a directory, including parents if necessary.
291 -*) as_dir=./$as_dir;;
293 test -d "$as_dir" || eval $as_mkdir_p || {
297 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
300 as_dirs="'$as_qdir' $as_dirs"
301 as_dir=`$as_dirname -- "$as_dir" ||
302 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
303 X"$as_dir" : 'X\(//\)[^/]' \| \
304 X"$as_dir" : 'X\(//\)$' \| \
305 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
306 $as_echo X"$as_dir" |
307 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
324 test -d "$as_dir" && break
326 test -z "$as_dirs" || eval "mkdir $as_dirs"
327 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
331 # as_fn_append VAR VALUE
332 # ----------------------
333 # Append the text in VALUE to the end of the definition contained in VAR. Take
334 # advantage of any shell optimizations that allow amortized linear growth over
335 # repeated appends, instead of the typical quadratic growth present in naive
337 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
338 eval 'as_fn_append ()
351 # Perform arithmetic evaluation on the ARGs, and store the result in the
352 # global $as_val. Take advantage of shells that can avoid forks. The arguments
353 # must be portable across $(()) and expr.
354 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
362 as_val=`expr "$@" || test $? -eq 1`
367 # as_fn_error STATUS ERROR [LINENO LOG_FD]
368 # ----------------------------------------
369 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
370 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
371 # script with STATUS, using 1 if that was 0.
374 as_status=$1; test $as_status -eq 0 && as_status=1
376 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
377 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
379 $as_echo "$as_me: error: $2" >&2
380 as_fn_exit $as_status
383 if expr a : '\(a\)' >/dev/null 2>&1 &&
384 test "X`expr 00001 : '.*\(...\)'`" = X001; then
390 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
396 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
402 as_me=`$as_basename -- "$0" ||
403 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
404 X"$0" : 'X\(//\)$' \| \
405 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
407 sed '/^.*\/\([^/][^/]*\)\/*$/{
421 # Avoid depending upon Character Ranges.
422 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
423 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
424 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
425 as_cr_digits='0123456789'
426 as_cr_alnum=$as_cr_Letters$as_cr_digits
429 as_lineno_1=$LINENO as_lineno_1a=$LINENO
430 as_lineno_2=$LINENO as_lineno_2a=$LINENO
431 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
432 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
433 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
445 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
449 chmod +x "$as_me.lineno" ||
450 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
452 # Don't try to exec as it changes $[0], causing all sort of problems
453 # (the dirname of $[0] is not the place where we might find the
454 # original and so on. Autoconf is especially sensitive to this).
456 # Exit status is that of the last command.
460 ECHO_C= ECHO_N= ECHO_T=
461 case `echo -n x` in #(((((
463 case `echo 'xy\c'` in
464 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
466 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
473 rm -f conf$$ conf$$.exe conf$$.file
474 if test -d conf$$.dir; then
475 rm -f conf$$.dir/conf$$.file
478 mkdir conf$$.dir 2>/dev/null
480 if (echo >conf$$.file) 2>/dev/null; then
481 if ln -s conf$$.file conf$$ 2>/dev/null; then
483 # ... but there are two gotchas:
484 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
485 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
486 # In both cases, we have to default to `cp -p'.
487 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
489 elif ln conf$$.file conf$$ 2>/dev/null; then
497 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
498 rmdir conf$$.dir 2>/dev/null
500 if mkdir -p . 2>/dev/null; then
501 as_mkdir_p='mkdir -p "$as_dir"'
503 test -d ./-p && rmdir ./-p
507 if test -x / >/dev/null 2>&1; then
510 if ls -dL / >/dev/null 2>&1; then
517 if test -d "$1"; then
523 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
524 ???[sx]*):;;*)false;;esac;fi
528 as_executable_p=$as_test_x
530 # Sed expression to map a string onto a valid CPP name.
531 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
533 # Sed expression to map a string onto a valid variable name.
534 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
537 test -n "$DJDIR" || exec 7<&0 </dev/null
541 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
542 # so uname gets run too.
543 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
548 ac_default_prefix=/usr/local
550 ac_config_libobj_dir=.
557 # Identity of this package.
565 ac_unique_file="src/xappl.h"
566 # Factoring default headers for most tests.
567 ac_includes_default="\
569 #ifdef HAVE_SYS_TYPES_H
570 # include <sys/types.h>
572 #ifdef HAVE_SYS_STAT_H
573 # include <sys/stat.h>
579 # ifdef HAVE_STDLIB_H
584 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
589 #ifdef HAVE_STRINGS_H
590 # include <strings.h>
592 #ifdef HAVE_INTTYPES_H
593 # include <inttypes.h>
602 ac_subst_vars='am__EXEEXT_FALSE
653 INSTALL_STRIP_PROGRAM
695 program_transform_name
708 enable_option_checking
709 enable_dependency_tracking
712 ac_precious_vars='build_alias
729 # Initialize some variables set by options.
731 ac_init_version=false
732 ac_unrecognized_opts=
734 # The variables have the same names as the options, with
735 # dashes changed to underlines.
743 program_transform_name=s,x,x,
751 # Installation directory options.
752 # These are left unexpanded so users can "make install exec_prefix=/foo"
753 # and all the variables that are supposed to be based on exec_prefix
754 # by default will actually change.
755 # Use braces instead of parens because sh, perl, etc. also accept them.
756 # (The list follows the same order as the GNU Coding Standards.)
757 bindir='${exec_prefix}/bin'
758 sbindir='${exec_prefix}/sbin'
759 libexecdir='${exec_prefix}/libexec'
760 datarootdir='${prefix}/share'
761 datadir='${datarootdir}'
762 sysconfdir='${prefix}/etc'
763 sharedstatedir='${prefix}/com'
764 localstatedir='${prefix}/var'
765 includedir='${prefix}/include'
766 oldincludedir='/usr/include'
767 docdir='${datarootdir}/doc/${PACKAGE}'
768 infodir='${datarootdir}/info'
773 libdir='${exec_prefix}/lib'
774 localedir='${datarootdir}/locale'
775 mandir='${datarootdir}/man'
781 # If the previous option needs an argument, assign it.
782 if test -n "$ac_prev"; then
783 eval $ac_prev=\$ac_option
789 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
794 # Accept the important Cygnus configure options, so we can diagnose typos.
796 case $ac_dashdash$ac_option in
800 -bindir | --bindir | --bindi | --bind | --bin | --bi)
802 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
805 -build | --build | --buil | --bui | --bu)
806 ac_prev=build_alias ;;
807 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
808 build_alias=$ac_optarg ;;
810 -cache-file | --cache-file | --cache-fil | --cache-fi \
811 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
812 ac_prev=cache_file ;;
813 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
814 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
815 cache_file=$ac_optarg ;;
818 cache_file=config.cache ;;
820 -datadir | --datadir | --datadi | --datad)
822 -datadir=* | --datadir=* | --datadi=* | --datad=*)
823 datadir=$ac_optarg ;;
825 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
826 | --dataroo | --dataro | --datar)
827 ac_prev=datarootdir ;;
828 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
829 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
830 datarootdir=$ac_optarg ;;
832 -disable-* | --disable-*)
833 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
834 # Reject names that are not valid shell variable names.
835 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
836 as_fn_error $? "invalid feature name: $ac_useropt"
837 ac_useropt_orig=$ac_useropt
838 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
839 case $ac_user_opts in
843 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
844 ac_unrecognized_sep=', ';;
846 eval enable_$ac_useropt=no ;;
848 -docdir | --docdir | --docdi | --doc | --do)
850 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
853 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
855 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
858 -enable-* | --enable-*)
859 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
860 # Reject names that are not valid shell variable names.
861 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
862 as_fn_error $? "invalid feature name: $ac_useropt"
863 ac_useropt_orig=$ac_useropt
864 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
865 case $ac_user_opts in
869 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
870 ac_unrecognized_sep=', ';;
872 eval enable_$ac_useropt=\$ac_optarg ;;
874 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
875 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
876 | --exec | --exe | --ex)
877 ac_prev=exec_prefix ;;
878 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
879 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
880 | --exec=* | --exe=* | --ex=*)
881 exec_prefix=$ac_optarg ;;
883 -gas | --gas | --ga | --g)
884 # Obsolete; use --with-gas.
887 -help | --help | --hel | --he | -h)
889 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
890 ac_init_help=recursive ;;
891 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
892 ac_init_help=short ;;
894 -host | --host | --hos | --ho)
895 ac_prev=host_alias ;;
896 -host=* | --host=* | --hos=* | --ho=*)
897 host_alias=$ac_optarg ;;
899 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
901 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
903 htmldir=$ac_optarg ;;
905 -includedir | --includedir | --includedi | --included | --include \
906 | --includ | --inclu | --incl | --inc)
907 ac_prev=includedir ;;
908 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
909 | --includ=* | --inclu=* | --incl=* | --inc=*)
910 includedir=$ac_optarg ;;
912 -infodir | --infodir | --infodi | --infod | --info | --inf)
914 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
915 infodir=$ac_optarg ;;
917 -libdir | --libdir | --libdi | --libd)
919 -libdir=* | --libdir=* | --libdi=* | --libd=*)
922 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
923 | --libexe | --libex | --libe)
924 ac_prev=libexecdir ;;
925 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
926 | --libexe=* | --libex=* | --libe=*)
927 libexecdir=$ac_optarg ;;
929 -localedir | --localedir | --localedi | --localed | --locale)
931 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
932 localedir=$ac_optarg ;;
934 -localstatedir | --localstatedir | --localstatedi | --localstated \
935 | --localstate | --localstat | --localsta | --localst | --locals)
936 ac_prev=localstatedir ;;
937 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
938 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
939 localstatedir=$ac_optarg ;;
941 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
943 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
947 # Obsolete; use --without-fp.
950 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
951 | --no-cr | --no-c | -n)
954 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
955 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
958 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
959 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
960 | --oldin | --oldi | --old | --ol | --o)
961 ac_prev=oldincludedir ;;
962 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
963 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
964 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
965 oldincludedir=$ac_optarg ;;
967 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
969 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
972 -program-prefix | --program-prefix | --program-prefi | --program-pref \
973 | --program-pre | --program-pr | --program-p)
974 ac_prev=program_prefix ;;
975 -program-prefix=* | --program-prefix=* | --program-prefi=* \
976 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
977 program_prefix=$ac_optarg ;;
979 -program-suffix | --program-suffix | --program-suffi | --program-suff \
980 | --program-suf | --program-su | --program-s)
981 ac_prev=program_suffix ;;
982 -program-suffix=* | --program-suffix=* | --program-suffi=* \
983 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
984 program_suffix=$ac_optarg ;;
986 -program-transform-name | --program-transform-name \
987 | --program-transform-nam | --program-transform-na \
988 | --program-transform-n | --program-transform- \
989 | --program-transform | --program-transfor \
990 | --program-transfo | --program-transf \
991 | --program-trans | --program-tran \
992 | --progr-tra | --program-tr | --program-t)
993 ac_prev=program_transform_name ;;
994 -program-transform-name=* | --program-transform-name=* \
995 | --program-transform-nam=* | --program-transform-na=* \
996 | --program-transform-n=* | --program-transform-=* \
997 | --program-transform=* | --program-transfor=* \
998 | --program-transfo=* | --program-transf=* \
999 | --program-trans=* | --program-tran=* \
1000 | --progr-tra=* | --program-tr=* | --program-t=*)
1001 program_transform_name=$ac_optarg ;;
1003 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1005 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1006 pdfdir=$ac_optarg ;;
1008 -psdir | --psdir | --psdi | --psd | --ps)
1010 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1013 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1014 | -silent | --silent | --silen | --sile | --sil)
1017 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1019 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1021 sbindir=$ac_optarg ;;
1023 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1024 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1025 | --sharedst | --shareds | --shared | --share | --shar \
1027 ac_prev=sharedstatedir ;;
1028 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1029 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1030 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1032 sharedstatedir=$ac_optarg ;;
1034 -site | --site | --sit)
1036 -site=* | --site=* | --sit=*)
1039 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1041 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1042 srcdir=$ac_optarg ;;
1044 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1045 | --syscon | --sysco | --sysc | --sys | --sy)
1046 ac_prev=sysconfdir ;;
1047 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1048 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1049 sysconfdir=$ac_optarg ;;
1051 -target | --target | --targe | --targ | --tar | --ta | --t)
1052 ac_prev=target_alias ;;
1053 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1054 target_alias=$ac_optarg ;;
1056 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1059 -version | --version | --versio | --versi | --vers | -V)
1060 ac_init_version=: ;;
1063 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1064 # Reject names that are not valid shell variable names.
1065 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1066 as_fn_error $? "invalid package name: $ac_useropt"
1067 ac_useropt_orig=$ac_useropt
1068 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1069 case $ac_user_opts in
1073 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1074 ac_unrecognized_sep=', ';;
1076 eval with_$ac_useropt=\$ac_optarg ;;
1078 -without-* | --without-*)
1079 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1080 # Reject names that are not valid shell variable names.
1081 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1082 as_fn_error $? "invalid package name: $ac_useropt"
1083 ac_useropt_orig=$ac_useropt
1084 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1085 case $ac_user_opts in
1089 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1090 ac_unrecognized_sep=', ';;
1092 eval with_$ac_useropt=no ;;
1095 # Obsolete; use --with-x.
1098 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1099 | --x-incl | --x-inc | --x-in | --x-i)
1100 ac_prev=x_includes ;;
1101 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1102 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1103 x_includes=$ac_optarg ;;
1105 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1106 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1107 ac_prev=x_libraries ;;
1108 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1109 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1110 x_libraries=$ac_optarg ;;
1112 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1113 Try \`$0 --help' for more information"
1117 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1118 # Reject names that are not valid shell variable names.
1119 case $ac_envvar in #(
1120 '' | [0-9]* | *[!_$as_cr_alnum]* )
1121 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1123 eval $ac_envvar=\$ac_optarg
1124 export $ac_envvar ;;
1127 # FIXME: should be removed in autoconf 3.0.
1128 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1129 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1130 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1131 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1137 if test -n "$ac_prev"; then
1138 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1139 as_fn_error $? "missing argument to $ac_option"
1142 if test -n "$ac_unrecognized_opts"; then
1143 case $enable_option_checking in
1145 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1146 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1150 # Check all directory arguments for consistency.
1151 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1152 datadir sysconfdir sharedstatedir localstatedir includedir \
1153 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1154 libdir localedir mandir
1156 eval ac_val=\$$ac_var
1157 # Remove trailing slashes.
1160 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1161 eval $ac_var=\$ac_val;;
1163 # Be sure to have absolute directory names.
1165 [\\/$]* | ?:[\\/]* ) continue;;
1166 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1168 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1171 # There might be people who depend on the old broken behavior: `$host'
1172 # used to hold the argument of --host etc.
1173 # FIXME: To remove some day.
1176 target=$target_alias
1178 # FIXME: To remove some day.
1179 if test "x$host_alias" != x; then
1180 if test "x$build_alias" = x; then
1181 cross_compiling=maybe
1182 $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1183 If a cross compiler is detected then cross compile mode will be used" >&2
1184 elif test "x$build_alias" != "x$host_alias"; then
1190 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1192 test "$silent" = yes && exec 6>/dev/null
1195 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1196 ac_ls_di=`ls -di .` &&
1197 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1198 as_fn_error $? "working directory cannot be determined"
1199 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1200 as_fn_error $? "pwd does not report name of working directory"
1203 # Find the source files, if location was not specified.
1204 if test -z "$srcdir"; then
1205 ac_srcdir_defaulted=yes
1206 # Try the directory containing this script, then the parent directory.
1207 ac_confdir=`$as_dirname -- "$as_myself" ||
1208 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1209 X"$as_myself" : 'X\(//\)[^/]' \| \
1210 X"$as_myself" : 'X\(//\)$' \| \
1211 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1212 $as_echo X"$as_myself" |
1213 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1231 if test ! -r "$srcdir/$ac_unique_file"; then
1235 ac_srcdir_defaulted=no
1237 if test ! -r "$srcdir/$ac_unique_file"; then
1238 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1239 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1241 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1243 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1245 # When building in place, set srcdir=.
1246 if test "$ac_abs_confdir" = "$ac_pwd"; then
1249 # Remove unnecessary trailing slashes from srcdir.
1250 # Double slashes in file names in object file debugging info
1251 # mess up M-x gdb in Emacs.
1253 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1255 for ac_var in $ac_precious_vars; do
1256 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1257 eval ac_env_${ac_var}_value=\$${ac_var}
1258 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1259 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1263 # Report the --help message.
1265 if test "$ac_init_help" = "long"; then
1266 # Omit some internal or obsolete options to make the list less imposing.
1267 # This message is too long to be a string in the A/UX 3.1 sh.
1269 \`configure' configures this package to adapt to many kinds of systems.
1271 Usage: $0 [OPTION]... [VAR=VALUE]...
1273 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1274 VAR=VALUE. See below for descriptions of some of the useful variables.
1276 Defaults for the options are specified in brackets.
1279 -h, --help display this help and exit
1280 --help=short display options specific to this package
1281 --help=recursive display the short help of all the included packages
1282 -V, --version display version information and exit
1283 -q, --quiet, --silent do not print \`checking ...' messages
1284 --cache-file=FILE cache test results in FILE [disabled]
1285 -C, --config-cache alias for \`--cache-file=config.cache'
1286 -n, --no-create do not create output files
1287 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1289 Installation directories:
1290 --prefix=PREFIX install architecture-independent files in PREFIX
1291 [$ac_default_prefix]
1292 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1295 By default, \`make install' will install all the files in
1296 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1297 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1298 for instance \`--prefix=\$HOME'.
1300 For better control, use the options below.
1302 Fine tuning of the installation directories:
1303 --bindir=DIR user executables [EPREFIX/bin]
1304 --sbindir=DIR system admin executables [EPREFIX/sbin]
1305 --libexecdir=DIR program executables [EPREFIX/libexec]
1306 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1307 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1308 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1309 --libdir=DIR object code libraries [EPREFIX/lib]
1310 --includedir=DIR C header files [PREFIX/include]
1311 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1312 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1313 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1314 --infodir=DIR info documentation [DATAROOTDIR/info]
1315 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1316 --mandir=DIR man documentation [DATAROOTDIR/man]
1317 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1318 --htmldir=DIR html documentation [DOCDIR]
1319 --dvidir=DIR dvi documentation [DOCDIR]
1320 --pdfdir=DIR pdf documentation [DOCDIR]
1321 --psdir=DIR ps documentation [DOCDIR]
1327 --program-prefix=PREFIX prepend PREFIX to installed program names
1328 --program-suffix=SUFFIX append SUFFIX to installed program names
1329 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1332 --x-includes=DIR X include files are in DIR
1333 --x-libraries=DIR X library files are in DIR
1337 if test -n "$ac_init_help"; then
1342 --disable-option-checking ignore unrecognized --enable/--with options
1343 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1344 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1345 --disable-dependency-tracking speeds up one-time build
1346 --enable-dependency-tracking do not reject slow dependency extractors
1349 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1350 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1351 --with-x use the X Window System
1353 Some influential environment variables:
1354 CC C compiler command
1355 CFLAGS C compiler flags
1356 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1357 nonstandard directory <lib dir>
1358 LIBS libraries to pass to the linker, e.g. -l<library>
1359 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1360 you have headers in a nonstandard directory <include dir>
1361 CXX C++ compiler command
1362 CXXFLAGS C++ compiler flags
1364 YACC The `Yet Another Compiler Compiler' implementation to use.
1365 Defaults to the first program found out of: `bison -y', `byacc',
1367 YFLAGS The list of arguments that will be passed by default to $YACC.
1368 This script will default YFLAGS to the empty string to avoid a
1369 default value of `-d' given by some make applications.
1370 XMKMF Path to xmkmf, Makefile generator for X Window System
1372 Use these variables to override the choices made by `configure' or to help
1373 it to find libraries and programs with nonstandard names/locations.
1375 Report bugs to the package provider.
1380 if test "$ac_init_help" = "recursive"; then
1381 # If there are subdirs, report their specific --help.
1382 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1383 test -d "$ac_dir" ||
1384 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1389 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1391 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1392 # A ".." for each directory in $ac_dir_suffix.
1393 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1394 case $ac_top_builddir_sub in
1395 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1396 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1399 ac_abs_top_builddir=$ac_pwd
1400 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1401 # for backward compatibility:
1402 ac_top_builddir=$ac_top_build_prefix
1405 .) # We are building in place.
1407 ac_top_srcdir=$ac_top_builddir_sub
1408 ac_abs_top_srcdir=$ac_pwd ;;
1409 [\\/]* | ?:[\\/]* ) # Absolute name.
1410 ac_srcdir=$srcdir$ac_dir_suffix;
1411 ac_top_srcdir=$srcdir
1412 ac_abs_top_srcdir=$srcdir ;;
1414 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1415 ac_top_srcdir=$ac_top_build_prefix$srcdir
1416 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1418 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1420 cd "$ac_dir" || { ac_status=$?; continue; }
1421 # Check for guested configure.
1422 if test -f "$ac_srcdir/configure.gnu"; then
1424 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1425 elif test -f "$ac_srcdir/configure"; then
1427 $SHELL "$ac_srcdir/configure" --help=recursive
1429 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1431 cd "$ac_pwd" || { ac_status=$?; break; }
1435 test -n "$ac_init_help" && exit $ac_status
1436 if $ac_init_version; then
1439 generated by GNU Autoconf 2.68
1441 Copyright (C) 2010 Free Software Foundation, Inc.
1442 This configure script is free software; the Free Software Foundation
1443 gives unlimited permission to copy, distribute and modify it.
1448 ## ------------------------ ##
1449 ## Autoconf initialization. ##
1450 ## ------------------------ ##
1452 # ac_fn_c_try_compile LINENO
1453 # --------------------------
1454 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1455 ac_fn_c_try_compile ()
1457 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1458 rm -f conftest.$ac_objext
1459 if { { ac_try="$ac_compile"
1461 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1462 *) ac_try_echo=$ac_try;;
1464 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1465 $as_echo "$ac_try_echo"; } >&5
1466 (eval "$ac_compile") 2>conftest.err
1468 if test -s conftest.err; then
1469 grep -v '^ *+' conftest.err >conftest.er1
1470 cat conftest.er1 >&5
1471 mv -f conftest.er1 conftest.err
1473 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1474 test $ac_status = 0; } && {
1475 test -z "$ac_c_werror_flag" ||
1476 test ! -s conftest.err
1477 } && test -s conftest.$ac_objext; then :
1480 $as_echo "$as_me: failed program was:" >&5
1481 sed 's/^/| /' conftest.$ac_ext >&5
1485 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1486 as_fn_set_status $ac_retval
1488 } # ac_fn_c_try_compile
1490 # ac_fn_cxx_try_compile LINENO
1491 # ----------------------------
1492 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1493 ac_fn_cxx_try_compile ()
1495 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1496 rm -f conftest.$ac_objext
1497 if { { ac_try="$ac_compile"
1499 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1500 *) ac_try_echo=$ac_try;;
1502 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1503 $as_echo "$ac_try_echo"; } >&5
1504 (eval "$ac_compile") 2>conftest.err
1506 if test -s conftest.err; then
1507 grep -v '^ *+' conftest.err >conftest.er1
1508 cat conftest.er1 >&5
1509 mv -f conftest.er1 conftest.err
1511 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1512 test $ac_status = 0; } && {
1513 test -z "$ac_cxx_werror_flag" ||
1514 test ! -s conftest.err
1515 } && test -s conftest.$ac_objext; then :
1518 $as_echo "$as_me: failed program was:" >&5
1519 sed 's/^/| /' conftest.$ac_ext >&5
1523 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1524 as_fn_set_status $ac_retval
1526 } # ac_fn_cxx_try_compile
1528 # ac_fn_c_try_cpp LINENO
1529 # ----------------------
1530 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1533 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1534 if { { ac_try="$ac_cpp conftest.$ac_ext"
1536 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1537 *) ac_try_echo=$ac_try;;
1539 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1540 $as_echo "$ac_try_echo"; } >&5
1541 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1543 if test -s conftest.err; then
1544 grep -v '^ *+' conftest.err >conftest.er1
1545 cat conftest.er1 >&5
1546 mv -f conftest.er1 conftest.err
1548 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1549 test $ac_status = 0; } > conftest.i && {
1550 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1551 test ! -s conftest.err
1555 $as_echo "$as_me: failed program was:" >&5
1556 sed 's/^/| /' conftest.$ac_ext >&5
1560 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1561 as_fn_set_status $ac_retval
1565 # ac_fn_c_try_link LINENO
1566 # -----------------------
1567 # Try to link conftest.$ac_ext, and return whether this succeeded.
1570 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1571 rm -f conftest.$ac_objext conftest$ac_exeext
1572 if { { ac_try="$ac_link"
1574 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1575 *) ac_try_echo=$ac_try;;
1577 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1578 $as_echo "$ac_try_echo"; } >&5
1579 (eval "$ac_link") 2>conftest.err
1581 if test -s conftest.err; then
1582 grep -v '^ *+' conftest.err >conftest.er1
1583 cat conftest.er1 >&5
1584 mv -f conftest.er1 conftest.err
1586 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1587 test $ac_status = 0; } && {
1588 test -z "$ac_c_werror_flag" ||
1589 test ! -s conftest.err
1590 } && test -s conftest$ac_exeext && {
1591 test "$cross_compiling" = yes ||
1592 $as_test_x conftest$ac_exeext
1596 $as_echo "$as_me: failed program was:" >&5
1597 sed 's/^/| /' conftest.$ac_ext >&5
1601 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1602 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1603 # interfere with the next link command; also delete a directory that is
1604 # left behind by Apple's compiler. We do this before executing the actions.
1605 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1606 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1607 as_fn_set_status $ac_retval
1609 } # ac_fn_c_try_link
1611 # ac_fn_c_check_func LINENO FUNC VAR
1612 # ----------------------------------
1613 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1614 ac_fn_c_check_func ()
1616 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1617 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1618 $as_echo_n "checking for $2... " >&6; }
1619 if eval \${$3+:} false; then :
1620 $as_echo_n "(cached) " >&6
1622 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1623 /* end confdefs.h. */
1624 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1625 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1626 #define $2 innocuous_$2
1628 /* System header to define __stub macros and hopefully few prototypes,
1629 which can conflict with char $2 (); below.
1630 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1631 <limits.h> exists even on freestanding compilers. */
1634 # include <limits.h>
1636 # include <assert.h>
1641 /* Override any GCC internal prototype to avoid an error.
1642 Use char because int might match the return type of a GCC
1643 builtin and then its argument prototype would still apply. */
1648 /* The GNU C library defines this for functions which it implements
1649 to always fail with ENOSYS. Some functions are actually named
1650 something starting with __ and the normal name is an alias. */
1651 #if defined __stub_$2 || defined __stub___$2
1663 if ac_fn_c_try_link "$LINENO"; then :
1668 rm -f core conftest.err conftest.$ac_objext \
1669 conftest$ac_exeext conftest.$ac_ext
1672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1673 $as_echo "$ac_res" >&6; }
1674 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1676 } # ac_fn_c_check_func
1678 # ac_fn_c_try_run LINENO
1679 # ----------------------
1680 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1681 # that executables *can* be run.
1684 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1685 if { { ac_try="$ac_link"
1687 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1688 *) ac_try_echo=$ac_try;;
1690 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1691 $as_echo "$ac_try_echo"; } >&5
1692 (eval "$ac_link") 2>&5
1694 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1695 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1696 { { case "(($ac_try" in
1697 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1698 *) ac_try_echo=$ac_try;;
1700 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1701 $as_echo "$ac_try_echo"; } >&5
1702 (eval "$ac_try") 2>&5
1704 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1705 test $ac_status = 0; }; }; then :
1708 $as_echo "$as_me: program exited with status $ac_status" >&5
1709 $as_echo "$as_me: failed program was:" >&5
1710 sed 's/^/| /' conftest.$ac_ext >&5
1712 ac_retval=$ac_status
1714 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1715 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1716 as_fn_set_status $ac_retval
1720 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1721 # -------------------------------------------------------
1722 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1723 # the include files in INCLUDES and setting the cache variable VAR
1725 ac_fn_c_check_header_mongrel ()
1727 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1728 if eval \${$3+:} false; then :
1729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1730 $as_echo_n "checking for $2... " >&6; }
1731 if eval \${$3+:} false; then :
1732 $as_echo_n "(cached) " >&6
1735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1736 $as_echo "$ac_res" >&6; }
1738 # Is the header compilable?
1739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1740 $as_echo_n "checking $2 usability... " >&6; }
1741 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1742 /* end confdefs.h. */
1746 if ac_fn_c_try_compile "$LINENO"; then :
1747 ac_header_compiler=yes
1749 ac_header_compiler=no
1751 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1753 $as_echo "$ac_header_compiler" >&6; }
1755 # Is the header present?
1756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1757 $as_echo_n "checking $2 presence... " >&6; }
1758 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1759 /* end confdefs.h. */
1762 if ac_fn_c_try_cpp "$LINENO"; then :
1763 ac_header_preproc=yes
1765 ac_header_preproc=no
1767 rm -f conftest.err conftest.i conftest.$ac_ext
1768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1769 $as_echo "$ac_header_preproc" >&6; }
1771 # So? What about this header?
1772 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1774 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1775 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1776 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1777 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1780 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1781 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1782 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1783 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1784 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1785 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1786 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1787 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1788 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1789 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1793 $as_echo_n "checking for $2... " >&6; }
1794 if eval \${$3+:} false; then :
1795 $as_echo_n "(cached) " >&6
1797 eval "$3=\$ac_header_compiler"
1800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1801 $as_echo "$ac_res" >&6; }
1803 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1805 } # ac_fn_c_check_header_mongrel
1807 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1808 # -------------------------------------------------------
1809 # Tests whether HEADER exists and can be compiled using the include files in
1810 # INCLUDES, setting the cache variable VAR accordingly.
1811 ac_fn_c_check_header_compile ()
1813 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1815 $as_echo_n "checking for $2... " >&6; }
1816 if eval \${$3+:} false; then :
1817 $as_echo_n "(cached) " >&6
1819 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1820 /* end confdefs.h. */
1824 if ac_fn_c_try_compile "$LINENO"; then :
1829 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1833 $as_echo "$ac_res" >&6; }
1834 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1836 } # ac_fn_c_check_header_compile
1837 cat >config.log <<_ACEOF
1838 This file contains any messages produced by compilers while
1839 running configure, to aid debugging if configure makes a mistake.
1841 It was created by $as_me, which was
1842 generated by GNU Autoconf 2.68. Invocation command line was
1854 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1855 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1856 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1857 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1858 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1860 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1861 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1863 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1864 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1865 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1866 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1867 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1868 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1869 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1873 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1877 test -z "$as_dir" && as_dir=.
1878 $as_echo "PATH: $as_dir"
1894 # Keep a trace of the command line.
1895 # Strip out --no-create and --no-recursion so they do not pile up.
1896 # Strip out --silent because we don't want to record it for future runs.
1897 # Also quote any args containing shell meta-characters.
1898 # Make two passes to allow for proper duplicate-argument suppression.
1902 ac_must_keep_next=false
1908 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1909 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1910 | -silent | --silent | --silen | --sile | --sil)
1913 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1916 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1918 as_fn_append ac_configure_args1 " '$ac_arg'"
1919 if test $ac_must_keep_next = true; then
1920 ac_must_keep_next=false # Got value, back to normal.
1923 *=* | --config-cache | -C | -disable-* | --disable-* \
1924 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1925 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1926 | -with-* | --with-* | -without-* | --without-* | --x)
1927 case "$ac_configure_args0 " in
1928 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1931 -* ) ac_must_keep_next=true ;;
1934 as_fn_append ac_configure_args " '$ac_arg'"
1939 { ac_configure_args0=; unset ac_configure_args0;}
1940 { ac_configure_args1=; unset ac_configure_args1;}
1942 # When interrupted or exit'd, cleanup temporary files, and complete
1943 # config.log. We remove comments because anyway the quotes in there
1944 # would cause problems or look ugly.
1945 # WARNING: Use '\'' to represent an apostrophe within the trap.
1946 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1947 trap 'exit_status=$?
1948 # Save into config.log some information that might help in debugging.
1952 $as_echo "## ---------------- ##
1953 ## Cache variables. ##
1954 ## ---------------- ##"
1956 # The following way of writing the cache mishandles newlines in values,
1958 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1959 eval ac_val=\$$ac_var
1963 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1964 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1967 _ | IFS | as_nl) ;; #(
1968 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1969 *) { eval $ac_var=; unset $ac_var;} ;;
1974 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1975 *${as_nl}ac_space=\ *)
1977 "s/'\''/'\''\\\\'\'''\''/g;
1978 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1981 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1988 $as_echo "## ----------------- ##
1989 ## Output variables. ##
1990 ## ----------------- ##"
1992 for ac_var in $ac_subst_vars
1994 eval ac_val=\$$ac_var
1996 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1998 $as_echo "$ac_var='\''$ac_val'\''"
2002 if test -n "$ac_subst_files"; then
2003 $as_echo "## ------------------- ##
2004 ## File substitutions. ##
2005 ## ------------------- ##"
2007 for ac_var in $ac_subst_files
2009 eval ac_val=\$$ac_var
2011 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2013 $as_echo "$ac_var='\''$ac_val'\''"
2018 if test -s confdefs.h; then
2019 $as_echo "## ----------- ##
2026 test "$ac_signal" != 0 &&
2027 $as_echo "$as_me: caught signal $ac_signal"
2028 $as_echo "$as_me: exit $exit_status"
2030 rm -f core *.core core.conftest.* &&
2031 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2034 for ac_signal in 1 2 13 15; do
2035 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2039 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2040 rm -f -r conftest* confdefs.h
2042 $as_echo "/* confdefs.h */" > confdefs.h
2044 # Predefined preprocessor variables.
2046 cat >>confdefs.h <<_ACEOF
2047 #define PACKAGE_NAME "$PACKAGE_NAME"
2050 cat >>confdefs.h <<_ACEOF
2051 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2054 cat >>confdefs.h <<_ACEOF
2055 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2058 cat >>confdefs.h <<_ACEOF
2059 #define PACKAGE_STRING "$PACKAGE_STRING"
2062 cat >>confdefs.h <<_ACEOF
2063 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2066 cat >>confdefs.h <<_ACEOF
2067 #define PACKAGE_URL "$PACKAGE_URL"
2071 # Let the site file select an alternate cache file if it wants to.
2072 # Prefer an explicitly selected file to automatically selected ones.
2075 if test -n "$CONFIG_SITE"; then
2076 # We do not want a PATH search for config.site.
2077 case $CONFIG_SITE in #((
2078 -*) ac_site_file1=./$CONFIG_SITE;;
2079 */*) ac_site_file1=$CONFIG_SITE;;
2080 *) ac_site_file1=./$CONFIG_SITE;;
2082 elif test "x$prefix" != xNONE; then
2083 ac_site_file1=$prefix/share/config.site
2084 ac_site_file2=$prefix/etc/config.site
2086 ac_site_file1=$ac_default_prefix/share/config.site
2087 ac_site_file2=$ac_default_prefix/etc/config.site
2089 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2091 test "x$ac_site_file" = xNONE && continue
2092 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2093 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2094 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2095 sed 's/^/| /' "$ac_site_file" >&5
2097 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2098 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2099 as_fn_error $? "failed to load site script $ac_site_file
2100 See \`config.log' for more details" "$LINENO" 5; }
2104 if test -r "$cache_file"; then
2105 # Some versions of bash will fail to source /dev/null (special files
2106 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2107 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2108 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2109 $as_echo "$as_me: loading cache $cache_file" >&6;}
2111 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2112 *) . "./$cache_file";;
2116 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2117 $as_echo "$as_me: creating cache $cache_file" >&6;}
2121 # Check that the precious variables saved in the cache have kept the same
2123 ac_cache_corrupted=false
2124 for ac_var in $ac_precious_vars; do
2125 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2126 eval ac_new_set=\$ac_env_${ac_var}_set
2127 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2128 eval ac_new_val=\$ac_env_${ac_var}_value
2129 case $ac_old_set,$ac_new_set in
2131 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2132 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2133 ac_cache_corrupted=: ;;
2135 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2136 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2137 ac_cache_corrupted=: ;;
2140 if test "x$ac_old_val" != "x$ac_new_val"; then
2141 # differences in whitespace do not lead to failure.
2142 ac_old_val_w=`echo x $ac_old_val`
2143 ac_new_val_w=`echo x $ac_new_val`
2144 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2145 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2146 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2147 ac_cache_corrupted=:
2149 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2150 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2151 eval $ac_var=\$ac_old_val
2153 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2154 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2155 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2156 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2159 # Pass precious variables to config.status.
2160 if test "$ac_new_set" = set; then
2162 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2163 *) ac_arg=$ac_var=$ac_new_val ;;
2165 case " $ac_configure_args " in
2166 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2167 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2171 if $ac_cache_corrupted; then
2172 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2173 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2174 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2175 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2176 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2178 ## -------------------- ##
2179 ## Main body of script. ##
2180 ## -------------------- ##
2183 ac_cpp='$CPP $CPPFLAGS'
2184 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2185 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2186 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2189 am__api_version='1.11'
2192 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2193 if test -f "$ac_dir/install-sh"; then
2195 ac_install_sh="$ac_aux_dir/install-sh -c"
2197 elif test -f "$ac_dir/install.sh"; then
2199 ac_install_sh="$ac_aux_dir/install.sh -c"
2201 elif test -f "$ac_dir/shtool"; then
2203 ac_install_sh="$ac_aux_dir/shtool install -c"
2207 if test -z "$ac_aux_dir"; then
2208 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2211 # These three variables are undocumented and unsupported,
2212 # and are intended to be withdrawn in a future Autoconf release.
2213 # They can cause serious problems if a builder's source tree is in a directory
2214 # whose full name contains unusual characters.
2215 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2216 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2217 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2220 # Find a good install program. We prefer a C program (faster),
2221 # so one script is as good as another. But avoid the broken or
2222 # incompatible versions:
2223 # SysV /etc/install, /usr/sbin/install
2224 # SunOS /usr/etc/install
2225 # IRIX /sbin/install
2227 # AmigaOS /C/install, which installs bootblocks on floppy discs
2228 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2229 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2230 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2231 # OS/2's system install, which has a completely different semantic
2232 # ./install, which can be erroneously created by make from ./install.sh.
2233 # Reject install programs that cannot install multiple files.
2234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2235 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2236 if test -z "$INSTALL"; then
2237 if ${ac_cv_path_install+:} false; then :
2238 $as_echo_n "(cached) " >&6
2240 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2244 test -z "$as_dir" && as_dir=.
2245 # Account for people who put trailing slashes in PATH elements.
2246 case $as_dir/ in #((
2247 ./ | .// | /[cC]/* | \
2248 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2249 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2252 # OSF1 and SCO ODT 3.0 have their own names for install.
2253 # Don't use installbsd from OSF since it installs stuff as root
2255 for ac_prog in ginstall scoinst install; do
2256 for ac_exec_ext in '' $ac_executable_extensions; do
2257 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2258 if test $ac_prog = install &&
2259 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2260 # AIX install. It has an incompatible calling convention.
2262 elif test $ac_prog = install &&
2263 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2264 # program-specific install script used by HP pwplus--don't use.
2267 rm -rf conftest.one conftest.two conftest.dir
2268 echo one > conftest.one
2269 echo two > conftest.two
2271 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2272 test -s conftest.one && test -s conftest.two &&
2273 test -s conftest.dir/conftest.one &&
2274 test -s conftest.dir/conftest.two
2276 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2289 rm -rf conftest.one conftest.two conftest.dir
2292 if test "${ac_cv_path_install+set}" = set; then
2293 INSTALL=$ac_cv_path_install
2295 # As a last resort, use the slow shell script. Don't cache a
2296 # value for INSTALL within a source directory, because that will
2297 # break other packages using the cache if that directory is
2298 # removed, or if the value is a relative name.
2299 INSTALL=$ac_install_sh
2302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2303 $as_echo "$INSTALL" >&6; }
2305 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2306 # It thinks the first close brace ends the variable substitution.
2307 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2309 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2311 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2314 $as_echo_n "checking whether build environment is sane... " >&6; }
2317 echo timestamp > conftest.file
2318 # Reject unsafe characters in $srcdir or the absolute working directory
2319 # name. Accept space and tab only in the latter.
2323 *[\\\"\#\$\&\'\`$am_lf]*)
2324 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2327 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2328 as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2331 # Do `set' in a subshell so we don't clobber the current shell's
2332 # arguments. Must try -L first in case configure is actually a
2333 # symlink; some systems play weird games with the mod time of symlinks
2334 # (eg FreeBSD returns the mod time of the symlink's containing
2337 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2338 if test "$*" = "X"; then
2340 set X `ls -t "$srcdir/configure" conftest.file`
2343 if test "$*" != "X $srcdir/configure conftest.file" \
2344 && test "$*" != "X conftest.file $srcdir/configure"; then
2346 # If neither matched, then we have a broken ls. This can happen
2347 # if, for instance, CONFIG_SHELL is bash and it inherits a
2348 # broken ls alias from the environment. This has actually
2349 # happened. Such a system could not be considered "sane".
2350 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2351 alias in your environment" "$LINENO" 5
2354 test "$2" = conftest.file
2360 as_fn_error $? "newly created file is older than distributed files!
2361 Check your system clock" "$LINENO" 5
2363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2364 $as_echo "yes" >&6; }
2365 test "$program_prefix" != NONE &&
2366 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2367 # Use a double $ so make ignores it.
2368 test "$program_suffix" != NONE &&
2369 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2370 # Double any \ or $.
2371 # By default was `s,x,x', remove it if useless.
2372 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2373 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2375 # expand $ac_aux_dir to an absolute path
2376 am_aux_dir=`cd $ac_aux_dir && pwd`
2378 if test x"${MISSING+set}" != xset; then
2381 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2383 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2386 # Use eval to expand $SHELL
2387 if eval "$MISSING --run true"; then
2388 am_missing_run="$MISSING --run "
2391 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2392 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2395 if test x"${install_sh}" != xset; then
2398 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2400 install_sh="\${SHELL} $am_aux_dir/install-sh"
2404 # Installed binaries are usually stripped using `strip' when the user
2405 # run `make install-strip'. However `strip' might not be the right
2406 # tool to use in cross-compilation environments, therefore Automake
2407 # will honor the `STRIP' environment variable to overrule this program.
2408 if test "$cross_compiling" != no; then
2409 if test -n "$ac_tool_prefix"; then
2410 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2411 set dummy ${ac_tool_prefix}strip; ac_word=$2
2412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2413 $as_echo_n "checking for $ac_word... " >&6; }
2414 if ${ac_cv_prog_STRIP+:} false; then :
2415 $as_echo_n "(cached) " >&6
2417 if test -n "$STRIP"; then
2418 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2420 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2424 test -z "$as_dir" && as_dir=.
2425 for ac_exec_ext in '' $ac_executable_extensions; do
2426 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2427 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2428 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2437 STRIP=$ac_cv_prog_STRIP
2438 if test -n "$STRIP"; then
2439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2440 $as_echo "$STRIP" >&6; }
2442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2443 $as_echo "no" >&6; }
2448 if test -z "$ac_cv_prog_STRIP"; then
2450 # Extract the first word of "strip", so it can be a program name with args.
2451 set dummy strip; ac_word=$2
2452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2453 $as_echo_n "checking for $ac_word... " >&6; }
2454 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2455 $as_echo_n "(cached) " >&6
2457 if test -n "$ac_ct_STRIP"; then
2458 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2460 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2464 test -z "$as_dir" && as_dir=.
2465 for ac_exec_ext in '' $ac_executable_extensions; do
2466 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2467 ac_cv_prog_ac_ct_STRIP="strip"
2468 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2477 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2478 if test -n "$ac_ct_STRIP"; then
2479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2480 $as_echo "$ac_ct_STRIP" >&6; }
2482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2483 $as_echo "no" >&6; }
2486 if test "x$ac_ct_STRIP" = x; then
2489 case $cross_compiling:$ac_tool_warned in
2491 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2492 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2493 ac_tool_warned=yes ;;
2498 STRIP="$ac_cv_prog_STRIP"
2502 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2505 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2506 if test -z "$MKDIR_P"; then
2507 if ${ac_cv_path_mkdir+:} false; then :
2508 $as_echo_n "(cached) " >&6
2510 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2511 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2514 test -z "$as_dir" && as_dir=.
2515 for ac_prog in mkdir gmkdir; do
2516 for ac_exec_ext in '' $ac_executable_extensions; do
2517 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2518 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2519 'mkdir (GNU coreutils) '* | \
2520 'mkdir (coreutils) '* | \
2521 'mkdir (fileutils) '4.1*)
2522 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2532 test -d ./--version && rmdir ./--version
2533 if test "${ac_cv_path_mkdir+set}" = set; then
2534 MKDIR_P="$ac_cv_path_mkdir -p"
2536 # As a last resort, use the slow shell script. Don't cache a
2537 # value for MKDIR_P within a source directory, because that will
2538 # break other packages using the cache if that directory is
2539 # removed, or if the value is a relative name.
2540 MKDIR_P="$ac_install_sh -d"
2543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2544 $as_echo "$MKDIR_P" >&6; }
2548 [\\/$]* | ?:[\\/]*) ;;
2549 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2552 for ac_prog in gawk mawk nawk awk
2554 # Extract the first word of "$ac_prog", so it can be a program name with args.
2555 set dummy $ac_prog; ac_word=$2
2556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2557 $as_echo_n "checking for $ac_word... " >&6; }
2558 if ${ac_cv_prog_AWK+:} false; then :
2559 $as_echo_n "(cached) " >&6
2561 if test -n "$AWK"; then
2562 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2564 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2568 test -z "$as_dir" && as_dir=.
2569 for ac_exec_ext in '' $ac_executable_extensions; do
2570 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2571 ac_cv_prog_AWK="$ac_prog"
2572 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2582 if test -n "$AWK"; then
2583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2584 $as_echo "$AWK" >&6; }
2586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2587 $as_echo "no" >&6; }
2591 test -n "$AWK" && break
2594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2595 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2597 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2598 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2599 $as_echo_n "(cached) " >&6
2601 cat >conftest.make <<\_ACEOF
2604 @echo '@@@%%%=$(MAKE)=@@@%%%'
2606 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2607 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2609 eval ac_cv_prog_make_${ac_make}_set=yes;;
2611 eval ac_cv_prog_make_${ac_make}_set=no;;
2615 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2617 $as_echo "yes" >&6; }
2620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2621 $as_echo "no" >&6; }
2622 SET_MAKE="MAKE=${MAKE-make}"
2625 rm -rf .tst 2>/dev/null
2626 mkdir .tst 2>/dev/null
2627 if test -d .tst; then
2632 rmdir .tst 2>/dev/null
2634 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2635 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2636 # is not polluted with repeated "-I."
2637 am__isrc=' -I$(srcdir)'
2638 # test to see if srcdir already configured
2639 if test -f $srcdir/config.status; then
2640 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2644 # test whether we have cygpath
2645 if test -z "$CYGPATH_W"; then
2646 if (cygpath --version) >/dev/null 2>/dev/null; then
2647 CYGPATH_W='cygpath -w'
2654 # Define the identity of the package.
2659 cat >>confdefs.h <<_ACEOF
2660 #define PACKAGE "$PACKAGE"
2664 cat >>confdefs.h <<_ACEOF
2665 #define VERSION "$VERSION"
2668 # Some tools Automake needs.
2670 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2673 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2676 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2679 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2682 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2684 # We need awk for the "check" target. The system "awk" is bad on
2686 # Always define AMTAR for backward compatibility. Yes, it's still used
2687 # in the wild :-( We should find a proper way to deprecate it ...
2690 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
2699 ac_cpp='$CPP $CPPFLAGS'
2700 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2701 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2702 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2703 if test -n "$ac_tool_prefix"; then
2704 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2705 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2707 $as_echo_n "checking for $ac_word... " >&6; }
2708 if ${ac_cv_prog_CC+:} false; then :
2709 $as_echo_n "(cached) " >&6
2711 if test -n "$CC"; then
2712 ac_cv_prog_CC="$CC" # Let the user override the test.
2714 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2718 test -z "$as_dir" && as_dir=.
2719 for ac_exec_ext in '' $ac_executable_extensions; do
2720 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2721 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2722 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2732 if test -n "$CC"; then
2733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2734 $as_echo "$CC" >&6; }
2736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2737 $as_echo "no" >&6; }
2742 if test -z "$ac_cv_prog_CC"; then
2744 # Extract the first word of "gcc", so it can be a program name with args.
2745 set dummy gcc; ac_word=$2
2746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2747 $as_echo_n "checking for $ac_word... " >&6; }
2748 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2749 $as_echo_n "(cached) " >&6
2751 if test -n "$ac_ct_CC"; then
2752 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2754 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2758 test -z "$as_dir" && as_dir=.
2759 for ac_exec_ext in '' $ac_executable_extensions; do
2760 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2761 ac_cv_prog_ac_ct_CC="gcc"
2762 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2771 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2772 if test -n "$ac_ct_CC"; then
2773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2774 $as_echo "$ac_ct_CC" >&6; }
2776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2777 $as_echo "no" >&6; }
2780 if test "x$ac_ct_CC" = x; then
2783 case $cross_compiling:$ac_tool_warned in
2785 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2786 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2787 ac_tool_warned=yes ;;
2795 if test -z "$CC"; then
2796 if test -n "$ac_tool_prefix"; then
2797 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2798 set dummy ${ac_tool_prefix}cc; ac_word=$2
2799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2800 $as_echo_n "checking for $ac_word... " >&6; }
2801 if ${ac_cv_prog_CC+:} false; then :
2802 $as_echo_n "(cached) " >&6
2804 if test -n "$CC"; then
2805 ac_cv_prog_CC="$CC" # Let the user override the test.
2807 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2811 test -z "$as_dir" && as_dir=.
2812 for ac_exec_ext in '' $ac_executable_extensions; do
2813 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2814 ac_cv_prog_CC="${ac_tool_prefix}cc"
2815 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2825 if test -n "$CC"; then
2826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2827 $as_echo "$CC" >&6; }
2829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2830 $as_echo "no" >&6; }
2836 if test -z "$CC"; then
2837 # Extract the first word of "cc", so it can be a program name with args.
2838 set dummy cc; ac_word=$2
2839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2840 $as_echo_n "checking for $ac_word... " >&6; }
2841 if ${ac_cv_prog_CC+:} false; then :
2842 $as_echo_n "(cached) " >&6
2844 if test -n "$CC"; then
2845 ac_cv_prog_CC="$CC" # Let the user override the test.
2848 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2852 test -z "$as_dir" && as_dir=.
2853 for ac_exec_ext in '' $ac_executable_extensions; do
2854 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2855 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2856 ac_prog_rejected=yes
2860 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2867 if test $ac_prog_rejected = yes; then
2868 # We found a bogon in the path, so make sure we never use it.
2869 set dummy $ac_cv_prog_CC
2871 if test $# != 0; then
2872 # We chose a different compiler from the bogus one.
2873 # However, it has the same basename, so the bogon will be chosen
2874 # first if we set CC to just the basename; use the full file name.
2876 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2882 if test -n "$CC"; then
2883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2884 $as_echo "$CC" >&6; }
2886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2887 $as_echo "no" >&6; }
2892 if test -z "$CC"; then
2893 if test -n "$ac_tool_prefix"; then
2894 for ac_prog in cl.exe
2896 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2897 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2899 $as_echo_n "checking for $ac_word... " >&6; }
2900 if ${ac_cv_prog_CC+:} false; then :
2901 $as_echo_n "(cached) " >&6
2903 if test -n "$CC"; then
2904 ac_cv_prog_CC="$CC" # Let the user override the test.
2906 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2910 test -z "$as_dir" && as_dir=.
2911 for ac_exec_ext in '' $ac_executable_extensions; do
2912 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2913 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2914 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2924 if test -n "$CC"; then
2925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2926 $as_echo "$CC" >&6; }
2928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2929 $as_echo "no" >&6; }
2933 test -n "$CC" && break
2936 if test -z "$CC"; then
2938 for ac_prog in cl.exe
2940 # Extract the first word of "$ac_prog", so it can be a program name with args.
2941 set dummy $ac_prog; ac_word=$2
2942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2943 $as_echo_n "checking for $ac_word... " >&6; }
2944 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2945 $as_echo_n "(cached) " >&6
2947 if test -n "$ac_ct_CC"; then
2948 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2950 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2954 test -z "$as_dir" && as_dir=.
2955 for ac_exec_ext in '' $ac_executable_extensions; do
2956 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2957 ac_cv_prog_ac_ct_CC="$ac_prog"
2958 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2967 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2968 if test -n "$ac_ct_CC"; then
2969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2970 $as_echo "$ac_ct_CC" >&6; }
2972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2973 $as_echo "no" >&6; }
2977 test -n "$ac_ct_CC" && break
2980 if test "x$ac_ct_CC" = x; then
2983 case $cross_compiling:$ac_tool_warned in
2985 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2986 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2987 ac_tool_warned=yes ;;
2996 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2997 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2998 as_fn_error $? "no acceptable C compiler found in \$PATH
2999 See \`config.log' for more details" "$LINENO" 5; }
3001 # Provide some information about the compiler.
3002 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3005 for ac_option in --version -v -V -qversion; do
3006 { { ac_try="$ac_compiler $ac_option >&5"
3008 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3009 *) ac_try_echo=$ac_try;;
3011 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3012 $as_echo "$ac_try_echo"; } >&5
3013 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3015 if test -s conftest.err; then
3017 ... rest of stderr output deleted ...
3018 10q' conftest.err >conftest.er1
3019 cat conftest.er1 >&5
3021 rm -f conftest.er1 conftest.err
3022 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3023 test $ac_status = 0; }
3026 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3027 /* end confdefs.h. */
3037 ac_clean_files_save=$ac_clean_files
3038 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3039 # Try to create an executable without -o first, disregard a.out.
3040 # It will help us diagnose broken compilers, and finding out an intuition
3042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3043 $as_echo_n "checking whether the C compiler works... " >&6; }
3044 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3046 # The possible output files:
3047 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3050 for ac_file in $ac_files
3053 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3054 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3059 if { { ac_try="$ac_link_default"
3061 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3062 *) ac_try_echo=$ac_try;;
3064 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3065 $as_echo "$ac_try_echo"; } >&5
3066 (eval "$ac_link_default") 2>&5
3068 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3069 test $ac_status = 0; }; then :
3070 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3071 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3072 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3073 # so that the user can short-circuit this test for compilers unknown to
3075 for ac_file in $ac_files ''
3077 test -f "$ac_file" || continue
3079 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3082 # We found the default executable, but exeext='' is most
3086 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3088 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3090 # We set ac_cv_exeext here because the later test for it is not
3091 # safe: cross compilers may not add the suffix if given an `-o'
3092 # argument, so we may need to know it at that point already.
3093 # Even if this section looks crufty: it has the advantage of
3100 test "$ac_cv_exeext" = no && ac_cv_exeext=
3105 if test -z "$ac_file"; then :
3106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3107 $as_echo "no" >&6; }
3108 $as_echo "$as_me: failed program was:" >&5
3109 sed 's/^/| /' conftest.$ac_ext >&5
3111 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3112 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3113 as_fn_error 77 "C compiler cannot create executables
3114 See \`config.log' for more details" "$LINENO" 5; }
3116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3117 $as_echo "yes" >&6; }
3119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3120 $as_echo_n "checking for C compiler default output file name... " >&6; }
3121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3122 $as_echo "$ac_file" >&6; }
3123 ac_exeext=$ac_cv_exeext
3125 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3126 ac_clean_files=$ac_clean_files_save
3127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3128 $as_echo_n "checking for suffix of executables... " >&6; }
3129 if { { ac_try="$ac_link"
3131 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3132 *) ac_try_echo=$ac_try;;
3134 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3135 $as_echo "$ac_try_echo"; } >&5
3136 (eval "$ac_link") 2>&5
3138 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3139 test $ac_status = 0; }; then :
3140 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3141 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3142 # work properly (i.e., refer to `conftest.exe'), while it won't with
3144 for ac_file in conftest.exe conftest conftest.*; do
3145 test -f "$ac_file" || continue
3147 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3148 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3154 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3155 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3156 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3157 See \`config.log' for more details" "$LINENO" 5; }
3159 rm -f conftest conftest$ac_cv_exeext
3160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3161 $as_echo "$ac_cv_exeext" >&6; }
3163 rm -f conftest.$ac_ext
3164 EXEEXT=$ac_cv_exeext
3166 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3167 /* end confdefs.h. */
3172 FILE *f = fopen ("conftest.out", "w");
3173 return ferror (f) || fclose (f) != 0;
3179 ac_clean_files="$ac_clean_files conftest.out"
3180 # Check that the compiler produces executables we can run. If not, either
3181 # the compiler is broken, or we cross compile.
3182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3183 $as_echo_n "checking whether we are cross compiling... " >&6; }
3184 if test "$cross_compiling" != yes; then
3185 { { ac_try="$ac_link"
3187 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3188 *) ac_try_echo=$ac_try;;
3190 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3191 $as_echo "$ac_try_echo"; } >&5
3192 (eval "$ac_link") 2>&5
3194 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3195 test $ac_status = 0; }
3196 if { ac_try='./conftest$ac_cv_exeext'
3197 { { case "(($ac_try" in
3198 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3199 *) ac_try_echo=$ac_try;;
3201 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3202 $as_echo "$ac_try_echo"; } >&5
3203 (eval "$ac_try") 2>&5
3205 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3206 test $ac_status = 0; }; }; then
3209 if test "$cross_compiling" = maybe; then
3212 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3213 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3214 as_fn_error $? "cannot run C compiled programs.
3215 If you meant to cross compile, use \`--host'.
3216 See \`config.log' for more details" "$LINENO" 5; }
3220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3221 $as_echo "$cross_compiling" >&6; }
3223 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3224 ac_clean_files=$ac_clean_files_save
3225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3226 $as_echo_n "checking for suffix of object files... " >&6; }
3227 if ${ac_cv_objext+:} false; then :
3228 $as_echo_n "(cached) " >&6
3230 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3231 /* end confdefs.h. */
3241 rm -f conftest.o conftest.obj
3242 if { { ac_try="$ac_compile"
3244 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3245 *) ac_try_echo=$ac_try;;
3247 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3248 $as_echo "$ac_try_echo"; } >&5
3249 (eval "$ac_compile") 2>&5
3251 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3252 test $ac_status = 0; }; then :
3253 for ac_file in conftest.o conftest.obj conftest.*; do
3254 test -f "$ac_file" || continue;
3256 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3257 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3262 $as_echo "$as_me: failed program was:" >&5
3263 sed 's/^/| /' conftest.$ac_ext >&5
3265 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3266 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3267 as_fn_error $? "cannot compute suffix of object files: cannot compile
3268 See \`config.log' for more details" "$LINENO" 5; }
3270 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3273 $as_echo "$ac_cv_objext" >&6; }
3274 OBJEXT=$ac_cv_objext
3276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3277 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3278 if ${ac_cv_c_compiler_gnu+:} false; then :
3279 $as_echo_n "(cached) " >&6
3281 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3282 /* end confdefs.h. */
3295 if ac_fn_c_try_compile "$LINENO"; then :
3300 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3301 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3305 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3306 if test $ac_compiler_gnu = yes; then
3311 ac_test_CFLAGS=${CFLAGS+set}
3312 ac_save_CFLAGS=$CFLAGS
3313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3314 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3315 if ${ac_cv_prog_cc_g+:} false; then :
3316 $as_echo_n "(cached) " >&6
3318 ac_save_c_werror_flag=$ac_c_werror_flag
3319 ac_c_werror_flag=yes
3322 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3323 /* end confdefs.h. */
3333 if ac_fn_c_try_compile "$LINENO"; then :
3337 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3338 /* end confdefs.h. */
3348 if ac_fn_c_try_compile "$LINENO"; then :
3351 ac_c_werror_flag=$ac_save_c_werror_flag
3353 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3354 /* end confdefs.h. */
3364 if ac_fn_c_try_compile "$LINENO"; then :
3367 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3369 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3371 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3372 ac_c_werror_flag=$ac_save_c_werror_flag
3374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3375 $as_echo "$ac_cv_prog_cc_g" >&6; }
3376 if test "$ac_test_CFLAGS" = set; then
3377 CFLAGS=$ac_save_CFLAGS
3378 elif test $ac_cv_prog_cc_g = yes; then
3379 if test "$GCC" = yes; then
3385 if test "$GCC" = yes; then
3391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3392 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3393 if ${ac_cv_prog_cc_c89+:} false; then :
3394 $as_echo_n "(cached) " >&6
3396 ac_cv_prog_cc_c89=no
3398 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3399 /* end confdefs.h. */
3402 #include <sys/types.h>
3403 #include <sys/stat.h>
3404 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3405 struct buf { int x; };
3406 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3407 static char *e (p, i)
3413 static char *f (char * (*g) (char **, int), char **p, ...)
3418 s = g (p, va_arg (v,int));
3423 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3424 function prototypes and stuff, but not '\xHH' hex character constants.
3425 These don't provoke an error unfortunately, instead are silently treated
3426 as 'x'. The following induces an error, until -std is added to get
3427 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3428 array size at least. It's necessary to write '\x00'==0 to get something
3429 that's true only with -std. */
3430 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3432 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3433 inside strings and character constants. */
3435 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3437 int test (int i, double x);
3438 struct s1 {int (*f) (int a);};
3439 struct s2 {int (*f) (double a);};
3440 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3446 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3451 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3452 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3454 CC="$ac_save_CC $ac_arg"
3455 if ac_fn_c_try_compile "$LINENO"; then :
3456 ac_cv_prog_cc_c89=$ac_arg
3458 rm -f core conftest.err conftest.$ac_objext
3459 test "x$ac_cv_prog_cc_c89" != "xno" && break
3461 rm -f conftest.$ac_ext
3466 case "x$ac_cv_prog_cc_c89" in
3468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3469 $as_echo "none needed" >&6; } ;;
3471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3472 $as_echo "unsupported" >&6; } ;;
3474 CC="$CC $ac_cv_prog_cc_c89"
3475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3476 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3478 if test "x$ac_cv_prog_cc_c89" != xno; then :
3483 ac_cpp='$CPP $CPPFLAGS'
3484 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3485 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3486 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3487 DEPDIR="${am__leading_dot}deps"
3489 ac_config_commands="$ac_config_commands depfiles"
3492 am_make=${MAKE-make}
3493 cat > confinc << 'END'
3495 @echo this is the am__doit target
3498 # If we don't find an include directive, just comment out the code.
3499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3500 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3504 # First try GNU make style include.
3505 echo "include confinc" > confmf
3506 # Ignore all kinds of additional output from `make'.
3507 case `$am_make -s -f confmf 2> /dev/null` in #(
3508 *the\ am__doit\ target*)
3514 # Now try BSD make style include.
3515 if test "$am__include" = "#"; then
3516 echo '.include "confinc"' > confmf
3517 case `$am_make -s -f confmf 2> /dev/null` in #(
3518 *the\ am__doit\ target*)
3519 am__include=.include
3527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3528 $as_echo "$_am_result" >&6; }
3529 rm -f confinc confmf
3531 # Check whether --enable-dependency-tracking was given.
3532 if test "${enable_dependency_tracking+set}" = set; then :
3533 enableval=$enable_dependency_tracking;
3536 if test "x$enable_dependency_tracking" != xno; then
3537 am_depcomp="$ac_aux_dir/depcomp"
3541 if test "x$enable_dependency_tracking" != xno; then
3551 depcc="$CC" am_compiler_list=
3553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3554 $as_echo_n "checking dependency style of $depcc... " >&6; }
3555 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
3556 $as_echo_n "(cached) " >&6
3558 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3559 # We make a subdir and do the tests there. Otherwise we can end up
3560 # making bogus files that we don't know about and never remove. For
3561 # instance it was reported that on HP-UX the gcc test will end up
3562 # making a dummy file named `D' -- because `-MD' means `put the output
3566 # Copy depcomp to subdir because otherwise we won't find it if we're
3567 # using a relative directory.
3568 cp "$am_depcomp" conftest.dir
3570 # We will build objects and dependencies in a subdirectory because
3571 # it helps to detect inapplicable dependency modes. For instance
3572 # both Tru64's cc and ICC support -MD to output dependencies as a
3573 # side effect of compilation, but ICC will put the dependencies in
3574 # the current directory while Tru64 will put them in the object
3578 am_cv_CC_dependencies_compiler_type=none
3579 if test "$am_compiler_list" = ""; then
3580 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3583 case " $depcc " in #(
3584 *\ -arch\ *\ -arch\ *) am__universal=true ;;
3587 for depmode in $am_compiler_list; do
3588 # Setup a source with many dependencies, because some compilers
3589 # like to wrap large dependency lists on column 80 (with \), and
3590 # we should not choose a depcomp mode which is confused by this.
3592 # We need to recreate these files for each test, as the compiler may
3593 # overwrite some of them when testing with obscure command lines.
3594 # This happens at least with the AIX C compiler.
3596 for i in 1 2 3 4 5 6; do
3597 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3598 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3599 # Solaris 8's {/usr,}/bin/sh.
3600 touch sub/conftst$i.h
3602 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3604 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3605 # mode. It turns out that the SunPro C++ compiler does not properly
3606 # handle `-M -o', and we need to detect this. Also, some Intel
3607 # versions had trouble with output in subdirs
3608 am__obj=sub/conftest.${OBJEXT-o}
3609 am__minus_obj="-o $am__obj"
3612 # This depmode causes a compiler race in universal mode.
3613 test "$am__universal" = false || continue
3616 # after this tag, mechanisms are not by side-effect, so they'll
3617 # only be used when explicitly requested
3618 if test "x$enable_dependency_tracking" = xyes; then
3624 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
3625 # This compiler won't grok `-c -o', but also, the minuso test has
3626 # not run yet. These depmodes are late enough in the game, and
3627 # so weak that their functioning should not be impacted.
3628 am__obj=conftest.${OBJEXT-o}
3633 if depmode=$depmode \
3634 source=sub/conftest.c object=$am__obj \
3635 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3636 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3637 >/dev/null 2>conftest.err &&
3638 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3639 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3640 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3641 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3642 # icc doesn't choke on unknown options, it will just issue warnings
3643 # or remarks (even with -Werror). So we grep stderr for any message
3644 # that says an option was ignored or not supported.
3645 # When given -MP, icc 7.0 and 7.1 complain thusly:
3646 # icc: Command line warning: ignoring option '-M'; no argument required
3647 # The diagnosis changed in icc 8.0:
3648 # icc: Command line remark: option '-MP' not supported
3649 if (grep 'ignoring option' conftest.err ||
3650 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3651 am_cv_CC_dependencies_compiler_type=$depmode
3660 am_cv_CC_dependencies_compiler_type=none
3664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3665 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3666 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3669 test "x$enable_dependency_tracking" != xno \
3670 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3672 am__fastdepCC_FALSE='#'
3674 am__fastdepCC_TRUE='#'
3675 am__fastdepCC_FALSE=
3680 ac_cpp='$CXXCPP $CPPFLAGS'
3681 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3682 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3683 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3684 if test -z "$CXX"; then
3685 if test -n "$CCC"; then
3688 if test -n "$ac_tool_prefix"; then
3689 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3691 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3692 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3694 $as_echo_n "checking for $ac_word... " >&6; }
3695 if ${ac_cv_prog_CXX+:} false; then :
3696 $as_echo_n "(cached) " >&6
3698 if test -n "$CXX"; then
3699 ac_cv_prog_CXX="$CXX" # Let the user override the test.
3701 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3705 test -z "$as_dir" && as_dir=.
3706 for ac_exec_ext in '' $ac_executable_extensions; do
3707 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3708 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3709 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3719 if test -n "$CXX"; then
3720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
3721 $as_echo "$CXX" >&6; }
3723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3724 $as_echo "no" >&6; }
3728 test -n "$CXX" && break
3731 if test -z "$CXX"; then
3733 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3735 # Extract the first word of "$ac_prog", so it can be a program name with args.
3736 set dummy $ac_prog; ac_word=$2
3737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3738 $as_echo_n "checking for $ac_word... " >&6; }
3739 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
3740 $as_echo_n "(cached) " >&6
3742 if test -n "$ac_ct_CXX"; then
3743 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3745 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3749 test -z "$as_dir" && as_dir=.
3750 for ac_exec_ext in '' $ac_executable_extensions; do
3751 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3752 ac_cv_prog_ac_ct_CXX="$ac_prog"
3753 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3762 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3763 if test -n "$ac_ct_CXX"; then
3764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
3765 $as_echo "$ac_ct_CXX" >&6; }
3767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3768 $as_echo "no" >&6; }
3772 test -n "$ac_ct_CXX" && break
3775 if test "x$ac_ct_CXX" = x; then
3778 case $cross_compiling:$ac_tool_warned in
3780 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3781 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3782 ac_tool_warned=yes ;;
3790 # Provide some information about the compiler.
3791 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
3794 for ac_option in --version -v -V -qversion; do
3795 { { ac_try="$ac_compiler $ac_option >&5"
3797 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3798 *) ac_try_echo=$ac_try;;
3800 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3801 $as_echo "$ac_try_echo"; } >&5
3802 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3804 if test -s conftest.err; then
3806 ... rest of stderr output deleted ...
3807 10q' conftest.err >conftest.er1
3808 cat conftest.er1 >&5
3810 rm -f conftest.er1 conftest.err
3811 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3812 test $ac_status = 0; }
3815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
3816 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
3817 if ${ac_cv_cxx_compiler_gnu+:} false; then :
3818 $as_echo_n "(cached) " >&6
3820 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3821 /* end confdefs.h. */
3834 if ac_fn_cxx_try_compile "$LINENO"; then :
3839 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3840 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
3844 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
3845 if test $ac_compiler_gnu = yes; then
3850 ac_test_CXXFLAGS=${CXXFLAGS+set}
3851 ac_save_CXXFLAGS=$CXXFLAGS
3852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
3853 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
3854 if ${ac_cv_prog_cxx_g+:} false; then :
3855 $as_echo_n "(cached) " >&6
3857 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3858 ac_cxx_werror_flag=yes
3861 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3862 /* end confdefs.h. */
3872 if ac_fn_cxx_try_compile "$LINENO"; then :
3873 ac_cv_prog_cxx_g=yes
3876 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3877 /* end confdefs.h. */
3887 if ac_fn_cxx_try_compile "$LINENO"; then :
3890 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3892 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3893 /* end confdefs.h. */
3903 if ac_fn_cxx_try_compile "$LINENO"; then :
3904 ac_cv_prog_cxx_g=yes
3906 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3908 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3910 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3911 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
3914 $as_echo "$ac_cv_prog_cxx_g" >&6; }
3915 if test "$ac_test_CXXFLAGS" = set; then
3916 CXXFLAGS=$ac_save_CXXFLAGS
3917 elif test $ac_cv_prog_cxx_g = yes; then
3918 if test "$GXX" = yes; then
3924 if test "$GXX" = yes; then
3931 ac_cpp='$CPP $CPPFLAGS'
3932 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3933 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3934 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3936 depcc="$CXX" am_compiler_list=
3938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3939 $as_echo_n "checking dependency style of $depcc... " >&6; }
3940 if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
3941 $as_echo_n "(cached) " >&6
3943 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3944 # We make a subdir and do the tests there. Otherwise we can end up
3945 # making bogus files that we don't know about and never remove. For
3946 # instance it was reported that on HP-UX the gcc test will end up
3947 # making a dummy file named `D' -- because `-MD' means `put the output
3951 # Copy depcomp to subdir because otherwise we won't find it if we're
3952 # using a relative directory.
3953 cp "$am_depcomp" conftest.dir
3955 # We will build objects and dependencies in a subdirectory because
3956 # it helps to detect inapplicable dependency modes. For instance
3957 # both Tru64's cc and ICC support -MD to output dependencies as a
3958 # side effect of compilation, but ICC will put the dependencies in
3959 # the current directory while Tru64 will put them in the object
3963 am_cv_CXX_dependencies_compiler_type=none
3964 if test "$am_compiler_list" = ""; then
3965 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3968 case " $depcc " in #(
3969 *\ -arch\ *\ -arch\ *) am__universal=true ;;
3972 for depmode in $am_compiler_list; do
3973 # Setup a source with many dependencies, because some compilers
3974 # like to wrap large dependency lists on column 80 (with \), and
3975 # we should not choose a depcomp mode which is confused by this.
3977 # We need to recreate these files for each test, as the compiler may
3978 # overwrite some of them when testing with obscure command lines.
3979 # This happens at least with the AIX C compiler.
3981 for i in 1 2 3 4 5 6; do
3982 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3983 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3984 # Solaris 8's {/usr,}/bin/sh.
3985 touch sub/conftst$i.h
3987 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3989 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3990 # mode. It turns out that the SunPro C++ compiler does not properly
3991 # handle `-M -o', and we need to detect this. Also, some Intel
3992 # versions had trouble with output in subdirs
3993 am__obj=sub/conftest.${OBJEXT-o}
3994 am__minus_obj="-o $am__obj"
3997 # This depmode causes a compiler race in universal mode.
3998 test "$am__universal" = false || continue
4001 # after this tag, mechanisms are not by side-effect, so they'll
4002 # only be used when explicitly requested
4003 if test "x$enable_dependency_tracking" = xyes; then
4009 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4010 # This compiler won't grok `-c -o', but also, the minuso test has
4011 # not run yet. These depmodes are late enough in the game, and
4012 # so weak that their functioning should not be impacted.
4013 am__obj=conftest.${OBJEXT-o}
4018 if depmode=$depmode \
4019 source=sub/conftest.c object=$am__obj \
4020 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4021 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4022 >/dev/null 2>conftest.err &&
4023 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4024 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4025 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4026 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4027 # icc doesn't choke on unknown options, it will just issue warnings
4028 # or remarks (even with -Werror). So we grep stderr for any message
4029 # that says an option was ignored or not supported.
4030 # When given -MP, icc 7.0 and 7.1 complain thusly:
4031 # icc: Command line warning: ignoring option '-M'; no argument required
4032 # The diagnosis changed in icc 8.0:
4033 # icc: Command line remark: option '-MP' not supported
4034 if (grep 'ignoring option' conftest.err ||
4035 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4036 am_cv_CXX_dependencies_compiler_type=$depmode
4045 am_cv_CXX_dependencies_compiler_type=none
4049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
4050 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
4051 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
4054 test "x$enable_dependency_tracking" != xno \
4055 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
4056 am__fastdepCXX_TRUE=
4057 am__fastdepCXX_FALSE='#'
4059 am__fastdepCXX_TRUE='#'
4060 am__fastdepCXX_FALSE=
4065 ac_cpp='$CPP $CPPFLAGS'
4066 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4067 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4068 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4070 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4071 # On Suns, sometimes $CPP names a directory.
4072 if test -n "$CPP" && test -d "$CPP"; then
4075 if test -z "$CPP"; then
4076 if ${ac_cv_prog_CPP+:} false; then :
4077 $as_echo_n "(cached) " >&6
4079 # Double quotes because CPP needs to be expanded
4080 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4083 for ac_c_preproc_warn_flag in '' yes
4085 # Use a header file that comes with gcc, so configuring glibc
4086 # with a fresh cross-compiler works.
4087 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4088 # <limits.h> exists even on freestanding compilers.
4089 # On the NeXT, cc -E runs the code through the compiler's parser,
4090 # not just through cpp. "Syntax error" is here to catch this case.
4091 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4092 /* end confdefs.h. */
4094 # include <limits.h>
4096 # include <assert.h>
4100 if ac_fn_c_try_cpp "$LINENO"; then :
4103 # Broken: fails on valid input.
4106 rm -f conftest.err conftest.i conftest.$ac_ext
4108 # OK, works on sane cases. Now check whether nonexistent headers
4109 # can be detected and how.
4110 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4111 /* end confdefs.h. */
4112 #include <ac_nonexistent.h>
4114 if ac_fn_c_try_cpp "$LINENO"; then :
4115 # Broken: success on invalid input.
4118 # Passes both tests.
4122 rm -f conftest.err conftest.i conftest.$ac_ext
4125 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4126 rm -f conftest.i conftest.err conftest.$ac_ext
4127 if $ac_preproc_ok; then :
4139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4140 $as_echo "$CPP" >&6; }
4142 for ac_c_preproc_warn_flag in '' yes
4144 # Use a header file that comes with gcc, so configuring glibc
4145 # with a fresh cross-compiler works.
4146 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4147 # <limits.h> exists even on freestanding compilers.
4148 # On the NeXT, cc -E runs the code through the compiler's parser,
4149 # not just through cpp. "Syntax error" is here to catch this case.
4150 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4151 /* end confdefs.h. */
4153 # include <limits.h>
4155 # include <assert.h>
4159 if ac_fn_c_try_cpp "$LINENO"; then :
4162 # Broken: fails on valid input.
4165 rm -f conftest.err conftest.i conftest.$ac_ext
4167 # OK, works on sane cases. Now check whether nonexistent headers
4168 # can be detected and how.
4169 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4170 /* end confdefs.h. */
4171 #include <ac_nonexistent.h>
4173 if ac_fn_c_try_cpp "$LINENO"; then :
4174 # Broken: success on invalid input.
4177 # Passes both tests.
4181 rm -f conftest.err conftest.i conftest.$ac_ext
4184 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4185 rm -f conftest.i conftest.err conftest.$ac_ext
4186 if $ac_preproc_ok; then :
4189 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4190 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4191 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4192 See \`config.log' for more details" "$LINENO" 5; }
4196 ac_cpp='$CPP $CPPFLAGS'
4197 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4198 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4199 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4202 for ac_prog in flex lex
4204 # Extract the first word of "$ac_prog", so it can be a program name with args.
4205 set dummy $ac_prog; ac_word=$2
4206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4207 $as_echo_n "checking for $ac_word... " >&6; }
4208 if ${ac_cv_prog_LEX+:} false; then :
4209 $as_echo_n "(cached) " >&6
4211 if test -n "$LEX"; then
4212 ac_cv_prog_LEX="$LEX" # Let the user override the test.
4214 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4218 test -z "$as_dir" && as_dir=.
4219 for ac_exec_ext in '' $ac_executable_extensions; do
4220 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4221 ac_cv_prog_LEX="$ac_prog"
4222 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4232 if test -n "$LEX"; then
4233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5
4234 $as_echo "$LEX" >&6; }
4236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4237 $as_echo "no" >&6; }
4241 test -n "$LEX" && break
4243 test -n "$LEX" || LEX=":"
4245 if test "x$LEX" != "x:"; then
4246 cat >conftest.l <<_ACEOF
4252 e { yyless (input () != 0); }
4253 f { unput (yytext[0]); }
4254 . { BEGIN INITIAL; }
4256 #ifdef YYTEXT_POINTER
4257 extern char *yytext;
4262 return ! yylex () + ! yywrap ();
4265 { { ac_try="$LEX conftest.l"
4267 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4268 *) ac_try_echo=$ac_try;;
4270 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4271 $as_echo "$ac_try_echo"; } >&5
4272 (eval "$LEX conftest.l") 2>&5
4274 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4275 test $ac_status = 0; }
4276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex output file root" >&5
4277 $as_echo_n "checking lex output file root... " >&6; }
4278 if ${ac_cv_prog_lex_root+:} false; then :
4279 $as_echo_n "(cached) " >&6
4282 if test -f lex.yy.c; then
4283 ac_cv_prog_lex_root=lex.yy
4284 elif test -f lexyy.c; then
4285 ac_cv_prog_lex_root=lexyy
4287 as_fn_error $? "cannot find output from $LEX; giving up" "$LINENO" 5
4290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_root" >&5
4291 $as_echo "$ac_cv_prog_lex_root" >&6; }
4292 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
4294 if test -z "${LEXLIB+set}"; then
4295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex library" >&5
4296 $as_echo_n "checking lex library... " >&6; }
4297 if ${ac_cv_lib_lex+:} false; then :
4298 $as_echo_n "(cached) " >&6
4302 ac_cv_lib_lex='none needed'
4303 for ac_lib in '' -lfl -ll; do
4304 LIBS="$ac_lib $ac_save_LIBS"
4305 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4306 /* end confdefs.h. */
4307 `cat $LEX_OUTPUT_ROOT.c`
4309 if ac_fn_c_try_link "$LINENO"; then :
4310 ac_cv_lib_lex=$ac_lib
4312 rm -f core conftest.err conftest.$ac_objext \
4313 conftest$ac_exeext conftest.$ac_ext
4314 test "$ac_cv_lib_lex" != 'none needed' && break
4319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lex" >&5
4320 $as_echo "$ac_cv_lib_lex" >&6; }
4321 test "$ac_cv_lib_lex" != 'none needed' && LEXLIB=$ac_cv_lib_lex
4325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether yytext is a pointer" >&5
4326 $as_echo_n "checking whether yytext is a pointer... " >&6; }
4327 if ${ac_cv_prog_lex_yytext_pointer+:} false; then :
4328 $as_echo_n "(cached) " >&6
4330 # POSIX says lex can declare yytext either as a pointer or an array; the
4331 # default is implementation-dependent. Figure out which it is, since
4332 # not all implementations provide the %pointer and %array declarations.
4333 ac_cv_prog_lex_yytext_pointer=no
4335 LIBS="$LEXLIB $ac_save_LIBS"
4336 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4337 /* end confdefs.h. */
4339 #define YYTEXT_POINTER 1
4340 `cat $LEX_OUTPUT_ROOT.c`
4342 if ac_fn_c_try_link "$LINENO"; then :
4343 ac_cv_prog_lex_yytext_pointer=yes
4345 rm -f core conftest.err conftest.$ac_objext \
4346 conftest$ac_exeext conftest.$ac_ext
4350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_yytext_pointer" >&5
4351 $as_echo "$ac_cv_prog_lex_yytext_pointer" >&6; }
4352 if test $ac_cv_prog_lex_yytext_pointer = yes; then
4354 $as_echo "#define YYTEXT_POINTER 1" >>confdefs.h
4357 rm -f conftest.l $LEX_OUTPUT_ROOT.c
4360 if test "$LEX" = :; then
4361 LEX=${am_missing_run}flex
4364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4365 $as_echo_n "checking whether ln -s works... " >&6; }
4367 if test "$LN_S" = "ln -s"; then
4368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4369 $as_echo "yes" >&6; }
4371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4372 $as_echo "no, using $LN_S" >&6; }
4375 if test -n "$ac_tool_prefix"; then
4376 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4377 set dummy ${ac_tool_prefix}ranlib; 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; }
4380 if ${ac_cv_prog_RANLIB+:} false; then :
4381 $as_echo_n "(cached) " >&6
4383 if test -n "$RANLIB"; then
4384 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4386 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4390 test -z "$as_dir" && as_dir=.
4391 for ac_exec_ext in '' $ac_executable_extensions; do
4392 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4393 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4394 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4403 RANLIB=$ac_cv_prog_RANLIB
4404 if test -n "$RANLIB"; then
4405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
4406 $as_echo "$RANLIB" >&6; }
4408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4409 $as_echo "no" >&6; }
4414 if test -z "$ac_cv_prog_RANLIB"; then
4415 ac_ct_RANLIB=$RANLIB
4416 # Extract the first word of "ranlib", so it can be a program name with args.
4417 set dummy ranlib; ac_word=$2
4418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4419 $as_echo_n "checking for $ac_word... " >&6; }
4420 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
4421 $as_echo_n "(cached) " >&6
4423 if test -n "$ac_ct_RANLIB"; then
4424 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4426 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4430 test -z "$as_dir" && as_dir=.
4431 for ac_exec_ext in '' $ac_executable_extensions; do
4432 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4433 ac_cv_prog_ac_ct_RANLIB="ranlib"
4434 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4443 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4444 if test -n "$ac_ct_RANLIB"; then
4445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
4446 $as_echo "$ac_ct_RANLIB" >&6; }
4448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4449 $as_echo "no" >&6; }
4452 if test "x$ac_ct_RANLIB" = x; then
4455 case $cross_compiling:$ac_tool_warned in
4457 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4458 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4459 ac_tool_warned=yes ;;
4461 RANLIB=$ac_ct_RANLIB
4464 RANLIB="$ac_cv_prog_RANLIB"
4467 for ac_prog in 'bison -y' byacc
4469 # Extract the first word of "$ac_prog", so it can be a program name with args.
4470 set dummy $ac_prog; 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; }
4473 if ${ac_cv_prog_YACC+:} false; then :
4474 $as_echo_n "(cached) " >&6
4476 if test -n "$YACC"; then
4477 ac_cv_prog_YACC="$YACC" # Let the user override the test.
4479 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4483 test -z "$as_dir" && as_dir=.
4484 for ac_exec_ext in '' $ac_executable_extensions; do
4485 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4486 ac_cv_prog_YACC="$ac_prog"
4487 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4496 YACC=$ac_cv_prog_YACC
4497 if test -n "$YACC"; then
4498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
4499 $as_echo "$YACC" >&6; }
4501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4502 $as_echo "no" >&6; }
4506 test -n "$YACC" && break
4508 test -n "$YACC" || YACC="yacc"
4510 for ac_prog in gawk mawk nawk awk
4512 # Extract the first word of "$ac_prog", so it can be a program name with args.
4513 set dummy $ac_prog; ac_word=$2
4514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4515 $as_echo_n "checking for $ac_word... " >&6; }
4516 if ${ac_cv_prog_AWK+:} false; then :
4517 $as_echo_n "(cached) " >&6
4519 if test -n "$AWK"; then
4520 ac_cv_prog_AWK="$AWK" # Let the user override the test.
4522 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4526 test -z "$as_dir" && as_dir=.
4527 for ac_exec_ext in '' $ac_executable_extensions; do
4528 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4529 ac_cv_prog_AWK="$ac_prog"
4530 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4540 if test -n "$AWK"; then
4541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
4542 $as_echo "$AWK" >&6; }
4544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4545 $as_echo "no" >&6; }
4549 test -n "$AWK" && break
4553 # Extract the first word of "xml2-config", so it can be a program name with args.
4554 set dummy xml2-config; ac_word=$2
4555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4556 $as_echo_n "checking for $ac_word... " >&6; }
4557 if ${ac_cv_path_XML_CONFIG+:} false; then :
4558 $as_echo_n "(cached) " >&6
4562 ac_cv_path_XML_CONFIG="$XML_CONFIG" # Let the user override the test with a path.
4565 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4569 test -z "$as_dir" && as_dir=.
4570 for ac_exec_ext in '' $ac_executable_extensions; do
4571 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4572 ac_cv_path_XML_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4573 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4580 test -z "$ac_cv_path_XML_CONFIG" && ac_cv_path_XML_CONFIG="no"
4584 XML_CONFIG=$ac_cv_path_XML_CONFIG
4585 if test -n "$XML_CONFIG"; then
4586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XML_CONFIG" >&5
4587 $as_echo "$XML_CONFIG" >&6; }
4589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4590 $as_echo "no" >&6; }
4595 if test $XML_CONFIG = "no"
4597 echo "XML library not found (see http://xmlsoft.org/)."
4603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
4604 $as_echo_n "checking for X... " >&6; }
4607 # Check whether --with-x was given.
4608 if test "${with_x+set}" = set; then :
4612 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
4613 if test "x$with_x" = xno; then
4614 # The user explicitly disabled X.
4617 case $x_includes,$x_libraries in #(
4618 *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #(
4619 *,NONE | NONE,*) if ${ac_cv_have_x+:} false; then :
4620 $as_echo_n "(cached) " >&6
4622 # One or both of the vars are not set, and there is no cached value.
4623 ac_x_includes=no ac_x_libraries=no
4624 rm -f -r conftest.dir
4625 if mkdir conftest.dir; then
4627 cat >Imakefile <<'_ACEOF'
4629 @echo incroot='${INCROOT}'
4631 @echo usrlibdir='${USRLIBDIR}'
4633 @echo libdir='${LIBDIR}'
4635 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
4636 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
4637 for ac_var in incroot usrlibdir libdir; do
4638 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
4640 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
4641 for ac_extension in a so sl dylib la dll; do
4642 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
4643 test -f "$ac_im_libdir/libX11.$ac_extension"; then
4644 ac_im_usrlibdir=$ac_im_libdir; break
4647 # Screen out bogus values from the imake configuration. They are
4648 # bogus both because they are the default anyway, and because
4649 # using them would break gcc on systems where it needs fixed includes.
4650 case $ac_im_incroot in
4651 /usr/include) ac_x_includes= ;;
4652 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
4654 case $ac_im_usrlibdir in
4655 /usr/lib | /usr/lib64 | /lib | /lib64) ;;
4656 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
4660 rm -f -r conftest.dir
4663 # Standard set of common directories for X headers.
4664 # Check X11 before X11Rn because it is often a symlink to the current release.
4678 /usr/local/X11/include
4679 /usr/local/X11R7/include
4680 /usr/local/X11R6/include
4681 /usr/local/X11R5/include
4682 /usr/local/X11R4/include
4684 /usr/local/include/X11
4685 /usr/local/include/X11R7
4686 /usr/local/include/X11R6
4687 /usr/local/include/X11R5
4688 /usr/local/include/X11R4
4692 /usr/XFree86/include/X11
4696 /usr/unsupported/include
4698 /usr/local/x11r5/include
4699 /usr/lpp/Xamples/include
4701 /usr/openwin/include
4702 /usr/openwin/share/include'
4704 if test "$ac_x_includes" = no; then
4705 # Guess where to find include files, by looking for Xlib.h.
4706 # First, try using that file with no special directory specified.
4707 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4708 /* end confdefs.h. */
4709 #include <X11/Xlib.h>
4711 if ac_fn_c_try_cpp "$LINENO"; then :
4712 # We can compile using X headers with no special include directory.
4715 for ac_dir in $ac_x_header_dirs; do
4716 if test -r "$ac_dir/X11/Xlib.h"; then
4717 ac_x_includes=$ac_dir
4722 rm -f conftest.err conftest.i conftest.$ac_ext
4723 fi # $ac_x_includes = no
4725 if test "$ac_x_libraries" = no; then
4726 # Check for the libraries.
4727 # See if we find them without any special options.
4728 # Don't add to $LIBS permanently.
4731 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4732 /* end confdefs.h. */
4733 #include <X11/Xlib.h>
4742 if ac_fn_c_try_link "$LINENO"; then :
4744 # We can link X programs with no special library path.
4748 for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
4750 # Don't even attempt the hair of trying to link an X program!
4751 for ac_extension in a so sl dylib la dll; do
4752 if test -r "$ac_dir/libX11.$ac_extension"; then
4753 ac_x_libraries=$ac_dir
4759 rm -f core conftest.err conftest.$ac_objext \
4760 conftest$ac_exeext conftest.$ac_ext
4761 fi # $ac_x_libraries = no
4763 case $ac_x_includes,$ac_x_libraries in #(
4765 # Didn't find X, or a directory has "'" in its name.
4766 ac_cv_have_x="have_x=no";; #(
4768 # Record where we found X for the cache.
4769 ac_cv_have_x="have_x=yes\
4770 ac_x_includes='$ac_x_includes'\
4771 ac_x_libraries='$ac_x_libraries'"
4777 eval "$ac_cv_have_x"
4780 if test "$have_x" != yes; then
4781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
4782 $as_echo "$have_x" >&6; }
4785 # If each of the values was on the command line, it overrides each guess.
4786 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
4787 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
4788 # Update the cache value to reflect the command line values.
4789 ac_cv_have_x="have_x=yes\
4790 ac_x_includes='$x_includes'\
4791 ac_x_libraries='$x_libraries'"
4792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
4793 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
4796 if test "$no_x" = yes; then
4797 # Not all programs may use this symbol, but it does not hurt to define it.
4799 $as_echo "#define X_DISPLAY_MISSING 1" >>confdefs.h
4801 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
4803 if test -n "$x_includes"; then
4804 X_CFLAGS="$X_CFLAGS -I$x_includes"
4807 # It would also be nice to do this for all -L options, not just this one.
4808 if test -n "$x_libraries"; then
4809 X_LIBS="$X_LIBS -L$x_libraries"
4810 # For Solaris; some versions of Sun CC require a space after -R and
4811 # others require no space. Words are not sufficient . . . .
4812 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5
4813 $as_echo_n "checking whether -R must be followed by a space... " >&6; }
4814 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
4815 ac_xsave_c_werror_flag=$ac_c_werror_flag
4816 ac_c_werror_flag=yes
4817 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4818 /* end confdefs.h. */
4828 if ac_fn_c_try_link "$LINENO"; then :
4829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4830 $as_echo "no" >&6; }
4831 X_LIBS="$X_LIBS -R$x_libraries"
4833 LIBS="$ac_xsave_LIBS -R $x_libraries"
4834 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4835 /* end confdefs.h. */
4845 if ac_fn_c_try_link "$LINENO"; then :
4846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4847 $as_echo "yes" >&6; }
4848 X_LIBS="$X_LIBS -R $x_libraries"
4850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: neither works" >&5
4851 $as_echo "neither works" >&6; }
4853 rm -f core conftest.err conftest.$ac_objext \
4854 conftest$ac_exeext conftest.$ac_ext
4856 rm -f core conftest.err conftest.$ac_objext \
4857 conftest$ac_exeext conftest.$ac_ext
4858 ac_c_werror_flag=$ac_xsave_c_werror_flag
4862 # Check for system-dependent libraries X programs must link with.
4863 # Do this before checking for the system-independent R6 libraries
4864 # (-lICE), since we may need -lsocket or whatever for X linking.
4866 if test "$ISC" = yes; then
4867 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
4869 # Martyn Johnson says this is needed for Ultrix, if the X
4870 # libraries were built with DECnet support. And Karl Berry says
4871 # the Alpha needs dnet_stub (dnet does not exist).
4872 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
4873 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4874 /* end confdefs.h. */
4876 /* Override any GCC internal prototype to avoid an error.
4877 Use char because int might match the return type of a GCC
4878 builtin and then its argument prototype would still apply. */
4882 char XOpenDisplay ();
4886 return XOpenDisplay ();
4891 if ac_fn_c_try_link "$LINENO"; then :
4894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
4895 $as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
4896 if ${ac_cv_lib_dnet_dnet_ntoa+:} false; then :
4897 $as_echo_n "(cached) " >&6
4899 ac_check_lib_save_LIBS=$LIBS
4901 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4902 /* end confdefs.h. */
4904 /* Override any GCC internal prototype to avoid an error.
4905 Use char because int might match the return type of a GCC
4906 builtin and then its argument prototype would still apply. */
4914 return dnet_ntoa ();
4919 if ac_fn_c_try_link "$LINENO"; then :
4920 ac_cv_lib_dnet_dnet_ntoa=yes
4922 ac_cv_lib_dnet_dnet_ntoa=no
4924 rm -f core conftest.err conftest.$ac_objext \
4925 conftest$ac_exeext conftest.$ac_ext
4926 LIBS=$ac_check_lib_save_LIBS
4928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
4929 $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
4930 if test "x$ac_cv_lib_dnet_dnet_ntoa" = xyes; then :
4931 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
4934 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
4935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5
4936 $as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; }
4937 if ${ac_cv_lib_dnet_stub_dnet_ntoa+:} false; then :
4938 $as_echo_n "(cached) " >&6
4940 ac_check_lib_save_LIBS=$LIBS
4941 LIBS="-ldnet_stub $LIBS"
4942 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4943 /* end confdefs.h. */
4945 /* Override any GCC internal prototype to avoid an error.
4946 Use char because int might match the return type of a GCC
4947 builtin and then its argument prototype would still apply. */
4955 return dnet_ntoa ();
4960 if ac_fn_c_try_link "$LINENO"; then :
4961 ac_cv_lib_dnet_stub_dnet_ntoa=yes
4963 ac_cv_lib_dnet_stub_dnet_ntoa=no
4965 rm -f core conftest.err conftest.$ac_objext \
4966 conftest$ac_exeext conftest.$ac_ext
4967 LIBS=$ac_check_lib_save_LIBS
4969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
4970 $as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
4971 if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = xyes; then :
4972 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
4977 rm -f core conftest.err conftest.$ac_objext \
4978 conftest$ac_exeext conftest.$ac_ext
4979 LIBS="$ac_xsave_LIBS"
4981 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
4982 # to get the SysV transport functions.
4983 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
4985 # The nsl library prevents programs from opening the X display
4986 # on Irix 5.2, according to T.E. Dickey.
4987 # The functions gethostbyname, getservbyname, and inet_addr are
4988 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
4989 ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
4990 if test "x$ac_cv_func_gethostbyname" = xyes; then :
4994 if test $ac_cv_func_gethostbyname = no; then
4995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
4996 $as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
4997 if ${ac_cv_lib_nsl_gethostbyname+:} false; then :
4998 $as_echo_n "(cached) " >&6
5000 ac_check_lib_save_LIBS=$LIBS
5002 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5003 /* end confdefs.h. */
5005 /* Override any GCC internal prototype to avoid an error.
5006 Use char because int might match the return type of a GCC
5007 builtin and then its argument prototype would still apply. */
5011 char gethostbyname ();
5015 return gethostbyname ();
5020 if ac_fn_c_try_link "$LINENO"; then :
5021 ac_cv_lib_nsl_gethostbyname=yes
5023 ac_cv_lib_nsl_gethostbyname=no
5025 rm -f core conftest.err conftest.$ac_objext \
5026 conftest$ac_exeext conftest.$ac_ext
5027 LIBS=$ac_check_lib_save_LIBS
5029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
5030 $as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
5031 if test "x$ac_cv_lib_nsl_gethostbyname" = xyes; then :
5032 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
5035 if test $ac_cv_lib_nsl_gethostbyname = no; then
5036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5
5037 $as_echo_n "checking for gethostbyname in -lbsd... " >&6; }
5038 if ${ac_cv_lib_bsd_gethostbyname+:} false; then :
5039 $as_echo_n "(cached) " >&6
5041 ac_check_lib_save_LIBS=$LIBS
5043 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5044 /* end confdefs.h. */
5046 /* Override any GCC internal prototype to avoid an error.
5047 Use char because int might match the return type of a GCC
5048 builtin and then its argument prototype would still apply. */
5052 char gethostbyname ();
5056 return gethostbyname ();
5061 if ac_fn_c_try_link "$LINENO"; then :
5062 ac_cv_lib_bsd_gethostbyname=yes
5064 ac_cv_lib_bsd_gethostbyname=no
5066 rm -f core conftest.err conftest.$ac_objext \
5067 conftest$ac_exeext conftest.$ac_ext
5068 LIBS=$ac_check_lib_save_LIBS
5070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5
5071 $as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; }
5072 if test "x$ac_cv_lib_bsd_gethostbyname" = xyes; then :
5073 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
5079 # lieder@skyler.mavd.honeywell.com says without -lsocket,
5080 # socket/setsockopt and other routines are undefined under SCO ODT
5081 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
5082 # on later versions), says Simon Leinen: it contains gethostby*
5083 # variants that don't use the name server (or something). -lsocket
5084 # must be given before -lnsl if both are needed. We assume that
5085 # if connect needs -lnsl, so does gethostbyname.
5086 ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
5087 if test "x$ac_cv_func_connect" = xyes; then :
5091 if test $ac_cv_func_connect = no; then
5092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5
5093 $as_echo_n "checking for connect in -lsocket... " >&6; }
5094 if ${ac_cv_lib_socket_connect+:} false; then :
5095 $as_echo_n "(cached) " >&6
5097 ac_check_lib_save_LIBS=$LIBS
5098 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
5099 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5100 /* end confdefs.h. */
5102 /* Override any GCC internal prototype to avoid an error.
5103 Use char because int might match the return type of a GCC
5104 builtin and then its argument prototype would still apply. */
5117 if ac_fn_c_try_link "$LINENO"; then :
5118 ac_cv_lib_socket_connect=yes
5120 ac_cv_lib_socket_connect=no
5122 rm -f core conftest.err conftest.$ac_objext \
5123 conftest$ac_exeext conftest.$ac_ext
5124 LIBS=$ac_check_lib_save_LIBS
5126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5
5127 $as_echo "$ac_cv_lib_socket_connect" >&6; }
5128 if test "x$ac_cv_lib_socket_connect" = xyes; then :
5129 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
5134 # Guillermo Gomez says -lposix is necessary on A/UX.
5135 ac_fn_c_check_func "$LINENO" "remove" "ac_cv_func_remove"
5136 if test "x$ac_cv_func_remove" = xyes; then :
5140 if test $ac_cv_func_remove = no; then
5141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5
5142 $as_echo_n "checking for remove in -lposix... " >&6; }
5143 if ${ac_cv_lib_posix_remove+:} false; then :
5144 $as_echo_n "(cached) " >&6
5146 ac_check_lib_save_LIBS=$LIBS
5147 LIBS="-lposix $LIBS"
5148 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5149 /* end confdefs.h. */
5151 /* Override any GCC internal prototype to avoid an error.
5152 Use char because int might match the return type of a GCC
5153 builtin and then its argument prototype would still apply. */
5166 if ac_fn_c_try_link "$LINENO"; then :
5167 ac_cv_lib_posix_remove=yes
5169 ac_cv_lib_posix_remove=no
5171 rm -f core conftest.err conftest.$ac_objext \
5172 conftest$ac_exeext conftest.$ac_ext
5173 LIBS=$ac_check_lib_save_LIBS
5175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5
5176 $as_echo "$ac_cv_lib_posix_remove" >&6; }
5177 if test "x$ac_cv_lib_posix_remove" = xyes; then :
5178 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
5183 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
5184 ac_fn_c_check_func "$LINENO" "shmat" "ac_cv_func_shmat"
5185 if test "x$ac_cv_func_shmat" = xyes; then :
5189 if test $ac_cv_func_shmat = no; then
5190 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5
5191 $as_echo_n "checking for shmat in -lipc... " >&6; }
5192 if ${ac_cv_lib_ipc_shmat+:} false; then :
5193 $as_echo_n "(cached) " >&6
5195 ac_check_lib_save_LIBS=$LIBS
5197 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5198 /* end confdefs.h. */
5200 /* Override any GCC internal prototype to avoid an error.
5201 Use char because int might match the return type of a GCC
5202 builtin and then its argument prototype would still apply. */
5215 if ac_fn_c_try_link "$LINENO"; then :
5216 ac_cv_lib_ipc_shmat=yes
5218 ac_cv_lib_ipc_shmat=no
5220 rm -f core conftest.err conftest.$ac_objext \
5221 conftest$ac_exeext conftest.$ac_ext
5222 LIBS=$ac_check_lib_save_LIBS
5224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5
5225 $as_echo "$ac_cv_lib_ipc_shmat" >&6; }
5226 if test "x$ac_cv_lib_ipc_shmat" = xyes; then :
5227 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
5233 # Check for libraries that X11R6 Xt/Xaw programs need.
5234 ac_save_LDFLAGS=$LDFLAGS
5235 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
5236 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
5237 # check for ICE first), but we must link in the order -lSM -lICE or
5238 # we get undefined symbols. So assume we have SM if we have ICE.
5239 # These have to be linked with before -lX11, unlike the other
5240 # libraries we check for below, so use a different variable.
5241 # John Interrante, Karl Berry
5242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5
5243 $as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; }
5244 if ${ac_cv_lib_ICE_IceConnectionNumber+:} false; then :
5245 $as_echo_n "(cached) " >&6
5247 ac_check_lib_save_LIBS=$LIBS
5248 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
5249 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5250 /* end confdefs.h. */
5252 /* Override any GCC internal prototype to avoid an error.
5253 Use char because int might match the return type of a GCC
5254 builtin and then its argument prototype would still apply. */
5258 char IceConnectionNumber ();
5262 return IceConnectionNumber ();
5267 if ac_fn_c_try_link "$LINENO"; then :
5268 ac_cv_lib_ICE_IceConnectionNumber=yes
5270 ac_cv_lib_ICE_IceConnectionNumber=no
5272 rm -f core conftest.err conftest.$ac_objext \
5273 conftest$ac_exeext conftest.$ac_ext
5274 LIBS=$ac_check_lib_save_LIBS
5276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
5277 $as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
5278 if test "x$ac_cv_lib_ICE_IceConnectionNumber" = xyes; then :
5279 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
5282 LDFLAGS=$ac_save_LDFLAGS
5287 XML_CFLAGS=`$XML_CONFIG --cflags`
5288 XML_LFLAGS=`$XML_CONFIG --libs`
5290 LIBS="$LIBS $X_LIBS $X_PRE_LIBS -lX11 $X_EXTRA_LIBS"
5291 LDFLAGS="$LDFLAGS -L/usr/local/lib $XML_LFLAGS"
5292 CFLAGS="$CFLAGS $X_CFLAGS $XML_CFLAGS"
5293 CXXFLAGS="$CXXFLAGS $X_CFLAGS $XML_CFLAGS"
5295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XOpenDisplay in -lX11" >&5
5296 $as_echo_n "checking for XOpenDisplay in -lX11... " >&6; }
5297 if ${ac_cv_lib_X11_XOpenDisplay+:} false; then :
5298 $as_echo_n "(cached) " >&6
5300 ac_check_lib_save_LIBS=$LIBS
5302 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5303 /* end confdefs.h. */
5305 /* Override any GCC internal prototype to avoid an error.
5306 Use char because int might match the return type of a GCC
5307 builtin and then its argument prototype would still apply. */
5311 char XOpenDisplay ();
5315 return XOpenDisplay ();
5320 if ac_fn_c_try_link "$LINENO"; then :
5321 ac_cv_lib_X11_XOpenDisplay=yes
5323 ac_cv_lib_X11_XOpenDisplay=no
5325 rm -f core conftest.err conftest.$ac_objext \
5326 conftest$ac_exeext conftest.$ac_ext
5327 LIBS=$ac_check_lib_save_LIBS
5329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_X11_XOpenDisplay" >&5
5330 $as_echo "$ac_cv_lib_X11_XOpenDisplay" >&6; }
5331 if test "x$ac_cv_lib_X11_XOpenDisplay" = xyes; then :
5332 cat >>confdefs.h <<_ACEOF
5333 #define HAVE_LIBX11 1
5340 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpmCreatePixmapFromData in -lXpm" >&5
5341 $as_echo_n "checking for XpmCreatePixmapFromData in -lXpm... " >&6; }
5342 if ${ac_cv_lib_Xpm_XpmCreatePixmapFromData+:} false; then :
5343 $as_echo_n "(cached) " >&6
5345 ac_check_lib_save_LIBS=$LIBS
5347 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5348 /* end confdefs.h. */
5350 /* Override any GCC internal prototype to avoid an error.
5351 Use char because int might match the return type of a GCC
5352 builtin and then its argument prototype would still apply. */
5356 char XpmCreatePixmapFromData ();
5360 return XpmCreatePixmapFromData ();
5365 if ac_fn_c_try_link "$LINENO"; then :
5366 ac_cv_lib_Xpm_XpmCreatePixmapFromData=yes
5368 ac_cv_lib_Xpm_XpmCreatePixmapFromData=no
5370 rm -f core conftest.err conftest.$ac_objext \
5371 conftest$ac_exeext conftest.$ac_ext
5372 LIBS=$ac_check_lib_save_LIBS
5374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xpm_XpmCreatePixmapFromData" >&5
5375 $as_echo "$ac_cv_lib_Xpm_XpmCreatePixmapFromData" >&6; }
5376 if test "x$ac_cv_lib_Xpm_XpmCreatePixmapFromData" = xyes; then :
5377 cat >>confdefs.h <<_ACEOF
5378 #define HAVE_LIBXPM 1
5385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthread" >&5
5386 $as_echo_n "checking for pthread_create in -lpthread... " >&6; }
5387 if ${ac_cv_lib_pthread_pthread_create+:} false; then :
5388 $as_echo_n "(cached) " >&6
5390 ac_check_lib_save_LIBS=$LIBS
5391 LIBS="-lpthread $LIBS"
5392 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5393 /* end confdefs.h. */
5395 /* Override any GCC internal prototype to avoid an error.
5396 Use char because int might match the return type of a GCC
5397 builtin and then its argument prototype would still apply. */
5401 char pthread_create ();
5405 return pthread_create ();
5410 if ac_fn_c_try_link "$LINENO"; then :
5411 ac_cv_lib_pthread_pthread_create=yes
5413 ac_cv_lib_pthread_pthread_create=no
5415 rm -f core conftest.err conftest.$ac_objext \
5416 conftest$ac_exeext conftest.$ac_ext
5417 LIBS=$ac_check_lib_save_LIBS
5419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_create" >&5
5420 $as_echo "$ac_cv_lib_pthread_pthread_create" >&6; }
5421 if test "x$ac_cv_lib_pthread_pthread_create" = xyes; then :
5422 cat >>confdefs.h <<_ACEOF
5423 #define HAVE_LIBPTHREAD 1
5426 LIBS="-lpthread $LIBS"
5430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlParseFile in -lxml2" >&5
5431 $as_echo_n "checking for xmlParseFile in -lxml2... " >&6; }
5432 if ${ac_cv_lib_xml2_xmlParseFile+:} false; then :
5433 $as_echo_n "(cached) " >&6
5435 ac_check_lib_save_LIBS=$LIBS
5437 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5438 /* end confdefs.h. */
5440 /* Override any GCC internal prototype to avoid an error.
5441 Use char because int might match the return type of a GCC
5442 builtin and then its argument prototype would still apply. */
5446 char xmlParseFile ();
5450 return xmlParseFile ();
5455 if ac_fn_c_try_link "$LINENO"; then :
5456 ac_cv_lib_xml2_xmlParseFile=yes
5458 ac_cv_lib_xml2_xmlParseFile=no
5460 rm -f core conftest.err conftest.$ac_objext \
5461 conftest$ac_exeext conftest.$ac_ext
5462 LIBS=$ac_check_lib_save_LIBS
5464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlParseFile" >&5
5465 $as_echo "$ac_cv_lib_xml2_xmlParseFile" >&6; }
5466 if test "x$ac_cv_lib_xml2_xmlParseFile" = xyes; then :
5467 cat >>confdefs.h <<_ACEOF
5468 #define HAVE_LIBXML2 1
5477 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
5478 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
5479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
5480 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
5481 if eval \${$as_ac_Header+:} false; then :
5482 $as_echo_n "(cached) " >&6
5484 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5485 /* end confdefs.h. */
5486 #include <sys/types.h>
5498 if ac_fn_c_try_compile "$LINENO"; then :
5499 eval "$as_ac_Header=yes"
5501 eval "$as_ac_Header=no"
5503 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5505 eval ac_res=\$$as_ac_Header
5506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
5507 $as_echo "$ac_res" >&6; }
5508 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5509 cat >>confdefs.h <<_ACEOF
5510 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
5513 ac_header_dirent=$ac_hdr; break
5517 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
5518 if test $ac_header_dirent = dirent.h; then
5519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
5520 $as_echo_n "checking for library containing opendir... " >&6; }
5521 if ${ac_cv_search_opendir+:} false; then :
5522 $as_echo_n "(cached) " >&6
5524 ac_func_search_save_LIBS=$LIBS
5525 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5526 /* end confdefs.h. */
5528 /* Override any GCC internal prototype to avoid an error.
5529 Use char because int might match the return type of a GCC
5530 builtin and then its argument prototype would still apply. */
5543 for ac_lib in '' dir; do
5544 if test -z "$ac_lib"; then
5545 ac_res="none required"
5548 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5550 if ac_fn_c_try_link "$LINENO"; then :
5551 ac_cv_search_opendir=$ac_res
5553 rm -f core conftest.err conftest.$ac_objext \
5555 if ${ac_cv_search_opendir+:} false; then :
5559 if ${ac_cv_search_opendir+:} false; then :
5562 ac_cv_search_opendir=no
5565 LIBS=$ac_func_search_save_LIBS
5567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
5568 $as_echo "$ac_cv_search_opendir" >&6; }
5569 ac_res=$ac_cv_search_opendir
5570 if test "$ac_res" != no; then :
5571 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
5576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
5577 $as_echo_n "checking for library containing opendir... " >&6; }
5578 if ${ac_cv_search_opendir+:} false; then :
5579 $as_echo_n "(cached) " >&6
5581 ac_func_search_save_LIBS=$LIBS
5582 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5583 /* end confdefs.h. */
5585 /* Override any GCC internal prototype to avoid an error.
5586 Use char because int might match the return type of a GCC
5587 builtin and then its argument prototype would still apply. */
5600 for ac_lib in '' x; do
5601 if test -z "$ac_lib"; then
5602 ac_res="none required"
5605 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5607 if ac_fn_c_try_link "$LINENO"; then :
5608 ac_cv_search_opendir=$ac_res
5610 rm -f core conftest.err conftest.$ac_objext \
5612 if ${ac_cv_search_opendir+:} false; then :
5616 if ${ac_cv_search_opendir+:} false; then :
5619 ac_cv_search_opendir=no
5622 LIBS=$ac_func_search_save_LIBS
5624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
5625 $as_echo "$ac_cv_search_opendir" >&6; }
5626 ac_res=$ac_cv_search_opendir
5627 if test "$ac_res" != no; then :
5628 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
5634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5635 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5636 if ${ac_cv_path_GREP+:} false; then :
5637 $as_echo_n "(cached) " >&6
5639 if test -z "$GREP"; then
5640 ac_path_GREP_found=false
5641 # Loop through the user's path and test for each of PROGNAME-LIST
5642 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5643 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5646 test -z "$as_dir" && as_dir=.
5647 for ac_prog in grep ggrep; do
5648 for ac_exec_ext in '' $ac_executable_extensions; do
5649 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5650 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5651 # Check for GNU ac_path_GREP and select it if it is found.
5652 # Check for GNU $ac_path_GREP
5653 case `"$ac_path_GREP" --version 2>&1` in
5655 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5658 $as_echo_n 0123456789 >"conftest.in"
5661 cat "conftest.in" "conftest.in" >"conftest.tmp"
5662 mv "conftest.tmp" "conftest.in"
5663 cp "conftest.in" "conftest.nl"
5664 $as_echo 'GREP' >> "conftest.nl"
5665 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5666 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5667 as_fn_arith $ac_count + 1 && ac_count=$as_val
5668 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5669 # Best one so far, save it but keep looking for a better one
5670 ac_cv_path_GREP="$ac_path_GREP"
5671 ac_path_GREP_max=$ac_count
5673 # 10*(2^10) chars as input seems more than enough
5674 test $ac_count -gt 10 && break
5676 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5679 $ac_path_GREP_found && break 3
5684 if test -z "$ac_cv_path_GREP"; then
5685 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5688 ac_cv_path_GREP=$GREP
5692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5693 $as_echo "$ac_cv_path_GREP" >&6; }
5694 GREP="$ac_cv_path_GREP"
5697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5698 $as_echo_n "checking for egrep... " >&6; }
5699 if ${ac_cv_path_EGREP+:} false; then :
5700 $as_echo_n "(cached) " >&6
5702 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5703 then ac_cv_path_EGREP="$GREP -E"
5705 if test -z "$EGREP"; then
5706 ac_path_EGREP_found=false
5707 # Loop through the user's path and test for each of PROGNAME-LIST
5708 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5709 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5712 test -z "$as_dir" && as_dir=.
5713 for ac_prog in egrep; do
5714 for ac_exec_ext in '' $ac_executable_extensions; do
5715 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5716 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
5717 # Check for GNU ac_path_EGREP and select it if it is found.
5718 # Check for GNU $ac_path_EGREP
5719 case `"$ac_path_EGREP" --version 2>&1` in
5721 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5724 $as_echo_n 0123456789 >"conftest.in"
5727 cat "conftest.in" "conftest.in" >"conftest.tmp"
5728 mv "conftest.tmp" "conftest.in"
5729 cp "conftest.in" "conftest.nl"
5730 $as_echo 'EGREP' >> "conftest.nl"
5731 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5732 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5733 as_fn_arith $ac_count + 1 && ac_count=$as_val
5734 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5735 # Best one so far, save it but keep looking for a better one
5736 ac_cv_path_EGREP="$ac_path_EGREP"
5737 ac_path_EGREP_max=$ac_count
5739 # 10*(2^10) chars as input seems more than enough
5740 test $ac_count -gt 10 && break
5742 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5745 $ac_path_EGREP_found && break 3
5750 if test -z "$ac_cv_path_EGREP"; then
5751 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5754 ac_cv_path_EGREP=$EGREP
5759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5760 $as_echo "$ac_cv_path_EGREP" >&6; }
5761 EGREP="$ac_cv_path_EGREP"
5764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5765 $as_echo_n "checking for ANSI C header files... " >&6; }
5766 if ${ac_cv_header_stdc+:} false; then :
5767 $as_echo_n "(cached) " >&6
5769 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5770 /* end confdefs.h. */
5784 if ac_fn_c_try_compile "$LINENO"; then :
5785 ac_cv_header_stdc=yes
5787 ac_cv_header_stdc=no
5789 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5791 if test $ac_cv_header_stdc = yes; then
5792 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5793 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5794 /* end confdefs.h. */
5798 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5799 $EGREP "memchr" >/dev/null 2>&1; then :
5802 ac_cv_header_stdc=no
5808 if test $ac_cv_header_stdc = yes; then
5809 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5810 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5811 /* end confdefs.h. */
5815 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5816 $EGREP "free" >/dev/null 2>&1; then :
5819 ac_cv_header_stdc=no
5825 if test $ac_cv_header_stdc = yes; then
5826 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5827 if test "$cross_compiling" = yes; then :
5830 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5831 /* end confdefs.h. */
5834 #if ((' ' & 0x0FF) == 0x020)
5835 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5836 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5838 # define ISLOWER(c) \
5839 (('a' <= (c) && (c) <= 'i') \
5840 || ('j' <= (c) && (c) <= 'r') \
5841 || ('s' <= (c) && (c) <= 'z'))
5842 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5845 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5850 for (i = 0; i < 256; i++)
5851 if (XOR (islower (i), ISLOWER (i))
5852 || toupper (i) != TOUPPER (i))
5857 if ac_fn_c_try_run "$LINENO"; then :
5860 ac_cv_header_stdc=no
5862 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5863 conftest.$ac_objext conftest.beam conftest.$ac_ext
5868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5869 $as_echo "$ac_cv_header_stdc" >&6; }
5870 if test $ac_cv_header_stdc = yes; then
5872 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
5876 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5877 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5878 inttypes.h stdint.h unistd.h
5880 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5881 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5883 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5884 cat >>confdefs.h <<_ACEOF
5885 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5893 for ac_header in unistd.h
5895 ac_fn_c_check_header_mongrel "$LINENO" "unistd.h" "ac_cv_header_unistd_h" "$ac_includes_default"
5896 if test "x$ac_cv_header_unistd_h" = xyes; then :
5897 cat >>confdefs.h <<_ACEOF
5898 #define HAVE_UNISTD_H 1
5906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
5907 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
5908 if ${ac_cv_c_const+:} false; then :
5909 $as_echo_n "(cached) " >&6
5911 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5912 /* end confdefs.h. */
5917 /* FIXME: Include the comments suggested by Paul. */
5919 /* Ultrix mips cc rejects this. */
5920 typedef int charset[2];
5922 /* SunOS 4.1.1 cc rejects this. */
5923 char const *const *pcpcc;
5925 /* NEC SVR4.0.2 mips cc rejects this. */
5926 struct point {int x, y;};
5927 static struct point const zero = {0,0};
5928 /* AIX XL C 1.02.0.0 rejects this.
5929 It does not let you subtract one const X* pointer from another in
5930 an arm of an if-expression whose if-part is not a constant
5932 const char *g = "string";
5933 pcpcc = &g + (g ? g-g : 0);
5934 /* HPUX 7.0 cc rejects these. */
5936 ppc = (char**) pcpcc;
5937 pcpcc = (char const *const *) ppc;
5938 { /* SCO 3.2v4 cc rejects this. */
5940 char const *s = 0 ? (char *) 0 : (char const *) 0;
5945 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
5947 const int *foo = &x[0];
5950 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
5951 typedef const int *iptr;
5955 { /* AIX XL C 1.02.0.0 rejects this saying
5956 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
5957 struct s { int j; const int *ap[3]; };
5958 struct s *b; b->j = 5;
5960 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
5964 return !cs[0] && !zero.x;
5971 if ac_fn_c_try_compile "$LINENO"; then :
5976 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
5979 $as_echo "$ac_cv_c_const" >&6; }
5980 if test $ac_cv_c_const = no; then
5982 $as_echo "#define const /**/" >>confdefs.h
5987 for ac_func in strtod strtol strtoul
5989 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
5990 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
5991 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
5992 cat >>confdefs.h <<_ACEOF
5993 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
6000 ac_config_files="$ac_config_files Makefile src/Makefile demos/Makefile"
6002 cat >confcache <<\_ACEOF
6003 # This file is a shell script that caches the results of configure
6004 # tests run on this system so they can be shared between configure
6005 # scripts and configure runs, see configure's option --config-cache.
6006 # It is not useful on other systems. If it contains results you don't
6007 # want to keep, you may remove or edit it.
6009 # config.status only pays attention to the cache file if you give it
6010 # the --recheck option to rerun configure.
6012 # `ac_cv_env_foo' variables (set or unset) will be overridden when
6013 # loading this file, other *unset* `ac_cv_foo' will be assigned the
6018 # The following way of writing the cache mishandles newlines in values,
6019 # but we know of no workaround that is simple, portable, and efficient.
6020 # So, we kill variables containing newlines.
6021 # Ultrix sh set writes to stderr and can't be redirected directly,
6022 # and sets the high bit in the cache file unless we assign to the vars.
6024 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
6025 eval ac_val=\$$ac_var
6029 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
6030 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
6033 _ | IFS | as_nl) ;; #(
6034 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
6035 *) { eval $ac_var=; unset $ac_var;} ;;
6041 case $as_nl`(ac_space=' '; set) 2>&1` in #(
6042 *${as_nl}ac_space=\ *)
6043 # `set' does not quote correctly, so add quotes: double-quote
6044 # substitution turns \\\\ into \\, and sed turns \\ into \.
6047 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
6050 # `set' quotes correctly as required by POSIX, so do not add quotes.
6051 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
6060 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
6062 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
6064 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
6065 if test -w "$cache_file"; then
6066 if test "x$cache_file" != "x/dev/null"; then
6067 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
6068 $as_echo "$as_me: updating cache $cache_file" >&6;}
6069 if test ! -f "$cache_file" || test -h "$cache_file"; then
6070 cat confcache >"$cache_file"
6072 case $cache_file in #(
6074 mv -f confcache "$cache_file"$$ &&
6075 mv -f "$cache_file"$$ "$cache_file" ;; #(
6077 mv -f confcache "$cache_file" ;;
6082 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
6083 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
6088 test "x$prefix" = xNONE && prefix=$ac_default_prefix
6089 # Let make expand exec_prefix.
6090 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
6092 # Transform confdefs.h into DEFS.
6093 # Protect against shell expansion while executing Makefile rules.
6094 # Protect against Makefile macro expansion.
6096 # If the first sed substitution is executed (which looks for macros that
6097 # take arguments), then branch to the quote section. Otherwise,
6098 # look for a macro that doesn't take arguments.
6108 s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
6110 s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
6114 s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
6127 DEFS=`sed -n "$ac_script" confdefs.h`
6133 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
6134 # 1. Remove the extension, and $U if already installed.
6135 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
6136 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
6137 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
6138 # will be set to the directory where LIBOBJS objects are built.
6139 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
6140 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
6144 LTLIBOBJS=$ac_ltlibobjs
6147 if test -n "$EXEEXT"; then
6149 am__EXEEXT_FALSE='#'
6155 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
6156 as_fn_error $? "conditional \"AMDEP\" was never defined.
6157 Usually this means the macro was only invoked conditionally." "$LINENO" 5
6159 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
6160 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
6161 Usually this means the macro was only invoked conditionally." "$LINENO" 5
6163 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
6164 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
6165 Usually this means the macro was only invoked conditionally." "$LINENO" 5
6168 : "${CONFIG_STATUS=./config.status}"
6170 ac_clean_files_save=$ac_clean_files
6171 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
6172 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
6173 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
6175 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
6177 # Generated by $as_me.
6178 # Run this file to recreate the current configuration.
6179 # Compiler output produced by configure, useful for debugging
6180 # configure, is in config.log if it exists.
6186 SHELL=\${CONFIG_SHELL-$SHELL}
6189 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
6190 ## -------------------- ##
6191 ## M4sh Initialization. ##
6192 ## -------------------- ##
6194 # Be more Bourne compatible
6195 DUALCASE=1; export DUALCASE # for MKS sh
6196 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
6199 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
6200 # is contrary to our usage. Disable this feature.
6201 alias -g '${1+"$@"}'='"$@"'
6202 setopt NO_GLOB_SUBST
6204 case `(set -o) 2>/dev/null` in #(
6216 # Printing a long string crashes Solaris 7 /usr/bin/printf.
6217 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
6218 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
6219 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
6220 # Prefer a ksh shell builtin over an external printf program on Solaris,
6221 # but without wasting forks for bash or zsh.
6222 if test -z "$BASH_VERSION$ZSH_VERSION" \
6223 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
6224 as_echo='print -r --'
6225 as_echo_n='print -rn --'
6226 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
6227 as_echo='printf %s\n'
6228 as_echo_n='printf %s'
6230 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
6231 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
6232 as_echo_n='/usr/ucb/echo -n'
6234 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
6235 as_echo_n_body='eval
6239 expr "X$arg" : "X\\(.*\\)$as_nl";
6240 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
6242 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
6244 export as_echo_n_body
6245 as_echo_n='sh -c $as_echo_n_body as_echo'
6248 as_echo='sh -c $as_echo_body as_echo'
6251 # The user is always right.
6252 if test "${PATH_SEPARATOR+set}" != set; then
6254 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
6255 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
6262 # We need space, tab and new line, in precisely that order. Quoting is
6263 # there to prevent editors from complaining about space-tab.
6264 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
6265 # splitting by setting IFS to empty value.)
6268 # Find who we are. Look in the path if we contain no directory separator.
6271 *[\\/]* ) as_myself=$0 ;;
6272 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6276 test -z "$as_dir" && as_dir=.
6277 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
6283 # We did not find ourselves, most probably we were run as `sh COMMAND'
6284 # in which case we are not to be found in the path.
6285 if test "x$as_myself" = x; then
6288 if test ! -f "$as_myself"; then
6289 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
6293 # Unset variables that we do not need and which cause bugs (e.g. in
6294 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
6295 # suppresses any "Segmentation fault" message there. '((' could
6296 # trigger a bug in pdksh 5.2.14.
6297 for as_var in BASH_ENV ENV MAIL MAILPATH
6298 do eval test x\${$as_var+set} = xset \
6299 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
6312 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
6315 # as_fn_error STATUS ERROR [LINENO LOG_FD]
6316 # ----------------------------------------
6317 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
6318 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
6319 # script with STATUS, using 1 if that was 0.
6322 as_status=$1; test $as_status -eq 0 && as_status=1
6324 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
6325 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
6327 $as_echo "$as_me: error: $2" >&2
6328 as_fn_exit $as_status
6332 # as_fn_set_status STATUS
6333 # -----------------------
6334 # Set $? to STATUS, without forking.
6338 } # as_fn_set_status
6342 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
6352 # Portably unset VAR.
6355 { eval $1=; unset $1;}
6357 as_unset=as_fn_unset
6358 # as_fn_append VAR VALUE
6359 # ----------------------
6360 # Append the text in VALUE to the end of the definition contained in VAR. Take
6361 # advantage of any shell optimizations that allow amortized linear growth over
6362 # repeated appends, instead of the typical quadratic growth present in naive
6364 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
6365 eval 'as_fn_append ()
6376 # as_fn_arith ARG...
6377 # ------------------
6378 # Perform arithmetic evaluation on the ARGs, and store the result in the
6379 # global $as_val. Take advantage of shells that can avoid forks. The arguments
6380 # must be portable across $(()) and expr.
6381 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
6382 eval 'as_fn_arith ()
6389 as_val=`expr "$@" || test $? -eq 1`
6394 if expr a : '\(a\)' >/dev/null 2>&1 &&
6395 test "X`expr 00001 : '.*\(...\)'`" = X001; then
6401 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
6402 as_basename=basename
6407 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
6413 as_me=`$as_basename -- "$0" ||
6414 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
6415 X"$0" : 'X\(//\)$' \| \
6416 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
6418 sed '/^.*\/\([^/][^/]*\)\/*$/{
6432 # Avoid depending upon Character Ranges.
6433 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
6434 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
6435 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
6436 as_cr_digits='0123456789'
6437 as_cr_alnum=$as_cr_Letters$as_cr_digits
6439 ECHO_C= ECHO_N= ECHO_T=
6440 case `echo -n x` in #(((((
6442 case `echo 'xy\c'` in
6443 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
6445 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
6452 rm -f conf$$ conf$$.exe conf$$.file
6453 if test -d conf$$.dir; then
6454 rm -f conf$$.dir/conf$$.file
6457 mkdir conf$$.dir 2>/dev/null
6459 if (echo >conf$$.file) 2>/dev/null; then
6460 if ln -s conf$$.file conf$$ 2>/dev/null; then
6462 # ... but there are two gotchas:
6463 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
6464 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
6465 # In both cases, we have to default to `cp -p'.
6466 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
6468 elif ln conf$$.file conf$$ 2>/dev/null; then
6476 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
6477 rmdir conf$$.dir 2>/dev/null
6482 # Create "$as_dir" as a directory, including parents if necessary.
6487 -*) as_dir=./$as_dir;;
6489 test -d "$as_dir" || eval $as_mkdir_p || {
6493 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
6494 *) as_qdir=$as_dir;;
6496 as_dirs="'$as_qdir' $as_dirs"
6497 as_dir=`$as_dirname -- "$as_dir" ||
6498 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6499 X"$as_dir" : 'X\(//\)[^/]' \| \
6500 X"$as_dir" : 'X\(//\)$' \| \
6501 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
6502 $as_echo X"$as_dir" |
6503 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
6520 test -d "$as_dir" && break
6522 test -z "$as_dirs" || eval "mkdir $as_dirs"
6523 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
6527 if mkdir -p . 2>/dev/null; then
6528 as_mkdir_p='mkdir -p "$as_dir"'
6530 test -d ./-p && rmdir ./-p
6534 if test -x / >/dev/null 2>&1; then
6537 if ls -dL / >/dev/null 2>&1; then
6544 if test -d "$1"; then
6550 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
6551 ???[sx]*):;;*)false;;esac;fi
6555 as_executable_p=$as_test_x
6557 # Sed expression to map a string onto a valid CPP name.
6558 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
6560 # Sed expression to map a string onto a valid variable name.
6561 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
6565 ## ----------------------------------- ##
6566 ## Main body of $CONFIG_STATUS script. ##
6567 ## ----------------------------------- ##
6569 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
6571 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6572 # Save the log message, to keep $0 and so on meaningful, and to
6573 # report actual input values of CONFIG_FILES etc. instead of their
6574 # values after options handling.
6576 This file was extended by $as_me, which was
6577 generated by GNU Autoconf 2.68. Invocation command line was
6579 CONFIG_FILES = $CONFIG_FILES
6580 CONFIG_HEADERS = $CONFIG_HEADERS
6581 CONFIG_LINKS = $CONFIG_LINKS
6582 CONFIG_COMMANDS = $CONFIG_COMMANDS
6585 on `(hostname || uname -n) 2>/dev/null | sed 1q`
6590 case $ac_config_files in *"
6591 "*) set x $ac_config_files; shift; ac_config_files=$*;;
6596 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6597 # Files that config.status was made for.
6598 config_files="$ac_config_files"
6599 config_commands="$ac_config_commands"
6603 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6605 \`$as_me' instantiates files and other configuration actions
6606 from templates according to the current configuration. Unless the files
6607 and actions are specified as TAGs, all are instantiated by default.
6609 Usage: $0 [OPTION]... [TAG]...
6611 -h, --help print this help, then exit
6612 -V, --version print version number and configuration settings, then exit
6613 --config print configuration, then exit
6614 -q, --quiet, --silent
6615 do not print progress messages
6616 -d, --debug don't remove temporary files
6617 --recheck update $as_me by reconfiguring in the same conditions
6618 --file=FILE[:TEMPLATE]
6619 instantiate the configuration file FILE
6621 Configuration files:
6624 Configuration commands:
6627 Report bugs to the package provider."
6630 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6631 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
6634 configured by $0, generated by GNU Autoconf 2.68,
6635 with options \\"\$ac_cs_config\\"
6637 Copyright (C) 2010 Free Software Foundation, Inc.
6638 This config.status script is free software; the Free Software Foundation
6639 gives unlimited permission to copy, distribute and modify it."
6646 test -n "\$AWK" || AWK=awk
6649 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6650 # The default lists apply if the user does not specify any file.
6656 ac_option=`expr "X$1" : 'X\([^=]*\)='`
6657 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
6661 ac_option=`expr "X$1" : 'X\([^=]*\)='`
6673 # Handling of the options.
6674 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
6676 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
6677 $as_echo "$ac_cs_version"; exit ;;
6678 --config | --confi | --conf | --con | --co | --c )
6679 $as_echo "$ac_cs_config"; exit ;;
6680 --debug | --debu | --deb | --de | --d | -d )
6682 --file | --fil | --fi | --f )
6685 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
6686 '') as_fn_error $? "missing file argument" ;;
6688 as_fn_append CONFIG_FILES " '$ac_optarg'"
6689 ac_need_defaults=false;;
6690 --he | --h | --help | --hel | -h )
6691 $as_echo "$ac_cs_usage"; exit ;;
6692 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
6693 | -silent | --silent | --silen | --sile | --sil | --si | --s)
6697 -*) as_fn_error $? "unrecognized option: \`$1'
6698 Try \`$0 --help' for more information." ;;
6700 *) as_fn_append ac_config_targets " $1"
6701 ac_need_defaults=false ;;
6707 ac_configure_extra_args=
6709 if $ac_cs_silent; then
6711 ac_configure_extra_args="$ac_configure_extra_args --silent"
6715 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6716 if \$ac_cs_recheck; then
6717 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
6719 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
6720 CONFIG_SHELL='$SHELL'
6726 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6730 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
6731 ## Running $as_me. ##
6737 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6741 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
6745 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6747 # Handling of arguments.
6748 for ac_config_target in $ac_config_targets
6750 case $ac_config_target in
6751 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
6752 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
6753 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
6754 "demos/Makefile") CONFIG_FILES="$CONFIG_FILES demos/Makefile" ;;
6756 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
6761 # If the user did not use the arguments to specify the items to instantiate,
6762 # then the envvar interface is used. Set only those that are not.
6763 # We use the long form for the default assignment because of an extremely
6764 # bizarre bug on SunOS 4.1.3.
6765 if $ac_need_defaults; then
6766 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
6767 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
6770 # Have a temporary directory for convenience. Make it in the build tree
6771 # simply because there is no reason against having it here, and in addition,
6772 # creating and moving files from /tmp can sometimes cause problems.
6773 # Hook for its removal unless debugging.
6774 # Note that there is a small window in which the directory will not be cleaned:
6775 # after its creation but before its name has been assigned to `$tmp'.
6779 trap 'exit_status=$?
6781 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
6783 trap 'as_fn_exit 1' 1 2 13 15
6785 # Create a (secure) tmp directory for tmp files.
6788 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
6792 tmp=./conf$$-$RANDOM
6793 (umask 077 && mkdir "$tmp")
6794 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
6797 # Set up the scripts for CONFIG_FILES section.
6798 # No need to generate them if there are no CONFIG_FILES.
6799 # This happens for instance with `./config.status config.h'.
6800 if test -n "$CONFIG_FILES"; then
6803 ac_cr=`echo X | tr X '\015'`
6804 # On cygwin, bash can eat \r inside `` if the user requested igncr.
6805 # But we know of no other shell where ac_cr would be empty at this
6806 # point, so we can use a bashism as a fallback.
6807 if test "x$ac_cr" = x; then
6808 eval ac_cr=\$\'\\r\'
6810 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
6811 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
6817 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
6822 echo "cat >conf$$subs.awk <<_ACEOF" &&
6823 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
6826 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
6827 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
6829 for ac_last_try in false false false false false :; do
6830 . ./conf$$subs.sh ||
6831 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
6833 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
6834 if test $ac_delim_n = $ac_delim_num; then
6836 elif $ac_last_try; then
6837 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
6839 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
6844 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6845 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
6849 s/^/S["/; s/!.*/"]=/
6859 s/\(.\{148\}\)..*/\1/
6861 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
6866 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
6873 s/\(.\{148\}\)..*/\1/
6875 s/["\\]/\\&/g; s/^/"/; s/$/"/
6879 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
6884 ' <conf$$subs.awk | sed '
6889 ' >>$CONFIG_STATUS || ac_write_fail=1
6890 rm -f conf$$subs.awk
6891 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6893 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
6894 for (key in S) S_is_set[key] = 1
6900 nfields = split(line, field, "@")
6902 len = length(field[1])
6903 for (i = 2; i < nfields; i++) {
6905 keylen = length(key)
6906 if (S_is_set[key]) {
6908 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
6909 len += length(value) + length(field[++i])
6920 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6921 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
6922 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
6925 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
6926 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
6929 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
6930 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
6931 # trailing colons and then remove the whole line if VPATH becomes empty
6932 # (actually we leave an empty line to preserve line numbers).
6933 if test "x$srcdir" = x.; then
6934 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
6952 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6953 fi # test -n "$CONFIG_FILES"
6956 eval set X " :F $CONFIG_FILES :C $CONFIG_COMMANDS"
6961 :[FHLC]) ac_mode=$ac_tag; continue;;
6963 case $ac_mode$ac_tag in
6965 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
6966 :[FH]-) ac_tag=-:-;;
6967 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
6984 -) ac_f="$ac_tmp/stdin";;
6985 *) # Look for the file first in the build tree, then in the source tree
6986 # (if the path is not absolute). The absolute path cannot be DOS-style,
6987 # because $ac_f cannot contain `:'.
6991 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
6993 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
6995 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
6996 as_fn_append ac_file_inputs " '$ac_f'"
6999 # Let's still pretend it is `configure' which instantiates (i.e., don't
7000 # use $as_me), people would be surprised to read:
7001 # /* config.h. Generated by config.status. */
7002 configure_input='Generated from '`
7003 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
7005 if test x"$ac_file" != x-; then
7006 configure_input="$ac_file. $configure_input"
7007 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
7008 $as_echo "$as_me: creating $ac_file" >&6;}
7010 # Neutralize special characters interpreted by sed in replacement strings.
7011 case $configure_input in #(
7012 *\&* | *\|* | *\\* )
7013 ac_sed_conf_input=`$as_echo "$configure_input" |
7014 sed 's/[\\\\&|]/\\\\&/g'`;; #(
7015 *) ac_sed_conf_input=$configure_input;;
7019 *:-:* | *:-) cat >"$ac_tmp/stdin" \
7020 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
7025 ac_dir=`$as_dirname -- "$ac_file" ||
7026 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7027 X"$ac_file" : 'X\(//\)[^/]' \| \
7028 X"$ac_file" : 'X\(//\)$' \| \
7029 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
7030 $as_echo X"$ac_file" |
7031 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
7048 as_dir="$ac_dir"; as_fn_mkdir_p
7052 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
7054 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
7055 # A ".." for each directory in $ac_dir_suffix.
7056 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
7057 case $ac_top_builddir_sub in
7058 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
7059 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
7062 ac_abs_top_builddir=$ac_pwd
7063 ac_abs_builddir=$ac_pwd$ac_dir_suffix
7064 # for backward compatibility:
7065 ac_top_builddir=$ac_top_build_prefix
7068 .) # We are building in place.
7070 ac_top_srcdir=$ac_top_builddir_sub
7071 ac_abs_top_srcdir=$ac_pwd ;;
7072 [\\/]* | ?:[\\/]* ) # Absolute name.
7073 ac_srcdir=$srcdir$ac_dir_suffix;
7074 ac_top_srcdir=$srcdir
7075 ac_abs_top_srcdir=$srcdir ;;
7077 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
7078 ac_top_srcdir=$ac_top_build_prefix$srcdir
7079 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
7081 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
7091 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
7092 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
7096 [\\/$]* | ?:[\\/]* ) ;;
7097 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
7101 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7102 # If the template does not know about datarootdir, expand it.
7103 # FIXME: This hack should be removed a few years after 2.60.
7104 ac_datarootdir_hack=; ac_datarootdir_seen=
7115 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
7116 *datarootdir*) ac_datarootdir_seen=yes;;
7117 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
7118 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
7119 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
7121 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7122 ac_datarootdir_hack='
7123 s&@datadir@&$datadir&g
7124 s&@docdir@&$docdir&g
7125 s&@infodir@&$infodir&g
7126 s&@localedir@&$localedir&g
7127 s&@mandir@&$mandir&g
7128 s&\\\${datarootdir}&$datarootdir&g' ;;
7132 # Neutralize VPATH when `$srcdir' = `.'.
7133 # Shell code in configure.ac might set extrasub.
7134 # FIXME: do we really want to maintain this feature?
7135 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7136 ac_sed_extra="$ac_vpsub
7139 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7141 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
7142 s|@configure_input@|$ac_sed_conf_input|;t t
7143 s&@top_builddir@&$ac_top_builddir_sub&;t t
7144 s&@top_build_prefix@&$ac_top_build_prefix&;t t
7145 s&@srcdir@&$ac_srcdir&;t t
7146 s&@abs_srcdir@&$ac_abs_srcdir&;t t
7147 s&@top_srcdir@&$ac_top_srcdir&;t t
7148 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
7149 s&@builddir@&$ac_builddir&;t t
7150 s&@abs_builddir@&$ac_abs_builddir&;t t
7151 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
7152 s&@INSTALL@&$ac_INSTALL&;t t
7153 s&@MKDIR_P@&$ac_MKDIR_P&;t t
7154 $ac_datarootdir_hack
7156 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
7157 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
7159 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
7160 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
7161 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
7162 "$ac_tmp/out"`; test -z "$ac_out"; } &&
7163 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
7164 which seems to be undefined. Please make sure it is defined" >&5
7165 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
7166 which seems to be undefined. Please make sure it is defined" >&2;}
7168 rm -f "$ac_tmp/stdin"
7170 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
7171 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
7173 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
7177 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
7178 $as_echo "$as_me: executing $ac_file commands" >&6;}
7183 case $ac_file$ac_mode in
7184 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
7185 # Autoconf 2.62 quotes --file arguments for eval, but not when files
7186 # are listed without --file. Let's play safe and only enable the eval
7187 # if we detect the quoting.
7188 case $CONFIG_FILES in
7189 *\'*) eval set x "$CONFIG_FILES" ;;
7190 *) set x $CONFIG_FILES ;;
7195 # Strip MF so we end up with the name of the file.
7196 mf=`echo "$mf" | sed -e 's/:.*$//'`
7197 # Check whether this is an Automake generated Makefile or not.
7198 # We used to match only the files named `Makefile.in', but
7199 # some people rename them; so instead we look at the file content.
7200 # Grep'ing the first line is not enough: some people post-process
7201 # each Makefile.in and add a new line on top of each file to say so.
7202 # Grep'ing the whole file is not good either: AIX grep has a line
7203 # limit of 2048, but all sed's we know have understand at least 4000.
7204 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
7205 dirpart=`$as_dirname -- "$mf" ||
7206 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7207 X"$mf" : 'X\(//\)[^/]' \| \
7208 X"$mf" : 'X\(//\)$' \| \
7209 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
7211 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
7231 # Extract the definition of DEPDIR, am__include, and am__quote
7232 # from the Makefile without running `make'.
7233 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
7234 test -z "$DEPDIR" && continue
7235 am__include=`sed -n 's/^am__include = //p' < "$mf"`
7236 test -z "am__include" && continue
7237 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
7238 # When using ansi2knr, U may be empty or an underscore; expand it
7239 U=`sed -n 's/^U = //p' < "$mf"`
7240 # Find all dependency output files, they are included files with
7241 # $(DEPDIR) in their names. We invoke sed twice because it is the
7242 # simplest approach to changing $(DEPDIR) to its actual value in the
7244 for file in `sed -n "
7245 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
7246 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
7247 # Make sure the directory exists.
7248 test -f "$dirpart/$file" && continue
7249 fdir=`$as_dirname -- "$file" ||
7250 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7251 X"$file" : 'X\(//\)[^/]' \| \
7252 X"$file" : 'X\(//\)$' \| \
7253 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
7255 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
7272 as_dir=$dirpart/$fdir; as_fn_mkdir_p
7273 # echo "creating $dirpart/$file"
7274 echo '# dummy' > "$dirpart/$file"
7286 ac_clean_files=$ac_clean_files_save
7288 test $ac_write_fail = 0 ||
7289 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
7292 # configure is writing to config.log, and then calls config.status.
7293 # config.status does its own redirection, appending to config.log.
7294 # Unfortunately, on DOS this fails, as config.log is still kept open
7295 # by configure, so config.status won't be able to write to it; its
7296 # output is simply discarded. So we exec the FD to /dev/null,
7297 # effectively closing config.log, so it can be properly (re)opened and
7298 # appended to by config.status. When coming back to configure, we
7299 # need to make the FD available again.
7300 if test "$no_create" != yes; then
7302 ac_config_status_args=
7303 test "$silent" = yes &&
7304 ac_config_status_args="$ac_config_status_args --quiet"
7306 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
7308 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
7309 # would make configure fail if this is the last instruction.
7310 $ac_cs_success || as_fn_exit 1
7312 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
7313 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
7314 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}