2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.63 for lcr 1.5.
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.5'
600 PACKAGE_STRING='lcr 1.5'
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
646 ENABLE_ASTERISK_CHANNEL_DRIVER_FALSE
647 ENABLE_ASTERISK_CHANNEL_DRIVER_TRUE
670 INSTALL_STRIP_PROGRAM
721 program_transform_name
733 enable_option_checking
734 enable_dependency_tracking
739 ac_precious_vars='build_alias
753 # Initialize some variables set by options.
755 ac_init_version=false
756 ac_unrecognized_opts=
758 # The variables have the same names as the options, with
759 # dashes changed to underlines.
767 program_transform_name=s,x,x,
775 # Installation directory options.
776 # These are left unexpanded so users can "make install exec_prefix=/foo"
777 # and all the variables that are supposed to be based on exec_prefix
778 # by default will actually change.
779 # Use braces instead of parens because sh, perl, etc. also accept them.
780 # (The list follows the same order as the GNU Coding Standards.)
781 bindir='${exec_prefix}/bin'
782 sbindir='${exec_prefix}/sbin'
783 libexecdir='${exec_prefix}/libexec'
784 datarootdir='${prefix}/share'
785 datadir='${datarootdir}'
786 sysconfdir='${prefix}/etc'
787 sharedstatedir='${prefix}/com'
788 localstatedir='${prefix}/var'
789 includedir='${prefix}/include'
790 oldincludedir='/usr/include'
791 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
792 infodir='${datarootdir}/info'
797 libdir='${exec_prefix}/lib'
798 localedir='${datarootdir}/locale'
799 mandir='${datarootdir}/man'
805 # If the previous option needs an argument, assign it.
806 if test -n "$ac_prev"; then
807 eval $ac_prev=\$ac_option
813 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
817 # Accept the important Cygnus configure options, so we can diagnose typos.
819 case $ac_dashdash$ac_option in
823 -bindir | --bindir | --bindi | --bind | --bin | --bi)
825 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
828 -build | --build | --buil | --bui | --bu)
829 ac_prev=build_alias ;;
830 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
831 build_alias=$ac_optarg ;;
833 -cache-file | --cache-file | --cache-fil | --cache-fi \
834 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
835 ac_prev=cache_file ;;
836 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
837 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
838 cache_file=$ac_optarg ;;
841 cache_file=config.cache ;;
843 -datadir | --datadir | --datadi | --datad)
845 -datadir=* | --datadir=* | --datadi=* | --datad=*)
846 datadir=$ac_optarg ;;
848 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
849 | --dataroo | --dataro | --datar)
850 ac_prev=datarootdir ;;
851 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
852 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
853 datarootdir=$ac_optarg ;;
855 -disable-* | --disable-*)
856 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
857 # Reject names that are not valid shell variable names.
858 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
859 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
860 { (exit 1); exit 1; }; }
861 ac_useropt_orig=$ac_useropt
862 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
863 case $ac_user_opts in
867 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
868 ac_unrecognized_sep=', ';;
870 eval enable_$ac_useropt=no ;;
872 -docdir | --docdir | --docdi | --doc | --do)
874 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
877 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
879 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
882 -enable-* | --enable-*)
883 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
884 # Reject names that are not valid shell variable names.
885 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
886 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
887 { (exit 1); exit 1; }; }
888 ac_useropt_orig=$ac_useropt
889 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
890 case $ac_user_opts in
894 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
895 ac_unrecognized_sep=', ';;
897 eval enable_$ac_useropt=\$ac_optarg ;;
899 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
900 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
901 | --exec | --exe | --ex)
902 ac_prev=exec_prefix ;;
903 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
904 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
905 | --exec=* | --exe=* | --ex=*)
906 exec_prefix=$ac_optarg ;;
908 -gas | --gas | --ga | --g)
909 # Obsolete; use --with-gas.
912 -help | --help | --hel | --he | -h)
914 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
915 ac_init_help=recursive ;;
916 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
917 ac_init_help=short ;;
919 -host | --host | --hos | --ho)
920 ac_prev=host_alias ;;
921 -host=* | --host=* | --hos=* | --ho=*)
922 host_alias=$ac_optarg ;;
924 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
926 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
928 htmldir=$ac_optarg ;;
930 -includedir | --includedir | --includedi | --included | --include \
931 | --includ | --inclu | --incl | --inc)
932 ac_prev=includedir ;;
933 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
934 | --includ=* | --inclu=* | --incl=* | --inc=*)
935 includedir=$ac_optarg ;;
937 -infodir | --infodir | --infodi | --infod | --info | --inf)
939 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
940 infodir=$ac_optarg ;;
942 -libdir | --libdir | --libdi | --libd)
944 -libdir=* | --libdir=* | --libdi=* | --libd=*)
947 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
948 | --libexe | --libex | --libe)
949 ac_prev=libexecdir ;;
950 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
951 | --libexe=* | --libex=* | --libe=*)
952 libexecdir=$ac_optarg ;;
954 -localedir | --localedir | --localedi | --localed | --locale)
956 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
957 localedir=$ac_optarg ;;
959 -localstatedir | --localstatedir | --localstatedi | --localstated \
960 | --localstate | --localstat | --localsta | --localst | --locals)
961 ac_prev=localstatedir ;;
962 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
963 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
964 localstatedir=$ac_optarg ;;
966 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
968 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
972 # Obsolete; use --without-fp.
975 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
976 | --no-cr | --no-c | -n)
979 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
980 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
983 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
984 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
985 | --oldin | --oldi | --old | --ol | --o)
986 ac_prev=oldincludedir ;;
987 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
988 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
989 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
990 oldincludedir=$ac_optarg ;;
992 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
994 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
997 -program-prefix | --program-prefix | --program-prefi | --program-pref \
998 | --program-pre | --program-pr | --program-p)
999 ac_prev=program_prefix ;;
1000 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1001 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1002 program_prefix=$ac_optarg ;;
1004 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1005 | --program-suf | --program-su | --program-s)
1006 ac_prev=program_suffix ;;
1007 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1008 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1009 program_suffix=$ac_optarg ;;
1011 -program-transform-name | --program-transform-name \
1012 | --program-transform-nam | --program-transform-na \
1013 | --program-transform-n | --program-transform- \
1014 | --program-transform | --program-transfor \
1015 | --program-transfo | --program-transf \
1016 | --program-trans | --program-tran \
1017 | --progr-tra | --program-tr | --program-t)
1018 ac_prev=program_transform_name ;;
1019 -program-transform-name=* | --program-transform-name=* \
1020 | --program-transform-nam=* | --program-transform-na=* \
1021 | --program-transform-n=* | --program-transform-=* \
1022 | --program-transform=* | --program-transfor=* \
1023 | --program-transfo=* | --program-transf=* \
1024 | --program-trans=* | --program-tran=* \
1025 | --progr-tra=* | --program-tr=* | --program-t=*)
1026 program_transform_name=$ac_optarg ;;
1028 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1030 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1031 pdfdir=$ac_optarg ;;
1033 -psdir | --psdir | --psdi | --psd | --ps)
1035 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1038 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1039 | -silent | --silent | --silen | --sile | --sil)
1042 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1044 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1046 sbindir=$ac_optarg ;;
1048 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1049 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1050 | --sharedst | --shareds | --shared | --share | --shar \
1052 ac_prev=sharedstatedir ;;
1053 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1054 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1055 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1057 sharedstatedir=$ac_optarg ;;
1059 -site | --site | --sit)
1061 -site=* | --site=* | --sit=*)
1064 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1066 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1067 srcdir=$ac_optarg ;;
1069 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1070 | --syscon | --sysco | --sysc | --sys | --sy)
1071 ac_prev=sysconfdir ;;
1072 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1073 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1074 sysconfdir=$ac_optarg ;;
1076 -target | --target | --targe | --targ | --tar | --ta | --t)
1077 ac_prev=target_alias ;;
1078 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1079 target_alias=$ac_optarg ;;
1081 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1084 -version | --version | --versio | --versi | --vers | -V)
1085 ac_init_version=: ;;
1088 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1089 # Reject names that are not valid shell variable names.
1090 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1091 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1092 { (exit 1); exit 1; }; }
1093 ac_useropt_orig=$ac_useropt
1094 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1095 case $ac_user_opts in
1099 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1100 ac_unrecognized_sep=', ';;
1102 eval with_$ac_useropt=\$ac_optarg ;;
1104 -without-* | --without-*)
1105 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1106 # Reject names that are not valid shell variable names.
1107 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1108 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1109 { (exit 1); exit 1; }; }
1110 ac_useropt_orig=$ac_useropt
1111 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1112 case $ac_user_opts in
1116 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1117 ac_unrecognized_sep=', ';;
1119 eval with_$ac_useropt=no ;;
1122 # Obsolete; use --with-x.
1125 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1126 | --x-incl | --x-inc | --x-in | --x-i)
1127 ac_prev=x_includes ;;
1128 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1129 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1130 x_includes=$ac_optarg ;;
1132 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1133 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1134 ac_prev=x_libraries ;;
1135 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1136 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1137 x_libraries=$ac_optarg ;;
1139 -*) { $as_echo "$as_me: error: unrecognized option: $ac_option
1140 Try \`$0 --help' for more information." >&2
1141 { (exit 1); exit 1; }; }
1145 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1146 # Reject names that are not valid shell variable names.
1147 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1148 { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1149 { (exit 1); exit 1; }; }
1150 eval $ac_envvar=\$ac_optarg
1151 export $ac_envvar ;;
1154 # FIXME: should be removed in autoconf 3.0.
1155 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1156 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1157 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1158 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1164 if test -n "$ac_prev"; then
1165 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1166 { $as_echo "$as_me: error: missing argument to $ac_option" >&2
1167 { (exit 1); exit 1; }; }
1170 if test -n "$ac_unrecognized_opts"; then
1171 case $enable_option_checking in
1173 fatal) { $as_echo "$as_me: error: unrecognized options: $ac_unrecognized_opts" >&2
1174 { (exit 1); exit 1; }; } ;;
1175 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1179 # Check all directory arguments for consistency.
1180 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1181 datadir sysconfdir sharedstatedir localstatedir includedir \
1182 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1183 libdir localedir mandir
1185 eval ac_val=\$$ac_var
1186 # Remove trailing slashes.
1189 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1190 eval $ac_var=\$ac_val;;
1192 # Be sure to have absolute directory names.
1194 [\\/$]* | ?:[\\/]* ) continue;;
1195 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1197 { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1198 { (exit 1); exit 1; }; }
1201 # There might be people who depend on the old broken behavior: `$host'
1202 # used to hold the argument of --host etc.
1203 # FIXME: To remove some day.
1206 target=$target_alias
1208 # FIXME: To remove some day.
1209 if test "x$host_alias" != x; then
1210 if test "x$build_alias" = x; then
1211 cross_compiling=maybe
1212 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1213 If a cross compiler is detected then cross compile mode will be used." >&2
1214 elif test "x$build_alias" != "x$host_alias"; then
1220 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1222 test "$silent" = yes && exec 6>/dev/null
1225 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1226 ac_ls_di=`ls -di .` &&
1227 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1228 { $as_echo "$as_me: error: working directory cannot be determined" >&2
1229 { (exit 1); exit 1; }; }
1230 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1231 { $as_echo "$as_me: error: pwd does not report name of working directory" >&2
1232 { (exit 1); exit 1; }; }
1235 # Find the source files, if location was not specified.
1236 if test -z "$srcdir"; then
1237 ac_srcdir_defaulted=yes
1238 # Try the directory containing this script, then the parent directory.
1239 ac_confdir=`$as_dirname -- "$as_myself" ||
1240 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1241 X"$as_myself" : 'X\(//\)[^/]' \| \
1242 X"$as_myself" : 'X\(//\)$' \| \
1243 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1244 $as_echo X"$as_myself" |
1245 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1263 if test ! -r "$srcdir/$ac_unique_file"; then
1267 ac_srcdir_defaulted=no
1269 if test ! -r "$srcdir/$ac_unique_file"; then
1270 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1271 { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1272 { (exit 1); exit 1; }; }
1274 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1276 cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2
1277 { (exit 1); exit 1; }; }
1279 # When building in place, set srcdir=.
1280 if test "$ac_abs_confdir" = "$ac_pwd"; then
1283 # Remove unnecessary trailing slashes from srcdir.
1284 # Double slashes in file names in object file debugging info
1285 # mess up M-x gdb in Emacs.
1287 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1289 for ac_var in $ac_precious_vars; do
1290 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1291 eval ac_env_${ac_var}_value=\$${ac_var}
1292 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1293 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1297 # Report the --help message.
1299 if test "$ac_init_help" = "long"; then
1300 # Omit some internal or obsolete options to make the list less imposing.
1301 # This message is too long to be a string in the A/UX 3.1 sh.
1303 \`configure' configures lcr 1.5 to adapt to many kinds of systems.
1305 Usage: $0 [OPTION]... [VAR=VALUE]...
1307 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1308 VAR=VALUE. See below for descriptions of some of the useful variables.
1310 Defaults for the options are specified in brackets.
1313 -h, --help display this help and exit
1314 --help=short display options specific to this package
1315 --help=recursive display the short help of all the included packages
1316 -V, --version display version information and exit
1317 -q, --quiet, --silent do not print \`checking...' messages
1318 --cache-file=FILE cache test results in FILE [disabled]
1319 -C, --config-cache alias for \`--cache-file=config.cache'
1320 -n, --no-create do not create output files
1321 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1323 Installation directories:
1324 --prefix=PREFIX install architecture-independent files in PREFIX
1325 [$ac_default_prefix]
1326 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1329 By default, \`make install' will install all the files in
1330 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1331 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1332 for instance \`--prefix=\$HOME'.
1334 For better control, use the options below.
1336 Fine tuning of the installation directories:
1337 --bindir=DIR user executables [EPREFIX/bin]
1338 --sbindir=DIR system admin executables [EPREFIX/sbin]
1339 --libexecdir=DIR program executables [EPREFIX/libexec]
1340 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1341 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1342 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1343 --libdir=DIR object code libraries [EPREFIX/lib]
1344 --includedir=DIR C header files [PREFIX/include]
1345 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1346 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1347 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1348 --infodir=DIR info documentation [DATAROOTDIR/info]
1349 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1350 --mandir=DIR man documentation [DATAROOTDIR/man]
1351 --docdir=DIR documentation root [DATAROOTDIR/doc/lcr]
1352 --htmldir=DIR html documentation [DOCDIR]
1353 --dvidir=DIR dvi documentation [DOCDIR]
1354 --pdfdir=DIR pdf documentation [DOCDIR]
1355 --psdir=DIR ps documentation [DOCDIR]
1361 --program-prefix=PREFIX prepend PREFIX to installed program names
1362 --program-suffix=SUFFIX append SUFFIX to installed program names
1363 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1367 if test -n "$ac_init_help"; then
1368 case $ac_init_help in
1369 short | recursive ) echo "Configuration of lcr 1.5:";;
1374 --disable-option-checking ignore unrecognized --enable/--with options
1375 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1376 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1377 --disable-dependency-tracking speeds up one-time build
1378 --enable-dependency-tracking do not reject slow dependency extractors
1381 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1382 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1383 --with-asterisk compile with built-in Asterisk channel driver
1386 --with-ssl compile with ssl support (libcrypto) [default=check]
1388 --with-gsm compile with OpenBSC support (libbsc) [default=no]
1391 Some influential environment variables:
1392 CC C compiler command
1393 CFLAGS C compiler flags
1394 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1395 nonstandard directory <lib dir>
1396 LIBS libraries to pass to the linker, e.g. -l<library>
1397 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1398 you have headers in a nonstandard directory <include dir>
1400 CXX C++ compiler command
1401 CXXFLAGS C++ compiler flags
1403 Use these variables to override the choices made by `configure' or to help
1404 it to find libraries and programs with nonstandard names/locations.
1406 Report bugs to <andreas@eversberg.eu>.
1411 if test "$ac_init_help" = "recursive"; then
1412 # If there are subdirs, report their specific --help.
1413 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1414 test -d "$ac_dir" ||
1415 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1420 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1422 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1423 # A ".." for each directory in $ac_dir_suffix.
1424 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1425 case $ac_top_builddir_sub in
1426 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1427 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1430 ac_abs_top_builddir=$ac_pwd
1431 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1432 # for backward compatibility:
1433 ac_top_builddir=$ac_top_build_prefix
1436 .) # We are building in place.
1438 ac_top_srcdir=$ac_top_builddir_sub
1439 ac_abs_top_srcdir=$ac_pwd ;;
1440 [\\/]* | ?:[\\/]* ) # Absolute name.
1441 ac_srcdir=$srcdir$ac_dir_suffix;
1442 ac_top_srcdir=$srcdir
1443 ac_abs_top_srcdir=$srcdir ;;
1445 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1446 ac_top_srcdir=$ac_top_build_prefix$srcdir
1447 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1449 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1451 cd "$ac_dir" || { ac_status=$?; continue; }
1452 # Check for guested configure.
1453 if test -f "$ac_srcdir/configure.gnu"; then
1455 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1456 elif test -f "$ac_srcdir/configure"; then
1458 $SHELL "$ac_srcdir/configure" --help=recursive
1460 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1462 cd "$ac_pwd" || { ac_status=$?; break; }
1466 test -n "$ac_init_help" && exit $ac_status
1467 if $ac_init_version; then
1470 generated by GNU Autoconf 2.63
1472 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1473 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
1474 This configure script is free software; the Free Software Foundation
1475 gives unlimited permission to copy, distribute and modify it.
1479 cat >config.log <<_ACEOF
1480 This file contains any messages produced by compilers while
1481 running configure, to aid debugging if configure makes a mistake.
1483 It was created by lcr $as_me 1.5, which was
1484 generated by GNU Autoconf 2.63. Invocation command line was
1496 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1497 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1498 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1499 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1500 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1502 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1503 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1505 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1506 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1507 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1508 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1509 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1510 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1511 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1515 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1519 test -z "$as_dir" && as_dir=.
1520 $as_echo "PATH: $as_dir"
1536 # Keep a trace of the command line.
1537 # Strip out --no-create and --no-recursion so they do not pile up.
1538 # Strip out --silent because we don't want to record it for future runs.
1539 # Also quote any args containing shell meta-characters.
1540 # Make two passes to allow for proper duplicate-argument suppression.
1544 ac_must_keep_next=false
1550 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1551 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1552 | -silent | --silent | --silen | --sile | --sil)
1555 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1558 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1560 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1561 if test $ac_must_keep_next = true; then
1562 ac_must_keep_next=false # Got value, back to normal.
1565 *=* | --config-cache | -C | -disable-* | --disable-* \
1566 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1567 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1568 | -with-* | --with-* | -without-* | --without-* | --x)
1569 case "$ac_configure_args0 " in
1570 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1573 -* ) ac_must_keep_next=true ;;
1576 ac_configure_args="$ac_configure_args '$ac_arg'"
1581 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1582 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1584 # When interrupted or exit'd, cleanup temporary files, and complete
1585 # config.log. We remove comments because anyway the quotes in there
1586 # would cause problems or look ugly.
1587 # WARNING: Use '\'' to represent an apostrophe within the trap.
1588 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1589 trap 'exit_status=$?
1590 # Save into config.log some information that might help in debugging.
1595 ## ---------------- ##
1596 ## Cache variables. ##
1597 ## ---------------- ##
1600 # The following way of writing the cache mishandles newlines in values,
1602 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1603 eval ac_val=\$$ac_var
1607 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
1608 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1611 _ | IFS | as_nl) ;; #(
1612 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1613 *) $as_unset $ac_var ;;
1618 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1619 *${as_nl}ac_space=\ *)
1621 "s/'\''/'\''\\\\'\'''\''/g;
1622 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1625 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1633 ## ----------------- ##
1634 ## Output variables. ##
1635 ## ----------------- ##
1638 for ac_var in $ac_subst_vars
1640 eval ac_val=\$$ac_var
1642 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1644 $as_echo "$ac_var='\''$ac_val'\''"
1648 if test -n "$ac_subst_files"; then
1650 ## ------------------- ##
1651 ## File substitutions. ##
1652 ## ------------------- ##
1655 for ac_var in $ac_subst_files
1657 eval ac_val=\$$ac_var
1659 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1661 $as_echo "$ac_var='\''$ac_val'\''"
1666 if test -s confdefs.h; then
1676 test "$ac_signal" != 0 &&
1677 $as_echo "$as_me: caught signal $ac_signal"
1678 $as_echo "$as_me: exit $exit_status"
1680 rm -f core *.core core.conftest.* &&
1681 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1684 for ac_signal in 1 2 13 15; do
1685 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1689 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1690 rm -f -r conftest* confdefs.h
1692 # Predefined preprocessor variables.
1694 cat >>confdefs.h <<_ACEOF
1695 #define PACKAGE_NAME "$PACKAGE_NAME"
1699 cat >>confdefs.h <<_ACEOF
1700 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1704 cat >>confdefs.h <<_ACEOF
1705 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1709 cat >>confdefs.h <<_ACEOF
1710 #define PACKAGE_STRING "$PACKAGE_STRING"
1714 cat >>confdefs.h <<_ACEOF
1715 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1719 # Let the site file select an alternate cache file if it wants to.
1720 # Prefer an explicitly selected file to automatically selected ones.
1723 if test -n "$CONFIG_SITE"; then
1724 ac_site_file1=$CONFIG_SITE
1725 elif test "x$prefix" != xNONE; then
1726 ac_site_file1=$prefix/share/config.site
1727 ac_site_file2=$prefix/etc/config.site
1729 ac_site_file1=$ac_default_prefix/share/config.site
1730 ac_site_file2=$ac_default_prefix/etc/config.site
1732 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
1734 test "x$ac_site_file" = xNONE && continue
1735 if test -r "$ac_site_file"; then
1736 { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1737 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
1738 sed 's/^/| /' "$ac_site_file" >&5
1743 if test -r "$cache_file"; then
1744 # Some versions of bash will fail to source /dev/null (special
1745 # files actually), so we avoid doing that.
1746 if test -f "$cache_file"; then
1747 { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5
1748 $as_echo "$as_me: loading cache $cache_file" >&6;}
1750 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1751 *) . "./$cache_file";;
1755 { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5
1756 $as_echo "$as_me: creating cache $cache_file" >&6;}
1760 # Check that the precious variables saved in the cache have kept the same
1762 ac_cache_corrupted=false
1763 for ac_var in $ac_precious_vars; do
1764 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1765 eval ac_new_set=\$ac_env_${ac_var}_set
1766 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1767 eval ac_new_val=\$ac_env_${ac_var}_value
1768 case $ac_old_set,$ac_new_set in
1770 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1771 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1772 ac_cache_corrupted=: ;;
1774 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1775 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1776 ac_cache_corrupted=: ;;
1779 if test "x$ac_old_val" != "x$ac_new_val"; then
1780 # differences in whitespace do not lead to failure.
1781 ac_old_val_w=`echo x $ac_old_val`
1782 ac_new_val_w=`echo x $ac_new_val`
1783 if test "$ac_old_val_w" != "$ac_new_val_w"; then
1784 { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1785 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1786 ac_cache_corrupted=:
1788 { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
1789 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
1790 eval $ac_var=\$ac_old_val
1792 { $as_echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5
1793 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
1794 { $as_echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5
1795 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
1798 # Pass precious variables to config.status.
1799 if test "$ac_new_set" = set; then
1801 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1802 *) ac_arg=$ac_var=$ac_new_val ;;
1804 case " $ac_configure_args " in
1805 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1806 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1810 if $ac_cache_corrupted; then
1811 { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
1812 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1813 { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1814 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1815 { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1816 $as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1817 { (exit 1); exit 1; }; }
1845 ac_cpp='$CPP $CPPFLAGS'
1846 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1847 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1848 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1853 ac_config_headers="$ac_config_headers config.h"
1856 # fix warnings from autoconf + automake
1858 ac_cpp='$CPP $CPPFLAGS'
1859 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1860 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1861 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1862 if test -n "$ac_tool_prefix"; then
1863 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1864 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1865 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
1866 $as_echo_n "checking for $ac_word... " >&6; }
1867 if test "${ac_cv_prog_CC+set}" = set; then
1868 $as_echo_n "(cached) " >&6
1870 if test -n "$CC"; then
1871 ac_cv_prog_CC="$CC" # Let the user override the test.
1873 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1877 test -z "$as_dir" && as_dir=.
1878 for ac_exec_ext in '' $ac_executable_extensions; do
1879 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1880 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1881 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1891 if test -n "$CC"; then
1892 { $as_echo "$as_me:$LINENO: result: $CC" >&5
1893 $as_echo "$CC" >&6; }
1895 { $as_echo "$as_me:$LINENO: result: no" >&5
1896 $as_echo "no" >&6; }
1901 if test -z "$ac_cv_prog_CC"; then
1903 # Extract the first word of "gcc", so it can be a program name with args.
1904 set dummy gcc; ac_word=$2
1905 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
1906 $as_echo_n "checking for $ac_word... " >&6; }
1907 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1908 $as_echo_n "(cached) " >&6
1910 if test -n "$ac_ct_CC"; then
1911 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1913 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1917 test -z "$as_dir" && as_dir=.
1918 for ac_exec_ext in '' $ac_executable_extensions; do
1919 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1920 ac_cv_prog_ac_ct_CC="gcc"
1921 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1930 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1931 if test -n "$ac_ct_CC"; then
1932 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1933 $as_echo "$ac_ct_CC" >&6; }
1935 { $as_echo "$as_me:$LINENO: result: no" >&5
1936 $as_echo "no" >&6; }
1939 if test "x$ac_ct_CC" = x; then
1942 case $cross_compiling:$ac_tool_warned in
1944 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
1945 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
1946 ac_tool_warned=yes ;;
1954 if test -z "$CC"; then
1955 if test -n "$ac_tool_prefix"; then
1956 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1957 set dummy ${ac_tool_prefix}cc; ac_word=$2
1958 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
1959 $as_echo_n "checking for $ac_word... " >&6; }
1960 if test "${ac_cv_prog_CC+set}" = set; then
1961 $as_echo_n "(cached) " >&6
1963 if test -n "$CC"; then
1964 ac_cv_prog_CC="$CC" # Let the user override the test.
1966 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1970 test -z "$as_dir" && as_dir=.
1971 for ac_exec_ext in '' $ac_executable_extensions; do
1972 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1973 ac_cv_prog_CC="${ac_tool_prefix}cc"
1974 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1984 if test -n "$CC"; then
1985 { $as_echo "$as_me:$LINENO: result: $CC" >&5
1986 $as_echo "$CC" >&6; }
1988 { $as_echo "$as_me:$LINENO: result: no" >&5
1989 $as_echo "no" >&6; }
1995 if test -z "$CC"; then
1996 # Extract the first word of "cc", so it can be a program name with args.
1997 set dummy cc; ac_word=$2
1998 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
1999 $as_echo_n "checking for $ac_word... " >&6; }
2000 if test "${ac_cv_prog_CC+set}" = set; then
2001 $as_echo_n "(cached) " >&6
2003 if test -n "$CC"; then
2004 ac_cv_prog_CC="$CC" # Let the user override the test.
2007 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2011 test -z "$as_dir" && as_dir=.
2012 for ac_exec_ext in '' $ac_executable_extensions; do
2013 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2014 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2015 ac_prog_rejected=yes
2019 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2026 if test $ac_prog_rejected = yes; then
2027 # We found a bogon in the path, so make sure we never use it.
2028 set dummy $ac_cv_prog_CC
2030 if test $# != 0; then
2031 # We chose a different compiler from the bogus one.
2032 # However, it has the same basename, so the bogon will be chosen
2033 # first if we set CC to just the basename; use the full file name.
2035 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2041 if test -n "$CC"; then
2042 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2043 $as_echo "$CC" >&6; }
2045 { $as_echo "$as_me:$LINENO: result: no" >&5
2046 $as_echo "no" >&6; }
2051 if test -z "$CC"; then
2052 if test -n "$ac_tool_prefix"; then
2053 for ac_prog in cl.exe
2055 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2056 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2057 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2058 $as_echo_n "checking for $ac_word... " >&6; }
2059 if test "${ac_cv_prog_CC+set}" = set; then
2060 $as_echo_n "(cached) " >&6
2062 if test -n "$CC"; then
2063 ac_cv_prog_CC="$CC" # Let the user override the test.
2065 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2069 test -z "$as_dir" && as_dir=.
2070 for ac_exec_ext in '' $ac_executable_extensions; do
2071 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2072 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2073 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2083 if test -n "$CC"; then
2084 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2085 $as_echo "$CC" >&6; }
2087 { $as_echo "$as_me:$LINENO: result: no" >&5
2088 $as_echo "no" >&6; }
2092 test -n "$CC" && break
2095 if test -z "$CC"; then
2097 for ac_prog in cl.exe
2099 # Extract the first word of "$ac_prog", so it can be a program name with args.
2100 set dummy $ac_prog; ac_word=$2
2101 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2102 $as_echo_n "checking for $ac_word... " >&6; }
2103 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2104 $as_echo_n "(cached) " >&6
2106 if test -n "$ac_ct_CC"; then
2107 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2109 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2113 test -z "$as_dir" && as_dir=.
2114 for ac_exec_ext in '' $ac_executable_extensions; do
2115 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2116 ac_cv_prog_ac_ct_CC="$ac_prog"
2117 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2126 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2127 if test -n "$ac_ct_CC"; then
2128 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2129 $as_echo "$ac_ct_CC" >&6; }
2131 { $as_echo "$as_me:$LINENO: result: no" >&5
2132 $as_echo "no" >&6; }
2136 test -n "$ac_ct_CC" && break
2139 if test "x$ac_ct_CC" = x; then
2142 case $cross_compiling:$ac_tool_warned in
2144 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2145 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2146 ac_tool_warned=yes ;;
2155 test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2156 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2157 { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2158 See \`config.log' for more details." >&5
2159 $as_echo "$as_me: error: no acceptable C compiler found in \$PATH
2160 See \`config.log' for more details." >&2;}
2161 { (exit 1); exit 1; }; }; }
2163 # Provide some information about the compiler.
2164 $as_echo "$as_me:$LINENO: checking for C compiler version" >&5
2167 { (ac_try="$ac_compiler --version >&5"
2169 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2170 *) ac_try_echo=$ac_try;;
2172 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2173 $as_echo "$ac_try_echo") >&5
2174 (eval "$ac_compiler --version >&5") 2>&5
2176 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2177 (exit $ac_status); }
2178 { (ac_try="$ac_compiler -v >&5"
2180 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2181 *) ac_try_echo=$ac_try;;
2183 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2184 $as_echo "$ac_try_echo") >&5
2185 (eval "$ac_compiler -v >&5") 2>&5
2187 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2188 (exit $ac_status); }
2189 { (ac_try="$ac_compiler -V >&5"
2191 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2192 *) ac_try_echo=$ac_try;;
2194 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2195 $as_echo "$ac_try_echo") >&5
2196 (eval "$ac_compiler -V >&5") 2>&5
2198 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2199 (exit $ac_status); }
2201 cat >conftest.$ac_ext <<_ACEOF
2204 cat confdefs.h >>conftest.$ac_ext
2205 cat >>conftest.$ac_ext <<_ACEOF
2206 /* end confdefs.h. */
2216 ac_clean_files_save=$ac_clean_files
2217 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2218 # Try to create an executable without -o first, disregard a.out.
2219 # It will help us diagnose broken compilers, and finding out an intuition
2221 { $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2222 $as_echo_n "checking for C compiler default output file name... " >&6; }
2223 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2225 # The possible output files:
2226 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2229 for ac_file in $ac_files
2232 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2233 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2238 if { (ac_try="$ac_link_default"
2240 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2241 *) ac_try_echo=$ac_try;;
2243 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2244 $as_echo "$ac_try_echo") >&5
2245 (eval "$ac_link_default") 2>&5
2247 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2248 (exit $ac_status); }; then
2249 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2250 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2251 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2252 # so that the user can short-circuit this test for compilers unknown to
2254 for ac_file in $ac_files ''
2256 test -f "$ac_file" || continue
2258 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2261 # We found the default executable, but exeext='' is most
2265 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2267 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2269 # We set ac_cv_exeext here because the later test for it is not
2270 # safe: cross compilers may not add the suffix if given an `-o'
2271 # argument, so we may need to know it at that point already.
2272 # Even if this section looks crufty: it has the advantage of
2279 test "$ac_cv_exeext" = no && ac_cv_exeext=
2285 { $as_echo "$as_me:$LINENO: result: $ac_file" >&5
2286 $as_echo "$ac_file" >&6; }
2287 if test -z "$ac_file"; then
2288 $as_echo "$as_me: failed program was:" >&5
2289 sed 's/^/| /' conftest.$ac_ext >&5
2291 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2292 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2293 { { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables
2294 See \`config.log' for more details." >&5
2295 $as_echo "$as_me: error: C compiler cannot create executables
2296 See \`config.log' for more details." >&2;}
2297 { (exit 77); exit 77; }; }; }
2300 ac_exeext=$ac_cv_exeext
2302 # Check that the compiler produces executables we can run. If not, either
2303 # the compiler is broken, or we cross compile.
2304 { $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2305 $as_echo_n "checking whether the C compiler works... " >&6; }
2306 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2307 # If not cross compiling, check that we can run a simple program.
2308 if test "$cross_compiling" != yes; then
2309 if { ac_try='./$ac_file'
2310 { (case "(($ac_try" in
2311 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2312 *) ac_try_echo=$ac_try;;
2314 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2315 $as_echo "$ac_try_echo") >&5
2316 (eval "$ac_try") 2>&5
2318 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2319 (exit $ac_status); }; }; then
2322 if test "$cross_compiling" = maybe; then
2325 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2326 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2327 { { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs.
2328 If you meant to cross compile, use \`--host'.
2329 See \`config.log' for more details." >&5
2330 $as_echo "$as_me: error: cannot run C compiled programs.
2331 If you meant to cross compile, use \`--host'.
2332 See \`config.log' for more details." >&2;}
2333 { (exit 1); exit 1; }; }; }
2337 { $as_echo "$as_me:$LINENO: result: yes" >&5
2338 $as_echo "yes" >&6; }
2340 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
2341 ac_clean_files=$ac_clean_files_save
2342 # Check that the compiler produces executables we can run. If not, either
2343 # the compiler is broken, or we cross compile.
2344 { $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2345 $as_echo_n "checking whether we are cross compiling... " >&6; }
2346 { $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5
2347 $as_echo "$cross_compiling" >&6; }
2349 { $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5
2350 $as_echo_n "checking for suffix of executables... " >&6; }
2351 if { (ac_try="$ac_link"
2353 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2354 *) ac_try_echo=$ac_try;;
2356 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2357 $as_echo "$ac_try_echo") >&5
2358 (eval "$ac_link") 2>&5
2360 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2361 (exit $ac_status); }; then
2362 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2363 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2364 # work properly (i.e., refer to `conftest.exe'), while it won't with
2366 for ac_file in conftest.exe conftest conftest.*; do
2367 test -f "$ac_file" || continue
2369 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2370 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2376 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2377 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2378 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2379 See \`config.log' for more details." >&5
2380 $as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2381 See \`config.log' for more details." >&2;}
2382 { (exit 1); exit 1; }; }; }
2385 rm -f conftest$ac_cv_exeext
2386 { $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2387 $as_echo "$ac_cv_exeext" >&6; }
2389 rm -f conftest.$ac_ext
2390 EXEEXT=$ac_cv_exeext
2392 { $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5
2393 $as_echo_n "checking for suffix of object files... " >&6; }
2394 if test "${ac_cv_objext+set}" = set; then
2395 $as_echo_n "(cached) " >&6
2397 cat >conftest.$ac_ext <<_ACEOF
2400 cat confdefs.h >>conftest.$ac_ext
2401 cat >>conftest.$ac_ext <<_ACEOF
2402 /* end confdefs.h. */
2412 rm -f conftest.o conftest.obj
2413 if { (ac_try="$ac_compile"
2415 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2416 *) ac_try_echo=$ac_try;;
2418 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2419 $as_echo "$ac_try_echo") >&5
2420 (eval "$ac_compile") 2>&5
2422 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2423 (exit $ac_status); }; then
2424 for ac_file in conftest.o conftest.obj conftest.*; do
2425 test -f "$ac_file" || continue;
2427 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
2428 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2433 $as_echo "$as_me: failed program was:" >&5
2434 sed 's/^/| /' conftest.$ac_ext >&5
2436 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2437 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2438 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2439 See \`config.log' for more details." >&5
2440 $as_echo "$as_me: error: cannot compute suffix of object files: cannot compile
2441 See \`config.log' for more details." >&2;}
2442 { (exit 1); exit 1; }; }; }
2445 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2447 { $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2448 $as_echo "$ac_cv_objext" >&6; }
2449 OBJEXT=$ac_cv_objext
2451 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2452 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
2453 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2454 $as_echo_n "(cached) " >&6
2456 cat >conftest.$ac_ext <<_ACEOF
2459 cat confdefs.h >>conftest.$ac_ext
2460 cat >>conftest.$ac_ext <<_ACEOF
2461 /* end confdefs.h. */
2474 rm -f conftest.$ac_objext
2475 if { (ac_try="$ac_compile"
2477 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2478 *) ac_try_echo=$ac_try;;
2480 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2481 $as_echo "$ac_try_echo") >&5
2482 (eval "$ac_compile") 2>conftest.er1
2484 grep -v '^ *+' conftest.er1 >conftest.err
2486 cat conftest.err >&5
2487 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2488 (exit $ac_status); } && {
2489 test -z "$ac_c_werror_flag" ||
2490 test ! -s conftest.err
2491 } && test -s conftest.$ac_objext; then
2494 $as_echo "$as_me: failed program was:" >&5
2495 sed 's/^/| /' conftest.$ac_ext >&5
2500 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2501 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2504 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2505 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
2506 if test $ac_compiler_gnu = yes; then
2511 ac_test_CFLAGS=${CFLAGS+set}
2512 ac_save_CFLAGS=$CFLAGS
2513 { $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2514 $as_echo_n "checking whether $CC accepts -g... " >&6; }
2515 if test "${ac_cv_prog_cc_g+set}" = set; then
2516 $as_echo_n "(cached) " >&6
2518 ac_save_c_werror_flag=$ac_c_werror_flag
2519 ac_c_werror_flag=yes
2522 cat >conftest.$ac_ext <<_ACEOF
2525 cat confdefs.h >>conftest.$ac_ext
2526 cat >>conftest.$ac_ext <<_ACEOF
2527 /* end confdefs.h. */
2537 rm -f conftest.$ac_objext
2538 if { (ac_try="$ac_compile"
2540 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2541 *) ac_try_echo=$ac_try;;
2543 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2544 $as_echo "$ac_try_echo") >&5
2545 (eval "$ac_compile") 2>conftest.er1
2547 grep -v '^ *+' conftest.er1 >conftest.err
2549 cat conftest.err >&5
2550 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2551 (exit $ac_status); } && {
2552 test -z "$ac_c_werror_flag" ||
2553 test ! -s conftest.err
2554 } && test -s conftest.$ac_objext; then
2557 $as_echo "$as_me: failed program was:" >&5
2558 sed 's/^/| /' conftest.$ac_ext >&5
2561 cat >conftest.$ac_ext <<_ACEOF
2564 cat confdefs.h >>conftest.$ac_ext
2565 cat >>conftest.$ac_ext <<_ACEOF
2566 /* end confdefs.h. */
2576 rm -f conftest.$ac_objext
2577 if { (ac_try="$ac_compile"
2579 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2580 *) ac_try_echo=$ac_try;;
2582 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2583 $as_echo "$ac_try_echo") >&5
2584 (eval "$ac_compile") 2>conftest.er1
2586 grep -v '^ *+' conftest.er1 >conftest.err
2588 cat conftest.err >&5
2589 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2590 (exit $ac_status); } && {
2591 test -z "$ac_c_werror_flag" ||
2592 test ! -s conftest.err
2593 } && test -s conftest.$ac_objext; then
2596 $as_echo "$as_me: failed program was:" >&5
2597 sed 's/^/| /' conftest.$ac_ext >&5
2599 ac_c_werror_flag=$ac_save_c_werror_flag
2601 cat >conftest.$ac_ext <<_ACEOF
2604 cat confdefs.h >>conftest.$ac_ext
2605 cat >>conftest.$ac_ext <<_ACEOF
2606 /* end confdefs.h. */
2616 rm -f conftest.$ac_objext
2617 if { (ac_try="$ac_compile"
2619 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2620 *) ac_try_echo=$ac_try;;
2622 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2623 $as_echo "$ac_try_echo") >&5
2624 (eval "$ac_compile") 2>conftest.er1
2626 grep -v '^ *+' conftest.er1 >conftest.err
2628 cat conftest.err >&5
2629 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2630 (exit $ac_status); } && {
2631 test -z "$ac_c_werror_flag" ||
2632 test ! -s conftest.err
2633 } && test -s conftest.$ac_objext; then
2636 $as_echo "$as_me: failed program was:" >&5
2637 sed 's/^/| /' conftest.$ac_ext >&5
2642 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2645 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2648 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2649 ac_c_werror_flag=$ac_save_c_werror_flag
2651 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2652 $as_echo "$ac_cv_prog_cc_g" >&6; }
2653 if test "$ac_test_CFLAGS" = set; then
2654 CFLAGS=$ac_save_CFLAGS
2655 elif test $ac_cv_prog_cc_g = yes; then
2656 if test "$GCC" = yes; then
2662 if test "$GCC" = yes; then
2668 { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2669 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
2670 if test "${ac_cv_prog_cc_c89+set}" = set; then
2671 $as_echo_n "(cached) " >&6
2673 ac_cv_prog_cc_c89=no
2675 cat >conftest.$ac_ext <<_ACEOF
2678 cat confdefs.h >>conftest.$ac_ext
2679 cat >>conftest.$ac_ext <<_ACEOF
2680 /* end confdefs.h. */
2683 #include <sys/types.h>
2684 #include <sys/stat.h>
2685 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2686 struct buf { int x; };
2687 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2688 static char *e (p, i)
2694 static char *f (char * (*g) (char **, int), char **p, ...)
2699 s = g (p, va_arg (v,int));
2704 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2705 function prototypes and stuff, but not '\xHH' hex character constants.
2706 These don't provoke an error unfortunately, instead are silently treated
2707 as 'x'. The following induces an error, until -std is added to get
2708 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2709 array size at least. It's necessary to write '\x00'==0 to get something
2710 that's true only with -std. */
2711 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2713 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2714 inside strings and character constants. */
2716 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2718 int test (int i, double x);
2719 struct s1 {int (*f) (int a);};
2720 struct s2 {int (*f) (double a);};
2721 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2727 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2732 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2733 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2735 CC="$ac_save_CC $ac_arg"
2736 rm -f conftest.$ac_objext
2737 if { (ac_try="$ac_compile"
2739 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2740 *) ac_try_echo=$ac_try;;
2742 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2743 $as_echo "$ac_try_echo") >&5
2744 (eval "$ac_compile") 2>conftest.er1
2746 grep -v '^ *+' conftest.er1 >conftest.err
2748 cat conftest.err >&5
2749 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2750 (exit $ac_status); } && {
2751 test -z "$ac_c_werror_flag" ||
2752 test ! -s conftest.err
2753 } && test -s conftest.$ac_objext; then
2754 ac_cv_prog_cc_c89=$ac_arg
2756 $as_echo "$as_me: failed program was:" >&5
2757 sed 's/^/| /' conftest.$ac_ext >&5
2762 rm -f core conftest.err conftest.$ac_objext
2763 test "x$ac_cv_prog_cc_c89" != "xno" && break
2765 rm -f conftest.$ac_ext
2770 case "x$ac_cv_prog_cc_c89" in
2772 { $as_echo "$as_me:$LINENO: result: none needed" >&5
2773 $as_echo "none needed" >&6; } ;;
2775 { $as_echo "$as_me:$LINENO: result: unsupported" >&5
2776 $as_echo "unsupported" >&6; } ;;
2778 CC="$CC $ac_cv_prog_cc_c89"
2779 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
2780 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
2785 ac_cpp='$CPP $CPPFLAGS'
2786 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2787 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2788 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2792 ac_cpp='$CPP $CPPFLAGS'
2793 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2794 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2795 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2796 { $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2797 $as_echo_n "checking how to run the C preprocessor... " >&6; }
2798 # On Suns, sometimes $CPP names a directory.
2799 if test -n "$CPP" && test -d "$CPP"; then
2802 if test -z "$CPP"; then
2803 if test "${ac_cv_prog_CPP+set}" = set; then
2804 $as_echo_n "(cached) " >&6
2806 # Double quotes because CPP needs to be expanded
2807 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2810 for ac_c_preproc_warn_flag in '' yes
2812 # Use a header file that comes with gcc, so configuring glibc
2813 # with a fresh cross-compiler works.
2814 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2815 # <limits.h> exists even on freestanding compilers.
2816 # On the NeXT, cc -E runs the code through the compiler's parser,
2817 # not just through cpp. "Syntax error" is here to catch this case.
2818 cat >conftest.$ac_ext <<_ACEOF
2821 cat confdefs.h >>conftest.$ac_ext
2822 cat >>conftest.$ac_ext <<_ACEOF
2823 /* end confdefs.h. */
2825 # include <limits.h>
2827 # include <assert.h>
2831 if { (ac_try="$ac_cpp conftest.$ac_ext"
2833 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2834 *) ac_try_echo=$ac_try;;
2836 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2837 $as_echo "$ac_try_echo") >&5
2838 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
2840 grep -v '^ *+' conftest.er1 >conftest.err
2842 cat conftest.err >&5
2843 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2844 (exit $ac_status); } >/dev/null && {
2845 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2846 test ! -s conftest.err
2850 $as_echo "$as_me: failed program was:" >&5
2851 sed 's/^/| /' conftest.$ac_ext >&5
2853 # Broken: fails on valid input.
2857 rm -f conftest.err conftest.$ac_ext
2859 # OK, works on sane cases. Now check whether nonexistent headers
2860 # can be detected and how.
2861 cat >conftest.$ac_ext <<_ACEOF
2864 cat confdefs.h >>conftest.$ac_ext
2865 cat >>conftest.$ac_ext <<_ACEOF
2866 /* end confdefs.h. */
2867 #include <ac_nonexistent.h>
2869 if { (ac_try="$ac_cpp conftest.$ac_ext"
2871 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2872 *) ac_try_echo=$ac_try;;
2874 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2875 $as_echo "$ac_try_echo") >&5
2876 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
2878 grep -v '^ *+' conftest.er1 >conftest.err
2880 cat conftest.err >&5
2881 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2882 (exit $ac_status); } >/dev/null && {
2883 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2884 test ! -s conftest.err
2886 # Broken: success on invalid input.
2889 $as_echo "$as_me: failed program was:" >&5
2890 sed 's/^/| /' conftest.$ac_ext >&5
2892 # Passes both tests.
2897 rm -f conftest.err conftest.$ac_ext
2900 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2901 rm -f conftest.err conftest.$ac_ext
2902 if $ac_preproc_ok; then
2914 { $as_echo "$as_me:$LINENO: result: $CPP" >&5
2915 $as_echo "$CPP" >&6; }
2917 for ac_c_preproc_warn_flag in '' yes
2919 # Use a header file that comes with gcc, so configuring glibc
2920 # with a fresh cross-compiler works.
2921 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2922 # <limits.h> exists even on freestanding compilers.
2923 # On the NeXT, cc -E runs the code through the compiler's parser,
2924 # not just through cpp. "Syntax error" is here to catch this case.
2925 cat >conftest.$ac_ext <<_ACEOF
2928 cat confdefs.h >>conftest.$ac_ext
2929 cat >>conftest.$ac_ext <<_ACEOF
2930 /* end confdefs.h. */
2932 # include <limits.h>
2934 # include <assert.h>
2938 if { (ac_try="$ac_cpp conftest.$ac_ext"
2940 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2941 *) ac_try_echo=$ac_try;;
2943 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2944 $as_echo "$ac_try_echo") >&5
2945 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
2947 grep -v '^ *+' conftest.er1 >conftest.err
2949 cat conftest.err >&5
2950 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2951 (exit $ac_status); } >/dev/null && {
2952 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2953 test ! -s conftest.err
2957 $as_echo "$as_me: failed program was:" >&5
2958 sed 's/^/| /' conftest.$ac_ext >&5
2960 # Broken: fails on valid input.
2964 rm -f conftest.err conftest.$ac_ext
2966 # OK, works on sane cases. Now check whether nonexistent headers
2967 # can be detected and how.
2968 cat >conftest.$ac_ext <<_ACEOF
2971 cat confdefs.h >>conftest.$ac_ext
2972 cat >>conftest.$ac_ext <<_ACEOF
2973 /* end confdefs.h. */
2974 #include <ac_nonexistent.h>
2976 if { (ac_try="$ac_cpp conftest.$ac_ext"
2978 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2979 *) ac_try_echo=$ac_try;;
2981 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2982 $as_echo "$ac_try_echo") >&5
2983 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
2985 grep -v '^ *+' conftest.er1 >conftest.err
2987 cat conftest.err >&5
2988 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2989 (exit $ac_status); } >/dev/null && {
2990 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2991 test ! -s conftest.err
2993 # Broken: success on invalid input.
2996 $as_echo "$as_me: failed program was:" >&5
2997 sed 's/^/| /' conftest.$ac_ext >&5
2999 # Passes both tests.
3004 rm -f conftest.err conftest.$ac_ext
3007 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3008 rm -f conftest.err conftest.$ac_ext
3009 if $ac_preproc_ok; then
3012 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3013 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3014 { { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3015 See \`config.log' for more details." >&5
3016 $as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3017 See \`config.log' for more details." >&2;}
3018 { (exit 1); exit 1; }; }; }
3022 ac_cpp='$CPP $CPPFLAGS'
3023 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3024 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3025 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3028 { $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3029 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3030 if test "${ac_cv_path_GREP+set}" = set; then
3031 $as_echo_n "(cached) " >&6
3033 if test -z "$GREP"; then
3034 ac_path_GREP_found=false
3035 # Loop through the user's path and test for each of PROGNAME-LIST
3036 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3037 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3040 test -z "$as_dir" && as_dir=.
3041 for ac_prog in grep ggrep; do
3042 for ac_exec_ext in '' $ac_executable_extensions; do
3043 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3044 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3045 # Check for GNU ac_path_GREP and select it if it is found.
3046 # Check for GNU $ac_path_GREP
3047 case `"$ac_path_GREP" --version 2>&1` in
3049 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3052 $as_echo_n 0123456789 >"conftest.in"
3055 cat "conftest.in" "conftest.in" >"conftest.tmp"
3056 mv "conftest.tmp" "conftest.in"
3057 cp "conftest.in" "conftest.nl"
3058 $as_echo 'GREP' >> "conftest.nl"
3059 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3060 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3061 ac_count=`expr $ac_count + 1`
3062 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3063 # Best one so far, save it but keep looking for a better one
3064 ac_cv_path_GREP="$ac_path_GREP"
3065 ac_path_GREP_max=$ac_count
3067 # 10*(2^10) chars as input seems more than enough
3068 test $ac_count -gt 10 && break
3070 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3073 $ac_path_GREP_found && break 3
3078 if test -z "$ac_cv_path_GREP"; then
3079 { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3080 $as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3081 { (exit 1); exit 1; }; }
3084 ac_cv_path_GREP=$GREP
3088 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3089 $as_echo "$ac_cv_path_GREP" >&6; }
3090 GREP="$ac_cv_path_GREP"
3093 { $as_echo "$as_me:$LINENO: checking for egrep" >&5
3094 $as_echo_n "checking for egrep... " >&6; }
3095 if test "${ac_cv_path_EGREP+set}" = set; then
3096 $as_echo_n "(cached) " >&6
3098 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3099 then ac_cv_path_EGREP="$GREP -E"
3101 if test -z "$EGREP"; then
3102 ac_path_EGREP_found=false
3103 # Loop through the user's path and test for each of PROGNAME-LIST
3104 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3105 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3108 test -z "$as_dir" && as_dir=.
3109 for ac_prog in egrep; do
3110 for ac_exec_ext in '' $ac_executable_extensions; do
3111 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3112 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3113 # Check for GNU ac_path_EGREP and select it if it is found.
3114 # Check for GNU $ac_path_EGREP
3115 case `"$ac_path_EGREP" --version 2>&1` in
3117 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3120 $as_echo_n 0123456789 >"conftest.in"
3123 cat "conftest.in" "conftest.in" >"conftest.tmp"
3124 mv "conftest.tmp" "conftest.in"
3125 cp "conftest.in" "conftest.nl"
3126 $as_echo 'EGREP' >> "conftest.nl"
3127 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3128 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3129 ac_count=`expr $ac_count + 1`
3130 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3131 # Best one so far, save it but keep looking for a better one
3132 ac_cv_path_EGREP="$ac_path_EGREP"
3133 ac_path_EGREP_max=$ac_count
3135 # 10*(2^10) chars as input seems more than enough
3136 test $ac_count -gt 10 && break
3138 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3141 $ac_path_EGREP_found && break 3
3146 if test -z "$ac_cv_path_EGREP"; then
3147 { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3148 $as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3149 { (exit 1); exit 1; }; }
3152 ac_cv_path_EGREP=$EGREP
3157 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3158 $as_echo "$ac_cv_path_EGREP" >&6; }
3159 EGREP="$ac_cv_path_EGREP"
3162 { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3163 $as_echo_n "checking for ANSI C header files... " >&6; }
3164 if test "${ac_cv_header_stdc+set}" = set; then
3165 $as_echo_n "(cached) " >&6
3167 cat >conftest.$ac_ext <<_ACEOF
3170 cat confdefs.h >>conftest.$ac_ext
3171 cat >>conftest.$ac_ext <<_ACEOF
3172 /* end confdefs.h. */
3186 rm -f conftest.$ac_objext
3187 if { (ac_try="$ac_compile"
3189 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3190 *) ac_try_echo=$ac_try;;
3192 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3193 $as_echo "$ac_try_echo") >&5
3194 (eval "$ac_compile") 2>conftest.er1
3196 grep -v '^ *+' conftest.er1 >conftest.err
3198 cat conftest.err >&5
3199 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3200 (exit $ac_status); } && {
3201 test -z "$ac_c_werror_flag" ||
3202 test ! -s conftest.err
3203 } && test -s conftest.$ac_objext; then
3204 ac_cv_header_stdc=yes
3206 $as_echo "$as_me: failed program was:" >&5
3207 sed 's/^/| /' conftest.$ac_ext >&5
3209 ac_cv_header_stdc=no
3212 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3214 if test $ac_cv_header_stdc = yes; then
3215 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3216 cat >conftest.$ac_ext <<_ACEOF
3219 cat confdefs.h >>conftest.$ac_ext
3220 cat >>conftest.$ac_ext <<_ACEOF
3221 /* end confdefs.h. */
3225 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3226 $EGREP "memchr" >/dev/null 2>&1; then
3229 ac_cv_header_stdc=no
3235 if test $ac_cv_header_stdc = yes; then
3236 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3237 cat >conftest.$ac_ext <<_ACEOF
3240 cat confdefs.h >>conftest.$ac_ext
3241 cat >>conftest.$ac_ext <<_ACEOF
3242 /* end confdefs.h. */
3246 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3247 $EGREP "free" >/dev/null 2>&1; then
3250 ac_cv_header_stdc=no
3256 if test $ac_cv_header_stdc = yes; then
3257 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3258 if test "$cross_compiling" = yes; then
3261 cat >conftest.$ac_ext <<_ACEOF
3264 cat confdefs.h >>conftest.$ac_ext
3265 cat >>conftest.$ac_ext <<_ACEOF
3266 /* end confdefs.h. */
3269 #if ((' ' & 0x0FF) == 0x020)
3270 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3271 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3273 # define ISLOWER(c) \
3274 (('a' <= (c) && (c) <= 'i') \
3275 || ('j' <= (c) && (c) <= 'r') \
3276 || ('s' <= (c) && (c) <= 'z'))
3277 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3280 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3285 for (i = 0; i < 256; i++)
3286 if (XOR (islower (i), ISLOWER (i))
3287 || toupper (i) != TOUPPER (i))
3292 rm -f conftest$ac_exeext
3293 if { (ac_try="$ac_link"
3295 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3296 *) ac_try_echo=$ac_try;;
3298 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3299 $as_echo "$ac_try_echo") >&5
3300 (eval "$ac_link") 2>&5
3302 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3303 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3304 { (case "(($ac_try" in
3305 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3306 *) ac_try_echo=$ac_try;;
3308 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3309 $as_echo "$ac_try_echo") >&5
3310 (eval "$ac_try") 2>&5
3312 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3313 (exit $ac_status); }; }; then
3316 $as_echo "$as_me: program exited with status $ac_status" >&5
3317 $as_echo "$as_me: failed program was:" >&5
3318 sed 's/^/| /' conftest.$ac_ext >&5
3321 ac_cv_header_stdc=no
3323 rm -rf conftest.dSYM
3324 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3330 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3331 $as_echo "$ac_cv_header_stdc" >&6; }
3332 if test $ac_cv_header_stdc = yes; then
3334 cat >>confdefs.h <<\_ACEOF
3335 #define STDC_HEADERS 1
3340 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3350 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3351 inttypes.h stdint.h unistd.h
3353 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
3354 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
3355 $as_echo_n "checking for $ac_header... " >&6; }
3356 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
3357 $as_echo_n "(cached) " >&6
3359 cat >conftest.$ac_ext <<_ACEOF
3362 cat confdefs.h >>conftest.$ac_ext
3363 cat >>conftest.$ac_ext <<_ACEOF
3364 /* end confdefs.h. */
3365 $ac_includes_default
3367 #include <$ac_header>
3369 rm -f conftest.$ac_objext
3370 if { (ac_try="$ac_compile"
3372 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3373 *) ac_try_echo=$ac_try;;
3375 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3376 $as_echo "$ac_try_echo") >&5
3377 (eval "$ac_compile") 2>conftest.er1
3379 grep -v '^ *+' conftest.er1 >conftest.err
3381 cat conftest.err >&5
3382 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3383 (exit $ac_status); } && {
3384 test -z "$ac_c_werror_flag" ||
3385 test ! -s conftest.err
3386 } && test -s conftest.$ac_objext; then
3387 eval "$as_ac_Header=yes"
3389 $as_echo "$as_me: failed program was:" >&5
3390 sed 's/^/| /' conftest.$ac_ext >&5
3392 eval "$as_ac_Header=no"
3395 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3397 ac_res=`eval 'as_val=${'$as_ac_Header'}
3398 $as_echo "$as_val"'`
3399 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
3400 $as_echo "$ac_res" >&6; }
3401 as_val=`eval 'as_val=${'$as_ac_Header'}
3402 $as_echo "$as_val"'`
3403 if test "x$as_val" = x""yes; then
3404 cat >>confdefs.h <<_ACEOF
3405 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
3414 if test "${ac_cv_header_minix_config_h+set}" = set; then
3415 { $as_echo "$as_me:$LINENO: checking for minix/config.h" >&5
3416 $as_echo_n "checking for minix/config.h... " >&6; }
3417 if test "${ac_cv_header_minix_config_h+set}" = set; then
3418 $as_echo_n "(cached) " >&6
3420 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
3421 $as_echo "$ac_cv_header_minix_config_h" >&6; }
3423 # Is the header compilable?
3424 { $as_echo "$as_me:$LINENO: checking minix/config.h usability" >&5
3425 $as_echo_n "checking minix/config.h usability... " >&6; }
3426 cat >conftest.$ac_ext <<_ACEOF
3429 cat confdefs.h >>conftest.$ac_ext
3430 cat >>conftest.$ac_ext <<_ACEOF
3431 /* end confdefs.h. */
3432 $ac_includes_default
3433 #include <minix/config.h>
3435 rm -f conftest.$ac_objext
3436 if { (ac_try="$ac_compile"
3438 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3439 *) ac_try_echo=$ac_try;;
3441 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3442 $as_echo "$ac_try_echo") >&5
3443 (eval "$ac_compile") 2>conftest.er1
3445 grep -v '^ *+' conftest.er1 >conftest.err
3447 cat conftest.err >&5
3448 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3449 (exit $ac_status); } && {
3450 test -z "$ac_c_werror_flag" ||
3451 test ! -s conftest.err
3452 } && test -s conftest.$ac_objext; then
3453 ac_header_compiler=yes
3455 $as_echo "$as_me: failed program was:" >&5
3456 sed 's/^/| /' conftest.$ac_ext >&5
3458 ac_header_compiler=no
3461 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3462 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3463 $as_echo "$ac_header_compiler" >&6; }
3465 # Is the header present?
3466 { $as_echo "$as_me:$LINENO: checking minix/config.h presence" >&5
3467 $as_echo_n "checking minix/config.h presence... " >&6; }
3468 cat >conftest.$ac_ext <<_ACEOF
3471 cat confdefs.h >>conftest.$ac_ext
3472 cat >>conftest.$ac_ext <<_ACEOF
3473 /* end confdefs.h. */
3474 #include <minix/config.h>
3476 if { (ac_try="$ac_cpp conftest.$ac_ext"
3478 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3479 *) ac_try_echo=$ac_try;;
3481 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3482 $as_echo "$ac_try_echo") >&5
3483 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3485 grep -v '^ *+' conftest.er1 >conftest.err
3487 cat conftest.err >&5
3488 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3489 (exit $ac_status); } >/dev/null && {
3490 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3491 test ! -s conftest.err
3493 ac_header_preproc=yes
3495 $as_echo "$as_me: failed program was:" >&5
3496 sed 's/^/| /' conftest.$ac_ext >&5
3498 ac_header_preproc=no
3501 rm -f conftest.err conftest.$ac_ext
3502 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3503 $as_echo "$ac_header_preproc" >&6; }
3505 # So? What about this header?
3506 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
3508 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&5
3509 $as_echo "$as_me: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
3510 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the compiler's result" >&5
3511 $as_echo "$as_me: WARNING: minix/config.h: proceeding with the compiler's result" >&2;}
3512 ac_header_preproc=yes
3515 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: present but cannot be compiled" >&5
3516 $as_echo "$as_me: WARNING: minix/config.h: present but cannot be compiled" >&2;}
3517 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: check for missing prerequisite headers?" >&5
3518 $as_echo "$as_me: WARNING: minix/config.h: check for missing prerequisite headers?" >&2;}
3519 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: see the Autoconf documentation" >&5
3520 $as_echo "$as_me: WARNING: minix/config.h: see the Autoconf documentation" >&2;}
3521 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&5
3522 $as_echo "$as_me: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&2;}
3523 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5
3524 $as_echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;}
3525 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: in the future, the compiler will take precedence" >&5
3526 $as_echo "$as_me: WARNING: minix/config.h: in the future, the compiler will take precedence" >&2;}
3528 ## ----------------------------------- ##
3529 ## Report this to andreas@eversberg.eu ##
3530 ## ----------------------------------- ##
3532 ) | sed "s/^/$as_me: WARNING: /" >&2
3535 { $as_echo "$as_me:$LINENO: checking for minix/config.h" >&5
3536 $as_echo_n "checking for minix/config.h... " >&6; }
3537 if test "${ac_cv_header_minix_config_h+set}" = set; then
3538 $as_echo_n "(cached) " >&6
3540 ac_cv_header_minix_config_h=$ac_header_preproc
3542 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
3543 $as_echo "$ac_cv_header_minix_config_h" >&6; }
3546 if test "x$ac_cv_header_minix_config_h" = x""yes; then
3553 if test "$MINIX" = yes; then
3555 cat >>confdefs.h <<\_ACEOF
3556 #define _POSIX_SOURCE 1
3560 cat >>confdefs.h <<\_ACEOF
3561 #define _POSIX_1_SOURCE 2
3565 cat >>confdefs.h <<\_ACEOF
3573 { $as_echo "$as_me:$LINENO: checking whether it is safe to define __EXTENSIONS__" >&5
3574 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
3575 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then
3576 $as_echo_n "(cached) " >&6
3578 cat >conftest.$ac_ext <<_ACEOF
3581 cat confdefs.h >>conftest.$ac_ext
3582 cat >>conftest.$ac_ext <<_ACEOF
3583 /* end confdefs.h. */
3585 # define __EXTENSIONS__ 1
3586 $ac_includes_default
3595 rm -f conftest.$ac_objext
3596 if { (ac_try="$ac_compile"
3598 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3599 *) ac_try_echo=$ac_try;;
3601 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3602 $as_echo "$ac_try_echo") >&5
3603 (eval "$ac_compile") 2>conftest.er1
3605 grep -v '^ *+' conftest.er1 >conftest.err
3607 cat conftest.err >&5
3608 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3609 (exit $ac_status); } && {
3610 test -z "$ac_c_werror_flag" ||
3611 test ! -s conftest.err
3612 } && test -s conftest.$ac_objext; then
3613 ac_cv_safe_to_define___extensions__=yes
3615 $as_echo "$as_me: failed program was:" >&5
3616 sed 's/^/| /' conftest.$ac_ext >&5
3618 ac_cv_safe_to_define___extensions__=no
3621 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3623 { $as_echo "$as_me:$LINENO: result: $ac_cv_safe_to_define___extensions__" >&5
3624 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
3625 test $ac_cv_safe_to_define___extensions__ = yes &&
3626 cat >>confdefs.h <<\_ACEOF
3627 #define __EXTENSIONS__ 1
3630 cat >>confdefs.h <<\_ACEOF
3631 #define _ALL_SOURCE 1
3634 cat >>confdefs.h <<\_ACEOF
3635 #define _GNU_SOURCE 1
3638 cat >>confdefs.h <<\_ACEOF
3639 #define _POSIX_PTHREAD_SEMANTICS 1
3642 cat >>confdefs.h <<\_ACEOF
3643 #define _TANDEM_SOURCE 1
3647 # AC_USE_SYSTEM_EXTENSIONS
3648 am__api_version="1.9"
3650 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
3651 if test -f "$ac_dir/install-sh"; then
3653 ac_install_sh="$ac_aux_dir/install-sh -c"
3655 elif test -f "$ac_dir/install.sh"; then
3657 ac_install_sh="$ac_aux_dir/install.sh -c"
3659 elif test -f "$ac_dir/shtool"; then
3661 ac_install_sh="$ac_aux_dir/shtool install -c"
3665 if test -z "$ac_aux_dir"; then
3666 { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
3667 $as_echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
3668 { (exit 1); exit 1; }; }
3671 # These three variables are undocumented and unsupported,
3672 # and are intended to be withdrawn in a future Autoconf release.
3673 # They can cause serious problems if a builder's source tree is in a directory
3674 # whose full name contains unusual characters.
3675 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3676 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3677 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3680 # Find a good install program. We prefer a C program (faster),
3681 # so one script is as good as another. But avoid the broken or
3682 # incompatible versions:
3683 # SysV /etc/install, /usr/sbin/install
3684 # SunOS /usr/etc/install
3685 # IRIX /sbin/install
3687 # AmigaOS /C/install, which installs bootblocks on floppy discs
3688 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3689 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3690 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3691 # OS/2's system install, which has a completely different semantic
3692 # ./install, which can be erroneously created by make from ./install.sh.
3693 # Reject install programs that cannot install multiple files.
3694 { $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3695 $as_echo_n "checking for a BSD-compatible install... " >&6; }
3696 if test -z "$INSTALL"; then
3697 if test "${ac_cv_path_install+set}" = set; then
3698 $as_echo_n "(cached) " >&6
3700 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3704 test -z "$as_dir" && as_dir=.
3705 # Account for people who put trailing slashes in PATH elements.
3707 ./ | .// | /cC/* | \
3708 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3709 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3712 # OSF1 and SCO ODT 3.0 have their own names for install.
3713 # Don't use installbsd from OSF since it installs stuff as root
3715 for ac_prog in ginstall scoinst install; do
3716 for ac_exec_ext in '' $ac_executable_extensions; do
3717 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
3718 if test $ac_prog = install &&
3719 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3720 # AIX install. It has an incompatible calling convention.
3722 elif test $ac_prog = install &&
3723 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3724 # program-specific install script used by HP pwplus--don't use.
3727 rm -rf conftest.one conftest.two conftest.dir
3728 echo one > conftest.one
3729 echo two > conftest.two
3731 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3732 test -s conftest.one && test -s conftest.two &&
3733 test -s conftest.dir/conftest.one &&
3734 test -s conftest.dir/conftest.two
3736 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3749 rm -rf conftest.one conftest.two conftest.dir
3752 if test "${ac_cv_path_install+set}" = set; then
3753 INSTALL=$ac_cv_path_install
3755 # As a last resort, use the slow shell script. Don't cache a
3756 # value for INSTALL within a source directory, because that will
3757 # break other packages using the cache if that directory is
3758 # removed, or if the value is a relative name.
3759 INSTALL=$ac_install_sh
3762 { $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
3763 $as_echo "$INSTALL" >&6; }
3765 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3766 # It thinks the first close brace ends the variable substitution.
3767 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3769 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3771 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3773 { $as_echo "$as_me:$LINENO: checking whether build environment is sane" >&5
3774 $as_echo_n "checking whether build environment is sane... " >&6; }
3777 echo timestamp > conftest.file
3778 # Do `set' in a subshell so we don't clobber the current shell's
3779 # arguments. Must try -L first in case configure is actually a
3780 # symlink; some systems play weird games with the mod time of symlinks
3781 # (eg FreeBSD returns the mod time of the symlink's containing
3784 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
3785 if test "$*" = "X"; then
3787 set X `ls -t $srcdir/configure conftest.file`
3790 if test "$*" != "X $srcdir/configure conftest.file" \
3791 && test "$*" != "X conftest.file $srcdir/configure"; then
3793 # If neither matched, then we have a broken ls. This can happen
3794 # if, for instance, CONFIG_SHELL is bash and it inherits a
3795 # broken ls alias from the environment. This has actually
3796 # happened. Such a system could not be considered "sane".
3797 { { $as_echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
3798 alias in your environment" >&5
3799 $as_echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
3800 alias in your environment" >&2;}
3801 { (exit 1); exit 1; }; }
3804 test "$2" = conftest.file
3810 { { $as_echo "$as_me:$LINENO: error: newly created file is older than distributed files!
3811 Check your system clock" >&5
3812 $as_echo "$as_me: error: newly created file is older than distributed files!
3813 Check your system clock" >&2;}
3814 { (exit 1); exit 1; }; }
3816 { $as_echo "$as_me:$LINENO: result: yes" >&5
3817 $as_echo "yes" >&6; }
3818 test "$program_prefix" != NONE &&
3819 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3820 # Use a double $ so make ignores it.
3821 test "$program_suffix" != NONE &&
3822 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3823 # Double any \ or $.
3824 # By default was `s,x,x', remove it if useless.
3825 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3826 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3828 # expand $ac_aux_dir to an absolute path
3829 am_aux_dir=`cd $ac_aux_dir && pwd`
3831 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
3832 # Use eval to expand $SHELL
3833 if eval "$MISSING --run true"; then
3834 am_missing_run="$MISSING --run "
3837 { $as_echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
3838 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
3841 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
3842 # We used to keeping the `.' as first argument, in order to
3843 # allow $(mkdir_p) to be used without argument. As in
3844 # $(mkdir_p) $(somedir)
3845 # where $(somedir) is conditionally defined. However this is wrong
3847 # 1. if the package is installed by a user who cannot write `.'
3848 # make install will fail,
3849 # 2. the above comment should most certainly read
3850 # $(mkdir_p) $(DESTDIR)$(somedir)
3851 # so it does not work when $(somedir) is undefined and
3852 # $(DESTDIR) is not.
3853 # To support the latter case, we have to write
3854 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
3855 # so the `.' trick is pointless.
3856 mkdir_p='mkdir -p --'
3858 # On NextStep and OpenStep, the `mkdir' command does not
3859 # recognize any option. It will interpret all options as
3860 # directories to create, and then abort because `.' already
3862 for d in ./-p ./--version;
3864 test -d $d && rmdir $d
3866 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
3867 if test -f "$ac_aux_dir/mkinstalldirs"; then
3868 mkdir_p='$(mkinstalldirs)'
3870 mkdir_p='$(install_sh) -d'
3874 for ac_prog in gawk mawk nawk awk
3876 # Extract the first word of "$ac_prog", so it can be a program name with args.
3877 set dummy $ac_prog; ac_word=$2
3878 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3879 $as_echo_n "checking for $ac_word... " >&6; }
3880 if test "${ac_cv_prog_AWK+set}" = set; then
3881 $as_echo_n "(cached) " >&6
3883 if test -n "$AWK"; then
3884 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3886 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3890 test -z "$as_dir" && as_dir=.
3891 for ac_exec_ext in '' $ac_executable_extensions; do
3892 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3893 ac_cv_prog_AWK="$ac_prog"
3894 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3904 if test -n "$AWK"; then
3905 { $as_echo "$as_me:$LINENO: result: $AWK" >&5
3906 $as_echo "$AWK" >&6; }
3908 { $as_echo "$as_me:$LINENO: result: no" >&5
3909 $as_echo "no" >&6; }
3913 test -n "$AWK" && break
3916 { $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3917 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3919 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3920 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
3921 $as_echo_n "(cached) " >&6
3923 cat >conftest.make <<\_ACEOF
3926 @echo '@@@%%%=$(MAKE)=@@@%%%'
3928 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3929 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3931 eval ac_cv_prog_make_${ac_make}_set=yes;;
3933 eval ac_cv_prog_make_${ac_make}_set=no;;
3937 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3938 { $as_echo "$as_me:$LINENO: result: yes" >&5
3939 $as_echo "yes" >&6; }
3942 { $as_echo "$as_me:$LINENO: result: no" >&5
3943 $as_echo "no" >&6; }
3944 SET_MAKE="MAKE=${MAKE-make}"
3947 rm -rf .tst 2>/dev/null
3948 mkdir .tst 2>/dev/null
3949 if test -d .tst; then
3954 rmdir .tst 2>/dev/null
3956 DEPDIR="${am__leading_dot}deps"
3958 ac_config_commands="$ac_config_commands depfiles"
3961 am_make=${MAKE-make}
3962 cat > confinc << 'END'
3967 # If we don't find an include directive, just comment out the code.
3968 { $as_echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
3969 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3973 # First try GNU make style include.
3974 echo "include confinc" > confmf
3975 # We grep out `Entering directory' and `Leaving directory'
3976 # messages which can occur if `w' ends up in MAKEFLAGS.
3977 # In particular we don't look at `^make:' because GNU make might
3978 # be invoked under some other name (usually "gmake"), in which
3979 # case it prints its new name instead of `make'.
3980 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
3985 # Now try BSD make style include.
3986 if test "$am__include" = "#"; then
3987 echo '.include "confinc"' > confmf
3988 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
3989 am__include=.include
3996 { $as_echo "$as_me:$LINENO: result: $_am_result" >&5
3997 $as_echo "$_am_result" >&6; }
3998 rm -f confinc confmf
4000 # Check whether --enable-dependency-tracking was given.
4001 if test "${enable_dependency_tracking+set}" = set; then
4002 enableval=$enable_dependency_tracking;
4005 if test "x$enable_dependency_tracking" != xno; then
4006 am_depcomp="$ac_aux_dir/depcomp"
4011 if test "x$enable_dependency_tracking" != xno; then
4021 # test to see if srcdir already configured
4022 if test "`cd $srcdir && pwd`" != "`pwd`" &&
4023 test -f $srcdir/config.status; then
4024 { { $as_echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
4025 $as_echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
4026 { (exit 1); exit 1; }; }
4029 # test whether we have cygpath
4030 if test -z "$CYGPATH_W"; then
4031 if (cygpath --version) >/dev/null 2>/dev/null; then
4032 CYGPATH_W='cygpath -w'
4039 # Define the identity of the package.
4044 cat >>confdefs.h <<_ACEOF
4045 #define PACKAGE "$PACKAGE"
4049 cat >>confdefs.h <<_ACEOF
4050 #define VERSION "$VERSION"
4053 # Some tools Automake needs.
4055 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
4058 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
4061 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
4064 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
4067 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
4069 install_sh=${install_sh-"$am_aux_dir/install-sh"}
4071 # Installed binaries are usually stripped using `strip' when the user
4072 # run `make install-strip'. However `strip' might not be the right
4073 # tool to use in cross-compilation environments, therefore Automake
4074 # will honor the `STRIP' environment variable to overrule this program.
4075 if test "$cross_compiling" != no; then
4076 if test -n "$ac_tool_prefix"; then
4077 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4078 set dummy ${ac_tool_prefix}strip; ac_word=$2
4079 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4080 $as_echo_n "checking for $ac_word... " >&6; }
4081 if test "${ac_cv_prog_STRIP+set}" = set; then
4082 $as_echo_n "(cached) " >&6
4084 if test -n "$STRIP"; then
4085 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4087 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4091 test -z "$as_dir" && as_dir=.
4092 for ac_exec_ext in '' $ac_executable_extensions; do
4093 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4094 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4095 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4104 STRIP=$ac_cv_prog_STRIP
4105 if test -n "$STRIP"; then
4106 { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
4107 $as_echo "$STRIP" >&6; }
4109 { $as_echo "$as_me:$LINENO: result: no" >&5
4110 $as_echo "no" >&6; }
4115 if test -z "$ac_cv_prog_STRIP"; then
4117 # Extract the first word of "strip", so it can be a program name with args.
4118 set dummy strip; ac_word=$2
4119 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4120 $as_echo_n "checking for $ac_word... " >&6; }
4121 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
4122 $as_echo_n "(cached) " >&6
4124 if test -n "$ac_ct_STRIP"; then
4125 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4127 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4131 test -z "$as_dir" && as_dir=.
4132 for ac_exec_ext in '' $ac_executable_extensions; do
4133 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4134 ac_cv_prog_ac_ct_STRIP="strip"
4135 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4144 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4145 if test -n "$ac_ct_STRIP"; then
4146 { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
4147 $as_echo "$ac_ct_STRIP" >&6; }
4149 { $as_echo "$as_me:$LINENO: result: no" >&5
4150 $as_echo "no" >&6; }
4153 if test "x$ac_ct_STRIP" = x; then
4156 case $cross_compiling:$ac_tool_warned in
4158 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
4159 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4160 ac_tool_warned=yes ;;
4165 STRIP="$ac_cv_prog_STRIP"
4169 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
4171 # We need awk for the "check" target. The system "awk" is bad on
4173 # Always define AMTAR for backward compatibility.
4175 AMTAR=${AMTAR-"${am_missing_run}tar"}
4177 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
4182 depcc="$CC" am_compiler_list=
4184 { $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
4185 $as_echo_n "checking dependency style of $depcc... " >&6; }
4186 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
4187 $as_echo_n "(cached) " >&6
4189 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4190 # We make a subdir and do the tests there. Otherwise we can end up
4191 # making bogus files that we don't know about and never remove. For
4192 # instance it was reported that on HP-UX the gcc test will end up
4193 # making a dummy file named `D' -- because `-MD' means `put the output
4196 # Copy depcomp to subdir because otherwise we won't find it if we're
4197 # using a relative directory.
4198 cp "$am_depcomp" conftest.dir
4200 # We will build objects and dependencies in a subdirectory because
4201 # it helps to detect inapplicable dependency modes. For instance
4202 # both Tru64's cc and ICC support -MD to output dependencies as a
4203 # side effect of compilation, but ICC will put the dependencies in
4204 # the current directory while Tru64 will put them in the object
4208 am_cv_CC_dependencies_compiler_type=none
4209 if test "$am_compiler_list" = ""; then
4210 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4212 for depmode in $am_compiler_list; do
4213 # Setup a source with many dependencies, because some compilers
4214 # like to wrap large dependency lists on column 80 (with \), and
4215 # we should not choose a depcomp mode which is confused by this.
4217 # We need to recreate these files for each test, as the compiler may
4218 # overwrite some of them when testing with obscure command lines.
4219 # This happens at least with the AIX C compiler.
4221 for i in 1 2 3 4 5 6; do
4222 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4223 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4224 # Solaris 8's {/usr,}/bin/sh.
4225 touch sub/conftst$i.h
4227 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4231 # after this tag, mechanisms are not by side-effect, so they'll
4232 # only be used when explicitly requested
4233 if test "x$enable_dependency_tracking" = xyes; then
4241 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4242 # mode. It turns out that the SunPro C++ compiler does not properly
4243 # handle `-M -o', and we need to detect this.
4244 if depmode=$depmode \
4245 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
4246 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4247 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
4248 >/dev/null 2>conftest.err &&
4249 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4250 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
4251 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4252 # icc doesn't choke on unknown options, it will just issue warnings
4253 # or remarks (even with -Werror). So we grep stderr for any message
4254 # that says an option was ignored or not supported.
4255 # When given -MP, icc 7.0 and 7.1 complain thusly:
4256 # icc: Command line warning: ignoring option '-M'; no argument required
4257 # The diagnosis changed in icc 8.0:
4258 # icc: Command line remark: option '-MP' not supported
4259 if (grep 'ignoring option' conftest.err ||
4260 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4261 am_cv_CC_dependencies_compiler_type=$depmode
4270 am_cv_CC_dependencies_compiler_type=none
4274 { $as_echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
4275 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4276 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4281 test "x$enable_dependency_tracking" != xno \
4282 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4284 am__fastdepCC_FALSE='#'
4286 am__fastdepCC_TRUE='#'
4287 am__fastdepCC_FALSE=
4295 # Checks for programs.
4297 ac_cpp='$CPP $CPPFLAGS'
4298 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4299 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4300 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4301 { $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4302 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4303 # On Suns, sometimes $CPP names a directory.
4304 if test -n "$CPP" && test -d "$CPP"; then
4307 if test -z "$CPP"; then
4308 if test "${ac_cv_prog_CPP+set}" = set; then
4309 $as_echo_n "(cached) " >&6
4311 # Double quotes because CPP needs to be expanded
4312 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4315 for ac_c_preproc_warn_flag in '' yes
4317 # Use a header file that comes with gcc, so configuring glibc
4318 # with a fresh cross-compiler works.
4319 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4320 # <limits.h> exists even on freestanding compilers.
4321 # On the NeXT, cc -E runs the code through the compiler's parser,
4322 # not just through cpp. "Syntax error" is here to catch this case.
4323 cat >conftest.$ac_ext <<_ACEOF
4326 cat confdefs.h >>conftest.$ac_ext
4327 cat >>conftest.$ac_ext <<_ACEOF
4328 /* end confdefs.h. */
4330 # include <limits.h>
4332 # include <assert.h>
4336 if { (ac_try="$ac_cpp conftest.$ac_ext"
4338 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4339 *) ac_try_echo=$ac_try;;
4341 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4342 $as_echo "$ac_try_echo") >&5
4343 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4345 grep -v '^ *+' conftest.er1 >conftest.err
4347 cat conftest.err >&5
4348 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4349 (exit $ac_status); } >/dev/null && {
4350 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4351 test ! -s conftest.err
4355 $as_echo "$as_me: failed program was:" >&5
4356 sed 's/^/| /' conftest.$ac_ext >&5
4358 # Broken: fails on valid input.
4362 rm -f conftest.err conftest.$ac_ext
4364 # OK, works on sane cases. Now check whether nonexistent headers
4365 # can be detected and how.
4366 cat >conftest.$ac_ext <<_ACEOF
4369 cat confdefs.h >>conftest.$ac_ext
4370 cat >>conftest.$ac_ext <<_ACEOF
4371 /* end confdefs.h. */
4372 #include <ac_nonexistent.h>
4374 if { (ac_try="$ac_cpp conftest.$ac_ext"
4376 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4377 *) ac_try_echo=$ac_try;;
4379 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4380 $as_echo "$ac_try_echo") >&5
4381 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4383 grep -v '^ *+' conftest.er1 >conftest.err
4385 cat conftest.err >&5
4386 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4387 (exit $ac_status); } >/dev/null && {
4388 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4389 test ! -s conftest.err
4391 # Broken: success on invalid input.
4394 $as_echo "$as_me: failed program was:" >&5
4395 sed 's/^/| /' conftest.$ac_ext >&5
4397 # Passes both tests.
4402 rm -f conftest.err conftest.$ac_ext
4405 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4406 rm -f conftest.err conftest.$ac_ext
4407 if $ac_preproc_ok; then
4419 { $as_echo "$as_me:$LINENO: result: $CPP" >&5
4420 $as_echo "$CPP" >&6; }
4422 for ac_c_preproc_warn_flag in '' yes
4424 # Use a header file that comes with gcc, so configuring glibc
4425 # with a fresh cross-compiler works.
4426 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4427 # <limits.h> exists even on freestanding compilers.
4428 # On the NeXT, cc -E runs the code through the compiler's parser,
4429 # not just through cpp. "Syntax error" is here to catch this case.
4430 cat >conftest.$ac_ext <<_ACEOF
4433 cat confdefs.h >>conftest.$ac_ext
4434 cat >>conftest.$ac_ext <<_ACEOF
4435 /* end confdefs.h. */
4437 # include <limits.h>
4439 # include <assert.h>
4443 if { (ac_try="$ac_cpp conftest.$ac_ext"
4445 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4446 *) ac_try_echo=$ac_try;;
4448 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4449 $as_echo "$ac_try_echo") >&5
4450 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4452 grep -v '^ *+' conftest.er1 >conftest.err
4454 cat conftest.err >&5
4455 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4456 (exit $ac_status); } >/dev/null && {
4457 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4458 test ! -s conftest.err
4462 $as_echo "$as_me: failed program was:" >&5
4463 sed 's/^/| /' conftest.$ac_ext >&5
4465 # Broken: fails on valid input.
4469 rm -f conftest.err conftest.$ac_ext
4471 # OK, works on sane cases. Now check whether nonexistent headers
4472 # can be detected and how.
4473 cat >conftest.$ac_ext <<_ACEOF
4476 cat confdefs.h >>conftest.$ac_ext
4477 cat >>conftest.$ac_ext <<_ACEOF
4478 /* end confdefs.h. */
4479 #include <ac_nonexistent.h>
4481 if { (ac_try="$ac_cpp conftest.$ac_ext"
4483 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4484 *) ac_try_echo=$ac_try;;
4486 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4487 $as_echo "$ac_try_echo") >&5
4488 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4490 grep -v '^ *+' conftest.er1 >conftest.err
4492 cat conftest.err >&5
4493 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4494 (exit $ac_status); } >/dev/null && {
4495 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4496 test ! -s conftest.err
4498 # Broken: success on invalid input.
4501 $as_echo "$as_me: failed program was:" >&5
4502 sed 's/^/| /' conftest.$ac_ext >&5
4504 # Passes both tests.
4509 rm -f conftest.err conftest.$ac_ext
4512 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4513 rm -f conftest.err conftest.$ac_ext
4514 if $ac_preproc_ok; then
4517 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
4518 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4519 { { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4520 See \`config.log' for more details." >&5
4521 $as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4522 See \`config.log' for more details." >&2;}
4523 { (exit 1); exit 1; }; }; }
4527 ac_cpp='$CPP $CPPFLAGS'
4528 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4529 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4530 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4533 ac_cpp='$CXXCPP $CPPFLAGS'
4534 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4535 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4536 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4537 if test -z "$CXX"; then
4538 if test -n "$CCC"; then
4541 if test -n "$ac_tool_prefix"; then
4542 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4544 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4545 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4546 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4547 $as_echo_n "checking for $ac_word... " >&6; }
4548 if test "${ac_cv_prog_CXX+set}" = set; then
4549 $as_echo_n "(cached) " >&6
4551 if test -n "$CXX"; then
4552 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4554 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4558 test -z "$as_dir" && as_dir=.
4559 for ac_exec_ext in '' $ac_executable_extensions; do
4560 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4561 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4562 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4572 if test -n "$CXX"; then
4573 { $as_echo "$as_me:$LINENO: result: $CXX" >&5
4574 $as_echo "$CXX" >&6; }
4576 { $as_echo "$as_me:$LINENO: result: no" >&5
4577 $as_echo "no" >&6; }
4581 test -n "$CXX" && break
4584 if test -z "$CXX"; then
4586 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4588 # Extract the first word of "$ac_prog", so it can be a program name with args.
4589 set dummy $ac_prog; ac_word=$2
4590 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4591 $as_echo_n "checking for $ac_word... " >&6; }
4592 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
4593 $as_echo_n "(cached) " >&6
4595 if test -n "$ac_ct_CXX"; then
4596 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4598 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4602 test -z "$as_dir" && as_dir=.
4603 for ac_exec_ext in '' $ac_executable_extensions; do
4604 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4605 ac_cv_prog_ac_ct_CXX="$ac_prog"
4606 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4615 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4616 if test -n "$ac_ct_CXX"; then
4617 { $as_echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
4618 $as_echo "$ac_ct_CXX" >&6; }
4620 { $as_echo "$as_me:$LINENO: result: no" >&5
4621 $as_echo "no" >&6; }
4625 test -n "$ac_ct_CXX" && break
4628 if test "x$ac_ct_CXX" = x; then
4631 case $cross_compiling:$ac_tool_warned in
4633 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
4634 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4635 ac_tool_warned=yes ;;
4643 # Provide some information about the compiler.
4644 $as_echo "$as_me:$LINENO: checking for C++ compiler version" >&5
4647 { (ac_try="$ac_compiler --version >&5"
4649 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4650 *) ac_try_echo=$ac_try;;
4652 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4653 $as_echo "$ac_try_echo") >&5
4654 (eval "$ac_compiler --version >&5") 2>&5
4656 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4657 (exit $ac_status); }
4658 { (ac_try="$ac_compiler -v >&5"
4660 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4661 *) ac_try_echo=$ac_try;;
4663 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4664 $as_echo "$ac_try_echo") >&5
4665 (eval "$ac_compiler -v >&5") 2>&5
4667 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4668 (exit $ac_status); }
4669 { (ac_try="$ac_compiler -V >&5"
4671 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4672 *) ac_try_echo=$ac_try;;
4674 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4675 $as_echo "$ac_try_echo") >&5
4676 (eval "$ac_compiler -V >&5") 2>&5
4678 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4679 (exit $ac_status); }
4681 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
4682 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4683 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
4684 $as_echo_n "(cached) " >&6
4686 cat >conftest.$ac_ext <<_ACEOF
4689 cat confdefs.h >>conftest.$ac_ext
4690 cat >>conftest.$ac_ext <<_ACEOF
4691 /* end confdefs.h. */
4704 rm -f conftest.$ac_objext
4705 if { (ac_try="$ac_compile"
4707 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4708 *) ac_try_echo=$ac_try;;
4710 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4711 $as_echo "$ac_try_echo") >&5
4712 (eval "$ac_compile") 2>conftest.er1
4714 grep -v '^ *+' conftest.er1 >conftest.err
4716 cat conftest.err >&5
4717 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4718 (exit $ac_status); } && {
4719 test -z "$ac_cxx_werror_flag" ||
4720 test ! -s conftest.err
4721 } && test -s conftest.$ac_objext; then
4724 $as_echo "$as_me: failed program was:" >&5
4725 sed 's/^/| /' conftest.$ac_ext >&5
4730 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4731 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4734 { $as_echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
4735 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4736 if test $ac_compiler_gnu = yes; then
4741 ac_test_CXXFLAGS=${CXXFLAGS+set}
4742 ac_save_CXXFLAGS=$CXXFLAGS
4743 { $as_echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
4744 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4745 if test "${ac_cv_prog_cxx_g+set}" = set; then
4746 $as_echo_n "(cached) " >&6
4748 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4749 ac_cxx_werror_flag=yes
4752 cat >conftest.$ac_ext <<_ACEOF
4755 cat confdefs.h >>conftest.$ac_ext
4756 cat >>conftest.$ac_ext <<_ACEOF
4757 /* end confdefs.h. */
4767 rm -f conftest.$ac_objext
4768 if { (ac_try="$ac_compile"
4770 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4771 *) ac_try_echo=$ac_try;;
4773 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4774 $as_echo "$ac_try_echo") >&5
4775 (eval "$ac_compile") 2>conftest.er1
4777 grep -v '^ *+' conftest.er1 >conftest.err
4779 cat conftest.err >&5
4780 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4781 (exit $ac_status); } && {
4782 test -z "$ac_cxx_werror_flag" ||
4783 test ! -s conftest.err
4784 } && test -s conftest.$ac_objext; then
4785 ac_cv_prog_cxx_g=yes
4787 $as_echo "$as_me: failed program was:" >&5
4788 sed 's/^/| /' conftest.$ac_ext >&5
4791 cat >conftest.$ac_ext <<_ACEOF
4794 cat confdefs.h >>conftest.$ac_ext
4795 cat >>conftest.$ac_ext <<_ACEOF
4796 /* end confdefs.h. */
4806 rm -f conftest.$ac_objext
4807 if { (ac_try="$ac_compile"
4809 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4810 *) ac_try_echo=$ac_try;;
4812 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4813 $as_echo "$ac_try_echo") >&5
4814 (eval "$ac_compile") 2>conftest.er1
4816 grep -v '^ *+' conftest.er1 >conftest.err
4818 cat conftest.err >&5
4819 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4820 (exit $ac_status); } && {
4821 test -z "$ac_cxx_werror_flag" ||
4822 test ! -s conftest.err
4823 } && test -s conftest.$ac_objext; then
4826 $as_echo "$as_me: failed program was:" >&5
4827 sed 's/^/| /' conftest.$ac_ext >&5
4829 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4831 cat >conftest.$ac_ext <<_ACEOF
4834 cat confdefs.h >>conftest.$ac_ext
4835 cat >>conftest.$ac_ext <<_ACEOF
4836 /* end confdefs.h. */
4846 rm -f conftest.$ac_objext
4847 if { (ac_try="$ac_compile"
4849 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4850 *) ac_try_echo=$ac_try;;
4852 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4853 $as_echo "$ac_try_echo") >&5
4854 (eval "$ac_compile") 2>conftest.er1
4856 grep -v '^ *+' conftest.er1 >conftest.err
4858 cat conftest.err >&5
4859 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4860 (exit $ac_status); } && {
4861 test -z "$ac_cxx_werror_flag" ||
4862 test ! -s conftest.err
4863 } && test -s conftest.$ac_objext; then
4864 ac_cv_prog_cxx_g=yes
4866 $as_echo "$as_me: failed program was:" >&5
4867 sed 's/^/| /' conftest.$ac_ext >&5
4872 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4875 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4878 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4879 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4881 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
4882 $as_echo "$ac_cv_prog_cxx_g" >&6; }
4883 if test "$ac_test_CXXFLAGS" = set; then
4884 CXXFLAGS=$ac_save_CXXFLAGS
4885 elif test $ac_cv_prog_cxx_g = yes; then
4886 if test "$GXX" = yes; then
4892 if test "$GXX" = yes; then
4899 ac_cpp='$CPP $CPPFLAGS'
4900 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4901 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4902 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4904 depcc="$CXX" am_compiler_list=
4906 { $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
4907 $as_echo_n "checking dependency style of $depcc... " >&6; }
4908 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
4909 $as_echo_n "(cached) " >&6
4911 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4912 # We make a subdir and do the tests there. Otherwise we can end up
4913 # making bogus files that we don't know about and never remove. For
4914 # instance it was reported that on HP-UX the gcc test will end up
4915 # making a dummy file named `D' -- because `-MD' means `put the output
4918 # Copy depcomp to subdir because otherwise we won't find it if we're
4919 # using a relative directory.
4920 cp "$am_depcomp" conftest.dir
4922 # We will build objects and dependencies in a subdirectory because
4923 # it helps to detect inapplicable dependency modes. For instance
4924 # both Tru64's cc and ICC support -MD to output dependencies as a
4925 # side effect of compilation, but ICC will put the dependencies in
4926 # the current directory while Tru64 will put them in the object
4930 am_cv_CXX_dependencies_compiler_type=none
4931 if test "$am_compiler_list" = ""; then
4932 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4934 for depmode in $am_compiler_list; do
4935 # Setup a source with many dependencies, because some compilers
4936 # like to wrap large dependency lists on column 80 (with \), and
4937 # we should not choose a depcomp mode which is confused by this.
4939 # We need to recreate these files for each test, as the compiler may
4940 # overwrite some of them when testing with obscure command lines.
4941 # This happens at least with the AIX C compiler.
4943 for i in 1 2 3 4 5 6; do
4944 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4945 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4946 # Solaris 8's {/usr,}/bin/sh.
4947 touch sub/conftst$i.h
4949 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4953 # after this tag, mechanisms are not by side-effect, so they'll
4954 # only be used when explicitly requested
4955 if test "x$enable_dependency_tracking" = xyes; then
4963 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4964 # mode. It turns out that the SunPro C++ compiler does not properly
4965 # handle `-M -o', and we need to detect this.
4966 if depmode=$depmode \
4967 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
4968 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4969 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
4970 >/dev/null 2>conftest.err &&
4971 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4972 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
4973 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4974 # icc doesn't choke on unknown options, it will just issue warnings
4975 # or remarks (even with -Werror). So we grep stderr for any message
4976 # that says an option was ignored or not supported.
4977 # When given -MP, icc 7.0 and 7.1 complain thusly:
4978 # icc: Command line warning: ignoring option '-M'; no argument required
4979 # The diagnosis changed in icc 8.0:
4980 # icc: Command line remark: option '-MP' not supported
4981 if (grep 'ignoring option' conftest.err ||
4982 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4983 am_cv_CXX_dependencies_compiler_type=$depmode
4992 am_cv_CXX_dependencies_compiler_type=none
4996 { $as_echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
4997 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
4998 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
5003 test "x$enable_dependency_tracking" != xno \
5004 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
5005 am__fastdepCXX_TRUE=
5006 am__fastdepCXX_FALSE='#'
5008 am__fastdepCXX_TRUE='#'
5009 am__fastdepCXX_FALSE=
5014 ac_cpp='$CPP $CPPFLAGS'
5015 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5016 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5017 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5018 if test -n "$ac_tool_prefix"; then
5019 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
5020 set dummy ${ac_tool_prefix}gcc; ac_word=$2
5021 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5022 $as_echo_n "checking for $ac_word... " >&6; }
5023 if test "${ac_cv_prog_CC+set}" = set; then
5024 $as_echo_n "(cached) " >&6
5026 if test -n "$CC"; then
5027 ac_cv_prog_CC="$CC" # Let the user override the test.
5029 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5033 test -z "$as_dir" && as_dir=.
5034 for ac_exec_ext in '' $ac_executable_extensions; do
5035 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5036 ac_cv_prog_CC="${ac_tool_prefix}gcc"
5037 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5047 if test -n "$CC"; then
5048 { $as_echo "$as_me:$LINENO: result: $CC" >&5
5049 $as_echo "$CC" >&6; }
5051 { $as_echo "$as_me:$LINENO: result: no" >&5
5052 $as_echo "no" >&6; }
5057 if test -z "$ac_cv_prog_CC"; then
5059 # Extract the first word of "gcc", so it can be a program name with args.
5060 set dummy gcc; ac_word=$2
5061 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5062 $as_echo_n "checking for $ac_word... " >&6; }
5063 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
5064 $as_echo_n "(cached) " >&6
5066 if test -n "$ac_ct_CC"; then
5067 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5069 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5073 test -z "$as_dir" && as_dir=.
5074 for ac_exec_ext in '' $ac_executable_extensions; do
5075 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5076 ac_cv_prog_ac_ct_CC="gcc"
5077 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5086 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5087 if test -n "$ac_ct_CC"; then
5088 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
5089 $as_echo "$ac_ct_CC" >&6; }
5091 { $as_echo "$as_me:$LINENO: result: no" >&5
5092 $as_echo "no" >&6; }
5095 if test "x$ac_ct_CC" = x; then
5098 case $cross_compiling:$ac_tool_warned in
5100 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
5101 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5102 ac_tool_warned=yes ;;
5110 if test -z "$CC"; then
5111 if test -n "$ac_tool_prefix"; then
5112 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
5113 set dummy ${ac_tool_prefix}cc; ac_word=$2
5114 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5115 $as_echo_n "checking for $ac_word... " >&6; }
5116 if test "${ac_cv_prog_CC+set}" = set; then
5117 $as_echo_n "(cached) " >&6
5119 if test -n "$CC"; then
5120 ac_cv_prog_CC="$CC" # Let the user override the test.
5122 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5126 test -z "$as_dir" && as_dir=.
5127 for ac_exec_ext in '' $ac_executable_extensions; do
5128 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5129 ac_cv_prog_CC="${ac_tool_prefix}cc"
5130 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5140 if test -n "$CC"; then
5141 { $as_echo "$as_me:$LINENO: result: $CC" >&5
5142 $as_echo "$CC" >&6; }
5144 { $as_echo "$as_me:$LINENO: result: no" >&5
5145 $as_echo "no" >&6; }
5151 if test -z "$CC"; then
5152 # Extract the first word of "cc", so it can be a program name with args.
5153 set dummy cc; ac_word=$2
5154 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5155 $as_echo_n "checking for $ac_word... " >&6; }
5156 if test "${ac_cv_prog_CC+set}" = set; then
5157 $as_echo_n "(cached) " >&6
5159 if test -n "$CC"; then
5160 ac_cv_prog_CC="$CC" # Let the user override the test.
5163 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5167 test -z "$as_dir" && as_dir=.
5168 for ac_exec_ext in '' $ac_executable_extensions; do
5169 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5170 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
5171 ac_prog_rejected=yes
5175 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5182 if test $ac_prog_rejected = yes; then
5183 # We found a bogon in the path, so make sure we never use it.
5184 set dummy $ac_cv_prog_CC
5186 if test $# != 0; then
5187 # We chose a different compiler from the bogus one.
5188 # However, it has the same basename, so the bogon will be chosen
5189 # first if we set CC to just the basename; use the full file name.
5191 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
5197 if test -n "$CC"; then
5198 { $as_echo "$as_me:$LINENO: result: $CC" >&5
5199 $as_echo "$CC" >&6; }
5201 { $as_echo "$as_me:$LINENO: result: no" >&5
5202 $as_echo "no" >&6; }
5207 if test -z "$CC"; then
5208 if test -n "$ac_tool_prefix"; then
5209 for ac_prog in cl.exe
5211 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5212 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5213 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5214 $as_echo_n "checking for $ac_word... " >&6; }
5215 if test "${ac_cv_prog_CC+set}" = set; then
5216 $as_echo_n "(cached) " >&6
5218 if test -n "$CC"; then
5219 ac_cv_prog_CC="$CC" # Let the user override the test.
5221 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5225 test -z "$as_dir" && as_dir=.
5226 for ac_exec_ext in '' $ac_executable_extensions; do
5227 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5228 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5229 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5239 if test -n "$CC"; then
5240 { $as_echo "$as_me:$LINENO: result: $CC" >&5
5241 $as_echo "$CC" >&6; }
5243 { $as_echo "$as_me:$LINENO: result: no" >&5
5244 $as_echo "no" >&6; }
5248 test -n "$CC" && break
5251 if test -z "$CC"; then
5253 for ac_prog in cl.exe
5255 # Extract the first word of "$ac_prog", so it can be a program name with args.
5256 set dummy $ac_prog; ac_word=$2
5257 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5258 $as_echo_n "checking for $ac_word... " >&6; }
5259 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
5260 $as_echo_n "(cached) " >&6
5262 if test -n "$ac_ct_CC"; then
5263 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5265 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5269 test -z "$as_dir" && as_dir=.
5270 for ac_exec_ext in '' $ac_executable_extensions; do
5271 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5272 ac_cv_prog_ac_ct_CC="$ac_prog"
5273 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5282 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5283 if test -n "$ac_ct_CC"; then
5284 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
5285 $as_echo "$ac_ct_CC" >&6; }
5287 { $as_echo "$as_me:$LINENO: result: no" >&5
5288 $as_echo "no" >&6; }
5292 test -n "$ac_ct_CC" && break
5295 if test "x$ac_ct_CC" = x; then
5298 case $cross_compiling:$ac_tool_warned in
5300 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
5301 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5302 ac_tool_warned=yes ;;
5311 test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
5312 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5313 { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
5314 See \`config.log' for more details." >&5
5315 $as_echo "$as_me: error: no acceptable C compiler found in \$PATH
5316 See \`config.log' for more details." >&2;}
5317 { (exit 1); exit 1; }; }; }
5319 # Provide some information about the compiler.
5320 $as_echo "$as_me:$LINENO: checking for C compiler version" >&5
5323 { (ac_try="$ac_compiler --version >&5"
5325 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5326 *) ac_try_echo=$ac_try;;
5328 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5329 $as_echo "$ac_try_echo") >&5
5330 (eval "$ac_compiler --version >&5") 2>&5
5332 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5333 (exit $ac_status); }
5334 { (ac_try="$ac_compiler -v >&5"
5336 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5337 *) ac_try_echo=$ac_try;;
5339 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5340 $as_echo "$ac_try_echo") >&5
5341 (eval "$ac_compiler -v >&5") 2>&5
5343 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5344 (exit $ac_status); }
5345 { (ac_try="$ac_compiler -V >&5"
5347 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5348 *) ac_try_echo=$ac_try;;
5350 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5351 $as_echo "$ac_try_echo") >&5
5352 (eval "$ac_compiler -V >&5") 2>&5
5354 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5355 (exit $ac_status); }
5357 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
5358 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
5359 if test "${ac_cv_c_compiler_gnu+set}" = set; then
5360 $as_echo_n "(cached) " >&6
5362 cat >conftest.$ac_ext <<_ACEOF
5365 cat confdefs.h >>conftest.$ac_ext
5366 cat >>conftest.$ac_ext <<_ACEOF
5367 /* end confdefs.h. */
5380 rm -f conftest.$ac_objext
5381 if { (ac_try="$ac_compile"
5383 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5384 *) ac_try_echo=$ac_try;;
5386 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5387 $as_echo "$ac_try_echo") >&5
5388 (eval "$ac_compile") 2>conftest.er1
5390 grep -v '^ *+' conftest.er1 >conftest.err
5392 cat conftest.err >&5
5393 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5394 (exit $ac_status); } && {
5395 test -z "$ac_c_werror_flag" ||
5396 test ! -s conftest.err
5397 } && test -s conftest.$ac_objext; then
5400 $as_echo "$as_me: failed program was:" >&5
5401 sed 's/^/| /' conftest.$ac_ext >&5
5406 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5407 ac_cv_c_compiler_gnu=$ac_compiler_gnu
5410 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
5411 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
5412 if test $ac_compiler_gnu = yes; then
5417 ac_test_CFLAGS=${CFLAGS+set}
5418 ac_save_CFLAGS=$CFLAGS
5419 { $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
5420 $as_echo_n "checking whether $CC accepts -g... " >&6; }
5421 if test "${ac_cv_prog_cc_g+set}" = set; then
5422 $as_echo_n "(cached) " >&6
5424 ac_save_c_werror_flag=$ac_c_werror_flag
5425 ac_c_werror_flag=yes
5428 cat >conftest.$ac_ext <<_ACEOF
5431 cat confdefs.h >>conftest.$ac_ext
5432 cat >>conftest.$ac_ext <<_ACEOF
5433 /* end confdefs.h. */
5443 rm -f conftest.$ac_objext
5444 if { (ac_try="$ac_compile"
5446 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5447 *) ac_try_echo=$ac_try;;
5449 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5450 $as_echo "$ac_try_echo") >&5
5451 (eval "$ac_compile") 2>conftest.er1
5453 grep -v '^ *+' conftest.er1 >conftest.err
5455 cat conftest.err >&5
5456 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5457 (exit $ac_status); } && {
5458 test -z "$ac_c_werror_flag" ||
5459 test ! -s conftest.err
5460 } && test -s conftest.$ac_objext; then
5463 $as_echo "$as_me: failed program was:" >&5
5464 sed 's/^/| /' conftest.$ac_ext >&5
5467 cat >conftest.$ac_ext <<_ACEOF
5470 cat confdefs.h >>conftest.$ac_ext
5471 cat >>conftest.$ac_ext <<_ACEOF
5472 /* end confdefs.h. */
5482 rm -f conftest.$ac_objext
5483 if { (ac_try="$ac_compile"
5485 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5486 *) ac_try_echo=$ac_try;;
5488 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5489 $as_echo "$ac_try_echo") >&5
5490 (eval "$ac_compile") 2>conftest.er1
5492 grep -v '^ *+' conftest.er1 >conftest.err
5494 cat conftest.err >&5
5495 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5496 (exit $ac_status); } && {
5497 test -z "$ac_c_werror_flag" ||
5498 test ! -s conftest.err
5499 } && test -s conftest.$ac_objext; then
5502 $as_echo "$as_me: failed program was:" >&5
5503 sed 's/^/| /' conftest.$ac_ext >&5
5505 ac_c_werror_flag=$ac_save_c_werror_flag
5507 cat >conftest.$ac_ext <<_ACEOF
5510 cat confdefs.h >>conftest.$ac_ext
5511 cat >>conftest.$ac_ext <<_ACEOF
5512 /* end confdefs.h. */
5522 rm -f conftest.$ac_objext
5523 if { (ac_try="$ac_compile"
5525 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5526 *) ac_try_echo=$ac_try;;
5528 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5529 $as_echo "$ac_try_echo") >&5
5530 (eval "$ac_compile") 2>conftest.er1
5532 grep -v '^ *+' conftest.er1 >conftest.err
5534 cat conftest.err >&5
5535 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5536 (exit $ac_status); } && {
5537 test -z "$ac_c_werror_flag" ||
5538 test ! -s conftest.err
5539 } && test -s conftest.$ac_objext; then
5542 $as_echo "$as_me: failed program was:" >&5
5543 sed 's/^/| /' conftest.$ac_ext >&5
5548 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5551 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5554 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5555 ac_c_werror_flag=$ac_save_c_werror_flag
5557 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
5558 $as_echo "$ac_cv_prog_cc_g" >&6; }
5559 if test "$ac_test_CFLAGS" = set; then
5560 CFLAGS=$ac_save_CFLAGS
5561 elif test $ac_cv_prog_cc_g = yes; then
5562 if test "$GCC" = yes; then
5568 if test "$GCC" = yes; then
5574 { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
5575 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
5576 if test "${ac_cv_prog_cc_c89+set}" = set; then
5577 $as_echo_n "(cached) " >&6
5579 ac_cv_prog_cc_c89=no
5581 cat >conftest.$ac_ext <<_ACEOF
5584 cat confdefs.h >>conftest.$ac_ext
5585 cat >>conftest.$ac_ext <<_ACEOF
5586 /* end confdefs.h. */
5589 #include <sys/types.h>
5590 #include <sys/stat.h>
5591 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5592 struct buf { int x; };
5593 FILE * (*rcsopen) (struct buf *, struct stat *, int);
5594 static char *e (p, i)
5600 static char *f (char * (*g) (char **, int), char **p, ...)
5605 s = g (p, va_arg (v,int));
5610 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5611 function prototypes and stuff, but not '\xHH' hex character constants.
5612 These don't provoke an error unfortunately, instead are silently treated
5613 as 'x'. The following induces an error, until -std is added to get
5614 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5615 array size at least. It's necessary to write '\x00'==0 to get something
5616 that's true only with -std. */
5617 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5619 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5620 inside strings and character constants. */
5622 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5624 int test (int i, double x);
5625 struct s1 {int (*f) (int a);};
5626 struct s2 {int (*f) (double a);};
5627 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5633 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5638 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5639 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5641 CC="$ac_save_CC $ac_arg"
5642 rm -f conftest.$ac_objext
5643 if { (ac_try="$ac_compile"
5645 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5646 *) ac_try_echo=$ac_try;;
5648 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5649 $as_echo "$ac_try_echo") >&5
5650 (eval "$ac_compile") 2>conftest.er1
5652 grep -v '^ *+' conftest.er1 >conftest.err
5654 cat conftest.err >&5
5655 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5656 (exit $ac_status); } && {
5657 test -z "$ac_c_werror_flag" ||
5658 test ! -s conftest.err
5659 } && test -s conftest.$ac_objext; then
5660 ac_cv_prog_cc_c89=$ac_arg
5662 $as_echo "$as_me: failed program was:" >&5
5663 sed 's/^/| /' conftest.$ac_ext >&5
5668 rm -f core conftest.err conftest.$ac_objext
5669 test "x$ac_cv_prog_cc_c89" != "xno" && break
5671 rm -f conftest.$ac_ext
5676 case "x$ac_cv_prog_cc_c89" in
5678 { $as_echo "$as_me:$LINENO: result: none needed" >&5
5679 $as_echo "none needed" >&6; } ;;
5681 { $as_echo "$as_me:$LINENO: result: unsupported" >&5
5682 $as_echo "unsupported" >&6; } ;;
5684 CC="$CC $ac_cv_prog_cc_c89"
5685 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
5686 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5691 ac_cpp='$CPP $CPPFLAGS'
5692 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5693 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5694 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5696 # Find a good install program. We prefer a C program (faster),
5697 # so one script is as good as another. But avoid the broken or
5698 # incompatible versions:
5699 # SysV /etc/install, /usr/sbin/install
5700 # SunOS /usr/etc/install
5701 # IRIX /sbin/install
5703 # AmigaOS /C/install, which installs bootblocks on floppy discs
5704 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
5705 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
5706 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
5707 # OS/2's system install, which has a completely different semantic
5708 # ./install, which can be erroneously created by make from ./install.sh.
5709 # Reject install programs that cannot install multiple files.
5710 { $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
5711 $as_echo_n "checking for a BSD-compatible install... " >&6; }
5712 if test -z "$INSTALL"; then
5713 if test "${ac_cv_path_install+set}" = set; then
5714 $as_echo_n "(cached) " >&6
5716 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5720 test -z "$as_dir" && as_dir=.
5721 # Account for people who put trailing slashes in PATH elements.
5723 ./ | .// | /cC/* | \
5724 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
5725 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
5728 # OSF1 and SCO ODT 3.0 have their own names for install.
5729 # Don't use installbsd from OSF since it installs stuff as root
5731 for ac_prog in ginstall scoinst install; do
5732 for ac_exec_ext in '' $ac_executable_extensions; do
5733 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
5734 if test $ac_prog = install &&
5735 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5736 # AIX install. It has an incompatible calling convention.
5738 elif test $ac_prog = install &&
5739 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5740 # program-specific install script used by HP pwplus--don't use.
5743 rm -rf conftest.one conftest.two conftest.dir
5744 echo one > conftest.one
5745 echo two > conftest.two
5747 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
5748 test -s conftest.one && test -s conftest.two &&
5749 test -s conftest.dir/conftest.one &&
5750 test -s conftest.dir/conftest.two
5752 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
5765 rm -rf conftest.one conftest.two conftest.dir
5768 if test "${ac_cv_path_install+set}" = set; then
5769 INSTALL=$ac_cv_path_install
5771 # As a last resort, use the slow shell script. Don't cache a
5772 # value for INSTALL within a source directory, because that will
5773 # break other packages using the cache if that directory is
5774 # removed, or if the value is a relative name.
5775 INSTALL=$ac_install_sh
5778 { $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
5779 $as_echo "$INSTALL" >&6; }
5781 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
5782 # It thinks the first close brace ends the variable substitution.
5783 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
5785 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
5787 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
5789 { $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
5790 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
5792 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
5793 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
5794 $as_echo_n "(cached) " >&6
5796 cat >conftest.make <<\_ACEOF
5799 @echo '@@@%%%=$(MAKE)=@@@%%%'
5801 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
5802 case `${MAKE-make} -f conftest.make 2>/dev/null` in
5804 eval ac_cv_prog_make_${ac_make}_set=yes;;
5806 eval ac_cv_prog_make_${ac_make}_set=no;;
5810 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
5811 { $as_echo "$as_me:$LINENO: result: yes" >&5
5812 $as_echo "yes" >&6; }
5815 { $as_echo "$as_me:$LINENO: result: no" >&5
5816 $as_echo "no" >&6; }
5817 SET_MAKE="MAKE=${MAKE-make}"
5822 # site specific configs
5824 # check for asterisk
5826 # Check whether --with-asterisk was given.
5827 if test "${with_asterisk+set}" = set; then
5828 withval=$with_asterisk;
5830 with_asterisk="check"
5834 if test "x$with_asterisk" != xno; then
5836 for ac_header in asterisk/compiler.h
5838 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5839 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5840 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
5841 $as_echo_n "checking for $ac_header... " >&6; }
5842 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5843 $as_echo_n "(cached) " >&6
5845 ac_res=`eval 'as_val=${'$as_ac_Header'}
5846 $as_echo "$as_val"'`
5847 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
5848 $as_echo "$ac_res" >&6; }
5850 # Is the header compilable?
5851 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
5852 $as_echo_n "checking $ac_header usability... " >&6; }
5853 cat >conftest.$ac_ext <<_ACEOF
5856 cat confdefs.h >>conftest.$ac_ext
5857 cat >>conftest.$ac_ext <<_ACEOF
5858 /* end confdefs.h. */
5859 $ac_includes_default
5860 #include <$ac_header>
5862 rm -f conftest.$ac_objext
5863 if { (ac_try="$ac_compile"
5865 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5866 *) ac_try_echo=$ac_try;;
5868 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5869 $as_echo "$ac_try_echo") >&5
5870 (eval "$ac_compile") 2>conftest.er1
5872 grep -v '^ *+' conftest.er1 >conftest.err
5874 cat conftest.err >&5
5875 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5876 (exit $ac_status); } && {
5877 test -z "$ac_c_werror_flag" ||
5878 test ! -s conftest.err
5879 } && test -s conftest.$ac_objext; then
5880 ac_header_compiler=yes
5882 $as_echo "$as_me: failed program was:" >&5
5883 sed 's/^/| /' conftest.$ac_ext >&5
5885 ac_header_compiler=no
5888 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5889 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5890 $as_echo "$ac_header_compiler" >&6; }
5892 # Is the header present?
5893 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
5894 $as_echo_n "checking $ac_header presence... " >&6; }
5895 cat >conftest.$ac_ext <<_ACEOF
5898 cat confdefs.h >>conftest.$ac_ext
5899 cat >>conftest.$ac_ext <<_ACEOF
5900 /* end confdefs.h. */
5901 #include <$ac_header>
5903 if { (ac_try="$ac_cpp conftest.$ac_ext"
5905 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5906 *) ac_try_echo=$ac_try;;
5908 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5909 $as_echo "$ac_try_echo") >&5
5910 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5912 grep -v '^ *+' conftest.er1 >conftest.err
5914 cat conftest.err >&5
5915 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5916 (exit $ac_status); } >/dev/null && {
5917 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5918 test ! -s conftest.err
5920 ac_header_preproc=yes
5922 $as_echo "$as_me: failed program was:" >&5
5923 sed 's/^/| /' conftest.$ac_ext >&5
5925 ac_header_preproc=no
5928 rm -f conftest.err conftest.$ac_ext
5929 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5930 $as_echo "$ac_header_preproc" >&6; }
5932 # So? What about this header?
5933 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5935 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5936 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5937 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5938 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5939 ac_header_preproc=yes
5942 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5943 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5944 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5945 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5946 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5947 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5948 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5949 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5950 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5951 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5952 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5953 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5955 ## ----------------------------------- ##
5956 ## Report this to andreas@eversberg.eu ##
5957 ## ----------------------------------- ##
5959 ) | sed "s/^/$as_me: WARNING: /" >&2
5962 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
5963 $as_echo_n "checking for $ac_header... " >&6; }
5964 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5965 $as_echo_n "(cached) " >&6
5967 eval "$as_ac_Header=\$ac_header_preproc"
5969 ac_res=`eval 'as_val=${'$as_ac_Header'}
5970 $as_echo "$as_val"'`
5971 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
5972 $as_echo "$ac_res" >&6; }
5975 as_val=`eval 'as_val=${'$as_ac_Header'}
5976 $as_echo "$as_val"'`
5977 if test "x$as_val" = x""yes; then
5978 cat >>confdefs.h <<_ACEOF
5979 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5983 if test "x$with_asterisk" != xcheck ; then
5984 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
5985 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5986 { { $as_echo "$as_me:$LINENO: error: --with-asterisk was given, but test for header-file asterisk/compiler.h failed
5987 See \`config.log' for more details." >&5
5988 $as_echo "$as_me: error: --with-asterisk was given, but test for header-file asterisk/compiler.h failed
5989 See \`config.log' for more details." >&2;}
5990 { (exit 1); exit 1; }; }; }
6003 if test "x$with_asterisk" == "xyes" ; then
6004 ENABLE_ASTERISK_CHANNEL_DRIVER_TRUE=
6005 ENABLE_ASTERISK_CHANNEL_DRIVER_FALSE='#'
6007 ENABLE_ASTERISK_CHANNEL_DRIVER_TRUE='#'
6008 ENABLE_ASTERISK_CHANNEL_DRIVER_FALSE=
6014 # Check whether --with-ssl was given.
6015 if test "${with_ssl+set}" = set; then
6022 if test "x$with_ssl" != xno; then
6024 for ac_header in openssl/rsa.h
6026 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6027 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6028 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
6029 $as_echo_n "checking for $ac_header... " >&6; }
6030 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6031 $as_echo_n "(cached) " >&6
6033 ac_res=`eval 'as_val=${'$as_ac_Header'}
6034 $as_echo "$as_val"'`
6035 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6036 $as_echo "$ac_res" >&6; }
6038 # Is the header compilable?
6039 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
6040 $as_echo_n "checking $ac_header usability... " >&6; }
6041 cat >conftest.$ac_ext <<_ACEOF
6044 cat confdefs.h >>conftest.$ac_ext
6045 cat >>conftest.$ac_ext <<_ACEOF
6046 /* end confdefs.h. */
6047 $ac_includes_default
6048 #include <$ac_header>
6050 rm -f conftest.$ac_objext
6051 if { (ac_try="$ac_compile"
6053 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6054 *) ac_try_echo=$ac_try;;
6056 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6057 $as_echo "$ac_try_echo") >&5
6058 (eval "$ac_compile") 2>conftest.er1
6060 grep -v '^ *+' conftest.er1 >conftest.err
6062 cat conftest.err >&5
6063 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6064 (exit $ac_status); } && {
6065 test -z "$ac_c_werror_flag" ||
6066 test ! -s conftest.err
6067 } && test -s conftest.$ac_objext; then
6068 ac_header_compiler=yes
6070 $as_echo "$as_me: failed program was:" >&5
6071 sed 's/^/| /' conftest.$ac_ext >&5
6073 ac_header_compiler=no
6076 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6077 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6078 $as_echo "$ac_header_compiler" >&6; }
6080 # Is the header present?
6081 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
6082 $as_echo_n "checking $ac_header presence... " >&6; }
6083 cat >conftest.$ac_ext <<_ACEOF
6086 cat confdefs.h >>conftest.$ac_ext
6087 cat >>conftest.$ac_ext <<_ACEOF
6088 /* end confdefs.h. */
6089 #include <$ac_header>
6091 if { (ac_try="$ac_cpp conftest.$ac_ext"
6093 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6094 *) ac_try_echo=$ac_try;;
6096 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6097 $as_echo "$ac_try_echo") >&5
6098 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6100 grep -v '^ *+' conftest.er1 >conftest.err
6102 cat conftest.err >&5
6103 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6104 (exit $ac_status); } >/dev/null && {
6105 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6106 test ! -s conftest.err
6108 ac_header_preproc=yes
6110 $as_echo "$as_me: failed program was:" >&5
6111 sed 's/^/| /' conftest.$ac_ext >&5
6113 ac_header_preproc=no
6116 rm -f conftest.err conftest.$ac_ext
6117 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6118 $as_echo "$ac_header_preproc" >&6; }
6120 # So? What about this header?
6121 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6123 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6124 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6125 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6126 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6127 ac_header_preproc=yes
6130 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6131 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6132 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6133 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6134 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6135 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6136 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6137 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6138 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6139 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6140 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6141 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6143 ## ----------------------------------- ##
6144 ## Report this to andreas@eversberg.eu ##
6145 ## ----------------------------------- ##
6147 ) | sed "s/^/$as_me: WARNING: /" >&2
6150 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
6151 $as_echo_n "checking for $ac_header... " >&6; }
6152 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6153 $as_echo_n "(cached) " >&6
6155 eval "$as_ac_Header=\$ac_header_preproc"
6157 ac_res=`eval 'as_val=${'$as_ac_Header'}
6158 $as_echo "$as_val"'`
6159 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6160 $as_echo "$ac_res" >&6; }
6163 as_val=`eval 'as_val=${'$as_ac_Header'}
6164 $as_echo "$as_val"'`
6165 if test "x$as_val" = x""yes; then
6166 cat >>confdefs.h <<_ACEOF
6167 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6174 { $as_echo "$as_me:$LINENO: checking for main in -lcrypto" >&5
6175 $as_echo_n "checking for main in -lcrypto... " >&6; }
6176 if test "${ac_cv_lib_crypto_main+set}" = set; then
6177 $as_echo_n "(cached) " >&6
6179 ac_check_lib_save_LIBS=$LIBS
6180 LIBS="-lcrypto -lcrypto
6182 cat >conftest.$ac_ext <<_ACEOF
6185 cat confdefs.h >>conftest.$ac_ext
6186 cat >>conftest.$ac_ext <<_ACEOF
6187 /* end confdefs.h. */
6198 rm -f conftest.$ac_objext conftest$ac_exeext
6199 if { (ac_try="$ac_link"
6201 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6202 *) ac_try_echo=$ac_try;;
6204 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6205 $as_echo "$ac_try_echo") >&5
6206 (eval "$ac_link") 2>conftest.er1
6208 grep -v '^ *+' conftest.er1 >conftest.err
6210 cat conftest.err >&5
6211 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6212 (exit $ac_status); } && {
6213 test -z "$ac_c_werror_flag" ||
6214 test ! -s conftest.err
6215 } && test -s conftest$ac_exeext && {
6216 test "$cross_compiling" = yes ||
6217 $as_test_x conftest$ac_exeext
6219 ac_cv_lib_crypto_main=yes
6221 $as_echo "$as_me: failed program was:" >&5
6222 sed 's/^/| /' conftest.$ac_ext >&5
6224 ac_cv_lib_crypto_main=no
6227 rm -rf conftest.dSYM
6228 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6229 conftest$ac_exeext conftest.$ac_ext
6230 LIBS=$ac_check_lib_save_LIBS
6232 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_main" >&5
6233 $as_echo "$ac_cv_lib_crypto_main" >&6; }
6234 if test "x$ac_cv_lib_crypto_main" = x""yes; then
6235 LIBCRYPTO="-lcrypto"
6238 cat >>confdefs.h <<\_ACEOF
6239 #define HAVE_LIBCRYPTO 1
6244 if test "x$with_ssl" != xcheck ; then
6245 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
6246 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6247 { { $as_echo "$as_me:$LINENO: error: --with-ssl was given, but test for libcrypto failed
6248 See \`config.log' for more details." >&5
6249 $as_echo "$as_me: error: --with-ssl was given, but test for libcrypto failed
6250 See \`config.log' for more details." >&2;}
6251 { (exit 1); exit 1; }; }; }
6263 # Check whether --with-gsm was given.
6264 if test "${with_gsm+set}" = set; then
6273 if test "x$with_gsm" != "xno" ; then
6275 ENABLE_GSM_FALSE='#'
6282 # Checks for libraries.
6284 { $as_echo "$as_me:$LINENO: checking for main in -lm" >&5
6285 $as_echo_n "checking for main in -lm... " >&6; }
6286 if test "${ac_cv_lib_m_main+set}" = set; then
6287 $as_echo_n "(cached) " >&6
6289 ac_check_lib_save_LIBS=$LIBS
6291 cat >conftest.$ac_ext <<_ACEOF
6294 cat confdefs.h >>conftest.$ac_ext
6295 cat >>conftest.$ac_ext <<_ACEOF
6296 /* end confdefs.h. */
6307 rm -f conftest.$ac_objext conftest$ac_exeext
6308 if { (ac_try="$ac_link"
6310 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6311 *) ac_try_echo=$ac_try;;
6313 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6314 $as_echo "$ac_try_echo") >&5
6315 (eval "$ac_link") 2>conftest.er1
6317 grep -v '^ *+' conftest.er1 >conftest.err
6319 cat conftest.err >&5
6320 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6321 (exit $ac_status); } && {
6322 test -z "$ac_c_werror_flag" ||
6323 test ! -s conftest.err
6324 } && test -s conftest$ac_exeext && {
6325 test "$cross_compiling" = yes ||
6326 $as_test_x conftest$ac_exeext
6328 ac_cv_lib_m_main=yes
6330 $as_echo "$as_me: failed program was:" >&5
6331 sed 's/^/| /' conftest.$ac_ext >&5
6336 rm -rf conftest.dSYM
6337 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6338 conftest$ac_exeext conftest.$ac_ext
6339 LIBS=$ac_check_lib_save_LIBS
6341 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_m_main" >&5
6342 $as_echo "$ac_cv_lib_m_main" >&6; }
6343 if test "x$ac_cv_lib_m_main" = x""yes; then
6344 cat >>confdefs.h <<_ACEOF
6353 { $as_echo "$as_me:$LINENO: checking for main in -lncurses" >&5
6354 $as_echo_n "checking for main in -lncurses... " >&6; }
6355 if test "${ac_cv_lib_ncurses_main+set}" = set; then
6356 $as_echo_n "(cached) " >&6
6358 ac_check_lib_save_LIBS=$LIBS
6359 LIBS="-lncurses $LIBS"
6360 cat >conftest.$ac_ext <<_ACEOF
6363 cat confdefs.h >>conftest.$ac_ext
6364 cat >>conftest.$ac_ext <<_ACEOF
6365 /* end confdefs.h. */
6376 rm -f conftest.$ac_objext conftest$ac_exeext
6377 if { (ac_try="$ac_link"
6379 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6380 *) ac_try_echo=$ac_try;;
6382 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6383 $as_echo "$ac_try_echo") >&5
6384 (eval "$ac_link") 2>conftest.er1
6386 grep -v '^ *+' conftest.er1 >conftest.err
6388 cat conftest.err >&5
6389 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6390 (exit $ac_status); } && {
6391 test -z "$ac_c_werror_flag" ||
6392 test ! -s conftest.err
6393 } && test -s conftest$ac_exeext && {
6394 test "$cross_compiling" = yes ||
6395 $as_test_x conftest$ac_exeext
6397 ac_cv_lib_ncurses_main=yes
6399 $as_echo "$as_me: failed program was:" >&5
6400 sed 's/^/| /' conftest.$ac_ext >&5
6402 ac_cv_lib_ncurses_main=no
6405 rm -rf conftest.dSYM
6406 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6407 conftest$ac_exeext conftest.$ac_ext
6408 LIBS=$ac_check_lib_save_LIBS
6410 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_main" >&5
6411 $as_echo "$ac_cv_lib_ncurses_main" >&6; }
6412 if test "x$ac_cv_lib_ncurses_main" = x""yes; then
6413 cat >>confdefs.h <<_ACEOF
6414 #define HAVE_LIBNCURSES 1
6417 LIBS="-lncurses $LIBS"
6422 { $as_echo "$as_me:$LINENO: checking for main in -lpthread" >&5
6423 $as_echo_n "checking for main in -lpthread... " >&6; }
6424 if test "${ac_cv_lib_pthread_main+set}" = set; then
6425 $as_echo_n "(cached) " >&6
6427 ac_check_lib_save_LIBS=$LIBS
6428 LIBS="-lpthread $LIBS"
6429 cat >conftest.$ac_ext <<_ACEOF
6432 cat confdefs.h >>conftest.$ac_ext
6433 cat >>conftest.$ac_ext <<_ACEOF
6434 /* end confdefs.h. */
6445 rm -f conftest.$ac_objext conftest$ac_exeext
6446 if { (ac_try="$ac_link"
6448 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6449 *) ac_try_echo=$ac_try;;
6451 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6452 $as_echo "$ac_try_echo") >&5
6453 (eval "$ac_link") 2>conftest.er1
6455 grep -v '^ *+' conftest.er1 >conftest.err
6457 cat conftest.err >&5
6458 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6459 (exit $ac_status); } && {
6460 test -z "$ac_c_werror_flag" ||
6461 test ! -s conftest.err
6462 } && test -s conftest$ac_exeext && {
6463 test "$cross_compiling" = yes ||
6464 $as_test_x conftest$ac_exeext
6466 ac_cv_lib_pthread_main=yes
6468 $as_echo "$as_me: failed program was:" >&5
6469 sed 's/^/| /' conftest.$ac_ext >&5
6471 ac_cv_lib_pthread_main=no
6474 rm -rf conftest.dSYM
6475 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6476 conftest$ac_exeext conftest.$ac_ext
6477 LIBS=$ac_check_lib_save_LIBS
6479 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_main" >&5
6480 $as_echo "$ac_cv_lib_pthread_main" >&6; }
6481 if test "x$ac_cv_lib_pthread_main" = x""yes; then
6482 cat >>confdefs.h <<_ACEOF
6483 #define HAVE_LIBPTHREAD 1
6486 LIBS="-lpthread $LIBS"
6491 # Checks for header files.
6498 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
6499 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
6500 { $as_echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
6501 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
6502 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6503 $as_echo_n "(cached) " >&6
6505 cat >conftest.$ac_ext <<_ACEOF
6508 cat confdefs.h >>conftest.$ac_ext
6509 cat >>conftest.$ac_ext <<_ACEOF
6510 /* end confdefs.h. */
6511 #include <sys/types.h>
6523 rm -f conftest.$ac_objext
6524 if { (ac_try="$ac_compile"
6526 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6527 *) ac_try_echo=$ac_try;;
6529 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6530 $as_echo "$ac_try_echo") >&5
6531 (eval "$ac_compile") 2>conftest.er1
6533 grep -v '^ *+' conftest.er1 >conftest.err
6535 cat conftest.err >&5
6536 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6537 (exit $ac_status); } && {
6538 test -z "$ac_c_werror_flag" ||
6539 test ! -s conftest.err
6540 } && test -s conftest.$ac_objext; then
6541 eval "$as_ac_Header=yes"
6543 $as_echo "$as_me: failed program was:" >&5
6544 sed 's/^/| /' conftest.$ac_ext >&5
6546 eval "$as_ac_Header=no"
6549 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6551 ac_res=`eval 'as_val=${'$as_ac_Header'}
6552 $as_echo "$as_val"'`
6553 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6554 $as_echo "$ac_res" >&6; }
6555 as_val=`eval 'as_val=${'$as_ac_Header'}
6556 $as_echo "$as_val"'`
6557 if test "x$as_val" = x""yes; then
6558 cat >>confdefs.h <<_ACEOF
6559 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
6562 ac_header_dirent=$ac_hdr; break
6566 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
6567 if test $ac_header_dirent = dirent.h; then
6568 { $as_echo "$as_me:$LINENO: checking for library containing opendir" >&5
6569 $as_echo_n "checking for library containing opendir... " >&6; }
6570 if test "${ac_cv_search_opendir+set}" = set; then
6571 $as_echo_n "(cached) " >&6
6573 ac_func_search_save_LIBS=$LIBS
6574 cat >conftest.$ac_ext <<_ACEOF
6577 cat confdefs.h >>conftest.$ac_ext
6578 cat >>conftest.$ac_ext <<_ACEOF
6579 /* end confdefs.h. */
6581 /* Override any GCC internal prototype to avoid an error.
6582 Use char because int might match the return type of a GCC
6583 builtin and then its argument prototype would still apply. */
6596 for ac_lib in '' dir; do
6597 if test -z "$ac_lib"; then
6598 ac_res="none required"
6601 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6603 rm -f conftest.$ac_objext conftest$ac_exeext
6604 if { (ac_try="$ac_link"
6606 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6607 *) ac_try_echo=$ac_try;;
6609 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6610 $as_echo "$ac_try_echo") >&5
6611 (eval "$ac_link") 2>conftest.er1
6613 grep -v '^ *+' conftest.er1 >conftest.err
6615 cat conftest.err >&5
6616 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6617 (exit $ac_status); } && {
6618 test -z "$ac_c_werror_flag" ||
6619 test ! -s conftest.err
6620 } && test -s conftest$ac_exeext && {
6621 test "$cross_compiling" = yes ||
6622 $as_test_x conftest$ac_exeext
6624 ac_cv_search_opendir=$ac_res
6626 $as_echo "$as_me: failed program was:" >&5
6627 sed 's/^/| /' conftest.$ac_ext >&5
6632 rm -rf conftest.dSYM
6633 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6635 if test "${ac_cv_search_opendir+set}" = set; then
6639 if test "${ac_cv_search_opendir+set}" = set; then
6642 ac_cv_search_opendir=no
6645 LIBS=$ac_func_search_save_LIBS
6647 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
6648 $as_echo "$ac_cv_search_opendir" >&6; }
6649 ac_res=$ac_cv_search_opendir
6650 if test "$ac_res" != no; then
6651 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
6656 { $as_echo "$as_me:$LINENO: checking for library containing opendir" >&5
6657 $as_echo_n "checking for library containing opendir... " >&6; }
6658 if test "${ac_cv_search_opendir+set}" = set; then
6659 $as_echo_n "(cached) " >&6
6661 ac_func_search_save_LIBS=$LIBS
6662 cat >conftest.$ac_ext <<_ACEOF
6665 cat confdefs.h >>conftest.$ac_ext
6666 cat >>conftest.$ac_ext <<_ACEOF
6667 /* end confdefs.h. */
6669 /* Override any GCC internal prototype to avoid an error.
6670 Use char because int might match the return type of a GCC
6671 builtin and then its argument prototype would still apply. */
6684 for ac_lib in '' x; do
6685 if test -z "$ac_lib"; then
6686 ac_res="none required"
6689 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6691 rm -f conftest.$ac_objext conftest$ac_exeext
6692 if { (ac_try="$ac_link"
6694 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6695 *) ac_try_echo=$ac_try;;
6697 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6698 $as_echo "$ac_try_echo") >&5
6699 (eval "$ac_link") 2>conftest.er1
6701 grep -v '^ *+' conftest.er1 >conftest.err
6703 cat conftest.err >&5
6704 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6705 (exit $ac_status); } && {
6706 test -z "$ac_c_werror_flag" ||
6707 test ! -s conftest.err
6708 } && test -s conftest$ac_exeext && {
6709 test "$cross_compiling" = yes ||
6710 $as_test_x conftest$ac_exeext
6712 ac_cv_search_opendir=$ac_res
6714 $as_echo "$as_me: failed program was:" >&5
6715 sed 's/^/| /' conftest.$ac_ext >&5
6720 rm -rf conftest.dSYM
6721 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6723 if test "${ac_cv_search_opendir+set}" = set; then
6727 if test "${ac_cv_search_opendir+set}" = set; then
6730 ac_cv_search_opendir=no
6733 LIBS=$ac_func_search_save_LIBS
6735 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
6736 $as_echo "$ac_cv_search_opendir" >&6; }
6737 ac_res=$ac_cv_search_opendir
6738 if test "$ac_res" != no; then
6739 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
6745 { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6746 $as_echo_n "checking for ANSI C header files... " >&6; }
6747 if test "${ac_cv_header_stdc+set}" = set; then
6748 $as_echo_n "(cached) " >&6
6750 cat >conftest.$ac_ext <<_ACEOF
6753 cat confdefs.h >>conftest.$ac_ext
6754 cat >>conftest.$ac_ext <<_ACEOF
6755 /* end confdefs.h. */
6769 rm -f conftest.$ac_objext
6770 if { (ac_try="$ac_compile"
6772 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6773 *) ac_try_echo=$ac_try;;
6775 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6776 $as_echo "$ac_try_echo") >&5
6777 (eval "$ac_compile") 2>conftest.er1
6779 grep -v '^ *+' conftest.er1 >conftest.err
6781 cat conftest.err >&5
6782 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6783 (exit $ac_status); } && {
6784 test -z "$ac_c_werror_flag" ||
6785 test ! -s conftest.err
6786 } && test -s conftest.$ac_objext; then
6787 ac_cv_header_stdc=yes
6789 $as_echo "$as_me: failed program was:" >&5
6790 sed 's/^/| /' conftest.$ac_ext >&5
6792 ac_cv_header_stdc=no
6795 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6797 if test $ac_cv_header_stdc = yes; then
6798 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6799 cat >conftest.$ac_ext <<_ACEOF
6802 cat confdefs.h >>conftest.$ac_ext
6803 cat >>conftest.$ac_ext <<_ACEOF
6804 /* end confdefs.h. */
6808 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6809 $EGREP "memchr" >/dev/null 2>&1; then
6812 ac_cv_header_stdc=no
6818 if test $ac_cv_header_stdc = yes; then
6819 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6820 cat >conftest.$ac_ext <<_ACEOF
6823 cat confdefs.h >>conftest.$ac_ext
6824 cat >>conftest.$ac_ext <<_ACEOF
6825 /* end confdefs.h. */
6829 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6830 $EGREP "free" >/dev/null 2>&1; then
6833 ac_cv_header_stdc=no
6839 if test $ac_cv_header_stdc = yes; then
6840 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6841 if test "$cross_compiling" = yes; then
6844 cat >conftest.$ac_ext <<_ACEOF
6847 cat confdefs.h >>conftest.$ac_ext
6848 cat >>conftest.$ac_ext <<_ACEOF
6849 /* end confdefs.h. */
6852 #if ((' ' & 0x0FF) == 0x020)
6853 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6854 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6856 # define ISLOWER(c) \
6857 (('a' <= (c) && (c) <= 'i') \
6858 || ('j' <= (c) && (c) <= 'r') \
6859 || ('s' <= (c) && (c) <= 'z'))
6860 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6863 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6868 for (i = 0; i < 256; i++)
6869 if (XOR (islower (i), ISLOWER (i))
6870 || toupper (i) != TOUPPER (i))
6875 rm -f conftest$ac_exeext
6876 if { (ac_try="$ac_link"
6878 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6879 *) ac_try_echo=$ac_try;;
6881 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6882 $as_echo "$ac_try_echo") >&5
6883 (eval "$ac_link") 2>&5
6885 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6886 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6887 { (case "(($ac_try" in
6888 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6889 *) ac_try_echo=$ac_try;;
6891 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6892 $as_echo "$ac_try_echo") >&5
6893 (eval "$ac_try") 2>&5
6895 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6896 (exit $ac_status); }; }; then
6899 $as_echo "$as_me: program exited with status $ac_status" >&5
6900 $as_echo "$as_me: failed program was:" >&5
6901 sed 's/^/| /' conftest.$ac_ext >&5
6904 ac_cv_header_stdc=no
6906 rm -rf conftest.dSYM
6907 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6913 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6914 $as_echo "$ac_cv_header_stdc" >&6; }
6915 if test $ac_cv_header_stdc = yes; then
6917 cat >>confdefs.h <<\_ACEOF
6918 #define STDC_HEADERS 1
6923 { $as_echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
6924 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
6925 if test "${ac_cv_header_sys_wait_h+set}" = set; then
6926 $as_echo_n "(cached) " >&6
6928 cat >conftest.$ac_ext <<_ACEOF
6931 cat confdefs.h >>conftest.$ac_ext
6932 cat >>conftest.$ac_ext <<_ACEOF
6933 /* end confdefs.h. */
6934 #include <sys/types.h>
6935 #include <sys/wait.h>
6937 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
6940 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
6948 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
6953 rm -f conftest.$ac_objext
6954 if { (ac_try="$ac_compile"
6956 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6957 *) ac_try_echo=$ac_try;;
6959 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6960 $as_echo "$ac_try_echo") >&5
6961 (eval "$ac_compile") 2>conftest.er1
6963 grep -v '^ *+' conftest.er1 >conftest.err
6965 cat conftest.err >&5
6966 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6967 (exit $ac_status); } && {
6968 test -z "$ac_c_werror_flag" ||
6969 test ! -s conftest.err
6970 } && test -s conftest.$ac_objext; then
6971 ac_cv_header_sys_wait_h=yes
6973 $as_echo "$as_me: failed program was:" >&5
6974 sed 's/^/| /' conftest.$ac_ext >&5
6976 ac_cv_header_sys_wait_h=no
6979 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6981 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
6982 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
6983 if test $ac_cv_header_sys_wait_h = yes; then
6985 cat >>confdefs.h <<\_ACEOF
6986 #define HAVE_SYS_WAIT_H 1
7004 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
7006 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7007 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7008 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
7009 $as_echo_n "checking for $ac_header... " >&6; }
7010 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7011 $as_echo_n "(cached) " >&6
7013 ac_res=`eval 'as_val=${'$as_ac_Header'}
7014 $as_echo "$as_val"'`
7015 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7016 $as_echo "$ac_res" >&6; }
7018 # Is the header compilable?
7019 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
7020 $as_echo_n "checking $ac_header usability... " >&6; }
7021 cat >conftest.$ac_ext <<_ACEOF
7024 cat confdefs.h >>conftest.$ac_ext
7025 cat >>conftest.$ac_ext <<_ACEOF
7026 /* end confdefs.h. */
7027 $ac_includes_default
7028 #include <$ac_header>
7030 rm -f conftest.$ac_objext
7031 if { (ac_try="$ac_compile"
7033 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7034 *) ac_try_echo=$ac_try;;
7036 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7037 $as_echo "$ac_try_echo") >&5
7038 (eval "$ac_compile") 2>conftest.er1
7040 grep -v '^ *+' conftest.er1 >conftest.err
7042 cat conftest.err >&5
7043 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7044 (exit $ac_status); } && {
7045 test -z "$ac_c_werror_flag" ||
7046 test ! -s conftest.err
7047 } && test -s conftest.$ac_objext; then
7048 ac_header_compiler=yes
7050 $as_echo "$as_me: failed program was:" >&5
7051 sed 's/^/| /' conftest.$ac_ext >&5
7053 ac_header_compiler=no
7056 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7057 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7058 $as_echo "$ac_header_compiler" >&6; }
7060 # Is the header present?
7061 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
7062 $as_echo_n "checking $ac_header presence... " >&6; }
7063 cat >conftest.$ac_ext <<_ACEOF
7066 cat confdefs.h >>conftest.$ac_ext
7067 cat >>conftest.$ac_ext <<_ACEOF
7068 /* end confdefs.h. */
7069 #include <$ac_header>
7071 if { (ac_try="$ac_cpp conftest.$ac_ext"
7073 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7074 *) ac_try_echo=$ac_try;;
7076 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7077 $as_echo "$ac_try_echo") >&5
7078 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7080 grep -v '^ *+' conftest.er1 >conftest.err
7082 cat conftest.err >&5
7083 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7084 (exit $ac_status); } >/dev/null && {
7085 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7086 test ! -s conftest.err
7088 ac_header_preproc=yes
7090 $as_echo "$as_me: failed program was:" >&5
7091 sed 's/^/| /' conftest.$ac_ext >&5
7093 ac_header_preproc=no
7096 rm -f conftest.err conftest.$ac_ext
7097 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7098 $as_echo "$ac_header_preproc" >&6; }
7100 # So? What about this header?
7101 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7103 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7104 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7105 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7106 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7107 ac_header_preproc=yes
7110 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7111 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7112 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7113 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7114 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7115 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7116 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7117 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7118 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7119 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7120 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7121 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7123 ## ----------------------------------- ##
7124 ## Report this to andreas@eversberg.eu ##
7125 ## ----------------------------------- ##
7127 ) | sed "s/^/$as_me: WARNING: /" >&2
7130 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
7131 $as_echo_n "checking for $ac_header... " >&6; }
7132 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7133 $as_echo_n "(cached) " >&6
7135 eval "$as_ac_Header=\$ac_header_preproc"
7137 ac_res=`eval 'as_val=${'$as_ac_Header'}
7138 $as_echo "$as_val"'`
7139 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7140 $as_echo "$ac_res" >&6; }
7143 as_val=`eval 'as_val=${'$as_ac_Header'}
7144 $as_echo "$as_val"'`
7145 if test "x$as_val" = x""yes; then
7146 cat >>confdefs.h <<_ACEOF
7147 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7155 # Checks for typedefs, structures, and compiler characteristics.
7156 { $as_echo "$as_me:$LINENO: checking for stdbool.h that conforms to C99" >&5
7157 $as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
7158 if test "${ac_cv_header_stdbool_h+set}" = set; then
7159 $as_echo_n "(cached) " >&6
7161 cat >conftest.$ac_ext <<_ACEOF
7164 cat confdefs.h >>conftest.$ac_ext
7165 cat >>conftest.$ac_ext <<_ACEOF
7166 /* end confdefs.h. */
7168 #include <stdbool.h>
7170 "error: bool is not defined"
7173 "error: false is not defined"
7176 "error: false is not 0"
7179 "error: true is not defined"
7182 "error: true is not 1"
7184 #ifndef __bool_true_false_are_defined
7185 "error: __bool_true_false_are_defined is not defined"
7188 struct s { _Bool s: 1; _Bool t; } s;
7190 char a[true == 1 ? 1 : -1];
7191 char b[false == 0 ? 1 : -1];
7192 char c[__bool_true_false_are_defined == 1 ? 1 : -1];
7193 char d[(bool) 0.5 == true ? 1 : -1];
7195 char f[(_Bool) 0.0 == false ? 1 : -1];
7197 char h[sizeof (_Bool)];
7199 enum { j = false, k = true, l = false * true, m = true * 256 };
7200 /* The following fails for
7201 HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
7203 char o[sizeof n == m * sizeof n[0] ? 1 : -1];
7204 char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
7205 # if defined __xlc__ || defined __GNUC__
7206 /* Catch a bug in IBM AIX xlc compiler version 6.0.0.0
7207 reported by James Lemley on 2005-10-05; see
7208 http://lists.gnu.org/archive/html/bug-coreutils/2005-10/msg00086.html
7209 This test is not quite right, since xlc is allowed to
7210 reject this program, as the initializer for xlcbug is
7211 not one of the forms that C requires support for.
7212 However, doing the test right would require a runtime
7213 test, and that would make cross-compilation harder.
7214 Let us hope that IBM fixes the xlc bug, and also adds
7215 support for this kind of constant expression. In the
7216 meantime, this test will reject xlc, which is OK, since
7217 our stdbool.h substitute should suffice. We also test
7218 this with GCC, where it should work, to detect more
7219 quickly whether someone messes up the test in the
7221 char digs[] = "0123456789";
7222 int xlcbug = 1 / (&(digs + 5)[-2 + (bool) 1] == &digs[4] ? 1 : -1);
7224 /* Catch a bug in an HP-UX C compiler. See
7225 http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
7226 http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
7237 /* Refer to every declared value, to avoid compiler optimizations. */
7238 return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
7239 + !m + !n + !o + !p + !q + !pq);
7245 rm -f conftest.$ac_objext
7246 if { (ac_try="$ac_compile"
7248 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7249 *) ac_try_echo=$ac_try;;
7251 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7252 $as_echo "$ac_try_echo") >&5
7253 (eval "$ac_compile") 2>conftest.er1
7255 grep -v '^ *+' conftest.er1 >conftest.err
7257 cat conftest.err >&5
7258 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7259 (exit $ac_status); } && {
7260 test -z "$ac_c_werror_flag" ||
7261 test ! -s conftest.err
7262 } && test -s conftest.$ac_objext; then
7263 ac_cv_header_stdbool_h=yes
7265 $as_echo "$as_me: failed program was:" >&5
7266 sed 's/^/| /' conftest.$ac_ext >&5
7268 ac_cv_header_stdbool_h=no
7271 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7273 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdbool_h" >&5
7274 $as_echo "$ac_cv_header_stdbool_h" >&6; }
7275 { $as_echo "$as_me:$LINENO: checking for _Bool" >&5
7276 $as_echo_n "checking for _Bool... " >&6; }
7277 if test "${ac_cv_type__Bool+set}" = set; then
7278 $as_echo_n "(cached) " >&6
7281 cat >conftest.$ac_ext <<_ACEOF
7284 cat confdefs.h >>conftest.$ac_ext
7285 cat >>conftest.$ac_ext <<_ACEOF
7286 /* end confdefs.h. */
7287 $ac_includes_default
7297 rm -f conftest.$ac_objext
7298 if { (ac_try="$ac_compile"
7300 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7301 *) ac_try_echo=$ac_try;;
7303 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7304 $as_echo "$ac_try_echo") >&5
7305 (eval "$ac_compile") 2>conftest.er1
7307 grep -v '^ *+' conftest.er1 >conftest.err
7309 cat conftest.err >&5
7310 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7311 (exit $ac_status); } && {
7312 test -z "$ac_c_werror_flag" ||
7313 test ! -s conftest.err
7314 } && test -s conftest.$ac_objext; then
7315 cat >conftest.$ac_ext <<_ACEOF
7318 cat confdefs.h >>conftest.$ac_ext
7319 cat >>conftest.$ac_ext <<_ACEOF
7320 /* end confdefs.h. */
7321 $ac_includes_default
7325 if (sizeof ((_Bool)))
7331 rm -f conftest.$ac_objext
7332 if { (ac_try="$ac_compile"
7334 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7335 *) ac_try_echo=$ac_try;;
7337 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7338 $as_echo "$ac_try_echo") >&5
7339 (eval "$ac_compile") 2>conftest.er1
7341 grep -v '^ *+' conftest.er1 >conftest.err
7343 cat conftest.err >&5
7344 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7345 (exit $ac_status); } && {
7346 test -z "$ac_c_werror_flag" ||
7347 test ! -s conftest.err
7348 } && test -s conftest.$ac_objext; then
7351 $as_echo "$as_me: failed program was:" >&5
7352 sed 's/^/| /' conftest.$ac_ext >&5
7354 ac_cv_type__Bool=yes
7357 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7359 $as_echo "$as_me: failed program was:" >&5
7360 sed 's/^/| /' conftest.$ac_ext >&5
7365 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7367 { $as_echo "$as_me:$LINENO: result: $ac_cv_type__Bool" >&5
7368 $as_echo "$ac_cv_type__Bool" >&6; }
7369 if test "x$ac_cv_type__Bool" = x""yes; then
7371 cat >>confdefs.h <<_ACEOF
7372 #define HAVE__BOOL 1
7378 if test $ac_cv_header_stdbool_h = yes; then
7380 cat >>confdefs.h <<\_ACEOF
7381 #define HAVE_STDBOOL_H 1
7386 { $as_echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
7387 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
7388 if test "${ac_cv_c_const+set}" = set; then
7389 $as_echo_n "(cached) " >&6
7391 cat >conftest.$ac_ext <<_ACEOF
7394 cat confdefs.h >>conftest.$ac_ext
7395 cat >>conftest.$ac_ext <<_ACEOF
7396 /* end confdefs.h. */
7401 /* FIXME: Include the comments suggested by Paul. */
7403 /* Ultrix mips cc rejects this. */
7404 typedef int charset[2];
7406 /* SunOS 4.1.1 cc rejects this. */
7407 char const *const *pcpcc;
7409 /* NEC SVR4.0.2 mips cc rejects this. */
7410 struct point {int x, y;};
7411 static struct point const zero = {0,0};
7412 /* AIX XL C 1.02.0.0 rejects this.
7413 It does not let you subtract one const X* pointer from another in
7414 an arm of an if-expression whose if-part is not a constant
7416 const char *g = "string";
7417 pcpcc = &g + (g ? g-g : 0);
7418 /* HPUX 7.0 cc rejects these. */
7420 ppc = (char**) pcpcc;
7421 pcpcc = (char const *const *) ppc;
7422 { /* SCO 3.2v4 cc rejects this. */
7424 char const *s = 0 ? (char *) 0 : (char const *) 0;
7429 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
7431 const int *foo = &x[0];
7434 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
7435 typedef const int *iptr;
7439 { /* AIX XL C 1.02.0.0 rejects this saying
7440 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
7441 struct s { int j; const int *ap[3]; };
7442 struct s *b; b->j = 5;
7444 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
7448 return !cs[0] && !zero.x;
7455 rm -f conftest.$ac_objext
7456 if { (ac_try="$ac_compile"
7458 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7459 *) ac_try_echo=$ac_try;;
7461 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7462 $as_echo "$ac_try_echo") >&5
7463 (eval "$ac_compile") 2>conftest.er1
7465 grep -v '^ *+' conftest.er1 >conftest.err
7467 cat conftest.err >&5
7468 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7469 (exit $ac_status); } && {
7470 test -z "$ac_c_werror_flag" ||
7471 test ! -s conftest.err
7472 } && test -s conftest.$ac_objext; then
7475 $as_echo "$as_me: failed program was:" >&5
7476 sed 's/^/| /' conftest.$ac_ext >&5
7481 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7483 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
7484 $as_echo "$ac_cv_c_const" >&6; }
7485 if test $ac_cv_c_const = no; then
7487 cat >>confdefs.h <<\_ACEOF
7493 { $as_echo "$as_me:$LINENO: checking for inline" >&5
7494 $as_echo_n "checking for inline... " >&6; }
7495 if test "${ac_cv_c_inline+set}" = set; then
7496 $as_echo_n "(cached) " >&6
7499 for ac_kw in inline __inline__ __inline; do
7500 cat >conftest.$ac_ext <<_ACEOF
7503 cat confdefs.h >>conftest.$ac_ext
7504 cat >>conftest.$ac_ext <<_ACEOF
7505 /* end confdefs.h. */
7508 static $ac_kw foo_t static_foo () {return 0; }
7509 $ac_kw foo_t foo () {return 0; }
7513 rm -f conftest.$ac_objext
7514 if { (ac_try="$ac_compile"
7516 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7517 *) ac_try_echo=$ac_try;;
7519 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7520 $as_echo "$ac_try_echo") >&5
7521 (eval "$ac_compile") 2>conftest.er1
7523 grep -v '^ *+' conftest.er1 >conftest.err
7525 cat conftest.err >&5
7526 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7527 (exit $ac_status); } && {
7528 test -z "$ac_c_werror_flag" ||
7529 test ! -s conftest.err
7530 } && test -s conftest.$ac_objext; then
7531 ac_cv_c_inline=$ac_kw
7533 $as_echo "$as_me: failed program was:" >&5
7534 sed 's/^/| /' conftest.$ac_ext >&5
7539 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7540 test "$ac_cv_c_inline" != no && break
7544 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
7545 $as_echo "$ac_cv_c_inline" >&6; }
7548 case $ac_cv_c_inline in
7551 case $ac_cv_c_inline in
7553 *) ac_val=$ac_cv_c_inline;;
7555 cat >>confdefs.h <<_ACEOF
7557 #define inline $ac_val
7563 { $as_echo "$as_me:$LINENO: checking for pid_t" >&5
7564 $as_echo_n "checking for pid_t... " >&6; }
7565 if test "${ac_cv_type_pid_t+set}" = set; then
7566 $as_echo_n "(cached) " >&6
7569 cat >conftest.$ac_ext <<_ACEOF
7572 cat confdefs.h >>conftest.$ac_ext
7573 cat >>conftest.$ac_ext <<_ACEOF
7574 /* end confdefs.h. */
7575 $ac_includes_default
7585 rm -f conftest.$ac_objext
7586 if { (ac_try="$ac_compile"
7588 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7589 *) ac_try_echo=$ac_try;;
7591 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7592 $as_echo "$ac_try_echo") >&5
7593 (eval "$ac_compile") 2>conftest.er1
7595 grep -v '^ *+' conftest.er1 >conftest.err
7597 cat conftest.err >&5
7598 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7599 (exit $ac_status); } && {
7600 test -z "$ac_c_werror_flag" ||
7601 test ! -s conftest.err
7602 } && test -s conftest.$ac_objext; then
7603 cat >conftest.$ac_ext <<_ACEOF
7606 cat confdefs.h >>conftest.$ac_ext
7607 cat >>conftest.$ac_ext <<_ACEOF
7608 /* end confdefs.h. */
7609 $ac_includes_default
7613 if (sizeof ((pid_t)))
7619 rm -f conftest.$ac_objext
7620 if { (ac_try="$ac_compile"
7622 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7623 *) ac_try_echo=$ac_try;;
7625 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7626 $as_echo "$ac_try_echo") >&5
7627 (eval "$ac_compile") 2>conftest.er1
7629 grep -v '^ *+' conftest.er1 >conftest.err
7631 cat conftest.err >&5
7632 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7633 (exit $ac_status); } && {
7634 test -z "$ac_c_werror_flag" ||
7635 test ! -s conftest.err
7636 } && test -s conftest.$ac_objext; then
7639 $as_echo "$as_me: failed program was:" >&5
7640 sed 's/^/| /' conftest.$ac_ext >&5
7642 ac_cv_type_pid_t=yes
7645 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7647 $as_echo "$as_me: failed program was:" >&5
7648 sed 's/^/| /' conftest.$ac_ext >&5
7653 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7655 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
7656 $as_echo "$ac_cv_type_pid_t" >&6; }
7657 if test "x$ac_cv_type_pid_t" = x""yes; then
7661 cat >>confdefs.h <<_ACEOF
7667 { $as_echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
7668 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
7669 if test "${ac_cv_header_time+set}" = set; then
7670 $as_echo_n "(cached) " >&6
7672 cat >conftest.$ac_ext <<_ACEOF
7675 cat confdefs.h >>conftest.$ac_ext
7676 cat >>conftest.$ac_ext <<_ACEOF
7677 /* end confdefs.h. */
7678 #include <sys/types.h>
7679 #include <sys/time.h>
7685 if ((struct tm *) 0)
7691 rm -f conftest.$ac_objext
7692 if { (ac_try="$ac_compile"
7694 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7695 *) ac_try_echo=$ac_try;;
7697 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7698 $as_echo "$ac_try_echo") >&5
7699 (eval "$ac_compile") 2>conftest.er1
7701 grep -v '^ *+' conftest.er1 >conftest.err
7703 cat conftest.err >&5
7704 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7705 (exit $ac_status); } && {
7706 test -z "$ac_c_werror_flag" ||
7707 test ! -s conftest.err
7708 } && test -s conftest.$ac_objext; then
7709 ac_cv_header_time=yes
7711 $as_echo "$as_me: failed program was:" >&5
7712 sed 's/^/| /' conftest.$ac_ext >&5
7714 ac_cv_header_time=no
7717 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7719 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
7720 $as_echo "$ac_cv_header_time" >&6; }
7721 if test $ac_cv_header_time = yes; then
7723 cat >>confdefs.h <<\_ACEOF
7724 #define TIME_WITH_SYS_TIME 1
7729 { $as_echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
7730 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
7731 if test "${ac_cv_struct_tm+set}" = set; then
7732 $as_echo_n "(cached) " >&6
7734 cat >conftest.$ac_ext <<_ACEOF
7737 cat confdefs.h >>conftest.$ac_ext
7738 cat >>conftest.$ac_ext <<_ACEOF
7739 /* end confdefs.h. */
7740 #include <sys/types.h>
7747 int *p = &tm.tm_sec;
7753 rm -f conftest.$ac_objext
7754 if { (ac_try="$ac_compile"
7756 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7757 *) ac_try_echo=$ac_try;;
7759 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7760 $as_echo "$ac_try_echo") >&5
7761 (eval "$ac_compile") 2>conftest.er1
7763 grep -v '^ *+' conftest.er1 >conftest.err
7765 cat conftest.err >&5
7766 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7767 (exit $ac_status); } && {
7768 test -z "$ac_c_werror_flag" ||
7769 test ! -s conftest.err
7770 } && test -s conftest.$ac_objext; then
7771 ac_cv_struct_tm=time.h
7773 $as_echo "$as_me: failed program was:" >&5
7774 sed 's/^/| /' conftest.$ac_ext >&5
7776 ac_cv_struct_tm=sys/time.h
7779 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7781 { $as_echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
7782 $as_echo "$ac_cv_struct_tm" >&6; }
7783 if test $ac_cv_struct_tm = sys/time.h; then
7785 cat >>confdefs.h <<\_ACEOF
7786 #define TM_IN_SYS_TIME 1
7792 # Checks for library functions.
7794 for ac_header in vfork.h
7796 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7797 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7798 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
7799 $as_echo_n "checking for $ac_header... " >&6; }
7800 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7801 $as_echo_n "(cached) " >&6
7803 ac_res=`eval 'as_val=${'$as_ac_Header'}
7804 $as_echo "$as_val"'`
7805 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7806 $as_echo "$ac_res" >&6; }
7808 # Is the header compilable?
7809 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
7810 $as_echo_n "checking $ac_header usability... " >&6; }
7811 cat >conftest.$ac_ext <<_ACEOF
7814 cat confdefs.h >>conftest.$ac_ext
7815 cat >>conftest.$ac_ext <<_ACEOF
7816 /* end confdefs.h. */
7817 $ac_includes_default
7818 #include <$ac_header>
7820 rm -f conftest.$ac_objext
7821 if { (ac_try="$ac_compile"
7823 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7824 *) ac_try_echo=$ac_try;;
7826 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7827 $as_echo "$ac_try_echo") >&5
7828 (eval "$ac_compile") 2>conftest.er1
7830 grep -v '^ *+' conftest.er1 >conftest.err
7832 cat conftest.err >&5
7833 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7834 (exit $ac_status); } && {
7835 test -z "$ac_c_werror_flag" ||
7836 test ! -s conftest.err
7837 } && test -s conftest.$ac_objext; then
7838 ac_header_compiler=yes
7840 $as_echo "$as_me: failed program was:" >&5
7841 sed 's/^/| /' conftest.$ac_ext >&5
7843 ac_header_compiler=no
7846 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7847 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7848 $as_echo "$ac_header_compiler" >&6; }
7850 # Is the header present?
7851 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
7852 $as_echo_n "checking $ac_header presence... " >&6; }
7853 cat >conftest.$ac_ext <<_ACEOF
7856 cat confdefs.h >>conftest.$ac_ext
7857 cat >>conftest.$ac_ext <<_ACEOF
7858 /* end confdefs.h. */
7859 #include <$ac_header>
7861 if { (ac_try="$ac_cpp conftest.$ac_ext"
7863 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7864 *) ac_try_echo=$ac_try;;
7866 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7867 $as_echo "$ac_try_echo") >&5
7868 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7870 grep -v '^ *+' conftest.er1 >conftest.err
7872 cat conftest.err >&5
7873 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7874 (exit $ac_status); } >/dev/null && {
7875 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7876 test ! -s conftest.err
7878 ac_header_preproc=yes
7880 $as_echo "$as_me: failed program was:" >&5
7881 sed 's/^/| /' conftest.$ac_ext >&5
7883 ac_header_preproc=no
7886 rm -f conftest.err conftest.$ac_ext
7887 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7888 $as_echo "$ac_header_preproc" >&6; }
7890 # So? What about this header?
7891 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7893 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7894 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7895 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7896 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7897 ac_header_preproc=yes
7900 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7901 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7902 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7903 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7904 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7905 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7906 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7907 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7908 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7909 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7910 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7911 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7913 ## ----------------------------------- ##
7914 ## Report this to andreas@eversberg.eu ##
7915 ## ----------------------------------- ##
7917 ) | sed "s/^/$as_me: WARNING: /" >&2
7920 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
7921 $as_echo_n "checking for $ac_header... " >&6; }
7922 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7923 $as_echo_n "(cached) " >&6
7925 eval "$as_ac_Header=\$ac_header_preproc"
7927 ac_res=`eval 'as_val=${'$as_ac_Header'}
7928 $as_echo "$as_val"'`
7929 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7930 $as_echo "$ac_res" >&6; }
7933 as_val=`eval 'as_val=${'$as_ac_Header'}
7934 $as_echo "$as_val"'`
7935 if test "x$as_val" = x""yes; then
7936 cat >>confdefs.h <<_ACEOF
7937 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7946 for ac_func in fork vfork
7948 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
7949 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
7950 $as_echo_n "checking for $ac_func... " >&6; }
7951 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
7952 $as_echo_n "(cached) " >&6
7954 cat >conftest.$ac_ext <<_ACEOF
7957 cat confdefs.h >>conftest.$ac_ext
7958 cat >>conftest.$ac_ext <<_ACEOF
7959 /* end confdefs.h. */
7960 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7961 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7962 #define $ac_func innocuous_$ac_func
7964 /* System header to define __stub macros and hopefully few prototypes,
7965 which can conflict with char $ac_func (); below.
7966 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7967 <limits.h> exists even on freestanding compilers. */
7970 # include <limits.h>
7972 # include <assert.h>
7977 /* Override any GCC internal prototype to avoid an error.
7978 Use char because int might match the return type of a GCC
7979 builtin and then its argument prototype would still apply. */
7984 /* The GNU C library defines this for functions which it implements
7985 to always fail with ENOSYS. Some functions are actually named
7986 something starting with __ and the normal name is an alias. */
7987 #if defined __stub_$ac_func || defined __stub___$ac_func
7999 rm -f conftest.$ac_objext conftest$ac_exeext
8000 if { (ac_try="$ac_link"
8002 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8003 *) ac_try_echo=$ac_try;;
8005 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8006 $as_echo "$ac_try_echo") >&5
8007 (eval "$ac_link") 2>conftest.er1
8009 grep -v '^ *+' conftest.er1 >conftest.err
8011 cat conftest.err >&5
8012 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8013 (exit $ac_status); } && {
8014 test -z "$ac_c_werror_flag" ||
8015 test ! -s conftest.err
8016 } && test -s conftest$ac_exeext && {
8017 test "$cross_compiling" = yes ||
8018 $as_test_x conftest$ac_exeext
8020 eval "$as_ac_var=yes"
8022 $as_echo "$as_me: failed program was:" >&5
8023 sed 's/^/| /' conftest.$ac_ext >&5
8025 eval "$as_ac_var=no"
8028 rm -rf conftest.dSYM
8029 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8030 conftest$ac_exeext conftest.$ac_ext
8032 ac_res=`eval 'as_val=${'$as_ac_var'}
8033 $as_echo "$as_val"'`
8034 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
8035 $as_echo "$ac_res" >&6; }
8036 as_val=`eval 'as_val=${'$as_ac_var'}
8037 $as_echo "$as_val"'`
8038 if test "x$as_val" = x""yes; then
8039 cat >>confdefs.h <<_ACEOF
8040 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
8046 if test "x$ac_cv_func_fork" = xyes; then
8047 { $as_echo "$as_me:$LINENO: checking for working fork" >&5
8048 $as_echo_n "checking for working fork... " >&6; }
8049 if test "${ac_cv_func_fork_works+set}" = set; then
8050 $as_echo_n "(cached) " >&6
8052 if test "$cross_compiling" = yes; then
8053 ac_cv_func_fork_works=cross
8055 cat >conftest.$ac_ext <<_ACEOF
8058 cat confdefs.h >>conftest.$ac_ext
8059 cat >>conftest.$ac_ext <<_ACEOF
8060 /* end confdefs.h. */
8061 $ac_includes_default
8066 /* By Ruediger Kuhlmann. */
8073 rm -f conftest$ac_exeext
8074 if { (ac_try="$ac_link"
8076 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8077 *) ac_try_echo=$ac_try;;
8079 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8080 $as_echo "$ac_try_echo") >&5
8081 (eval "$ac_link") 2>&5
8083 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8084 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8085 { (case "(($ac_try" in
8086 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8087 *) ac_try_echo=$ac_try;;
8089 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8090 $as_echo "$ac_try_echo") >&5
8091 (eval "$ac_try") 2>&5
8093 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8094 (exit $ac_status); }; }; then
8095 ac_cv_func_fork_works=yes
8097 $as_echo "$as_me: program exited with status $ac_status" >&5
8098 $as_echo "$as_me: failed program was:" >&5
8099 sed 's/^/| /' conftest.$ac_ext >&5
8102 ac_cv_func_fork_works=no
8104 rm -rf conftest.dSYM
8105 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8110 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
8111 $as_echo "$ac_cv_func_fork_works" >&6; }
8114 ac_cv_func_fork_works=$ac_cv_func_fork
8116 if test "x$ac_cv_func_fork_works" = xcross; then
8118 *-*-amigaos* | *-*-msdosdjgpp*)
8119 # Override, as these systems have only a dummy fork() stub
8120 ac_cv_func_fork_works=no
8123 ac_cv_func_fork_works=yes
8126 { $as_echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
8127 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
8129 ac_cv_func_vfork_works=$ac_cv_func_vfork
8130 if test "x$ac_cv_func_vfork" = xyes; then
8131 { $as_echo "$as_me:$LINENO: checking for working vfork" >&5
8132 $as_echo_n "checking for working vfork... " >&6; }
8133 if test "${ac_cv_func_vfork_works+set}" = set; then
8134 $as_echo_n "(cached) " >&6
8136 if test "$cross_compiling" = yes; then
8137 ac_cv_func_vfork_works=cross
8139 cat >conftest.$ac_ext <<_ACEOF
8142 cat confdefs.h >>conftest.$ac_ext
8143 cat >>conftest.$ac_ext <<_ACEOF
8144 /* end confdefs.h. */
8145 /* Thanks to Paul Eggert for this test. */
8146 $ac_includes_default
8147 #include <sys/wait.h>
8151 /* On some sparc systems, changes by the child to local and incoming
8152 argument registers are propagated back to the parent. The compiler
8153 is told about this with #include <vfork.h>, but some compilers
8154 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
8155 static variable whose address is put into a register that is
8156 clobbered by the vfork. */
8159 sparc_address_test (int arg)
8161 sparc_address_test (arg) int arg;
8182 pid_t parent = getpid ();
8185 sparc_address_test (0);
8190 /* Here is another test for sparc vfork register problems. This
8191 test uses lots of local variables, at least as many local
8192 variables as main has allocated so far including compiler
8193 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
8194 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
8195 reuse the register of parent for one of the local variables,
8196 since it will think that parent can't possibly be used any more
8197 in this routine. Assigning to the local variable will thus
8198 munge parent in the parent process. */
8200 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
8201 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
8202 /* Convince the compiler that p..p7 are live; otherwise, it might
8203 use the same hardware register for all 8 local variables. */
8204 if (p != p1 || p != p2 || p != p3 || p != p4
8205 || p != p5 || p != p6 || p != p7)
8208 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
8209 from child file descriptors. If the child closes a descriptor
8210 before it execs or exits, this munges the parent's descriptor
8211 as well. Test for this by closing stdout in the child. */
8212 _exit(close(fileno(stdout)) != 0);
8217 while (wait(&status) != child)
8220 /* Was there some problem with vforking? */
8223 /* Did the child fail? (This shouldn't happen.) */
8226 /* Did the vfork/compiler bug occur? */
8227 || parent != getpid()
8229 /* Did the file descriptor bug occur? */
8230 || fstat(fileno(stdout), &st) != 0
8235 rm -f conftest$ac_exeext
8236 if { (ac_try="$ac_link"
8238 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8239 *) ac_try_echo=$ac_try;;
8241 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8242 $as_echo "$ac_try_echo") >&5
8243 (eval "$ac_link") 2>&5
8245 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8246 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8247 { (case "(($ac_try" in
8248 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8249 *) ac_try_echo=$ac_try;;
8251 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8252 $as_echo "$ac_try_echo") >&5
8253 (eval "$ac_try") 2>&5
8255 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8256 (exit $ac_status); }; }; then
8257 ac_cv_func_vfork_works=yes
8259 $as_echo "$as_me: program exited with status $ac_status" >&5
8260 $as_echo "$as_me: failed program was:" >&5
8261 sed 's/^/| /' conftest.$ac_ext >&5
8264 ac_cv_func_vfork_works=no
8266 rm -rf conftest.dSYM
8267 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8272 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
8273 $as_echo "$ac_cv_func_vfork_works" >&6; }
8276 if test "x$ac_cv_func_fork_works" = xcross; then
8277 ac_cv_func_vfork_works=$ac_cv_func_vfork
8278 { $as_echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
8279 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
8282 if test "x$ac_cv_func_vfork_works" = xyes; then
8284 cat >>confdefs.h <<\_ACEOF
8285 #define HAVE_WORKING_VFORK 1
8290 cat >>confdefs.h <<\_ACEOF
8295 if test "x$ac_cv_func_fork_works" = xyes; then
8297 cat >>confdefs.h <<\_ACEOF
8298 #define HAVE_WORKING_FORK 1
8303 if test $ac_cv_c_compiler_gnu = yes; then
8304 { $as_echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
8305 $as_echo_n "checking whether $CC needs -traditional... " >&6; }
8306 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
8307 $as_echo_n "(cached) " >&6
8309 ac_pattern="Autoconf.*'x'"
8310 cat >conftest.$ac_ext <<_ACEOF
8313 cat confdefs.h >>conftest.$ac_ext
8314 cat >>conftest.$ac_ext <<_ACEOF
8315 /* end confdefs.h. */
8319 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8320 $EGREP "$ac_pattern" >/dev/null 2>&1; then
8321 ac_cv_prog_gcc_traditional=yes
8323 ac_cv_prog_gcc_traditional=no
8328 if test $ac_cv_prog_gcc_traditional = no; then
8329 cat >conftest.$ac_ext <<_ACEOF
8332 cat confdefs.h >>conftest.$ac_ext
8333 cat >>conftest.$ac_ext <<_ACEOF
8334 /* end confdefs.h. */
8338 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8339 $EGREP "$ac_pattern" >/dev/null 2>&1; then
8340 ac_cv_prog_gcc_traditional=yes
8346 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
8347 $as_echo "$ac_cv_prog_gcc_traditional" >&6; }
8348 if test $ac_cv_prog_gcc_traditional = yes; then
8349 CC="$CC -traditional"
8353 { $as_echo "$as_me:$LINENO: checking whether lstat dereferences a symlink specified with a trailing slash" >&5
8354 $as_echo_n "checking whether lstat dereferences a symlink specified with a trailing slash... " >&6; }
8355 if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then
8356 $as_echo_n "(cached) " >&6
8358 rm -f conftest.sym conftest.file
8360 if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
8361 if test "$cross_compiling" = yes; then
8362 ac_cv_func_lstat_dereferences_slashed_symlink=no
8364 cat >conftest.$ac_ext <<_ACEOF
8367 cat confdefs.h >>conftest.$ac_ext
8368 cat >>conftest.$ac_ext <<_ACEOF
8369 /* end confdefs.h. */
8370 $ac_includes_default
8375 /* Linux will dereference the symlink and fail.
8376 That is better in the sense that it means we will not
8377 have to compile and use the lstat wrapper. */
8378 return lstat ("conftest.sym/", &sbuf) == 0;
8383 rm -f conftest$ac_exeext
8384 if { (ac_try="$ac_link"
8386 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8387 *) ac_try_echo=$ac_try;;
8389 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8390 $as_echo "$ac_try_echo") >&5
8391 (eval "$ac_link") 2>&5
8393 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8394 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8395 { (case "(($ac_try" in
8396 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8397 *) ac_try_echo=$ac_try;;
8399 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8400 $as_echo "$ac_try_echo") >&5
8401 (eval "$ac_try") 2>&5
8403 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8404 (exit $ac_status); }; }; then
8405 ac_cv_func_lstat_dereferences_slashed_symlink=yes
8407 $as_echo "$as_me: program exited with status $ac_status" >&5
8408 $as_echo "$as_me: failed program was:" >&5
8409 sed 's/^/| /' conftest.$ac_ext >&5
8412 ac_cv_func_lstat_dereferences_slashed_symlink=no
8414 rm -rf conftest.dSYM
8415 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8420 # If the `ln -s' command failed, then we probably don't even
8421 # have an lstat function.
8422 ac_cv_func_lstat_dereferences_slashed_symlink=no
8424 rm -f conftest.sym conftest.file
8427 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
8428 $as_echo "$ac_cv_func_lstat_dereferences_slashed_symlink" >&6; }
8430 test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
8432 cat >>confdefs.h <<_ACEOF
8433 #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
8437 if test $ac_cv_func_lstat_dereferences_slashed_symlink = no; then
8438 case " $LIBOBJS " in
8439 *" lstat.$ac_objext "* ) ;;
8440 *) LIBOBJS="$LIBOBJS lstat.$ac_objext"
8446 { $as_echo "$as_me:$LINENO: checking whether lstat accepts an empty string" >&5
8447 $as_echo_n "checking whether lstat accepts an empty string... " >&6; }
8448 if test "${ac_cv_func_lstat_empty_string_bug+set}" = set; then
8449 $as_echo_n "(cached) " >&6
8451 if test "$cross_compiling" = yes; then
8452 ac_cv_func_lstat_empty_string_bug=yes
8454 cat >conftest.$ac_ext <<_ACEOF
8457 cat confdefs.h >>conftest.$ac_ext
8458 cat >>conftest.$ac_ext <<_ACEOF
8459 /* end confdefs.h. */
8460 $ac_includes_default
8465 return lstat ("", &sbuf) == 0;
8470 rm -f conftest$ac_exeext
8471 if { (ac_try="$ac_link"
8473 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8474 *) ac_try_echo=$ac_try;;
8476 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8477 $as_echo "$ac_try_echo") >&5
8478 (eval "$ac_link") 2>&5
8480 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8481 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8482 { (case "(($ac_try" in
8483 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8484 *) ac_try_echo=$ac_try;;
8486 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8487 $as_echo "$ac_try_echo") >&5
8488 (eval "$ac_try") 2>&5
8490 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8491 (exit $ac_status); }; }; then
8492 ac_cv_func_lstat_empty_string_bug=no
8494 $as_echo "$as_me: program exited with status $ac_status" >&5
8495 $as_echo "$as_me: failed program was:" >&5
8496 sed 's/^/| /' conftest.$ac_ext >&5
8499 ac_cv_func_lstat_empty_string_bug=yes
8501 rm -rf conftest.dSYM
8502 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8507 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_lstat_empty_string_bug" >&5
8508 $as_echo "$ac_cv_func_lstat_empty_string_bug" >&6; }
8509 if test $ac_cv_func_lstat_empty_string_bug = yes; then
8510 case " $LIBOBJS " in
8511 *" lstat.$ac_objext "* ) ;;
8512 *) LIBOBJS="$LIBOBJS lstat.$ac_objext"
8517 cat >>confdefs.h <<_ACEOF
8518 #define HAVE_LSTAT_EMPTY_STRING_BUG 1
8523 { $as_echo "$as_me:$LINENO: checking whether lstat dereferences a symlink specified with a trailing slash" >&5
8524 $as_echo_n "checking whether lstat dereferences a symlink specified with a trailing slash... " >&6; }
8525 if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then
8526 $as_echo_n "(cached) " >&6
8528 rm -f conftest.sym conftest.file
8530 if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
8531 if test "$cross_compiling" = yes; then
8532 ac_cv_func_lstat_dereferences_slashed_symlink=no
8534 cat >conftest.$ac_ext <<_ACEOF
8537 cat confdefs.h >>conftest.$ac_ext
8538 cat >>conftest.$ac_ext <<_ACEOF
8539 /* end confdefs.h. */
8540 $ac_includes_default
8545 /* Linux will dereference the symlink and fail.
8546 That is better in the sense that it means we will not
8547 have to compile and use the lstat wrapper. */
8548 return lstat ("conftest.sym/", &sbuf) == 0;
8553 rm -f conftest$ac_exeext
8554 if { (ac_try="$ac_link"
8556 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8557 *) ac_try_echo=$ac_try;;
8559 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8560 $as_echo "$ac_try_echo") >&5
8561 (eval "$ac_link") 2>&5
8563 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8564 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8565 { (case "(($ac_try" in
8566 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8567 *) ac_try_echo=$ac_try;;
8569 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8570 $as_echo "$ac_try_echo") >&5
8571 (eval "$ac_try") 2>&5
8573 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8574 (exit $ac_status); }; }; then
8575 ac_cv_func_lstat_dereferences_slashed_symlink=yes
8577 $as_echo "$as_me: program exited with status $ac_status" >&5
8578 $as_echo "$as_me: failed program was:" >&5
8579 sed 's/^/| /' conftest.$ac_ext >&5
8582 ac_cv_func_lstat_dereferences_slashed_symlink=no
8584 rm -rf conftest.dSYM
8585 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8590 # If the `ln -s' command failed, then we probably don't even
8591 # have an lstat function.
8592 ac_cv_func_lstat_dereferences_slashed_symlink=no
8594 rm -f conftest.sym conftest.file
8597 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
8598 $as_echo "$ac_cv_func_lstat_dereferences_slashed_symlink" >&6; }
8600 test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
8602 cat >>confdefs.h <<_ACEOF
8603 #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
8607 if test $ac_cv_func_lstat_dereferences_slashed_symlink = no; then
8608 case " $LIBOBJS " in
8609 *" lstat.$ac_objext "* ) ;;
8610 *) LIBOBJS="$LIBOBJS lstat.$ac_objext"
8617 for ac_header in stdlib.h
8619 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8620 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8621 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
8622 $as_echo_n "checking for $ac_header... " >&6; }
8623 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8624 $as_echo_n "(cached) " >&6
8626 ac_res=`eval 'as_val=${'$as_ac_Header'}
8627 $as_echo "$as_val"'`
8628 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
8629 $as_echo "$ac_res" >&6; }
8631 # Is the header compilable?
8632 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
8633 $as_echo_n "checking $ac_header usability... " >&6; }
8634 cat >conftest.$ac_ext <<_ACEOF
8637 cat confdefs.h >>conftest.$ac_ext
8638 cat >>conftest.$ac_ext <<_ACEOF
8639 /* end confdefs.h. */
8640 $ac_includes_default
8641 #include <$ac_header>
8643 rm -f conftest.$ac_objext
8644 if { (ac_try="$ac_compile"
8646 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8647 *) ac_try_echo=$ac_try;;
8649 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8650 $as_echo "$ac_try_echo") >&5
8651 (eval "$ac_compile") 2>conftest.er1
8653 grep -v '^ *+' conftest.er1 >conftest.err
8655 cat conftest.err >&5
8656 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8657 (exit $ac_status); } && {
8658 test -z "$ac_c_werror_flag" ||
8659 test ! -s conftest.err
8660 } && test -s conftest.$ac_objext; then
8661 ac_header_compiler=yes
8663 $as_echo "$as_me: failed program was:" >&5
8664 sed 's/^/| /' conftest.$ac_ext >&5
8666 ac_header_compiler=no
8669 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8670 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8671 $as_echo "$ac_header_compiler" >&6; }
8673 # Is the header present?
8674 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
8675 $as_echo_n "checking $ac_header presence... " >&6; }
8676 cat >conftest.$ac_ext <<_ACEOF
8679 cat confdefs.h >>conftest.$ac_ext
8680 cat >>conftest.$ac_ext <<_ACEOF
8681 /* end confdefs.h. */
8682 #include <$ac_header>
8684 if { (ac_try="$ac_cpp conftest.$ac_ext"
8686 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8687 *) ac_try_echo=$ac_try;;
8689 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8690 $as_echo "$ac_try_echo") >&5
8691 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8693 grep -v '^ *+' conftest.er1 >conftest.err
8695 cat conftest.err >&5
8696 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8697 (exit $ac_status); } >/dev/null && {
8698 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
8699 test ! -s conftest.err
8701 ac_header_preproc=yes
8703 $as_echo "$as_me: failed program was:" >&5
8704 sed 's/^/| /' conftest.$ac_ext >&5
8706 ac_header_preproc=no
8709 rm -f conftest.err conftest.$ac_ext
8710 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8711 $as_echo "$ac_header_preproc" >&6; }
8713 # So? What about this header?
8714 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8716 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8717 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8718 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8719 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8720 ac_header_preproc=yes
8723 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8724 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8725 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8726 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8727 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8728 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8729 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8730 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8731 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8732 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8733 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8734 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8736 ## ----------------------------------- ##
8737 ## Report this to andreas@eversberg.eu ##
8738 ## ----------------------------------- ##
8740 ) | sed "s/^/$as_me: WARNING: /" >&2
8743 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
8744 $as_echo_n "checking for $ac_header... " >&6; }
8745 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8746 $as_echo_n "(cached) " >&6
8748 eval "$as_ac_Header=\$ac_header_preproc"
8750 ac_res=`eval 'as_val=${'$as_ac_Header'}
8751 $as_echo "$as_val"'`
8752 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
8753 $as_echo "$ac_res" >&6; }
8756 as_val=`eval 'as_val=${'$as_ac_Header'}
8757 $as_echo "$as_val"'`
8758 if test "x$as_val" = x""yes; then
8759 cat >>confdefs.h <<_ACEOF
8760 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8767 { $as_echo "$as_me:$LINENO: checking for GNU libc compatible malloc" >&5
8768 $as_echo_n "checking for GNU libc compatible malloc... " >&6; }
8769 if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then
8770 $as_echo_n "(cached) " >&6
8772 if test "$cross_compiling" = yes; then
8773 ac_cv_func_malloc_0_nonnull=no
8775 cat >conftest.$ac_ext <<_ACEOF
8778 cat confdefs.h >>conftest.$ac_ext
8779 cat >>conftest.$ac_ext <<_ACEOF
8780 /* end confdefs.h. */
8781 #if defined STDC_HEADERS || defined HAVE_STDLIB_H
8782 # include <stdlib.h>
8790 return ! malloc (0);
8795 rm -f conftest$ac_exeext
8796 if { (ac_try="$ac_link"
8798 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8799 *) ac_try_echo=$ac_try;;
8801 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8802 $as_echo "$ac_try_echo") >&5
8803 (eval "$ac_link") 2>&5
8805 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8806 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8807 { (case "(($ac_try" in
8808 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8809 *) ac_try_echo=$ac_try;;
8811 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8812 $as_echo "$ac_try_echo") >&5
8813 (eval "$ac_try") 2>&5
8815 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8816 (exit $ac_status); }; }; then
8817 ac_cv_func_malloc_0_nonnull=yes
8819 $as_echo "$as_me: program exited with status $ac_status" >&5
8820 $as_echo "$as_me: failed program was:" >&5
8821 sed 's/^/| /' conftest.$ac_ext >&5
8824 ac_cv_func_malloc_0_nonnull=no
8826 rm -rf conftest.dSYM
8827 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8832 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_malloc_0_nonnull" >&5
8833 $as_echo "$ac_cv_func_malloc_0_nonnull" >&6; }
8834 if test $ac_cv_func_malloc_0_nonnull = yes; then
8836 cat >>confdefs.h <<\_ACEOF
8837 #define HAVE_MALLOC 1
8841 cat >>confdefs.h <<\_ACEOF
8842 #define HAVE_MALLOC 0
8845 case " $LIBOBJS " in
8846 *" malloc.$ac_objext "* ) ;;
8847 *) LIBOBJS="$LIBOBJS malloc.$ac_objext"
8852 cat >>confdefs.h <<\_ACEOF
8853 #define malloc rpl_malloc
8860 { $as_echo "$as_me:$LINENO: checking for working memcmp" >&5
8861 $as_echo_n "checking for working memcmp... " >&6; }
8862 if test "${ac_cv_func_memcmp_working+set}" = set; then
8863 $as_echo_n "(cached) " >&6
8865 if test "$cross_compiling" = yes; then
8866 ac_cv_func_memcmp_working=no
8868 cat >conftest.$ac_ext <<_ACEOF
8871 cat confdefs.h >>conftest.$ac_ext
8872 cat >>conftest.$ac_ext <<_ACEOF
8873 /* end confdefs.h. */
8874 $ac_includes_default
8879 /* Some versions of memcmp are not 8-bit clean. */
8880 char c0 = '\100', c1 = '\200', c2 = '\201';
8881 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
8884 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
8885 or more and with at least one buffer not starting on a 4-byte boundary.
8886 William Lewis provided this test program. */
8891 for (i = 0; i < 4; i++)
8895 strcpy (a, "--------01111111");
8896 strcpy (b, "--------10000000");
8897 if (memcmp (a, b, 16) >= 0)
8907 rm -f conftest$ac_exeext
8908 if { (ac_try="$ac_link"
8910 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8911 *) ac_try_echo=$ac_try;;
8913 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8914 $as_echo "$ac_try_echo") >&5
8915 (eval "$ac_link") 2>&5
8917 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8918 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8919 { (case "(($ac_try" in
8920 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8921 *) ac_try_echo=$ac_try;;
8923 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8924 $as_echo "$ac_try_echo") >&5
8925 (eval "$ac_try") 2>&5
8927 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8928 (exit $ac_status); }; }; then
8929 ac_cv_func_memcmp_working=yes
8931 $as_echo "$as_me: program exited with status $ac_status" >&5
8932 $as_echo "$as_me: failed program was:" >&5
8933 sed 's/^/| /' conftest.$ac_ext >&5
8936 ac_cv_func_memcmp_working=no
8938 rm -rf conftest.dSYM
8939 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8944 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
8945 $as_echo "$ac_cv_func_memcmp_working" >&6; }
8946 test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
8947 *" memcmp.$ac_objext "* ) ;;
8948 *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
8953 { $as_echo "$as_me:$LINENO: checking return type of signal handlers" >&5
8954 $as_echo_n "checking return type of signal handlers... " >&6; }
8955 if test "${ac_cv_type_signal+set}" = set; then
8956 $as_echo_n "(cached) " >&6
8958 cat >conftest.$ac_ext <<_ACEOF
8961 cat confdefs.h >>conftest.$ac_ext
8962 cat >>conftest.$ac_ext <<_ACEOF
8963 /* end confdefs.h. */
8964 #include <sys/types.h>
8970 return *(signal (0, 0)) (0) == 1;
8975 rm -f conftest.$ac_objext
8976 if { (ac_try="$ac_compile"
8978 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8979 *) ac_try_echo=$ac_try;;
8981 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8982 $as_echo "$ac_try_echo") >&5
8983 (eval "$ac_compile") 2>conftest.er1
8985 grep -v '^ *+' conftest.er1 >conftest.err
8987 cat conftest.err >&5
8988 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8989 (exit $ac_status); } && {
8990 test -z "$ac_c_werror_flag" ||
8991 test ! -s conftest.err
8992 } && test -s conftest.$ac_objext; then
8993 ac_cv_type_signal=int
8995 $as_echo "$as_me: failed program was:" >&5
8996 sed 's/^/| /' conftest.$ac_ext >&5
8998 ac_cv_type_signal=void
9001 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9003 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
9004 $as_echo "$ac_cv_type_signal" >&6; }
9006 cat >>confdefs.h <<_ACEOF
9007 #define RETSIGTYPE $ac_cv_type_signal
9011 { $as_echo "$as_me:$LINENO: checking for working strnlen" >&5
9012 $as_echo_n "checking for working strnlen... " >&6; }
9013 if test "${ac_cv_func_strnlen_working+set}" = set; then
9014 $as_echo_n "(cached) " >&6
9016 if test "$cross_compiling" = yes; then
9017 ac_cv_func_strnlen_working=no
9019 cat >conftest.$ac_ext <<_ACEOF
9022 cat confdefs.h >>conftest.$ac_ext
9023 cat >>conftest.$ac_ext <<_ACEOF
9024 /* end confdefs.h. */
9025 $ac_includes_default
9031 #define S_LEN (sizeof S - 1)
9033 /* At least one implementation is buggy: that of AIX 4.3 would
9034 give strnlen (S, 1) == 3. */
9037 for (i = 0; i < S_LEN + 1; ++i)
9039 int expected = i <= S_LEN ? i : S_LEN;
9040 if (strnlen (S, i) != expected)
9049 rm -f conftest$ac_exeext
9050 if { (ac_try="$ac_link"
9052 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9053 *) ac_try_echo=$ac_try;;
9055 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9056 $as_echo "$ac_try_echo") >&5
9057 (eval "$ac_link") 2>&5
9059 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9060 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9061 { (case "(($ac_try" in
9062 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9063 *) ac_try_echo=$ac_try;;
9065 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9066 $as_echo "$ac_try_echo") >&5
9067 (eval "$ac_try") 2>&5
9069 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9070 (exit $ac_status); }; }; then
9071 ac_cv_func_strnlen_working=yes
9073 $as_echo "$as_me: program exited with status $ac_status" >&5
9074 $as_echo "$as_me: failed program was:" >&5
9075 sed 's/^/| /' conftest.$ac_ext >&5
9078 ac_cv_func_strnlen_working=no
9080 rm -rf conftest.dSYM
9081 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9086 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_strnlen_working" >&5
9087 $as_echo "$ac_cv_func_strnlen_working" >&6; }
9088 test $ac_cv_func_strnlen_working = no && case " $LIBOBJS " in
9089 *" strnlen.$ac_objext "* ) ;;
9090 *) LIBOBJS="$LIBOBJS strnlen.$ac_objext"
9095 { $as_echo "$as_me:$LINENO: checking for working strtod" >&5
9096 $as_echo_n "checking for working strtod... " >&6; }
9097 if test "${ac_cv_func_strtod+set}" = set; then
9098 $as_echo_n "(cached) " >&6
9100 if test "$cross_compiling" = yes; then
9101 ac_cv_func_strtod=no
9103 cat >conftest.$ac_ext <<_ACEOF
9106 cat confdefs.h >>conftest.$ac_ext
9107 cat >>conftest.$ac_ext <<_ACEOF
9108 /* end confdefs.h. */
9110 $ac_includes_default
9118 /* Some versions of Linux strtod mis-parse strings with leading '+'. */
9119 char *string = " +69";
9122 value = strtod (string, &term);
9123 if (value != 69 || term != (string + 4))
9128 /* Under Solaris 2.4, strtod returns the wrong value for the
9129 terminating character under some conditions. */
9130 char *string = "NaN";
9132 strtod (string, &term);
9133 if (term != string && *(term - 1) == 0)
9140 rm -f conftest$ac_exeext
9141 if { (ac_try="$ac_link"
9143 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9144 *) ac_try_echo=$ac_try;;
9146 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9147 $as_echo "$ac_try_echo") >&5
9148 (eval "$ac_link") 2>&5
9150 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9151 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9152 { (case "(($ac_try" in
9153 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9154 *) ac_try_echo=$ac_try;;
9156 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9157 $as_echo "$ac_try_echo") >&5
9158 (eval "$ac_try") 2>&5
9160 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9161 (exit $ac_status); }; }; then
9162 ac_cv_func_strtod=yes
9164 $as_echo "$as_me: program exited with status $ac_status" >&5
9165 $as_echo "$as_me: failed program was:" >&5
9166 sed 's/^/| /' conftest.$ac_ext >&5
9169 ac_cv_func_strtod=no
9171 rm -rf conftest.dSYM
9172 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9177 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_strtod" >&5
9178 $as_echo "$ac_cv_func_strtod" >&6; }
9179 if test $ac_cv_func_strtod = no; then
9180 case " $LIBOBJS " in
9181 *" strtod.$ac_objext "* ) ;;
9182 *) LIBOBJS="$LIBOBJS strtod.$ac_objext"
9186 { $as_echo "$as_me:$LINENO: checking for pow" >&5
9187 $as_echo_n "checking for pow... " >&6; }
9188 if test "${ac_cv_func_pow+set}" = set; then
9189 $as_echo_n "(cached) " >&6
9191 cat >conftest.$ac_ext <<_ACEOF
9194 cat confdefs.h >>conftest.$ac_ext
9195 cat >>conftest.$ac_ext <<_ACEOF
9196 /* end confdefs.h. */
9197 /* Define pow to an innocuous variant, in case <limits.h> declares pow.
9198 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9199 #define pow innocuous_pow
9201 /* System header to define __stub macros and hopefully few prototypes,
9202 which can conflict with char pow (); below.
9203 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9204 <limits.h> exists even on freestanding compilers. */
9207 # include <limits.h>
9209 # include <assert.h>
9214 /* Override any GCC internal prototype to avoid an error.
9215 Use char because int might match the return type of a GCC
9216 builtin and then its argument prototype would still apply. */
9221 /* The GNU C library defines this for functions which it implements
9222 to always fail with ENOSYS. Some functions are actually named
9223 something starting with __ and the normal name is an alias. */
9224 #if defined __stub_pow || defined __stub___pow
9236 rm -f conftest.$ac_objext conftest$ac_exeext
9237 if { (ac_try="$ac_link"
9239 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9240 *) ac_try_echo=$ac_try;;
9242 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9243 $as_echo "$ac_try_echo") >&5
9244 (eval "$ac_link") 2>conftest.er1
9246 grep -v '^ *+' conftest.er1 >conftest.err
9248 cat conftest.err >&5
9249 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9250 (exit $ac_status); } && {
9251 test -z "$ac_c_werror_flag" ||
9252 test ! -s conftest.err
9253 } && test -s conftest$ac_exeext && {
9254 test "$cross_compiling" = yes ||
9255 $as_test_x conftest$ac_exeext
9259 $as_echo "$as_me: failed program was:" >&5
9260 sed 's/^/| /' conftest.$ac_ext >&5
9265 rm -rf conftest.dSYM
9266 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9267 conftest$ac_exeext conftest.$ac_ext
9269 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_pow" >&5
9270 $as_echo "$ac_cv_func_pow" >&6; }
9272 if test $ac_cv_func_pow = no; then
9273 { $as_echo "$as_me:$LINENO: checking for pow in -lm" >&5
9274 $as_echo_n "checking for pow in -lm... " >&6; }
9275 if test "${ac_cv_lib_m_pow+set}" = set; then
9276 $as_echo_n "(cached) " >&6
9278 ac_check_lib_save_LIBS=$LIBS
9280 cat >conftest.$ac_ext <<_ACEOF
9283 cat confdefs.h >>conftest.$ac_ext
9284 cat >>conftest.$ac_ext <<_ACEOF
9285 /* end confdefs.h. */
9287 /* Override any GCC internal prototype to avoid an error.
9288 Use char because int might match the return type of a GCC
9289 builtin and then its argument prototype would still apply. */
9302 rm -f conftest.$ac_objext conftest$ac_exeext
9303 if { (ac_try="$ac_link"
9305 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9306 *) ac_try_echo=$ac_try;;
9308 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9309 $as_echo "$ac_try_echo") >&5
9310 (eval "$ac_link") 2>conftest.er1
9312 grep -v '^ *+' conftest.er1 >conftest.err
9314 cat conftest.err >&5
9315 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9316 (exit $ac_status); } && {
9317 test -z "$ac_c_werror_flag" ||
9318 test ! -s conftest.err
9319 } && test -s conftest$ac_exeext && {
9320 test "$cross_compiling" = yes ||
9321 $as_test_x conftest$ac_exeext
9325 $as_echo "$as_me: failed program was:" >&5
9326 sed 's/^/| /' conftest.$ac_ext >&5
9331 rm -rf conftest.dSYM
9332 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9333 conftest$ac_exeext conftest.$ac_ext
9334 LIBS=$ac_check_lib_save_LIBS
9336 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_m_pow" >&5
9337 $as_echo "$ac_cv_lib_m_pow" >&6; }
9338 if test "x$ac_cv_lib_m_pow" = x""yes; then
9341 { $as_echo "$as_me:$LINENO: WARNING: cannot find library containing definition of pow" >&5
9342 $as_echo "$as_me: WARNING: cannot find library containing definition of pow" >&2;}
9350 for ac_func in vprintf
9352 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9353 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
9354 $as_echo_n "checking for $ac_func... " >&6; }
9355 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
9356 $as_echo_n "(cached) " >&6
9358 cat >conftest.$ac_ext <<_ACEOF
9361 cat confdefs.h >>conftest.$ac_ext
9362 cat >>conftest.$ac_ext <<_ACEOF
9363 /* end confdefs.h. */
9364 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9365 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9366 #define $ac_func innocuous_$ac_func
9368 /* System header to define __stub macros and hopefully few prototypes,
9369 which can conflict with char $ac_func (); below.
9370 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9371 <limits.h> exists even on freestanding compilers. */
9374 # include <limits.h>
9376 # include <assert.h>
9381 /* Override any GCC internal prototype to avoid an error.
9382 Use char because int might match the return type of a GCC
9383 builtin and then its argument prototype would still apply. */
9388 /* The GNU C library defines this for functions which it implements
9389 to always fail with ENOSYS. Some functions are actually named
9390 something starting with __ and the normal name is an alias. */
9391 #if defined __stub_$ac_func || defined __stub___$ac_func
9403 rm -f conftest.$ac_objext conftest$ac_exeext
9404 if { (ac_try="$ac_link"
9406 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9407 *) ac_try_echo=$ac_try;;
9409 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9410 $as_echo "$ac_try_echo") >&5
9411 (eval "$ac_link") 2>conftest.er1
9413 grep -v '^ *+' conftest.er1 >conftest.err
9415 cat conftest.err >&5
9416 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9417 (exit $ac_status); } && {
9418 test -z "$ac_c_werror_flag" ||
9419 test ! -s conftest.err
9420 } && test -s conftest$ac_exeext && {
9421 test "$cross_compiling" = yes ||
9422 $as_test_x conftest$ac_exeext
9424 eval "$as_ac_var=yes"
9426 $as_echo "$as_me: failed program was:" >&5
9427 sed 's/^/| /' conftest.$ac_ext >&5
9429 eval "$as_ac_var=no"
9432 rm -rf conftest.dSYM
9433 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9434 conftest$ac_exeext conftest.$ac_ext
9436 ac_res=`eval 'as_val=${'$as_ac_var'}
9437 $as_echo "$as_val"'`
9438 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
9439 $as_echo "$ac_res" >&6; }
9440 as_val=`eval 'as_val=${'$as_ac_var'}
9441 $as_echo "$as_val"'`
9442 if test "x$as_val" = x""yes; then
9443 cat >>confdefs.h <<_ACEOF
9444 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9447 { $as_echo "$as_me:$LINENO: checking for _doprnt" >&5
9448 $as_echo_n "checking for _doprnt... " >&6; }
9449 if test "${ac_cv_func__doprnt+set}" = set; then
9450 $as_echo_n "(cached) " >&6
9452 cat >conftest.$ac_ext <<_ACEOF
9455 cat confdefs.h >>conftest.$ac_ext
9456 cat >>conftest.$ac_ext <<_ACEOF
9457 /* end confdefs.h. */
9458 /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
9459 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9460 #define _doprnt innocuous__doprnt
9462 /* System header to define __stub macros and hopefully few prototypes,
9463 which can conflict with char _doprnt (); below.
9464 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9465 <limits.h> exists even on freestanding compilers. */
9468 # include <limits.h>
9470 # include <assert.h>
9475 /* Override any GCC internal prototype to avoid an error.
9476 Use char because int might match the return type of a GCC
9477 builtin and then its argument prototype would still apply. */
9482 /* The GNU C library defines this for functions which it implements
9483 to always fail with ENOSYS. Some functions are actually named
9484 something starting with __ and the normal name is an alias. */
9485 #if defined __stub__doprnt || defined __stub____doprnt
9497 rm -f conftest.$ac_objext conftest$ac_exeext
9498 if { (ac_try="$ac_link"
9500 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9501 *) ac_try_echo=$ac_try;;
9503 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9504 $as_echo "$ac_try_echo") >&5
9505 (eval "$ac_link") 2>conftest.er1
9507 grep -v '^ *+' conftest.er1 >conftest.err
9509 cat conftest.err >&5
9510 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9511 (exit $ac_status); } && {
9512 test -z "$ac_c_werror_flag" ||
9513 test ! -s conftest.err
9514 } && test -s conftest$ac_exeext && {
9515 test "$cross_compiling" = yes ||
9516 $as_test_x conftest$ac_exeext
9518 ac_cv_func__doprnt=yes
9520 $as_echo "$as_me: failed program was:" >&5
9521 sed 's/^/| /' conftest.$ac_ext >&5
9523 ac_cv_func__doprnt=no
9526 rm -rf conftest.dSYM
9527 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9528 conftest$ac_exeext conftest.$ac_ext
9530 { $as_echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
9531 $as_echo "$ac_cv_func__doprnt" >&6; }
9532 if test "x$ac_cv_func__doprnt" = x""yes; then
9534 cat >>confdefs.h <<\_ACEOF
9535 #define HAVE_DOPRNT 1
9556 for ac_func in gettimeofday memmove memset mkdir socket strcasecmp strchr strerror strncasecmp strstr strtol strtoul
9558 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9559 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
9560 $as_echo_n "checking for $ac_func... " >&6; }
9561 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
9562 $as_echo_n "(cached) " >&6
9564 cat >conftest.$ac_ext <<_ACEOF
9567 cat confdefs.h >>conftest.$ac_ext
9568 cat >>conftest.$ac_ext <<_ACEOF
9569 /* end confdefs.h. */
9570 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9571 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9572 #define $ac_func innocuous_$ac_func
9574 /* System header to define __stub macros and hopefully few prototypes,
9575 which can conflict with char $ac_func (); below.
9576 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9577 <limits.h> exists even on freestanding compilers. */
9580 # include <limits.h>
9582 # include <assert.h>
9587 /* Override any GCC internal prototype to avoid an error.
9588 Use char because int might match the return type of a GCC
9589 builtin and then its argument prototype would still apply. */
9594 /* The GNU C library defines this for functions which it implements
9595 to always fail with ENOSYS. Some functions are actually named
9596 something starting with __ and the normal name is an alias. */
9597 #if defined __stub_$ac_func || defined __stub___$ac_func
9609 rm -f conftest.$ac_objext conftest$ac_exeext
9610 if { (ac_try="$ac_link"
9612 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9613 *) ac_try_echo=$ac_try;;
9615 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9616 $as_echo "$ac_try_echo") >&5
9617 (eval "$ac_link") 2>conftest.er1
9619 grep -v '^ *+' conftest.er1 >conftest.err
9621 cat conftest.err >&5
9622 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9623 (exit $ac_status); } && {
9624 test -z "$ac_c_werror_flag" ||
9625 test ! -s conftest.err
9626 } && test -s conftest$ac_exeext && {
9627 test "$cross_compiling" = yes ||
9628 $as_test_x conftest$ac_exeext
9630 eval "$as_ac_var=yes"
9632 $as_echo "$as_me: failed program was:" >&5
9633 sed 's/^/| /' conftest.$ac_ext >&5
9635 eval "$as_ac_var=no"
9638 rm -rf conftest.dSYM
9639 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9640 conftest$ac_exeext conftest.$ac_ext
9642 ac_res=`eval 'as_val=${'$as_ac_var'}
9643 $as_echo "$as_val"'`
9644 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
9645 $as_echo "$ac_res" >&6; }
9646 as_val=`eval 'as_val=${'$as_ac_var'}
9647 $as_echo "$as_val"'`
9648 if test "x$as_val" = x""yes; then
9649 cat >>confdefs.h <<_ACEOF
9650 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9658 ac_config_files="$ac_config_files Makefile"
9660 cat >confcache <<\_ACEOF
9661 # This file is a shell script that caches the results of configure
9662 # tests run on this system so they can be shared between configure
9663 # scripts and configure runs, see configure's option --config-cache.
9664 # It is not useful on other systems. If it contains results you don't
9665 # want to keep, you may remove or edit it.
9667 # config.status only pays attention to the cache file if you give it
9668 # the --recheck option to rerun configure.
9670 # `ac_cv_env_foo' variables (set or unset) will be overridden when
9671 # loading this file, other *unset* `ac_cv_foo' will be assigned the
9676 # The following way of writing the cache mishandles newlines in values,
9677 # but we know of no workaround that is simple, portable, and efficient.
9678 # So, we kill variables containing newlines.
9679 # Ultrix sh set writes to stderr and can't be redirected directly,
9680 # and sets the high bit in the cache file unless we assign to the vars.
9682 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
9683 eval ac_val=\$$ac_var
9687 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
9688 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
9691 _ | IFS | as_nl) ;; #(
9692 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
9693 *) $as_unset $ac_var ;;
9699 case $as_nl`(ac_space=' '; set) 2>&1` in #(
9700 *${as_nl}ac_space=\ *)
9701 # `set' does not quote correctly, so add quotes (double-quote
9702 # substitution turns \\\\ into \\, and sed turns \\ into \).
9705 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
9708 # `set' quotes correctly as required by POSIX, so do not add quotes.
9709 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
9718 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
9720 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
9722 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
9723 if test -w "$cache_file"; then
9724 test "x$cache_file" != "x/dev/null" &&
9725 { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
9726 $as_echo "$as_me: updating cache $cache_file" >&6;}
9727 cat confcache >$cache_file
9729 { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
9730 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
9735 test "x$prefix" = xNONE && prefix=$ac_default_prefix
9736 # Let make expand exec_prefix.
9737 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
9739 DEFS=-DHAVE_CONFIG_H
9743 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
9744 # 1. Remove the extension, and $U if already installed.
9745 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
9746 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
9747 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
9748 # will be set to the directory where LIBOBJS objects are built.
9749 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
9750 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
9754 LTLIBOBJS=$ac_ltlibobjs
9757 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
9758 { { $as_echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
9759 Usually this means the macro was only invoked conditionally." >&5
9760 $as_echo "$as_me: error: conditional \"AMDEP\" was never defined.
9761 Usually this means the macro was only invoked conditionally." >&2;}
9762 { (exit 1); exit 1; }; }
9764 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
9765 { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
9766 Usually this means the macro was only invoked conditionally." >&5
9767 $as_echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
9768 Usually this means the macro was only invoked conditionally." >&2;}
9769 { (exit 1); exit 1; }; }
9771 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
9772 { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
9773 Usually this means the macro was only invoked conditionally." >&5
9774 $as_echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
9775 Usually this means the macro was only invoked conditionally." >&2;}
9776 { (exit 1); exit 1; }; }
9778 if test -z "${ENABLE_ASTERISK_CHANNEL_DRIVER_TRUE}" && test -z "${ENABLE_ASTERISK_CHANNEL_DRIVER_FALSE}"; then
9779 { { $as_echo "$as_me:$LINENO: error: conditional \"ENABLE_ASTERISK_CHANNEL_DRIVER\" was never defined.
9780 Usually this means the macro was only invoked conditionally." >&5
9781 $as_echo "$as_me: error: conditional \"ENABLE_ASTERISK_CHANNEL_DRIVER\" was never defined.
9782 Usually this means the macro was only invoked conditionally." >&2;}
9783 { (exit 1); exit 1; }; }
9785 if test -z "${ENABLE_GSM_TRUE}" && test -z "${ENABLE_GSM_FALSE}"; then
9786 { { $as_echo "$as_me:$LINENO: error: conditional \"ENABLE_GSM\" was never defined.
9787 Usually this means the macro was only invoked conditionally." >&5
9788 $as_echo "$as_me: error: conditional \"ENABLE_GSM\" was never defined.
9789 Usually this means the macro was only invoked conditionally." >&2;}
9790 { (exit 1); exit 1; }; }
9793 : ${CONFIG_STATUS=./config.status}
9795 ac_clean_files_save=$ac_clean_files
9796 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
9797 { $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
9798 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
9799 cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9801 # Generated by $as_me.
9802 # Run this file to recreate the current configuration.
9803 # Compiler output produced by configure, useful for debugging
9804 # configure, is in config.log if it exists.
9809 SHELL=\${CONFIG_SHELL-$SHELL}
9812 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9813 ## --------------------- ##
9814 ## M4sh Initialization. ##
9815 ## --------------------- ##
9817 # Be more Bourne compatible
9818 DUALCASE=1; export DUALCASE # for MKS sh
9819 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
9822 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
9823 # is contrary to our usage. Disable this feature.
9824 alias -g '${1+"$@"}'='"$@"'
9825 setopt NO_GLOB_SUBST
9827 case `(set -o) 2>/dev/null` in
9828 *posix*) set -o posix ;;
9837 # Avoid depending upon Character Ranges.
9838 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
9839 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
9840 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
9841 as_cr_digits='0123456789'
9842 as_cr_alnum=$as_cr_Letters$as_cr_digits
9847 # Printing a long string crashes Solaris 7 /usr/bin/printf.
9848 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
9849 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
9850 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
9851 if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
9852 as_echo='printf %s\n'
9853 as_echo_n='printf %s'
9855 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
9856 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
9857 as_echo_n='/usr/ucb/echo -n'
9859 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
9860 as_echo_n_body='eval
9864 expr "X$arg" : "X\\(.*\\)$as_nl";
9865 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
9867 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
9869 export as_echo_n_body
9870 as_echo_n='sh -c $as_echo_n_body as_echo'
9873 as_echo='sh -c $as_echo_body as_echo'
9876 # The user is always right.
9877 if test "${PATH_SEPARATOR+set}" != set; then
9879 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
9880 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
9885 # Support unset when possible.
9886 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
9894 # We need space, tab and new line, in precisely that order. Quoting is
9895 # there to prevent editors from complaining about space-tab.
9896 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
9897 # splitting by setting IFS to empty value.)
9900 # Find who we are. Look in the path if we contain no directory separator.
9902 *[\\/]* ) as_myself=$0 ;;
9903 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9907 test -z "$as_dir" && as_dir=.
9908 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
9914 # We did not find ourselves, most probably we were run as `sh COMMAND'
9915 # in which case we are not to be found in the path.
9916 if test "x$as_myself" = x; then
9919 if test ! -f "$as_myself"; then
9920 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
9921 { (exit 1); exit 1; }
9924 # Work around bugs in pre-3.0 UWIN ksh.
9925 for as_var in ENV MAIL MAILPATH
9926 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
9938 # Required to use basename.
9939 if expr a : '\(a\)' >/dev/null 2>&1 &&
9940 test "X`expr 00001 : '.*\(...\)'`" = X001; then
9946 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
9947 as_basename=basename
9953 # Name of the executable.
9954 as_me=`$as_basename -- "$0" ||
9955 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
9956 X"$0" : 'X\(//\)$' \| \
9957 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
9959 sed '/^.*\/\([^/][^/]*\)\/*$/{
9980 test "x$as_lineno_1" != "x$as_lineno_2" &&
9981 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
9983 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
9984 # uniformly replaced by the line number. The first 'sed' inserts a
9985 # line-number line after each line using $LINENO; the second 'sed'
9986 # does the real work. The second script uses 'N' to pair each
9987 # line-number line with the line containing $LINENO, and appends
9988 # trailing '-' during substitution so that $LINENO is not a special
9990 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
9991 # scripts with optimization help from Paolo Bonzini. Blame Lee
9992 # E. McMahon (1931-1989) for sed's syntax. :-)
10004 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
10007 ' >$as_me.lineno &&
10008 chmod +x "$as_me.lineno" ||
10009 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
10010 { (exit 1); exit 1; }; }
10012 # Don't try to exec as it changes $[0], causing all sort of problems
10013 # (the dirname of $[0] is not the place where we might find the
10014 # original and so on. Autoconf is especially sensitive to this).
10015 . "./$as_me.lineno"
10016 # Exit status is that of the last command.
10021 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
10027 ECHO_C= ECHO_N= ECHO_T=
10028 case `echo -n x` in
10030 case `echo 'x\c'` in
10031 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
10037 if expr a : '\(a\)' >/dev/null 2>&1 &&
10038 test "X`expr 00001 : '.*\(...\)'`" = X001; then
10044 rm -f conf$$ conf$$.exe conf$$.file
10045 if test -d conf$$.dir; then
10046 rm -f conf$$.dir/conf$$.file
10049 mkdir conf$$.dir 2>/dev/null
10051 if (echo >conf$$.file) 2>/dev/null; then
10052 if ln -s conf$$.file conf$$ 2>/dev/null; then
10054 # ... but there are two gotchas:
10055 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
10056 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
10057 # In both cases, we have to default to `cp -p'.
10058 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
10060 elif ln conf$$.file conf$$ 2>/dev/null; then
10068 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
10069 rmdir conf$$.dir 2>/dev/null
10071 if mkdir -p . 2>/dev/null; then
10074 test -d ./-p && rmdir ./-p
10078 if test -x / >/dev/null 2>&1; then
10079 as_test_x='test -x'
10081 if ls -dL / >/dev/null 2>&1; then
10088 if test -d "$1"; then
10094 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
10095 ???[sx]*):;;*)false;;esac;fi
10099 as_executable_p=$as_test_x
10101 # Sed expression to map a string onto a valid CPP name.
10102 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
10104 # Sed expression to map a string onto a valid variable name.
10105 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
10110 # Save the log message, to keep $[0] and so on meaningful, and to
10111 # report actual input values of CONFIG_FILES etc. instead of their
10112 # values after options handling.
10114 This file was extended by lcr $as_me 1.5, which was
10115 generated by GNU Autoconf 2.63. Invocation command line was
10117 CONFIG_FILES = $CONFIG_FILES
10118 CONFIG_HEADERS = $CONFIG_HEADERS
10119 CONFIG_LINKS = $CONFIG_LINKS
10120 CONFIG_COMMANDS = $CONFIG_COMMANDS
10123 on `(hostname || uname -n) 2>/dev/null | sed 1q`
10128 case $ac_config_files in *"
10129 "*) set x $ac_config_files; shift; ac_config_files=$*;;
10132 case $ac_config_headers in *"
10133 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
10137 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10138 # Files that config.status was made for.
10139 config_files="$ac_config_files"
10140 config_headers="$ac_config_headers"
10141 config_commands="$ac_config_commands"
10145 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10147 \`$as_me' instantiates files from templates according to the
10148 current configuration.
10150 Usage: $0 [OPTION]... [FILE]...
10152 -h, --help print this help, then exit
10153 -V, --version print version number and configuration settings, then exit
10154 -q, --quiet, --silent
10155 do not print progress messages
10156 -d, --debug don't remove temporary files
10157 --recheck update $as_me by reconfiguring in the same conditions
10158 --file=FILE[:TEMPLATE]
10159 instantiate the configuration file FILE
10160 --header=FILE[:TEMPLATE]
10161 instantiate the configuration header FILE
10163 Configuration files:
10166 Configuration headers:
10169 Configuration commands:
10172 Report bugs to <bug-autoconf@gnu.org>."
10175 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10177 lcr config.status 1.5
10178 configured by $0, generated by GNU Autoconf 2.63,
10179 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
10181 Copyright (C) 2008 Free Software Foundation, Inc.
10182 This config.status script is free software; the Free Software Foundation
10183 gives unlimited permission to copy, distribute and modify it."
10189 test -n "\$AWK" || AWK=awk
10192 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10193 # The default lists apply if the user does not specify any file.
10199 ac_option=`expr "X$1" : 'X\([^=]*\)='`
10200 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
10211 # Handling of the options.
10212 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
10214 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
10215 $as_echo "$ac_cs_version"; exit ;;
10216 --debug | --debu | --deb | --de | --d | -d )
10218 --file | --fil | --fi | --f )
10221 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
10223 CONFIG_FILES="$CONFIG_FILES '$ac_optarg'"
10224 ac_need_defaults=false;;
10225 --header | --heade | --head | --hea )
10228 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
10230 CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'"
10231 ac_need_defaults=false;;
10233 # Conflict between --help and --header
10234 { $as_echo "$as_me: error: ambiguous option: $1
10235 Try \`$0 --help' for more information." >&2
10236 { (exit 1); exit 1; }; };;
10237 --help | --hel | -h )
10238 $as_echo "$ac_cs_usage"; exit ;;
10239 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
10240 | -silent | --silent | --silen | --sile | --sil | --si | --s)
10243 # This is an error.
10244 -*) { $as_echo "$as_me: error: unrecognized option: $1
10245 Try \`$0 --help' for more information." >&2
10246 { (exit 1); exit 1; }; } ;;
10248 *) ac_config_targets="$ac_config_targets $1"
10249 ac_need_defaults=false ;;
10255 ac_configure_extra_args=
10257 if $ac_cs_silent; then
10259 ac_configure_extra_args="$ac_configure_extra_args --silent"
10263 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10264 if \$ac_cs_recheck; then
10265 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
10267 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
10268 CONFIG_SHELL='$SHELL'
10269 export CONFIG_SHELL
10274 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10278 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
10279 ## Running $as_me. ##
10285 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10289 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
10293 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10295 # Handling of arguments.
10296 for ac_config_target in $ac_config_targets
10298 case $ac_config_target in
10299 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
10300 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
10301 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
10303 *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
10304 $as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
10305 { (exit 1); exit 1; }; };;
10310 # If the user did not use the arguments to specify the items to instantiate,
10311 # then the envvar interface is used. Set only those that are not.
10312 # We use the long form for the default assignment because of an extremely
10313 # bizarre bug on SunOS 4.1.3.
10314 if $ac_need_defaults; then
10315 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
10316 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
10317 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
10320 # Have a temporary directory for convenience. Make it in the build tree
10321 # simply because there is no reason against having it here, and in addition,
10322 # creating and moving files from /tmp can sometimes cause problems.
10323 # Hook for its removal unless debugging.
10324 # Note that there is a small window in which the directory will not be cleaned:
10325 # after its creation but before its name has been assigned to `$tmp'.
10329 trap 'exit_status=$?
10330 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
10332 trap '{ (exit 1); exit 1; }' 1 2 13 15
10334 # Create a (secure) tmp directory for tmp files.
10337 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
10338 test -n "$tmp" && test -d "$tmp"
10341 tmp=./conf$$-$RANDOM
10342 (umask 077 && mkdir "$tmp")
10345 $as_echo "$as_me: cannot create a temporary directory in ." >&2
10346 { (exit 1); exit 1; }
10349 # Set up the scripts for CONFIG_FILES section.
10350 # No need to generate them if there are no CONFIG_FILES.
10351 # This happens for instance with `./config.status config.h'.
10352 if test -n "$CONFIG_FILES"; then
10356 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
10357 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
10360 ac_cs_awk_cr=$ac_cr
10363 echo 'BEGIN {' >"$tmp/subs1.awk" &&
10368 echo "cat >conf$$subs.awk <<_ACEOF" &&
10369 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
10371 } >conf$$subs.sh ||
10372 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
10373 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
10374 { (exit 1); exit 1; }; }
10375 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
10377 for ac_last_try in false false false false false :; do
10378 . ./conf$$subs.sh ||
10379 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
10380 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
10381 { (exit 1); exit 1; }; }
10383 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
10384 if test $ac_delim_n = $ac_delim_num; then
10386 elif $ac_last_try; then
10387 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
10388 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
10389 { (exit 1); exit 1; }; }
10391 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
10394 rm -f conf$$subs.sh
10396 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10397 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
10401 s/^/S["/; s/!.*/"]=/
10411 s/\(.\{148\}\).*/\1/
10413 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
10418 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
10425 s/\(.\{148\}\).*/\1/
10427 s/["\\]/\\&/g; s/^/"/; s/$/"/
10431 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
10436 ' <conf$$subs.awk | sed '
10441 ' >>$CONFIG_STATUS || ac_write_fail=1
10442 rm -f conf$$subs.awk
10443 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10445 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
10446 for (key in S) S_is_set[key] = 1
10452 nfields = split(line, field, "@")
10454 len = length(field[1])
10455 for (i = 2; i < nfields; i++) {
10457 keylen = length(key)
10458 if (S_is_set[key]) {
10460 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
10461 len += length(value) + length(field[++i])
10472 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10473 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
10474 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
10477 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
10478 || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5
10479 $as_echo "$as_me: error: could not setup config files machinery" >&2;}
10480 { (exit 1); exit 1; }; }
10483 # VPATH may cause trouble with some makes, so we remove $(srcdir),
10484 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
10485 # trailing colons and then remove the whole line if VPATH becomes empty
10486 # (actually we leave an empty line to preserve line numbers).
10487 if test "x$srcdir" = x.; then
10488 ac_vpsub='/^[ ]*VPATH[ ]*=/{
10489 s/:*\$(srcdir):*/:/
10490 s/:*\${srcdir}:*/:/
10492 s/^\([^=]*=[ ]*\):*/\1/
10498 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10499 fi # test -n "$CONFIG_FILES"
10501 # Set up the scripts for CONFIG_HEADERS section.
10502 # No need to generate them if there are no CONFIG_HEADERS.
10503 # This happens for instance with `./config.status Makefile'.
10504 if test -n "$CONFIG_HEADERS"; then
10505 cat >"$tmp/defines.awk" <<\_ACAWK ||
10509 # Transform confdefs.h into an awk script `defines.awk', embedded as
10510 # here-document in config.status, that substitutes the proper values into
10511 # config.h.in to produce config.h.
10513 # Create a delimiter string that does not exist in confdefs.h, to ease
10514 # handling of long lines.
10516 for ac_last_try in false false :; do
10517 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
10518 if test -z "$ac_t"; then
10520 elif $ac_last_try; then
10521 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_HEADERS" >&5
10522 $as_echo "$as_me: error: could not make $CONFIG_HEADERS" >&2;}
10523 { (exit 1); exit 1; }; }
10525 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
10529 # For the awk script, D is an array of macro values keyed by name,
10530 # likewise P contains macro parameters if any. Preserve backslash
10531 # newline sequences.
10533 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
10535 s/.\{148\}/&'"$ac_delim"'/g
10538 s/^[ ]*#[ ]*define[ ][ ]*/ /
10545 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
10547 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
10551 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
10552 D["\1"]=" \3\\\\\\n"\\/p
10554 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
10559 s/.\{148\}/&'"$ac_delim"'/g
10564 s/["\\]/\\&/g; s/^/"/; s/$/"/p
10567 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
10569 ' <confdefs.h | sed '
10570 s/'"$ac_delim"'/"\\\
10571 "/g' >>$CONFIG_STATUS || ac_write_fail=1
10573 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10574 for (key in D) D_is_set[key] = 1
10577 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
10579 split(line, arg, " ")
10580 if (arg[1] == "#") {
10584 defundef = substr(arg[1], 2)
10587 split(mac1, mac2, "(") #)
10589 prefix = substr(line, 1, index(line, defundef) - 1)
10590 if (D_is_set[macro]) {
10591 # Preserve the white space surrounding the "#".
10592 print prefix "define", macro P[macro] D[macro]
10595 # Replace #undef with comments. This is necessary, for example,
10596 # in the case of _POSIX_SOURCE, which is predefined and required
10597 # on some systems where configure will not decide to define it.
10598 if (defundef == "undef") {
10599 print "/*", prefix defundef, macro, "*/"
10607 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10608 { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5
10609 $as_echo "$as_me: error: could not setup config headers machinery" >&2;}
10610 { (exit 1); exit 1; }; }
10611 fi # test -n "$CONFIG_HEADERS"
10614 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
10619 :[FHLC]) ac_mode=$ac_tag; continue;;
10621 case $ac_mode$ac_tag in
10623 :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: invalid tag $ac_tag" >&5
10624 $as_echo "$as_me: error: invalid tag $ac_tag" >&2;}
10625 { (exit 1); exit 1; }; };;
10626 :[FH]-) ac_tag=-:-;;
10627 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
10644 -) ac_f="$tmp/stdin";;
10645 *) # Look for the file first in the build tree, then in the source tree
10646 # (if the path is not absolute). The absolute path cannot be DOS-style,
10647 # because $ac_f cannot contain `:'.
10651 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
10653 { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
10654 $as_echo "$as_me: error: cannot find input file: $ac_f" >&2;}
10655 { (exit 1); exit 1; }; };;
10657 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
10658 ac_file_inputs="$ac_file_inputs '$ac_f'"
10661 # Let's still pretend it is `configure' which instantiates (i.e., don't
10662 # use $as_me), people would be surprised to read:
10663 # /* config.h. Generated by config.status. */
10664 configure_input='Generated from '`
10665 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
10667 if test x"$ac_file" != x-; then
10668 configure_input="$ac_file. $configure_input"
10669 { $as_echo "$as_me:$LINENO: creating $ac_file" >&5
10670 $as_echo "$as_me: creating $ac_file" >&6;}
10672 # Neutralize special characters interpreted by sed in replacement strings.
10673 case $configure_input in #(
10674 *\&* | *\|* | *\\* )
10675 ac_sed_conf_input=`$as_echo "$configure_input" |
10676 sed 's/[\\\\&|]/\\\\&/g'`;; #(
10677 *) ac_sed_conf_input=$configure_input;;
10681 *:-:* | *:-) cat >"$tmp/stdin" \
10682 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
10683 $as_echo "$as_me: error: could not create $ac_file" >&2;}
10684 { (exit 1); exit 1; }; } ;;
10689 ac_dir=`$as_dirname -- "$ac_file" ||
10690 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10691 X"$ac_file" : 'X\(//\)[^/]' \| \
10692 X"$ac_file" : 'X\(//\)$' \| \
10693 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
10694 $as_echo X"$ac_file" |
10695 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
10699 /^X\(\/\/\)[^/].*/{
10714 -*) as_dir=./$as_dir;;
10716 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
10720 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
10721 *) as_qdir=$as_dir;;
10723 as_dirs="'$as_qdir' $as_dirs"
10724 as_dir=`$as_dirname -- "$as_dir" ||
10725 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10726 X"$as_dir" : 'X\(//\)[^/]' \| \
10727 X"$as_dir" : 'X\(//\)$' \| \
10728 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
10729 $as_echo X"$as_dir" |
10730 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
10734 /^X\(\/\/\)[^/].*/{
10747 test -d "$as_dir" && break
10749 test -z "$as_dirs" || eval "mkdir $as_dirs"
10750 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
10751 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
10752 { (exit 1); exit 1; }; }; }
10756 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
10758 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
10759 # A ".." for each directory in $ac_dir_suffix.
10760 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
10761 case $ac_top_builddir_sub in
10762 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
10763 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
10766 ac_abs_top_builddir=$ac_pwd
10767 ac_abs_builddir=$ac_pwd$ac_dir_suffix
10768 # for backward compatibility:
10769 ac_top_builddir=$ac_top_build_prefix
10772 .) # We are building in place.
10774 ac_top_srcdir=$ac_top_builddir_sub
10775 ac_abs_top_srcdir=$ac_pwd ;;
10776 [\\/]* | ?:[\\/]* ) # Absolute name.
10777 ac_srcdir=$srcdir$ac_dir_suffix;
10778 ac_top_srcdir=$srcdir
10779 ac_abs_top_srcdir=$srcdir ;;
10780 *) # Relative name.
10781 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
10782 ac_top_srcdir=$ac_top_build_prefix$srcdir
10783 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
10785 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
10795 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
10796 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
10800 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10801 # If the template does not know about datarootdir, expand it.
10802 # FIXME: This hack should be removed a few years after 2.60.
10803 ac_datarootdir_hack=; ac_datarootdir_seen=
10816 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
10817 *datarootdir*) ac_datarootdir_seen=yes;;
10818 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
10819 { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
10820 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
10822 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10823 ac_datarootdir_hack='
10824 s&@datadir@&$datadir&g
10825 s&@docdir@&$docdir&g
10826 s&@infodir@&$infodir&g
10827 s&@localedir@&$localedir&g
10828 s&@mandir@&$mandir&g
10829 s&\\\${datarootdir}&$datarootdir&g' ;;
10833 # Neutralize VPATH when `$srcdir' = `.'.
10834 # Shell code in configure.ac might set extrasub.
10835 # FIXME: do we really want to maintain this feature?
10836 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10837 ac_sed_extra="$ac_vpsub
10840 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10842 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
10843 s|@configure_input@|$ac_sed_conf_input|;t t
10844 s&@top_builddir@&$ac_top_builddir_sub&;t t
10845 s&@top_build_prefix@&$ac_top_build_prefix&;t t
10846 s&@srcdir@&$ac_srcdir&;t t
10847 s&@abs_srcdir@&$ac_abs_srcdir&;t t
10848 s&@top_srcdir@&$ac_top_srcdir&;t t
10849 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
10850 s&@builddir@&$ac_builddir&;t t
10851 s&@abs_builddir@&$ac_abs_builddir&;t t
10852 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
10853 s&@INSTALL@&$ac_INSTALL&;t t
10854 $ac_datarootdir_hack
10856 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
10857 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
10858 $as_echo "$as_me: error: could not create $ac_file" >&2;}
10859 { (exit 1); exit 1; }; }
10861 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
10862 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
10863 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
10864 { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
10865 which seems to be undefined. Please make sure it is defined." >&5
10866 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
10867 which seems to be undefined. Please make sure it is defined." >&2;}
10871 -) cat "$tmp/out" && rm -f "$tmp/out";;
10872 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
10874 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
10875 $as_echo "$as_me: error: could not create $ac_file" >&2;}
10876 { (exit 1); exit 1; }; }
10882 if test x"$ac_file" != x-; then
10884 $as_echo "/* $configure_input */" \
10885 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
10886 } >"$tmp/config.h" \
10887 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
10888 $as_echo "$as_me: error: could not create $ac_file" >&2;}
10889 { (exit 1); exit 1; }; }
10890 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
10891 { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5
10892 $as_echo "$as_me: $ac_file is unchanged" >&6;}
10895 mv "$tmp/config.h" "$ac_file" \
10896 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
10897 $as_echo "$as_me: error: could not create $ac_file" >&2;}
10898 { (exit 1); exit 1; }; }
10901 $as_echo "/* $configure_input */" \
10902 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
10903 || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5
10904 $as_echo "$as_me: error: could not create -" >&2;}
10905 { (exit 1); exit 1; }; }
10907 # Compute "$ac_file"'s index in $config_headers.
10909 for _am_header in $config_headers :; do
10910 case $_am_header in
10911 "$ac_file" | "$ac_file":* )
10914 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
10917 echo "timestamp for "$ac_file"" >`$as_dirname -- "$ac_file" ||
10918 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10919 X"$ac_file" : 'X\(//\)[^/]' \| \
10920 X"$ac_file" : 'X\(//\)$' \| \
10921 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
10922 $as_echo X"$ac_file" |
10923 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
10927 /^X\(\/\/\)[^/].*/{
10939 s/.*/./; q'`/stamp-h$_am_stamp_count
10942 :C) { $as_echo "$as_me:$LINENO: executing $ac_file commands" >&5
10943 $as_echo "$as_me: executing $ac_file commands" >&6;}
10948 case $ac_file$ac_mode in
10949 "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
10950 # Strip MF so we end up with the name of the file.
10951 mf=`echo "$mf" | sed -e 's/:.*$//'`
10952 # Check whether this is an Automake generated Makefile or not.
10953 # We used to match only the files named `Makefile.in', but
10954 # some people rename them; so instead we look at the file content.
10955 # Grep'ing the first line is not enough: some people post-process
10956 # each Makefile.in and add a new line on top of each file to say so.
10957 # So let's grep whole file.
10958 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
10959 dirpart=`$as_dirname -- "$mf" ||
10960 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10961 X"$mf" : 'X\(//\)[^/]' \| \
10962 X"$mf" : 'X\(//\)$' \| \
10963 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
10965 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
10969 /^X\(\/\/\)[^/].*/{
10985 # Extract the definition of DEPDIR, am__include, and am__quote
10986 # from the Makefile without running `make'.
10987 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
10988 test -z "$DEPDIR" && continue
10989 am__include=`sed -n 's/^am__include = //p' < "$mf"`
10990 test -z "am__include" && continue
10991 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
10992 # When using ansi2knr, U may be empty or an underscore; expand it
10993 U=`sed -n 's/^U = //p' < "$mf"`
10994 # Find all dependency output files, they are included files with
10995 # $(DEPDIR) in their names. We invoke sed twice because it is the
10996 # simplest approach to changing $(DEPDIR) to its actual value in the
10998 for file in `sed -n "
10999 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
11000 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
11001 # Make sure the directory exists.
11002 test -f "$dirpart/$file" && continue
11003 fdir=`$as_dirname -- "$file" ||
11004 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11005 X"$file" : 'X\(//\)[^/]' \| \
11006 X"$file" : 'X\(//\)$' \| \
11007 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
11008 $as_echo X"$file" |
11009 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11013 /^X\(\/\/\)[^/].*/{
11026 { as_dir=$dirpart/$fdir
11028 -*) as_dir=./$as_dir;;
11030 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
11034 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
11035 *) as_qdir=$as_dir;;
11037 as_dirs="'$as_qdir' $as_dirs"
11038 as_dir=`$as_dirname -- "$as_dir" ||
11039 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11040 X"$as_dir" : 'X\(//\)[^/]' \| \
11041 X"$as_dir" : 'X\(//\)$' \| \
11042 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
11043 $as_echo X"$as_dir" |
11044 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11048 /^X\(\/\/\)[^/].*/{
11061 test -d "$as_dir" && break
11063 test -z "$as_dirs" || eval "mkdir $as_dirs"
11064 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
11065 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
11066 { (exit 1); exit 1; }; }; }
11067 # echo "creating $dirpart/$file"
11068 echo '# dummy' > "$dirpart/$file"
11077 { (exit 0); exit 0; }
11079 chmod +x $CONFIG_STATUS
11080 ac_clean_files=$ac_clean_files_save
11082 test $ac_write_fail = 0 ||
11083 { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5
11084 $as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;}
11085 { (exit 1); exit 1; }; }
11088 # configure is writing to config.log, and then calls config.status.
11089 # config.status does its own redirection, appending to config.log.
11090 # Unfortunately, on DOS this fails, as config.log is still kept open
11091 # by configure, so config.status won't be able to write to it; its
11092 # output is simply discarded. So we exec the FD to /dev/null,
11093 # effectively closing config.log, so it can be properly (re)opened and
11094 # appended to by config.status. When coming back to configure, we
11095 # need to make the FD available again.
11096 if test "$no_create" != yes; then
11098 ac_config_status_args=
11099 test "$silent" = yes &&
11100 ac_config_status_args="$ac_config_status_args --quiet"
11102 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
11104 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
11105 # would make configure fail if this is the last instruction.
11106 $ac_cs_success || { (exit 1); exit 1; }
11108 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
11109 { $as_echo "$as_me:$LINENO: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
11110 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}