2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.63 for lcr 1.3.
5 # Report bugs to <andreas@eversberg.eu>.
7 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
8 # 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## --------------------- ##
12 ## M4sh Initialization. ##
13 ## --------------------- ##
15 # Be more Bourne compatible
16 DUALCASE=1; export DUALCASE # for MKS sh
17 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
25 case `(set -o) 2>/dev/null` in
26 *posix*) set -o posix ;;
35 # Avoid depending upon Character Ranges.
36 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
37 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
38 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
39 as_cr_digits='0123456789'
40 as_cr_alnum=$as_cr_Letters$as_cr_digits
45 # Printing a long string crashes Solaris 7 /usr/bin/printf.
46 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
47 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
48 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
49 if (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 ||
83 # Support unset when possible.
84 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
92 # We need space, tab and new line, in precisely that order. Quoting is
93 # there to prevent editors from complaining about space-tab.
94 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
95 # splitting by setting IFS to empty value.)
98 # Find who we are. Look in the path if we contain no directory separator.
100 *[\\/]* ) as_myself=$0 ;;
101 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
105 test -z "$as_dir" && as_dir=.
106 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
112 # We did not find ourselves, most probably we were run as `sh COMMAND'
113 # in which case we are not to be found in the path.
114 if test "x$as_myself" = x; then
117 if test ! -f "$as_myself"; then
118 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
119 { (exit 1); exit 1; }
122 # Work around bugs in pre-3.0 UWIN ksh.
123 for as_var in ENV MAIL MAILPATH
124 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
136 # Required to use basename.
137 if expr a : '\(a\)' >/dev/null 2>&1 &&
138 test "X`expr 00001 : '.*\(...\)'`" = X001; then
144 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
151 # Name of the executable.
152 as_me=`$as_basename -- "$0" ||
153 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
154 X"$0" : 'X\(//\)$' \| \
155 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
157 sed '/^.*\/\([^/][^/]*\)\/*$/{
175 if test "x$CONFIG_SHELL" = x; then
176 if (eval ":") 2>/dev/null; then
182 if test $as_have_required = yes && (eval ":
192 as_func_ret_success () {
195 as_func_ret_failure () {
200 if as_func_success; then
204 echo as_func_success failed.
207 if as_func_failure; then
209 echo as_func_failure succeeded.
212 if as_func_ret_success; then
216 echo as_func_ret_success failed.
219 if as_func_ret_failure; then
221 echo as_func_ret_failure succeeded.
224 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
228 echo positional parameters were not saved.
231 test \$exitcode = 0) || { (exit 1); exit 1; }
236 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
237 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
238 ") 2> /dev/null; then
242 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
243 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
246 test -z "$as_dir" && as_dir=.
249 for as_base in sh bash ksh sh5; do
250 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
257 for as_shell in $as_candidate_shells $SHELL; do
258 # Try only shells that exist, to save several forks.
259 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
260 { ("$as_shell") 2> /dev/null <<\_ASEOF
261 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
264 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
265 # is contrary to our usage. Disable this feature.
266 alias -g '${1+"$@"}'='"$@"'
269 case `(set -o) 2>/dev/null` in
270 *posix*) set -o posix ;;
279 CONFIG_SHELL=$as_shell
281 if { "$as_shell" 2> /dev/null <<\_ASEOF
282 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
285 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
286 # is contrary to our usage. Disable this feature.
287 alias -g '${1+"$@"}'='"$@"'
290 case `(set -o) 2>/dev/null` in
291 *posix*) set -o posix ;;
307 as_func_ret_success () {
310 as_func_ret_failure () {
315 if as_func_success; then
319 echo as_func_success failed.
322 if as_func_failure; then
324 echo as_func_failure succeeded.
327 if as_func_ret_success; then
331 echo as_func_ret_success failed.
334 if as_func_ret_failure; then
336 echo as_func_ret_failure succeeded.
339 if ( set x; as_func_ret_success y && test x = "$1" ); then
343 echo positional parameters were not saved.
346 test $exitcode = 0) || { (exit 1); exit 1; }
351 test "x$as_lineno_1" != "x$as_lineno_2" &&
352 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
363 if test "x$CONFIG_SHELL" != x; then
364 for as_var in BASH_ENV ENV
365 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
368 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
372 if test $as_have_required = no; then
373 echo This script requires a shell more modern than all the
374 echo shells that I found on your system. Please install a
375 echo modern shell, or manually run the script under such a
376 echo shell if you do have one.
377 { (exit 1); exit 1; }
387 (eval "as_func_return () {
396 as_func_ret_success () {
399 as_func_ret_failure () {
404 if as_func_success; then
408 echo as_func_success failed.
411 if as_func_failure; then
413 echo as_func_failure succeeded.
416 if as_func_ret_success; then
420 echo as_func_ret_success failed.
423 if as_func_ret_failure; then
425 echo as_func_ret_failure succeeded.
428 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
432 echo positional parameters were not saved.
435 test \$exitcode = 0") || {
436 echo No shell found that supports shell functions.
437 echo Please tell bug-autoconf@gnu.org about your system,
438 echo including any error possibly output before this message.
439 echo This can help us improve future autoconf versions.
440 echo Configuration will now proceed without shell functions.
447 test "x$as_lineno_1" != "x$as_lineno_2" &&
448 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
450 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
451 # uniformly replaced by the line number. The first 'sed' inserts a
452 # line-number line after each line using $LINENO; the second 'sed'
453 # does the real work. The second script uses 'N' to pair each
454 # line-number line with the line containing $LINENO, and appends
455 # trailing '-' during substitution so that $LINENO is not a special
457 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
458 # scripts with optimization help from Paolo Bonzini. Blame Lee
459 # E. McMahon (1931-1989) for sed's syntax. :-)
471 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
475 chmod +x "$as_me.lineno" ||
476 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
477 { (exit 1); exit 1; }; }
479 # Don't try to exec as it changes $[0], causing all sort of problems
480 # (the dirname of $[0] is not the place where we might find the
481 # original and so on. Autoconf is especially sensitive to this).
483 # Exit status is that of the last command.
488 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
494 ECHO_C= ECHO_N= ECHO_T=
498 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
504 if expr a : '\(a\)' >/dev/null 2>&1 &&
505 test "X`expr 00001 : '.*\(...\)'`" = X001; then
511 rm -f conf$$ conf$$.exe conf$$.file
512 if test -d conf$$.dir; then
513 rm -f conf$$.dir/conf$$.file
516 mkdir conf$$.dir 2>/dev/null
518 if (echo >conf$$.file) 2>/dev/null; then
519 if ln -s conf$$.file conf$$ 2>/dev/null; then
521 # ... but there are two gotchas:
522 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
523 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
524 # In both cases, we have to default to `cp -p'.
525 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
527 elif ln conf$$.file conf$$ 2>/dev/null; then
535 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
536 rmdir conf$$.dir 2>/dev/null
538 if mkdir -p . 2>/dev/null; then
541 test -d ./-p && rmdir ./-p
545 if test -x / >/dev/null 2>&1; then
548 if ls -dL / >/dev/null 2>&1; then
555 if test -d "$1"; then
561 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
562 ???[sx]*):;;*)false;;esac;fi
566 as_executable_p=$as_test_x
568 # Sed expression to map a string onto a valid CPP name.
569 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
571 # Sed expression to map a string onto a valid variable name.
572 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
576 exec 7<&0 </dev/null 6>&1
579 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
580 # so uname gets run too.
581 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
586 ac_default_prefix=/usr/local
588 ac_config_libobj_dir=.
594 SHELL=${CONFIG_SHELL-/bin/sh}
596 # Identity of this package.
598 PACKAGE_TARNAME='lcr'
599 PACKAGE_VERSION='1.3'
600 PACKAGE_STRING='lcr 1.3'
601 PACKAGE_BUGREPORT='andreas@eversberg.eu'
603 ac_unique_file="main.c"
604 # Factoring default headers for most tests.
605 ac_includes_default="\
607 #ifdef HAVE_SYS_TYPES_H
608 # include <sys/types.h>
610 #ifdef HAVE_SYS_STAT_H
611 # include <sys/stat.h>
617 # ifdef HAVE_STDLIB_H
622 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
627 #ifdef HAVE_STRINGS_H
628 # include <strings.h>
630 #ifdef HAVE_INTTYPES_H
631 # include <inttypes.h>
640 ac_subst_vars='LTLIBOBJS
644 ENABLE_ASTERISK_CHANNEL_DRIVER_FALSE
645 ENABLE_ASTERISK_CHANNEL_DRIVER_TRUE
668 INSTALL_STRIP_PROGRAM
719 program_transform_name
731 enable_option_checking
732 enable_dependency_tracking
736 ac_precious_vars='build_alias
750 # Initialize some variables set by options.
752 ac_init_version=false
753 ac_unrecognized_opts=
755 # The variables have the same names as the options, with
756 # dashes changed to underlines.
764 program_transform_name=s,x,x,
772 # Installation directory options.
773 # These are left unexpanded so users can "make install exec_prefix=/foo"
774 # and all the variables that are supposed to be based on exec_prefix
775 # by default will actually change.
776 # Use braces instead of parens because sh, perl, etc. also accept them.
777 # (The list follows the same order as the GNU Coding Standards.)
778 bindir='${exec_prefix}/bin'
779 sbindir='${exec_prefix}/sbin'
780 libexecdir='${exec_prefix}/libexec'
781 datarootdir='${prefix}/share'
782 datadir='${datarootdir}'
783 sysconfdir='${prefix}/etc'
784 sharedstatedir='${prefix}/com'
785 localstatedir='${prefix}/var'
786 includedir='${prefix}/include'
787 oldincludedir='/usr/include'
788 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
789 infodir='${datarootdir}/info'
794 libdir='${exec_prefix}/lib'
795 localedir='${datarootdir}/locale'
796 mandir='${datarootdir}/man'
802 # If the previous option needs an argument, assign it.
803 if test -n "$ac_prev"; then
804 eval $ac_prev=\$ac_option
810 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
814 # Accept the important Cygnus configure options, so we can diagnose typos.
816 case $ac_dashdash$ac_option in
820 -bindir | --bindir | --bindi | --bind | --bin | --bi)
822 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
825 -build | --build | --buil | --bui | --bu)
826 ac_prev=build_alias ;;
827 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
828 build_alias=$ac_optarg ;;
830 -cache-file | --cache-file | --cache-fil | --cache-fi \
831 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
832 ac_prev=cache_file ;;
833 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
834 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
835 cache_file=$ac_optarg ;;
838 cache_file=config.cache ;;
840 -datadir | --datadir | --datadi | --datad)
842 -datadir=* | --datadir=* | --datadi=* | --datad=*)
843 datadir=$ac_optarg ;;
845 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
846 | --dataroo | --dataro | --datar)
847 ac_prev=datarootdir ;;
848 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
849 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
850 datarootdir=$ac_optarg ;;
852 -disable-* | --disable-*)
853 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
854 # Reject names that are not valid shell variable names.
855 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
856 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
857 { (exit 1); exit 1; }; }
858 ac_useropt_orig=$ac_useropt
859 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
860 case $ac_user_opts in
864 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
865 ac_unrecognized_sep=', ';;
867 eval enable_$ac_useropt=no ;;
869 -docdir | --docdir | --docdi | --doc | --do)
871 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
874 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
876 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
879 -enable-* | --enable-*)
880 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
881 # Reject names that are not valid shell variable names.
882 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
883 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
884 { (exit 1); exit 1; }; }
885 ac_useropt_orig=$ac_useropt
886 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
887 case $ac_user_opts in
891 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
892 ac_unrecognized_sep=', ';;
894 eval enable_$ac_useropt=\$ac_optarg ;;
896 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
897 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
898 | --exec | --exe | --ex)
899 ac_prev=exec_prefix ;;
900 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
901 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
902 | --exec=* | --exe=* | --ex=*)
903 exec_prefix=$ac_optarg ;;
905 -gas | --gas | --ga | --g)
906 # Obsolete; use --with-gas.
909 -help | --help | --hel | --he | -h)
911 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
912 ac_init_help=recursive ;;
913 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
914 ac_init_help=short ;;
916 -host | --host | --hos | --ho)
917 ac_prev=host_alias ;;
918 -host=* | --host=* | --hos=* | --ho=*)
919 host_alias=$ac_optarg ;;
921 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
923 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
925 htmldir=$ac_optarg ;;
927 -includedir | --includedir | --includedi | --included | --include \
928 | --includ | --inclu | --incl | --inc)
929 ac_prev=includedir ;;
930 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
931 | --includ=* | --inclu=* | --incl=* | --inc=*)
932 includedir=$ac_optarg ;;
934 -infodir | --infodir | --infodi | --infod | --info | --inf)
936 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
937 infodir=$ac_optarg ;;
939 -libdir | --libdir | --libdi | --libd)
941 -libdir=* | --libdir=* | --libdi=* | --libd=*)
944 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
945 | --libexe | --libex | --libe)
946 ac_prev=libexecdir ;;
947 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
948 | --libexe=* | --libex=* | --libe=*)
949 libexecdir=$ac_optarg ;;
951 -localedir | --localedir | --localedi | --localed | --locale)
953 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
954 localedir=$ac_optarg ;;
956 -localstatedir | --localstatedir | --localstatedi | --localstated \
957 | --localstate | --localstat | --localsta | --localst | --locals)
958 ac_prev=localstatedir ;;
959 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
960 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
961 localstatedir=$ac_optarg ;;
963 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
965 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
969 # Obsolete; use --without-fp.
972 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
973 | --no-cr | --no-c | -n)
976 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
977 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
980 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
981 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
982 | --oldin | --oldi | --old | --ol | --o)
983 ac_prev=oldincludedir ;;
984 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
985 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
986 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
987 oldincludedir=$ac_optarg ;;
989 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
991 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
994 -program-prefix | --program-prefix | --program-prefi | --program-pref \
995 | --program-pre | --program-pr | --program-p)
996 ac_prev=program_prefix ;;
997 -program-prefix=* | --program-prefix=* | --program-prefi=* \
998 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
999 program_prefix=$ac_optarg ;;
1001 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1002 | --program-suf | --program-su | --program-s)
1003 ac_prev=program_suffix ;;
1004 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1005 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1006 program_suffix=$ac_optarg ;;
1008 -program-transform-name | --program-transform-name \
1009 | --program-transform-nam | --program-transform-na \
1010 | --program-transform-n | --program-transform- \
1011 | --program-transform | --program-transfor \
1012 | --program-transfo | --program-transf \
1013 | --program-trans | --program-tran \
1014 | --progr-tra | --program-tr | --program-t)
1015 ac_prev=program_transform_name ;;
1016 -program-transform-name=* | --program-transform-name=* \
1017 | --program-transform-nam=* | --program-transform-na=* \
1018 | --program-transform-n=* | --program-transform-=* \
1019 | --program-transform=* | --program-transfor=* \
1020 | --program-transfo=* | --program-transf=* \
1021 | --program-trans=* | --program-tran=* \
1022 | --progr-tra=* | --program-tr=* | --program-t=*)
1023 program_transform_name=$ac_optarg ;;
1025 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1027 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1028 pdfdir=$ac_optarg ;;
1030 -psdir | --psdir | --psdi | --psd | --ps)
1032 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1035 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1036 | -silent | --silent | --silen | --sile | --sil)
1039 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1041 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1043 sbindir=$ac_optarg ;;
1045 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1046 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1047 | --sharedst | --shareds | --shared | --share | --shar \
1049 ac_prev=sharedstatedir ;;
1050 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1051 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1052 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1054 sharedstatedir=$ac_optarg ;;
1056 -site | --site | --sit)
1058 -site=* | --site=* | --sit=*)
1061 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1063 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1064 srcdir=$ac_optarg ;;
1066 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1067 | --syscon | --sysco | --sysc | --sys | --sy)
1068 ac_prev=sysconfdir ;;
1069 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1070 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1071 sysconfdir=$ac_optarg ;;
1073 -target | --target | --targe | --targ | --tar | --ta | --t)
1074 ac_prev=target_alias ;;
1075 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1076 target_alias=$ac_optarg ;;
1078 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1081 -version | --version | --versio | --versi | --vers | -V)
1082 ac_init_version=: ;;
1085 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1086 # Reject names that are not valid shell variable names.
1087 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1088 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1089 { (exit 1); exit 1; }; }
1090 ac_useropt_orig=$ac_useropt
1091 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1092 case $ac_user_opts in
1096 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1097 ac_unrecognized_sep=', ';;
1099 eval with_$ac_useropt=\$ac_optarg ;;
1101 -without-* | --without-*)
1102 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1103 # Reject names that are not valid shell variable names.
1104 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1105 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1106 { (exit 1); exit 1; }; }
1107 ac_useropt_orig=$ac_useropt
1108 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1109 case $ac_user_opts in
1113 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1114 ac_unrecognized_sep=', ';;
1116 eval with_$ac_useropt=no ;;
1119 # Obsolete; use --with-x.
1122 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1123 | --x-incl | --x-inc | --x-in | --x-i)
1124 ac_prev=x_includes ;;
1125 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1126 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1127 x_includes=$ac_optarg ;;
1129 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1130 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1131 ac_prev=x_libraries ;;
1132 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1133 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1134 x_libraries=$ac_optarg ;;
1136 -*) { $as_echo "$as_me: error: unrecognized option: $ac_option
1137 Try \`$0 --help' for more information." >&2
1138 { (exit 1); exit 1; }; }
1142 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1143 # Reject names that are not valid shell variable names.
1144 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1145 { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1146 { (exit 1); exit 1; }; }
1147 eval $ac_envvar=\$ac_optarg
1148 export $ac_envvar ;;
1151 # FIXME: should be removed in autoconf 3.0.
1152 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1153 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1154 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1155 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1161 if test -n "$ac_prev"; then
1162 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1163 { $as_echo "$as_me: error: missing argument to $ac_option" >&2
1164 { (exit 1); exit 1; }; }
1167 if test -n "$ac_unrecognized_opts"; then
1168 case $enable_option_checking in
1170 fatal) { $as_echo "$as_me: error: unrecognized options: $ac_unrecognized_opts" >&2
1171 { (exit 1); exit 1; }; } ;;
1172 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1176 # Check all directory arguments for consistency.
1177 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1178 datadir sysconfdir sharedstatedir localstatedir includedir \
1179 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1180 libdir localedir mandir
1182 eval ac_val=\$$ac_var
1183 # Remove trailing slashes.
1186 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1187 eval $ac_var=\$ac_val;;
1189 # Be sure to have absolute directory names.
1191 [\\/$]* | ?:[\\/]* ) continue;;
1192 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1194 { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1195 { (exit 1); exit 1; }; }
1198 # There might be people who depend on the old broken behavior: `$host'
1199 # used to hold the argument of --host etc.
1200 # FIXME: To remove some day.
1203 target=$target_alias
1205 # FIXME: To remove some day.
1206 if test "x$host_alias" != x; then
1207 if test "x$build_alias" = x; then
1208 cross_compiling=maybe
1209 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1210 If a cross compiler is detected then cross compile mode will be used." >&2
1211 elif test "x$build_alias" != "x$host_alias"; then
1217 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1219 test "$silent" = yes && exec 6>/dev/null
1222 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1223 ac_ls_di=`ls -di .` &&
1224 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1225 { $as_echo "$as_me: error: working directory cannot be determined" >&2
1226 { (exit 1); exit 1; }; }
1227 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1228 { $as_echo "$as_me: error: pwd does not report name of working directory" >&2
1229 { (exit 1); exit 1; }; }
1232 # Find the source files, if location was not specified.
1233 if test -z "$srcdir"; then
1234 ac_srcdir_defaulted=yes
1235 # Try the directory containing this script, then the parent directory.
1236 ac_confdir=`$as_dirname -- "$as_myself" ||
1237 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1238 X"$as_myself" : 'X\(//\)[^/]' \| \
1239 X"$as_myself" : 'X\(//\)$' \| \
1240 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1241 $as_echo X"$as_myself" |
1242 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1260 if test ! -r "$srcdir/$ac_unique_file"; then
1264 ac_srcdir_defaulted=no
1266 if test ! -r "$srcdir/$ac_unique_file"; then
1267 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1268 { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1269 { (exit 1); exit 1; }; }
1271 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1273 cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2
1274 { (exit 1); exit 1; }; }
1276 # When building in place, set srcdir=.
1277 if test "$ac_abs_confdir" = "$ac_pwd"; then
1280 # Remove unnecessary trailing slashes from srcdir.
1281 # Double slashes in file names in object file debugging info
1282 # mess up M-x gdb in Emacs.
1284 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1286 for ac_var in $ac_precious_vars; do
1287 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1288 eval ac_env_${ac_var}_value=\$${ac_var}
1289 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1290 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1294 # Report the --help message.
1296 if test "$ac_init_help" = "long"; then
1297 # Omit some internal or obsolete options to make the list less imposing.
1298 # This message is too long to be a string in the A/UX 3.1 sh.
1300 \`configure' configures lcr 1.3 to adapt to many kinds of systems.
1302 Usage: $0 [OPTION]... [VAR=VALUE]...
1304 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1305 VAR=VALUE. See below for descriptions of some of the useful variables.
1307 Defaults for the options are specified in brackets.
1310 -h, --help display this help and exit
1311 --help=short display options specific to this package
1312 --help=recursive display the short help of all the included packages
1313 -V, --version display version information and exit
1314 -q, --quiet, --silent do not print \`checking...' messages
1315 --cache-file=FILE cache test results in FILE [disabled]
1316 -C, --config-cache alias for \`--cache-file=config.cache'
1317 -n, --no-create do not create output files
1318 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1320 Installation directories:
1321 --prefix=PREFIX install architecture-independent files in PREFIX
1322 [$ac_default_prefix]
1323 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1326 By default, \`make install' will install all the files in
1327 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1328 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1329 for instance \`--prefix=\$HOME'.
1331 For better control, use the options below.
1333 Fine tuning of the installation directories:
1334 --bindir=DIR user executables [EPREFIX/bin]
1335 --sbindir=DIR system admin executables [EPREFIX/sbin]
1336 --libexecdir=DIR program executables [EPREFIX/libexec]
1337 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1338 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1339 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1340 --libdir=DIR object code libraries [EPREFIX/lib]
1341 --includedir=DIR C header files [PREFIX/include]
1342 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1343 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1344 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1345 --infodir=DIR info documentation [DATAROOTDIR/info]
1346 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1347 --mandir=DIR man documentation [DATAROOTDIR/man]
1348 --docdir=DIR documentation root [DATAROOTDIR/doc/lcr]
1349 --htmldir=DIR html documentation [DOCDIR]
1350 --dvidir=DIR dvi documentation [DOCDIR]
1351 --pdfdir=DIR pdf documentation [DOCDIR]
1352 --psdir=DIR ps documentation [DOCDIR]
1358 --program-prefix=PREFIX prepend PREFIX to installed program names
1359 --program-suffix=SUFFIX append SUFFIX to installed program names
1360 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1364 if test -n "$ac_init_help"; then
1365 case $ac_init_help in
1366 short | recursive ) echo "Configuration of lcr 1.3:";;
1371 --disable-option-checking ignore unrecognized --enable/--with options
1372 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1373 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1374 --disable-dependency-tracking speeds up one-time build
1375 --enable-dependency-tracking do not reject slow dependency extractors
1378 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1379 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1380 --with-asterisk compile with built-in Asterisk channel driver
1383 --with-ssl compile with ssl support (libcrypto) [default=check]
1386 Some influential environment variables:
1387 CC C compiler command
1388 CFLAGS C compiler flags
1389 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1390 nonstandard directory <lib dir>
1391 LIBS libraries to pass to the linker, e.g. -l<library>
1392 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1393 you have headers in a nonstandard directory <include dir>
1395 CXX C++ compiler command
1396 CXXFLAGS C++ compiler flags
1398 Use these variables to override the choices made by `configure' or to help
1399 it to find libraries and programs with nonstandard names/locations.
1401 Report bugs to <andreas@eversberg.eu>.
1406 if test "$ac_init_help" = "recursive"; then
1407 # If there are subdirs, report their specific --help.
1408 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1409 test -d "$ac_dir" ||
1410 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1415 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1417 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1418 # A ".." for each directory in $ac_dir_suffix.
1419 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1420 case $ac_top_builddir_sub in
1421 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1422 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1425 ac_abs_top_builddir=$ac_pwd
1426 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1427 # for backward compatibility:
1428 ac_top_builddir=$ac_top_build_prefix
1431 .) # We are building in place.
1433 ac_top_srcdir=$ac_top_builddir_sub
1434 ac_abs_top_srcdir=$ac_pwd ;;
1435 [\\/]* | ?:[\\/]* ) # Absolute name.
1436 ac_srcdir=$srcdir$ac_dir_suffix;
1437 ac_top_srcdir=$srcdir
1438 ac_abs_top_srcdir=$srcdir ;;
1440 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1441 ac_top_srcdir=$ac_top_build_prefix$srcdir
1442 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1444 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1446 cd "$ac_dir" || { ac_status=$?; continue; }
1447 # Check for guested configure.
1448 if test -f "$ac_srcdir/configure.gnu"; then
1450 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1451 elif test -f "$ac_srcdir/configure"; then
1453 $SHELL "$ac_srcdir/configure" --help=recursive
1455 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1457 cd "$ac_pwd" || { ac_status=$?; break; }
1461 test -n "$ac_init_help" && exit $ac_status
1462 if $ac_init_version; then
1465 generated by GNU Autoconf 2.63
1467 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1468 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
1469 This configure script is free software; the Free Software Foundation
1470 gives unlimited permission to copy, distribute and modify it.
1474 cat >config.log <<_ACEOF
1475 This file contains any messages produced by compilers while
1476 running configure, to aid debugging if configure makes a mistake.
1478 It was created by lcr $as_me 1.3, which was
1479 generated by GNU Autoconf 2.63. Invocation command line was
1491 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1492 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1493 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1494 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1495 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1497 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1498 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1500 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1501 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1502 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1503 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1504 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1505 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1506 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1510 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1514 test -z "$as_dir" && as_dir=.
1515 $as_echo "PATH: $as_dir"
1531 # Keep a trace of the command line.
1532 # Strip out --no-create and --no-recursion so they do not pile up.
1533 # Strip out --silent because we don't want to record it for future runs.
1534 # Also quote any args containing shell meta-characters.
1535 # Make two passes to allow for proper duplicate-argument suppression.
1539 ac_must_keep_next=false
1545 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1546 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1547 | -silent | --silent | --silen | --sile | --sil)
1550 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1553 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1555 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1556 if test $ac_must_keep_next = true; then
1557 ac_must_keep_next=false # Got value, back to normal.
1560 *=* | --config-cache | -C | -disable-* | --disable-* \
1561 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1562 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1563 | -with-* | --with-* | -without-* | --without-* | --x)
1564 case "$ac_configure_args0 " in
1565 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1568 -* ) ac_must_keep_next=true ;;
1571 ac_configure_args="$ac_configure_args '$ac_arg'"
1576 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1577 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1579 # When interrupted or exit'd, cleanup temporary files, and complete
1580 # config.log. We remove comments because anyway the quotes in there
1581 # would cause problems or look ugly.
1582 # WARNING: Use '\'' to represent an apostrophe within the trap.
1583 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1584 trap 'exit_status=$?
1585 # Save into config.log some information that might help in debugging.
1590 ## ---------------- ##
1591 ## Cache variables. ##
1592 ## ---------------- ##
1595 # The following way of writing the cache mishandles newlines in values,
1597 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1598 eval ac_val=\$$ac_var
1602 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
1603 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1606 _ | IFS | as_nl) ;; #(
1607 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1608 *) $as_unset $ac_var ;;
1613 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1614 *${as_nl}ac_space=\ *)
1616 "s/'\''/'\''\\\\'\'''\''/g;
1617 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1620 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1628 ## ----------------- ##
1629 ## Output variables. ##
1630 ## ----------------- ##
1633 for ac_var in $ac_subst_vars
1635 eval ac_val=\$$ac_var
1637 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1639 $as_echo "$ac_var='\''$ac_val'\''"
1643 if test -n "$ac_subst_files"; then
1645 ## ------------------- ##
1646 ## File substitutions. ##
1647 ## ------------------- ##
1650 for ac_var in $ac_subst_files
1652 eval ac_val=\$$ac_var
1654 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1656 $as_echo "$ac_var='\''$ac_val'\''"
1661 if test -s confdefs.h; then
1671 test "$ac_signal" != 0 &&
1672 $as_echo "$as_me: caught signal $ac_signal"
1673 $as_echo "$as_me: exit $exit_status"
1675 rm -f core *.core core.conftest.* &&
1676 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1679 for ac_signal in 1 2 13 15; do
1680 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1684 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1685 rm -f -r conftest* confdefs.h
1687 # Predefined preprocessor variables.
1689 cat >>confdefs.h <<_ACEOF
1690 #define PACKAGE_NAME "$PACKAGE_NAME"
1694 cat >>confdefs.h <<_ACEOF
1695 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1699 cat >>confdefs.h <<_ACEOF
1700 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1704 cat >>confdefs.h <<_ACEOF
1705 #define PACKAGE_STRING "$PACKAGE_STRING"
1709 cat >>confdefs.h <<_ACEOF
1710 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1714 # Let the site file select an alternate cache file if it wants to.
1715 # Prefer an explicitly selected file to automatically selected ones.
1718 if test -n "$CONFIG_SITE"; then
1719 ac_site_file1=$CONFIG_SITE
1720 elif test "x$prefix" != xNONE; then
1721 ac_site_file1=$prefix/share/config.site
1722 ac_site_file2=$prefix/etc/config.site
1724 ac_site_file1=$ac_default_prefix/share/config.site
1725 ac_site_file2=$ac_default_prefix/etc/config.site
1727 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
1729 test "x$ac_site_file" = xNONE && continue
1730 if test -r "$ac_site_file"; then
1731 { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1732 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
1733 sed 's/^/| /' "$ac_site_file" >&5
1738 if test -r "$cache_file"; then
1739 # Some versions of bash will fail to source /dev/null (special
1740 # files actually), so we avoid doing that.
1741 if test -f "$cache_file"; then
1742 { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5
1743 $as_echo "$as_me: loading cache $cache_file" >&6;}
1745 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1746 *) . "./$cache_file";;
1750 { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5
1751 $as_echo "$as_me: creating cache $cache_file" >&6;}
1755 # Check that the precious variables saved in the cache have kept the same
1757 ac_cache_corrupted=false
1758 for ac_var in $ac_precious_vars; do
1759 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1760 eval ac_new_set=\$ac_env_${ac_var}_set
1761 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1762 eval ac_new_val=\$ac_env_${ac_var}_value
1763 case $ac_old_set,$ac_new_set in
1765 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1766 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1767 ac_cache_corrupted=: ;;
1769 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1770 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1771 ac_cache_corrupted=: ;;
1774 if test "x$ac_old_val" != "x$ac_new_val"; then
1775 # differences in whitespace do not lead to failure.
1776 ac_old_val_w=`echo x $ac_old_val`
1777 ac_new_val_w=`echo x $ac_new_val`
1778 if test "$ac_old_val_w" != "$ac_new_val_w"; then
1779 { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1780 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1781 ac_cache_corrupted=:
1783 { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
1784 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
1785 eval $ac_var=\$ac_old_val
1787 { $as_echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5
1788 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
1789 { $as_echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5
1790 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
1793 # Pass precious variables to config.status.
1794 if test "$ac_new_set" = set; then
1796 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1797 *) ac_arg=$ac_var=$ac_new_val ;;
1799 case " $ac_configure_args " in
1800 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1801 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1805 if $ac_cache_corrupted; then
1806 { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
1807 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1808 { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1809 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1810 { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1811 $as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1812 { (exit 1); exit 1; }; }
1840 ac_cpp='$CPP $CPPFLAGS'
1841 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1842 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1843 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1848 ac_config_headers="$ac_config_headers config.h"
1851 # fix warnings from autoconf + automake
1853 ac_cpp='$CPP $CPPFLAGS'
1854 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1855 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1856 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1857 if test -n "$ac_tool_prefix"; then
1858 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1859 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1860 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
1861 $as_echo_n "checking for $ac_word... " >&6; }
1862 if test "${ac_cv_prog_CC+set}" = set; then
1863 $as_echo_n "(cached) " >&6
1865 if test -n "$CC"; then
1866 ac_cv_prog_CC="$CC" # Let the user override the test.
1868 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1872 test -z "$as_dir" && as_dir=.
1873 for ac_exec_ext in '' $ac_executable_extensions; do
1874 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1875 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1876 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1886 if test -n "$CC"; then
1887 { $as_echo "$as_me:$LINENO: result: $CC" >&5
1888 $as_echo "$CC" >&6; }
1890 { $as_echo "$as_me:$LINENO: result: no" >&5
1891 $as_echo "no" >&6; }
1896 if test -z "$ac_cv_prog_CC"; then
1898 # Extract the first word of "gcc", so it can be a program name with args.
1899 set dummy gcc; ac_word=$2
1900 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
1901 $as_echo_n "checking for $ac_word... " >&6; }
1902 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1903 $as_echo_n "(cached) " >&6
1905 if test -n "$ac_ct_CC"; then
1906 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1908 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1912 test -z "$as_dir" && as_dir=.
1913 for ac_exec_ext in '' $ac_executable_extensions; do
1914 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1915 ac_cv_prog_ac_ct_CC="gcc"
1916 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1925 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1926 if test -n "$ac_ct_CC"; then
1927 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1928 $as_echo "$ac_ct_CC" >&6; }
1930 { $as_echo "$as_me:$LINENO: result: no" >&5
1931 $as_echo "no" >&6; }
1934 if test "x$ac_ct_CC" = x; then
1937 case $cross_compiling:$ac_tool_warned in
1939 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
1940 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
1941 ac_tool_warned=yes ;;
1949 if test -z "$CC"; then
1950 if test -n "$ac_tool_prefix"; then
1951 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1952 set dummy ${ac_tool_prefix}cc; ac_word=$2
1953 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
1954 $as_echo_n "checking for $ac_word... " >&6; }
1955 if test "${ac_cv_prog_CC+set}" = set; then
1956 $as_echo_n "(cached) " >&6
1958 if test -n "$CC"; then
1959 ac_cv_prog_CC="$CC" # Let the user override the test.
1961 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1965 test -z "$as_dir" && as_dir=.
1966 for ac_exec_ext in '' $ac_executable_extensions; do
1967 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1968 ac_cv_prog_CC="${ac_tool_prefix}cc"
1969 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1979 if test -n "$CC"; then
1980 { $as_echo "$as_me:$LINENO: result: $CC" >&5
1981 $as_echo "$CC" >&6; }
1983 { $as_echo "$as_me:$LINENO: result: no" >&5
1984 $as_echo "no" >&6; }
1990 if test -z "$CC"; then
1991 # Extract the first word of "cc", so it can be a program name with args.
1992 set dummy cc; ac_word=$2
1993 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
1994 $as_echo_n "checking for $ac_word... " >&6; }
1995 if test "${ac_cv_prog_CC+set}" = set; then
1996 $as_echo_n "(cached) " >&6
1998 if test -n "$CC"; then
1999 ac_cv_prog_CC="$CC" # Let the user override the test.
2002 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2006 test -z "$as_dir" && as_dir=.
2007 for ac_exec_ext in '' $ac_executable_extensions; do
2008 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2009 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2010 ac_prog_rejected=yes
2014 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2021 if test $ac_prog_rejected = yes; then
2022 # We found a bogon in the path, so make sure we never use it.
2023 set dummy $ac_cv_prog_CC
2025 if test $# != 0; then
2026 # We chose a different compiler from the bogus one.
2027 # However, it has the same basename, so the bogon will be chosen
2028 # first if we set CC to just the basename; use the full file name.
2030 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2036 if test -n "$CC"; then
2037 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2038 $as_echo "$CC" >&6; }
2040 { $as_echo "$as_me:$LINENO: result: no" >&5
2041 $as_echo "no" >&6; }
2046 if test -z "$CC"; then
2047 if test -n "$ac_tool_prefix"; then
2048 for ac_prog in cl.exe
2050 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2051 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2052 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2053 $as_echo_n "checking for $ac_word... " >&6; }
2054 if test "${ac_cv_prog_CC+set}" = set; then
2055 $as_echo_n "(cached) " >&6
2057 if test -n "$CC"; then
2058 ac_cv_prog_CC="$CC" # Let the user override the test.
2060 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2064 test -z "$as_dir" && as_dir=.
2065 for ac_exec_ext in '' $ac_executable_extensions; do
2066 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2067 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2068 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2078 if test -n "$CC"; then
2079 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2080 $as_echo "$CC" >&6; }
2082 { $as_echo "$as_me:$LINENO: result: no" >&5
2083 $as_echo "no" >&6; }
2087 test -n "$CC" && break
2090 if test -z "$CC"; then
2092 for ac_prog in cl.exe
2094 # Extract the first word of "$ac_prog", so it can be a program name with args.
2095 set dummy $ac_prog; ac_word=$2
2096 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2097 $as_echo_n "checking for $ac_word... " >&6; }
2098 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2099 $as_echo_n "(cached) " >&6
2101 if test -n "$ac_ct_CC"; then
2102 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2104 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2108 test -z "$as_dir" && as_dir=.
2109 for ac_exec_ext in '' $ac_executable_extensions; do
2110 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2111 ac_cv_prog_ac_ct_CC="$ac_prog"
2112 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2121 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2122 if test -n "$ac_ct_CC"; then
2123 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2124 $as_echo "$ac_ct_CC" >&6; }
2126 { $as_echo "$as_me:$LINENO: result: no" >&5
2127 $as_echo "no" >&6; }
2131 test -n "$ac_ct_CC" && break
2134 if test "x$ac_ct_CC" = x; then
2137 case $cross_compiling:$ac_tool_warned in
2139 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2140 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2141 ac_tool_warned=yes ;;
2150 test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2151 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2152 { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2153 See \`config.log' for more details." >&5
2154 $as_echo "$as_me: error: no acceptable C compiler found in \$PATH
2155 See \`config.log' for more details." >&2;}
2156 { (exit 1); exit 1; }; }; }
2158 # Provide some information about the compiler.
2159 $as_echo "$as_me:$LINENO: checking for C compiler version" >&5
2162 { (ac_try="$ac_compiler --version >&5"
2164 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2165 *) ac_try_echo=$ac_try;;
2167 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2168 $as_echo "$ac_try_echo") >&5
2169 (eval "$ac_compiler --version >&5") 2>&5
2171 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2172 (exit $ac_status); }
2173 { (ac_try="$ac_compiler -v >&5"
2175 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2176 *) ac_try_echo=$ac_try;;
2178 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2179 $as_echo "$ac_try_echo") >&5
2180 (eval "$ac_compiler -v >&5") 2>&5
2182 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2183 (exit $ac_status); }
2184 { (ac_try="$ac_compiler -V >&5"
2186 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2187 *) ac_try_echo=$ac_try;;
2189 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2190 $as_echo "$ac_try_echo") >&5
2191 (eval "$ac_compiler -V >&5") 2>&5
2193 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2194 (exit $ac_status); }
2196 cat >conftest.$ac_ext <<_ACEOF
2199 cat confdefs.h >>conftest.$ac_ext
2200 cat >>conftest.$ac_ext <<_ACEOF
2201 /* end confdefs.h. */
2211 ac_clean_files_save=$ac_clean_files
2212 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2213 # Try to create an executable without -o first, disregard a.out.
2214 # It will help us diagnose broken compilers, and finding out an intuition
2216 { $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2217 $as_echo_n "checking for C compiler default output file name... " >&6; }
2218 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2220 # The possible output files:
2221 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2224 for ac_file in $ac_files
2227 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2228 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2233 if { (ac_try="$ac_link_default"
2235 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2236 *) ac_try_echo=$ac_try;;
2238 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2239 $as_echo "$ac_try_echo") >&5
2240 (eval "$ac_link_default") 2>&5
2242 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2243 (exit $ac_status); }; then
2244 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2245 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2246 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2247 # so that the user can short-circuit this test for compilers unknown to
2249 for ac_file in $ac_files ''
2251 test -f "$ac_file" || continue
2253 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2256 # We found the default executable, but exeext='' is most
2260 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2262 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2264 # We set ac_cv_exeext here because the later test for it is not
2265 # safe: cross compilers may not add the suffix if given an `-o'
2266 # argument, so we may need to know it at that point already.
2267 # Even if this section looks crufty: it has the advantage of
2274 test "$ac_cv_exeext" = no && ac_cv_exeext=
2280 { $as_echo "$as_me:$LINENO: result: $ac_file" >&5
2281 $as_echo "$ac_file" >&6; }
2282 if test -z "$ac_file"; then
2283 $as_echo "$as_me: failed program was:" >&5
2284 sed 's/^/| /' conftest.$ac_ext >&5
2286 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2287 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2288 { { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables
2289 See \`config.log' for more details." >&5
2290 $as_echo "$as_me: error: C compiler cannot create executables
2291 See \`config.log' for more details." >&2;}
2292 { (exit 77); exit 77; }; }; }
2295 ac_exeext=$ac_cv_exeext
2297 # Check that the compiler produces executables we can run. If not, either
2298 # the compiler is broken, or we cross compile.
2299 { $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2300 $as_echo_n "checking whether the C compiler works... " >&6; }
2301 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2302 # If not cross compiling, check that we can run a simple program.
2303 if test "$cross_compiling" != yes; then
2304 if { ac_try='./$ac_file'
2305 { (case "(($ac_try" in
2306 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2307 *) ac_try_echo=$ac_try;;
2309 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2310 $as_echo "$ac_try_echo") >&5
2311 (eval "$ac_try") 2>&5
2313 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2314 (exit $ac_status); }; }; then
2317 if test "$cross_compiling" = maybe; then
2320 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2321 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2322 { { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs.
2323 If you meant to cross compile, use \`--host'.
2324 See \`config.log' for more details." >&5
2325 $as_echo "$as_me: error: cannot run C compiled programs.
2326 If you meant to cross compile, use \`--host'.
2327 See \`config.log' for more details." >&2;}
2328 { (exit 1); exit 1; }; }; }
2332 { $as_echo "$as_me:$LINENO: result: yes" >&5
2333 $as_echo "yes" >&6; }
2335 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
2336 ac_clean_files=$ac_clean_files_save
2337 # Check that the compiler produces executables we can run. If not, either
2338 # the compiler is broken, or we cross compile.
2339 { $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2340 $as_echo_n "checking whether we are cross compiling... " >&6; }
2341 { $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5
2342 $as_echo "$cross_compiling" >&6; }
2344 { $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5
2345 $as_echo_n "checking for suffix of executables... " >&6; }
2346 if { (ac_try="$ac_link"
2348 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2349 *) ac_try_echo=$ac_try;;
2351 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2352 $as_echo "$ac_try_echo") >&5
2353 (eval "$ac_link") 2>&5
2355 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2356 (exit $ac_status); }; then
2357 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2358 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2359 # work properly (i.e., refer to `conftest.exe'), while it won't with
2361 for ac_file in conftest.exe conftest conftest.*; do
2362 test -f "$ac_file" || continue
2364 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2365 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2371 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2372 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2373 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2374 See \`config.log' for more details." >&5
2375 $as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2376 See \`config.log' for more details." >&2;}
2377 { (exit 1); exit 1; }; }; }
2380 rm -f conftest$ac_cv_exeext
2381 { $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2382 $as_echo "$ac_cv_exeext" >&6; }
2384 rm -f conftest.$ac_ext
2385 EXEEXT=$ac_cv_exeext
2387 { $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5
2388 $as_echo_n "checking for suffix of object files... " >&6; }
2389 if test "${ac_cv_objext+set}" = set; then
2390 $as_echo_n "(cached) " >&6
2392 cat >conftest.$ac_ext <<_ACEOF
2395 cat confdefs.h >>conftest.$ac_ext
2396 cat >>conftest.$ac_ext <<_ACEOF
2397 /* end confdefs.h. */
2407 rm -f conftest.o conftest.obj
2408 if { (ac_try="$ac_compile"
2410 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2411 *) ac_try_echo=$ac_try;;
2413 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2414 $as_echo "$ac_try_echo") >&5
2415 (eval "$ac_compile") 2>&5
2417 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2418 (exit $ac_status); }; then
2419 for ac_file in conftest.o conftest.obj conftest.*; do
2420 test -f "$ac_file" || continue;
2422 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
2423 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2428 $as_echo "$as_me: failed program was:" >&5
2429 sed 's/^/| /' conftest.$ac_ext >&5
2431 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2432 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2433 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2434 See \`config.log' for more details." >&5
2435 $as_echo "$as_me: error: cannot compute suffix of object files: cannot compile
2436 See \`config.log' for more details." >&2;}
2437 { (exit 1); exit 1; }; }; }
2440 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2442 { $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2443 $as_echo "$ac_cv_objext" >&6; }
2444 OBJEXT=$ac_cv_objext
2446 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2447 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
2448 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2449 $as_echo_n "(cached) " >&6
2451 cat >conftest.$ac_ext <<_ACEOF
2454 cat confdefs.h >>conftest.$ac_ext
2455 cat >>conftest.$ac_ext <<_ACEOF
2456 /* end confdefs.h. */
2469 rm -f conftest.$ac_objext
2470 if { (ac_try="$ac_compile"
2472 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2473 *) ac_try_echo=$ac_try;;
2475 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2476 $as_echo "$ac_try_echo") >&5
2477 (eval "$ac_compile") 2>conftest.er1
2479 grep -v '^ *+' conftest.er1 >conftest.err
2481 cat conftest.err >&5
2482 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2483 (exit $ac_status); } && {
2484 test -z "$ac_c_werror_flag" ||
2485 test ! -s conftest.err
2486 } && test -s conftest.$ac_objext; then
2489 $as_echo "$as_me: failed program was:" >&5
2490 sed 's/^/| /' conftest.$ac_ext >&5
2495 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2496 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2499 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2500 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
2501 if test $ac_compiler_gnu = yes; then
2506 ac_test_CFLAGS=${CFLAGS+set}
2507 ac_save_CFLAGS=$CFLAGS
2508 { $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2509 $as_echo_n "checking whether $CC accepts -g... " >&6; }
2510 if test "${ac_cv_prog_cc_g+set}" = set; then
2511 $as_echo_n "(cached) " >&6
2513 ac_save_c_werror_flag=$ac_c_werror_flag
2514 ac_c_werror_flag=yes
2517 cat >conftest.$ac_ext <<_ACEOF
2520 cat confdefs.h >>conftest.$ac_ext
2521 cat >>conftest.$ac_ext <<_ACEOF
2522 /* end confdefs.h. */
2532 rm -f conftest.$ac_objext
2533 if { (ac_try="$ac_compile"
2535 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2536 *) ac_try_echo=$ac_try;;
2538 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2539 $as_echo "$ac_try_echo") >&5
2540 (eval "$ac_compile") 2>conftest.er1
2542 grep -v '^ *+' conftest.er1 >conftest.err
2544 cat conftest.err >&5
2545 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2546 (exit $ac_status); } && {
2547 test -z "$ac_c_werror_flag" ||
2548 test ! -s conftest.err
2549 } && test -s conftest.$ac_objext; then
2552 $as_echo "$as_me: failed program was:" >&5
2553 sed 's/^/| /' conftest.$ac_ext >&5
2556 cat >conftest.$ac_ext <<_ACEOF
2559 cat confdefs.h >>conftest.$ac_ext
2560 cat >>conftest.$ac_ext <<_ACEOF
2561 /* end confdefs.h. */
2571 rm -f conftest.$ac_objext
2572 if { (ac_try="$ac_compile"
2574 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2575 *) ac_try_echo=$ac_try;;
2577 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2578 $as_echo "$ac_try_echo") >&5
2579 (eval "$ac_compile") 2>conftest.er1
2581 grep -v '^ *+' conftest.er1 >conftest.err
2583 cat conftest.err >&5
2584 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2585 (exit $ac_status); } && {
2586 test -z "$ac_c_werror_flag" ||
2587 test ! -s conftest.err
2588 } && test -s conftest.$ac_objext; then
2591 $as_echo "$as_me: failed program was:" >&5
2592 sed 's/^/| /' conftest.$ac_ext >&5
2594 ac_c_werror_flag=$ac_save_c_werror_flag
2596 cat >conftest.$ac_ext <<_ACEOF
2599 cat confdefs.h >>conftest.$ac_ext
2600 cat >>conftest.$ac_ext <<_ACEOF
2601 /* end confdefs.h. */
2611 rm -f conftest.$ac_objext
2612 if { (ac_try="$ac_compile"
2614 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2615 *) ac_try_echo=$ac_try;;
2617 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2618 $as_echo "$ac_try_echo") >&5
2619 (eval "$ac_compile") 2>conftest.er1
2621 grep -v '^ *+' conftest.er1 >conftest.err
2623 cat conftest.err >&5
2624 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2625 (exit $ac_status); } && {
2626 test -z "$ac_c_werror_flag" ||
2627 test ! -s conftest.err
2628 } && test -s conftest.$ac_objext; then
2631 $as_echo "$as_me: failed program was:" >&5
2632 sed 's/^/| /' conftest.$ac_ext >&5
2637 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2640 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2643 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2644 ac_c_werror_flag=$ac_save_c_werror_flag
2646 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2647 $as_echo "$ac_cv_prog_cc_g" >&6; }
2648 if test "$ac_test_CFLAGS" = set; then
2649 CFLAGS=$ac_save_CFLAGS
2650 elif test $ac_cv_prog_cc_g = yes; then
2651 if test "$GCC" = yes; then
2657 if test "$GCC" = yes; then
2663 { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2664 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
2665 if test "${ac_cv_prog_cc_c89+set}" = set; then
2666 $as_echo_n "(cached) " >&6
2668 ac_cv_prog_cc_c89=no
2670 cat >conftest.$ac_ext <<_ACEOF
2673 cat confdefs.h >>conftest.$ac_ext
2674 cat >>conftest.$ac_ext <<_ACEOF
2675 /* end confdefs.h. */
2678 #include <sys/types.h>
2679 #include <sys/stat.h>
2680 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2681 struct buf { int x; };
2682 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2683 static char *e (p, i)
2689 static char *f (char * (*g) (char **, int), char **p, ...)
2694 s = g (p, va_arg (v,int));
2699 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2700 function prototypes and stuff, but not '\xHH' hex character constants.
2701 These don't provoke an error unfortunately, instead are silently treated
2702 as 'x'. The following induces an error, until -std is added to get
2703 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2704 array size at least. It's necessary to write '\x00'==0 to get something
2705 that's true only with -std. */
2706 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2708 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2709 inside strings and character constants. */
2711 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2713 int test (int i, double x);
2714 struct s1 {int (*f) (int a);};
2715 struct s2 {int (*f) (double a);};
2716 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2722 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2727 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2728 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2730 CC="$ac_save_CC $ac_arg"
2731 rm -f conftest.$ac_objext
2732 if { (ac_try="$ac_compile"
2734 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2735 *) ac_try_echo=$ac_try;;
2737 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2738 $as_echo "$ac_try_echo") >&5
2739 (eval "$ac_compile") 2>conftest.er1
2741 grep -v '^ *+' conftest.er1 >conftest.err
2743 cat conftest.err >&5
2744 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2745 (exit $ac_status); } && {
2746 test -z "$ac_c_werror_flag" ||
2747 test ! -s conftest.err
2748 } && test -s conftest.$ac_objext; then
2749 ac_cv_prog_cc_c89=$ac_arg
2751 $as_echo "$as_me: failed program was:" >&5
2752 sed 's/^/| /' conftest.$ac_ext >&5
2757 rm -f core conftest.err conftest.$ac_objext
2758 test "x$ac_cv_prog_cc_c89" != "xno" && break
2760 rm -f conftest.$ac_ext
2765 case "x$ac_cv_prog_cc_c89" in
2767 { $as_echo "$as_me:$LINENO: result: none needed" >&5
2768 $as_echo "none needed" >&6; } ;;
2770 { $as_echo "$as_me:$LINENO: result: unsupported" >&5
2771 $as_echo "unsupported" >&6; } ;;
2773 CC="$CC $ac_cv_prog_cc_c89"
2774 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
2775 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
2780 ac_cpp='$CPP $CPPFLAGS'
2781 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2782 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2783 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2787 ac_cpp='$CPP $CPPFLAGS'
2788 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2789 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2790 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2791 { $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2792 $as_echo_n "checking how to run the C preprocessor... " >&6; }
2793 # On Suns, sometimes $CPP names a directory.
2794 if test -n "$CPP" && test -d "$CPP"; then
2797 if test -z "$CPP"; then
2798 if test "${ac_cv_prog_CPP+set}" = set; then
2799 $as_echo_n "(cached) " >&6
2801 # Double quotes because CPP needs to be expanded
2802 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2805 for ac_c_preproc_warn_flag in '' yes
2807 # Use a header file that comes with gcc, so configuring glibc
2808 # with a fresh cross-compiler works.
2809 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2810 # <limits.h> exists even on freestanding compilers.
2811 # On the NeXT, cc -E runs the code through the compiler's parser,
2812 # not just through cpp. "Syntax error" is here to catch this case.
2813 cat >conftest.$ac_ext <<_ACEOF
2816 cat confdefs.h >>conftest.$ac_ext
2817 cat >>conftest.$ac_ext <<_ACEOF
2818 /* end confdefs.h. */
2820 # include <limits.h>
2822 # include <assert.h>
2826 if { (ac_try="$ac_cpp conftest.$ac_ext"
2828 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2829 *) ac_try_echo=$ac_try;;
2831 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2832 $as_echo "$ac_try_echo") >&5
2833 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
2835 grep -v '^ *+' conftest.er1 >conftest.err
2837 cat conftest.err >&5
2838 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2839 (exit $ac_status); } >/dev/null && {
2840 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2841 test ! -s conftest.err
2845 $as_echo "$as_me: failed program was:" >&5
2846 sed 's/^/| /' conftest.$ac_ext >&5
2848 # Broken: fails on valid input.
2852 rm -f conftest.err conftest.$ac_ext
2854 # OK, works on sane cases. Now check whether nonexistent headers
2855 # can be detected and how.
2856 cat >conftest.$ac_ext <<_ACEOF
2859 cat confdefs.h >>conftest.$ac_ext
2860 cat >>conftest.$ac_ext <<_ACEOF
2861 /* end confdefs.h. */
2862 #include <ac_nonexistent.h>
2864 if { (ac_try="$ac_cpp conftest.$ac_ext"
2866 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2867 *) ac_try_echo=$ac_try;;
2869 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2870 $as_echo "$ac_try_echo") >&5
2871 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
2873 grep -v '^ *+' conftest.er1 >conftest.err
2875 cat conftest.err >&5
2876 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2877 (exit $ac_status); } >/dev/null && {
2878 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2879 test ! -s conftest.err
2881 # Broken: success on invalid input.
2884 $as_echo "$as_me: failed program was:" >&5
2885 sed 's/^/| /' conftest.$ac_ext >&5
2887 # Passes both tests.
2892 rm -f conftest.err conftest.$ac_ext
2895 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2896 rm -f conftest.err conftest.$ac_ext
2897 if $ac_preproc_ok; then
2909 { $as_echo "$as_me:$LINENO: result: $CPP" >&5
2910 $as_echo "$CPP" >&6; }
2912 for ac_c_preproc_warn_flag in '' yes
2914 # Use a header file that comes with gcc, so configuring glibc
2915 # with a fresh cross-compiler works.
2916 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2917 # <limits.h> exists even on freestanding compilers.
2918 # On the NeXT, cc -E runs the code through the compiler's parser,
2919 # not just through cpp. "Syntax error" is here to catch this case.
2920 cat >conftest.$ac_ext <<_ACEOF
2923 cat confdefs.h >>conftest.$ac_ext
2924 cat >>conftest.$ac_ext <<_ACEOF
2925 /* end confdefs.h. */
2927 # include <limits.h>
2929 # include <assert.h>
2933 if { (ac_try="$ac_cpp conftest.$ac_ext"
2935 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2936 *) ac_try_echo=$ac_try;;
2938 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2939 $as_echo "$ac_try_echo") >&5
2940 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
2942 grep -v '^ *+' conftest.er1 >conftest.err
2944 cat conftest.err >&5
2945 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2946 (exit $ac_status); } >/dev/null && {
2947 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2948 test ! -s conftest.err
2952 $as_echo "$as_me: failed program was:" >&5
2953 sed 's/^/| /' conftest.$ac_ext >&5
2955 # Broken: fails on valid input.
2959 rm -f conftest.err conftest.$ac_ext
2961 # OK, works on sane cases. Now check whether nonexistent headers
2962 # can be detected and how.
2963 cat >conftest.$ac_ext <<_ACEOF
2966 cat confdefs.h >>conftest.$ac_ext
2967 cat >>conftest.$ac_ext <<_ACEOF
2968 /* end confdefs.h. */
2969 #include <ac_nonexistent.h>
2971 if { (ac_try="$ac_cpp conftest.$ac_ext"
2973 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2974 *) ac_try_echo=$ac_try;;
2976 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2977 $as_echo "$ac_try_echo") >&5
2978 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
2980 grep -v '^ *+' conftest.er1 >conftest.err
2982 cat conftest.err >&5
2983 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2984 (exit $ac_status); } >/dev/null && {
2985 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2986 test ! -s conftest.err
2988 # Broken: success on invalid input.
2991 $as_echo "$as_me: failed program was:" >&5
2992 sed 's/^/| /' conftest.$ac_ext >&5
2994 # Passes both tests.
2999 rm -f conftest.err conftest.$ac_ext
3002 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3003 rm -f conftest.err conftest.$ac_ext
3004 if $ac_preproc_ok; then
3007 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3008 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3009 { { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3010 See \`config.log' for more details." >&5
3011 $as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3012 See \`config.log' for more details." >&2;}
3013 { (exit 1); exit 1; }; }; }
3017 ac_cpp='$CPP $CPPFLAGS'
3018 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3019 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3020 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3023 { $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3024 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3025 if test "${ac_cv_path_GREP+set}" = set; then
3026 $as_echo_n "(cached) " >&6
3028 if test -z "$GREP"; then
3029 ac_path_GREP_found=false
3030 # Loop through the user's path and test for each of PROGNAME-LIST
3031 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3032 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3035 test -z "$as_dir" && as_dir=.
3036 for ac_prog in grep ggrep; do
3037 for ac_exec_ext in '' $ac_executable_extensions; do
3038 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3039 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3040 # Check for GNU ac_path_GREP and select it if it is found.
3041 # Check for GNU $ac_path_GREP
3042 case `"$ac_path_GREP" --version 2>&1` in
3044 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3047 $as_echo_n 0123456789 >"conftest.in"
3050 cat "conftest.in" "conftest.in" >"conftest.tmp"
3051 mv "conftest.tmp" "conftest.in"
3052 cp "conftest.in" "conftest.nl"
3053 $as_echo 'GREP' >> "conftest.nl"
3054 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3055 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3056 ac_count=`expr $ac_count + 1`
3057 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3058 # Best one so far, save it but keep looking for a better one
3059 ac_cv_path_GREP="$ac_path_GREP"
3060 ac_path_GREP_max=$ac_count
3062 # 10*(2^10) chars as input seems more than enough
3063 test $ac_count -gt 10 && break
3065 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3068 $ac_path_GREP_found && break 3
3073 if test -z "$ac_cv_path_GREP"; then
3074 { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3075 $as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3076 { (exit 1); exit 1; }; }
3079 ac_cv_path_GREP=$GREP
3083 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3084 $as_echo "$ac_cv_path_GREP" >&6; }
3085 GREP="$ac_cv_path_GREP"
3088 { $as_echo "$as_me:$LINENO: checking for egrep" >&5
3089 $as_echo_n "checking for egrep... " >&6; }
3090 if test "${ac_cv_path_EGREP+set}" = set; then
3091 $as_echo_n "(cached) " >&6
3093 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3094 then ac_cv_path_EGREP="$GREP -E"
3096 if test -z "$EGREP"; then
3097 ac_path_EGREP_found=false
3098 # Loop through the user's path and test for each of PROGNAME-LIST
3099 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3100 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3103 test -z "$as_dir" && as_dir=.
3104 for ac_prog in egrep; do
3105 for ac_exec_ext in '' $ac_executable_extensions; do
3106 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3107 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3108 # Check for GNU ac_path_EGREP and select it if it is found.
3109 # Check for GNU $ac_path_EGREP
3110 case `"$ac_path_EGREP" --version 2>&1` in
3112 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3115 $as_echo_n 0123456789 >"conftest.in"
3118 cat "conftest.in" "conftest.in" >"conftest.tmp"
3119 mv "conftest.tmp" "conftest.in"
3120 cp "conftest.in" "conftest.nl"
3121 $as_echo 'EGREP' >> "conftest.nl"
3122 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3123 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3124 ac_count=`expr $ac_count + 1`
3125 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3126 # Best one so far, save it but keep looking for a better one
3127 ac_cv_path_EGREP="$ac_path_EGREP"
3128 ac_path_EGREP_max=$ac_count
3130 # 10*(2^10) chars as input seems more than enough
3131 test $ac_count -gt 10 && break
3133 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3136 $ac_path_EGREP_found && break 3
3141 if test -z "$ac_cv_path_EGREP"; then
3142 { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3143 $as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3144 { (exit 1); exit 1; }; }
3147 ac_cv_path_EGREP=$EGREP
3152 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3153 $as_echo "$ac_cv_path_EGREP" >&6; }
3154 EGREP="$ac_cv_path_EGREP"
3157 { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3158 $as_echo_n "checking for ANSI C header files... " >&6; }
3159 if test "${ac_cv_header_stdc+set}" = set; then
3160 $as_echo_n "(cached) " >&6
3162 cat >conftest.$ac_ext <<_ACEOF
3165 cat confdefs.h >>conftest.$ac_ext
3166 cat >>conftest.$ac_ext <<_ACEOF
3167 /* end confdefs.h. */
3181 rm -f conftest.$ac_objext
3182 if { (ac_try="$ac_compile"
3184 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3185 *) ac_try_echo=$ac_try;;
3187 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3188 $as_echo "$ac_try_echo") >&5
3189 (eval "$ac_compile") 2>conftest.er1
3191 grep -v '^ *+' conftest.er1 >conftest.err
3193 cat conftest.err >&5
3194 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3195 (exit $ac_status); } && {
3196 test -z "$ac_c_werror_flag" ||
3197 test ! -s conftest.err
3198 } && test -s conftest.$ac_objext; then
3199 ac_cv_header_stdc=yes
3201 $as_echo "$as_me: failed program was:" >&5
3202 sed 's/^/| /' conftest.$ac_ext >&5
3204 ac_cv_header_stdc=no
3207 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3209 if test $ac_cv_header_stdc = yes; then
3210 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3211 cat >conftest.$ac_ext <<_ACEOF
3214 cat confdefs.h >>conftest.$ac_ext
3215 cat >>conftest.$ac_ext <<_ACEOF
3216 /* end confdefs.h. */
3220 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3221 $EGREP "memchr" >/dev/null 2>&1; then
3224 ac_cv_header_stdc=no
3230 if test $ac_cv_header_stdc = yes; then
3231 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3232 cat >conftest.$ac_ext <<_ACEOF
3235 cat confdefs.h >>conftest.$ac_ext
3236 cat >>conftest.$ac_ext <<_ACEOF
3237 /* end confdefs.h. */
3241 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3242 $EGREP "free" >/dev/null 2>&1; then
3245 ac_cv_header_stdc=no
3251 if test $ac_cv_header_stdc = yes; then
3252 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3253 if test "$cross_compiling" = yes; then
3256 cat >conftest.$ac_ext <<_ACEOF
3259 cat confdefs.h >>conftest.$ac_ext
3260 cat >>conftest.$ac_ext <<_ACEOF
3261 /* end confdefs.h. */
3264 #if ((' ' & 0x0FF) == 0x020)
3265 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3266 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3268 # define ISLOWER(c) \
3269 (('a' <= (c) && (c) <= 'i') \
3270 || ('j' <= (c) && (c) <= 'r') \
3271 || ('s' <= (c) && (c) <= 'z'))
3272 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3275 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3280 for (i = 0; i < 256; i++)
3281 if (XOR (islower (i), ISLOWER (i))
3282 || toupper (i) != TOUPPER (i))
3287 rm -f conftest$ac_exeext
3288 if { (ac_try="$ac_link"
3290 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3291 *) ac_try_echo=$ac_try;;
3293 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3294 $as_echo "$ac_try_echo") >&5
3295 (eval "$ac_link") 2>&5
3297 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3298 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3299 { (case "(($ac_try" in
3300 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3301 *) ac_try_echo=$ac_try;;
3303 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3304 $as_echo "$ac_try_echo") >&5
3305 (eval "$ac_try") 2>&5
3307 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3308 (exit $ac_status); }; }; then
3311 $as_echo "$as_me: program exited with status $ac_status" >&5
3312 $as_echo "$as_me: failed program was:" >&5
3313 sed 's/^/| /' conftest.$ac_ext >&5
3316 ac_cv_header_stdc=no
3318 rm -rf conftest.dSYM
3319 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3325 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3326 $as_echo "$ac_cv_header_stdc" >&6; }
3327 if test $ac_cv_header_stdc = yes; then
3329 cat >>confdefs.h <<\_ACEOF
3330 #define STDC_HEADERS 1
3335 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3345 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3346 inttypes.h stdint.h unistd.h
3348 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
3349 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
3350 $as_echo_n "checking for $ac_header... " >&6; }
3351 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
3352 $as_echo_n "(cached) " >&6
3354 cat >conftest.$ac_ext <<_ACEOF
3357 cat confdefs.h >>conftest.$ac_ext
3358 cat >>conftest.$ac_ext <<_ACEOF
3359 /* end confdefs.h. */
3360 $ac_includes_default
3362 #include <$ac_header>
3364 rm -f conftest.$ac_objext
3365 if { (ac_try="$ac_compile"
3367 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3368 *) ac_try_echo=$ac_try;;
3370 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3371 $as_echo "$ac_try_echo") >&5
3372 (eval "$ac_compile") 2>conftest.er1
3374 grep -v '^ *+' conftest.er1 >conftest.err
3376 cat conftest.err >&5
3377 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3378 (exit $ac_status); } && {
3379 test -z "$ac_c_werror_flag" ||
3380 test ! -s conftest.err
3381 } && test -s conftest.$ac_objext; then
3382 eval "$as_ac_Header=yes"
3384 $as_echo "$as_me: failed program was:" >&5
3385 sed 's/^/| /' conftest.$ac_ext >&5
3387 eval "$as_ac_Header=no"
3390 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3392 ac_res=`eval 'as_val=${'$as_ac_Header'}
3393 $as_echo "$as_val"'`
3394 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
3395 $as_echo "$ac_res" >&6; }
3396 as_val=`eval 'as_val=${'$as_ac_Header'}
3397 $as_echo "$as_val"'`
3398 if test "x$as_val" = x""yes; then
3399 cat >>confdefs.h <<_ACEOF
3400 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
3409 if test "${ac_cv_header_minix_config_h+set}" = set; then
3410 { $as_echo "$as_me:$LINENO: checking for minix/config.h" >&5
3411 $as_echo_n "checking for minix/config.h... " >&6; }
3412 if test "${ac_cv_header_minix_config_h+set}" = set; then
3413 $as_echo_n "(cached) " >&6
3415 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
3416 $as_echo "$ac_cv_header_minix_config_h" >&6; }
3418 # Is the header compilable?
3419 { $as_echo "$as_me:$LINENO: checking minix/config.h usability" >&5
3420 $as_echo_n "checking minix/config.h usability... " >&6; }
3421 cat >conftest.$ac_ext <<_ACEOF
3424 cat confdefs.h >>conftest.$ac_ext
3425 cat >>conftest.$ac_ext <<_ACEOF
3426 /* end confdefs.h. */
3427 $ac_includes_default
3428 #include <minix/config.h>
3430 rm -f conftest.$ac_objext
3431 if { (ac_try="$ac_compile"
3433 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3434 *) ac_try_echo=$ac_try;;
3436 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3437 $as_echo "$ac_try_echo") >&5
3438 (eval "$ac_compile") 2>conftest.er1
3440 grep -v '^ *+' conftest.er1 >conftest.err
3442 cat conftest.err >&5
3443 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3444 (exit $ac_status); } && {
3445 test -z "$ac_c_werror_flag" ||
3446 test ! -s conftest.err
3447 } && test -s conftest.$ac_objext; then
3448 ac_header_compiler=yes
3450 $as_echo "$as_me: failed program was:" >&5
3451 sed 's/^/| /' conftest.$ac_ext >&5
3453 ac_header_compiler=no
3456 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3457 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3458 $as_echo "$ac_header_compiler" >&6; }
3460 # Is the header present?
3461 { $as_echo "$as_me:$LINENO: checking minix/config.h presence" >&5
3462 $as_echo_n "checking minix/config.h presence... " >&6; }
3463 cat >conftest.$ac_ext <<_ACEOF
3466 cat confdefs.h >>conftest.$ac_ext
3467 cat >>conftest.$ac_ext <<_ACEOF
3468 /* end confdefs.h. */
3469 #include <minix/config.h>
3471 if { (ac_try="$ac_cpp conftest.$ac_ext"
3473 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3474 *) ac_try_echo=$ac_try;;
3476 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3477 $as_echo "$ac_try_echo") >&5
3478 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3480 grep -v '^ *+' conftest.er1 >conftest.err
3482 cat conftest.err >&5
3483 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3484 (exit $ac_status); } >/dev/null && {
3485 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3486 test ! -s conftest.err
3488 ac_header_preproc=yes
3490 $as_echo "$as_me: failed program was:" >&5
3491 sed 's/^/| /' conftest.$ac_ext >&5
3493 ac_header_preproc=no
3496 rm -f conftest.err conftest.$ac_ext
3497 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3498 $as_echo "$ac_header_preproc" >&6; }
3500 # So? What about this header?
3501 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
3503 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&5
3504 $as_echo "$as_me: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
3505 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the compiler's result" >&5
3506 $as_echo "$as_me: WARNING: minix/config.h: proceeding with the compiler's result" >&2;}
3507 ac_header_preproc=yes
3510 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: present but cannot be compiled" >&5
3511 $as_echo "$as_me: WARNING: minix/config.h: present but cannot be compiled" >&2;}
3512 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: check for missing prerequisite headers?" >&5
3513 $as_echo "$as_me: WARNING: minix/config.h: check for missing prerequisite headers?" >&2;}
3514 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: see the Autoconf documentation" >&5
3515 $as_echo "$as_me: WARNING: minix/config.h: see the Autoconf documentation" >&2;}
3516 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&5
3517 $as_echo "$as_me: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&2;}
3518 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5
3519 $as_echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;}
3520 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: in the future, the compiler will take precedence" >&5
3521 $as_echo "$as_me: WARNING: minix/config.h: in the future, the compiler will take precedence" >&2;}
3523 ## ----------------------------------- ##
3524 ## Report this to andreas@eversberg.eu ##
3525 ## ----------------------------------- ##
3527 ) | sed "s/^/$as_me: WARNING: /" >&2
3530 { $as_echo "$as_me:$LINENO: checking for minix/config.h" >&5
3531 $as_echo_n "checking for minix/config.h... " >&6; }
3532 if test "${ac_cv_header_minix_config_h+set}" = set; then
3533 $as_echo_n "(cached) " >&6
3535 ac_cv_header_minix_config_h=$ac_header_preproc
3537 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
3538 $as_echo "$ac_cv_header_minix_config_h" >&6; }
3541 if test "x$ac_cv_header_minix_config_h" = x""yes; then
3548 if test "$MINIX" = yes; then
3550 cat >>confdefs.h <<\_ACEOF
3551 #define _POSIX_SOURCE 1
3555 cat >>confdefs.h <<\_ACEOF
3556 #define _POSIX_1_SOURCE 2
3560 cat >>confdefs.h <<\_ACEOF
3568 { $as_echo "$as_me:$LINENO: checking whether it is safe to define __EXTENSIONS__" >&5
3569 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
3570 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then
3571 $as_echo_n "(cached) " >&6
3573 cat >conftest.$ac_ext <<_ACEOF
3576 cat confdefs.h >>conftest.$ac_ext
3577 cat >>conftest.$ac_ext <<_ACEOF
3578 /* end confdefs.h. */
3580 # define __EXTENSIONS__ 1
3581 $ac_includes_default
3590 rm -f conftest.$ac_objext
3591 if { (ac_try="$ac_compile"
3593 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3594 *) ac_try_echo=$ac_try;;
3596 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3597 $as_echo "$ac_try_echo") >&5
3598 (eval "$ac_compile") 2>conftest.er1
3600 grep -v '^ *+' conftest.er1 >conftest.err
3602 cat conftest.err >&5
3603 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3604 (exit $ac_status); } && {
3605 test -z "$ac_c_werror_flag" ||
3606 test ! -s conftest.err
3607 } && test -s conftest.$ac_objext; then
3608 ac_cv_safe_to_define___extensions__=yes
3610 $as_echo "$as_me: failed program was:" >&5
3611 sed 's/^/| /' conftest.$ac_ext >&5
3613 ac_cv_safe_to_define___extensions__=no
3616 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3618 { $as_echo "$as_me:$LINENO: result: $ac_cv_safe_to_define___extensions__" >&5
3619 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
3620 test $ac_cv_safe_to_define___extensions__ = yes &&
3621 cat >>confdefs.h <<\_ACEOF
3622 #define __EXTENSIONS__ 1
3625 cat >>confdefs.h <<\_ACEOF
3626 #define _ALL_SOURCE 1
3629 cat >>confdefs.h <<\_ACEOF
3630 #define _GNU_SOURCE 1
3633 cat >>confdefs.h <<\_ACEOF
3634 #define _POSIX_PTHREAD_SEMANTICS 1
3637 cat >>confdefs.h <<\_ACEOF
3638 #define _TANDEM_SOURCE 1
3642 # AC_USE_SYSTEM_EXTENSIONS
3643 am__api_version="1.9"
3645 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
3646 if test -f "$ac_dir/install-sh"; then
3648 ac_install_sh="$ac_aux_dir/install-sh -c"
3650 elif test -f "$ac_dir/install.sh"; then
3652 ac_install_sh="$ac_aux_dir/install.sh -c"
3654 elif test -f "$ac_dir/shtool"; then
3656 ac_install_sh="$ac_aux_dir/shtool install -c"
3660 if test -z "$ac_aux_dir"; then
3661 { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
3662 $as_echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
3663 { (exit 1); exit 1; }; }
3666 # These three variables are undocumented and unsupported,
3667 # and are intended to be withdrawn in a future Autoconf release.
3668 # They can cause serious problems if a builder's source tree is in a directory
3669 # whose full name contains unusual characters.
3670 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3671 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3672 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3675 # Find a good install program. We prefer a C program (faster),
3676 # so one script is as good as another. But avoid the broken or
3677 # incompatible versions:
3678 # SysV /etc/install, /usr/sbin/install
3679 # SunOS /usr/etc/install
3680 # IRIX /sbin/install
3682 # AmigaOS /C/install, which installs bootblocks on floppy discs
3683 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3684 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3685 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3686 # OS/2's system install, which has a completely different semantic
3687 # ./install, which can be erroneously created by make from ./install.sh.
3688 # Reject install programs that cannot install multiple files.
3689 { $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3690 $as_echo_n "checking for a BSD-compatible install... " >&6; }
3691 if test -z "$INSTALL"; then
3692 if test "${ac_cv_path_install+set}" = set; then
3693 $as_echo_n "(cached) " >&6
3695 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3699 test -z "$as_dir" && as_dir=.
3700 # Account for people who put trailing slashes in PATH elements.
3702 ./ | .// | /cC/* | \
3703 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3704 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3707 # OSF1 and SCO ODT 3.0 have their own names for install.
3708 # Don't use installbsd from OSF since it installs stuff as root
3710 for ac_prog in ginstall scoinst install; do
3711 for ac_exec_ext in '' $ac_executable_extensions; do
3712 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
3713 if test $ac_prog = install &&
3714 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3715 # AIX install. It has an incompatible calling convention.
3717 elif test $ac_prog = install &&
3718 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3719 # program-specific install script used by HP pwplus--don't use.
3722 rm -rf conftest.one conftest.two conftest.dir
3723 echo one > conftest.one
3724 echo two > conftest.two
3726 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3727 test -s conftest.one && test -s conftest.two &&
3728 test -s conftest.dir/conftest.one &&
3729 test -s conftest.dir/conftest.two
3731 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3744 rm -rf conftest.one conftest.two conftest.dir
3747 if test "${ac_cv_path_install+set}" = set; then
3748 INSTALL=$ac_cv_path_install
3750 # As a last resort, use the slow shell script. Don't cache a
3751 # value for INSTALL within a source directory, because that will
3752 # break other packages using the cache if that directory is
3753 # removed, or if the value is a relative name.
3754 INSTALL=$ac_install_sh
3757 { $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
3758 $as_echo "$INSTALL" >&6; }
3760 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3761 # It thinks the first close brace ends the variable substitution.
3762 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3764 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3766 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3768 { $as_echo "$as_me:$LINENO: checking whether build environment is sane" >&5
3769 $as_echo_n "checking whether build environment is sane... " >&6; }
3772 echo timestamp > conftest.file
3773 # Do `set' in a subshell so we don't clobber the current shell's
3774 # arguments. Must try -L first in case configure is actually a
3775 # symlink; some systems play weird games with the mod time of symlinks
3776 # (eg FreeBSD returns the mod time of the symlink's containing
3779 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
3780 if test "$*" = "X"; then
3782 set X `ls -t $srcdir/configure conftest.file`
3785 if test "$*" != "X $srcdir/configure conftest.file" \
3786 && test "$*" != "X conftest.file $srcdir/configure"; then
3788 # If neither matched, then we have a broken ls. This can happen
3789 # if, for instance, CONFIG_SHELL is bash and it inherits a
3790 # broken ls alias from the environment. This has actually
3791 # happened. Such a system could not be considered "sane".
3792 { { $as_echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
3793 alias in your environment" >&5
3794 $as_echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
3795 alias in your environment" >&2;}
3796 { (exit 1); exit 1; }; }
3799 test "$2" = conftest.file
3805 { { $as_echo "$as_me:$LINENO: error: newly created file is older than distributed files!
3806 Check your system clock" >&5
3807 $as_echo "$as_me: error: newly created file is older than distributed files!
3808 Check your system clock" >&2;}
3809 { (exit 1); exit 1; }; }
3811 { $as_echo "$as_me:$LINENO: result: yes" >&5
3812 $as_echo "yes" >&6; }
3813 test "$program_prefix" != NONE &&
3814 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3815 # Use a double $ so make ignores it.
3816 test "$program_suffix" != NONE &&
3817 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3818 # Double any \ or $.
3819 # By default was `s,x,x', remove it if useless.
3820 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3821 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3823 # expand $ac_aux_dir to an absolute path
3824 am_aux_dir=`cd $ac_aux_dir && pwd`
3826 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
3827 # Use eval to expand $SHELL
3828 if eval "$MISSING --run true"; then
3829 am_missing_run="$MISSING --run "
3832 { $as_echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
3833 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
3836 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
3837 # We used to keeping the `.' as first argument, in order to
3838 # allow $(mkdir_p) to be used without argument. As in
3839 # $(mkdir_p) $(somedir)
3840 # where $(somedir) is conditionally defined. However this is wrong
3842 # 1. if the package is installed by a user who cannot write `.'
3843 # make install will fail,
3844 # 2. the above comment should most certainly read
3845 # $(mkdir_p) $(DESTDIR)$(somedir)
3846 # so it does not work when $(somedir) is undefined and
3847 # $(DESTDIR) is not.
3848 # To support the latter case, we have to write
3849 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
3850 # so the `.' trick is pointless.
3851 mkdir_p='mkdir -p --'
3853 # On NextStep and OpenStep, the `mkdir' command does not
3854 # recognize any option. It will interpret all options as
3855 # directories to create, and then abort because `.' already
3857 for d in ./-p ./--version;
3859 test -d $d && rmdir $d
3861 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
3862 if test -f "$ac_aux_dir/mkinstalldirs"; then
3863 mkdir_p='$(mkinstalldirs)'
3865 mkdir_p='$(install_sh) -d'
3869 for ac_prog in gawk mawk nawk awk
3871 # Extract the first word of "$ac_prog", so it can be a program name with args.
3872 set dummy $ac_prog; ac_word=$2
3873 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3874 $as_echo_n "checking for $ac_word... " >&6; }
3875 if test "${ac_cv_prog_AWK+set}" = set; then
3876 $as_echo_n "(cached) " >&6
3878 if test -n "$AWK"; then
3879 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3881 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3885 test -z "$as_dir" && as_dir=.
3886 for ac_exec_ext in '' $ac_executable_extensions; do
3887 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3888 ac_cv_prog_AWK="$ac_prog"
3889 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3899 if test -n "$AWK"; then
3900 { $as_echo "$as_me:$LINENO: result: $AWK" >&5
3901 $as_echo "$AWK" >&6; }
3903 { $as_echo "$as_me:$LINENO: result: no" >&5
3904 $as_echo "no" >&6; }
3908 test -n "$AWK" && break
3911 { $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3912 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3914 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3915 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
3916 $as_echo_n "(cached) " >&6
3918 cat >conftest.make <<\_ACEOF
3921 @echo '@@@%%%=$(MAKE)=@@@%%%'
3923 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3924 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3926 eval ac_cv_prog_make_${ac_make}_set=yes;;
3928 eval ac_cv_prog_make_${ac_make}_set=no;;
3932 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3933 { $as_echo "$as_me:$LINENO: result: yes" >&5
3934 $as_echo "yes" >&6; }
3937 { $as_echo "$as_me:$LINENO: result: no" >&5
3938 $as_echo "no" >&6; }
3939 SET_MAKE="MAKE=${MAKE-make}"
3942 rm -rf .tst 2>/dev/null
3943 mkdir .tst 2>/dev/null
3944 if test -d .tst; then
3949 rmdir .tst 2>/dev/null
3951 DEPDIR="${am__leading_dot}deps"
3953 ac_config_commands="$ac_config_commands depfiles"
3956 am_make=${MAKE-make}
3957 cat > confinc << 'END'
3962 # If we don't find an include directive, just comment out the code.
3963 { $as_echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
3964 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3968 # First try GNU make style include.
3969 echo "include confinc" > confmf
3970 # We grep out `Entering directory' and `Leaving directory'
3971 # messages which can occur if `w' ends up in MAKEFLAGS.
3972 # In particular we don't look at `^make:' because GNU make might
3973 # be invoked under some other name (usually "gmake"), in which
3974 # case it prints its new name instead of `make'.
3975 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
3980 # Now try BSD make style include.
3981 if test "$am__include" = "#"; then
3982 echo '.include "confinc"' > confmf
3983 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
3984 am__include=.include
3991 { $as_echo "$as_me:$LINENO: result: $_am_result" >&5
3992 $as_echo "$_am_result" >&6; }
3993 rm -f confinc confmf
3995 # Check whether --enable-dependency-tracking was given.
3996 if test "${enable_dependency_tracking+set}" = set; then
3997 enableval=$enable_dependency_tracking;
4000 if test "x$enable_dependency_tracking" != xno; then
4001 am_depcomp="$ac_aux_dir/depcomp"
4006 if test "x$enable_dependency_tracking" != xno; then
4016 # test to see if srcdir already configured
4017 if test "`cd $srcdir && pwd`" != "`pwd`" &&
4018 test -f $srcdir/config.status; then
4019 { { $as_echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
4020 $as_echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
4021 { (exit 1); exit 1; }; }
4024 # test whether we have cygpath
4025 if test -z "$CYGPATH_W"; then
4026 if (cygpath --version) >/dev/null 2>/dev/null; then
4027 CYGPATH_W='cygpath -w'
4034 # Define the identity of the package.
4039 cat >>confdefs.h <<_ACEOF
4040 #define PACKAGE "$PACKAGE"
4044 cat >>confdefs.h <<_ACEOF
4045 #define VERSION "$VERSION"
4048 # Some tools Automake needs.
4050 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
4053 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
4056 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
4059 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
4062 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
4064 install_sh=${install_sh-"$am_aux_dir/install-sh"}
4066 # Installed binaries are usually stripped using `strip' when the user
4067 # run `make install-strip'. However `strip' might not be the right
4068 # tool to use in cross-compilation environments, therefore Automake
4069 # will honor the `STRIP' environment variable to overrule this program.
4070 if test "$cross_compiling" != no; then
4071 if test -n "$ac_tool_prefix"; then
4072 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4073 set dummy ${ac_tool_prefix}strip; ac_word=$2
4074 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4075 $as_echo_n "checking for $ac_word... " >&6; }
4076 if test "${ac_cv_prog_STRIP+set}" = set; then
4077 $as_echo_n "(cached) " >&6
4079 if test -n "$STRIP"; then
4080 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4082 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4086 test -z "$as_dir" && as_dir=.
4087 for ac_exec_ext in '' $ac_executable_extensions; do
4088 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4089 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4090 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4099 STRIP=$ac_cv_prog_STRIP
4100 if test -n "$STRIP"; then
4101 { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
4102 $as_echo "$STRIP" >&6; }
4104 { $as_echo "$as_me:$LINENO: result: no" >&5
4105 $as_echo "no" >&6; }
4110 if test -z "$ac_cv_prog_STRIP"; then
4112 # Extract the first word of "strip", so it can be a program name with args.
4113 set dummy strip; ac_word=$2
4114 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4115 $as_echo_n "checking for $ac_word... " >&6; }
4116 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
4117 $as_echo_n "(cached) " >&6
4119 if test -n "$ac_ct_STRIP"; then
4120 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4122 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4126 test -z "$as_dir" && as_dir=.
4127 for ac_exec_ext in '' $ac_executable_extensions; do
4128 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4129 ac_cv_prog_ac_ct_STRIP="strip"
4130 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4139 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4140 if test -n "$ac_ct_STRIP"; then
4141 { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
4142 $as_echo "$ac_ct_STRIP" >&6; }
4144 { $as_echo "$as_me:$LINENO: result: no" >&5
4145 $as_echo "no" >&6; }
4148 if test "x$ac_ct_STRIP" = x; then
4151 case $cross_compiling:$ac_tool_warned in
4153 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
4154 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4155 ac_tool_warned=yes ;;
4160 STRIP="$ac_cv_prog_STRIP"
4164 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
4166 # We need awk for the "check" target. The system "awk" is bad on
4168 # Always define AMTAR for backward compatibility.
4170 AMTAR=${AMTAR-"${am_missing_run}tar"}
4172 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
4177 depcc="$CC" am_compiler_list=
4179 { $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
4180 $as_echo_n "checking dependency style of $depcc... " >&6; }
4181 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
4182 $as_echo_n "(cached) " >&6
4184 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4185 # We make a subdir and do the tests there. Otherwise we can end up
4186 # making bogus files that we don't know about and never remove. For
4187 # instance it was reported that on HP-UX the gcc test will end up
4188 # making a dummy file named `D' -- because `-MD' means `put the output
4191 # Copy depcomp to subdir because otherwise we won't find it if we're
4192 # using a relative directory.
4193 cp "$am_depcomp" conftest.dir
4195 # We will build objects and dependencies in a subdirectory because
4196 # it helps to detect inapplicable dependency modes. For instance
4197 # both Tru64's cc and ICC support -MD to output dependencies as a
4198 # side effect of compilation, but ICC will put the dependencies in
4199 # the current directory while Tru64 will put them in the object
4203 am_cv_CC_dependencies_compiler_type=none
4204 if test "$am_compiler_list" = ""; then
4205 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4207 for depmode in $am_compiler_list; do
4208 # Setup a source with many dependencies, because some compilers
4209 # like to wrap large dependency lists on column 80 (with \), and
4210 # we should not choose a depcomp mode which is confused by this.
4212 # We need to recreate these files for each test, as the compiler may
4213 # overwrite some of them when testing with obscure command lines.
4214 # This happens at least with the AIX C compiler.
4216 for i in 1 2 3 4 5 6; do
4217 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4218 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4219 # Solaris 8's {/usr,}/bin/sh.
4220 touch sub/conftst$i.h
4222 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4226 # after this tag, mechanisms are not by side-effect, so they'll
4227 # only be used when explicitly requested
4228 if test "x$enable_dependency_tracking" = xyes; then
4236 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4237 # mode. It turns out that the SunPro C++ compiler does not properly
4238 # handle `-M -o', and we need to detect this.
4239 if depmode=$depmode \
4240 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
4241 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4242 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
4243 >/dev/null 2>conftest.err &&
4244 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4245 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
4246 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4247 # icc doesn't choke on unknown options, it will just issue warnings
4248 # or remarks (even with -Werror). So we grep stderr for any message
4249 # that says an option was ignored or not supported.
4250 # When given -MP, icc 7.0 and 7.1 complain thusly:
4251 # icc: Command line warning: ignoring option '-M'; no argument required
4252 # The diagnosis changed in icc 8.0:
4253 # icc: Command line remark: option '-MP' not supported
4254 if (grep 'ignoring option' conftest.err ||
4255 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4256 am_cv_CC_dependencies_compiler_type=$depmode
4265 am_cv_CC_dependencies_compiler_type=none
4269 { $as_echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
4270 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4271 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4276 test "x$enable_dependency_tracking" != xno \
4277 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4279 am__fastdepCC_FALSE='#'
4281 am__fastdepCC_TRUE='#'
4282 am__fastdepCC_FALSE=
4290 # Checks for programs.
4292 ac_cpp='$CPP $CPPFLAGS'
4293 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4294 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4295 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4296 { $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4297 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4298 # On Suns, sometimes $CPP names a directory.
4299 if test -n "$CPP" && test -d "$CPP"; then
4302 if test -z "$CPP"; then
4303 if test "${ac_cv_prog_CPP+set}" = set; then
4304 $as_echo_n "(cached) " >&6
4306 # Double quotes because CPP needs to be expanded
4307 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4310 for ac_c_preproc_warn_flag in '' yes
4312 # Use a header file that comes with gcc, so configuring glibc
4313 # with a fresh cross-compiler works.
4314 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4315 # <limits.h> exists even on freestanding compilers.
4316 # On the NeXT, cc -E runs the code through the compiler's parser,
4317 # not just through cpp. "Syntax error" is here to catch this case.
4318 cat >conftest.$ac_ext <<_ACEOF
4321 cat confdefs.h >>conftest.$ac_ext
4322 cat >>conftest.$ac_ext <<_ACEOF
4323 /* end confdefs.h. */
4325 # include <limits.h>
4327 # include <assert.h>
4331 if { (ac_try="$ac_cpp conftest.$ac_ext"
4333 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4334 *) ac_try_echo=$ac_try;;
4336 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4337 $as_echo "$ac_try_echo") >&5
4338 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4340 grep -v '^ *+' conftest.er1 >conftest.err
4342 cat conftest.err >&5
4343 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4344 (exit $ac_status); } >/dev/null && {
4345 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4346 test ! -s conftest.err
4350 $as_echo "$as_me: failed program was:" >&5
4351 sed 's/^/| /' conftest.$ac_ext >&5
4353 # Broken: fails on valid input.
4357 rm -f conftest.err conftest.$ac_ext
4359 # OK, works on sane cases. Now check whether nonexistent headers
4360 # can be detected and how.
4361 cat >conftest.$ac_ext <<_ACEOF
4364 cat confdefs.h >>conftest.$ac_ext
4365 cat >>conftest.$ac_ext <<_ACEOF
4366 /* end confdefs.h. */
4367 #include <ac_nonexistent.h>
4369 if { (ac_try="$ac_cpp conftest.$ac_ext"
4371 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4372 *) ac_try_echo=$ac_try;;
4374 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4375 $as_echo "$ac_try_echo") >&5
4376 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4378 grep -v '^ *+' conftest.er1 >conftest.err
4380 cat conftest.err >&5
4381 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4382 (exit $ac_status); } >/dev/null && {
4383 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4384 test ! -s conftest.err
4386 # Broken: success on invalid input.
4389 $as_echo "$as_me: failed program was:" >&5
4390 sed 's/^/| /' conftest.$ac_ext >&5
4392 # Passes both tests.
4397 rm -f conftest.err conftest.$ac_ext
4400 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4401 rm -f conftest.err conftest.$ac_ext
4402 if $ac_preproc_ok; then
4414 { $as_echo "$as_me:$LINENO: result: $CPP" >&5
4415 $as_echo "$CPP" >&6; }
4417 for ac_c_preproc_warn_flag in '' yes
4419 # Use a header file that comes with gcc, so configuring glibc
4420 # with a fresh cross-compiler works.
4421 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4422 # <limits.h> exists even on freestanding compilers.
4423 # On the NeXT, cc -E runs the code through the compiler's parser,
4424 # not just through cpp. "Syntax error" is here to catch this case.
4425 cat >conftest.$ac_ext <<_ACEOF
4428 cat confdefs.h >>conftest.$ac_ext
4429 cat >>conftest.$ac_ext <<_ACEOF
4430 /* end confdefs.h. */
4432 # include <limits.h>
4434 # include <assert.h>
4438 if { (ac_try="$ac_cpp conftest.$ac_ext"
4440 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4441 *) ac_try_echo=$ac_try;;
4443 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4444 $as_echo "$ac_try_echo") >&5
4445 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4447 grep -v '^ *+' conftest.er1 >conftest.err
4449 cat conftest.err >&5
4450 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4451 (exit $ac_status); } >/dev/null && {
4452 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4453 test ! -s conftest.err
4457 $as_echo "$as_me: failed program was:" >&5
4458 sed 's/^/| /' conftest.$ac_ext >&5
4460 # Broken: fails on valid input.
4464 rm -f conftest.err conftest.$ac_ext
4466 # OK, works on sane cases. Now check whether nonexistent headers
4467 # can be detected and how.
4468 cat >conftest.$ac_ext <<_ACEOF
4471 cat confdefs.h >>conftest.$ac_ext
4472 cat >>conftest.$ac_ext <<_ACEOF
4473 /* end confdefs.h. */
4474 #include <ac_nonexistent.h>
4476 if { (ac_try="$ac_cpp conftest.$ac_ext"
4478 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4479 *) ac_try_echo=$ac_try;;
4481 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4482 $as_echo "$ac_try_echo") >&5
4483 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4485 grep -v '^ *+' conftest.er1 >conftest.err
4487 cat conftest.err >&5
4488 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4489 (exit $ac_status); } >/dev/null && {
4490 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4491 test ! -s conftest.err
4493 # Broken: success on invalid input.
4496 $as_echo "$as_me: failed program was:" >&5
4497 sed 's/^/| /' conftest.$ac_ext >&5
4499 # Passes both tests.
4504 rm -f conftest.err conftest.$ac_ext
4507 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4508 rm -f conftest.err conftest.$ac_ext
4509 if $ac_preproc_ok; then
4512 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
4513 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4514 { { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4515 See \`config.log' for more details." >&5
4516 $as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4517 See \`config.log' for more details." >&2;}
4518 { (exit 1); exit 1; }; }; }
4522 ac_cpp='$CPP $CPPFLAGS'
4523 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4524 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4525 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4528 ac_cpp='$CXXCPP $CPPFLAGS'
4529 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4530 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4531 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4532 if test -z "$CXX"; then
4533 if test -n "$CCC"; then
4536 if test -n "$ac_tool_prefix"; then
4537 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4539 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4540 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4541 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4542 $as_echo_n "checking for $ac_word... " >&6; }
4543 if test "${ac_cv_prog_CXX+set}" = set; then
4544 $as_echo_n "(cached) " >&6
4546 if test -n "$CXX"; then
4547 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4549 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4553 test -z "$as_dir" && as_dir=.
4554 for ac_exec_ext in '' $ac_executable_extensions; do
4555 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4556 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4557 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4567 if test -n "$CXX"; then
4568 { $as_echo "$as_me:$LINENO: result: $CXX" >&5
4569 $as_echo "$CXX" >&6; }
4571 { $as_echo "$as_me:$LINENO: result: no" >&5
4572 $as_echo "no" >&6; }
4576 test -n "$CXX" && break
4579 if test -z "$CXX"; then
4581 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4583 # Extract the first word of "$ac_prog", so it can be a program name with args.
4584 set dummy $ac_prog; ac_word=$2
4585 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4586 $as_echo_n "checking for $ac_word... " >&6; }
4587 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
4588 $as_echo_n "(cached) " >&6
4590 if test -n "$ac_ct_CXX"; then
4591 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4593 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4597 test -z "$as_dir" && as_dir=.
4598 for ac_exec_ext in '' $ac_executable_extensions; do
4599 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4600 ac_cv_prog_ac_ct_CXX="$ac_prog"
4601 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4610 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4611 if test -n "$ac_ct_CXX"; then
4612 { $as_echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
4613 $as_echo "$ac_ct_CXX" >&6; }
4615 { $as_echo "$as_me:$LINENO: result: no" >&5
4616 $as_echo "no" >&6; }
4620 test -n "$ac_ct_CXX" && break
4623 if test "x$ac_ct_CXX" = x; then
4626 case $cross_compiling:$ac_tool_warned in
4628 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
4629 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4630 ac_tool_warned=yes ;;
4638 # Provide some information about the compiler.
4639 $as_echo "$as_me:$LINENO: checking for C++ compiler version" >&5
4642 { (ac_try="$ac_compiler --version >&5"
4644 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4645 *) ac_try_echo=$ac_try;;
4647 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4648 $as_echo "$ac_try_echo") >&5
4649 (eval "$ac_compiler --version >&5") 2>&5
4651 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4652 (exit $ac_status); }
4653 { (ac_try="$ac_compiler -v >&5"
4655 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4656 *) ac_try_echo=$ac_try;;
4658 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4659 $as_echo "$ac_try_echo") >&5
4660 (eval "$ac_compiler -v >&5") 2>&5
4662 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4663 (exit $ac_status); }
4664 { (ac_try="$ac_compiler -V >&5"
4666 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4667 *) ac_try_echo=$ac_try;;
4669 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4670 $as_echo "$ac_try_echo") >&5
4671 (eval "$ac_compiler -V >&5") 2>&5
4673 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4674 (exit $ac_status); }
4676 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
4677 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4678 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
4679 $as_echo_n "(cached) " >&6
4681 cat >conftest.$ac_ext <<_ACEOF
4684 cat confdefs.h >>conftest.$ac_ext
4685 cat >>conftest.$ac_ext <<_ACEOF
4686 /* end confdefs.h. */
4699 rm -f conftest.$ac_objext
4700 if { (ac_try="$ac_compile"
4702 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4703 *) ac_try_echo=$ac_try;;
4705 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4706 $as_echo "$ac_try_echo") >&5
4707 (eval "$ac_compile") 2>conftest.er1
4709 grep -v '^ *+' conftest.er1 >conftest.err
4711 cat conftest.err >&5
4712 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4713 (exit $ac_status); } && {
4714 test -z "$ac_cxx_werror_flag" ||
4715 test ! -s conftest.err
4716 } && test -s conftest.$ac_objext; then
4719 $as_echo "$as_me: failed program was:" >&5
4720 sed 's/^/| /' conftest.$ac_ext >&5
4725 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4726 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4729 { $as_echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
4730 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4731 if test $ac_compiler_gnu = yes; then
4736 ac_test_CXXFLAGS=${CXXFLAGS+set}
4737 ac_save_CXXFLAGS=$CXXFLAGS
4738 { $as_echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
4739 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4740 if test "${ac_cv_prog_cxx_g+set}" = set; then
4741 $as_echo_n "(cached) " >&6
4743 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4744 ac_cxx_werror_flag=yes
4747 cat >conftest.$ac_ext <<_ACEOF
4750 cat confdefs.h >>conftest.$ac_ext
4751 cat >>conftest.$ac_ext <<_ACEOF
4752 /* end confdefs.h. */
4762 rm -f conftest.$ac_objext
4763 if { (ac_try="$ac_compile"
4765 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4766 *) ac_try_echo=$ac_try;;
4768 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4769 $as_echo "$ac_try_echo") >&5
4770 (eval "$ac_compile") 2>conftest.er1
4772 grep -v '^ *+' conftest.er1 >conftest.err
4774 cat conftest.err >&5
4775 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4776 (exit $ac_status); } && {
4777 test -z "$ac_cxx_werror_flag" ||
4778 test ! -s conftest.err
4779 } && test -s conftest.$ac_objext; then
4780 ac_cv_prog_cxx_g=yes
4782 $as_echo "$as_me: failed program was:" >&5
4783 sed 's/^/| /' conftest.$ac_ext >&5
4786 cat >conftest.$ac_ext <<_ACEOF
4789 cat confdefs.h >>conftest.$ac_ext
4790 cat >>conftest.$ac_ext <<_ACEOF
4791 /* end confdefs.h. */
4801 rm -f conftest.$ac_objext
4802 if { (ac_try="$ac_compile"
4804 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4805 *) ac_try_echo=$ac_try;;
4807 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4808 $as_echo "$ac_try_echo") >&5
4809 (eval "$ac_compile") 2>conftest.er1
4811 grep -v '^ *+' conftest.er1 >conftest.err
4813 cat conftest.err >&5
4814 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4815 (exit $ac_status); } && {
4816 test -z "$ac_cxx_werror_flag" ||
4817 test ! -s conftest.err
4818 } && test -s conftest.$ac_objext; then
4821 $as_echo "$as_me: failed program was:" >&5
4822 sed 's/^/| /' conftest.$ac_ext >&5
4824 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4826 cat >conftest.$ac_ext <<_ACEOF
4829 cat confdefs.h >>conftest.$ac_ext
4830 cat >>conftest.$ac_ext <<_ACEOF
4831 /* end confdefs.h. */
4841 rm -f conftest.$ac_objext
4842 if { (ac_try="$ac_compile"
4844 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4845 *) ac_try_echo=$ac_try;;
4847 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4848 $as_echo "$ac_try_echo") >&5
4849 (eval "$ac_compile") 2>conftest.er1
4851 grep -v '^ *+' conftest.er1 >conftest.err
4853 cat conftest.err >&5
4854 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4855 (exit $ac_status); } && {
4856 test -z "$ac_cxx_werror_flag" ||
4857 test ! -s conftest.err
4858 } && test -s conftest.$ac_objext; then
4859 ac_cv_prog_cxx_g=yes
4861 $as_echo "$as_me: failed program was:" >&5
4862 sed 's/^/| /' conftest.$ac_ext >&5
4867 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4870 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4873 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4874 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4876 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
4877 $as_echo "$ac_cv_prog_cxx_g" >&6; }
4878 if test "$ac_test_CXXFLAGS" = set; then
4879 CXXFLAGS=$ac_save_CXXFLAGS
4880 elif test $ac_cv_prog_cxx_g = yes; then
4881 if test "$GXX" = yes; then
4887 if test "$GXX" = yes; then
4894 ac_cpp='$CPP $CPPFLAGS'
4895 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4896 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4897 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4899 depcc="$CXX" am_compiler_list=
4901 { $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
4902 $as_echo_n "checking dependency style of $depcc... " >&6; }
4903 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
4904 $as_echo_n "(cached) " >&6
4906 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4907 # We make a subdir and do the tests there. Otherwise we can end up
4908 # making bogus files that we don't know about and never remove. For
4909 # instance it was reported that on HP-UX the gcc test will end up
4910 # making a dummy file named `D' -- because `-MD' means `put the output
4913 # Copy depcomp to subdir because otherwise we won't find it if we're
4914 # using a relative directory.
4915 cp "$am_depcomp" conftest.dir
4917 # We will build objects and dependencies in a subdirectory because
4918 # it helps to detect inapplicable dependency modes. For instance
4919 # both Tru64's cc and ICC support -MD to output dependencies as a
4920 # side effect of compilation, but ICC will put the dependencies in
4921 # the current directory while Tru64 will put them in the object
4925 am_cv_CXX_dependencies_compiler_type=none
4926 if test "$am_compiler_list" = ""; then
4927 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4929 for depmode in $am_compiler_list; do
4930 # Setup a source with many dependencies, because some compilers
4931 # like to wrap large dependency lists on column 80 (with \), and
4932 # we should not choose a depcomp mode which is confused by this.
4934 # We need to recreate these files for each test, as the compiler may
4935 # overwrite some of them when testing with obscure command lines.
4936 # This happens at least with the AIX C compiler.
4938 for i in 1 2 3 4 5 6; do
4939 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4940 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4941 # Solaris 8's {/usr,}/bin/sh.
4942 touch sub/conftst$i.h
4944 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4948 # after this tag, mechanisms are not by side-effect, so they'll
4949 # only be used when explicitly requested
4950 if test "x$enable_dependency_tracking" = xyes; then
4958 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4959 # mode. It turns out that the SunPro C++ compiler does not properly
4960 # handle `-M -o', and we need to detect this.
4961 if depmode=$depmode \
4962 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
4963 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4964 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
4965 >/dev/null 2>conftest.err &&
4966 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4967 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
4968 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4969 # icc doesn't choke on unknown options, it will just issue warnings
4970 # or remarks (even with -Werror). So we grep stderr for any message
4971 # that says an option was ignored or not supported.
4972 # When given -MP, icc 7.0 and 7.1 complain thusly:
4973 # icc: Command line warning: ignoring option '-M'; no argument required
4974 # The diagnosis changed in icc 8.0:
4975 # icc: Command line remark: option '-MP' not supported
4976 if (grep 'ignoring option' conftest.err ||
4977 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4978 am_cv_CXX_dependencies_compiler_type=$depmode
4987 am_cv_CXX_dependencies_compiler_type=none
4991 { $as_echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
4992 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
4993 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
4998 test "x$enable_dependency_tracking" != xno \
4999 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
5000 am__fastdepCXX_TRUE=
5001 am__fastdepCXX_FALSE='#'
5003 am__fastdepCXX_TRUE='#'
5004 am__fastdepCXX_FALSE=
5009 ac_cpp='$CPP $CPPFLAGS'
5010 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5011 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5012 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5013 if test -n "$ac_tool_prefix"; then
5014 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
5015 set dummy ${ac_tool_prefix}gcc; ac_word=$2
5016 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5017 $as_echo_n "checking for $ac_word... " >&6; }
5018 if test "${ac_cv_prog_CC+set}" = set; then
5019 $as_echo_n "(cached) " >&6
5021 if test -n "$CC"; then
5022 ac_cv_prog_CC="$CC" # Let the user override the test.
5024 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5028 test -z "$as_dir" && as_dir=.
5029 for ac_exec_ext in '' $ac_executable_extensions; do
5030 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5031 ac_cv_prog_CC="${ac_tool_prefix}gcc"
5032 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5042 if test -n "$CC"; then
5043 { $as_echo "$as_me:$LINENO: result: $CC" >&5
5044 $as_echo "$CC" >&6; }
5046 { $as_echo "$as_me:$LINENO: result: no" >&5
5047 $as_echo "no" >&6; }
5052 if test -z "$ac_cv_prog_CC"; then
5054 # Extract the first word of "gcc", so it can be a program name with args.
5055 set dummy gcc; ac_word=$2
5056 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5057 $as_echo_n "checking for $ac_word... " >&6; }
5058 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
5059 $as_echo_n "(cached) " >&6
5061 if test -n "$ac_ct_CC"; then
5062 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5064 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5068 test -z "$as_dir" && as_dir=.
5069 for ac_exec_ext in '' $ac_executable_extensions; do
5070 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5071 ac_cv_prog_ac_ct_CC="gcc"
5072 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5081 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5082 if test -n "$ac_ct_CC"; then
5083 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
5084 $as_echo "$ac_ct_CC" >&6; }
5086 { $as_echo "$as_me:$LINENO: result: no" >&5
5087 $as_echo "no" >&6; }
5090 if test "x$ac_ct_CC" = x; then
5093 case $cross_compiling:$ac_tool_warned in
5095 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
5096 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5097 ac_tool_warned=yes ;;
5105 if test -z "$CC"; then
5106 if test -n "$ac_tool_prefix"; then
5107 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
5108 set dummy ${ac_tool_prefix}cc; ac_word=$2
5109 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5110 $as_echo_n "checking for $ac_word... " >&6; }
5111 if test "${ac_cv_prog_CC+set}" = set; then
5112 $as_echo_n "(cached) " >&6
5114 if test -n "$CC"; then
5115 ac_cv_prog_CC="$CC" # Let the user override the test.
5117 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5121 test -z "$as_dir" && as_dir=.
5122 for ac_exec_ext in '' $ac_executable_extensions; do
5123 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5124 ac_cv_prog_CC="${ac_tool_prefix}cc"
5125 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5135 if test -n "$CC"; then
5136 { $as_echo "$as_me:$LINENO: result: $CC" >&5
5137 $as_echo "$CC" >&6; }
5139 { $as_echo "$as_me:$LINENO: result: no" >&5
5140 $as_echo "no" >&6; }
5146 if test -z "$CC"; then
5147 # Extract the first word of "cc", so it can be a program name with args.
5148 set dummy cc; ac_word=$2
5149 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5150 $as_echo_n "checking for $ac_word... " >&6; }
5151 if test "${ac_cv_prog_CC+set}" = set; then
5152 $as_echo_n "(cached) " >&6
5154 if test -n "$CC"; then
5155 ac_cv_prog_CC="$CC" # Let the user override the test.
5158 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5162 test -z "$as_dir" && as_dir=.
5163 for ac_exec_ext in '' $ac_executable_extensions; do
5164 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5165 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
5166 ac_prog_rejected=yes
5170 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5177 if test $ac_prog_rejected = yes; then
5178 # We found a bogon in the path, so make sure we never use it.
5179 set dummy $ac_cv_prog_CC
5181 if test $# != 0; then
5182 # We chose a different compiler from the bogus one.
5183 # However, it has the same basename, so the bogon will be chosen
5184 # first if we set CC to just the basename; use the full file name.
5186 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
5192 if test -n "$CC"; then
5193 { $as_echo "$as_me:$LINENO: result: $CC" >&5
5194 $as_echo "$CC" >&6; }
5196 { $as_echo "$as_me:$LINENO: result: no" >&5
5197 $as_echo "no" >&6; }
5202 if test -z "$CC"; then
5203 if test -n "$ac_tool_prefix"; then
5204 for ac_prog in cl.exe
5206 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5207 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5208 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5209 $as_echo_n "checking for $ac_word... " >&6; }
5210 if test "${ac_cv_prog_CC+set}" = set; then
5211 $as_echo_n "(cached) " >&6
5213 if test -n "$CC"; then
5214 ac_cv_prog_CC="$CC" # Let the user override the test.
5216 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5220 test -z "$as_dir" && as_dir=.
5221 for ac_exec_ext in '' $ac_executable_extensions; do
5222 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5223 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5224 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5234 if test -n "$CC"; then
5235 { $as_echo "$as_me:$LINENO: result: $CC" >&5
5236 $as_echo "$CC" >&6; }
5238 { $as_echo "$as_me:$LINENO: result: no" >&5
5239 $as_echo "no" >&6; }
5243 test -n "$CC" && break
5246 if test -z "$CC"; then
5248 for ac_prog in cl.exe
5250 # Extract the first word of "$ac_prog", so it can be a program name with args.
5251 set dummy $ac_prog; ac_word=$2
5252 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5253 $as_echo_n "checking for $ac_word... " >&6; }
5254 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
5255 $as_echo_n "(cached) " >&6
5257 if test -n "$ac_ct_CC"; then
5258 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5260 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5264 test -z "$as_dir" && as_dir=.
5265 for ac_exec_ext in '' $ac_executable_extensions; do
5266 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5267 ac_cv_prog_ac_ct_CC="$ac_prog"
5268 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5277 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5278 if test -n "$ac_ct_CC"; then
5279 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
5280 $as_echo "$ac_ct_CC" >&6; }
5282 { $as_echo "$as_me:$LINENO: result: no" >&5
5283 $as_echo "no" >&6; }
5287 test -n "$ac_ct_CC" && break
5290 if test "x$ac_ct_CC" = x; then
5293 case $cross_compiling:$ac_tool_warned in
5295 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
5296 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5297 ac_tool_warned=yes ;;
5306 test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
5307 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5308 { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
5309 See \`config.log' for more details." >&5
5310 $as_echo "$as_me: error: no acceptable C compiler found in \$PATH
5311 See \`config.log' for more details." >&2;}
5312 { (exit 1); exit 1; }; }; }
5314 # Provide some information about the compiler.
5315 $as_echo "$as_me:$LINENO: checking for C compiler version" >&5
5318 { (ac_try="$ac_compiler --version >&5"
5320 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5321 *) ac_try_echo=$ac_try;;
5323 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5324 $as_echo "$ac_try_echo") >&5
5325 (eval "$ac_compiler --version >&5") 2>&5
5327 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5328 (exit $ac_status); }
5329 { (ac_try="$ac_compiler -v >&5"
5331 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5332 *) ac_try_echo=$ac_try;;
5334 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5335 $as_echo "$ac_try_echo") >&5
5336 (eval "$ac_compiler -v >&5") 2>&5
5338 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5339 (exit $ac_status); }
5340 { (ac_try="$ac_compiler -V >&5"
5342 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5343 *) ac_try_echo=$ac_try;;
5345 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5346 $as_echo "$ac_try_echo") >&5
5347 (eval "$ac_compiler -V >&5") 2>&5
5349 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5350 (exit $ac_status); }
5352 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
5353 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
5354 if test "${ac_cv_c_compiler_gnu+set}" = set; then
5355 $as_echo_n "(cached) " >&6
5357 cat >conftest.$ac_ext <<_ACEOF
5360 cat confdefs.h >>conftest.$ac_ext
5361 cat >>conftest.$ac_ext <<_ACEOF
5362 /* end confdefs.h. */
5375 rm -f conftest.$ac_objext
5376 if { (ac_try="$ac_compile"
5378 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5379 *) ac_try_echo=$ac_try;;
5381 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5382 $as_echo "$ac_try_echo") >&5
5383 (eval "$ac_compile") 2>conftest.er1
5385 grep -v '^ *+' conftest.er1 >conftest.err
5387 cat conftest.err >&5
5388 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5389 (exit $ac_status); } && {
5390 test -z "$ac_c_werror_flag" ||
5391 test ! -s conftest.err
5392 } && test -s conftest.$ac_objext; then
5395 $as_echo "$as_me: failed program was:" >&5
5396 sed 's/^/| /' conftest.$ac_ext >&5
5401 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5402 ac_cv_c_compiler_gnu=$ac_compiler_gnu
5405 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
5406 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
5407 if test $ac_compiler_gnu = yes; then
5412 ac_test_CFLAGS=${CFLAGS+set}
5413 ac_save_CFLAGS=$CFLAGS
5414 { $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
5415 $as_echo_n "checking whether $CC accepts -g... " >&6; }
5416 if test "${ac_cv_prog_cc_g+set}" = set; then
5417 $as_echo_n "(cached) " >&6
5419 ac_save_c_werror_flag=$ac_c_werror_flag
5420 ac_c_werror_flag=yes
5423 cat >conftest.$ac_ext <<_ACEOF
5426 cat confdefs.h >>conftest.$ac_ext
5427 cat >>conftest.$ac_ext <<_ACEOF
5428 /* end confdefs.h. */
5438 rm -f conftest.$ac_objext
5439 if { (ac_try="$ac_compile"
5441 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5442 *) ac_try_echo=$ac_try;;
5444 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5445 $as_echo "$ac_try_echo") >&5
5446 (eval "$ac_compile") 2>conftest.er1
5448 grep -v '^ *+' conftest.er1 >conftest.err
5450 cat conftest.err >&5
5451 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5452 (exit $ac_status); } && {
5453 test -z "$ac_c_werror_flag" ||
5454 test ! -s conftest.err
5455 } && test -s conftest.$ac_objext; then
5458 $as_echo "$as_me: failed program was:" >&5
5459 sed 's/^/| /' conftest.$ac_ext >&5
5462 cat >conftest.$ac_ext <<_ACEOF
5465 cat confdefs.h >>conftest.$ac_ext
5466 cat >>conftest.$ac_ext <<_ACEOF
5467 /* end confdefs.h. */
5477 rm -f conftest.$ac_objext
5478 if { (ac_try="$ac_compile"
5480 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5481 *) ac_try_echo=$ac_try;;
5483 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5484 $as_echo "$ac_try_echo") >&5
5485 (eval "$ac_compile") 2>conftest.er1
5487 grep -v '^ *+' conftest.er1 >conftest.err
5489 cat conftest.err >&5
5490 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5491 (exit $ac_status); } && {
5492 test -z "$ac_c_werror_flag" ||
5493 test ! -s conftest.err
5494 } && test -s conftest.$ac_objext; then
5497 $as_echo "$as_me: failed program was:" >&5
5498 sed 's/^/| /' conftest.$ac_ext >&5
5500 ac_c_werror_flag=$ac_save_c_werror_flag
5502 cat >conftest.$ac_ext <<_ACEOF
5505 cat confdefs.h >>conftest.$ac_ext
5506 cat >>conftest.$ac_ext <<_ACEOF
5507 /* end confdefs.h. */
5517 rm -f conftest.$ac_objext
5518 if { (ac_try="$ac_compile"
5520 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5521 *) ac_try_echo=$ac_try;;
5523 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5524 $as_echo "$ac_try_echo") >&5
5525 (eval "$ac_compile") 2>conftest.er1
5527 grep -v '^ *+' conftest.er1 >conftest.err
5529 cat conftest.err >&5
5530 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5531 (exit $ac_status); } && {
5532 test -z "$ac_c_werror_flag" ||
5533 test ! -s conftest.err
5534 } && test -s conftest.$ac_objext; then
5537 $as_echo "$as_me: failed program was:" >&5
5538 sed 's/^/| /' conftest.$ac_ext >&5
5543 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5546 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5549 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5550 ac_c_werror_flag=$ac_save_c_werror_flag
5552 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
5553 $as_echo "$ac_cv_prog_cc_g" >&6; }
5554 if test "$ac_test_CFLAGS" = set; then
5555 CFLAGS=$ac_save_CFLAGS
5556 elif test $ac_cv_prog_cc_g = yes; then
5557 if test "$GCC" = yes; then
5563 if test "$GCC" = yes; then
5569 { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
5570 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
5571 if test "${ac_cv_prog_cc_c89+set}" = set; then
5572 $as_echo_n "(cached) " >&6
5574 ac_cv_prog_cc_c89=no
5576 cat >conftest.$ac_ext <<_ACEOF
5579 cat confdefs.h >>conftest.$ac_ext
5580 cat >>conftest.$ac_ext <<_ACEOF
5581 /* end confdefs.h. */
5584 #include <sys/types.h>
5585 #include <sys/stat.h>
5586 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5587 struct buf { int x; };
5588 FILE * (*rcsopen) (struct buf *, struct stat *, int);
5589 static char *e (p, i)
5595 static char *f (char * (*g) (char **, int), char **p, ...)
5600 s = g (p, va_arg (v,int));
5605 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5606 function prototypes and stuff, but not '\xHH' hex character constants.
5607 These don't provoke an error unfortunately, instead are silently treated
5608 as 'x'. The following induces an error, until -std is added to get
5609 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5610 array size at least. It's necessary to write '\x00'==0 to get something
5611 that's true only with -std. */
5612 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5614 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5615 inside strings and character constants. */
5617 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5619 int test (int i, double x);
5620 struct s1 {int (*f) (int a);};
5621 struct s2 {int (*f) (double a);};
5622 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5628 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5633 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5634 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5636 CC="$ac_save_CC $ac_arg"
5637 rm -f conftest.$ac_objext
5638 if { (ac_try="$ac_compile"
5640 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5641 *) ac_try_echo=$ac_try;;
5643 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5644 $as_echo "$ac_try_echo") >&5
5645 (eval "$ac_compile") 2>conftest.er1
5647 grep -v '^ *+' conftest.er1 >conftest.err
5649 cat conftest.err >&5
5650 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5651 (exit $ac_status); } && {
5652 test -z "$ac_c_werror_flag" ||
5653 test ! -s conftest.err
5654 } && test -s conftest.$ac_objext; then
5655 ac_cv_prog_cc_c89=$ac_arg
5657 $as_echo "$as_me: failed program was:" >&5
5658 sed 's/^/| /' conftest.$ac_ext >&5
5663 rm -f core conftest.err conftest.$ac_objext
5664 test "x$ac_cv_prog_cc_c89" != "xno" && break
5666 rm -f conftest.$ac_ext
5671 case "x$ac_cv_prog_cc_c89" in
5673 { $as_echo "$as_me:$LINENO: result: none needed" >&5
5674 $as_echo "none needed" >&6; } ;;
5676 { $as_echo "$as_me:$LINENO: result: unsupported" >&5
5677 $as_echo "unsupported" >&6; } ;;
5679 CC="$CC $ac_cv_prog_cc_c89"
5680 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
5681 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5686 ac_cpp='$CPP $CPPFLAGS'
5687 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5688 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5689 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5691 # Find a good install program. We prefer a C program (faster),
5692 # so one script is as good as another. But avoid the broken or
5693 # incompatible versions:
5694 # SysV /etc/install, /usr/sbin/install
5695 # SunOS /usr/etc/install
5696 # IRIX /sbin/install
5698 # AmigaOS /C/install, which installs bootblocks on floppy discs
5699 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
5700 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
5701 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
5702 # OS/2's system install, which has a completely different semantic
5703 # ./install, which can be erroneously created by make from ./install.sh.
5704 # Reject install programs that cannot install multiple files.
5705 { $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
5706 $as_echo_n "checking for a BSD-compatible install... " >&6; }
5707 if test -z "$INSTALL"; then
5708 if test "${ac_cv_path_install+set}" = set; then
5709 $as_echo_n "(cached) " >&6
5711 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5715 test -z "$as_dir" && as_dir=.
5716 # Account for people who put trailing slashes in PATH elements.
5718 ./ | .// | /cC/* | \
5719 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
5720 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
5723 # OSF1 and SCO ODT 3.0 have their own names for install.
5724 # Don't use installbsd from OSF since it installs stuff as root
5726 for ac_prog in ginstall scoinst install; do
5727 for ac_exec_ext in '' $ac_executable_extensions; do
5728 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
5729 if test $ac_prog = install &&
5730 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5731 # AIX install. It has an incompatible calling convention.
5733 elif test $ac_prog = install &&
5734 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5735 # program-specific install script used by HP pwplus--don't use.
5738 rm -rf conftest.one conftest.two conftest.dir
5739 echo one > conftest.one
5740 echo two > conftest.two
5742 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
5743 test -s conftest.one && test -s conftest.two &&
5744 test -s conftest.dir/conftest.one &&
5745 test -s conftest.dir/conftest.two
5747 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
5760 rm -rf conftest.one conftest.two conftest.dir
5763 if test "${ac_cv_path_install+set}" = set; then
5764 INSTALL=$ac_cv_path_install
5766 # As a last resort, use the slow shell script. Don't cache a
5767 # value for INSTALL within a source directory, because that will
5768 # break other packages using the cache if that directory is
5769 # removed, or if the value is a relative name.
5770 INSTALL=$ac_install_sh
5773 { $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
5774 $as_echo "$INSTALL" >&6; }
5776 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
5777 # It thinks the first close brace ends the variable substitution.
5778 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
5780 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
5782 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
5784 { $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
5785 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
5787 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
5788 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
5789 $as_echo_n "(cached) " >&6
5791 cat >conftest.make <<\_ACEOF
5794 @echo '@@@%%%=$(MAKE)=@@@%%%'
5796 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
5797 case `${MAKE-make} -f conftest.make 2>/dev/null` in
5799 eval ac_cv_prog_make_${ac_make}_set=yes;;
5801 eval ac_cv_prog_make_${ac_make}_set=no;;
5805 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
5806 { $as_echo "$as_me:$LINENO: result: yes" >&5
5807 $as_echo "yes" >&6; }
5810 { $as_echo "$as_me:$LINENO: result: no" >&5
5811 $as_echo "no" >&6; }
5812 SET_MAKE="MAKE=${MAKE-make}"
5817 # site specific configs
5819 # check for asterisk
5821 # Check whether --with-asterisk was given.
5822 if test "${with_asterisk+set}" = set; then
5823 withval=$with_asterisk;
5825 with_asterisk="check"
5829 if test "x$with_asterisk" != xno; then
5831 for ac_header in asterisk/channel.h
5833 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5834 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5835 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
5836 $as_echo_n "checking for $ac_header... " >&6; }
5837 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5838 $as_echo_n "(cached) " >&6
5840 ac_res=`eval 'as_val=${'$as_ac_Header'}
5841 $as_echo "$as_val"'`
5842 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
5843 $as_echo "$ac_res" >&6; }
5845 # Is the header compilable?
5846 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
5847 $as_echo_n "checking $ac_header usability... " >&6; }
5848 cat >conftest.$ac_ext <<_ACEOF
5851 cat confdefs.h >>conftest.$ac_ext
5852 cat >>conftest.$ac_ext <<_ACEOF
5853 /* end confdefs.h. */
5854 $ac_includes_default
5855 #include <$ac_header>
5857 rm -f conftest.$ac_objext
5858 if { (ac_try="$ac_compile"
5860 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5861 *) ac_try_echo=$ac_try;;
5863 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5864 $as_echo "$ac_try_echo") >&5
5865 (eval "$ac_compile") 2>conftest.er1
5867 grep -v '^ *+' conftest.er1 >conftest.err
5869 cat conftest.err >&5
5870 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5871 (exit $ac_status); } && {
5872 test -z "$ac_c_werror_flag" ||
5873 test ! -s conftest.err
5874 } && test -s conftest.$ac_objext; then
5875 ac_header_compiler=yes
5877 $as_echo "$as_me: failed program was:" >&5
5878 sed 's/^/| /' conftest.$ac_ext >&5
5880 ac_header_compiler=no
5883 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5884 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5885 $as_echo "$ac_header_compiler" >&6; }
5887 # Is the header present?
5888 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
5889 $as_echo_n "checking $ac_header presence... " >&6; }
5890 cat >conftest.$ac_ext <<_ACEOF
5893 cat confdefs.h >>conftest.$ac_ext
5894 cat >>conftest.$ac_ext <<_ACEOF
5895 /* end confdefs.h. */
5896 #include <$ac_header>
5898 if { (ac_try="$ac_cpp conftest.$ac_ext"
5900 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5901 *) ac_try_echo=$ac_try;;
5903 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5904 $as_echo "$ac_try_echo") >&5
5905 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5907 grep -v '^ *+' conftest.er1 >conftest.err
5909 cat conftest.err >&5
5910 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5911 (exit $ac_status); } >/dev/null && {
5912 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5913 test ! -s conftest.err
5915 ac_header_preproc=yes
5917 $as_echo "$as_me: failed program was:" >&5
5918 sed 's/^/| /' conftest.$ac_ext >&5
5920 ac_header_preproc=no
5923 rm -f conftest.err conftest.$ac_ext
5924 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5925 $as_echo "$ac_header_preproc" >&6; }
5927 # So? What about this header?
5928 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5930 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5931 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5932 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5933 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5934 ac_header_preproc=yes
5937 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5938 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5939 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5940 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5941 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5942 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5943 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5944 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5945 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5946 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5947 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5948 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5950 ## ----------------------------------- ##
5951 ## Report this to andreas@eversberg.eu ##
5952 ## ----------------------------------- ##
5954 ) | sed "s/^/$as_me: WARNING: /" >&2
5957 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
5958 $as_echo_n "checking for $ac_header... " >&6; }
5959 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5960 $as_echo_n "(cached) " >&6
5962 eval "$as_ac_Header=\$ac_header_preproc"
5964 ac_res=`eval 'as_val=${'$as_ac_Header'}
5965 $as_echo "$as_val"'`
5966 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
5967 $as_echo "$ac_res" >&6; }
5970 as_val=`eval 'as_val=${'$as_ac_Header'}
5971 $as_echo "$as_val"'`
5972 if test "x$as_val" = x""yes; then
5973 cat >>confdefs.h <<_ACEOF
5974 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5978 if test "x$with_asterisk" != xcheck ; then
5979 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
5980 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5981 { { $as_echo "$as_me:$LINENO: error: --with-asterisk was given, but test for header-file asterisk/channel.h failed
5982 See \`config.log' for more details." >&5
5983 $as_echo "$as_me: error: --with-asterisk was given, but test for header-file asterisk/channel.h failed
5984 See \`config.log' for more details." >&2;}
5985 { (exit 1); exit 1; }; }; }
5998 if test "x$with_asterisk" == "xyes" ; then
5999 ENABLE_ASTERISK_CHANNEL_DRIVER_TRUE=
6000 ENABLE_ASTERISK_CHANNEL_DRIVER_FALSE='#'
6002 ENABLE_ASTERISK_CHANNEL_DRIVER_TRUE='#'
6003 ENABLE_ASTERISK_CHANNEL_DRIVER_FALSE=
6009 # Check whether --with-ssl was given.
6010 if test "${with_ssl+set}" = set; then
6017 if test "x$with_ssl" != xno; then
6019 for ac_header in openssl/rsa.h
6021 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6022 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6023 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
6024 $as_echo_n "checking for $ac_header... " >&6; }
6025 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6026 $as_echo_n "(cached) " >&6
6028 ac_res=`eval 'as_val=${'$as_ac_Header'}
6029 $as_echo "$as_val"'`
6030 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6031 $as_echo "$ac_res" >&6; }
6033 # Is the header compilable?
6034 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
6035 $as_echo_n "checking $ac_header usability... " >&6; }
6036 cat >conftest.$ac_ext <<_ACEOF
6039 cat confdefs.h >>conftest.$ac_ext
6040 cat >>conftest.$ac_ext <<_ACEOF
6041 /* end confdefs.h. */
6042 $ac_includes_default
6043 #include <$ac_header>
6045 rm -f conftest.$ac_objext
6046 if { (ac_try="$ac_compile"
6048 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6049 *) ac_try_echo=$ac_try;;
6051 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6052 $as_echo "$ac_try_echo") >&5
6053 (eval "$ac_compile") 2>conftest.er1
6055 grep -v '^ *+' conftest.er1 >conftest.err
6057 cat conftest.err >&5
6058 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6059 (exit $ac_status); } && {
6060 test -z "$ac_c_werror_flag" ||
6061 test ! -s conftest.err
6062 } && test -s conftest.$ac_objext; then
6063 ac_header_compiler=yes
6065 $as_echo "$as_me: failed program was:" >&5
6066 sed 's/^/| /' conftest.$ac_ext >&5
6068 ac_header_compiler=no
6071 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6072 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6073 $as_echo "$ac_header_compiler" >&6; }
6075 # Is the header present?
6076 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
6077 $as_echo_n "checking $ac_header presence... " >&6; }
6078 cat >conftest.$ac_ext <<_ACEOF
6081 cat confdefs.h >>conftest.$ac_ext
6082 cat >>conftest.$ac_ext <<_ACEOF
6083 /* end confdefs.h. */
6084 #include <$ac_header>
6086 if { (ac_try="$ac_cpp conftest.$ac_ext"
6088 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6089 *) ac_try_echo=$ac_try;;
6091 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6092 $as_echo "$ac_try_echo") >&5
6093 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6095 grep -v '^ *+' conftest.er1 >conftest.err
6097 cat conftest.err >&5
6098 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6099 (exit $ac_status); } >/dev/null && {
6100 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6101 test ! -s conftest.err
6103 ac_header_preproc=yes
6105 $as_echo "$as_me: failed program was:" >&5
6106 sed 's/^/| /' conftest.$ac_ext >&5
6108 ac_header_preproc=no
6111 rm -f conftest.err conftest.$ac_ext
6112 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6113 $as_echo "$ac_header_preproc" >&6; }
6115 # So? What about this header?
6116 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6118 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6119 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6120 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6121 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6122 ac_header_preproc=yes
6125 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6126 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6127 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6128 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6129 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6130 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6131 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6132 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6133 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6134 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6135 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6136 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6138 ## ----------------------------------- ##
6139 ## Report this to andreas@eversberg.eu ##
6140 ## ----------------------------------- ##
6142 ) | sed "s/^/$as_me: WARNING: /" >&2
6145 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
6146 $as_echo_n "checking for $ac_header... " >&6; }
6147 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6148 $as_echo_n "(cached) " >&6
6150 eval "$as_ac_Header=\$ac_header_preproc"
6152 ac_res=`eval 'as_val=${'$as_ac_Header'}
6153 $as_echo "$as_val"'`
6154 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6155 $as_echo "$ac_res" >&6; }
6158 as_val=`eval 'as_val=${'$as_ac_Header'}
6159 $as_echo "$as_val"'`
6160 if test "x$as_val" = x""yes; then
6161 cat >>confdefs.h <<_ACEOF
6162 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6169 { $as_echo "$as_me:$LINENO: checking for main in -lcrypto" >&5
6170 $as_echo_n "checking for main in -lcrypto... " >&6; }
6171 if test "${ac_cv_lib_crypto_main+set}" = set; then
6172 $as_echo_n "(cached) " >&6
6174 ac_check_lib_save_LIBS=$LIBS
6175 LIBS="-lcrypto -lcrypto
6177 cat >conftest.$ac_ext <<_ACEOF
6180 cat confdefs.h >>conftest.$ac_ext
6181 cat >>conftest.$ac_ext <<_ACEOF
6182 /* end confdefs.h. */
6193 rm -f conftest.$ac_objext conftest$ac_exeext
6194 if { (ac_try="$ac_link"
6196 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6197 *) ac_try_echo=$ac_try;;
6199 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6200 $as_echo "$ac_try_echo") >&5
6201 (eval "$ac_link") 2>conftest.er1
6203 grep -v '^ *+' conftest.er1 >conftest.err
6205 cat conftest.err >&5
6206 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6207 (exit $ac_status); } && {
6208 test -z "$ac_c_werror_flag" ||
6209 test ! -s conftest.err
6210 } && test -s conftest$ac_exeext && {
6211 test "$cross_compiling" = yes ||
6212 $as_test_x conftest$ac_exeext
6214 ac_cv_lib_crypto_main=yes
6216 $as_echo "$as_me: failed program was:" >&5
6217 sed 's/^/| /' conftest.$ac_ext >&5
6219 ac_cv_lib_crypto_main=no
6222 rm -rf conftest.dSYM
6223 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6224 conftest$ac_exeext conftest.$ac_ext
6225 LIBS=$ac_check_lib_save_LIBS
6227 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_main" >&5
6228 $as_echo "$ac_cv_lib_crypto_main" >&6; }
6229 if test "x$ac_cv_lib_crypto_main" = x""yes; then
6230 LIBCRYPTO="-lcrypto"
6233 cat >>confdefs.h <<\_ACEOF
6234 #define HAVE_LIBCRYPTO 1
6239 if test "x$with_ssl" != xcheck ; then
6240 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
6241 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6242 { { $as_echo "$as_me:$LINENO: error: --with-ssl was given, but test for libcrypto failed
6243 See \`config.log' for more details." >&5
6244 $as_echo "$as_me: error: --with-ssl was given, but test for libcrypto failed
6245 See \`config.log' for more details." >&2;}
6246 { (exit 1); exit 1; }; }; }
6256 # Checks for libraries.
6258 { $as_echo "$as_me:$LINENO: checking for main in -lm" >&5
6259 $as_echo_n "checking for main in -lm... " >&6; }
6260 if test "${ac_cv_lib_m_main+set}" = set; then
6261 $as_echo_n "(cached) " >&6
6263 ac_check_lib_save_LIBS=$LIBS
6265 cat >conftest.$ac_ext <<_ACEOF
6268 cat confdefs.h >>conftest.$ac_ext
6269 cat >>conftest.$ac_ext <<_ACEOF
6270 /* end confdefs.h. */
6281 rm -f conftest.$ac_objext conftest$ac_exeext
6282 if { (ac_try="$ac_link"
6284 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6285 *) ac_try_echo=$ac_try;;
6287 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6288 $as_echo "$ac_try_echo") >&5
6289 (eval "$ac_link") 2>conftest.er1
6291 grep -v '^ *+' conftest.er1 >conftest.err
6293 cat conftest.err >&5
6294 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6295 (exit $ac_status); } && {
6296 test -z "$ac_c_werror_flag" ||
6297 test ! -s conftest.err
6298 } && test -s conftest$ac_exeext && {
6299 test "$cross_compiling" = yes ||
6300 $as_test_x conftest$ac_exeext
6302 ac_cv_lib_m_main=yes
6304 $as_echo "$as_me: failed program was:" >&5
6305 sed 's/^/| /' conftest.$ac_ext >&5
6310 rm -rf conftest.dSYM
6311 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6312 conftest$ac_exeext conftest.$ac_ext
6313 LIBS=$ac_check_lib_save_LIBS
6315 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_m_main" >&5
6316 $as_echo "$ac_cv_lib_m_main" >&6; }
6317 if test "x$ac_cv_lib_m_main" = x""yes; then
6318 cat >>confdefs.h <<_ACEOF
6327 { $as_echo "$as_me:$LINENO: checking for main in -lncurses" >&5
6328 $as_echo_n "checking for main in -lncurses... " >&6; }
6329 if test "${ac_cv_lib_ncurses_main+set}" = set; then
6330 $as_echo_n "(cached) " >&6
6332 ac_check_lib_save_LIBS=$LIBS
6333 LIBS="-lncurses $LIBS"
6334 cat >conftest.$ac_ext <<_ACEOF
6337 cat confdefs.h >>conftest.$ac_ext
6338 cat >>conftest.$ac_ext <<_ACEOF
6339 /* end confdefs.h. */
6350 rm -f conftest.$ac_objext conftest$ac_exeext
6351 if { (ac_try="$ac_link"
6353 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6354 *) ac_try_echo=$ac_try;;
6356 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6357 $as_echo "$ac_try_echo") >&5
6358 (eval "$ac_link") 2>conftest.er1
6360 grep -v '^ *+' conftest.er1 >conftest.err
6362 cat conftest.err >&5
6363 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6364 (exit $ac_status); } && {
6365 test -z "$ac_c_werror_flag" ||
6366 test ! -s conftest.err
6367 } && test -s conftest$ac_exeext && {
6368 test "$cross_compiling" = yes ||
6369 $as_test_x conftest$ac_exeext
6371 ac_cv_lib_ncurses_main=yes
6373 $as_echo "$as_me: failed program was:" >&5
6374 sed 's/^/| /' conftest.$ac_ext >&5
6376 ac_cv_lib_ncurses_main=no
6379 rm -rf conftest.dSYM
6380 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6381 conftest$ac_exeext conftest.$ac_ext
6382 LIBS=$ac_check_lib_save_LIBS
6384 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_main" >&5
6385 $as_echo "$ac_cv_lib_ncurses_main" >&6; }
6386 if test "x$ac_cv_lib_ncurses_main" = x""yes; then
6387 cat >>confdefs.h <<_ACEOF
6388 #define HAVE_LIBNCURSES 1
6391 LIBS="-lncurses $LIBS"
6396 { $as_echo "$as_me:$LINENO: checking for main in -lpthread" >&5
6397 $as_echo_n "checking for main in -lpthread... " >&6; }
6398 if test "${ac_cv_lib_pthread_main+set}" = set; then
6399 $as_echo_n "(cached) " >&6
6401 ac_check_lib_save_LIBS=$LIBS
6402 LIBS="-lpthread $LIBS"
6403 cat >conftest.$ac_ext <<_ACEOF
6406 cat confdefs.h >>conftest.$ac_ext
6407 cat >>conftest.$ac_ext <<_ACEOF
6408 /* end confdefs.h. */
6419 rm -f conftest.$ac_objext conftest$ac_exeext
6420 if { (ac_try="$ac_link"
6422 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6423 *) ac_try_echo=$ac_try;;
6425 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6426 $as_echo "$ac_try_echo") >&5
6427 (eval "$ac_link") 2>conftest.er1
6429 grep -v '^ *+' conftest.er1 >conftest.err
6431 cat conftest.err >&5
6432 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6433 (exit $ac_status); } && {
6434 test -z "$ac_c_werror_flag" ||
6435 test ! -s conftest.err
6436 } && test -s conftest$ac_exeext && {
6437 test "$cross_compiling" = yes ||
6438 $as_test_x conftest$ac_exeext
6440 ac_cv_lib_pthread_main=yes
6442 $as_echo "$as_me: failed program was:" >&5
6443 sed 's/^/| /' conftest.$ac_ext >&5
6445 ac_cv_lib_pthread_main=no
6448 rm -rf conftest.dSYM
6449 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6450 conftest$ac_exeext conftest.$ac_ext
6451 LIBS=$ac_check_lib_save_LIBS
6453 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_main" >&5
6454 $as_echo "$ac_cv_lib_pthread_main" >&6; }
6455 if test "x$ac_cv_lib_pthread_main" = x""yes; then
6456 cat >>confdefs.h <<_ACEOF
6457 #define HAVE_LIBPTHREAD 1
6460 LIBS="-lpthread $LIBS"
6465 # Checks for header files.
6472 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
6473 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
6474 { $as_echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
6475 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
6476 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6477 $as_echo_n "(cached) " >&6
6479 cat >conftest.$ac_ext <<_ACEOF
6482 cat confdefs.h >>conftest.$ac_ext
6483 cat >>conftest.$ac_ext <<_ACEOF
6484 /* end confdefs.h. */
6485 #include <sys/types.h>
6497 rm -f conftest.$ac_objext
6498 if { (ac_try="$ac_compile"
6500 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6501 *) ac_try_echo=$ac_try;;
6503 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6504 $as_echo "$ac_try_echo") >&5
6505 (eval "$ac_compile") 2>conftest.er1
6507 grep -v '^ *+' conftest.er1 >conftest.err
6509 cat conftest.err >&5
6510 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6511 (exit $ac_status); } && {
6512 test -z "$ac_c_werror_flag" ||
6513 test ! -s conftest.err
6514 } && test -s conftest.$ac_objext; then
6515 eval "$as_ac_Header=yes"
6517 $as_echo "$as_me: failed program was:" >&5
6518 sed 's/^/| /' conftest.$ac_ext >&5
6520 eval "$as_ac_Header=no"
6523 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6525 ac_res=`eval 'as_val=${'$as_ac_Header'}
6526 $as_echo "$as_val"'`
6527 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6528 $as_echo "$ac_res" >&6; }
6529 as_val=`eval 'as_val=${'$as_ac_Header'}
6530 $as_echo "$as_val"'`
6531 if test "x$as_val" = x""yes; then
6532 cat >>confdefs.h <<_ACEOF
6533 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
6536 ac_header_dirent=$ac_hdr; break
6540 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
6541 if test $ac_header_dirent = dirent.h; then
6542 { $as_echo "$as_me:$LINENO: checking for library containing opendir" >&5
6543 $as_echo_n "checking for library containing opendir... " >&6; }
6544 if test "${ac_cv_search_opendir+set}" = set; then
6545 $as_echo_n "(cached) " >&6
6547 ac_func_search_save_LIBS=$LIBS
6548 cat >conftest.$ac_ext <<_ACEOF
6551 cat confdefs.h >>conftest.$ac_ext
6552 cat >>conftest.$ac_ext <<_ACEOF
6553 /* end confdefs.h. */
6555 /* Override any GCC internal prototype to avoid an error.
6556 Use char because int might match the return type of a GCC
6557 builtin and then its argument prototype would still apply. */
6570 for ac_lib in '' dir; do
6571 if test -z "$ac_lib"; then
6572 ac_res="none required"
6575 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6577 rm -f conftest.$ac_objext conftest$ac_exeext
6578 if { (ac_try="$ac_link"
6580 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6581 *) ac_try_echo=$ac_try;;
6583 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6584 $as_echo "$ac_try_echo") >&5
6585 (eval "$ac_link") 2>conftest.er1
6587 grep -v '^ *+' conftest.er1 >conftest.err
6589 cat conftest.err >&5
6590 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6591 (exit $ac_status); } && {
6592 test -z "$ac_c_werror_flag" ||
6593 test ! -s conftest.err
6594 } && test -s conftest$ac_exeext && {
6595 test "$cross_compiling" = yes ||
6596 $as_test_x conftest$ac_exeext
6598 ac_cv_search_opendir=$ac_res
6600 $as_echo "$as_me: failed program was:" >&5
6601 sed 's/^/| /' conftest.$ac_ext >&5
6606 rm -rf conftest.dSYM
6607 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6609 if test "${ac_cv_search_opendir+set}" = set; then
6613 if test "${ac_cv_search_opendir+set}" = set; then
6616 ac_cv_search_opendir=no
6619 LIBS=$ac_func_search_save_LIBS
6621 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
6622 $as_echo "$ac_cv_search_opendir" >&6; }
6623 ac_res=$ac_cv_search_opendir
6624 if test "$ac_res" != no; then
6625 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
6630 { $as_echo "$as_me:$LINENO: checking for library containing opendir" >&5
6631 $as_echo_n "checking for library containing opendir... " >&6; }
6632 if test "${ac_cv_search_opendir+set}" = set; then
6633 $as_echo_n "(cached) " >&6
6635 ac_func_search_save_LIBS=$LIBS
6636 cat >conftest.$ac_ext <<_ACEOF
6639 cat confdefs.h >>conftest.$ac_ext
6640 cat >>conftest.$ac_ext <<_ACEOF
6641 /* end confdefs.h. */
6643 /* Override any GCC internal prototype to avoid an error.
6644 Use char because int might match the return type of a GCC
6645 builtin and then its argument prototype would still apply. */
6658 for ac_lib in '' x; do
6659 if test -z "$ac_lib"; then
6660 ac_res="none required"
6663 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6665 rm -f conftest.$ac_objext conftest$ac_exeext
6666 if { (ac_try="$ac_link"
6668 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6669 *) ac_try_echo=$ac_try;;
6671 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6672 $as_echo "$ac_try_echo") >&5
6673 (eval "$ac_link") 2>conftest.er1
6675 grep -v '^ *+' conftest.er1 >conftest.err
6677 cat conftest.err >&5
6678 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6679 (exit $ac_status); } && {
6680 test -z "$ac_c_werror_flag" ||
6681 test ! -s conftest.err
6682 } && test -s conftest$ac_exeext && {
6683 test "$cross_compiling" = yes ||
6684 $as_test_x conftest$ac_exeext
6686 ac_cv_search_opendir=$ac_res
6688 $as_echo "$as_me: failed program was:" >&5
6689 sed 's/^/| /' conftest.$ac_ext >&5
6694 rm -rf conftest.dSYM
6695 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6697 if test "${ac_cv_search_opendir+set}" = set; then
6701 if test "${ac_cv_search_opendir+set}" = set; then
6704 ac_cv_search_opendir=no
6707 LIBS=$ac_func_search_save_LIBS
6709 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
6710 $as_echo "$ac_cv_search_opendir" >&6; }
6711 ac_res=$ac_cv_search_opendir
6712 if test "$ac_res" != no; then
6713 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
6719 { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6720 $as_echo_n "checking for ANSI C header files... " >&6; }
6721 if test "${ac_cv_header_stdc+set}" = set; then
6722 $as_echo_n "(cached) " >&6
6724 cat >conftest.$ac_ext <<_ACEOF
6727 cat confdefs.h >>conftest.$ac_ext
6728 cat >>conftest.$ac_ext <<_ACEOF
6729 /* end confdefs.h. */
6743 rm -f conftest.$ac_objext
6744 if { (ac_try="$ac_compile"
6746 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6747 *) ac_try_echo=$ac_try;;
6749 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6750 $as_echo "$ac_try_echo") >&5
6751 (eval "$ac_compile") 2>conftest.er1
6753 grep -v '^ *+' conftest.er1 >conftest.err
6755 cat conftest.err >&5
6756 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6757 (exit $ac_status); } && {
6758 test -z "$ac_c_werror_flag" ||
6759 test ! -s conftest.err
6760 } && test -s conftest.$ac_objext; then
6761 ac_cv_header_stdc=yes
6763 $as_echo "$as_me: failed program was:" >&5
6764 sed 's/^/| /' conftest.$ac_ext >&5
6766 ac_cv_header_stdc=no
6769 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6771 if test $ac_cv_header_stdc = yes; then
6772 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6773 cat >conftest.$ac_ext <<_ACEOF
6776 cat confdefs.h >>conftest.$ac_ext
6777 cat >>conftest.$ac_ext <<_ACEOF
6778 /* end confdefs.h. */
6782 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6783 $EGREP "memchr" >/dev/null 2>&1; then
6786 ac_cv_header_stdc=no
6792 if test $ac_cv_header_stdc = yes; then
6793 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6794 cat >conftest.$ac_ext <<_ACEOF
6797 cat confdefs.h >>conftest.$ac_ext
6798 cat >>conftest.$ac_ext <<_ACEOF
6799 /* end confdefs.h. */
6803 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6804 $EGREP "free" >/dev/null 2>&1; then
6807 ac_cv_header_stdc=no
6813 if test $ac_cv_header_stdc = yes; then
6814 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6815 if test "$cross_compiling" = yes; then
6818 cat >conftest.$ac_ext <<_ACEOF
6821 cat confdefs.h >>conftest.$ac_ext
6822 cat >>conftest.$ac_ext <<_ACEOF
6823 /* end confdefs.h. */
6826 #if ((' ' & 0x0FF) == 0x020)
6827 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6828 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6830 # define ISLOWER(c) \
6831 (('a' <= (c) && (c) <= 'i') \
6832 || ('j' <= (c) && (c) <= 'r') \
6833 || ('s' <= (c) && (c) <= 'z'))
6834 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6837 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6842 for (i = 0; i < 256; i++)
6843 if (XOR (islower (i), ISLOWER (i))
6844 || toupper (i) != TOUPPER (i))
6849 rm -f conftest$ac_exeext
6850 if { (ac_try="$ac_link"
6852 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6853 *) ac_try_echo=$ac_try;;
6855 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6856 $as_echo "$ac_try_echo") >&5
6857 (eval "$ac_link") 2>&5
6859 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6860 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6861 { (case "(($ac_try" in
6862 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6863 *) ac_try_echo=$ac_try;;
6865 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6866 $as_echo "$ac_try_echo") >&5
6867 (eval "$ac_try") 2>&5
6869 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6870 (exit $ac_status); }; }; then
6873 $as_echo "$as_me: program exited with status $ac_status" >&5
6874 $as_echo "$as_me: failed program was:" >&5
6875 sed 's/^/| /' conftest.$ac_ext >&5
6878 ac_cv_header_stdc=no
6880 rm -rf conftest.dSYM
6881 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6887 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6888 $as_echo "$ac_cv_header_stdc" >&6; }
6889 if test $ac_cv_header_stdc = yes; then
6891 cat >>confdefs.h <<\_ACEOF
6892 #define STDC_HEADERS 1
6897 { $as_echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
6898 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
6899 if test "${ac_cv_header_sys_wait_h+set}" = set; then
6900 $as_echo_n "(cached) " >&6
6902 cat >conftest.$ac_ext <<_ACEOF
6905 cat confdefs.h >>conftest.$ac_ext
6906 cat >>conftest.$ac_ext <<_ACEOF
6907 /* end confdefs.h. */
6908 #include <sys/types.h>
6909 #include <sys/wait.h>
6911 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
6914 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
6922 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
6927 rm -f conftest.$ac_objext
6928 if { (ac_try="$ac_compile"
6930 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6931 *) ac_try_echo=$ac_try;;
6933 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6934 $as_echo "$ac_try_echo") >&5
6935 (eval "$ac_compile") 2>conftest.er1
6937 grep -v '^ *+' conftest.er1 >conftest.err
6939 cat conftest.err >&5
6940 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6941 (exit $ac_status); } && {
6942 test -z "$ac_c_werror_flag" ||
6943 test ! -s conftest.err
6944 } && test -s conftest.$ac_objext; then
6945 ac_cv_header_sys_wait_h=yes
6947 $as_echo "$as_me: failed program was:" >&5
6948 sed 's/^/| /' conftest.$ac_ext >&5
6950 ac_cv_header_sys_wait_h=no
6953 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6955 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
6956 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
6957 if test $ac_cv_header_sys_wait_h = yes; then
6959 cat >>confdefs.h <<\_ACEOF
6960 #define HAVE_SYS_WAIT_H 1
6978 for ac_header in fcntl.h netinet/in.h stdlib.h string.h sys/file.h sys/ioctl.h sys/socket.h sys/time.h unistd.h ctype.h assert.h mISDNuser/mbuffer.h assert.h
6980 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6981 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6982 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
6983 $as_echo_n "checking for $ac_header... " >&6; }
6984 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6985 $as_echo_n "(cached) " >&6
6987 ac_res=`eval 'as_val=${'$as_ac_Header'}
6988 $as_echo "$as_val"'`
6989 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6990 $as_echo "$ac_res" >&6; }
6992 # Is the header compilable?
6993 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
6994 $as_echo_n "checking $ac_header usability... " >&6; }
6995 cat >conftest.$ac_ext <<_ACEOF
6998 cat confdefs.h >>conftest.$ac_ext
6999 cat >>conftest.$ac_ext <<_ACEOF
7000 /* end confdefs.h. */
7001 $ac_includes_default
7002 #include <$ac_header>
7004 rm -f conftest.$ac_objext
7005 if { (ac_try="$ac_compile"
7007 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7008 *) ac_try_echo=$ac_try;;
7010 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7011 $as_echo "$ac_try_echo") >&5
7012 (eval "$ac_compile") 2>conftest.er1
7014 grep -v '^ *+' conftest.er1 >conftest.err
7016 cat conftest.err >&5
7017 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7018 (exit $ac_status); } && {
7019 test -z "$ac_c_werror_flag" ||
7020 test ! -s conftest.err
7021 } && test -s conftest.$ac_objext; then
7022 ac_header_compiler=yes
7024 $as_echo "$as_me: failed program was:" >&5
7025 sed 's/^/| /' conftest.$ac_ext >&5
7027 ac_header_compiler=no
7030 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7031 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7032 $as_echo "$ac_header_compiler" >&6; }
7034 # Is the header present?
7035 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
7036 $as_echo_n "checking $ac_header presence... " >&6; }
7037 cat >conftest.$ac_ext <<_ACEOF
7040 cat confdefs.h >>conftest.$ac_ext
7041 cat >>conftest.$ac_ext <<_ACEOF
7042 /* end confdefs.h. */
7043 #include <$ac_header>
7045 if { (ac_try="$ac_cpp conftest.$ac_ext"
7047 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7048 *) ac_try_echo=$ac_try;;
7050 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7051 $as_echo "$ac_try_echo") >&5
7052 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7054 grep -v '^ *+' conftest.er1 >conftest.err
7056 cat conftest.err >&5
7057 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7058 (exit $ac_status); } >/dev/null && {
7059 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7060 test ! -s conftest.err
7062 ac_header_preproc=yes
7064 $as_echo "$as_me: failed program was:" >&5
7065 sed 's/^/| /' conftest.$ac_ext >&5
7067 ac_header_preproc=no
7070 rm -f conftest.err conftest.$ac_ext
7071 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7072 $as_echo "$ac_header_preproc" >&6; }
7074 # So? What about this header?
7075 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7077 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7078 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7079 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7080 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7081 ac_header_preproc=yes
7084 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7085 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7086 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7087 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7088 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7089 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7090 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7091 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7092 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7093 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7094 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7095 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7097 ## ----------------------------------- ##
7098 ## Report this to andreas@eversberg.eu ##
7099 ## ----------------------------------- ##
7101 ) | sed "s/^/$as_me: WARNING: /" >&2
7104 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
7105 $as_echo_n "checking for $ac_header... " >&6; }
7106 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7107 $as_echo_n "(cached) " >&6
7109 eval "$as_ac_Header=\$ac_header_preproc"
7111 ac_res=`eval 'as_val=${'$as_ac_Header'}
7112 $as_echo "$as_val"'`
7113 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7114 $as_echo "$ac_res" >&6; }
7117 as_val=`eval 'as_val=${'$as_ac_Header'}
7118 $as_echo "$as_val"'`
7119 if test "x$as_val" = x""yes; then
7120 cat >>confdefs.h <<_ACEOF
7121 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7129 # Checks for typedefs, structures, and compiler characteristics.
7130 { $as_echo "$as_me:$LINENO: checking for stdbool.h that conforms to C99" >&5
7131 $as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
7132 if test "${ac_cv_header_stdbool_h+set}" = set; then
7133 $as_echo_n "(cached) " >&6
7135 cat >conftest.$ac_ext <<_ACEOF
7138 cat confdefs.h >>conftest.$ac_ext
7139 cat >>conftest.$ac_ext <<_ACEOF
7140 /* end confdefs.h. */
7142 #include <stdbool.h>
7144 "error: bool is not defined"
7147 "error: false is not defined"
7150 "error: false is not 0"
7153 "error: true is not defined"
7156 "error: true is not 1"
7158 #ifndef __bool_true_false_are_defined
7159 "error: __bool_true_false_are_defined is not defined"
7162 struct s { _Bool s: 1; _Bool t; } s;
7164 char a[true == 1 ? 1 : -1];
7165 char b[false == 0 ? 1 : -1];
7166 char c[__bool_true_false_are_defined == 1 ? 1 : -1];
7167 char d[(bool) 0.5 == true ? 1 : -1];
7169 char f[(_Bool) 0.0 == false ? 1 : -1];
7171 char h[sizeof (_Bool)];
7173 enum { j = false, k = true, l = false * true, m = true * 256 };
7174 /* The following fails for
7175 HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
7177 char o[sizeof n == m * sizeof n[0] ? 1 : -1];
7178 char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
7179 # if defined __xlc__ || defined __GNUC__
7180 /* Catch a bug in IBM AIX xlc compiler version 6.0.0.0
7181 reported by James Lemley on 2005-10-05; see
7182 http://lists.gnu.org/archive/html/bug-coreutils/2005-10/msg00086.html
7183 This test is not quite right, since xlc is allowed to
7184 reject this program, as the initializer for xlcbug is
7185 not one of the forms that C requires support for.
7186 However, doing the test right would require a runtime
7187 test, and that would make cross-compilation harder.
7188 Let us hope that IBM fixes the xlc bug, and also adds
7189 support for this kind of constant expression. In the
7190 meantime, this test will reject xlc, which is OK, since
7191 our stdbool.h substitute should suffice. We also test
7192 this with GCC, where it should work, to detect more
7193 quickly whether someone messes up the test in the
7195 char digs[] = "0123456789";
7196 int xlcbug = 1 / (&(digs + 5)[-2 + (bool) 1] == &digs[4] ? 1 : -1);
7198 /* Catch a bug in an HP-UX C compiler. See
7199 http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
7200 http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
7211 /* Refer to every declared value, to avoid compiler optimizations. */
7212 return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
7213 + !m + !n + !o + !p + !q + !pq);
7219 rm -f conftest.$ac_objext
7220 if { (ac_try="$ac_compile"
7222 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7223 *) ac_try_echo=$ac_try;;
7225 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7226 $as_echo "$ac_try_echo") >&5
7227 (eval "$ac_compile") 2>conftest.er1
7229 grep -v '^ *+' conftest.er1 >conftest.err
7231 cat conftest.err >&5
7232 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7233 (exit $ac_status); } && {
7234 test -z "$ac_c_werror_flag" ||
7235 test ! -s conftest.err
7236 } && test -s conftest.$ac_objext; then
7237 ac_cv_header_stdbool_h=yes
7239 $as_echo "$as_me: failed program was:" >&5
7240 sed 's/^/| /' conftest.$ac_ext >&5
7242 ac_cv_header_stdbool_h=no
7245 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7247 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdbool_h" >&5
7248 $as_echo "$ac_cv_header_stdbool_h" >&6; }
7249 { $as_echo "$as_me:$LINENO: checking for _Bool" >&5
7250 $as_echo_n "checking for _Bool... " >&6; }
7251 if test "${ac_cv_type__Bool+set}" = set; then
7252 $as_echo_n "(cached) " >&6
7255 cat >conftest.$ac_ext <<_ACEOF
7258 cat confdefs.h >>conftest.$ac_ext
7259 cat >>conftest.$ac_ext <<_ACEOF
7260 /* end confdefs.h. */
7261 $ac_includes_default
7271 rm -f conftest.$ac_objext
7272 if { (ac_try="$ac_compile"
7274 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7275 *) ac_try_echo=$ac_try;;
7277 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7278 $as_echo "$ac_try_echo") >&5
7279 (eval "$ac_compile") 2>conftest.er1
7281 grep -v '^ *+' conftest.er1 >conftest.err
7283 cat conftest.err >&5
7284 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7285 (exit $ac_status); } && {
7286 test -z "$ac_c_werror_flag" ||
7287 test ! -s conftest.err
7288 } && test -s conftest.$ac_objext; then
7289 cat >conftest.$ac_ext <<_ACEOF
7292 cat confdefs.h >>conftest.$ac_ext
7293 cat >>conftest.$ac_ext <<_ACEOF
7294 /* end confdefs.h. */
7295 $ac_includes_default
7299 if (sizeof ((_Bool)))
7305 rm -f conftest.$ac_objext
7306 if { (ac_try="$ac_compile"
7308 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7309 *) ac_try_echo=$ac_try;;
7311 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7312 $as_echo "$ac_try_echo") >&5
7313 (eval "$ac_compile") 2>conftest.er1
7315 grep -v '^ *+' conftest.er1 >conftest.err
7317 cat conftest.err >&5
7318 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7319 (exit $ac_status); } && {
7320 test -z "$ac_c_werror_flag" ||
7321 test ! -s conftest.err
7322 } && test -s conftest.$ac_objext; then
7325 $as_echo "$as_me: failed program was:" >&5
7326 sed 's/^/| /' conftest.$ac_ext >&5
7328 ac_cv_type__Bool=yes
7331 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7333 $as_echo "$as_me: failed program was:" >&5
7334 sed 's/^/| /' conftest.$ac_ext >&5
7339 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7341 { $as_echo "$as_me:$LINENO: result: $ac_cv_type__Bool" >&5
7342 $as_echo "$ac_cv_type__Bool" >&6; }
7343 if test "x$ac_cv_type__Bool" = x""yes; then
7345 cat >>confdefs.h <<_ACEOF
7346 #define HAVE__BOOL 1
7352 if test $ac_cv_header_stdbool_h = yes; then
7354 cat >>confdefs.h <<\_ACEOF
7355 #define HAVE_STDBOOL_H 1
7360 { $as_echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
7361 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
7362 if test "${ac_cv_c_const+set}" = set; then
7363 $as_echo_n "(cached) " >&6
7365 cat >conftest.$ac_ext <<_ACEOF
7368 cat confdefs.h >>conftest.$ac_ext
7369 cat >>conftest.$ac_ext <<_ACEOF
7370 /* end confdefs.h. */
7375 /* FIXME: Include the comments suggested by Paul. */
7377 /* Ultrix mips cc rejects this. */
7378 typedef int charset[2];
7380 /* SunOS 4.1.1 cc rejects this. */
7381 char const *const *pcpcc;
7383 /* NEC SVR4.0.2 mips cc rejects this. */
7384 struct point {int x, y;};
7385 static struct point const zero = {0,0};
7386 /* AIX XL C 1.02.0.0 rejects this.
7387 It does not let you subtract one const X* pointer from another in
7388 an arm of an if-expression whose if-part is not a constant
7390 const char *g = "string";
7391 pcpcc = &g + (g ? g-g : 0);
7392 /* HPUX 7.0 cc rejects these. */
7394 ppc = (char**) pcpcc;
7395 pcpcc = (char const *const *) ppc;
7396 { /* SCO 3.2v4 cc rejects this. */
7398 char const *s = 0 ? (char *) 0 : (char const *) 0;
7403 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
7405 const int *foo = &x[0];
7408 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
7409 typedef const int *iptr;
7413 { /* AIX XL C 1.02.0.0 rejects this saying
7414 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
7415 struct s { int j; const int *ap[3]; };
7416 struct s *b; b->j = 5;
7418 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
7422 return !cs[0] && !zero.x;
7429 rm -f conftest.$ac_objext
7430 if { (ac_try="$ac_compile"
7432 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7433 *) ac_try_echo=$ac_try;;
7435 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7436 $as_echo "$ac_try_echo") >&5
7437 (eval "$ac_compile") 2>conftest.er1
7439 grep -v '^ *+' conftest.er1 >conftest.err
7441 cat conftest.err >&5
7442 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7443 (exit $ac_status); } && {
7444 test -z "$ac_c_werror_flag" ||
7445 test ! -s conftest.err
7446 } && test -s conftest.$ac_objext; then
7449 $as_echo "$as_me: failed program was:" >&5
7450 sed 's/^/| /' conftest.$ac_ext >&5
7455 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7457 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
7458 $as_echo "$ac_cv_c_const" >&6; }
7459 if test $ac_cv_c_const = no; then
7461 cat >>confdefs.h <<\_ACEOF
7467 { $as_echo "$as_me:$LINENO: checking for inline" >&5
7468 $as_echo_n "checking for inline... " >&6; }
7469 if test "${ac_cv_c_inline+set}" = set; then
7470 $as_echo_n "(cached) " >&6
7473 for ac_kw in inline __inline__ __inline; do
7474 cat >conftest.$ac_ext <<_ACEOF
7477 cat confdefs.h >>conftest.$ac_ext
7478 cat >>conftest.$ac_ext <<_ACEOF
7479 /* end confdefs.h. */
7482 static $ac_kw foo_t static_foo () {return 0; }
7483 $ac_kw foo_t foo () {return 0; }
7487 rm -f conftest.$ac_objext
7488 if { (ac_try="$ac_compile"
7490 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7491 *) ac_try_echo=$ac_try;;
7493 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7494 $as_echo "$ac_try_echo") >&5
7495 (eval "$ac_compile") 2>conftest.er1
7497 grep -v '^ *+' conftest.er1 >conftest.err
7499 cat conftest.err >&5
7500 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7501 (exit $ac_status); } && {
7502 test -z "$ac_c_werror_flag" ||
7503 test ! -s conftest.err
7504 } && test -s conftest.$ac_objext; then
7505 ac_cv_c_inline=$ac_kw
7507 $as_echo "$as_me: failed program was:" >&5
7508 sed 's/^/| /' conftest.$ac_ext >&5
7513 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7514 test "$ac_cv_c_inline" != no && break
7518 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
7519 $as_echo "$ac_cv_c_inline" >&6; }
7522 case $ac_cv_c_inline in
7525 case $ac_cv_c_inline in
7527 *) ac_val=$ac_cv_c_inline;;
7529 cat >>confdefs.h <<_ACEOF
7531 #define inline $ac_val
7537 { $as_echo "$as_me:$LINENO: checking for pid_t" >&5
7538 $as_echo_n "checking for pid_t... " >&6; }
7539 if test "${ac_cv_type_pid_t+set}" = set; then
7540 $as_echo_n "(cached) " >&6
7543 cat >conftest.$ac_ext <<_ACEOF
7546 cat confdefs.h >>conftest.$ac_ext
7547 cat >>conftest.$ac_ext <<_ACEOF
7548 /* end confdefs.h. */
7549 $ac_includes_default
7559 rm -f conftest.$ac_objext
7560 if { (ac_try="$ac_compile"
7562 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7563 *) ac_try_echo=$ac_try;;
7565 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7566 $as_echo "$ac_try_echo") >&5
7567 (eval "$ac_compile") 2>conftest.er1
7569 grep -v '^ *+' conftest.er1 >conftest.err
7571 cat conftest.err >&5
7572 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7573 (exit $ac_status); } && {
7574 test -z "$ac_c_werror_flag" ||
7575 test ! -s conftest.err
7576 } && test -s conftest.$ac_objext; then
7577 cat >conftest.$ac_ext <<_ACEOF
7580 cat confdefs.h >>conftest.$ac_ext
7581 cat >>conftest.$ac_ext <<_ACEOF
7582 /* end confdefs.h. */
7583 $ac_includes_default
7587 if (sizeof ((pid_t)))
7593 rm -f conftest.$ac_objext
7594 if { (ac_try="$ac_compile"
7596 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7597 *) ac_try_echo=$ac_try;;
7599 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7600 $as_echo "$ac_try_echo") >&5
7601 (eval "$ac_compile") 2>conftest.er1
7603 grep -v '^ *+' conftest.er1 >conftest.err
7605 cat conftest.err >&5
7606 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7607 (exit $ac_status); } && {
7608 test -z "$ac_c_werror_flag" ||
7609 test ! -s conftest.err
7610 } && test -s conftest.$ac_objext; then
7613 $as_echo "$as_me: failed program was:" >&5
7614 sed 's/^/| /' conftest.$ac_ext >&5
7616 ac_cv_type_pid_t=yes
7619 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7621 $as_echo "$as_me: failed program was:" >&5
7622 sed 's/^/| /' conftest.$ac_ext >&5
7627 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7629 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
7630 $as_echo "$ac_cv_type_pid_t" >&6; }
7631 if test "x$ac_cv_type_pid_t" = x""yes; then
7635 cat >>confdefs.h <<_ACEOF
7641 { $as_echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
7642 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
7643 if test "${ac_cv_header_time+set}" = set; then
7644 $as_echo_n "(cached) " >&6
7646 cat >conftest.$ac_ext <<_ACEOF
7649 cat confdefs.h >>conftest.$ac_ext
7650 cat >>conftest.$ac_ext <<_ACEOF
7651 /* end confdefs.h. */
7652 #include <sys/types.h>
7653 #include <sys/time.h>
7659 if ((struct tm *) 0)
7665 rm -f conftest.$ac_objext
7666 if { (ac_try="$ac_compile"
7668 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7669 *) ac_try_echo=$ac_try;;
7671 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7672 $as_echo "$ac_try_echo") >&5
7673 (eval "$ac_compile") 2>conftest.er1
7675 grep -v '^ *+' conftest.er1 >conftest.err
7677 cat conftest.err >&5
7678 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7679 (exit $ac_status); } && {
7680 test -z "$ac_c_werror_flag" ||
7681 test ! -s conftest.err
7682 } && test -s conftest.$ac_objext; then
7683 ac_cv_header_time=yes
7685 $as_echo "$as_me: failed program was:" >&5
7686 sed 's/^/| /' conftest.$ac_ext >&5
7688 ac_cv_header_time=no
7691 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7693 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
7694 $as_echo "$ac_cv_header_time" >&6; }
7695 if test $ac_cv_header_time = yes; then
7697 cat >>confdefs.h <<\_ACEOF
7698 #define TIME_WITH_SYS_TIME 1
7703 { $as_echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
7704 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
7705 if test "${ac_cv_struct_tm+set}" = set; then
7706 $as_echo_n "(cached) " >&6
7708 cat >conftest.$ac_ext <<_ACEOF
7711 cat confdefs.h >>conftest.$ac_ext
7712 cat >>conftest.$ac_ext <<_ACEOF
7713 /* end confdefs.h. */
7714 #include <sys/types.h>
7721 int *p = &tm.tm_sec;
7727 rm -f conftest.$ac_objext
7728 if { (ac_try="$ac_compile"
7730 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7731 *) ac_try_echo=$ac_try;;
7733 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7734 $as_echo "$ac_try_echo") >&5
7735 (eval "$ac_compile") 2>conftest.er1
7737 grep -v '^ *+' conftest.er1 >conftest.err
7739 cat conftest.err >&5
7740 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7741 (exit $ac_status); } && {
7742 test -z "$ac_c_werror_flag" ||
7743 test ! -s conftest.err
7744 } && test -s conftest.$ac_objext; then
7745 ac_cv_struct_tm=time.h
7747 $as_echo "$as_me: failed program was:" >&5
7748 sed 's/^/| /' conftest.$ac_ext >&5
7750 ac_cv_struct_tm=sys/time.h
7753 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7755 { $as_echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
7756 $as_echo "$ac_cv_struct_tm" >&6; }
7757 if test $ac_cv_struct_tm = sys/time.h; then
7759 cat >>confdefs.h <<\_ACEOF
7760 #define TM_IN_SYS_TIME 1
7766 # Checks for library functions.
7768 for ac_header in vfork.h
7770 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7771 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7772 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
7773 $as_echo_n "checking for $ac_header... " >&6; }
7774 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7775 $as_echo_n "(cached) " >&6
7777 ac_res=`eval 'as_val=${'$as_ac_Header'}
7778 $as_echo "$as_val"'`
7779 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7780 $as_echo "$ac_res" >&6; }
7782 # Is the header compilable?
7783 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
7784 $as_echo_n "checking $ac_header usability... " >&6; }
7785 cat >conftest.$ac_ext <<_ACEOF
7788 cat confdefs.h >>conftest.$ac_ext
7789 cat >>conftest.$ac_ext <<_ACEOF
7790 /* end confdefs.h. */
7791 $ac_includes_default
7792 #include <$ac_header>
7794 rm -f conftest.$ac_objext
7795 if { (ac_try="$ac_compile"
7797 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7798 *) ac_try_echo=$ac_try;;
7800 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7801 $as_echo "$ac_try_echo") >&5
7802 (eval "$ac_compile") 2>conftest.er1
7804 grep -v '^ *+' conftest.er1 >conftest.err
7806 cat conftest.err >&5
7807 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7808 (exit $ac_status); } && {
7809 test -z "$ac_c_werror_flag" ||
7810 test ! -s conftest.err
7811 } && test -s conftest.$ac_objext; then
7812 ac_header_compiler=yes
7814 $as_echo "$as_me: failed program was:" >&5
7815 sed 's/^/| /' conftest.$ac_ext >&5
7817 ac_header_compiler=no
7820 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7821 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7822 $as_echo "$ac_header_compiler" >&6; }
7824 # Is the header present?
7825 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
7826 $as_echo_n "checking $ac_header presence... " >&6; }
7827 cat >conftest.$ac_ext <<_ACEOF
7830 cat confdefs.h >>conftest.$ac_ext
7831 cat >>conftest.$ac_ext <<_ACEOF
7832 /* end confdefs.h. */
7833 #include <$ac_header>
7835 if { (ac_try="$ac_cpp conftest.$ac_ext"
7837 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7838 *) ac_try_echo=$ac_try;;
7840 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7841 $as_echo "$ac_try_echo") >&5
7842 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7844 grep -v '^ *+' conftest.er1 >conftest.err
7846 cat conftest.err >&5
7847 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7848 (exit $ac_status); } >/dev/null && {
7849 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7850 test ! -s conftest.err
7852 ac_header_preproc=yes
7854 $as_echo "$as_me: failed program was:" >&5
7855 sed 's/^/| /' conftest.$ac_ext >&5
7857 ac_header_preproc=no
7860 rm -f conftest.err conftest.$ac_ext
7861 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7862 $as_echo "$ac_header_preproc" >&6; }
7864 # So? What about this header?
7865 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7867 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7868 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7869 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7870 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7871 ac_header_preproc=yes
7874 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7875 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7876 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7877 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7878 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7879 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7880 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7881 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7882 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7883 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7884 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7885 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7887 ## ----------------------------------- ##
7888 ## Report this to andreas@eversberg.eu ##
7889 ## ----------------------------------- ##
7891 ) | sed "s/^/$as_me: WARNING: /" >&2
7894 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
7895 $as_echo_n "checking for $ac_header... " >&6; }
7896 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7897 $as_echo_n "(cached) " >&6
7899 eval "$as_ac_Header=\$ac_header_preproc"
7901 ac_res=`eval 'as_val=${'$as_ac_Header'}
7902 $as_echo "$as_val"'`
7903 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7904 $as_echo "$ac_res" >&6; }
7907 as_val=`eval 'as_val=${'$as_ac_Header'}
7908 $as_echo "$as_val"'`
7909 if test "x$as_val" = x""yes; then
7910 cat >>confdefs.h <<_ACEOF
7911 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7920 for ac_func in fork vfork
7922 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
7923 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
7924 $as_echo_n "checking for $ac_func... " >&6; }
7925 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
7926 $as_echo_n "(cached) " >&6
7928 cat >conftest.$ac_ext <<_ACEOF
7931 cat confdefs.h >>conftest.$ac_ext
7932 cat >>conftest.$ac_ext <<_ACEOF
7933 /* end confdefs.h. */
7934 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7935 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7936 #define $ac_func innocuous_$ac_func
7938 /* System header to define __stub macros and hopefully few prototypes,
7939 which can conflict with char $ac_func (); below.
7940 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7941 <limits.h> exists even on freestanding compilers. */
7944 # include <limits.h>
7946 # include <assert.h>
7951 /* Override any GCC internal prototype to avoid an error.
7952 Use char because int might match the return type of a GCC
7953 builtin and then its argument prototype would still apply. */
7958 /* The GNU C library defines this for functions which it implements
7959 to always fail with ENOSYS. Some functions are actually named
7960 something starting with __ and the normal name is an alias. */
7961 #if defined __stub_$ac_func || defined __stub___$ac_func
7973 rm -f conftest.$ac_objext conftest$ac_exeext
7974 if { (ac_try="$ac_link"
7976 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7977 *) ac_try_echo=$ac_try;;
7979 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7980 $as_echo "$ac_try_echo") >&5
7981 (eval "$ac_link") 2>conftest.er1
7983 grep -v '^ *+' conftest.er1 >conftest.err
7985 cat conftest.err >&5
7986 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7987 (exit $ac_status); } && {
7988 test -z "$ac_c_werror_flag" ||
7989 test ! -s conftest.err
7990 } && test -s conftest$ac_exeext && {
7991 test "$cross_compiling" = yes ||
7992 $as_test_x conftest$ac_exeext
7994 eval "$as_ac_var=yes"
7996 $as_echo "$as_me: failed program was:" >&5
7997 sed 's/^/| /' conftest.$ac_ext >&5
7999 eval "$as_ac_var=no"
8002 rm -rf conftest.dSYM
8003 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8004 conftest$ac_exeext conftest.$ac_ext
8006 ac_res=`eval 'as_val=${'$as_ac_var'}
8007 $as_echo "$as_val"'`
8008 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
8009 $as_echo "$ac_res" >&6; }
8010 as_val=`eval 'as_val=${'$as_ac_var'}
8011 $as_echo "$as_val"'`
8012 if test "x$as_val" = x""yes; then
8013 cat >>confdefs.h <<_ACEOF
8014 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
8020 if test "x$ac_cv_func_fork" = xyes; then
8021 { $as_echo "$as_me:$LINENO: checking for working fork" >&5
8022 $as_echo_n "checking for working fork... " >&6; }
8023 if test "${ac_cv_func_fork_works+set}" = set; then
8024 $as_echo_n "(cached) " >&6
8026 if test "$cross_compiling" = yes; then
8027 ac_cv_func_fork_works=cross
8029 cat >conftest.$ac_ext <<_ACEOF
8032 cat confdefs.h >>conftest.$ac_ext
8033 cat >>conftest.$ac_ext <<_ACEOF
8034 /* end confdefs.h. */
8035 $ac_includes_default
8040 /* By Ruediger Kuhlmann. */
8047 rm -f conftest$ac_exeext
8048 if { (ac_try="$ac_link"
8050 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8051 *) ac_try_echo=$ac_try;;
8053 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8054 $as_echo "$ac_try_echo") >&5
8055 (eval "$ac_link") 2>&5
8057 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8058 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8059 { (case "(($ac_try" in
8060 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8061 *) ac_try_echo=$ac_try;;
8063 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8064 $as_echo "$ac_try_echo") >&5
8065 (eval "$ac_try") 2>&5
8067 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8068 (exit $ac_status); }; }; then
8069 ac_cv_func_fork_works=yes
8071 $as_echo "$as_me: program exited with status $ac_status" >&5
8072 $as_echo "$as_me: failed program was:" >&5
8073 sed 's/^/| /' conftest.$ac_ext >&5
8076 ac_cv_func_fork_works=no
8078 rm -rf conftest.dSYM
8079 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8084 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
8085 $as_echo "$ac_cv_func_fork_works" >&6; }
8088 ac_cv_func_fork_works=$ac_cv_func_fork
8090 if test "x$ac_cv_func_fork_works" = xcross; then
8092 *-*-amigaos* | *-*-msdosdjgpp*)
8093 # Override, as these systems have only a dummy fork() stub
8094 ac_cv_func_fork_works=no
8097 ac_cv_func_fork_works=yes
8100 { $as_echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
8101 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
8103 ac_cv_func_vfork_works=$ac_cv_func_vfork
8104 if test "x$ac_cv_func_vfork" = xyes; then
8105 { $as_echo "$as_me:$LINENO: checking for working vfork" >&5
8106 $as_echo_n "checking for working vfork... " >&6; }
8107 if test "${ac_cv_func_vfork_works+set}" = set; then
8108 $as_echo_n "(cached) " >&6
8110 if test "$cross_compiling" = yes; then
8111 ac_cv_func_vfork_works=cross
8113 cat >conftest.$ac_ext <<_ACEOF
8116 cat confdefs.h >>conftest.$ac_ext
8117 cat >>conftest.$ac_ext <<_ACEOF
8118 /* end confdefs.h. */
8119 /* Thanks to Paul Eggert for this test. */
8120 $ac_includes_default
8121 #include <sys/wait.h>
8125 /* On some sparc systems, changes by the child to local and incoming
8126 argument registers are propagated back to the parent. The compiler
8127 is told about this with #include <vfork.h>, but some compilers
8128 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
8129 static variable whose address is put into a register that is
8130 clobbered by the vfork. */
8133 sparc_address_test (int arg)
8135 sparc_address_test (arg) int arg;
8156 pid_t parent = getpid ();
8159 sparc_address_test (0);
8164 /* Here is another test for sparc vfork register problems. This
8165 test uses lots of local variables, at least as many local
8166 variables as main has allocated so far including compiler
8167 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
8168 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
8169 reuse the register of parent for one of the local variables,
8170 since it will think that parent can't possibly be used any more
8171 in this routine. Assigning to the local variable will thus
8172 munge parent in the parent process. */
8174 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
8175 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
8176 /* Convince the compiler that p..p7 are live; otherwise, it might
8177 use the same hardware register for all 8 local variables. */
8178 if (p != p1 || p != p2 || p != p3 || p != p4
8179 || p != p5 || p != p6 || p != p7)
8182 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
8183 from child file descriptors. If the child closes a descriptor
8184 before it execs or exits, this munges the parent's descriptor
8185 as well. Test for this by closing stdout in the child. */
8186 _exit(close(fileno(stdout)) != 0);
8191 while (wait(&status) != child)
8194 /* Was there some problem with vforking? */
8197 /* Did the child fail? (This shouldn't happen.) */
8200 /* Did the vfork/compiler bug occur? */
8201 || parent != getpid()
8203 /* Did the file descriptor bug occur? */
8204 || fstat(fileno(stdout), &st) != 0
8209 rm -f conftest$ac_exeext
8210 if { (ac_try="$ac_link"
8212 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8213 *) ac_try_echo=$ac_try;;
8215 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8216 $as_echo "$ac_try_echo") >&5
8217 (eval "$ac_link") 2>&5
8219 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8220 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8221 { (case "(($ac_try" in
8222 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8223 *) ac_try_echo=$ac_try;;
8225 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8226 $as_echo "$ac_try_echo") >&5
8227 (eval "$ac_try") 2>&5
8229 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8230 (exit $ac_status); }; }; then
8231 ac_cv_func_vfork_works=yes
8233 $as_echo "$as_me: program exited with status $ac_status" >&5
8234 $as_echo "$as_me: failed program was:" >&5
8235 sed 's/^/| /' conftest.$ac_ext >&5
8238 ac_cv_func_vfork_works=no
8240 rm -rf conftest.dSYM
8241 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8246 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
8247 $as_echo "$ac_cv_func_vfork_works" >&6; }
8250 if test "x$ac_cv_func_fork_works" = xcross; then
8251 ac_cv_func_vfork_works=$ac_cv_func_vfork
8252 { $as_echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
8253 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
8256 if test "x$ac_cv_func_vfork_works" = xyes; then
8258 cat >>confdefs.h <<\_ACEOF
8259 #define HAVE_WORKING_VFORK 1
8264 cat >>confdefs.h <<\_ACEOF
8269 if test "x$ac_cv_func_fork_works" = xyes; then
8271 cat >>confdefs.h <<\_ACEOF
8272 #define HAVE_WORKING_FORK 1
8277 if test $ac_cv_c_compiler_gnu = yes; then
8278 { $as_echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
8279 $as_echo_n "checking whether $CC needs -traditional... " >&6; }
8280 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
8281 $as_echo_n "(cached) " >&6
8283 ac_pattern="Autoconf.*'x'"
8284 cat >conftest.$ac_ext <<_ACEOF
8287 cat confdefs.h >>conftest.$ac_ext
8288 cat >>conftest.$ac_ext <<_ACEOF
8289 /* end confdefs.h. */
8293 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8294 $EGREP "$ac_pattern" >/dev/null 2>&1; then
8295 ac_cv_prog_gcc_traditional=yes
8297 ac_cv_prog_gcc_traditional=no
8302 if test $ac_cv_prog_gcc_traditional = no; then
8303 cat >conftest.$ac_ext <<_ACEOF
8306 cat confdefs.h >>conftest.$ac_ext
8307 cat >>conftest.$ac_ext <<_ACEOF
8308 /* end confdefs.h. */
8312 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8313 $EGREP "$ac_pattern" >/dev/null 2>&1; then
8314 ac_cv_prog_gcc_traditional=yes
8320 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
8321 $as_echo "$ac_cv_prog_gcc_traditional" >&6; }
8322 if test $ac_cv_prog_gcc_traditional = yes; then
8323 CC="$CC -traditional"
8327 { $as_echo "$as_me:$LINENO: checking whether lstat dereferences a symlink specified with a trailing slash" >&5
8328 $as_echo_n "checking whether lstat dereferences a symlink specified with a trailing slash... " >&6; }
8329 if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then
8330 $as_echo_n "(cached) " >&6
8332 rm -f conftest.sym conftest.file
8334 if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
8335 if test "$cross_compiling" = yes; then
8336 ac_cv_func_lstat_dereferences_slashed_symlink=no
8338 cat >conftest.$ac_ext <<_ACEOF
8341 cat confdefs.h >>conftest.$ac_ext
8342 cat >>conftest.$ac_ext <<_ACEOF
8343 /* end confdefs.h. */
8344 $ac_includes_default
8349 /* Linux will dereference the symlink and fail.
8350 That is better in the sense that it means we will not
8351 have to compile and use the lstat wrapper. */
8352 return lstat ("conftest.sym/", &sbuf) == 0;
8357 rm -f conftest$ac_exeext
8358 if { (ac_try="$ac_link"
8360 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8361 *) ac_try_echo=$ac_try;;
8363 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8364 $as_echo "$ac_try_echo") >&5
8365 (eval "$ac_link") 2>&5
8367 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8368 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8369 { (case "(($ac_try" in
8370 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8371 *) ac_try_echo=$ac_try;;
8373 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8374 $as_echo "$ac_try_echo") >&5
8375 (eval "$ac_try") 2>&5
8377 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8378 (exit $ac_status); }; }; then
8379 ac_cv_func_lstat_dereferences_slashed_symlink=yes
8381 $as_echo "$as_me: program exited with status $ac_status" >&5
8382 $as_echo "$as_me: failed program was:" >&5
8383 sed 's/^/| /' conftest.$ac_ext >&5
8386 ac_cv_func_lstat_dereferences_slashed_symlink=no
8388 rm -rf conftest.dSYM
8389 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8394 # If the `ln -s' command failed, then we probably don't even
8395 # have an lstat function.
8396 ac_cv_func_lstat_dereferences_slashed_symlink=no
8398 rm -f conftest.sym conftest.file
8401 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
8402 $as_echo "$ac_cv_func_lstat_dereferences_slashed_symlink" >&6; }
8404 test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
8406 cat >>confdefs.h <<_ACEOF
8407 #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
8411 if test $ac_cv_func_lstat_dereferences_slashed_symlink = no; then
8412 case " $LIBOBJS " in
8413 *" lstat.$ac_objext "* ) ;;
8414 *) LIBOBJS="$LIBOBJS lstat.$ac_objext"
8420 { $as_echo "$as_me:$LINENO: checking whether lstat accepts an empty string" >&5
8421 $as_echo_n "checking whether lstat accepts an empty string... " >&6; }
8422 if test "${ac_cv_func_lstat_empty_string_bug+set}" = set; then
8423 $as_echo_n "(cached) " >&6
8425 if test "$cross_compiling" = yes; then
8426 ac_cv_func_lstat_empty_string_bug=yes
8428 cat >conftest.$ac_ext <<_ACEOF
8431 cat confdefs.h >>conftest.$ac_ext
8432 cat >>conftest.$ac_ext <<_ACEOF
8433 /* end confdefs.h. */
8434 $ac_includes_default
8439 return lstat ("", &sbuf) == 0;
8444 rm -f conftest$ac_exeext
8445 if { (ac_try="$ac_link"
8447 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8448 *) ac_try_echo=$ac_try;;
8450 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8451 $as_echo "$ac_try_echo") >&5
8452 (eval "$ac_link") 2>&5
8454 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8455 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8456 { (case "(($ac_try" in
8457 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8458 *) ac_try_echo=$ac_try;;
8460 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8461 $as_echo "$ac_try_echo") >&5
8462 (eval "$ac_try") 2>&5
8464 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8465 (exit $ac_status); }; }; then
8466 ac_cv_func_lstat_empty_string_bug=no
8468 $as_echo "$as_me: program exited with status $ac_status" >&5
8469 $as_echo "$as_me: failed program was:" >&5
8470 sed 's/^/| /' conftest.$ac_ext >&5
8473 ac_cv_func_lstat_empty_string_bug=yes
8475 rm -rf conftest.dSYM
8476 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8481 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_lstat_empty_string_bug" >&5
8482 $as_echo "$ac_cv_func_lstat_empty_string_bug" >&6; }
8483 if test $ac_cv_func_lstat_empty_string_bug = yes; then
8484 case " $LIBOBJS " in
8485 *" lstat.$ac_objext "* ) ;;
8486 *) LIBOBJS="$LIBOBJS lstat.$ac_objext"
8491 cat >>confdefs.h <<_ACEOF
8492 #define HAVE_LSTAT_EMPTY_STRING_BUG 1
8497 { $as_echo "$as_me:$LINENO: checking whether lstat dereferences a symlink specified with a trailing slash" >&5
8498 $as_echo_n "checking whether lstat dereferences a symlink specified with a trailing slash... " >&6; }
8499 if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then
8500 $as_echo_n "(cached) " >&6
8502 rm -f conftest.sym conftest.file
8504 if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
8505 if test "$cross_compiling" = yes; then
8506 ac_cv_func_lstat_dereferences_slashed_symlink=no
8508 cat >conftest.$ac_ext <<_ACEOF
8511 cat confdefs.h >>conftest.$ac_ext
8512 cat >>conftest.$ac_ext <<_ACEOF
8513 /* end confdefs.h. */
8514 $ac_includes_default
8519 /* Linux will dereference the symlink and fail.
8520 That is better in the sense that it means we will not
8521 have to compile and use the lstat wrapper. */
8522 return lstat ("conftest.sym/", &sbuf) == 0;
8527 rm -f conftest$ac_exeext
8528 if { (ac_try="$ac_link"
8530 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8531 *) ac_try_echo=$ac_try;;
8533 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8534 $as_echo "$ac_try_echo") >&5
8535 (eval "$ac_link") 2>&5
8537 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8538 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8539 { (case "(($ac_try" in
8540 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8541 *) ac_try_echo=$ac_try;;
8543 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8544 $as_echo "$ac_try_echo") >&5
8545 (eval "$ac_try") 2>&5
8547 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8548 (exit $ac_status); }; }; then
8549 ac_cv_func_lstat_dereferences_slashed_symlink=yes
8551 $as_echo "$as_me: program exited with status $ac_status" >&5
8552 $as_echo "$as_me: failed program was:" >&5
8553 sed 's/^/| /' conftest.$ac_ext >&5
8556 ac_cv_func_lstat_dereferences_slashed_symlink=no
8558 rm -rf conftest.dSYM
8559 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8564 # If the `ln -s' command failed, then we probably don't even
8565 # have an lstat function.
8566 ac_cv_func_lstat_dereferences_slashed_symlink=no
8568 rm -f conftest.sym conftest.file
8571 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
8572 $as_echo "$ac_cv_func_lstat_dereferences_slashed_symlink" >&6; }
8574 test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
8576 cat >>confdefs.h <<_ACEOF
8577 #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
8581 if test $ac_cv_func_lstat_dereferences_slashed_symlink = no; then
8582 case " $LIBOBJS " in
8583 *" lstat.$ac_objext "* ) ;;
8584 *) LIBOBJS="$LIBOBJS lstat.$ac_objext"
8591 for ac_header in stdlib.h
8593 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8594 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8595 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
8596 $as_echo_n "checking for $ac_header... " >&6; }
8597 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8598 $as_echo_n "(cached) " >&6
8600 ac_res=`eval 'as_val=${'$as_ac_Header'}
8601 $as_echo "$as_val"'`
8602 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
8603 $as_echo "$ac_res" >&6; }
8605 # Is the header compilable?
8606 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
8607 $as_echo_n "checking $ac_header usability... " >&6; }
8608 cat >conftest.$ac_ext <<_ACEOF
8611 cat confdefs.h >>conftest.$ac_ext
8612 cat >>conftest.$ac_ext <<_ACEOF
8613 /* end confdefs.h. */
8614 $ac_includes_default
8615 #include <$ac_header>
8617 rm -f conftest.$ac_objext
8618 if { (ac_try="$ac_compile"
8620 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8621 *) ac_try_echo=$ac_try;;
8623 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8624 $as_echo "$ac_try_echo") >&5
8625 (eval "$ac_compile") 2>conftest.er1
8627 grep -v '^ *+' conftest.er1 >conftest.err
8629 cat conftest.err >&5
8630 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8631 (exit $ac_status); } && {
8632 test -z "$ac_c_werror_flag" ||
8633 test ! -s conftest.err
8634 } && test -s conftest.$ac_objext; then
8635 ac_header_compiler=yes
8637 $as_echo "$as_me: failed program was:" >&5
8638 sed 's/^/| /' conftest.$ac_ext >&5
8640 ac_header_compiler=no
8643 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8644 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8645 $as_echo "$ac_header_compiler" >&6; }
8647 # Is the header present?
8648 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
8649 $as_echo_n "checking $ac_header presence... " >&6; }
8650 cat >conftest.$ac_ext <<_ACEOF
8653 cat confdefs.h >>conftest.$ac_ext
8654 cat >>conftest.$ac_ext <<_ACEOF
8655 /* end confdefs.h. */
8656 #include <$ac_header>
8658 if { (ac_try="$ac_cpp conftest.$ac_ext"
8660 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8661 *) ac_try_echo=$ac_try;;
8663 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8664 $as_echo "$ac_try_echo") >&5
8665 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8667 grep -v '^ *+' conftest.er1 >conftest.err
8669 cat conftest.err >&5
8670 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8671 (exit $ac_status); } >/dev/null && {
8672 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
8673 test ! -s conftest.err
8675 ac_header_preproc=yes
8677 $as_echo "$as_me: failed program was:" >&5
8678 sed 's/^/| /' conftest.$ac_ext >&5
8680 ac_header_preproc=no
8683 rm -f conftest.err conftest.$ac_ext
8684 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8685 $as_echo "$ac_header_preproc" >&6; }
8687 # So? What about this header?
8688 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8690 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8691 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8692 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8693 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8694 ac_header_preproc=yes
8697 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8698 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8699 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8700 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8701 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8702 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8703 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8704 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8705 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8706 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8707 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8708 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8710 ## ----------------------------------- ##
8711 ## Report this to andreas@eversberg.eu ##
8712 ## ----------------------------------- ##
8714 ) | sed "s/^/$as_me: WARNING: /" >&2
8717 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
8718 $as_echo_n "checking for $ac_header... " >&6; }
8719 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8720 $as_echo_n "(cached) " >&6
8722 eval "$as_ac_Header=\$ac_header_preproc"
8724 ac_res=`eval 'as_val=${'$as_ac_Header'}
8725 $as_echo "$as_val"'`
8726 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
8727 $as_echo "$ac_res" >&6; }
8730 as_val=`eval 'as_val=${'$as_ac_Header'}
8731 $as_echo "$as_val"'`
8732 if test "x$as_val" = x""yes; then
8733 cat >>confdefs.h <<_ACEOF
8734 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8741 { $as_echo "$as_me:$LINENO: checking for GNU libc compatible malloc" >&5
8742 $as_echo_n "checking for GNU libc compatible malloc... " >&6; }
8743 if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then
8744 $as_echo_n "(cached) " >&6
8746 if test "$cross_compiling" = yes; then
8747 ac_cv_func_malloc_0_nonnull=no
8749 cat >conftest.$ac_ext <<_ACEOF
8752 cat confdefs.h >>conftest.$ac_ext
8753 cat >>conftest.$ac_ext <<_ACEOF
8754 /* end confdefs.h. */
8755 #if defined STDC_HEADERS || defined HAVE_STDLIB_H
8756 # include <stdlib.h>
8764 return ! malloc (0);
8769 rm -f conftest$ac_exeext
8770 if { (ac_try="$ac_link"
8772 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8773 *) ac_try_echo=$ac_try;;
8775 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8776 $as_echo "$ac_try_echo") >&5
8777 (eval "$ac_link") 2>&5
8779 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8780 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8781 { (case "(($ac_try" in
8782 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8783 *) ac_try_echo=$ac_try;;
8785 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8786 $as_echo "$ac_try_echo") >&5
8787 (eval "$ac_try") 2>&5
8789 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8790 (exit $ac_status); }; }; then
8791 ac_cv_func_malloc_0_nonnull=yes
8793 $as_echo "$as_me: program exited with status $ac_status" >&5
8794 $as_echo "$as_me: failed program was:" >&5
8795 sed 's/^/| /' conftest.$ac_ext >&5
8798 ac_cv_func_malloc_0_nonnull=no
8800 rm -rf conftest.dSYM
8801 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8806 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_malloc_0_nonnull" >&5
8807 $as_echo "$ac_cv_func_malloc_0_nonnull" >&6; }
8808 if test $ac_cv_func_malloc_0_nonnull = yes; then
8810 cat >>confdefs.h <<\_ACEOF
8811 #define HAVE_MALLOC 1
8815 cat >>confdefs.h <<\_ACEOF
8816 #define HAVE_MALLOC 0
8819 case " $LIBOBJS " in
8820 *" malloc.$ac_objext "* ) ;;
8821 *) LIBOBJS="$LIBOBJS malloc.$ac_objext"
8826 cat >>confdefs.h <<\_ACEOF
8827 #define malloc rpl_malloc
8834 { $as_echo "$as_me:$LINENO: checking for working memcmp" >&5
8835 $as_echo_n "checking for working memcmp... " >&6; }
8836 if test "${ac_cv_func_memcmp_working+set}" = set; then
8837 $as_echo_n "(cached) " >&6
8839 if test "$cross_compiling" = yes; then
8840 ac_cv_func_memcmp_working=no
8842 cat >conftest.$ac_ext <<_ACEOF
8845 cat confdefs.h >>conftest.$ac_ext
8846 cat >>conftest.$ac_ext <<_ACEOF
8847 /* end confdefs.h. */
8848 $ac_includes_default
8853 /* Some versions of memcmp are not 8-bit clean. */
8854 char c0 = '\100', c1 = '\200', c2 = '\201';
8855 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
8858 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
8859 or more and with at least one buffer not starting on a 4-byte boundary.
8860 William Lewis provided this test program. */
8865 for (i = 0; i < 4; i++)
8869 strcpy (a, "--------01111111");
8870 strcpy (b, "--------10000000");
8871 if (memcmp (a, b, 16) >= 0)
8881 rm -f conftest$ac_exeext
8882 if { (ac_try="$ac_link"
8884 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8885 *) ac_try_echo=$ac_try;;
8887 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8888 $as_echo "$ac_try_echo") >&5
8889 (eval "$ac_link") 2>&5
8891 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8892 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8893 { (case "(($ac_try" in
8894 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8895 *) ac_try_echo=$ac_try;;
8897 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8898 $as_echo "$ac_try_echo") >&5
8899 (eval "$ac_try") 2>&5
8901 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8902 (exit $ac_status); }; }; then
8903 ac_cv_func_memcmp_working=yes
8905 $as_echo "$as_me: program exited with status $ac_status" >&5
8906 $as_echo "$as_me: failed program was:" >&5
8907 sed 's/^/| /' conftest.$ac_ext >&5
8910 ac_cv_func_memcmp_working=no
8912 rm -rf conftest.dSYM
8913 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8918 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
8919 $as_echo "$ac_cv_func_memcmp_working" >&6; }
8920 test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
8921 *" memcmp.$ac_objext "* ) ;;
8922 *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
8927 { $as_echo "$as_me:$LINENO: checking return type of signal handlers" >&5
8928 $as_echo_n "checking return type of signal handlers... " >&6; }
8929 if test "${ac_cv_type_signal+set}" = set; then
8930 $as_echo_n "(cached) " >&6
8932 cat >conftest.$ac_ext <<_ACEOF
8935 cat confdefs.h >>conftest.$ac_ext
8936 cat >>conftest.$ac_ext <<_ACEOF
8937 /* end confdefs.h. */
8938 #include <sys/types.h>
8944 return *(signal (0, 0)) (0) == 1;
8949 rm -f conftest.$ac_objext
8950 if { (ac_try="$ac_compile"
8952 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8953 *) ac_try_echo=$ac_try;;
8955 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8956 $as_echo "$ac_try_echo") >&5
8957 (eval "$ac_compile") 2>conftest.er1
8959 grep -v '^ *+' conftest.er1 >conftest.err
8961 cat conftest.err >&5
8962 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8963 (exit $ac_status); } && {
8964 test -z "$ac_c_werror_flag" ||
8965 test ! -s conftest.err
8966 } && test -s conftest.$ac_objext; then
8967 ac_cv_type_signal=int
8969 $as_echo "$as_me: failed program was:" >&5
8970 sed 's/^/| /' conftest.$ac_ext >&5
8972 ac_cv_type_signal=void
8975 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8977 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
8978 $as_echo "$ac_cv_type_signal" >&6; }
8980 cat >>confdefs.h <<_ACEOF
8981 #define RETSIGTYPE $ac_cv_type_signal
8985 { $as_echo "$as_me:$LINENO: checking for working strnlen" >&5
8986 $as_echo_n "checking for working strnlen... " >&6; }
8987 if test "${ac_cv_func_strnlen_working+set}" = set; then
8988 $as_echo_n "(cached) " >&6
8990 if test "$cross_compiling" = yes; then
8991 ac_cv_func_strnlen_working=no
8993 cat >conftest.$ac_ext <<_ACEOF
8996 cat confdefs.h >>conftest.$ac_ext
8997 cat >>conftest.$ac_ext <<_ACEOF
8998 /* end confdefs.h. */
8999 $ac_includes_default
9005 #define S_LEN (sizeof S - 1)
9007 /* At least one implementation is buggy: that of AIX 4.3 would
9008 give strnlen (S, 1) == 3. */
9011 for (i = 0; i < S_LEN + 1; ++i)
9013 int expected = i <= S_LEN ? i : S_LEN;
9014 if (strnlen (S, i) != expected)
9023 rm -f conftest$ac_exeext
9024 if { (ac_try="$ac_link"
9026 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9027 *) ac_try_echo=$ac_try;;
9029 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9030 $as_echo "$ac_try_echo") >&5
9031 (eval "$ac_link") 2>&5
9033 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9034 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9035 { (case "(($ac_try" in
9036 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9037 *) ac_try_echo=$ac_try;;
9039 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9040 $as_echo "$ac_try_echo") >&5
9041 (eval "$ac_try") 2>&5
9043 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9044 (exit $ac_status); }; }; then
9045 ac_cv_func_strnlen_working=yes
9047 $as_echo "$as_me: program exited with status $ac_status" >&5
9048 $as_echo "$as_me: failed program was:" >&5
9049 sed 's/^/| /' conftest.$ac_ext >&5
9052 ac_cv_func_strnlen_working=no
9054 rm -rf conftest.dSYM
9055 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9060 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_strnlen_working" >&5
9061 $as_echo "$ac_cv_func_strnlen_working" >&6; }
9062 test $ac_cv_func_strnlen_working = no && case " $LIBOBJS " in
9063 *" strnlen.$ac_objext "* ) ;;
9064 *) LIBOBJS="$LIBOBJS strnlen.$ac_objext"
9069 { $as_echo "$as_me:$LINENO: checking for working strtod" >&5
9070 $as_echo_n "checking for working strtod... " >&6; }
9071 if test "${ac_cv_func_strtod+set}" = set; then
9072 $as_echo_n "(cached) " >&6
9074 if test "$cross_compiling" = yes; then
9075 ac_cv_func_strtod=no
9077 cat >conftest.$ac_ext <<_ACEOF
9080 cat confdefs.h >>conftest.$ac_ext
9081 cat >>conftest.$ac_ext <<_ACEOF
9082 /* end confdefs.h. */
9084 $ac_includes_default
9092 /* Some versions of Linux strtod mis-parse strings with leading '+'. */
9093 char *string = " +69";
9096 value = strtod (string, &term);
9097 if (value != 69 || term != (string + 4))
9102 /* Under Solaris 2.4, strtod returns the wrong value for the
9103 terminating character under some conditions. */
9104 char *string = "NaN";
9106 strtod (string, &term);
9107 if (term != string && *(term - 1) == 0)
9114 rm -f conftest$ac_exeext
9115 if { (ac_try="$ac_link"
9117 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9118 *) ac_try_echo=$ac_try;;
9120 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9121 $as_echo "$ac_try_echo") >&5
9122 (eval "$ac_link") 2>&5
9124 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9125 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9126 { (case "(($ac_try" in
9127 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9128 *) ac_try_echo=$ac_try;;
9130 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9131 $as_echo "$ac_try_echo") >&5
9132 (eval "$ac_try") 2>&5
9134 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9135 (exit $ac_status); }; }; then
9136 ac_cv_func_strtod=yes
9138 $as_echo "$as_me: program exited with status $ac_status" >&5
9139 $as_echo "$as_me: failed program was:" >&5
9140 sed 's/^/| /' conftest.$ac_ext >&5
9143 ac_cv_func_strtod=no
9145 rm -rf conftest.dSYM
9146 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9151 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_strtod" >&5
9152 $as_echo "$ac_cv_func_strtod" >&6; }
9153 if test $ac_cv_func_strtod = no; then
9154 case " $LIBOBJS " in
9155 *" strtod.$ac_objext "* ) ;;
9156 *) LIBOBJS="$LIBOBJS strtod.$ac_objext"
9160 { $as_echo "$as_me:$LINENO: checking for pow" >&5
9161 $as_echo_n "checking for pow... " >&6; }
9162 if test "${ac_cv_func_pow+set}" = set; then
9163 $as_echo_n "(cached) " >&6
9165 cat >conftest.$ac_ext <<_ACEOF
9168 cat confdefs.h >>conftest.$ac_ext
9169 cat >>conftest.$ac_ext <<_ACEOF
9170 /* end confdefs.h. */
9171 /* Define pow to an innocuous variant, in case <limits.h> declares pow.
9172 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9173 #define pow innocuous_pow
9175 /* System header to define __stub macros and hopefully few prototypes,
9176 which can conflict with char pow (); below.
9177 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9178 <limits.h> exists even on freestanding compilers. */
9181 # include <limits.h>
9183 # include <assert.h>
9188 /* Override any GCC internal prototype to avoid an error.
9189 Use char because int might match the return type of a GCC
9190 builtin and then its argument prototype would still apply. */
9195 /* The GNU C library defines this for functions which it implements
9196 to always fail with ENOSYS. Some functions are actually named
9197 something starting with __ and the normal name is an alias. */
9198 #if defined __stub_pow || defined __stub___pow
9210 rm -f conftest.$ac_objext conftest$ac_exeext
9211 if { (ac_try="$ac_link"
9213 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9214 *) ac_try_echo=$ac_try;;
9216 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9217 $as_echo "$ac_try_echo") >&5
9218 (eval "$ac_link") 2>conftest.er1
9220 grep -v '^ *+' conftest.er1 >conftest.err
9222 cat conftest.err >&5
9223 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9224 (exit $ac_status); } && {
9225 test -z "$ac_c_werror_flag" ||
9226 test ! -s conftest.err
9227 } && test -s conftest$ac_exeext && {
9228 test "$cross_compiling" = yes ||
9229 $as_test_x conftest$ac_exeext
9233 $as_echo "$as_me: failed program was:" >&5
9234 sed 's/^/| /' conftest.$ac_ext >&5
9239 rm -rf conftest.dSYM
9240 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9241 conftest$ac_exeext conftest.$ac_ext
9243 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_pow" >&5
9244 $as_echo "$ac_cv_func_pow" >&6; }
9246 if test $ac_cv_func_pow = no; then
9247 { $as_echo "$as_me:$LINENO: checking for pow in -lm" >&5
9248 $as_echo_n "checking for pow in -lm... " >&6; }
9249 if test "${ac_cv_lib_m_pow+set}" = set; then
9250 $as_echo_n "(cached) " >&6
9252 ac_check_lib_save_LIBS=$LIBS
9254 cat >conftest.$ac_ext <<_ACEOF
9257 cat confdefs.h >>conftest.$ac_ext
9258 cat >>conftest.$ac_ext <<_ACEOF
9259 /* end confdefs.h. */
9261 /* Override any GCC internal prototype to avoid an error.
9262 Use char because int might match the return type of a GCC
9263 builtin and then its argument prototype would still apply. */
9276 rm -f conftest.$ac_objext conftest$ac_exeext
9277 if { (ac_try="$ac_link"
9279 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9280 *) ac_try_echo=$ac_try;;
9282 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9283 $as_echo "$ac_try_echo") >&5
9284 (eval "$ac_link") 2>conftest.er1
9286 grep -v '^ *+' conftest.er1 >conftest.err
9288 cat conftest.err >&5
9289 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9290 (exit $ac_status); } && {
9291 test -z "$ac_c_werror_flag" ||
9292 test ! -s conftest.err
9293 } && test -s conftest$ac_exeext && {
9294 test "$cross_compiling" = yes ||
9295 $as_test_x conftest$ac_exeext
9299 $as_echo "$as_me: failed program was:" >&5
9300 sed 's/^/| /' conftest.$ac_ext >&5
9305 rm -rf conftest.dSYM
9306 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9307 conftest$ac_exeext conftest.$ac_ext
9308 LIBS=$ac_check_lib_save_LIBS
9310 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_m_pow" >&5
9311 $as_echo "$ac_cv_lib_m_pow" >&6; }
9312 if test "x$ac_cv_lib_m_pow" = x""yes; then
9315 { $as_echo "$as_me:$LINENO: WARNING: cannot find library containing definition of pow" >&5
9316 $as_echo "$as_me: WARNING: cannot find library containing definition of pow" >&2;}
9324 for ac_func in vprintf
9326 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9327 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
9328 $as_echo_n "checking for $ac_func... " >&6; }
9329 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
9330 $as_echo_n "(cached) " >&6
9332 cat >conftest.$ac_ext <<_ACEOF
9335 cat confdefs.h >>conftest.$ac_ext
9336 cat >>conftest.$ac_ext <<_ACEOF
9337 /* end confdefs.h. */
9338 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9339 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9340 #define $ac_func innocuous_$ac_func
9342 /* System header to define __stub macros and hopefully few prototypes,
9343 which can conflict with char $ac_func (); below.
9344 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9345 <limits.h> exists even on freestanding compilers. */
9348 # include <limits.h>
9350 # include <assert.h>
9355 /* Override any GCC internal prototype to avoid an error.
9356 Use char because int might match the return type of a GCC
9357 builtin and then its argument prototype would still apply. */
9362 /* The GNU C library defines this for functions which it implements
9363 to always fail with ENOSYS. Some functions are actually named
9364 something starting with __ and the normal name is an alias. */
9365 #if defined __stub_$ac_func || defined __stub___$ac_func
9377 rm -f conftest.$ac_objext conftest$ac_exeext
9378 if { (ac_try="$ac_link"
9380 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9381 *) ac_try_echo=$ac_try;;
9383 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9384 $as_echo "$ac_try_echo") >&5
9385 (eval "$ac_link") 2>conftest.er1
9387 grep -v '^ *+' conftest.er1 >conftest.err
9389 cat conftest.err >&5
9390 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9391 (exit $ac_status); } && {
9392 test -z "$ac_c_werror_flag" ||
9393 test ! -s conftest.err
9394 } && test -s conftest$ac_exeext && {
9395 test "$cross_compiling" = yes ||
9396 $as_test_x conftest$ac_exeext
9398 eval "$as_ac_var=yes"
9400 $as_echo "$as_me: failed program was:" >&5
9401 sed 's/^/| /' conftest.$ac_ext >&5
9403 eval "$as_ac_var=no"
9406 rm -rf conftest.dSYM
9407 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9408 conftest$ac_exeext conftest.$ac_ext
9410 ac_res=`eval 'as_val=${'$as_ac_var'}
9411 $as_echo "$as_val"'`
9412 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
9413 $as_echo "$ac_res" >&6; }
9414 as_val=`eval 'as_val=${'$as_ac_var'}
9415 $as_echo "$as_val"'`
9416 if test "x$as_val" = x""yes; then
9417 cat >>confdefs.h <<_ACEOF
9418 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9421 { $as_echo "$as_me:$LINENO: checking for _doprnt" >&5
9422 $as_echo_n "checking for _doprnt... " >&6; }
9423 if test "${ac_cv_func__doprnt+set}" = set; then
9424 $as_echo_n "(cached) " >&6
9426 cat >conftest.$ac_ext <<_ACEOF
9429 cat confdefs.h >>conftest.$ac_ext
9430 cat >>conftest.$ac_ext <<_ACEOF
9431 /* end confdefs.h. */
9432 /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
9433 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9434 #define _doprnt innocuous__doprnt
9436 /* System header to define __stub macros and hopefully few prototypes,
9437 which can conflict with char _doprnt (); below.
9438 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9439 <limits.h> exists even on freestanding compilers. */
9442 # include <limits.h>
9444 # include <assert.h>
9449 /* Override any GCC internal prototype to avoid an error.
9450 Use char because int might match the return type of a GCC
9451 builtin and then its argument prototype would still apply. */
9456 /* The GNU C library defines this for functions which it implements
9457 to always fail with ENOSYS. Some functions are actually named
9458 something starting with __ and the normal name is an alias. */
9459 #if defined __stub__doprnt || defined __stub____doprnt
9471 rm -f conftest.$ac_objext conftest$ac_exeext
9472 if { (ac_try="$ac_link"
9474 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9475 *) ac_try_echo=$ac_try;;
9477 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9478 $as_echo "$ac_try_echo") >&5
9479 (eval "$ac_link") 2>conftest.er1
9481 grep -v '^ *+' conftest.er1 >conftest.err
9483 cat conftest.err >&5
9484 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9485 (exit $ac_status); } && {
9486 test -z "$ac_c_werror_flag" ||
9487 test ! -s conftest.err
9488 } && test -s conftest$ac_exeext && {
9489 test "$cross_compiling" = yes ||
9490 $as_test_x conftest$ac_exeext
9492 ac_cv_func__doprnt=yes
9494 $as_echo "$as_me: failed program was:" >&5
9495 sed 's/^/| /' conftest.$ac_ext >&5
9497 ac_cv_func__doprnt=no
9500 rm -rf conftest.dSYM
9501 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9502 conftest$ac_exeext conftest.$ac_ext
9504 { $as_echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
9505 $as_echo "$ac_cv_func__doprnt" >&6; }
9506 if test "x$ac_cv_func__doprnt" = x""yes; then
9508 cat >>confdefs.h <<\_ACEOF
9509 #define HAVE_DOPRNT 1
9530 for ac_func in gettimeofday memmove memset mkdir socket strcasecmp strchr strerror strncasecmp strstr strtol strtoul
9532 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9533 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
9534 $as_echo_n "checking for $ac_func... " >&6; }
9535 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
9536 $as_echo_n "(cached) " >&6
9538 cat >conftest.$ac_ext <<_ACEOF
9541 cat confdefs.h >>conftest.$ac_ext
9542 cat >>conftest.$ac_ext <<_ACEOF
9543 /* end confdefs.h. */
9544 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9545 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9546 #define $ac_func innocuous_$ac_func
9548 /* System header to define __stub macros and hopefully few prototypes,
9549 which can conflict with char $ac_func (); below.
9550 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9551 <limits.h> exists even on freestanding compilers. */
9554 # include <limits.h>
9556 # include <assert.h>
9561 /* Override any GCC internal prototype to avoid an error.
9562 Use char because int might match the return type of a GCC
9563 builtin and then its argument prototype would still apply. */
9568 /* The GNU C library defines this for functions which it implements
9569 to always fail with ENOSYS. Some functions are actually named
9570 something starting with __ and the normal name is an alias. */
9571 #if defined __stub_$ac_func || defined __stub___$ac_func
9583 rm -f conftest.$ac_objext conftest$ac_exeext
9584 if { (ac_try="$ac_link"
9586 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9587 *) ac_try_echo=$ac_try;;
9589 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9590 $as_echo "$ac_try_echo") >&5
9591 (eval "$ac_link") 2>conftest.er1
9593 grep -v '^ *+' conftest.er1 >conftest.err
9595 cat conftest.err >&5
9596 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9597 (exit $ac_status); } && {
9598 test -z "$ac_c_werror_flag" ||
9599 test ! -s conftest.err
9600 } && test -s conftest$ac_exeext && {
9601 test "$cross_compiling" = yes ||
9602 $as_test_x conftest$ac_exeext
9604 eval "$as_ac_var=yes"
9606 $as_echo "$as_me: failed program was:" >&5
9607 sed 's/^/| /' conftest.$ac_ext >&5
9609 eval "$as_ac_var=no"
9612 rm -rf conftest.dSYM
9613 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9614 conftest$ac_exeext conftest.$ac_ext
9616 ac_res=`eval 'as_val=${'$as_ac_var'}
9617 $as_echo "$as_val"'`
9618 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
9619 $as_echo "$ac_res" >&6; }
9620 as_val=`eval 'as_val=${'$as_ac_var'}
9621 $as_echo "$as_val"'`
9622 if test "x$as_val" = x""yes; then
9623 cat >>confdefs.h <<_ACEOF
9624 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9632 ac_config_files="$ac_config_files Makefile"
9634 cat >confcache <<\_ACEOF
9635 # This file is a shell script that caches the results of configure
9636 # tests run on this system so they can be shared between configure
9637 # scripts and configure runs, see configure's option --config-cache.
9638 # It is not useful on other systems. If it contains results you don't
9639 # want to keep, you may remove or edit it.
9641 # config.status only pays attention to the cache file if you give it
9642 # the --recheck option to rerun configure.
9644 # `ac_cv_env_foo' variables (set or unset) will be overridden when
9645 # loading this file, other *unset* `ac_cv_foo' will be assigned the
9650 # The following way of writing the cache mishandles newlines in values,
9651 # but we know of no workaround that is simple, portable, and efficient.
9652 # So, we kill variables containing newlines.
9653 # Ultrix sh set writes to stderr and can't be redirected directly,
9654 # and sets the high bit in the cache file unless we assign to the vars.
9656 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
9657 eval ac_val=\$$ac_var
9661 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
9662 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
9665 _ | IFS | as_nl) ;; #(
9666 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
9667 *) $as_unset $ac_var ;;
9673 case $as_nl`(ac_space=' '; set) 2>&1` in #(
9674 *${as_nl}ac_space=\ *)
9675 # `set' does not quote correctly, so add quotes (double-quote
9676 # substitution turns \\\\ into \\, and sed turns \\ into \).
9679 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
9682 # `set' quotes correctly as required by POSIX, so do not add quotes.
9683 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
9692 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
9694 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
9696 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
9697 if test -w "$cache_file"; then
9698 test "x$cache_file" != "x/dev/null" &&
9699 { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
9700 $as_echo "$as_me: updating cache $cache_file" >&6;}
9701 cat confcache >$cache_file
9703 { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
9704 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
9709 test "x$prefix" = xNONE && prefix=$ac_default_prefix
9710 # Let make expand exec_prefix.
9711 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
9713 DEFS=-DHAVE_CONFIG_H
9717 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
9718 # 1. Remove the extension, and $U if already installed.
9719 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
9720 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
9721 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
9722 # will be set to the directory where LIBOBJS objects are built.
9723 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
9724 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
9728 LTLIBOBJS=$ac_ltlibobjs
9731 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
9732 { { $as_echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
9733 Usually this means the macro was only invoked conditionally." >&5
9734 $as_echo "$as_me: error: conditional \"AMDEP\" was never defined.
9735 Usually this means the macro was only invoked conditionally." >&2;}
9736 { (exit 1); exit 1; }; }
9738 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
9739 { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
9740 Usually this means the macro was only invoked conditionally." >&5
9741 $as_echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
9742 Usually this means the macro was only invoked conditionally." >&2;}
9743 { (exit 1); exit 1; }; }
9745 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
9746 { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
9747 Usually this means the macro was only invoked conditionally." >&5
9748 $as_echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
9749 Usually this means the macro was only invoked conditionally." >&2;}
9750 { (exit 1); exit 1; }; }
9752 if test -z "${ENABLE_ASTERISK_CHANNEL_DRIVER_TRUE}" && test -z "${ENABLE_ASTERISK_CHANNEL_DRIVER_FALSE}"; then
9753 { { $as_echo "$as_me:$LINENO: error: conditional \"ENABLE_ASTERISK_CHANNEL_DRIVER\" was never defined.
9754 Usually this means the macro was only invoked conditionally." >&5
9755 $as_echo "$as_me: error: conditional \"ENABLE_ASTERISK_CHANNEL_DRIVER\" was never defined.
9756 Usually this means the macro was only invoked conditionally." >&2;}
9757 { (exit 1); exit 1; }; }
9760 : ${CONFIG_STATUS=./config.status}
9762 ac_clean_files_save=$ac_clean_files
9763 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
9764 { $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
9765 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
9766 cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9768 # Generated by $as_me.
9769 # Run this file to recreate the current configuration.
9770 # Compiler output produced by configure, useful for debugging
9771 # configure, is in config.log if it exists.
9776 SHELL=\${CONFIG_SHELL-$SHELL}
9779 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9780 ## --------------------- ##
9781 ## M4sh Initialization. ##
9782 ## --------------------- ##
9784 # Be more Bourne compatible
9785 DUALCASE=1; export DUALCASE # for MKS sh
9786 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
9789 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
9790 # is contrary to our usage. Disable this feature.
9791 alias -g '${1+"$@"}'='"$@"'
9792 setopt NO_GLOB_SUBST
9794 case `(set -o) 2>/dev/null` in
9795 *posix*) set -o posix ;;
9804 # Avoid depending upon Character Ranges.
9805 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
9806 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
9807 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
9808 as_cr_digits='0123456789'
9809 as_cr_alnum=$as_cr_Letters$as_cr_digits
9814 # Printing a long string crashes Solaris 7 /usr/bin/printf.
9815 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
9816 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
9817 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
9818 if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
9819 as_echo='printf %s\n'
9820 as_echo_n='printf %s'
9822 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
9823 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
9824 as_echo_n='/usr/ucb/echo -n'
9826 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
9827 as_echo_n_body='eval
9831 expr "X$arg" : "X\\(.*\\)$as_nl";
9832 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
9834 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
9836 export as_echo_n_body
9837 as_echo_n='sh -c $as_echo_n_body as_echo'
9840 as_echo='sh -c $as_echo_body as_echo'
9843 # The user is always right.
9844 if test "${PATH_SEPARATOR+set}" != set; then
9846 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
9847 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
9852 # Support unset when possible.
9853 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
9861 # We need space, tab and new line, in precisely that order. Quoting is
9862 # there to prevent editors from complaining about space-tab.
9863 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
9864 # splitting by setting IFS to empty value.)
9867 # Find who we are. Look in the path if we contain no directory separator.
9869 *[\\/]* ) as_myself=$0 ;;
9870 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9874 test -z "$as_dir" && as_dir=.
9875 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
9881 # We did not find ourselves, most probably we were run as `sh COMMAND'
9882 # in which case we are not to be found in the path.
9883 if test "x$as_myself" = x; then
9886 if test ! -f "$as_myself"; then
9887 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
9888 { (exit 1); exit 1; }
9891 # Work around bugs in pre-3.0 UWIN ksh.
9892 for as_var in ENV MAIL MAILPATH
9893 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
9905 # Required to use basename.
9906 if expr a : '\(a\)' >/dev/null 2>&1 &&
9907 test "X`expr 00001 : '.*\(...\)'`" = X001; then
9913 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
9914 as_basename=basename
9920 # Name of the executable.
9921 as_me=`$as_basename -- "$0" ||
9922 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
9923 X"$0" : 'X\(//\)$' \| \
9924 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
9926 sed '/^.*\/\([^/][^/]*\)\/*$/{
9947 test "x$as_lineno_1" != "x$as_lineno_2" &&
9948 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
9950 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
9951 # uniformly replaced by the line number. The first 'sed' inserts a
9952 # line-number line after each line using $LINENO; the second 'sed'
9953 # does the real work. The second script uses 'N' to pair each
9954 # line-number line with the line containing $LINENO, and appends
9955 # trailing '-' during substitution so that $LINENO is not a special
9957 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
9958 # scripts with optimization help from Paolo Bonzini. Blame Lee
9959 # E. McMahon (1931-1989) for sed's syntax. :-)
9971 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
9975 chmod +x "$as_me.lineno" ||
9976 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
9977 { (exit 1); exit 1; }; }
9979 # Don't try to exec as it changes $[0], causing all sort of problems
9980 # (the dirname of $[0] is not the place where we might find the
9981 # original and so on. Autoconf is especially sensitive to this).
9983 # Exit status is that of the last command.
9988 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
9994 ECHO_C= ECHO_N= ECHO_T=
9997 case `echo 'x\c'` in
9998 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
10004 if expr a : '\(a\)' >/dev/null 2>&1 &&
10005 test "X`expr 00001 : '.*\(...\)'`" = X001; then
10011 rm -f conf$$ conf$$.exe conf$$.file
10012 if test -d conf$$.dir; then
10013 rm -f conf$$.dir/conf$$.file
10016 mkdir conf$$.dir 2>/dev/null
10018 if (echo >conf$$.file) 2>/dev/null; then
10019 if ln -s conf$$.file conf$$ 2>/dev/null; then
10021 # ... but there are two gotchas:
10022 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
10023 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
10024 # In both cases, we have to default to `cp -p'.
10025 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
10027 elif ln conf$$.file conf$$ 2>/dev/null; then
10035 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
10036 rmdir conf$$.dir 2>/dev/null
10038 if mkdir -p . 2>/dev/null; then
10041 test -d ./-p && rmdir ./-p
10045 if test -x / >/dev/null 2>&1; then
10046 as_test_x='test -x'
10048 if ls -dL / >/dev/null 2>&1; then
10055 if test -d "$1"; then
10061 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
10062 ???[sx]*):;;*)false;;esac;fi
10066 as_executable_p=$as_test_x
10068 # Sed expression to map a string onto a valid CPP name.
10069 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
10071 # Sed expression to map a string onto a valid variable name.
10072 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
10077 # Save the log message, to keep $[0] and so on meaningful, and to
10078 # report actual input values of CONFIG_FILES etc. instead of their
10079 # values after options handling.
10081 This file was extended by lcr $as_me 1.3, which was
10082 generated by GNU Autoconf 2.63. Invocation command line was
10084 CONFIG_FILES = $CONFIG_FILES
10085 CONFIG_HEADERS = $CONFIG_HEADERS
10086 CONFIG_LINKS = $CONFIG_LINKS
10087 CONFIG_COMMANDS = $CONFIG_COMMANDS
10090 on `(hostname || uname -n) 2>/dev/null | sed 1q`
10095 case $ac_config_files in *"
10096 "*) set x $ac_config_files; shift; ac_config_files=$*;;
10099 case $ac_config_headers in *"
10100 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
10104 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10105 # Files that config.status was made for.
10106 config_files="$ac_config_files"
10107 config_headers="$ac_config_headers"
10108 config_commands="$ac_config_commands"
10112 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10114 \`$as_me' instantiates files from templates according to the
10115 current configuration.
10117 Usage: $0 [OPTION]... [FILE]...
10119 -h, --help print this help, then exit
10120 -V, --version print version number and configuration settings, then exit
10121 -q, --quiet, --silent
10122 do not print progress messages
10123 -d, --debug don't remove temporary files
10124 --recheck update $as_me by reconfiguring in the same conditions
10125 --file=FILE[:TEMPLATE]
10126 instantiate the configuration file FILE
10127 --header=FILE[:TEMPLATE]
10128 instantiate the configuration header FILE
10130 Configuration files:
10133 Configuration headers:
10136 Configuration commands:
10139 Report bugs to <bug-autoconf@gnu.org>."
10142 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10144 lcr config.status 1.3
10145 configured by $0, generated by GNU Autoconf 2.63,
10146 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
10148 Copyright (C) 2008 Free Software Foundation, Inc.
10149 This config.status script is free software; the Free Software Foundation
10150 gives unlimited permission to copy, distribute and modify it."
10156 test -n "\$AWK" || AWK=awk
10159 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10160 # The default lists apply if the user does not specify any file.
10166 ac_option=`expr "X$1" : 'X\([^=]*\)='`
10167 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
10178 # Handling of the options.
10179 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
10181 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
10182 $as_echo "$ac_cs_version"; exit ;;
10183 --debug | --debu | --deb | --de | --d | -d )
10185 --file | --fil | --fi | --f )
10188 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
10190 CONFIG_FILES="$CONFIG_FILES '$ac_optarg'"
10191 ac_need_defaults=false;;
10192 --header | --heade | --head | --hea )
10195 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
10197 CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'"
10198 ac_need_defaults=false;;
10200 # Conflict between --help and --header
10201 { $as_echo "$as_me: error: ambiguous option: $1
10202 Try \`$0 --help' for more information." >&2
10203 { (exit 1); exit 1; }; };;
10204 --help | --hel | -h )
10205 $as_echo "$ac_cs_usage"; exit ;;
10206 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
10207 | -silent | --silent | --silen | --sile | --sil | --si | --s)
10210 # This is an error.
10211 -*) { $as_echo "$as_me: error: unrecognized option: $1
10212 Try \`$0 --help' for more information." >&2
10213 { (exit 1); exit 1; }; } ;;
10215 *) ac_config_targets="$ac_config_targets $1"
10216 ac_need_defaults=false ;;
10222 ac_configure_extra_args=
10224 if $ac_cs_silent; then
10226 ac_configure_extra_args="$ac_configure_extra_args --silent"
10230 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10231 if \$ac_cs_recheck; then
10232 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
10234 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
10235 CONFIG_SHELL='$SHELL'
10236 export CONFIG_SHELL
10241 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10245 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
10246 ## Running $as_me. ##
10252 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10256 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
10260 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10262 # Handling of arguments.
10263 for ac_config_target in $ac_config_targets
10265 case $ac_config_target in
10266 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
10267 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
10268 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
10270 *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
10271 $as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
10272 { (exit 1); exit 1; }; };;
10277 # If the user did not use the arguments to specify the items to instantiate,
10278 # then the envvar interface is used. Set only those that are not.
10279 # We use the long form for the default assignment because of an extremely
10280 # bizarre bug on SunOS 4.1.3.
10281 if $ac_need_defaults; then
10282 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
10283 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
10284 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
10287 # Have a temporary directory for convenience. Make it in the build tree
10288 # simply because there is no reason against having it here, and in addition,
10289 # creating and moving files from /tmp can sometimes cause problems.
10290 # Hook for its removal unless debugging.
10291 # Note that there is a small window in which the directory will not be cleaned:
10292 # after its creation but before its name has been assigned to `$tmp'.
10296 trap 'exit_status=$?
10297 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
10299 trap '{ (exit 1); exit 1; }' 1 2 13 15
10301 # Create a (secure) tmp directory for tmp files.
10304 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
10305 test -n "$tmp" && test -d "$tmp"
10308 tmp=./conf$$-$RANDOM
10309 (umask 077 && mkdir "$tmp")
10312 $as_echo "$as_me: cannot create a temporary directory in ." >&2
10313 { (exit 1); exit 1; }
10316 # Set up the scripts for CONFIG_FILES section.
10317 # No need to generate them if there are no CONFIG_FILES.
10318 # This happens for instance with `./config.status config.h'.
10319 if test -n "$CONFIG_FILES"; then
10323 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
10324 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
10327 ac_cs_awk_cr=$ac_cr
10330 echo 'BEGIN {' >"$tmp/subs1.awk" &&
10335 echo "cat >conf$$subs.awk <<_ACEOF" &&
10336 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
10338 } >conf$$subs.sh ||
10339 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
10340 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
10341 { (exit 1); exit 1; }; }
10342 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
10344 for ac_last_try in false false false false false :; do
10345 . ./conf$$subs.sh ||
10346 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
10347 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
10348 { (exit 1); exit 1; }; }
10350 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
10351 if test $ac_delim_n = $ac_delim_num; then
10353 elif $ac_last_try; then
10354 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
10355 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
10356 { (exit 1); exit 1; }; }
10358 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
10361 rm -f conf$$subs.sh
10363 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10364 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
10368 s/^/S["/; s/!.*/"]=/
10378 s/\(.\{148\}\).*/\1/
10380 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
10385 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
10392 s/\(.\{148\}\).*/\1/
10394 s/["\\]/\\&/g; s/^/"/; s/$/"/
10398 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
10403 ' <conf$$subs.awk | sed '
10408 ' >>$CONFIG_STATUS || ac_write_fail=1
10409 rm -f conf$$subs.awk
10410 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10412 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
10413 for (key in S) S_is_set[key] = 1
10419 nfields = split(line, field, "@")
10421 len = length(field[1])
10422 for (i = 2; i < nfields; i++) {
10424 keylen = length(key)
10425 if (S_is_set[key]) {
10427 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
10428 len += length(value) + length(field[++i])
10439 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10440 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
10441 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
10444 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
10445 || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5
10446 $as_echo "$as_me: error: could not setup config files machinery" >&2;}
10447 { (exit 1); exit 1; }; }
10450 # VPATH may cause trouble with some makes, so we remove $(srcdir),
10451 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
10452 # trailing colons and then remove the whole line if VPATH becomes empty
10453 # (actually we leave an empty line to preserve line numbers).
10454 if test "x$srcdir" = x.; then
10455 ac_vpsub='/^[ ]*VPATH[ ]*=/{
10456 s/:*\$(srcdir):*/:/
10457 s/:*\${srcdir}:*/:/
10459 s/^\([^=]*=[ ]*\):*/\1/
10465 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10466 fi # test -n "$CONFIG_FILES"
10468 # Set up the scripts for CONFIG_HEADERS section.
10469 # No need to generate them if there are no CONFIG_HEADERS.
10470 # This happens for instance with `./config.status Makefile'.
10471 if test -n "$CONFIG_HEADERS"; then
10472 cat >"$tmp/defines.awk" <<\_ACAWK ||
10476 # Transform confdefs.h into an awk script `defines.awk', embedded as
10477 # here-document in config.status, that substitutes the proper values into
10478 # config.h.in to produce config.h.
10480 # Create a delimiter string that does not exist in confdefs.h, to ease
10481 # handling of long lines.
10483 for ac_last_try in false false :; do
10484 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
10485 if test -z "$ac_t"; then
10487 elif $ac_last_try; then
10488 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_HEADERS" >&5
10489 $as_echo "$as_me: error: could not make $CONFIG_HEADERS" >&2;}
10490 { (exit 1); exit 1; }; }
10492 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
10496 # For the awk script, D is an array of macro values keyed by name,
10497 # likewise P contains macro parameters if any. Preserve backslash
10498 # newline sequences.
10500 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
10502 s/.\{148\}/&'"$ac_delim"'/g
10505 s/^[ ]*#[ ]*define[ ][ ]*/ /
10512 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
10514 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
10518 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
10519 D["\1"]=" \3\\\\\\n"\\/p
10521 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
10526 s/.\{148\}/&'"$ac_delim"'/g
10531 s/["\\]/\\&/g; s/^/"/; s/$/"/p
10534 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
10536 ' <confdefs.h | sed '
10537 s/'"$ac_delim"'/"\\\
10538 "/g' >>$CONFIG_STATUS || ac_write_fail=1
10540 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10541 for (key in D) D_is_set[key] = 1
10544 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
10546 split(line, arg, " ")
10547 if (arg[1] == "#") {
10551 defundef = substr(arg[1], 2)
10554 split(mac1, mac2, "(") #)
10556 prefix = substr(line, 1, index(line, defundef) - 1)
10557 if (D_is_set[macro]) {
10558 # Preserve the white space surrounding the "#".
10559 print prefix "define", macro P[macro] D[macro]
10562 # Replace #undef with comments. This is necessary, for example,
10563 # in the case of _POSIX_SOURCE, which is predefined and required
10564 # on some systems where configure will not decide to define it.
10565 if (defundef == "undef") {
10566 print "/*", prefix defundef, macro, "*/"
10574 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10575 { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5
10576 $as_echo "$as_me: error: could not setup config headers machinery" >&2;}
10577 { (exit 1); exit 1; }; }
10578 fi # test -n "$CONFIG_HEADERS"
10581 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
10586 :[FHLC]) ac_mode=$ac_tag; continue;;
10588 case $ac_mode$ac_tag in
10590 :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: invalid tag $ac_tag" >&5
10591 $as_echo "$as_me: error: invalid tag $ac_tag" >&2;}
10592 { (exit 1); exit 1; }; };;
10593 :[FH]-) ac_tag=-:-;;
10594 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
10611 -) ac_f="$tmp/stdin";;
10612 *) # Look for the file first in the build tree, then in the source tree
10613 # (if the path is not absolute). The absolute path cannot be DOS-style,
10614 # because $ac_f cannot contain `:'.
10618 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
10620 { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
10621 $as_echo "$as_me: error: cannot find input file: $ac_f" >&2;}
10622 { (exit 1); exit 1; }; };;
10624 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
10625 ac_file_inputs="$ac_file_inputs '$ac_f'"
10628 # Let's still pretend it is `configure' which instantiates (i.e., don't
10629 # use $as_me), people would be surprised to read:
10630 # /* config.h. Generated by config.status. */
10631 configure_input='Generated from '`
10632 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
10634 if test x"$ac_file" != x-; then
10635 configure_input="$ac_file. $configure_input"
10636 { $as_echo "$as_me:$LINENO: creating $ac_file" >&5
10637 $as_echo "$as_me: creating $ac_file" >&6;}
10639 # Neutralize special characters interpreted by sed in replacement strings.
10640 case $configure_input in #(
10641 *\&* | *\|* | *\\* )
10642 ac_sed_conf_input=`$as_echo "$configure_input" |
10643 sed 's/[\\\\&|]/\\\\&/g'`;; #(
10644 *) ac_sed_conf_input=$configure_input;;
10648 *:-:* | *:-) cat >"$tmp/stdin" \
10649 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
10650 $as_echo "$as_me: error: could not create $ac_file" >&2;}
10651 { (exit 1); exit 1; }; } ;;
10656 ac_dir=`$as_dirname -- "$ac_file" ||
10657 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10658 X"$ac_file" : 'X\(//\)[^/]' \| \
10659 X"$ac_file" : 'X\(//\)$' \| \
10660 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
10661 $as_echo X"$ac_file" |
10662 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
10666 /^X\(\/\/\)[^/].*/{
10681 -*) as_dir=./$as_dir;;
10683 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
10687 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
10688 *) as_qdir=$as_dir;;
10690 as_dirs="'$as_qdir' $as_dirs"
10691 as_dir=`$as_dirname -- "$as_dir" ||
10692 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10693 X"$as_dir" : 'X\(//\)[^/]' \| \
10694 X"$as_dir" : 'X\(//\)$' \| \
10695 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
10696 $as_echo X"$as_dir" |
10697 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
10701 /^X\(\/\/\)[^/].*/{
10714 test -d "$as_dir" && break
10716 test -z "$as_dirs" || eval "mkdir $as_dirs"
10717 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
10718 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
10719 { (exit 1); exit 1; }; }; }
10723 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
10725 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
10726 # A ".." for each directory in $ac_dir_suffix.
10727 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
10728 case $ac_top_builddir_sub in
10729 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
10730 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
10733 ac_abs_top_builddir=$ac_pwd
10734 ac_abs_builddir=$ac_pwd$ac_dir_suffix
10735 # for backward compatibility:
10736 ac_top_builddir=$ac_top_build_prefix
10739 .) # We are building in place.
10741 ac_top_srcdir=$ac_top_builddir_sub
10742 ac_abs_top_srcdir=$ac_pwd ;;
10743 [\\/]* | ?:[\\/]* ) # Absolute name.
10744 ac_srcdir=$srcdir$ac_dir_suffix;
10745 ac_top_srcdir=$srcdir
10746 ac_abs_top_srcdir=$srcdir ;;
10747 *) # Relative name.
10748 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
10749 ac_top_srcdir=$ac_top_build_prefix$srcdir
10750 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
10752 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
10762 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
10763 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
10767 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10768 # If the template does not know about datarootdir, expand it.
10769 # FIXME: This hack should be removed a few years after 2.60.
10770 ac_datarootdir_hack=; ac_datarootdir_seen=
10783 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
10784 *datarootdir*) ac_datarootdir_seen=yes;;
10785 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
10786 { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
10787 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
10789 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10790 ac_datarootdir_hack='
10791 s&@datadir@&$datadir&g
10792 s&@docdir@&$docdir&g
10793 s&@infodir@&$infodir&g
10794 s&@localedir@&$localedir&g
10795 s&@mandir@&$mandir&g
10796 s&\\\${datarootdir}&$datarootdir&g' ;;
10800 # Neutralize VPATH when `$srcdir' = `.'.
10801 # Shell code in configure.ac might set extrasub.
10802 # FIXME: do we really want to maintain this feature?
10803 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10804 ac_sed_extra="$ac_vpsub
10807 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10809 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
10810 s|@configure_input@|$ac_sed_conf_input|;t t
10811 s&@top_builddir@&$ac_top_builddir_sub&;t t
10812 s&@top_build_prefix@&$ac_top_build_prefix&;t t
10813 s&@srcdir@&$ac_srcdir&;t t
10814 s&@abs_srcdir@&$ac_abs_srcdir&;t t
10815 s&@top_srcdir@&$ac_top_srcdir&;t t
10816 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
10817 s&@builddir@&$ac_builddir&;t t
10818 s&@abs_builddir@&$ac_abs_builddir&;t t
10819 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
10820 s&@INSTALL@&$ac_INSTALL&;t t
10821 $ac_datarootdir_hack
10823 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
10824 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
10825 $as_echo "$as_me: error: could not create $ac_file" >&2;}
10826 { (exit 1); exit 1; }; }
10828 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
10829 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
10830 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
10831 { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
10832 which seems to be undefined. Please make sure it is defined." >&5
10833 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
10834 which seems to be undefined. Please make sure it is defined." >&2;}
10838 -) cat "$tmp/out" && rm -f "$tmp/out";;
10839 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
10841 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
10842 $as_echo "$as_me: error: could not create $ac_file" >&2;}
10843 { (exit 1); exit 1; }; }
10849 if test x"$ac_file" != x-; then
10851 $as_echo "/* $configure_input */" \
10852 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
10853 } >"$tmp/config.h" \
10854 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
10855 $as_echo "$as_me: error: could not create $ac_file" >&2;}
10856 { (exit 1); exit 1; }; }
10857 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
10858 { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5
10859 $as_echo "$as_me: $ac_file is unchanged" >&6;}
10862 mv "$tmp/config.h" "$ac_file" \
10863 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
10864 $as_echo "$as_me: error: could not create $ac_file" >&2;}
10865 { (exit 1); exit 1; }; }
10868 $as_echo "/* $configure_input */" \
10869 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
10870 || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5
10871 $as_echo "$as_me: error: could not create -" >&2;}
10872 { (exit 1); exit 1; }; }
10874 # Compute "$ac_file"'s index in $config_headers.
10876 for _am_header in $config_headers :; do
10877 case $_am_header in
10878 "$ac_file" | "$ac_file":* )
10881 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
10884 echo "timestamp for "$ac_file"" >`$as_dirname -- "$ac_file" ||
10885 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10886 X"$ac_file" : 'X\(//\)[^/]' \| \
10887 X"$ac_file" : 'X\(//\)$' \| \
10888 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
10889 $as_echo X"$ac_file" |
10890 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
10894 /^X\(\/\/\)[^/].*/{
10906 s/.*/./; q'`/stamp-h$_am_stamp_count
10909 :C) { $as_echo "$as_me:$LINENO: executing $ac_file commands" >&5
10910 $as_echo "$as_me: executing $ac_file commands" >&6;}
10915 case $ac_file$ac_mode in
10916 "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
10917 # Strip MF so we end up with the name of the file.
10918 mf=`echo "$mf" | sed -e 's/:.*$//'`
10919 # Check whether this is an Automake generated Makefile or not.
10920 # We used to match only the files named `Makefile.in', but
10921 # some people rename them; so instead we look at the file content.
10922 # Grep'ing the first line is not enough: some people post-process
10923 # each Makefile.in and add a new line on top of each file to say so.
10924 # So let's grep whole file.
10925 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
10926 dirpart=`$as_dirname -- "$mf" ||
10927 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10928 X"$mf" : 'X\(//\)[^/]' \| \
10929 X"$mf" : 'X\(//\)$' \| \
10930 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
10932 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
10936 /^X\(\/\/\)[^/].*/{
10952 # Extract the definition of DEPDIR, am__include, and am__quote
10953 # from the Makefile without running `make'.
10954 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
10955 test -z "$DEPDIR" && continue
10956 am__include=`sed -n 's/^am__include = //p' < "$mf"`
10957 test -z "am__include" && continue
10958 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
10959 # When using ansi2knr, U may be empty or an underscore; expand it
10960 U=`sed -n 's/^U = //p' < "$mf"`
10961 # Find all dependency output files, they are included files with
10962 # $(DEPDIR) in their names. We invoke sed twice because it is the
10963 # simplest approach to changing $(DEPDIR) to its actual value in the
10965 for file in `sed -n "
10966 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
10967 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
10968 # Make sure the directory exists.
10969 test -f "$dirpart/$file" && continue
10970 fdir=`$as_dirname -- "$file" ||
10971 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10972 X"$file" : 'X\(//\)[^/]' \| \
10973 X"$file" : 'X\(//\)$' \| \
10974 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
10975 $as_echo X"$file" |
10976 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
10980 /^X\(\/\/\)[^/].*/{
10993 { as_dir=$dirpart/$fdir
10995 -*) as_dir=./$as_dir;;
10997 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
11001 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
11002 *) as_qdir=$as_dir;;
11004 as_dirs="'$as_qdir' $as_dirs"
11005 as_dir=`$as_dirname -- "$as_dir" ||
11006 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11007 X"$as_dir" : 'X\(//\)[^/]' \| \
11008 X"$as_dir" : 'X\(//\)$' \| \
11009 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
11010 $as_echo X"$as_dir" |
11011 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11015 /^X\(\/\/\)[^/].*/{
11028 test -d "$as_dir" && break
11030 test -z "$as_dirs" || eval "mkdir $as_dirs"
11031 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
11032 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
11033 { (exit 1); exit 1; }; }; }
11034 # echo "creating $dirpart/$file"
11035 echo '# dummy' > "$dirpart/$file"
11044 { (exit 0); exit 0; }
11046 chmod +x $CONFIG_STATUS
11047 ac_clean_files=$ac_clean_files_save
11049 test $ac_write_fail = 0 ||
11050 { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5
11051 $as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;}
11052 { (exit 1); exit 1; }; }
11055 # configure is writing to config.log, and then calls config.status.
11056 # config.status does its own redirection, appending to config.log.
11057 # Unfortunately, on DOS this fails, as config.log is still kept open
11058 # by configure, so config.status won't be able to write to it; its
11059 # output is simply discarded. So we exec the FD to /dev/null,
11060 # effectively closing config.log, so it can be properly (re)opened and
11061 # appended to by config.status. When coming back to configure, we
11062 # need to make the FD available again.
11063 if test "$no_create" != yes; then
11065 ac_config_status_args=
11066 test "$silent" = yes &&
11067 ac_config_status_args="$ac_config_status_args --quiet"
11069 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
11071 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
11072 # would make configure fail if this is the last instruction.
11073 $ac_cs_success || { (exit 1); exit 1; }
11075 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
11076 { $as_echo "$as_me:$LINENO: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
11077 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}