2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.63 for lcr 1.7.
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.7'
600 PACKAGE_STRING='lcr 1.7'
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
648 ENABLE_ASTERISK_CHANNEL_DRIVER_FALSE
649 ENABLE_ASTERISK_CHANNEL_DRIVER_TRUE
672 INSTALL_STRIP_PROGRAM
723 program_transform_name
735 enable_option_checking
736 enable_dependency_tracking
742 ac_precious_vars='build_alias
756 # Initialize some variables set by options.
758 ac_init_version=false
759 ac_unrecognized_opts=
761 # The variables have the same names as the options, with
762 # dashes changed to underlines.
770 program_transform_name=s,x,x,
778 # Installation directory options.
779 # These are left unexpanded so users can "make install exec_prefix=/foo"
780 # and all the variables that are supposed to be based on exec_prefix
781 # by default will actually change.
782 # Use braces instead of parens because sh, perl, etc. also accept them.
783 # (The list follows the same order as the GNU Coding Standards.)
784 bindir='${exec_prefix}/bin'
785 sbindir='${exec_prefix}/sbin'
786 libexecdir='${exec_prefix}/libexec'
787 datarootdir='${prefix}/share'
788 datadir='${datarootdir}'
789 sysconfdir='${prefix}/etc'
790 sharedstatedir='${prefix}/com'
791 localstatedir='${prefix}/var'
792 includedir='${prefix}/include'
793 oldincludedir='/usr/include'
794 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
795 infodir='${datarootdir}/info'
800 libdir='${exec_prefix}/lib'
801 localedir='${datarootdir}/locale'
802 mandir='${datarootdir}/man'
808 # If the previous option needs an argument, assign it.
809 if test -n "$ac_prev"; then
810 eval $ac_prev=\$ac_option
816 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
820 # Accept the important Cygnus configure options, so we can diagnose typos.
822 case $ac_dashdash$ac_option in
826 -bindir | --bindir | --bindi | --bind | --bin | --bi)
828 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
831 -build | --build | --buil | --bui | --bu)
832 ac_prev=build_alias ;;
833 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
834 build_alias=$ac_optarg ;;
836 -cache-file | --cache-file | --cache-fil | --cache-fi \
837 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
838 ac_prev=cache_file ;;
839 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
840 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
841 cache_file=$ac_optarg ;;
844 cache_file=config.cache ;;
846 -datadir | --datadir | --datadi | --datad)
848 -datadir=* | --datadir=* | --datadi=* | --datad=*)
849 datadir=$ac_optarg ;;
851 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
852 | --dataroo | --dataro | --datar)
853 ac_prev=datarootdir ;;
854 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
855 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
856 datarootdir=$ac_optarg ;;
858 -disable-* | --disable-*)
859 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
860 # Reject names that are not valid shell variable names.
861 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
862 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
863 { (exit 1); exit 1; }; }
864 ac_useropt_orig=$ac_useropt
865 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
866 case $ac_user_opts in
870 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
871 ac_unrecognized_sep=', ';;
873 eval enable_$ac_useropt=no ;;
875 -docdir | --docdir | --docdi | --doc | --do)
877 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
880 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
882 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
885 -enable-* | --enable-*)
886 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
887 # Reject names that are not valid shell variable names.
888 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
889 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
890 { (exit 1); exit 1; }; }
891 ac_useropt_orig=$ac_useropt
892 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
893 case $ac_user_opts in
897 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
898 ac_unrecognized_sep=', ';;
900 eval enable_$ac_useropt=\$ac_optarg ;;
902 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
903 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
904 | --exec | --exe | --ex)
905 ac_prev=exec_prefix ;;
906 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
907 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
908 | --exec=* | --exe=* | --ex=*)
909 exec_prefix=$ac_optarg ;;
911 -gas | --gas | --ga | --g)
912 # Obsolete; use --with-gas.
915 -help | --help | --hel | --he | -h)
917 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
918 ac_init_help=recursive ;;
919 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
920 ac_init_help=short ;;
922 -host | --host | --hos | --ho)
923 ac_prev=host_alias ;;
924 -host=* | --host=* | --hos=* | --ho=*)
925 host_alias=$ac_optarg ;;
927 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
929 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
931 htmldir=$ac_optarg ;;
933 -includedir | --includedir | --includedi | --included | --include \
934 | --includ | --inclu | --incl | --inc)
935 ac_prev=includedir ;;
936 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
937 | --includ=* | --inclu=* | --incl=* | --inc=*)
938 includedir=$ac_optarg ;;
940 -infodir | --infodir | --infodi | --infod | --info | --inf)
942 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
943 infodir=$ac_optarg ;;
945 -libdir | --libdir | --libdi | --libd)
947 -libdir=* | --libdir=* | --libdi=* | --libd=*)
950 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
951 | --libexe | --libex | --libe)
952 ac_prev=libexecdir ;;
953 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
954 | --libexe=* | --libex=* | --libe=*)
955 libexecdir=$ac_optarg ;;
957 -localedir | --localedir | --localedi | --localed | --locale)
959 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
960 localedir=$ac_optarg ;;
962 -localstatedir | --localstatedir | --localstatedi | --localstated \
963 | --localstate | --localstat | --localsta | --localst | --locals)
964 ac_prev=localstatedir ;;
965 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
966 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
967 localstatedir=$ac_optarg ;;
969 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
971 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
975 # Obsolete; use --without-fp.
978 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
979 | --no-cr | --no-c | -n)
982 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
983 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
986 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
987 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
988 | --oldin | --oldi | --old | --ol | --o)
989 ac_prev=oldincludedir ;;
990 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
991 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
992 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
993 oldincludedir=$ac_optarg ;;
995 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
997 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1000 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1001 | --program-pre | --program-pr | --program-p)
1002 ac_prev=program_prefix ;;
1003 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1004 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1005 program_prefix=$ac_optarg ;;
1007 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1008 | --program-suf | --program-su | --program-s)
1009 ac_prev=program_suffix ;;
1010 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1011 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1012 program_suffix=$ac_optarg ;;
1014 -program-transform-name | --program-transform-name \
1015 | --program-transform-nam | --program-transform-na \
1016 | --program-transform-n | --program-transform- \
1017 | --program-transform | --program-transfor \
1018 | --program-transfo | --program-transf \
1019 | --program-trans | --program-tran \
1020 | --progr-tra | --program-tr | --program-t)
1021 ac_prev=program_transform_name ;;
1022 -program-transform-name=* | --program-transform-name=* \
1023 | --program-transform-nam=* | --program-transform-na=* \
1024 | --program-transform-n=* | --program-transform-=* \
1025 | --program-transform=* | --program-transfor=* \
1026 | --program-transfo=* | --program-transf=* \
1027 | --program-trans=* | --program-tran=* \
1028 | --progr-tra=* | --program-tr=* | --program-t=*)
1029 program_transform_name=$ac_optarg ;;
1031 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1033 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1034 pdfdir=$ac_optarg ;;
1036 -psdir | --psdir | --psdi | --psd | --ps)
1038 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1041 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1042 | -silent | --silent | --silen | --sile | --sil)
1045 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1047 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1049 sbindir=$ac_optarg ;;
1051 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1052 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1053 | --sharedst | --shareds | --shared | --share | --shar \
1055 ac_prev=sharedstatedir ;;
1056 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1057 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1058 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1060 sharedstatedir=$ac_optarg ;;
1062 -site | --site | --sit)
1064 -site=* | --site=* | --sit=*)
1067 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1069 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1070 srcdir=$ac_optarg ;;
1072 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1073 | --syscon | --sysco | --sysc | --sys | --sy)
1074 ac_prev=sysconfdir ;;
1075 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1076 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1077 sysconfdir=$ac_optarg ;;
1079 -target | --target | --targe | --targ | --tar | --ta | --t)
1080 ac_prev=target_alias ;;
1081 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1082 target_alias=$ac_optarg ;;
1084 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1087 -version | --version | --versio | --versi | --vers | -V)
1088 ac_init_version=: ;;
1091 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1092 # Reject names that are not valid shell variable names.
1093 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1094 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1095 { (exit 1); exit 1; }; }
1096 ac_useropt_orig=$ac_useropt
1097 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1098 case $ac_user_opts in
1102 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1103 ac_unrecognized_sep=', ';;
1105 eval with_$ac_useropt=\$ac_optarg ;;
1107 -without-* | --without-*)
1108 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1109 # Reject names that are not valid shell variable names.
1110 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1111 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1112 { (exit 1); exit 1; }; }
1113 ac_useropt_orig=$ac_useropt
1114 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1115 case $ac_user_opts in
1119 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1120 ac_unrecognized_sep=', ';;
1122 eval with_$ac_useropt=no ;;
1125 # Obsolete; use --with-x.
1128 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1129 | --x-incl | --x-inc | --x-in | --x-i)
1130 ac_prev=x_includes ;;
1131 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1132 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1133 x_includes=$ac_optarg ;;
1135 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1136 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1137 ac_prev=x_libraries ;;
1138 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1139 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1140 x_libraries=$ac_optarg ;;
1142 -*) { $as_echo "$as_me: error: unrecognized option: $ac_option
1143 Try \`$0 --help' for more information." >&2
1144 { (exit 1); exit 1; }; }
1148 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1149 # Reject names that are not valid shell variable names.
1150 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1151 { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1152 { (exit 1); exit 1; }; }
1153 eval $ac_envvar=\$ac_optarg
1154 export $ac_envvar ;;
1157 # FIXME: should be removed in autoconf 3.0.
1158 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1159 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1160 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1161 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1167 if test -n "$ac_prev"; then
1168 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1169 { $as_echo "$as_me: error: missing argument to $ac_option" >&2
1170 { (exit 1); exit 1; }; }
1173 if test -n "$ac_unrecognized_opts"; then
1174 case $enable_option_checking in
1176 fatal) { $as_echo "$as_me: error: unrecognized options: $ac_unrecognized_opts" >&2
1177 { (exit 1); exit 1; }; } ;;
1178 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1182 # Check all directory arguments for consistency.
1183 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1184 datadir sysconfdir sharedstatedir localstatedir includedir \
1185 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1186 libdir localedir mandir
1188 eval ac_val=\$$ac_var
1189 # Remove trailing slashes.
1192 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1193 eval $ac_var=\$ac_val;;
1195 # Be sure to have absolute directory names.
1197 [\\/$]* | ?:[\\/]* ) continue;;
1198 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1200 { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1201 { (exit 1); exit 1; }; }
1204 # There might be people who depend on the old broken behavior: `$host'
1205 # used to hold the argument of --host etc.
1206 # FIXME: To remove some day.
1209 target=$target_alias
1211 # FIXME: To remove some day.
1212 if test "x$host_alias" != x; then
1213 if test "x$build_alias" = x; then
1214 cross_compiling=maybe
1215 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1216 If a cross compiler is detected then cross compile mode will be used." >&2
1217 elif test "x$build_alias" != "x$host_alias"; then
1223 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1225 test "$silent" = yes && exec 6>/dev/null
1228 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1229 ac_ls_di=`ls -di .` &&
1230 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1231 { $as_echo "$as_me: error: working directory cannot be determined" >&2
1232 { (exit 1); exit 1; }; }
1233 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1234 { $as_echo "$as_me: error: pwd does not report name of working directory" >&2
1235 { (exit 1); exit 1; }; }
1238 # Find the source files, if location was not specified.
1239 if test -z "$srcdir"; then
1240 ac_srcdir_defaulted=yes
1241 # Try the directory containing this script, then the parent directory.
1242 ac_confdir=`$as_dirname -- "$as_myself" ||
1243 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1244 X"$as_myself" : 'X\(//\)[^/]' \| \
1245 X"$as_myself" : 'X\(//\)$' \| \
1246 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1247 $as_echo X"$as_myself" |
1248 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1266 if test ! -r "$srcdir/$ac_unique_file"; then
1270 ac_srcdir_defaulted=no
1272 if test ! -r "$srcdir/$ac_unique_file"; then
1273 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1274 { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1275 { (exit 1); exit 1; }; }
1277 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1279 cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2
1280 { (exit 1); exit 1; }; }
1282 # When building in place, set srcdir=.
1283 if test "$ac_abs_confdir" = "$ac_pwd"; then
1286 # Remove unnecessary trailing slashes from srcdir.
1287 # Double slashes in file names in object file debugging info
1288 # mess up M-x gdb in Emacs.
1290 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1292 for ac_var in $ac_precious_vars; do
1293 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1294 eval ac_env_${ac_var}_value=\$${ac_var}
1295 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1296 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1300 # Report the --help message.
1302 if test "$ac_init_help" = "long"; then
1303 # Omit some internal or obsolete options to make the list less imposing.
1304 # This message is too long to be a string in the A/UX 3.1 sh.
1306 \`configure' configures lcr 1.7 to adapt to many kinds of systems.
1308 Usage: $0 [OPTION]... [VAR=VALUE]...
1310 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1311 VAR=VALUE. See below for descriptions of some of the useful variables.
1313 Defaults for the options are specified in brackets.
1316 -h, --help display this help and exit
1317 --help=short display options specific to this package
1318 --help=recursive display the short help of all the included packages
1319 -V, --version display version information and exit
1320 -q, --quiet, --silent do not print \`checking...' messages
1321 --cache-file=FILE cache test results in FILE [disabled]
1322 -C, --config-cache alias for \`--cache-file=config.cache'
1323 -n, --no-create do not create output files
1324 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1326 Installation directories:
1327 --prefix=PREFIX install architecture-independent files in PREFIX
1328 [$ac_default_prefix]
1329 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1332 By default, \`make install' will install all the files in
1333 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1334 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1335 for instance \`--prefix=\$HOME'.
1337 For better control, use the options below.
1339 Fine tuning of the installation directories:
1340 --bindir=DIR user executables [EPREFIX/bin]
1341 --sbindir=DIR system admin executables [EPREFIX/sbin]
1342 --libexecdir=DIR program executables [EPREFIX/libexec]
1343 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1344 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1345 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1346 --libdir=DIR object code libraries [EPREFIX/lib]
1347 --includedir=DIR C header files [PREFIX/include]
1348 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1349 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1350 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1351 --infodir=DIR info documentation [DATAROOTDIR/info]
1352 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1353 --mandir=DIR man documentation [DATAROOTDIR/man]
1354 --docdir=DIR documentation root [DATAROOTDIR/doc/lcr]
1355 --htmldir=DIR html documentation [DOCDIR]
1356 --dvidir=DIR dvi documentation [DOCDIR]
1357 --pdfdir=DIR pdf documentation [DOCDIR]
1358 --psdir=DIR ps documentation [DOCDIR]
1364 --program-prefix=PREFIX prepend PREFIX to installed program names
1365 --program-suffix=SUFFIX append SUFFIX to installed program names
1366 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1370 if test -n "$ac_init_help"; then
1371 case $ac_init_help in
1372 short | recursive ) echo "Configuration of lcr 1.7:";;
1377 --disable-option-checking ignore unrecognized --enable/--with options
1378 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1379 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1380 --disable-dependency-tracking speeds up one-time build
1381 --enable-dependency-tracking do not reject slow dependency extractors
1384 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1385 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1386 --with-asterisk compile with built-in Asterisk channel driver
1389 --with-ssl compile with ssl support (libcrypto) [default=check]
1391 --with-gsm compile with OpenBSC support [default=check]
1393 --with-ss5 compile with CCITT No. 5 support [default=no]
1396 Some influential environment variables:
1397 CC C compiler command
1398 CFLAGS C compiler flags
1399 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1400 nonstandard directory <lib dir>
1401 LIBS libraries to pass to the linker, e.g. -l<library>
1402 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1403 you have headers in a nonstandard directory <include dir>
1405 CXX C++ compiler command
1406 CXXFLAGS C++ compiler flags
1408 Use these variables to override the choices made by `configure' or to help
1409 it to find libraries and programs with nonstandard names/locations.
1411 Report bugs to <andreas@eversberg.eu>.
1416 if test "$ac_init_help" = "recursive"; then
1417 # If there are subdirs, report their specific --help.
1418 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1419 test -d "$ac_dir" ||
1420 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1425 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1427 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1428 # A ".." for each directory in $ac_dir_suffix.
1429 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1430 case $ac_top_builddir_sub in
1431 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1432 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1435 ac_abs_top_builddir=$ac_pwd
1436 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1437 # for backward compatibility:
1438 ac_top_builddir=$ac_top_build_prefix
1441 .) # We are building in place.
1443 ac_top_srcdir=$ac_top_builddir_sub
1444 ac_abs_top_srcdir=$ac_pwd ;;
1445 [\\/]* | ?:[\\/]* ) # Absolute name.
1446 ac_srcdir=$srcdir$ac_dir_suffix;
1447 ac_top_srcdir=$srcdir
1448 ac_abs_top_srcdir=$srcdir ;;
1450 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1451 ac_top_srcdir=$ac_top_build_prefix$srcdir
1452 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1454 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1456 cd "$ac_dir" || { ac_status=$?; continue; }
1457 # Check for guested configure.
1458 if test -f "$ac_srcdir/configure.gnu"; then
1460 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1461 elif test -f "$ac_srcdir/configure"; then
1463 $SHELL "$ac_srcdir/configure" --help=recursive
1465 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1467 cd "$ac_pwd" || { ac_status=$?; break; }
1471 test -n "$ac_init_help" && exit $ac_status
1472 if $ac_init_version; then
1475 generated by GNU Autoconf 2.63
1477 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1478 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
1479 This configure script is free software; the Free Software Foundation
1480 gives unlimited permission to copy, distribute and modify it.
1484 cat >config.log <<_ACEOF
1485 This file contains any messages produced by compilers while
1486 running configure, to aid debugging if configure makes a mistake.
1488 It was created by lcr $as_me 1.7, which was
1489 generated by GNU Autoconf 2.63. Invocation command line was
1501 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1502 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1503 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1504 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1505 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1507 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1508 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1510 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1511 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1512 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1513 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1514 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1515 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1516 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1520 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1524 test -z "$as_dir" && as_dir=.
1525 $as_echo "PATH: $as_dir"
1541 # Keep a trace of the command line.
1542 # Strip out --no-create and --no-recursion so they do not pile up.
1543 # Strip out --silent because we don't want to record it for future runs.
1544 # Also quote any args containing shell meta-characters.
1545 # Make two passes to allow for proper duplicate-argument suppression.
1549 ac_must_keep_next=false
1555 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1556 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1557 | -silent | --silent | --silen | --sile | --sil)
1560 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1563 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1565 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1566 if test $ac_must_keep_next = true; then
1567 ac_must_keep_next=false # Got value, back to normal.
1570 *=* | --config-cache | -C | -disable-* | --disable-* \
1571 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1572 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1573 | -with-* | --with-* | -without-* | --without-* | --x)
1574 case "$ac_configure_args0 " in
1575 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1578 -* ) ac_must_keep_next=true ;;
1581 ac_configure_args="$ac_configure_args '$ac_arg'"
1586 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1587 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1589 # When interrupted or exit'd, cleanup temporary files, and complete
1590 # config.log. We remove comments because anyway the quotes in there
1591 # would cause problems or look ugly.
1592 # WARNING: Use '\'' to represent an apostrophe within the trap.
1593 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1594 trap 'exit_status=$?
1595 # Save into config.log some information that might help in debugging.
1600 ## ---------------- ##
1601 ## Cache variables. ##
1602 ## ---------------- ##
1605 # The following way of writing the cache mishandles newlines in values,
1607 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1608 eval ac_val=\$$ac_var
1612 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
1613 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1616 _ | IFS | as_nl) ;; #(
1617 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1618 *) $as_unset $ac_var ;;
1623 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1624 *${as_nl}ac_space=\ *)
1626 "s/'\''/'\''\\\\'\'''\''/g;
1627 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1630 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1638 ## ----------------- ##
1639 ## Output variables. ##
1640 ## ----------------- ##
1643 for ac_var in $ac_subst_vars
1645 eval ac_val=\$$ac_var
1647 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1649 $as_echo "$ac_var='\''$ac_val'\''"
1653 if test -n "$ac_subst_files"; then
1655 ## ------------------- ##
1656 ## File substitutions. ##
1657 ## ------------------- ##
1660 for ac_var in $ac_subst_files
1662 eval ac_val=\$$ac_var
1664 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1666 $as_echo "$ac_var='\''$ac_val'\''"
1671 if test -s confdefs.h; then
1681 test "$ac_signal" != 0 &&
1682 $as_echo "$as_me: caught signal $ac_signal"
1683 $as_echo "$as_me: exit $exit_status"
1685 rm -f core *.core core.conftest.* &&
1686 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1689 for ac_signal in 1 2 13 15; do
1690 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1694 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1695 rm -f -r conftest* confdefs.h
1697 # Predefined preprocessor variables.
1699 cat >>confdefs.h <<_ACEOF
1700 #define PACKAGE_NAME "$PACKAGE_NAME"
1704 cat >>confdefs.h <<_ACEOF
1705 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1709 cat >>confdefs.h <<_ACEOF
1710 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1714 cat >>confdefs.h <<_ACEOF
1715 #define PACKAGE_STRING "$PACKAGE_STRING"
1719 cat >>confdefs.h <<_ACEOF
1720 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1724 # Let the site file select an alternate cache file if it wants to.
1725 # Prefer an explicitly selected file to automatically selected ones.
1728 if test -n "$CONFIG_SITE"; then
1729 ac_site_file1=$CONFIG_SITE
1730 elif test "x$prefix" != xNONE; then
1731 ac_site_file1=$prefix/share/config.site
1732 ac_site_file2=$prefix/etc/config.site
1734 ac_site_file1=$ac_default_prefix/share/config.site
1735 ac_site_file2=$ac_default_prefix/etc/config.site
1737 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
1739 test "x$ac_site_file" = xNONE && continue
1740 if test -r "$ac_site_file"; then
1741 { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1742 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
1743 sed 's/^/| /' "$ac_site_file" >&5
1748 if test -r "$cache_file"; then
1749 # Some versions of bash will fail to source /dev/null (special
1750 # files actually), so we avoid doing that.
1751 if test -f "$cache_file"; then
1752 { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5
1753 $as_echo "$as_me: loading cache $cache_file" >&6;}
1755 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1756 *) . "./$cache_file";;
1760 { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5
1761 $as_echo "$as_me: creating cache $cache_file" >&6;}
1765 # Check that the precious variables saved in the cache have kept the same
1767 ac_cache_corrupted=false
1768 for ac_var in $ac_precious_vars; do
1769 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1770 eval ac_new_set=\$ac_env_${ac_var}_set
1771 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1772 eval ac_new_val=\$ac_env_${ac_var}_value
1773 case $ac_old_set,$ac_new_set in
1775 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1776 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1777 ac_cache_corrupted=: ;;
1779 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1780 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1781 ac_cache_corrupted=: ;;
1784 if test "x$ac_old_val" != "x$ac_new_val"; then
1785 # differences in whitespace do not lead to failure.
1786 ac_old_val_w=`echo x $ac_old_val`
1787 ac_new_val_w=`echo x $ac_new_val`
1788 if test "$ac_old_val_w" != "$ac_new_val_w"; then
1789 { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1790 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1791 ac_cache_corrupted=:
1793 { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
1794 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
1795 eval $ac_var=\$ac_old_val
1797 { $as_echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5
1798 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
1799 { $as_echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5
1800 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
1803 # Pass precious variables to config.status.
1804 if test "$ac_new_set" = set; then
1806 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1807 *) ac_arg=$ac_var=$ac_new_val ;;
1809 case " $ac_configure_args " in
1810 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1811 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1815 if $ac_cache_corrupted; then
1816 { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
1817 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1818 { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1819 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1820 { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1821 $as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1822 { (exit 1); exit 1; }; }
1850 ac_cpp='$CPP $CPPFLAGS'
1851 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1852 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1853 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1858 ac_config_headers="$ac_config_headers config.h"
1861 # fix warnings from autoconf + automake
1863 ac_cpp='$CPP $CPPFLAGS'
1864 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1865 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1866 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1867 if test -n "$ac_tool_prefix"; then
1868 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1869 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1870 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
1871 $as_echo_n "checking for $ac_word... " >&6; }
1872 if test "${ac_cv_prog_CC+set}" = set; then
1873 $as_echo_n "(cached) " >&6
1875 if test -n "$CC"; then
1876 ac_cv_prog_CC="$CC" # Let the user override the test.
1878 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1882 test -z "$as_dir" && as_dir=.
1883 for ac_exec_ext in '' $ac_executable_extensions; do
1884 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1885 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1886 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1896 if test -n "$CC"; then
1897 { $as_echo "$as_me:$LINENO: result: $CC" >&5
1898 $as_echo "$CC" >&6; }
1900 { $as_echo "$as_me:$LINENO: result: no" >&5
1901 $as_echo "no" >&6; }
1906 if test -z "$ac_cv_prog_CC"; then
1908 # Extract the first word of "gcc", so it can be a program name with args.
1909 set dummy gcc; ac_word=$2
1910 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
1911 $as_echo_n "checking for $ac_word... " >&6; }
1912 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1913 $as_echo_n "(cached) " >&6
1915 if test -n "$ac_ct_CC"; then
1916 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1918 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1922 test -z "$as_dir" && as_dir=.
1923 for ac_exec_ext in '' $ac_executable_extensions; do
1924 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1925 ac_cv_prog_ac_ct_CC="gcc"
1926 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1935 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1936 if test -n "$ac_ct_CC"; then
1937 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1938 $as_echo "$ac_ct_CC" >&6; }
1940 { $as_echo "$as_me:$LINENO: result: no" >&5
1941 $as_echo "no" >&6; }
1944 if test "x$ac_ct_CC" = x; then
1947 case $cross_compiling:$ac_tool_warned in
1949 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
1950 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
1951 ac_tool_warned=yes ;;
1959 if test -z "$CC"; then
1960 if test -n "$ac_tool_prefix"; then
1961 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1962 set dummy ${ac_tool_prefix}cc; ac_word=$2
1963 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
1964 $as_echo_n "checking for $ac_word... " >&6; }
1965 if test "${ac_cv_prog_CC+set}" = set; then
1966 $as_echo_n "(cached) " >&6
1968 if test -n "$CC"; then
1969 ac_cv_prog_CC="$CC" # Let the user override the test.
1971 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1975 test -z "$as_dir" && as_dir=.
1976 for ac_exec_ext in '' $ac_executable_extensions; do
1977 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1978 ac_cv_prog_CC="${ac_tool_prefix}cc"
1979 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1989 if test -n "$CC"; then
1990 { $as_echo "$as_me:$LINENO: result: $CC" >&5
1991 $as_echo "$CC" >&6; }
1993 { $as_echo "$as_me:$LINENO: result: no" >&5
1994 $as_echo "no" >&6; }
2000 if test -z "$CC"; then
2001 # Extract the first word of "cc", so it can be a program name with args.
2002 set dummy cc; ac_word=$2
2003 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2004 $as_echo_n "checking for $ac_word... " >&6; }
2005 if test "${ac_cv_prog_CC+set}" = set; then
2006 $as_echo_n "(cached) " >&6
2008 if test -n "$CC"; then
2009 ac_cv_prog_CC="$CC" # Let the user override the test.
2012 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2016 test -z "$as_dir" && as_dir=.
2017 for ac_exec_ext in '' $ac_executable_extensions; do
2018 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2019 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2020 ac_prog_rejected=yes
2024 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2031 if test $ac_prog_rejected = yes; then
2032 # We found a bogon in the path, so make sure we never use it.
2033 set dummy $ac_cv_prog_CC
2035 if test $# != 0; then
2036 # We chose a different compiler from the bogus one.
2037 # However, it has the same basename, so the bogon will be chosen
2038 # first if we set CC to just the basename; use the full file name.
2040 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2046 if test -n "$CC"; then
2047 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2048 $as_echo "$CC" >&6; }
2050 { $as_echo "$as_me:$LINENO: result: no" >&5
2051 $as_echo "no" >&6; }
2056 if test -z "$CC"; then
2057 if test -n "$ac_tool_prefix"; then
2058 for ac_prog in cl.exe
2060 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2061 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2062 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2063 $as_echo_n "checking for $ac_word... " >&6; }
2064 if test "${ac_cv_prog_CC+set}" = set; then
2065 $as_echo_n "(cached) " >&6
2067 if test -n "$CC"; then
2068 ac_cv_prog_CC="$CC" # Let the user override the test.
2070 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2074 test -z "$as_dir" && as_dir=.
2075 for ac_exec_ext in '' $ac_executable_extensions; do
2076 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2077 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2078 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2088 if test -n "$CC"; then
2089 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2090 $as_echo "$CC" >&6; }
2092 { $as_echo "$as_me:$LINENO: result: no" >&5
2093 $as_echo "no" >&6; }
2097 test -n "$CC" && break
2100 if test -z "$CC"; then
2102 for ac_prog in cl.exe
2104 # Extract the first word of "$ac_prog", so it can be a program name with args.
2105 set dummy $ac_prog; ac_word=$2
2106 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2107 $as_echo_n "checking for $ac_word... " >&6; }
2108 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2109 $as_echo_n "(cached) " >&6
2111 if test -n "$ac_ct_CC"; then
2112 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2114 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2118 test -z "$as_dir" && as_dir=.
2119 for ac_exec_ext in '' $ac_executable_extensions; do
2120 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2121 ac_cv_prog_ac_ct_CC="$ac_prog"
2122 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2131 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2132 if test -n "$ac_ct_CC"; then
2133 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2134 $as_echo "$ac_ct_CC" >&6; }
2136 { $as_echo "$as_me:$LINENO: result: no" >&5
2137 $as_echo "no" >&6; }
2141 test -n "$ac_ct_CC" && break
2144 if test "x$ac_ct_CC" = x; then
2147 case $cross_compiling:$ac_tool_warned in
2149 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2150 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2151 ac_tool_warned=yes ;;
2160 test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2161 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2162 { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2163 See \`config.log' for more details." >&5
2164 $as_echo "$as_me: error: no acceptable C compiler found in \$PATH
2165 See \`config.log' for more details." >&2;}
2166 { (exit 1); exit 1; }; }; }
2168 # Provide some information about the compiler.
2169 $as_echo "$as_me:$LINENO: checking for C compiler version" >&5
2172 { (ac_try="$ac_compiler --version >&5"
2174 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2175 *) ac_try_echo=$ac_try;;
2177 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2178 $as_echo "$ac_try_echo") >&5
2179 (eval "$ac_compiler --version >&5") 2>&5
2181 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2182 (exit $ac_status); }
2183 { (ac_try="$ac_compiler -v >&5"
2185 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2186 *) ac_try_echo=$ac_try;;
2188 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2189 $as_echo "$ac_try_echo") >&5
2190 (eval "$ac_compiler -v >&5") 2>&5
2192 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2193 (exit $ac_status); }
2194 { (ac_try="$ac_compiler -V >&5"
2196 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2197 *) ac_try_echo=$ac_try;;
2199 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2200 $as_echo "$ac_try_echo") >&5
2201 (eval "$ac_compiler -V >&5") 2>&5
2203 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2204 (exit $ac_status); }
2206 cat >conftest.$ac_ext <<_ACEOF
2209 cat confdefs.h >>conftest.$ac_ext
2210 cat >>conftest.$ac_ext <<_ACEOF
2211 /* end confdefs.h. */
2221 ac_clean_files_save=$ac_clean_files
2222 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2223 # Try to create an executable without -o first, disregard a.out.
2224 # It will help us diagnose broken compilers, and finding out an intuition
2226 { $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2227 $as_echo_n "checking for C compiler default output file name... " >&6; }
2228 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2230 # The possible output files:
2231 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2234 for ac_file in $ac_files
2237 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2238 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2243 if { (ac_try="$ac_link_default"
2245 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2246 *) ac_try_echo=$ac_try;;
2248 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2249 $as_echo "$ac_try_echo") >&5
2250 (eval "$ac_link_default") 2>&5
2252 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2253 (exit $ac_status); }; then
2254 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2255 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2256 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2257 # so that the user can short-circuit this test for compilers unknown to
2259 for ac_file in $ac_files ''
2261 test -f "$ac_file" || continue
2263 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2266 # We found the default executable, but exeext='' is most
2270 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2272 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2274 # We set ac_cv_exeext here because the later test for it is not
2275 # safe: cross compilers may not add the suffix if given an `-o'
2276 # argument, so we may need to know it at that point already.
2277 # Even if this section looks crufty: it has the advantage of
2284 test "$ac_cv_exeext" = no && ac_cv_exeext=
2290 { $as_echo "$as_me:$LINENO: result: $ac_file" >&5
2291 $as_echo "$ac_file" >&6; }
2292 if test -z "$ac_file"; then
2293 $as_echo "$as_me: failed program was:" >&5
2294 sed 's/^/| /' conftest.$ac_ext >&5
2296 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2297 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2298 { { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables
2299 See \`config.log' for more details." >&5
2300 $as_echo "$as_me: error: C compiler cannot create executables
2301 See \`config.log' for more details." >&2;}
2302 { (exit 77); exit 77; }; }; }
2305 ac_exeext=$ac_cv_exeext
2307 # Check that the compiler produces executables we can run. If not, either
2308 # the compiler is broken, or we cross compile.
2309 { $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2310 $as_echo_n "checking whether the C compiler works... " >&6; }
2311 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2312 # If not cross compiling, check that we can run a simple program.
2313 if test "$cross_compiling" != yes; then
2314 if { ac_try='./$ac_file'
2315 { (case "(($ac_try" in
2316 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2317 *) ac_try_echo=$ac_try;;
2319 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2320 $as_echo "$ac_try_echo") >&5
2321 (eval "$ac_try") 2>&5
2323 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2324 (exit $ac_status); }; }; then
2327 if test "$cross_compiling" = maybe; then
2330 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2331 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2332 { { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs.
2333 If you meant to cross compile, use \`--host'.
2334 See \`config.log' for more details." >&5
2335 $as_echo "$as_me: error: cannot run C compiled programs.
2336 If you meant to cross compile, use \`--host'.
2337 See \`config.log' for more details." >&2;}
2338 { (exit 1); exit 1; }; }; }
2342 { $as_echo "$as_me:$LINENO: result: yes" >&5
2343 $as_echo "yes" >&6; }
2345 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
2346 ac_clean_files=$ac_clean_files_save
2347 # Check that the compiler produces executables we can run. If not, either
2348 # the compiler is broken, or we cross compile.
2349 { $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2350 $as_echo_n "checking whether we are cross compiling... " >&6; }
2351 { $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5
2352 $as_echo "$cross_compiling" >&6; }
2354 { $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5
2355 $as_echo_n "checking for suffix of executables... " >&6; }
2356 if { (ac_try="$ac_link"
2358 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2359 *) ac_try_echo=$ac_try;;
2361 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2362 $as_echo "$ac_try_echo") >&5
2363 (eval "$ac_link") 2>&5
2365 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2366 (exit $ac_status); }; then
2367 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2368 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2369 # work properly (i.e., refer to `conftest.exe'), while it won't with
2371 for ac_file in conftest.exe conftest conftest.*; do
2372 test -f "$ac_file" || continue
2374 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2375 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2381 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2382 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2383 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2384 See \`config.log' for more details." >&5
2385 $as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2386 See \`config.log' for more details." >&2;}
2387 { (exit 1); exit 1; }; }; }
2390 rm -f conftest$ac_cv_exeext
2391 { $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2392 $as_echo "$ac_cv_exeext" >&6; }
2394 rm -f conftest.$ac_ext
2395 EXEEXT=$ac_cv_exeext
2397 { $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5
2398 $as_echo_n "checking for suffix of object files... " >&6; }
2399 if test "${ac_cv_objext+set}" = set; then
2400 $as_echo_n "(cached) " >&6
2402 cat >conftest.$ac_ext <<_ACEOF
2405 cat confdefs.h >>conftest.$ac_ext
2406 cat >>conftest.$ac_ext <<_ACEOF
2407 /* end confdefs.h. */
2417 rm -f conftest.o conftest.obj
2418 if { (ac_try="$ac_compile"
2420 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2421 *) ac_try_echo=$ac_try;;
2423 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2424 $as_echo "$ac_try_echo") >&5
2425 (eval "$ac_compile") 2>&5
2427 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2428 (exit $ac_status); }; then
2429 for ac_file in conftest.o conftest.obj conftest.*; do
2430 test -f "$ac_file" || continue;
2432 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
2433 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2438 $as_echo "$as_me: failed program was:" >&5
2439 sed 's/^/| /' conftest.$ac_ext >&5
2441 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2442 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2443 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2444 See \`config.log' for more details." >&5
2445 $as_echo "$as_me: error: cannot compute suffix of object files: cannot compile
2446 See \`config.log' for more details." >&2;}
2447 { (exit 1); exit 1; }; }; }
2450 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2452 { $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2453 $as_echo "$ac_cv_objext" >&6; }
2454 OBJEXT=$ac_cv_objext
2456 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2457 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
2458 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2459 $as_echo_n "(cached) " >&6
2461 cat >conftest.$ac_ext <<_ACEOF
2464 cat confdefs.h >>conftest.$ac_ext
2465 cat >>conftest.$ac_ext <<_ACEOF
2466 /* end confdefs.h. */
2479 rm -f conftest.$ac_objext
2480 if { (ac_try="$ac_compile"
2482 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2483 *) ac_try_echo=$ac_try;;
2485 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2486 $as_echo "$ac_try_echo") >&5
2487 (eval "$ac_compile") 2>conftest.er1
2489 grep -v '^ *+' conftest.er1 >conftest.err
2491 cat conftest.err >&5
2492 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2493 (exit $ac_status); } && {
2494 test -z "$ac_c_werror_flag" ||
2495 test ! -s conftest.err
2496 } && test -s conftest.$ac_objext; then
2499 $as_echo "$as_me: failed program was:" >&5
2500 sed 's/^/| /' conftest.$ac_ext >&5
2505 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2506 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2509 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2510 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
2511 if test $ac_compiler_gnu = yes; then
2516 ac_test_CFLAGS=${CFLAGS+set}
2517 ac_save_CFLAGS=$CFLAGS
2518 { $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2519 $as_echo_n "checking whether $CC accepts -g... " >&6; }
2520 if test "${ac_cv_prog_cc_g+set}" = set; then
2521 $as_echo_n "(cached) " >&6
2523 ac_save_c_werror_flag=$ac_c_werror_flag
2524 ac_c_werror_flag=yes
2527 cat >conftest.$ac_ext <<_ACEOF
2530 cat confdefs.h >>conftest.$ac_ext
2531 cat >>conftest.$ac_ext <<_ACEOF
2532 /* end confdefs.h. */
2542 rm -f conftest.$ac_objext
2543 if { (ac_try="$ac_compile"
2545 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2546 *) ac_try_echo=$ac_try;;
2548 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2549 $as_echo "$ac_try_echo") >&5
2550 (eval "$ac_compile") 2>conftest.er1
2552 grep -v '^ *+' conftest.er1 >conftest.err
2554 cat conftest.err >&5
2555 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2556 (exit $ac_status); } && {
2557 test -z "$ac_c_werror_flag" ||
2558 test ! -s conftest.err
2559 } && test -s conftest.$ac_objext; then
2562 $as_echo "$as_me: failed program was:" >&5
2563 sed 's/^/| /' conftest.$ac_ext >&5
2566 cat >conftest.$ac_ext <<_ACEOF
2569 cat confdefs.h >>conftest.$ac_ext
2570 cat >>conftest.$ac_ext <<_ACEOF
2571 /* end confdefs.h. */
2581 rm -f conftest.$ac_objext
2582 if { (ac_try="$ac_compile"
2584 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2585 *) ac_try_echo=$ac_try;;
2587 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2588 $as_echo "$ac_try_echo") >&5
2589 (eval "$ac_compile") 2>conftest.er1
2591 grep -v '^ *+' conftest.er1 >conftest.err
2593 cat conftest.err >&5
2594 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2595 (exit $ac_status); } && {
2596 test -z "$ac_c_werror_flag" ||
2597 test ! -s conftest.err
2598 } && test -s conftest.$ac_objext; then
2601 $as_echo "$as_me: failed program was:" >&5
2602 sed 's/^/| /' conftest.$ac_ext >&5
2604 ac_c_werror_flag=$ac_save_c_werror_flag
2606 cat >conftest.$ac_ext <<_ACEOF
2609 cat confdefs.h >>conftest.$ac_ext
2610 cat >>conftest.$ac_ext <<_ACEOF
2611 /* end confdefs.h. */
2621 rm -f conftest.$ac_objext
2622 if { (ac_try="$ac_compile"
2624 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2625 *) ac_try_echo=$ac_try;;
2627 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2628 $as_echo "$ac_try_echo") >&5
2629 (eval "$ac_compile") 2>conftest.er1
2631 grep -v '^ *+' conftest.er1 >conftest.err
2633 cat conftest.err >&5
2634 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2635 (exit $ac_status); } && {
2636 test -z "$ac_c_werror_flag" ||
2637 test ! -s conftest.err
2638 } && test -s conftest.$ac_objext; then
2641 $as_echo "$as_me: failed program was:" >&5
2642 sed 's/^/| /' conftest.$ac_ext >&5
2647 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2650 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2653 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2654 ac_c_werror_flag=$ac_save_c_werror_flag
2656 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2657 $as_echo "$ac_cv_prog_cc_g" >&6; }
2658 if test "$ac_test_CFLAGS" = set; then
2659 CFLAGS=$ac_save_CFLAGS
2660 elif test $ac_cv_prog_cc_g = yes; then
2661 if test "$GCC" = yes; then
2667 if test "$GCC" = yes; then
2673 { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2674 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
2675 if test "${ac_cv_prog_cc_c89+set}" = set; then
2676 $as_echo_n "(cached) " >&6
2678 ac_cv_prog_cc_c89=no
2680 cat >conftest.$ac_ext <<_ACEOF
2683 cat confdefs.h >>conftest.$ac_ext
2684 cat >>conftest.$ac_ext <<_ACEOF
2685 /* end confdefs.h. */
2688 #include <sys/types.h>
2689 #include <sys/stat.h>
2690 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2691 struct buf { int x; };
2692 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2693 static char *e (p, i)
2699 static char *f (char * (*g) (char **, int), char **p, ...)
2704 s = g (p, va_arg (v,int));
2709 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2710 function prototypes and stuff, but not '\xHH' hex character constants.
2711 These don't provoke an error unfortunately, instead are silently treated
2712 as 'x'. The following induces an error, until -std is added to get
2713 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2714 array size at least. It's necessary to write '\x00'==0 to get something
2715 that's true only with -std. */
2716 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2718 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2719 inside strings and character constants. */
2721 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2723 int test (int i, double x);
2724 struct s1 {int (*f) (int a);};
2725 struct s2 {int (*f) (double a);};
2726 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2732 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2737 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2738 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2740 CC="$ac_save_CC $ac_arg"
2741 rm -f conftest.$ac_objext
2742 if { (ac_try="$ac_compile"
2744 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2745 *) ac_try_echo=$ac_try;;
2747 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2748 $as_echo "$ac_try_echo") >&5
2749 (eval "$ac_compile") 2>conftest.er1
2751 grep -v '^ *+' conftest.er1 >conftest.err
2753 cat conftest.err >&5
2754 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2755 (exit $ac_status); } && {
2756 test -z "$ac_c_werror_flag" ||
2757 test ! -s conftest.err
2758 } && test -s conftest.$ac_objext; then
2759 ac_cv_prog_cc_c89=$ac_arg
2761 $as_echo "$as_me: failed program was:" >&5
2762 sed 's/^/| /' conftest.$ac_ext >&5
2767 rm -f core conftest.err conftest.$ac_objext
2768 test "x$ac_cv_prog_cc_c89" != "xno" && break
2770 rm -f conftest.$ac_ext
2775 case "x$ac_cv_prog_cc_c89" in
2777 { $as_echo "$as_me:$LINENO: result: none needed" >&5
2778 $as_echo "none needed" >&6; } ;;
2780 { $as_echo "$as_me:$LINENO: result: unsupported" >&5
2781 $as_echo "unsupported" >&6; } ;;
2783 CC="$CC $ac_cv_prog_cc_c89"
2784 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
2785 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
2790 ac_cpp='$CPP $CPPFLAGS'
2791 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2792 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2793 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2797 ac_cpp='$CPP $CPPFLAGS'
2798 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2799 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2800 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2801 { $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2802 $as_echo_n "checking how to run the C preprocessor... " >&6; }
2803 # On Suns, sometimes $CPP names a directory.
2804 if test -n "$CPP" && test -d "$CPP"; then
2807 if test -z "$CPP"; then
2808 if test "${ac_cv_prog_CPP+set}" = set; then
2809 $as_echo_n "(cached) " >&6
2811 # Double quotes because CPP needs to be expanded
2812 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2815 for ac_c_preproc_warn_flag in '' yes
2817 # Use a header file that comes with gcc, so configuring glibc
2818 # with a fresh cross-compiler works.
2819 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2820 # <limits.h> exists even on freestanding compilers.
2821 # On the NeXT, cc -E runs the code through the compiler's parser,
2822 # not just through cpp. "Syntax error" is here to catch this case.
2823 cat >conftest.$ac_ext <<_ACEOF
2826 cat confdefs.h >>conftest.$ac_ext
2827 cat >>conftest.$ac_ext <<_ACEOF
2828 /* end confdefs.h. */
2830 # include <limits.h>
2832 # include <assert.h>
2836 if { (ac_try="$ac_cpp conftest.$ac_ext"
2838 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2839 *) ac_try_echo=$ac_try;;
2841 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2842 $as_echo "$ac_try_echo") >&5
2843 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
2845 grep -v '^ *+' conftest.er1 >conftest.err
2847 cat conftest.err >&5
2848 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2849 (exit $ac_status); } >/dev/null && {
2850 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2851 test ! -s conftest.err
2855 $as_echo "$as_me: failed program was:" >&5
2856 sed 's/^/| /' conftest.$ac_ext >&5
2858 # Broken: fails on valid input.
2862 rm -f conftest.err conftest.$ac_ext
2864 # OK, works on sane cases. Now check whether nonexistent headers
2865 # can be detected and how.
2866 cat >conftest.$ac_ext <<_ACEOF
2869 cat confdefs.h >>conftest.$ac_ext
2870 cat >>conftest.$ac_ext <<_ACEOF
2871 /* end confdefs.h. */
2872 #include <ac_nonexistent.h>
2874 if { (ac_try="$ac_cpp conftest.$ac_ext"
2876 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2877 *) ac_try_echo=$ac_try;;
2879 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2880 $as_echo "$ac_try_echo") >&5
2881 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
2883 grep -v '^ *+' conftest.er1 >conftest.err
2885 cat conftest.err >&5
2886 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2887 (exit $ac_status); } >/dev/null && {
2888 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2889 test ! -s conftest.err
2891 # Broken: success on invalid input.
2894 $as_echo "$as_me: failed program was:" >&5
2895 sed 's/^/| /' conftest.$ac_ext >&5
2897 # Passes both tests.
2902 rm -f conftest.err conftest.$ac_ext
2905 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2906 rm -f conftest.err conftest.$ac_ext
2907 if $ac_preproc_ok; then
2919 { $as_echo "$as_me:$LINENO: result: $CPP" >&5
2920 $as_echo "$CPP" >&6; }
2922 for ac_c_preproc_warn_flag in '' yes
2924 # Use a header file that comes with gcc, so configuring glibc
2925 # with a fresh cross-compiler works.
2926 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2927 # <limits.h> exists even on freestanding compilers.
2928 # On the NeXT, cc -E runs the code through the compiler's parser,
2929 # not just through cpp. "Syntax error" is here to catch this case.
2930 cat >conftest.$ac_ext <<_ACEOF
2933 cat confdefs.h >>conftest.$ac_ext
2934 cat >>conftest.$ac_ext <<_ACEOF
2935 /* end confdefs.h. */
2937 # include <limits.h>
2939 # include <assert.h>
2943 if { (ac_try="$ac_cpp conftest.$ac_ext"
2945 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2946 *) ac_try_echo=$ac_try;;
2948 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2949 $as_echo "$ac_try_echo") >&5
2950 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
2952 grep -v '^ *+' conftest.er1 >conftest.err
2954 cat conftest.err >&5
2955 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2956 (exit $ac_status); } >/dev/null && {
2957 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2958 test ! -s conftest.err
2962 $as_echo "$as_me: failed program was:" >&5
2963 sed 's/^/| /' conftest.$ac_ext >&5
2965 # Broken: fails on valid input.
2969 rm -f conftest.err conftest.$ac_ext
2971 # OK, works on sane cases. Now check whether nonexistent headers
2972 # can be detected and how.
2973 cat >conftest.$ac_ext <<_ACEOF
2976 cat confdefs.h >>conftest.$ac_ext
2977 cat >>conftest.$ac_ext <<_ACEOF
2978 /* end confdefs.h. */
2979 #include <ac_nonexistent.h>
2981 if { (ac_try="$ac_cpp conftest.$ac_ext"
2983 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2984 *) ac_try_echo=$ac_try;;
2986 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2987 $as_echo "$ac_try_echo") >&5
2988 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
2990 grep -v '^ *+' conftest.er1 >conftest.err
2992 cat conftest.err >&5
2993 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2994 (exit $ac_status); } >/dev/null && {
2995 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2996 test ! -s conftest.err
2998 # Broken: success on invalid input.
3001 $as_echo "$as_me: failed program was:" >&5
3002 sed 's/^/| /' conftest.$ac_ext >&5
3004 # Passes both tests.
3009 rm -f conftest.err conftest.$ac_ext
3012 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3013 rm -f conftest.err conftest.$ac_ext
3014 if $ac_preproc_ok; then
3017 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3018 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3019 { { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3020 See \`config.log' for more details." >&5
3021 $as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3022 See \`config.log' for more details." >&2;}
3023 { (exit 1); exit 1; }; }; }
3027 ac_cpp='$CPP $CPPFLAGS'
3028 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3029 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3030 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3033 { $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3034 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3035 if test "${ac_cv_path_GREP+set}" = set; then
3036 $as_echo_n "(cached) " >&6
3038 if test -z "$GREP"; then
3039 ac_path_GREP_found=false
3040 # Loop through the user's path and test for each of PROGNAME-LIST
3041 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3042 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3045 test -z "$as_dir" && as_dir=.
3046 for ac_prog in grep ggrep; do
3047 for ac_exec_ext in '' $ac_executable_extensions; do
3048 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3049 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3050 # Check for GNU ac_path_GREP and select it if it is found.
3051 # Check for GNU $ac_path_GREP
3052 case `"$ac_path_GREP" --version 2>&1` in
3054 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3057 $as_echo_n 0123456789 >"conftest.in"
3060 cat "conftest.in" "conftest.in" >"conftest.tmp"
3061 mv "conftest.tmp" "conftest.in"
3062 cp "conftest.in" "conftest.nl"
3063 $as_echo 'GREP' >> "conftest.nl"
3064 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3065 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3066 ac_count=`expr $ac_count + 1`
3067 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3068 # Best one so far, save it but keep looking for a better one
3069 ac_cv_path_GREP="$ac_path_GREP"
3070 ac_path_GREP_max=$ac_count
3072 # 10*(2^10) chars as input seems more than enough
3073 test $ac_count -gt 10 && break
3075 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3078 $ac_path_GREP_found && break 3
3083 if test -z "$ac_cv_path_GREP"; then
3084 { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3085 $as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3086 { (exit 1); exit 1; }; }
3089 ac_cv_path_GREP=$GREP
3093 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3094 $as_echo "$ac_cv_path_GREP" >&6; }
3095 GREP="$ac_cv_path_GREP"
3098 { $as_echo "$as_me:$LINENO: checking for egrep" >&5
3099 $as_echo_n "checking for egrep... " >&6; }
3100 if test "${ac_cv_path_EGREP+set}" = set; then
3101 $as_echo_n "(cached) " >&6
3103 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3104 then ac_cv_path_EGREP="$GREP -E"
3106 if test -z "$EGREP"; then
3107 ac_path_EGREP_found=false
3108 # Loop through the user's path and test for each of PROGNAME-LIST
3109 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3110 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3113 test -z "$as_dir" && as_dir=.
3114 for ac_prog in egrep; do
3115 for ac_exec_ext in '' $ac_executable_extensions; do
3116 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3117 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3118 # Check for GNU ac_path_EGREP and select it if it is found.
3119 # Check for GNU $ac_path_EGREP
3120 case `"$ac_path_EGREP" --version 2>&1` in
3122 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3125 $as_echo_n 0123456789 >"conftest.in"
3128 cat "conftest.in" "conftest.in" >"conftest.tmp"
3129 mv "conftest.tmp" "conftest.in"
3130 cp "conftest.in" "conftest.nl"
3131 $as_echo 'EGREP' >> "conftest.nl"
3132 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3133 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3134 ac_count=`expr $ac_count + 1`
3135 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3136 # Best one so far, save it but keep looking for a better one
3137 ac_cv_path_EGREP="$ac_path_EGREP"
3138 ac_path_EGREP_max=$ac_count
3140 # 10*(2^10) chars as input seems more than enough
3141 test $ac_count -gt 10 && break
3143 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3146 $ac_path_EGREP_found && break 3
3151 if test -z "$ac_cv_path_EGREP"; then
3152 { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3153 $as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3154 { (exit 1); exit 1; }; }
3157 ac_cv_path_EGREP=$EGREP
3162 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3163 $as_echo "$ac_cv_path_EGREP" >&6; }
3164 EGREP="$ac_cv_path_EGREP"
3167 { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3168 $as_echo_n "checking for ANSI C header files... " >&6; }
3169 if test "${ac_cv_header_stdc+set}" = set; then
3170 $as_echo_n "(cached) " >&6
3172 cat >conftest.$ac_ext <<_ACEOF
3175 cat confdefs.h >>conftest.$ac_ext
3176 cat >>conftest.$ac_ext <<_ACEOF
3177 /* end confdefs.h. */
3191 rm -f conftest.$ac_objext
3192 if { (ac_try="$ac_compile"
3194 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3195 *) ac_try_echo=$ac_try;;
3197 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3198 $as_echo "$ac_try_echo") >&5
3199 (eval "$ac_compile") 2>conftest.er1
3201 grep -v '^ *+' conftest.er1 >conftest.err
3203 cat conftest.err >&5
3204 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3205 (exit $ac_status); } && {
3206 test -z "$ac_c_werror_flag" ||
3207 test ! -s conftest.err
3208 } && test -s conftest.$ac_objext; then
3209 ac_cv_header_stdc=yes
3211 $as_echo "$as_me: failed program was:" >&5
3212 sed 's/^/| /' conftest.$ac_ext >&5
3214 ac_cv_header_stdc=no
3217 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3219 if test $ac_cv_header_stdc = yes; then
3220 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3221 cat >conftest.$ac_ext <<_ACEOF
3224 cat confdefs.h >>conftest.$ac_ext
3225 cat >>conftest.$ac_ext <<_ACEOF
3226 /* end confdefs.h. */
3230 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3231 $EGREP "memchr" >/dev/null 2>&1; then
3234 ac_cv_header_stdc=no
3240 if test $ac_cv_header_stdc = yes; then
3241 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3242 cat >conftest.$ac_ext <<_ACEOF
3245 cat confdefs.h >>conftest.$ac_ext
3246 cat >>conftest.$ac_ext <<_ACEOF
3247 /* end confdefs.h. */
3251 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3252 $EGREP "free" >/dev/null 2>&1; then
3255 ac_cv_header_stdc=no
3261 if test $ac_cv_header_stdc = yes; then
3262 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3263 if test "$cross_compiling" = yes; then
3266 cat >conftest.$ac_ext <<_ACEOF
3269 cat confdefs.h >>conftest.$ac_ext
3270 cat >>conftest.$ac_ext <<_ACEOF
3271 /* end confdefs.h. */
3274 #if ((' ' & 0x0FF) == 0x020)
3275 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3276 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3278 # define ISLOWER(c) \
3279 (('a' <= (c) && (c) <= 'i') \
3280 || ('j' <= (c) && (c) <= 'r') \
3281 || ('s' <= (c) && (c) <= 'z'))
3282 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3285 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3290 for (i = 0; i < 256; i++)
3291 if (XOR (islower (i), ISLOWER (i))
3292 || toupper (i) != TOUPPER (i))
3297 rm -f conftest$ac_exeext
3298 if { (ac_try="$ac_link"
3300 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3301 *) ac_try_echo=$ac_try;;
3303 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3304 $as_echo "$ac_try_echo") >&5
3305 (eval "$ac_link") 2>&5
3307 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3308 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3309 { (case "(($ac_try" in
3310 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3311 *) ac_try_echo=$ac_try;;
3313 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3314 $as_echo "$ac_try_echo") >&5
3315 (eval "$ac_try") 2>&5
3317 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3318 (exit $ac_status); }; }; then
3321 $as_echo "$as_me: program exited with status $ac_status" >&5
3322 $as_echo "$as_me: failed program was:" >&5
3323 sed 's/^/| /' conftest.$ac_ext >&5
3326 ac_cv_header_stdc=no
3328 rm -rf conftest.dSYM
3329 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3335 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3336 $as_echo "$ac_cv_header_stdc" >&6; }
3337 if test $ac_cv_header_stdc = yes; then
3339 cat >>confdefs.h <<\_ACEOF
3340 #define STDC_HEADERS 1
3345 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3355 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3356 inttypes.h stdint.h unistd.h
3358 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
3359 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
3360 $as_echo_n "checking for $ac_header... " >&6; }
3361 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
3362 $as_echo_n "(cached) " >&6
3364 cat >conftest.$ac_ext <<_ACEOF
3367 cat confdefs.h >>conftest.$ac_ext
3368 cat >>conftest.$ac_ext <<_ACEOF
3369 /* end confdefs.h. */
3370 $ac_includes_default
3372 #include <$ac_header>
3374 rm -f conftest.$ac_objext
3375 if { (ac_try="$ac_compile"
3377 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3378 *) ac_try_echo=$ac_try;;
3380 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3381 $as_echo "$ac_try_echo") >&5
3382 (eval "$ac_compile") 2>conftest.er1
3384 grep -v '^ *+' conftest.er1 >conftest.err
3386 cat conftest.err >&5
3387 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3388 (exit $ac_status); } && {
3389 test -z "$ac_c_werror_flag" ||
3390 test ! -s conftest.err
3391 } && test -s conftest.$ac_objext; then
3392 eval "$as_ac_Header=yes"
3394 $as_echo "$as_me: failed program was:" >&5
3395 sed 's/^/| /' conftest.$ac_ext >&5
3397 eval "$as_ac_Header=no"
3400 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3402 ac_res=`eval 'as_val=${'$as_ac_Header'}
3403 $as_echo "$as_val"'`
3404 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
3405 $as_echo "$ac_res" >&6; }
3406 as_val=`eval 'as_val=${'$as_ac_Header'}
3407 $as_echo "$as_val"'`
3408 if test "x$as_val" = x""yes; then
3409 cat >>confdefs.h <<_ACEOF
3410 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
3419 if test "${ac_cv_header_minix_config_h+set}" = set; then
3420 { $as_echo "$as_me:$LINENO: checking for minix/config.h" >&5
3421 $as_echo_n "checking for minix/config.h... " >&6; }
3422 if test "${ac_cv_header_minix_config_h+set}" = set; then
3423 $as_echo_n "(cached) " >&6
3425 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
3426 $as_echo "$ac_cv_header_minix_config_h" >&6; }
3428 # Is the header compilable?
3429 { $as_echo "$as_me:$LINENO: checking minix/config.h usability" >&5
3430 $as_echo_n "checking minix/config.h usability... " >&6; }
3431 cat >conftest.$ac_ext <<_ACEOF
3434 cat confdefs.h >>conftest.$ac_ext
3435 cat >>conftest.$ac_ext <<_ACEOF
3436 /* end confdefs.h. */
3437 $ac_includes_default
3438 #include <minix/config.h>
3440 rm -f conftest.$ac_objext
3441 if { (ac_try="$ac_compile"
3443 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3444 *) ac_try_echo=$ac_try;;
3446 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3447 $as_echo "$ac_try_echo") >&5
3448 (eval "$ac_compile") 2>conftest.er1
3450 grep -v '^ *+' conftest.er1 >conftest.err
3452 cat conftest.err >&5
3453 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3454 (exit $ac_status); } && {
3455 test -z "$ac_c_werror_flag" ||
3456 test ! -s conftest.err
3457 } && test -s conftest.$ac_objext; then
3458 ac_header_compiler=yes
3460 $as_echo "$as_me: failed program was:" >&5
3461 sed 's/^/| /' conftest.$ac_ext >&5
3463 ac_header_compiler=no
3466 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3467 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3468 $as_echo "$ac_header_compiler" >&6; }
3470 # Is the header present?
3471 { $as_echo "$as_me:$LINENO: checking minix/config.h presence" >&5
3472 $as_echo_n "checking minix/config.h presence... " >&6; }
3473 cat >conftest.$ac_ext <<_ACEOF
3476 cat confdefs.h >>conftest.$ac_ext
3477 cat >>conftest.$ac_ext <<_ACEOF
3478 /* end confdefs.h. */
3479 #include <minix/config.h>
3481 if { (ac_try="$ac_cpp conftest.$ac_ext"
3483 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3484 *) ac_try_echo=$ac_try;;
3486 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3487 $as_echo "$ac_try_echo") >&5
3488 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3490 grep -v '^ *+' conftest.er1 >conftest.err
3492 cat conftest.err >&5
3493 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3494 (exit $ac_status); } >/dev/null && {
3495 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3496 test ! -s conftest.err
3498 ac_header_preproc=yes
3500 $as_echo "$as_me: failed program was:" >&5
3501 sed 's/^/| /' conftest.$ac_ext >&5
3503 ac_header_preproc=no
3506 rm -f conftest.err conftest.$ac_ext
3507 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3508 $as_echo "$ac_header_preproc" >&6; }
3510 # So? What about this header?
3511 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
3513 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&5
3514 $as_echo "$as_me: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
3515 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the compiler's result" >&5
3516 $as_echo "$as_me: WARNING: minix/config.h: proceeding with the compiler's result" >&2;}
3517 ac_header_preproc=yes
3520 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: present but cannot be compiled" >&5
3521 $as_echo "$as_me: WARNING: minix/config.h: present but cannot be compiled" >&2;}
3522 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: check for missing prerequisite headers?" >&5
3523 $as_echo "$as_me: WARNING: minix/config.h: check for missing prerequisite headers?" >&2;}
3524 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: see the Autoconf documentation" >&5
3525 $as_echo "$as_me: WARNING: minix/config.h: see the Autoconf documentation" >&2;}
3526 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&5
3527 $as_echo "$as_me: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&2;}
3528 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5
3529 $as_echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;}
3530 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: in the future, the compiler will take precedence" >&5
3531 $as_echo "$as_me: WARNING: minix/config.h: in the future, the compiler will take precedence" >&2;}
3533 ## ----------------------------------- ##
3534 ## Report this to andreas@eversberg.eu ##
3535 ## ----------------------------------- ##
3537 ) | sed "s/^/$as_me: WARNING: /" >&2
3540 { $as_echo "$as_me:$LINENO: checking for minix/config.h" >&5
3541 $as_echo_n "checking for minix/config.h... " >&6; }
3542 if test "${ac_cv_header_minix_config_h+set}" = set; then
3543 $as_echo_n "(cached) " >&6
3545 ac_cv_header_minix_config_h=$ac_header_preproc
3547 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
3548 $as_echo "$ac_cv_header_minix_config_h" >&6; }
3551 if test "x$ac_cv_header_minix_config_h" = x""yes; then
3558 if test "$MINIX" = yes; then
3560 cat >>confdefs.h <<\_ACEOF
3561 #define _POSIX_SOURCE 1
3565 cat >>confdefs.h <<\_ACEOF
3566 #define _POSIX_1_SOURCE 2
3570 cat >>confdefs.h <<\_ACEOF
3578 { $as_echo "$as_me:$LINENO: checking whether it is safe to define __EXTENSIONS__" >&5
3579 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
3580 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then
3581 $as_echo_n "(cached) " >&6
3583 cat >conftest.$ac_ext <<_ACEOF
3586 cat confdefs.h >>conftest.$ac_ext
3587 cat >>conftest.$ac_ext <<_ACEOF
3588 /* end confdefs.h. */
3590 # define __EXTENSIONS__ 1
3591 $ac_includes_default
3600 rm -f conftest.$ac_objext
3601 if { (ac_try="$ac_compile"
3603 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3604 *) ac_try_echo=$ac_try;;
3606 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3607 $as_echo "$ac_try_echo") >&5
3608 (eval "$ac_compile") 2>conftest.er1
3610 grep -v '^ *+' conftest.er1 >conftest.err
3612 cat conftest.err >&5
3613 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3614 (exit $ac_status); } && {
3615 test -z "$ac_c_werror_flag" ||
3616 test ! -s conftest.err
3617 } && test -s conftest.$ac_objext; then
3618 ac_cv_safe_to_define___extensions__=yes
3620 $as_echo "$as_me: failed program was:" >&5
3621 sed 's/^/| /' conftest.$ac_ext >&5
3623 ac_cv_safe_to_define___extensions__=no
3626 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3628 { $as_echo "$as_me:$LINENO: result: $ac_cv_safe_to_define___extensions__" >&5
3629 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
3630 test $ac_cv_safe_to_define___extensions__ = yes &&
3631 cat >>confdefs.h <<\_ACEOF
3632 #define __EXTENSIONS__ 1
3635 cat >>confdefs.h <<\_ACEOF
3636 #define _ALL_SOURCE 1
3639 cat >>confdefs.h <<\_ACEOF
3640 #define _GNU_SOURCE 1
3643 cat >>confdefs.h <<\_ACEOF
3644 #define _POSIX_PTHREAD_SEMANTICS 1
3647 cat >>confdefs.h <<\_ACEOF
3648 #define _TANDEM_SOURCE 1
3652 # AC_USE_SYSTEM_EXTENSIONS
3653 am__api_version="1.9"
3655 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
3656 if test -f "$ac_dir/install-sh"; then
3658 ac_install_sh="$ac_aux_dir/install-sh -c"
3660 elif test -f "$ac_dir/install.sh"; then
3662 ac_install_sh="$ac_aux_dir/install.sh -c"
3664 elif test -f "$ac_dir/shtool"; then
3666 ac_install_sh="$ac_aux_dir/shtool install -c"
3670 if test -z "$ac_aux_dir"; then
3671 { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
3672 $as_echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
3673 { (exit 1); exit 1; }; }
3676 # These three variables are undocumented and unsupported,
3677 # and are intended to be withdrawn in a future Autoconf release.
3678 # They can cause serious problems if a builder's source tree is in a directory
3679 # whose full name contains unusual characters.
3680 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3681 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3682 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3685 # Find a good install program. We prefer a C program (faster),
3686 # so one script is as good as another. But avoid the broken or
3687 # incompatible versions:
3688 # SysV /etc/install, /usr/sbin/install
3689 # SunOS /usr/etc/install
3690 # IRIX /sbin/install
3692 # AmigaOS /C/install, which installs bootblocks on floppy discs
3693 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3694 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3695 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3696 # OS/2's system install, which has a completely different semantic
3697 # ./install, which can be erroneously created by make from ./install.sh.
3698 # Reject install programs that cannot install multiple files.
3699 { $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3700 $as_echo_n "checking for a BSD-compatible install... " >&6; }
3701 if test -z "$INSTALL"; then
3702 if test "${ac_cv_path_install+set}" = set; then
3703 $as_echo_n "(cached) " >&6
3705 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3709 test -z "$as_dir" && as_dir=.
3710 # Account for people who put trailing slashes in PATH elements.
3712 ./ | .// | /cC/* | \
3713 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3714 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3717 # OSF1 and SCO ODT 3.0 have their own names for install.
3718 # Don't use installbsd from OSF since it installs stuff as root
3720 for ac_prog in ginstall scoinst install; do
3721 for ac_exec_ext in '' $ac_executable_extensions; do
3722 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
3723 if test $ac_prog = install &&
3724 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3725 # AIX install. It has an incompatible calling convention.
3727 elif test $ac_prog = install &&
3728 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3729 # program-specific install script used by HP pwplus--don't use.
3732 rm -rf conftest.one conftest.two conftest.dir
3733 echo one > conftest.one
3734 echo two > conftest.two
3736 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3737 test -s conftest.one && test -s conftest.two &&
3738 test -s conftest.dir/conftest.one &&
3739 test -s conftest.dir/conftest.two
3741 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3754 rm -rf conftest.one conftest.two conftest.dir
3757 if test "${ac_cv_path_install+set}" = set; then
3758 INSTALL=$ac_cv_path_install
3760 # As a last resort, use the slow shell script. Don't cache a
3761 # value for INSTALL within a source directory, because that will
3762 # break other packages using the cache if that directory is
3763 # removed, or if the value is a relative name.
3764 INSTALL=$ac_install_sh
3767 { $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
3768 $as_echo "$INSTALL" >&6; }
3770 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3771 # It thinks the first close brace ends the variable substitution.
3772 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3774 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3776 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3778 { $as_echo "$as_me:$LINENO: checking whether build environment is sane" >&5
3779 $as_echo_n "checking whether build environment is sane... " >&6; }
3782 echo timestamp > conftest.file
3783 # Do `set' in a subshell so we don't clobber the current shell's
3784 # arguments. Must try -L first in case configure is actually a
3785 # symlink; some systems play weird games with the mod time of symlinks
3786 # (eg FreeBSD returns the mod time of the symlink's containing
3789 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
3790 if test "$*" = "X"; then
3792 set X `ls -t $srcdir/configure conftest.file`
3795 if test "$*" != "X $srcdir/configure conftest.file" \
3796 && test "$*" != "X conftest.file $srcdir/configure"; then
3798 # If neither matched, then we have a broken ls. This can happen
3799 # if, for instance, CONFIG_SHELL is bash and it inherits a
3800 # broken ls alias from the environment. This has actually
3801 # happened. Such a system could not be considered "sane".
3802 { { $as_echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
3803 alias in your environment" >&5
3804 $as_echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
3805 alias in your environment" >&2;}
3806 { (exit 1); exit 1; }; }
3809 test "$2" = conftest.file
3815 { { $as_echo "$as_me:$LINENO: error: newly created file is older than distributed files!
3816 Check your system clock" >&5
3817 $as_echo "$as_me: error: newly created file is older than distributed files!
3818 Check your system clock" >&2;}
3819 { (exit 1); exit 1; }; }
3821 { $as_echo "$as_me:$LINENO: result: yes" >&5
3822 $as_echo "yes" >&6; }
3823 test "$program_prefix" != NONE &&
3824 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3825 # Use a double $ so make ignores it.
3826 test "$program_suffix" != NONE &&
3827 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3828 # Double any \ or $.
3829 # By default was `s,x,x', remove it if useless.
3830 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3831 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3833 # expand $ac_aux_dir to an absolute path
3834 am_aux_dir=`cd $ac_aux_dir && pwd`
3836 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
3837 # Use eval to expand $SHELL
3838 if eval "$MISSING --run true"; then
3839 am_missing_run="$MISSING --run "
3842 { $as_echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
3843 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
3846 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
3847 # We used to keeping the `.' as first argument, in order to
3848 # allow $(mkdir_p) to be used without argument. As in
3849 # $(mkdir_p) $(somedir)
3850 # where $(somedir) is conditionally defined. However this is wrong
3852 # 1. if the package is installed by a user who cannot write `.'
3853 # make install will fail,
3854 # 2. the above comment should most certainly read
3855 # $(mkdir_p) $(DESTDIR)$(somedir)
3856 # so it does not work when $(somedir) is undefined and
3857 # $(DESTDIR) is not.
3858 # To support the latter case, we have to write
3859 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
3860 # so the `.' trick is pointless.
3861 mkdir_p='mkdir -p --'
3863 # On NextStep and OpenStep, the `mkdir' command does not
3864 # recognize any option. It will interpret all options as
3865 # directories to create, and then abort because `.' already
3867 for d in ./-p ./--version;
3869 test -d $d && rmdir $d
3871 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
3872 if test -f "$ac_aux_dir/mkinstalldirs"; then
3873 mkdir_p='$(mkinstalldirs)'
3875 mkdir_p='$(install_sh) -d'
3879 for ac_prog in gawk mawk nawk awk
3881 # Extract the first word of "$ac_prog", so it can be a program name with args.
3882 set dummy $ac_prog; ac_word=$2
3883 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3884 $as_echo_n "checking for $ac_word... " >&6; }
3885 if test "${ac_cv_prog_AWK+set}" = set; then
3886 $as_echo_n "(cached) " >&6
3888 if test -n "$AWK"; then
3889 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3891 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3895 test -z "$as_dir" && as_dir=.
3896 for ac_exec_ext in '' $ac_executable_extensions; do
3897 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3898 ac_cv_prog_AWK="$ac_prog"
3899 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3909 if test -n "$AWK"; then
3910 { $as_echo "$as_me:$LINENO: result: $AWK" >&5
3911 $as_echo "$AWK" >&6; }
3913 { $as_echo "$as_me:$LINENO: result: no" >&5
3914 $as_echo "no" >&6; }
3918 test -n "$AWK" && break
3921 { $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3922 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3924 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3925 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
3926 $as_echo_n "(cached) " >&6
3928 cat >conftest.make <<\_ACEOF
3931 @echo '@@@%%%=$(MAKE)=@@@%%%'
3933 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3934 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3936 eval ac_cv_prog_make_${ac_make}_set=yes;;
3938 eval ac_cv_prog_make_${ac_make}_set=no;;
3942 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3943 { $as_echo "$as_me:$LINENO: result: yes" >&5
3944 $as_echo "yes" >&6; }
3947 { $as_echo "$as_me:$LINENO: result: no" >&5
3948 $as_echo "no" >&6; }
3949 SET_MAKE="MAKE=${MAKE-make}"
3952 rm -rf .tst 2>/dev/null
3953 mkdir .tst 2>/dev/null
3954 if test -d .tst; then
3959 rmdir .tst 2>/dev/null
3961 DEPDIR="${am__leading_dot}deps"
3963 ac_config_commands="$ac_config_commands depfiles"
3966 am_make=${MAKE-make}
3967 cat > confinc << 'END'
3972 # If we don't find an include directive, just comment out the code.
3973 { $as_echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
3974 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3978 # First try GNU make style include.
3979 echo "include confinc" > confmf
3980 # We grep out `Entering directory' and `Leaving directory'
3981 # messages which can occur if `w' ends up in MAKEFLAGS.
3982 # In particular we don't look at `^make:' because GNU make might
3983 # be invoked under some other name (usually "gmake"), in which
3984 # case it prints its new name instead of `make'.
3985 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
3990 # Now try BSD make style include.
3991 if test "$am__include" = "#"; then
3992 echo '.include "confinc"' > confmf
3993 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
3994 am__include=.include
4001 { $as_echo "$as_me:$LINENO: result: $_am_result" >&5
4002 $as_echo "$_am_result" >&6; }
4003 rm -f confinc confmf
4005 # Check whether --enable-dependency-tracking was given.
4006 if test "${enable_dependency_tracking+set}" = set; then
4007 enableval=$enable_dependency_tracking;
4010 if test "x$enable_dependency_tracking" != xno; then
4011 am_depcomp="$ac_aux_dir/depcomp"
4016 if test "x$enable_dependency_tracking" != xno; then
4026 # test to see if srcdir already configured
4027 if test "`cd $srcdir && pwd`" != "`pwd`" &&
4028 test -f $srcdir/config.status; then
4029 { { $as_echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
4030 $as_echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
4031 { (exit 1); exit 1; }; }
4034 # test whether we have cygpath
4035 if test -z "$CYGPATH_W"; then
4036 if (cygpath --version) >/dev/null 2>/dev/null; then
4037 CYGPATH_W='cygpath -w'
4044 # Define the identity of the package.
4049 cat >>confdefs.h <<_ACEOF
4050 #define PACKAGE "$PACKAGE"
4054 cat >>confdefs.h <<_ACEOF
4055 #define VERSION "$VERSION"
4058 # Some tools Automake needs.
4060 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
4063 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
4066 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
4069 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
4072 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
4074 install_sh=${install_sh-"$am_aux_dir/install-sh"}
4076 # Installed binaries are usually stripped using `strip' when the user
4077 # run `make install-strip'. However `strip' might not be the right
4078 # tool to use in cross-compilation environments, therefore Automake
4079 # will honor the `STRIP' environment variable to overrule this program.
4080 if test "$cross_compiling" != no; then
4081 if test -n "$ac_tool_prefix"; then
4082 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4083 set dummy ${ac_tool_prefix}strip; ac_word=$2
4084 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4085 $as_echo_n "checking for $ac_word... " >&6; }
4086 if test "${ac_cv_prog_STRIP+set}" = set; then
4087 $as_echo_n "(cached) " >&6
4089 if test -n "$STRIP"; then
4090 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4092 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4096 test -z "$as_dir" && as_dir=.
4097 for ac_exec_ext in '' $ac_executable_extensions; do
4098 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4099 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4100 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4109 STRIP=$ac_cv_prog_STRIP
4110 if test -n "$STRIP"; then
4111 { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
4112 $as_echo "$STRIP" >&6; }
4114 { $as_echo "$as_me:$LINENO: result: no" >&5
4115 $as_echo "no" >&6; }
4120 if test -z "$ac_cv_prog_STRIP"; then
4122 # Extract the first word of "strip", so it can be a program name with args.
4123 set dummy strip; ac_word=$2
4124 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4125 $as_echo_n "checking for $ac_word... " >&6; }
4126 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
4127 $as_echo_n "(cached) " >&6
4129 if test -n "$ac_ct_STRIP"; then
4130 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4132 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4136 test -z "$as_dir" && as_dir=.
4137 for ac_exec_ext in '' $ac_executable_extensions; do
4138 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4139 ac_cv_prog_ac_ct_STRIP="strip"
4140 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4149 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4150 if test -n "$ac_ct_STRIP"; then
4151 { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
4152 $as_echo "$ac_ct_STRIP" >&6; }
4154 { $as_echo "$as_me:$LINENO: result: no" >&5
4155 $as_echo "no" >&6; }
4158 if test "x$ac_ct_STRIP" = x; then
4161 case $cross_compiling:$ac_tool_warned in
4163 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
4164 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4165 ac_tool_warned=yes ;;
4170 STRIP="$ac_cv_prog_STRIP"
4174 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
4176 # We need awk for the "check" target. The system "awk" is bad on
4178 # Always define AMTAR for backward compatibility.
4180 AMTAR=${AMTAR-"${am_missing_run}tar"}
4182 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
4187 depcc="$CC" am_compiler_list=
4189 { $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
4190 $as_echo_n "checking dependency style of $depcc... " >&6; }
4191 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
4192 $as_echo_n "(cached) " >&6
4194 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4195 # We make a subdir and do the tests there. Otherwise we can end up
4196 # making bogus files that we don't know about and never remove. For
4197 # instance it was reported that on HP-UX the gcc test will end up
4198 # making a dummy file named `D' -- because `-MD' means `put the output
4201 # Copy depcomp to subdir because otherwise we won't find it if we're
4202 # using a relative directory.
4203 cp "$am_depcomp" conftest.dir
4205 # We will build objects and dependencies in a subdirectory because
4206 # it helps to detect inapplicable dependency modes. For instance
4207 # both Tru64's cc and ICC support -MD to output dependencies as a
4208 # side effect of compilation, but ICC will put the dependencies in
4209 # the current directory while Tru64 will put them in the object
4213 am_cv_CC_dependencies_compiler_type=none
4214 if test "$am_compiler_list" = ""; then
4215 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4217 for depmode in $am_compiler_list; do
4218 # Setup a source with many dependencies, because some compilers
4219 # like to wrap large dependency lists on column 80 (with \), and
4220 # we should not choose a depcomp mode which is confused by this.
4222 # We need to recreate these files for each test, as the compiler may
4223 # overwrite some of them when testing with obscure command lines.
4224 # This happens at least with the AIX C compiler.
4226 for i in 1 2 3 4 5 6; do
4227 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4228 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4229 # Solaris 8's {/usr,}/bin/sh.
4230 touch sub/conftst$i.h
4232 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4236 # after this tag, mechanisms are not by side-effect, so they'll
4237 # only be used when explicitly requested
4238 if test "x$enable_dependency_tracking" = xyes; then
4246 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4247 # mode. It turns out that the SunPro C++ compiler does not properly
4248 # handle `-M -o', and we need to detect this.
4249 if depmode=$depmode \
4250 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
4251 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4252 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
4253 >/dev/null 2>conftest.err &&
4254 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4255 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
4256 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4257 # icc doesn't choke on unknown options, it will just issue warnings
4258 # or remarks (even with -Werror). So we grep stderr for any message
4259 # that says an option was ignored or not supported.
4260 # When given -MP, icc 7.0 and 7.1 complain thusly:
4261 # icc: Command line warning: ignoring option '-M'; no argument required
4262 # The diagnosis changed in icc 8.0:
4263 # icc: Command line remark: option '-MP' not supported
4264 if (grep 'ignoring option' conftest.err ||
4265 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4266 am_cv_CC_dependencies_compiler_type=$depmode
4275 am_cv_CC_dependencies_compiler_type=none
4279 { $as_echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
4280 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4281 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4286 test "x$enable_dependency_tracking" != xno \
4287 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4289 am__fastdepCC_FALSE='#'
4291 am__fastdepCC_TRUE='#'
4292 am__fastdepCC_FALSE=
4300 # Checks for programs.
4302 ac_cpp='$CPP $CPPFLAGS'
4303 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4304 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4305 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4306 { $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4307 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4308 # On Suns, sometimes $CPP names a directory.
4309 if test -n "$CPP" && test -d "$CPP"; then
4312 if test -z "$CPP"; then
4313 if test "${ac_cv_prog_CPP+set}" = set; then
4314 $as_echo_n "(cached) " >&6
4316 # Double quotes because CPP needs to be expanded
4317 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4320 for ac_c_preproc_warn_flag in '' yes
4322 # Use a header file that comes with gcc, so configuring glibc
4323 # with a fresh cross-compiler works.
4324 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4325 # <limits.h> exists even on freestanding compilers.
4326 # On the NeXT, cc -E runs the code through the compiler's parser,
4327 # not just through cpp. "Syntax error" is here to catch this case.
4328 cat >conftest.$ac_ext <<_ACEOF
4331 cat confdefs.h >>conftest.$ac_ext
4332 cat >>conftest.$ac_ext <<_ACEOF
4333 /* end confdefs.h. */
4335 # include <limits.h>
4337 # include <assert.h>
4341 if { (ac_try="$ac_cpp conftest.$ac_ext"
4343 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4344 *) ac_try_echo=$ac_try;;
4346 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4347 $as_echo "$ac_try_echo") >&5
4348 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4350 grep -v '^ *+' conftest.er1 >conftest.err
4352 cat conftest.err >&5
4353 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4354 (exit $ac_status); } >/dev/null && {
4355 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4356 test ! -s conftest.err
4360 $as_echo "$as_me: failed program was:" >&5
4361 sed 's/^/| /' conftest.$ac_ext >&5
4363 # Broken: fails on valid input.
4367 rm -f conftest.err conftest.$ac_ext
4369 # OK, works on sane cases. Now check whether nonexistent headers
4370 # can be detected and how.
4371 cat >conftest.$ac_ext <<_ACEOF
4374 cat confdefs.h >>conftest.$ac_ext
4375 cat >>conftest.$ac_ext <<_ACEOF
4376 /* end confdefs.h. */
4377 #include <ac_nonexistent.h>
4379 if { (ac_try="$ac_cpp conftest.$ac_ext"
4381 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4382 *) ac_try_echo=$ac_try;;
4384 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4385 $as_echo "$ac_try_echo") >&5
4386 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4388 grep -v '^ *+' conftest.er1 >conftest.err
4390 cat conftest.err >&5
4391 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4392 (exit $ac_status); } >/dev/null && {
4393 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4394 test ! -s conftest.err
4396 # Broken: success on invalid input.
4399 $as_echo "$as_me: failed program was:" >&5
4400 sed 's/^/| /' conftest.$ac_ext >&5
4402 # Passes both tests.
4407 rm -f conftest.err conftest.$ac_ext
4410 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4411 rm -f conftest.err conftest.$ac_ext
4412 if $ac_preproc_ok; then
4424 { $as_echo "$as_me:$LINENO: result: $CPP" >&5
4425 $as_echo "$CPP" >&6; }
4427 for ac_c_preproc_warn_flag in '' yes
4429 # Use a header file that comes with gcc, so configuring glibc
4430 # with a fresh cross-compiler works.
4431 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4432 # <limits.h> exists even on freestanding compilers.
4433 # On the NeXT, cc -E runs the code through the compiler's parser,
4434 # not just through cpp. "Syntax error" is here to catch this case.
4435 cat >conftest.$ac_ext <<_ACEOF
4438 cat confdefs.h >>conftest.$ac_ext
4439 cat >>conftest.$ac_ext <<_ACEOF
4440 /* end confdefs.h. */
4442 # include <limits.h>
4444 # include <assert.h>
4448 if { (ac_try="$ac_cpp conftest.$ac_ext"
4450 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4451 *) ac_try_echo=$ac_try;;
4453 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4454 $as_echo "$ac_try_echo") >&5
4455 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4457 grep -v '^ *+' conftest.er1 >conftest.err
4459 cat conftest.err >&5
4460 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4461 (exit $ac_status); } >/dev/null && {
4462 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4463 test ! -s conftest.err
4467 $as_echo "$as_me: failed program was:" >&5
4468 sed 's/^/| /' conftest.$ac_ext >&5
4470 # Broken: fails on valid input.
4474 rm -f conftest.err conftest.$ac_ext
4476 # OK, works on sane cases. Now check whether nonexistent headers
4477 # can be detected and how.
4478 cat >conftest.$ac_ext <<_ACEOF
4481 cat confdefs.h >>conftest.$ac_ext
4482 cat >>conftest.$ac_ext <<_ACEOF
4483 /* end confdefs.h. */
4484 #include <ac_nonexistent.h>
4486 if { (ac_try="$ac_cpp conftest.$ac_ext"
4488 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4489 *) ac_try_echo=$ac_try;;
4491 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4492 $as_echo "$ac_try_echo") >&5
4493 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4495 grep -v '^ *+' conftest.er1 >conftest.err
4497 cat conftest.err >&5
4498 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4499 (exit $ac_status); } >/dev/null && {
4500 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4501 test ! -s conftest.err
4503 # Broken: success on invalid input.
4506 $as_echo "$as_me: failed program was:" >&5
4507 sed 's/^/| /' conftest.$ac_ext >&5
4509 # Passes both tests.
4514 rm -f conftest.err conftest.$ac_ext
4517 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4518 rm -f conftest.err conftest.$ac_ext
4519 if $ac_preproc_ok; then
4522 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
4523 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4524 { { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4525 See \`config.log' for more details." >&5
4526 $as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4527 See \`config.log' for more details." >&2;}
4528 { (exit 1); exit 1; }; }; }
4532 ac_cpp='$CPP $CPPFLAGS'
4533 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4534 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4535 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4538 ac_cpp='$CXXCPP $CPPFLAGS'
4539 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4540 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4541 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4542 if test -z "$CXX"; then
4543 if test -n "$CCC"; then
4546 if test -n "$ac_tool_prefix"; then
4547 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4549 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4550 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4551 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4552 $as_echo_n "checking for $ac_word... " >&6; }
4553 if test "${ac_cv_prog_CXX+set}" = set; then
4554 $as_echo_n "(cached) " >&6
4556 if test -n "$CXX"; then
4557 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4559 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4563 test -z "$as_dir" && as_dir=.
4564 for ac_exec_ext in '' $ac_executable_extensions; do
4565 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4566 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4567 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4577 if test -n "$CXX"; then
4578 { $as_echo "$as_me:$LINENO: result: $CXX" >&5
4579 $as_echo "$CXX" >&6; }
4581 { $as_echo "$as_me:$LINENO: result: no" >&5
4582 $as_echo "no" >&6; }
4586 test -n "$CXX" && break
4589 if test -z "$CXX"; then
4591 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4593 # Extract the first word of "$ac_prog", so it can be a program name with args.
4594 set dummy $ac_prog; ac_word=$2
4595 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4596 $as_echo_n "checking for $ac_word... " >&6; }
4597 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
4598 $as_echo_n "(cached) " >&6
4600 if test -n "$ac_ct_CXX"; then
4601 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4603 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4607 test -z "$as_dir" && as_dir=.
4608 for ac_exec_ext in '' $ac_executable_extensions; do
4609 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4610 ac_cv_prog_ac_ct_CXX="$ac_prog"
4611 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4620 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4621 if test -n "$ac_ct_CXX"; then
4622 { $as_echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
4623 $as_echo "$ac_ct_CXX" >&6; }
4625 { $as_echo "$as_me:$LINENO: result: no" >&5
4626 $as_echo "no" >&6; }
4630 test -n "$ac_ct_CXX" && break
4633 if test "x$ac_ct_CXX" = x; then
4636 case $cross_compiling:$ac_tool_warned in
4638 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
4639 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4640 ac_tool_warned=yes ;;
4648 # Provide some information about the compiler.
4649 $as_echo "$as_me:$LINENO: checking for C++ compiler version" >&5
4652 { (ac_try="$ac_compiler --version >&5"
4654 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4655 *) ac_try_echo=$ac_try;;
4657 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4658 $as_echo "$ac_try_echo") >&5
4659 (eval "$ac_compiler --version >&5") 2>&5
4661 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4662 (exit $ac_status); }
4663 { (ac_try="$ac_compiler -v >&5"
4665 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4666 *) ac_try_echo=$ac_try;;
4668 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4669 $as_echo "$ac_try_echo") >&5
4670 (eval "$ac_compiler -v >&5") 2>&5
4672 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4673 (exit $ac_status); }
4674 { (ac_try="$ac_compiler -V >&5"
4676 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4677 *) ac_try_echo=$ac_try;;
4679 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4680 $as_echo "$ac_try_echo") >&5
4681 (eval "$ac_compiler -V >&5") 2>&5
4683 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4684 (exit $ac_status); }
4686 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
4687 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4688 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
4689 $as_echo_n "(cached) " >&6
4691 cat >conftest.$ac_ext <<_ACEOF
4694 cat confdefs.h >>conftest.$ac_ext
4695 cat >>conftest.$ac_ext <<_ACEOF
4696 /* end confdefs.h. */
4709 rm -f conftest.$ac_objext
4710 if { (ac_try="$ac_compile"
4712 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4713 *) ac_try_echo=$ac_try;;
4715 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4716 $as_echo "$ac_try_echo") >&5
4717 (eval "$ac_compile") 2>conftest.er1
4719 grep -v '^ *+' conftest.er1 >conftest.err
4721 cat conftest.err >&5
4722 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4723 (exit $ac_status); } && {
4724 test -z "$ac_cxx_werror_flag" ||
4725 test ! -s conftest.err
4726 } && test -s conftest.$ac_objext; then
4729 $as_echo "$as_me: failed program was:" >&5
4730 sed 's/^/| /' conftest.$ac_ext >&5
4735 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4736 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4739 { $as_echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
4740 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4741 if test $ac_compiler_gnu = yes; then
4746 ac_test_CXXFLAGS=${CXXFLAGS+set}
4747 ac_save_CXXFLAGS=$CXXFLAGS
4748 { $as_echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
4749 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4750 if test "${ac_cv_prog_cxx_g+set}" = set; then
4751 $as_echo_n "(cached) " >&6
4753 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4754 ac_cxx_werror_flag=yes
4757 cat >conftest.$ac_ext <<_ACEOF
4760 cat confdefs.h >>conftest.$ac_ext
4761 cat >>conftest.$ac_ext <<_ACEOF
4762 /* end confdefs.h. */
4772 rm -f conftest.$ac_objext
4773 if { (ac_try="$ac_compile"
4775 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4776 *) ac_try_echo=$ac_try;;
4778 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4779 $as_echo "$ac_try_echo") >&5
4780 (eval "$ac_compile") 2>conftest.er1
4782 grep -v '^ *+' conftest.er1 >conftest.err
4784 cat conftest.err >&5
4785 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4786 (exit $ac_status); } && {
4787 test -z "$ac_cxx_werror_flag" ||
4788 test ! -s conftest.err
4789 } && test -s conftest.$ac_objext; then
4790 ac_cv_prog_cxx_g=yes
4792 $as_echo "$as_me: failed program was:" >&5
4793 sed 's/^/| /' conftest.$ac_ext >&5
4796 cat >conftest.$ac_ext <<_ACEOF
4799 cat confdefs.h >>conftest.$ac_ext
4800 cat >>conftest.$ac_ext <<_ACEOF
4801 /* end confdefs.h. */
4811 rm -f conftest.$ac_objext
4812 if { (ac_try="$ac_compile"
4814 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4815 *) ac_try_echo=$ac_try;;
4817 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4818 $as_echo "$ac_try_echo") >&5
4819 (eval "$ac_compile") 2>conftest.er1
4821 grep -v '^ *+' conftest.er1 >conftest.err
4823 cat conftest.err >&5
4824 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4825 (exit $ac_status); } && {
4826 test -z "$ac_cxx_werror_flag" ||
4827 test ! -s conftest.err
4828 } && test -s conftest.$ac_objext; then
4831 $as_echo "$as_me: failed program was:" >&5
4832 sed 's/^/| /' conftest.$ac_ext >&5
4834 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4836 cat >conftest.$ac_ext <<_ACEOF
4839 cat confdefs.h >>conftest.$ac_ext
4840 cat >>conftest.$ac_ext <<_ACEOF
4841 /* end confdefs.h. */
4851 rm -f conftest.$ac_objext
4852 if { (ac_try="$ac_compile"
4854 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4855 *) ac_try_echo=$ac_try;;
4857 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4858 $as_echo "$ac_try_echo") >&5
4859 (eval "$ac_compile") 2>conftest.er1
4861 grep -v '^ *+' conftest.er1 >conftest.err
4863 cat conftest.err >&5
4864 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4865 (exit $ac_status); } && {
4866 test -z "$ac_cxx_werror_flag" ||
4867 test ! -s conftest.err
4868 } && test -s conftest.$ac_objext; then
4869 ac_cv_prog_cxx_g=yes
4871 $as_echo "$as_me: failed program was:" >&5
4872 sed 's/^/| /' conftest.$ac_ext >&5
4877 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4880 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4883 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4884 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4886 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
4887 $as_echo "$ac_cv_prog_cxx_g" >&6; }
4888 if test "$ac_test_CXXFLAGS" = set; then
4889 CXXFLAGS=$ac_save_CXXFLAGS
4890 elif test $ac_cv_prog_cxx_g = yes; then
4891 if test "$GXX" = yes; then
4897 if test "$GXX" = yes; then
4904 ac_cpp='$CPP $CPPFLAGS'
4905 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4906 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4907 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4909 depcc="$CXX" am_compiler_list=
4911 { $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
4912 $as_echo_n "checking dependency style of $depcc... " >&6; }
4913 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
4914 $as_echo_n "(cached) " >&6
4916 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4917 # We make a subdir and do the tests there. Otherwise we can end up
4918 # making bogus files that we don't know about and never remove. For
4919 # instance it was reported that on HP-UX the gcc test will end up
4920 # making a dummy file named `D' -- because `-MD' means `put the output
4923 # Copy depcomp to subdir because otherwise we won't find it if we're
4924 # using a relative directory.
4925 cp "$am_depcomp" conftest.dir
4927 # We will build objects and dependencies in a subdirectory because
4928 # it helps to detect inapplicable dependency modes. For instance
4929 # both Tru64's cc and ICC support -MD to output dependencies as a
4930 # side effect of compilation, but ICC will put the dependencies in
4931 # the current directory while Tru64 will put them in the object
4935 am_cv_CXX_dependencies_compiler_type=none
4936 if test "$am_compiler_list" = ""; then
4937 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4939 for depmode in $am_compiler_list; do
4940 # Setup a source with many dependencies, because some compilers
4941 # like to wrap large dependency lists on column 80 (with \), and
4942 # we should not choose a depcomp mode which is confused by this.
4944 # We need to recreate these files for each test, as the compiler may
4945 # overwrite some of them when testing with obscure command lines.
4946 # This happens at least with the AIX C compiler.
4948 for i in 1 2 3 4 5 6; do
4949 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4950 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4951 # Solaris 8's {/usr,}/bin/sh.
4952 touch sub/conftst$i.h
4954 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4958 # after this tag, mechanisms are not by side-effect, so they'll
4959 # only be used when explicitly requested
4960 if test "x$enable_dependency_tracking" = xyes; then
4968 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4969 # mode. It turns out that the SunPro C++ compiler does not properly
4970 # handle `-M -o', and we need to detect this.
4971 if depmode=$depmode \
4972 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
4973 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4974 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
4975 >/dev/null 2>conftest.err &&
4976 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4977 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
4978 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4979 # icc doesn't choke on unknown options, it will just issue warnings
4980 # or remarks (even with -Werror). So we grep stderr for any message
4981 # that says an option was ignored or not supported.
4982 # When given -MP, icc 7.0 and 7.1 complain thusly:
4983 # icc: Command line warning: ignoring option '-M'; no argument required
4984 # The diagnosis changed in icc 8.0:
4985 # icc: Command line remark: option '-MP' not supported
4986 if (grep 'ignoring option' conftest.err ||
4987 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4988 am_cv_CXX_dependencies_compiler_type=$depmode
4997 am_cv_CXX_dependencies_compiler_type=none
5001 { $as_echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
5002 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
5003 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
5008 test "x$enable_dependency_tracking" != xno \
5009 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
5010 am__fastdepCXX_TRUE=
5011 am__fastdepCXX_FALSE='#'
5013 am__fastdepCXX_TRUE='#'
5014 am__fastdepCXX_FALSE=
5019 ac_cpp='$CPP $CPPFLAGS'
5020 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5021 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5022 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5023 if test -n "$ac_tool_prefix"; then
5024 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
5025 set dummy ${ac_tool_prefix}gcc; ac_word=$2
5026 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5027 $as_echo_n "checking for $ac_word... " >&6; }
5028 if test "${ac_cv_prog_CC+set}" = set; then
5029 $as_echo_n "(cached) " >&6
5031 if test -n "$CC"; then
5032 ac_cv_prog_CC="$CC" # Let the user override the test.
5034 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5038 test -z "$as_dir" && as_dir=.
5039 for ac_exec_ext in '' $ac_executable_extensions; do
5040 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5041 ac_cv_prog_CC="${ac_tool_prefix}gcc"
5042 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5052 if test -n "$CC"; then
5053 { $as_echo "$as_me:$LINENO: result: $CC" >&5
5054 $as_echo "$CC" >&6; }
5056 { $as_echo "$as_me:$LINENO: result: no" >&5
5057 $as_echo "no" >&6; }
5062 if test -z "$ac_cv_prog_CC"; then
5064 # Extract the first word of "gcc", so it can be a program name with args.
5065 set dummy gcc; ac_word=$2
5066 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5067 $as_echo_n "checking for $ac_word... " >&6; }
5068 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
5069 $as_echo_n "(cached) " >&6
5071 if test -n "$ac_ct_CC"; then
5072 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5074 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5078 test -z "$as_dir" && as_dir=.
5079 for ac_exec_ext in '' $ac_executable_extensions; do
5080 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5081 ac_cv_prog_ac_ct_CC="gcc"
5082 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5091 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5092 if test -n "$ac_ct_CC"; then
5093 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
5094 $as_echo "$ac_ct_CC" >&6; }
5096 { $as_echo "$as_me:$LINENO: result: no" >&5
5097 $as_echo "no" >&6; }
5100 if test "x$ac_ct_CC" = x; then
5103 case $cross_compiling:$ac_tool_warned in
5105 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
5106 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5107 ac_tool_warned=yes ;;
5115 if test -z "$CC"; then
5116 if test -n "$ac_tool_prefix"; then
5117 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
5118 set dummy ${ac_tool_prefix}cc; ac_word=$2
5119 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5120 $as_echo_n "checking for $ac_word... " >&6; }
5121 if test "${ac_cv_prog_CC+set}" = set; then
5122 $as_echo_n "(cached) " >&6
5124 if test -n "$CC"; then
5125 ac_cv_prog_CC="$CC" # Let the user override the test.
5127 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5131 test -z "$as_dir" && as_dir=.
5132 for ac_exec_ext in '' $ac_executable_extensions; do
5133 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5134 ac_cv_prog_CC="${ac_tool_prefix}cc"
5135 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5145 if test -n "$CC"; then
5146 { $as_echo "$as_me:$LINENO: result: $CC" >&5
5147 $as_echo "$CC" >&6; }
5149 { $as_echo "$as_me:$LINENO: result: no" >&5
5150 $as_echo "no" >&6; }
5156 if test -z "$CC"; then
5157 # Extract the first word of "cc", so it can be a program name with args.
5158 set dummy cc; ac_word=$2
5159 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5160 $as_echo_n "checking for $ac_word... " >&6; }
5161 if test "${ac_cv_prog_CC+set}" = set; then
5162 $as_echo_n "(cached) " >&6
5164 if test -n "$CC"; then
5165 ac_cv_prog_CC="$CC" # Let the user override the test.
5168 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5172 test -z "$as_dir" && as_dir=.
5173 for ac_exec_ext in '' $ac_executable_extensions; do
5174 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5175 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
5176 ac_prog_rejected=yes
5180 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5187 if test $ac_prog_rejected = yes; then
5188 # We found a bogon in the path, so make sure we never use it.
5189 set dummy $ac_cv_prog_CC
5191 if test $# != 0; then
5192 # We chose a different compiler from the bogus one.
5193 # However, it has the same basename, so the bogon will be chosen
5194 # first if we set CC to just the basename; use the full file name.
5196 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
5202 if test -n "$CC"; then
5203 { $as_echo "$as_me:$LINENO: result: $CC" >&5
5204 $as_echo "$CC" >&6; }
5206 { $as_echo "$as_me:$LINENO: result: no" >&5
5207 $as_echo "no" >&6; }
5212 if test -z "$CC"; then
5213 if test -n "$ac_tool_prefix"; then
5214 for ac_prog in cl.exe
5216 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5217 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5218 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5219 $as_echo_n "checking for $ac_word... " >&6; }
5220 if test "${ac_cv_prog_CC+set}" = set; then
5221 $as_echo_n "(cached) " >&6
5223 if test -n "$CC"; then
5224 ac_cv_prog_CC="$CC" # Let the user override the test.
5226 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5230 test -z "$as_dir" && as_dir=.
5231 for ac_exec_ext in '' $ac_executable_extensions; do
5232 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5233 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5234 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5244 if test -n "$CC"; then
5245 { $as_echo "$as_me:$LINENO: result: $CC" >&5
5246 $as_echo "$CC" >&6; }
5248 { $as_echo "$as_me:$LINENO: result: no" >&5
5249 $as_echo "no" >&6; }
5253 test -n "$CC" && break
5256 if test -z "$CC"; then
5258 for ac_prog in cl.exe
5260 # Extract the first word of "$ac_prog", so it can be a program name with args.
5261 set dummy $ac_prog; ac_word=$2
5262 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5263 $as_echo_n "checking for $ac_word... " >&6; }
5264 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
5265 $as_echo_n "(cached) " >&6
5267 if test -n "$ac_ct_CC"; then
5268 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5270 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5274 test -z "$as_dir" && as_dir=.
5275 for ac_exec_ext in '' $ac_executable_extensions; do
5276 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5277 ac_cv_prog_ac_ct_CC="$ac_prog"
5278 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5287 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5288 if test -n "$ac_ct_CC"; then
5289 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
5290 $as_echo "$ac_ct_CC" >&6; }
5292 { $as_echo "$as_me:$LINENO: result: no" >&5
5293 $as_echo "no" >&6; }
5297 test -n "$ac_ct_CC" && break
5300 if test "x$ac_ct_CC" = x; then
5303 case $cross_compiling:$ac_tool_warned in
5305 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
5306 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5307 ac_tool_warned=yes ;;
5316 test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
5317 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5318 { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
5319 See \`config.log' for more details." >&5
5320 $as_echo "$as_me: error: no acceptable C compiler found in \$PATH
5321 See \`config.log' for more details." >&2;}
5322 { (exit 1); exit 1; }; }; }
5324 # Provide some information about the compiler.
5325 $as_echo "$as_me:$LINENO: checking for C compiler version" >&5
5328 { (ac_try="$ac_compiler --version >&5"
5330 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5331 *) ac_try_echo=$ac_try;;
5333 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5334 $as_echo "$ac_try_echo") >&5
5335 (eval "$ac_compiler --version >&5") 2>&5
5337 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5338 (exit $ac_status); }
5339 { (ac_try="$ac_compiler -v >&5"
5341 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5342 *) ac_try_echo=$ac_try;;
5344 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5345 $as_echo "$ac_try_echo") >&5
5346 (eval "$ac_compiler -v >&5") 2>&5
5348 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5349 (exit $ac_status); }
5350 { (ac_try="$ac_compiler -V >&5"
5352 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5353 *) ac_try_echo=$ac_try;;
5355 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5356 $as_echo "$ac_try_echo") >&5
5357 (eval "$ac_compiler -V >&5") 2>&5
5359 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5360 (exit $ac_status); }
5362 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
5363 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
5364 if test "${ac_cv_c_compiler_gnu+set}" = set; then
5365 $as_echo_n "(cached) " >&6
5367 cat >conftest.$ac_ext <<_ACEOF
5370 cat confdefs.h >>conftest.$ac_ext
5371 cat >>conftest.$ac_ext <<_ACEOF
5372 /* end confdefs.h. */
5385 rm -f conftest.$ac_objext
5386 if { (ac_try="$ac_compile"
5388 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5389 *) ac_try_echo=$ac_try;;
5391 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5392 $as_echo "$ac_try_echo") >&5
5393 (eval "$ac_compile") 2>conftest.er1
5395 grep -v '^ *+' conftest.er1 >conftest.err
5397 cat conftest.err >&5
5398 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5399 (exit $ac_status); } && {
5400 test -z "$ac_c_werror_flag" ||
5401 test ! -s conftest.err
5402 } && test -s conftest.$ac_objext; then
5405 $as_echo "$as_me: failed program was:" >&5
5406 sed 's/^/| /' conftest.$ac_ext >&5
5411 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5412 ac_cv_c_compiler_gnu=$ac_compiler_gnu
5415 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
5416 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
5417 if test $ac_compiler_gnu = yes; then
5422 ac_test_CFLAGS=${CFLAGS+set}
5423 ac_save_CFLAGS=$CFLAGS
5424 { $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
5425 $as_echo_n "checking whether $CC accepts -g... " >&6; }
5426 if test "${ac_cv_prog_cc_g+set}" = set; then
5427 $as_echo_n "(cached) " >&6
5429 ac_save_c_werror_flag=$ac_c_werror_flag
5430 ac_c_werror_flag=yes
5433 cat >conftest.$ac_ext <<_ACEOF
5436 cat confdefs.h >>conftest.$ac_ext
5437 cat >>conftest.$ac_ext <<_ACEOF
5438 /* end confdefs.h. */
5448 rm -f conftest.$ac_objext
5449 if { (ac_try="$ac_compile"
5451 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5452 *) ac_try_echo=$ac_try;;
5454 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5455 $as_echo "$ac_try_echo") >&5
5456 (eval "$ac_compile") 2>conftest.er1
5458 grep -v '^ *+' conftest.er1 >conftest.err
5460 cat conftest.err >&5
5461 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5462 (exit $ac_status); } && {
5463 test -z "$ac_c_werror_flag" ||
5464 test ! -s conftest.err
5465 } && test -s conftest.$ac_objext; then
5468 $as_echo "$as_me: failed program was:" >&5
5469 sed 's/^/| /' conftest.$ac_ext >&5
5472 cat >conftest.$ac_ext <<_ACEOF
5475 cat confdefs.h >>conftest.$ac_ext
5476 cat >>conftest.$ac_ext <<_ACEOF
5477 /* end confdefs.h. */
5487 rm -f conftest.$ac_objext
5488 if { (ac_try="$ac_compile"
5490 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5491 *) ac_try_echo=$ac_try;;
5493 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5494 $as_echo "$ac_try_echo") >&5
5495 (eval "$ac_compile") 2>conftest.er1
5497 grep -v '^ *+' conftest.er1 >conftest.err
5499 cat conftest.err >&5
5500 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5501 (exit $ac_status); } && {
5502 test -z "$ac_c_werror_flag" ||
5503 test ! -s conftest.err
5504 } && test -s conftest.$ac_objext; then
5507 $as_echo "$as_me: failed program was:" >&5
5508 sed 's/^/| /' conftest.$ac_ext >&5
5510 ac_c_werror_flag=$ac_save_c_werror_flag
5512 cat >conftest.$ac_ext <<_ACEOF
5515 cat confdefs.h >>conftest.$ac_ext
5516 cat >>conftest.$ac_ext <<_ACEOF
5517 /* end confdefs.h. */
5527 rm -f conftest.$ac_objext
5528 if { (ac_try="$ac_compile"
5530 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5531 *) ac_try_echo=$ac_try;;
5533 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5534 $as_echo "$ac_try_echo") >&5
5535 (eval "$ac_compile") 2>conftest.er1
5537 grep -v '^ *+' conftest.er1 >conftest.err
5539 cat conftest.err >&5
5540 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5541 (exit $ac_status); } && {
5542 test -z "$ac_c_werror_flag" ||
5543 test ! -s conftest.err
5544 } && test -s conftest.$ac_objext; then
5547 $as_echo "$as_me: failed program was:" >&5
5548 sed 's/^/| /' conftest.$ac_ext >&5
5553 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5556 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5559 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5560 ac_c_werror_flag=$ac_save_c_werror_flag
5562 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
5563 $as_echo "$ac_cv_prog_cc_g" >&6; }
5564 if test "$ac_test_CFLAGS" = set; then
5565 CFLAGS=$ac_save_CFLAGS
5566 elif test $ac_cv_prog_cc_g = yes; then
5567 if test "$GCC" = yes; then
5573 if test "$GCC" = yes; then
5579 { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
5580 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
5581 if test "${ac_cv_prog_cc_c89+set}" = set; then
5582 $as_echo_n "(cached) " >&6
5584 ac_cv_prog_cc_c89=no
5586 cat >conftest.$ac_ext <<_ACEOF
5589 cat confdefs.h >>conftest.$ac_ext
5590 cat >>conftest.$ac_ext <<_ACEOF
5591 /* end confdefs.h. */
5594 #include <sys/types.h>
5595 #include <sys/stat.h>
5596 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5597 struct buf { int x; };
5598 FILE * (*rcsopen) (struct buf *, struct stat *, int);
5599 static char *e (p, i)
5605 static char *f (char * (*g) (char **, int), char **p, ...)
5610 s = g (p, va_arg (v,int));
5615 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5616 function prototypes and stuff, but not '\xHH' hex character constants.
5617 These don't provoke an error unfortunately, instead are silently treated
5618 as 'x'. The following induces an error, until -std is added to get
5619 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5620 array size at least. It's necessary to write '\x00'==0 to get something
5621 that's true only with -std. */
5622 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5624 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5625 inside strings and character constants. */
5627 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5629 int test (int i, double x);
5630 struct s1 {int (*f) (int a);};
5631 struct s2 {int (*f) (double a);};
5632 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5638 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5643 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5644 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5646 CC="$ac_save_CC $ac_arg"
5647 rm -f conftest.$ac_objext
5648 if { (ac_try="$ac_compile"
5650 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5651 *) ac_try_echo=$ac_try;;
5653 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5654 $as_echo "$ac_try_echo") >&5
5655 (eval "$ac_compile") 2>conftest.er1
5657 grep -v '^ *+' conftest.er1 >conftest.err
5659 cat conftest.err >&5
5660 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5661 (exit $ac_status); } && {
5662 test -z "$ac_c_werror_flag" ||
5663 test ! -s conftest.err
5664 } && test -s conftest.$ac_objext; then
5665 ac_cv_prog_cc_c89=$ac_arg
5667 $as_echo "$as_me: failed program was:" >&5
5668 sed 's/^/| /' conftest.$ac_ext >&5
5673 rm -f core conftest.err conftest.$ac_objext
5674 test "x$ac_cv_prog_cc_c89" != "xno" && break
5676 rm -f conftest.$ac_ext
5681 case "x$ac_cv_prog_cc_c89" in
5683 { $as_echo "$as_me:$LINENO: result: none needed" >&5
5684 $as_echo "none needed" >&6; } ;;
5686 { $as_echo "$as_me:$LINENO: result: unsupported" >&5
5687 $as_echo "unsupported" >&6; } ;;
5689 CC="$CC $ac_cv_prog_cc_c89"
5690 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
5691 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5696 ac_cpp='$CPP $CPPFLAGS'
5697 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5698 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5699 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5701 # Find a good install program. We prefer a C program (faster),
5702 # so one script is as good as another. But avoid the broken or
5703 # incompatible versions:
5704 # SysV /etc/install, /usr/sbin/install
5705 # SunOS /usr/etc/install
5706 # IRIX /sbin/install
5708 # AmigaOS /C/install, which installs bootblocks on floppy discs
5709 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
5710 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
5711 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
5712 # OS/2's system install, which has a completely different semantic
5713 # ./install, which can be erroneously created by make from ./install.sh.
5714 # Reject install programs that cannot install multiple files.
5715 { $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
5716 $as_echo_n "checking for a BSD-compatible install... " >&6; }
5717 if test -z "$INSTALL"; then
5718 if test "${ac_cv_path_install+set}" = set; then
5719 $as_echo_n "(cached) " >&6
5721 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5725 test -z "$as_dir" && as_dir=.
5726 # Account for people who put trailing slashes in PATH elements.
5728 ./ | .// | /cC/* | \
5729 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
5730 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
5733 # OSF1 and SCO ODT 3.0 have their own names for install.
5734 # Don't use installbsd from OSF since it installs stuff as root
5736 for ac_prog in ginstall scoinst install; do
5737 for ac_exec_ext in '' $ac_executable_extensions; do
5738 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
5739 if test $ac_prog = install &&
5740 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5741 # AIX install. It has an incompatible calling convention.
5743 elif test $ac_prog = install &&
5744 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5745 # program-specific install script used by HP pwplus--don't use.
5748 rm -rf conftest.one conftest.two conftest.dir
5749 echo one > conftest.one
5750 echo two > conftest.two
5752 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
5753 test -s conftest.one && test -s conftest.two &&
5754 test -s conftest.dir/conftest.one &&
5755 test -s conftest.dir/conftest.two
5757 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
5770 rm -rf conftest.one conftest.two conftest.dir
5773 if test "${ac_cv_path_install+set}" = set; then
5774 INSTALL=$ac_cv_path_install
5776 # As a last resort, use the slow shell script. Don't cache a
5777 # value for INSTALL within a source directory, because that will
5778 # break other packages using the cache if that directory is
5779 # removed, or if the value is a relative name.
5780 INSTALL=$ac_install_sh
5783 { $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
5784 $as_echo "$INSTALL" >&6; }
5786 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
5787 # It thinks the first close brace ends the variable substitution.
5788 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
5790 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
5792 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
5794 { $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
5795 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
5797 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
5798 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
5799 $as_echo_n "(cached) " >&6
5801 cat >conftest.make <<\_ACEOF
5804 @echo '@@@%%%=$(MAKE)=@@@%%%'
5806 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
5807 case `${MAKE-make} -f conftest.make 2>/dev/null` in
5809 eval ac_cv_prog_make_${ac_make}_set=yes;;
5811 eval ac_cv_prog_make_${ac_make}_set=no;;
5815 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
5816 { $as_echo "$as_me:$LINENO: result: yes" >&5
5817 $as_echo "yes" >&6; }
5820 { $as_echo "$as_me:$LINENO: result: no" >&5
5821 $as_echo "no" >&6; }
5822 SET_MAKE="MAKE=${MAKE-make}"
5827 # site specific configs
5829 # check for asterisk
5831 # Check whether --with-asterisk was given.
5832 if test "${with_asterisk+set}" = set; then
5833 withval=$with_asterisk;
5835 with_asterisk="check"
5839 if test "x$with_asterisk" != xno; then
5841 for ac_header in asterisk/compiler.h
5843 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5844 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5845 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
5846 $as_echo_n "checking for $ac_header... " >&6; }
5847 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5848 $as_echo_n "(cached) " >&6
5850 ac_res=`eval 'as_val=${'$as_ac_Header'}
5851 $as_echo "$as_val"'`
5852 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
5853 $as_echo "$ac_res" >&6; }
5855 # Is the header compilable?
5856 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
5857 $as_echo_n "checking $ac_header usability... " >&6; }
5858 cat >conftest.$ac_ext <<_ACEOF
5861 cat confdefs.h >>conftest.$ac_ext
5862 cat >>conftest.$ac_ext <<_ACEOF
5863 /* end confdefs.h. */
5864 $ac_includes_default
5865 #include <$ac_header>
5867 rm -f conftest.$ac_objext
5868 if { (ac_try="$ac_compile"
5870 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5871 *) ac_try_echo=$ac_try;;
5873 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5874 $as_echo "$ac_try_echo") >&5
5875 (eval "$ac_compile") 2>conftest.er1
5877 grep -v '^ *+' conftest.er1 >conftest.err
5879 cat conftest.err >&5
5880 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5881 (exit $ac_status); } && {
5882 test -z "$ac_c_werror_flag" ||
5883 test ! -s conftest.err
5884 } && test -s conftest.$ac_objext; then
5885 ac_header_compiler=yes
5887 $as_echo "$as_me: failed program was:" >&5
5888 sed 's/^/| /' conftest.$ac_ext >&5
5890 ac_header_compiler=no
5893 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5894 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5895 $as_echo "$ac_header_compiler" >&6; }
5897 # Is the header present?
5898 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
5899 $as_echo_n "checking $ac_header presence... " >&6; }
5900 cat >conftest.$ac_ext <<_ACEOF
5903 cat confdefs.h >>conftest.$ac_ext
5904 cat >>conftest.$ac_ext <<_ACEOF
5905 /* end confdefs.h. */
5906 #include <$ac_header>
5908 if { (ac_try="$ac_cpp conftest.$ac_ext"
5910 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5911 *) ac_try_echo=$ac_try;;
5913 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5914 $as_echo "$ac_try_echo") >&5
5915 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5917 grep -v '^ *+' conftest.er1 >conftest.err
5919 cat conftest.err >&5
5920 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5921 (exit $ac_status); } >/dev/null && {
5922 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5923 test ! -s conftest.err
5925 ac_header_preproc=yes
5927 $as_echo "$as_me: failed program was:" >&5
5928 sed 's/^/| /' conftest.$ac_ext >&5
5930 ac_header_preproc=no
5933 rm -f conftest.err conftest.$ac_ext
5934 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5935 $as_echo "$ac_header_preproc" >&6; }
5937 # So? What about this header?
5938 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5940 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5941 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5942 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5943 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5944 ac_header_preproc=yes
5947 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5948 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5949 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5950 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5951 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5952 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5953 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5954 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5955 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5956 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5957 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5958 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5960 ## ----------------------------------- ##
5961 ## Report this to andreas@eversberg.eu ##
5962 ## ----------------------------------- ##
5964 ) | sed "s/^/$as_me: WARNING: /" >&2
5967 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
5968 $as_echo_n "checking for $ac_header... " >&6; }
5969 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5970 $as_echo_n "(cached) " >&6
5972 eval "$as_ac_Header=\$ac_header_preproc"
5974 ac_res=`eval 'as_val=${'$as_ac_Header'}
5975 $as_echo "$as_val"'`
5976 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
5977 $as_echo "$ac_res" >&6; }
5980 as_val=`eval 'as_val=${'$as_ac_Header'}
5981 $as_echo "$as_val"'`
5982 if test "x$as_val" = x""yes; then
5983 cat >>confdefs.h <<_ACEOF
5984 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5988 if test "x$with_asterisk" != xcheck ; then
5989 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
5990 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5991 { { $as_echo "$as_me:$LINENO: error: --with-asterisk was given, but test for header-file asterisk/compiler.h failed
5992 See \`config.log' for more details." >&5
5993 $as_echo "$as_me: error: --with-asterisk was given, but test for header-file asterisk/compiler.h failed
5994 See \`config.log' for more details." >&2;}
5995 { (exit 1); exit 1; }; }; }
6008 if test "x$with_asterisk" == "xyes" ; then
6009 ENABLE_ASTERISK_CHANNEL_DRIVER_TRUE=
6010 ENABLE_ASTERISK_CHANNEL_DRIVER_FALSE='#'
6012 ENABLE_ASTERISK_CHANNEL_DRIVER_TRUE='#'
6013 ENABLE_ASTERISK_CHANNEL_DRIVER_FALSE=
6019 # Check whether --with-ssl was given.
6020 if test "${with_ssl+set}" = set; then
6027 if test "x$with_ssl" != xno; then
6029 for ac_header in openssl/rsa.h
6031 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6032 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6033 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
6034 $as_echo_n "checking for $ac_header... " >&6; }
6035 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6036 $as_echo_n "(cached) " >&6
6038 ac_res=`eval 'as_val=${'$as_ac_Header'}
6039 $as_echo "$as_val"'`
6040 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6041 $as_echo "$ac_res" >&6; }
6043 # Is the header compilable?
6044 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
6045 $as_echo_n "checking $ac_header usability... " >&6; }
6046 cat >conftest.$ac_ext <<_ACEOF
6049 cat confdefs.h >>conftest.$ac_ext
6050 cat >>conftest.$ac_ext <<_ACEOF
6051 /* end confdefs.h. */
6052 $ac_includes_default
6053 #include <$ac_header>
6055 rm -f conftest.$ac_objext
6056 if { (ac_try="$ac_compile"
6058 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6059 *) ac_try_echo=$ac_try;;
6061 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6062 $as_echo "$ac_try_echo") >&5
6063 (eval "$ac_compile") 2>conftest.er1
6065 grep -v '^ *+' conftest.er1 >conftest.err
6067 cat conftest.err >&5
6068 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6069 (exit $ac_status); } && {
6070 test -z "$ac_c_werror_flag" ||
6071 test ! -s conftest.err
6072 } && test -s conftest.$ac_objext; then
6073 ac_header_compiler=yes
6075 $as_echo "$as_me: failed program was:" >&5
6076 sed 's/^/| /' conftest.$ac_ext >&5
6078 ac_header_compiler=no
6081 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6082 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6083 $as_echo "$ac_header_compiler" >&6; }
6085 # Is the header present?
6086 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
6087 $as_echo_n "checking $ac_header presence... " >&6; }
6088 cat >conftest.$ac_ext <<_ACEOF
6091 cat confdefs.h >>conftest.$ac_ext
6092 cat >>conftest.$ac_ext <<_ACEOF
6093 /* end confdefs.h. */
6094 #include <$ac_header>
6096 if { (ac_try="$ac_cpp conftest.$ac_ext"
6098 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6099 *) ac_try_echo=$ac_try;;
6101 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6102 $as_echo "$ac_try_echo") >&5
6103 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6105 grep -v '^ *+' conftest.er1 >conftest.err
6107 cat conftest.err >&5
6108 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6109 (exit $ac_status); } >/dev/null && {
6110 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6111 test ! -s conftest.err
6113 ac_header_preproc=yes
6115 $as_echo "$as_me: failed program was:" >&5
6116 sed 's/^/| /' conftest.$ac_ext >&5
6118 ac_header_preproc=no
6121 rm -f conftest.err conftest.$ac_ext
6122 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6123 $as_echo "$ac_header_preproc" >&6; }
6125 # So? What about this header?
6126 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6128 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6129 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6130 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6131 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6132 ac_header_preproc=yes
6135 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6136 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6137 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6138 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6139 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6140 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6141 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6142 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6143 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6144 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6145 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6146 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6148 ## ----------------------------------- ##
6149 ## Report this to andreas@eversberg.eu ##
6150 ## ----------------------------------- ##
6152 ) | sed "s/^/$as_me: WARNING: /" >&2
6155 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
6156 $as_echo_n "checking for $ac_header... " >&6; }
6157 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6158 $as_echo_n "(cached) " >&6
6160 eval "$as_ac_Header=\$ac_header_preproc"
6162 ac_res=`eval 'as_val=${'$as_ac_Header'}
6163 $as_echo "$as_val"'`
6164 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6165 $as_echo "$ac_res" >&6; }
6168 as_val=`eval 'as_val=${'$as_ac_Header'}
6169 $as_echo "$as_val"'`
6170 if test "x$as_val" = x""yes; then
6171 cat >>confdefs.h <<_ACEOF
6172 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6179 { $as_echo "$as_me:$LINENO: checking for main in -lcrypto" >&5
6180 $as_echo_n "checking for main in -lcrypto... " >&6; }
6181 if test "${ac_cv_lib_crypto_main+set}" = set; then
6182 $as_echo_n "(cached) " >&6
6184 ac_check_lib_save_LIBS=$LIBS
6185 LIBS="-lcrypto -lcrypto
6187 cat >conftest.$ac_ext <<_ACEOF
6190 cat confdefs.h >>conftest.$ac_ext
6191 cat >>conftest.$ac_ext <<_ACEOF
6192 /* end confdefs.h. */
6203 rm -f conftest.$ac_objext conftest$ac_exeext
6204 if { (ac_try="$ac_link"
6206 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6207 *) ac_try_echo=$ac_try;;
6209 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6210 $as_echo "$ac_try_echo") >&5
6211 (eval "$ac_link") 2>conftest.er1
6213 grep -v '^ *+' conftest.er1 >conftest.err
6215 cat conftest.err >&5
6216 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6217 (exit $ac_status); } && {
6218 test -z "$ac_c_werror_flag" ||
6219 test ! -s conftest.err
6220 } && test -s conftest$ac_exeext && {
6221 test "$cross_compiling" = yes ||
6222 $as_test_x conftest$ac_exeext
6224 ac_cv_lib_crypto_main=yes
6226 $as_echo "$as_me: failed program was:" >&5
6227 sed 's/^/| /' conftest.$ac_ext >&5
6229 ac_cv_lib_crypto_main=no
6232 rm -rf conftest.dSYM
6233 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6234 conftest$ac_exeext conftest.$ac_ext
6235 LIBS=$ac_check_lib_save_LIBS
6237 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_main" >&5
6238 $as_echo "$ac_cv_lib_crypto_main" >&6; }
6239 if test "x$ac_cv_lib_crypto_main" = x""yes; then
6240 LIBCRYPTO="-lcrypto"
6243 cat >>confdefs.h <<\_ACEOF
6244 #define HAVE_LIBCRYPTO 1
6249 if test "x$with_ssl" != xcheck ; then
6250 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
6251 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6252 { { $as_echo "$as_me:$LINENO: error: --with-ssl was given, but test for libcrypto failed
6253 See \`config.log' for more details." >&5
6254 $as_echo "$as_me: error: --with-ssl was given, but test for libcrypto failed
6255 See \`config.log' for more details." >&2;}
6256 { (exit 1); exit 1; }; }; }
6268 # Check whether --with-gsm was given.
6269 if test "${with_gsm+set}" = set; then
6276 if test "x$with_gsm" != xno; then
6277 { $as_echo "$as_me:$LINENO: checking for openbsc/include/openbsc/gsm_data.h" >&5
6278 $as_echo_n "checking for openbsc/include/openbsc/gsm_data.h... " >&6; }
6279 if test "${ac_cv_file_openbsc_include_openbsc_gsm_data_h+set}" = set; then
6280 $as_echo_n "(cached) " >&6
6282 test "$cross_compiling" = yes &&
6283 { { $as_echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
6284 $as_echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
6285 { (exit 1); exit 1; }; }
6286 if test -r "openbsc/include/openbsc/gsm_data.h"; then
6287 ac_cv_file_openbsc_include_openbsc_gsm_data_h=yes
6289 ac_cv_file_openbsc_include_openbsc_gsm_data_h=no
6292 { $as_echo "$as_me:$LINENO: result: $ac_cv_file_openbsc_include_openbsc_gsm_data_h" >&5
6293 $as_echo "$ac_cv_file_openbsc_include_openbsc_gsm_data_h" >&6; }
6294 if test "x$ac_cv_file_openbsc_include_openbsc_gsm_data_h" = x""yes; then
6297 if test "x$with_gsm" != xcheck ; then
6298 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
6299 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6300 { { $as_echo "$as_me:$LINENO: error: --with-gsm was given, but openbsc/include/openbsc/gsm_data.h was not found! Pleas link OpenBSC and libosmocore source directory to LCR source directory: ln -s path_to_openbsc/openbsc/ openbsc ; ln -s patch_to_libosmocore osmocore
6301 See \`config.log' for more details." >&5
6302 $as_echo "$as_me: error: --with-gsm was given, but openbsc/include/openbsc/gsm_data.h was not found! Pleas link OpenBSC and libosmocore source directory to LCR source directory: ln -s path_to_openbsc/openbsc/ openbsc ; ln -s patch_to_libosmocore osmocore
6303 See \`config.log' for more details." >&2;}
6304 { (exit 1); exit 1; }; }; }
6315 if test "x$with_gsm" == "xyes" ; then
6317 ENABLE_GSM_FALSE='#'
6326 # Check whether --with-ss5 was given.
6327 if test "${with_ss5+set}" = set; then
6336 if test "x$with_ss5" == "xyes" ; then
6338 ENABLE_SS5_FALSE='#'
6345 # Checks for libraries.
6347 { $as_echo "$as_me:$LINENO: checking for main in -lm" >&5
6348 $as_echo_n "checking for main in -lm... " >&6; }
6349 if test "${ac_cv_lib_m_main+set}" = set; then
6350 $as_echo_n "(cached) " >&6
6352 ac_check_lib_save_LIBS=$LIBS
6354 cat >conftest.$ac_ext <<_ACEOF
6357 cat confdefs.h >>conftest.$ac_ext
6358 cat >>conftest.$ac_ext <<_ACEOF
6359 /* end confdefs.h. */
6370 rm -f conftest.$ac_objext conftest$ac_exeext
6371 if { (ac_try="$ac_link"
6373 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6374 *) ac_try_echo=$ac_try;;
6376 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6377 $as_echo "$ac_try_echo") >&5
6378 (eval "$ac_link") 2>conftest.er1
6380 grep -v '^ *+' conftest.er1 >conftest.err
6382 cat conftest.err >&5
6383 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6384 (exit $ac_status); } && {
6385 test -z "$ac_c_werror_flag" ||
6386 test ! -s conftest.err
6387 } && test -s conftest$ac_exeext && {
6388 test "$cross_compiling" = yes ||
6389 $as_test_x conftest$ac_exeext
6391 ac_cv_lib_m_main=yes
6393 $as_echo "$as_me: failed program was:" >&5
6394 sed 's/^/| /' conftest.$ac_ext >&5
6399 rm -rf conftest.dSYM
6400 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6401 conftest$ac_exeext conftest.$ac_ext
6402 LIBS=$ac_check_lib_save_LIBS
6404 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_m_main" >&5
6405 $as_echo "$ac_cv_lib_m_main" >&6; }
6406 if test "x$ac_cv_lib_m_main" = x""yes; then
6407 cat >>confdefs.h <<_ACEOF
6416 { $as_echo "$as_me:$LINENO: checking for main in -lncurses" >&5
6417 $as_echo_n "checking for main in -lncurses... " >&6; }
6418 if test "${ac_cv_lib_ncurses_main+set}" = set; then
6419 $as_echo_n "(cached) " >&6
6421 ac_check_lib_save_LIBS=$LIBS
6422 LIBS="-lncurses $LIBS"
6423 cat >conftest.$ac_ext <<_ACEOF
6426 cat confdefs.h >>conftest.$ac_ext
6427 cat >>conftest.$ac_ext <<_ACEOF
6428 /* end confdefs.h. */
6439 rm -f conftest.$ac_objext conftest$ac_exeext
6440 if { (ac_try="$ac_link"
6442 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6443 *) ac_try_echo=$ac_try;;
6445 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6446 $as_echo "$ac_try_echo") >&5
6447 (eval "$ac_link") 2>conftest.er1
6449 grep -v '^ *+' conftest.er1 >conftest.err
6451 cat conftest.err >&5
6452 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6453 (exit $ac_status); } && {
6454 test -z "$ac_c_werror_flag" ||
6455 test ! -s conftest.err
6456 } && test -s conftest$ac_exeext && {
6457 test "$cross_compiling" = yes ||
6458 $as_test_x conftest$ac_exeext
6460 ac_cv_lib_ncurses_main=yes
6462 $as_echo "$as_me: failed program was:" >&5
6463 sed 's/^/| /' conftest.$ac_ext >&5
6465 ac_cv_lib_ncurses_main=no
6468 rm -rf conftest.dSYM
6469 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6470 conftest$ac_exeext conftest.$ac_ext
6471 LIBS=$ac_check_lib_save_LIBS
6473 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_main" >&5
6474 $as_echo "$ac_cv_lib_ncurses_main" >&6; }
6475 if test "x$ac_cv_lib_ncurses_main" = x""yes; then
6476 cat >>confdefs.h <<_ACEOF
6477 #define HAVE_LIBNCURSES 1
6480 LIBS="-lncurses $LIBS"
6485 { $as_echo "$as_me:$LINENO: checking for main in -lpthread" >&5
6486 $as_echo_n "checking for main in -lpthread... " >&6; }
6487 if test "${ac_cv_lib_pthread_main+set}" = set; then
6488 $as_echo_n "(cached) " >&6
6490 ac_check_lib_save_LIBS=$LIBS
6491 LIBS="-lpthread $LIBS"
6492 cat >conftest.$ac_ext <<_ACEOF
6495 cat confdefs.h >>conftest.$ac_ext
6496 cat >>conftest.$ac_ext <<_ACEOF
6497 /* end confdefs.h. */
6508 rm -f conftest.$ac_objext conftest$ac_exeext
6509 if { (ac_try="$ac_link"
6511 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6512 *) ac_try_echo=$ac_try;;
6514 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6515 $as_echo "$ac_try_echo") >&5
6516 (eval "$ac_link") 2>conftest.er1
6518 grep -v '^ *+' conftest.er1 >conftest.err
6520 cat conftest.err >&5
6521 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6522 (exit $ac_status); } && {
6523 test -z "$ac_c_werror_flag" ||
6524 test ! -s conftest.err
6525 } && test -s conftest$ac_exeext && {
6526 test "$cross_compiling" = yes ||
6527 $as_test_x conftest$ac_exeext
6529 ac_cv_lib_pthread_main=yes
6531 $as_echo "$as_me: failed program was:" >&5
6532 sed 's/^/| /' conftest.$ac_ext >&5
6534 ac_cv_lib_pthread_main=no
6537 rm -rf conftest.dSYM
6538 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6539 conftest$ac_exeext conftest.$ac_ext
6540 LIBS=$ac_check_lib_save_LIBS
6542 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_main" >&5
6543 $as_echo "$ac_cv_lib_pthread_main" >&6; }
6544 if test "x$ac_cv_lib_pthread_main" = x""yes; then
6545 cat >>confdefs.h <<_ACEOF
6546 #define HAVE_LIBPTHREAD 1
6549 LIBS="-lpthread $LIBS"
6554 # Checks for header files.
6561 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
6562 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
6563 { $as_echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
6564 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
6565 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6566 $as_echo_n "(cached) " >&6
6568 cat >conftest.$ac_ext <<_ACEOF
6571 cat confdefs.h >>conftest.$ac_ext
6572 cat >>conftest.$ac_ext <<_ACEOF
6573 /* end confdefs.h. */
6574 #include <sys/types.h>
6586 rm -f conftest.$ac_objext
6587 if { (ac_try="$ac_compile"
6589 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6590 *) ac_try_echo=$ac_try;;
6592 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6593 $as_echo "$ac_try_echo") >&5
6594 (eval "$ac_compile") 2>conftest.er1
6596 grep -v '^ *+' conftest.er1 >conftest.err
6598 cat conftest.err >&5
6599 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6600 (exit $ac_status); } && {
6601 test -z "$ac_c_werror_flag" ||
6602 test ! -s conftest.err
6603 } && test -s conftest.$ac_objext; then
6604 eval "$as_ac_Header=yes"
6606 $as_echo "$as_me: failed program was:" >&5
6607 sed 's/^/| /' conftest.$ac_ext >&5
6609 eval "$as_ac_Header=no"
6612 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6614 ac_res=`eval 'as_val=${'$as_ac_Header'}
6615 $as_echo "$as_val"'`
6616 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6617 $as_echo "$ac_res" >&6; }
6618 as_val=`eval 'as_val=${'$as_ac_Header'}
6619 $as_echo "$as_val"'`
6620 if test "x$as_val" = x""yes; then
6621 cat >>confdefs.h <<_ACEOF
6622 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
6625 ac_header_dirent=$ac_hdr; break
6629 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
6630 if test $ac_header_dirent = dirent.h; then
6631 { $as_echo "$as_me:$LINENO: checking for library containing opendir" >&5
6632 $as_echo_n "checking for library containing opendir... " >&6; }
6633 if test "${ac_cv_search_opendir+set}" = set; then
6634 $as_echo_n "(cached) " >&6
6636 ac_func_search_save_LIBS=$LIBS
6637 cat >conftest.$ac_ext <<_ACEOF
6640 cat confdefs.h >>conftest.$ac_ext
6641 cat >>conftest.$ac_ext <<_ACEOF
6642 /* end confdefs.h. */
6644 /* Override any GCC internal prototype to avoid an error.
6645 Use char because int might match the return type of a GCC
6646 builtin and then its argument prototype would still apply. */
6659 for ac_lib in '' dir; do
6660 if test -z "$ac_lib"; then
6661 ac_res="none required"
6664 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6666 rm -f conftest.$ac_objext conftest$ac_exeext
6667 if { (ac_try="$ac_link"
6669 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6670 *) ac_try_echo=$ac_try;;
6672 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6673 $as_echo "$ac_try_echo") >&5
6674 (eval "$ac_link") 2>conftest.er1
6676 grep -v '^ *+' conftest.er1 >conftest.err
6678 cat conftest.err >&5
6679 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6680 (exit $ac_status); } && {
6681 test -z "$ac_c_werror_flag" ||
6682 test ! -s conftest.err
6683 } && test -s conftest$ac_exeext && {
6684 test "$cross_compiling" = yes ||
6685 $as_test_x conftest$ac_exeext
6687 ac_cv_search_opendir=$ac_res
6689 $as_echo "$as_me: failed program was:" >&5
6690 sed 's/^/| /' conftest.$ac_ext >&5
6695 rm -rf conftest.dSYM
6696 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6698 if test "${ac_cv_search_opendir+set}" = set; then
6702 if test "${ac_cv_search_opendir+set}" = set; then
6705 ac_cv_search_opendir=no
6708 LIBS=$ac_func_search_save_LIBS
6710 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
6711 $as_echo "$ac_cv_search_opendir" >&6; }
6712 ac_res=$ac_cv_search_opendir
6713 if test "$ac_res" != no; then
6714 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
6719 { $as_echo "$as_me:$LINENO: checking for library containing opendir" >&5
6720 $as_echo_n "checking for library containing opendir... " >&6; }
6721 if test "${ac_cv_search_opendir+set}" = set; then
6722 $as_echo_n "(cached) " >&6
6724 ac_func_search_save_LIBS=$LIBS
6725 cat >conftest.$ac_ext <<_ACEOF
6728 cat confdefs.h >>conftest.$ac_ext
6729 cat >>conftest.$ac_ext <<_ACEOF
6730 /* end confdefs.h. */
6732 /* Override any GCC internal prototype to avoid an error.
6733 Use char because int might match the return type of a GCC
6734 builtin and then its argument prototype would still apply. */
6747 for ac_lib in '' x; do
6748 if test -z "$ac_lib"; then
6749 ac_res="none required"
6752 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6754 rm -f conftest.$ac_objext conftest$ac_exeext
6755 if { (ac_try="$ac_link"
6757 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6758 *) ac_try_echo=$ac_try;;
6760 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6761 $as_echo "$ac_try_echo") >&5
6762 (eval "$ac_link") 2>conftest.er1
6764 grep -v '^ *+' conftest.er1 >conftest.err
6766 cat conftest.err >&5
6767 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6768 (exit $ac_status); } && {
6769 test -z "$ac_c_werror_flag" ||
6770 test ! -s conftest.err
6771 } && test -s conftest$ac_exeext && {
6772 test "$cross_compiling" = yes ||
6773 $as_test_x conftest$ac_exeext
6775 ac_cv_search_opendir=$ac_res
6777 $as_echo "$as_me: failed program was:" >&5
6778 sed 's/^/| /' conftest.$ac_ext >&5
6783 rm -rf conftest.dSYM
6784 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6786 if test "${ac_cv_search_opendir+set}" = set; then
6790 if test "${ac_cv_search_opendir+set}" = set; then
6793 ac_cv_search_opendir=no
6796 LIBS=$ac_func_search_save_LIBS
6798 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
6799 $as_echo "$ac_cv_search_opendir" >&6; }
6800 ac_res=$ac_cv_search_opendir
6801 if test "$ac_res" != no; then
6802 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
6808 { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6809 $as_echo_n "checking for ANSI C header files... " >&6; }
6810 if test "${ac_cv_header_stdc+set}" = set; then
6811 $as_echo_n "(cached) " >&6
6813 cat >conftest.$ac_ext <<_ACEOF
6816 cat confdefs.h >>conftest.$ac_ext
6817 cat >>conftest.$ac_ext <<_ACEOF
6818 /* end confdefs.h. */
6832 rm -f conftest.$ac_objext
6833 if { (ac_try="$ac_compile"
6835 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6836 *) ac_try_echo=$ac_try;;
6838 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6839 $as_echo "$ac_try_echo") >&5
6840 (eval "$ac_compile") 2>conftest.er1
6842 grep -v '^ *+' conftest.er1 >conftest.err
6844 cat conftest.err >&5
6845 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6846 (exit $ac_status); } && {
6847 test -z "$ac_c_werror_flag" ||
6848 test ! -s conftest.err
6849 } && test -s conftest.$ac_objext; then
6850 ac_cv_header_stdc=yes
6852 $as_echo "$as_me: failed program was:" >&5
6853 sed 's/^/| /' conftest.$ac_ext >&5
6855 ac_cv_header_stdc=no
6858 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6860 if test $ac_cv_header_stdc = yes; then
6861 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6862 cat >conftest.$ac_ext <<_ACEOF
6865 cat confdefs.h >>conftest.$ac_ext
6866 cat >>conftest.$ac_ext <<_ACEOF
6867 /* end confdefs.h. */
6871 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6872 $EGREP "memchr" >/dev/null 2>&1; then
6875 ac_cv_header_stdc=no
6881 if test $ac_cv_header_stdc = yes; then
6882 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6883 cat >conftest.$ac_ext <<_ACEOF
6886 cat confdefs.h >>conftest.$ac_ext
6887 cat >>conftest.$ac_ext <<_ACEOF
6888 /* end confdefs.h. */
6892 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6893 $EGREP "free" >/dev/null 2>&1; then
6896 ac_cv_header_stdc=no
6902 if test $ac_cv_header_stdc = yes; then
6903 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6904 if test "$cross_compiling" = yes; then
6907 cat >conftest.$ac_ext <<_ACEOF
6910 cat confdefs.h >>conftest.$ac_ext
6911 cat >>conftest.$ac_ext <<_ACEOF
6912 /* end confdefs.h. */
6915 #if ((' ' & 0x0FF) == 0x020)
6916 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6917 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6919 # define ISLOWER(c) \
6920 (('a' <= (c) && (c) <= 'i') \
6921 || ('j' <= (c) && (c) <= 'r') \
6922 || ('s' <= (c) && (c) <= 'z'))
6923 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6926 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6931 for (i = 0; i < 256; i++)
6932 if (XOR (islower (i), ISLOWER (i))
6933 || toupper (i) != TOUPPER (i))
6938 rm -f conftest$ac_exeext
6939 if { (ac_try="$ac_link"
6941 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6942 *) ac_try_echo=$ac_try;;
6944 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6945 $as_echo "$ac_try_echo") >&5
6946 (eval "$ac_link") 2>&5
6948 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6949 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6950 { (case "(($ac_try" in
6951 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6952 *) ac_try_echo=$ac_try;;
6954 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6955 $as_echo "$ac_try_echo") >&5
6956 (eval "$ac_try") 2>&5
6958 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6959 (exit $ac_status); }; }; then
6962 $as_echo "$as_me: program exited with status $ac_status" >&5
6963 $as_echo "$as_me: failed program was:" >&5
6964 sed 's/^/| /' conftest.$ac_ext >&5
6967 ac_cv_header_stdc=no
6969 rm -rf conftest.dSYM
6970 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6976 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6977 $as_echo "$ac_cv_header_stdc" >&6; }
6978 if test $ac_cv_header_stdc = yes; then
6980 cat >>confdefs.h <<\_ACEOF
6981 #define STDC_HEADERS 1
6986 { $as_echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
6987 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
6988 if test "${ac_cv_header_sys_wait_h+set}" = set; then
6989 $as_echo_n "(cached) " >&6
6991 cat >conftest.$ac_ext <<_ACEOF
6994 cat confdefs.h >>conftest.$ac_ext
6995 cat >>conftest.$ac_ext <<_ACEOF
6996 /* end confdefs.h. */
6997 #include <sys/types.h>
6998 #include <sys/wait.h>
7000 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
7003 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
7011 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
7016 rm -f conftest.$ac_objext
7017 if { (ac_try="$ac_compile"
7019 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7020 *) ac_try_echo=$ac_try;;
7022 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7023 $as_echo "$ac_try_echo") >&5
7024 (eval "$ac_compile") 2>conftest.er1
7026 grep -v '^ *+' conftest.er1 >conftest.err
7028 cat conftest.err >&5
7029 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7030 (exit $ac_status); } && {
7031 test -z "$ac_c_werror_flag" ||
7032 test ! -s conftest.err
7033 } && test -s conftest.$ac_objext; then
7034 ac_cv_header_sys_wait_h=yes
7036 $as_echo "$as_me: failed program was:" >&5
7037 sed 's/^/| /' conftest.$ac_ext >&5
7039 ac_cv_header_sys_wait_h=no
7042 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7044 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
7045 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
7046 if test $ac_cv_header_sys_wait_h = yes; then
7048 cat >>confdefs.h <<\_ACEOF
7049 #define HAVE_SYS_WAIT_H 1
7067 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
7069 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7070 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7071 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
7072 $as_echo_n "checking for $ac_header... " >&6; }
7073 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7074 $as_echo_n "(cached) " >&6
7076 ac_res=`eval 'as_val=${'$as_ac_Header'}
7077 $as_echo "$as_val"'`
7078 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7079 $as_echo "$ac_res" >&6; }
7081 # Is the header compilable?
7082 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
7083 $as_echo_n "checking $ac_header usability... " >&6; }
7084 cat >conftest.$ac_ext <<_ACEOF
7087 cat confdefs.h >>conftest.$ac_ext
7088 cat >>conftest.$ac_ext <<_ACEOF
7089 /* end confdefs.h. */
7090 $ac_includes_default
7091 #include <$ac_header>
7093 rm -f conftest.$ac_objext
7094 if { (ac_try="$ac_compile"
7096 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7097 *) ac_try_echo=$ac_try;;
7099 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7100 $as_echo "$ac_try_echo") >&5
7101 (eval "$ac_compile") 2>conftest.er1
7103 grep -v '^ *+' conftest.er1 >conftest.err
7105 cat conftest.err >&5
7106 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7107 (exit $ac_status); } && {
7108 test -z "$ac_c_werror_flag" ||
7109 test ! -s conftest.err
7110 } && test -s conftest.$ac_objext; then
7111 ac_header_compiler=yes
7113 $as_echo "$as_me: failed program was:" >&5
7114 sed 's/^/| /' conftest.$ac_ext >&5
7116 ac_header_compiler=no
7119 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7120 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7121 $as_echo "$ac_header_compiler" >&6; }
7123 # Is the header present?
7124 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
7125 $as_echo_n "checking $ac_header presence... " >&6; }
7126 cat >conftest.$ac_ext <<_ACEOF
7129 cat confdefs.h >>conftest.$ac_ext
7130 cat >>conftest.$ac_ext <<_ACEOF
7131 /* end confdefs.h. */
7132 #include <$ac_header>
7134 if { (ac_try="$ac_cpp conftest.$ac_ext"
7136 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7137 *) ac_try_echo=$ac_try;;
7139 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7140 $as_echo "$ac_try_echo") >&5
7141 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7143 grep -v '^ *+' conftest.er1 >conftest.err
7145 cat conftest.err >&5
7146 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7147 (exit $ac_status); } >/dev/null && {
7148 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7149 test ! -s conftest.err
7151 ac_header_preproc=yes
7153 $as_echo "$as_me: failed program was:" >&5
7154 sed 's/^/| /' conftest.$ac_ext >&5
7156 ac_header_preproc=no
7159 rm -f conftest.err conftest.$ac_ext
7160 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7161 $as_echo "$ac_header_preproc" >&6; }
7163 # So? What about this header?
7164 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7166 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7167 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7168 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7169 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7170 ac_header_preproc=yes
7173 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7174 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7175 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7176 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7177 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7178 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7179 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7180 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7181 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7182 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7183 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7184 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7186 ## ----------------------------------- ##
7187 ## Report this to andreas@eversberg.eu ##
7188 ## ----------------------------------- ##
7190 ) | sed "s/^/$as_me: WARNING: /" >&2
7193 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
7194 $as_echo_n "checking for $ac_header... " >&6; }
7195 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7196 $as_echo_n "(cached) " >&6
7198 eval "$as_ac_Header=\$ac_header_preproc"
7200 ac_res=`eval 'as_val=${'$as_ac_Header'}
7201 $as_echo "$as_val"'`
7202 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7203 $as_echo "$ac_res" >&6; }
7206 as_val=`eval 'as_val=${'$as_ac_Header'}
7207 $as_echo "$as_val"'`
7208 if test "x$as_val" = x""yes; then
7209 cat >>confdefs.h <<_ACEOF
7210 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7218 # Checks for typedefs, structures, and compiler characteristics.
7219 { $as_echo "$as_me:$LINENO: checking for stdbool.h that conforms to C99" >&5
7220 $as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
7221 if test "${ac_cv_header_stdbool_h+set}" = set; then
7222 $as_echo_n "(cached) " >&6
7224 cat >conftest.$ac_ext <<_ACEOF
7227 cat confdefs.h >>conftest.$ac_ext
7228 cat >>conftest.$ac_ext <<_ACEOF
7229 /* end confdefs.h. */
7231 #include <stdbool.h>
7233 "error: bool is not defined"
7236 "error: false is not defined"
7239 "error: false is not 0"
7242 "error: true is not defined"
7245 "error: true is not 1"
7247 #ifndef __bool_true_false_are_defined
7248 "error: __bool_true_false_are_defined is not defined"
7251 struct s { _Bool s: 1; _Bool t; } s;
7253 char a[true == 1 ? 1 : -1];
7254 char b[false == 0 ? 1 : -1];
7255 char c[__bool_true_false_are_defined == 1 ? 1 : -1];
7256 char d[(bool) 0.5 == true ? 1 : -1];
7258 char f[(_Bool) 0.0 == false ? 1 : -1];
7260 char h[sizeof (_Bool)];
7262 enum { j = false, k = true, l = false * true, m = true * 256 };
7263 /* The following fails for
7264 HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
7266 char o[sizeof n == m * sizeof n[0] ? 1 : -1];
7267 char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
7268 # if defined __xlc__ || defined __GNUC__
7269 /* Catch a bug in IBM AIX xlc compiler version 6.0.0.0
7270 reported by James Lemley on 2005-10-05; see
7271 http://lists.gnu.org/archive/html/bug-coreutils/2005-10/msg00086.html
7272 This test is not quite right, since xlc is allowed to
7273 reject this program, as the initializer for xlcbug is
7274 not one of the forms that C requires support for.
7275 However, doing the test right would require a runtime
7276 test, and that would make cross-compilation harder.
7277 Let us hope that IBM fixes the xlc bug, and also adds
7278 support for this kind of constant expression. In the
7279 meantime, this test will reject xlc, which is OK, since
7280 our stdbool.h substitute should suffice. We also test
7281 this with GCC, where it should work, to detect more
7282 quickly whether someone messes up the test in the
7284 char digs[] = "0123456789";
7285 int xlcbug = 1 / (&(digs + 5)[-2 + (bool) 1] == &digs[4] ? 1 : -1);
7287 /* Catch a bug in an HP-UX C compiler. See
7288 http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
7289 http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
7300 /* Refer to every declared value, to avoid compiler optimizations. */
7301 return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
7302 + !m + !n + !o + !p + !q + !pq);
7308 rm -f conftest.$ac_objext
7309 if { (ac_try="$ac_compile"
7311 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7312 *) ac_try_echo=$ac_try;;
7314 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7315 $as_echo "$ac_try_echo") >&5
7316 (eval "$ac_compile") 2>conftest.er1
7318 grep -v '^ *+' conftest.er1 >conftest.err
7320 cat conftest.err >&5
7321 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7322 (exit $ac_status); } && {
7323 test -z "$ac_c_werror_flag" ||
7324 test ! -s conftest.err
7325 } && test -s conftest.$ac_objext; then
7326 ac_cv_header_stdbool_h=yes
7328 $as_echo "$as_me: failed program was:" >&5
7329 sed 's/^/| /' conftest.$ac_ext >&5
7331 ac_cv_header_stdbool_h=no
7334 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7336 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdbool_h" >&5
7337 $as_echo "$ac_cv_header_stdbool_h" >&6; }
7338 { $as_echo "$as_me:$LINENO: checking for _Bool" >&5
7339 $as_echo_n "checking for _Bool... " >&6; }
7340 if test "${ac_cv_type__Bool+set}" = set; then
7341 $as_echo_n "(cached) " >&6
7344 cat >conftest.$ac_ext <<_ACEOF
7347 cat confdefs.h >>conftest.$ac_ext
7348 cat >>conftest.$ac_ext <<_ACEOF
7349 /* end confdefs.h. */
7350 $ac_includes_default
7360 rm -f conftest.$ac_objext
7361 if { (ac_try="$ac_compile"
7363 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7364 *) ac_try_echo=$ac_try;;
7366 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7367 $as_echo "$ac_try_echo") >&5
7368 (eval "$ac_compile") 2>conftest.er1
7370 grep -v '^ *+' conftest.er1 >conftest.err
7372 cat conftest.err >&5
7373 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7374 (exit $ac_status); } && {
7375 test -z "$ac_c_werror_flag" ||
7376 test ! -s conftest.err
7377 } && test -s conftest.$ac_objext; then
7378 cat >conftest.$ac_ext <<_ACEOF
7381 cat confdefs.h >>conftest.$ac_ext
7382 cat >>conftest.$ac_ext <<_ACEOF
7383 /* end confdefs.h. */
7384 $ac_includes_default
7388 if (sizeof ((_Bool)))
7394 rm -f conftest.$ac_objext
7395 if { (ac_try="$ac_compile"
7397 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7398 *) ac_try_echo=$ac_try;;
7400 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7401 $as_echo "$ac_try_echo") >&5
7402 (eval "$ac_compile") 2>conftest.er1
7404 grep -v '^ *+' conftest.er1 >conftest.err
7406 cat conftest.err >&5
7407 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7408 (exit $ac_status); } && {
7409 test -z "$ac_c_werror_flag" ||
7410 test ! -s conftest.err
7411 } && test -s conftest.$ac_objext; then
7414 $as_echo "$as_me: failed program was:" >&5
7415 sed 's/^/| /' conftest.$ac_ext >&5
7417 ac_cv_type__Bool=yes
7420 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7422 $as_echo "$as_me: failed program was:" >&5
7423 sed 's/^/| /' conftest.$ac_ext >&5
7428 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7430 { $as_echo "$as_me:$LINENO: result: $ac_cv_type__Bool" >&5
7431 $as_echo "$ac_cv_type__Bool" >&6; }
7432 if test "x$ac_cv_type__Bool" = x""yes; then
7434 cat >>confdefs.h <<_ACEOF
7435 #define HAVE__BOOL 1
7441 if test $ac_cv_header_stdbool_h = yes; then
7443 cat >>confdefs.h <<\_ACEOF
7444 #define HAVE_STDBOOL_H 1
7449 { $as_echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
7450 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
7451 if test "${ac_cv_c_const+set}" = set; then
7452 $as_echo_n "(cached) " >&6
7454 cat >conftest.$ac_ext <<_ACEOF
7457 cat confdefs.h >>conftest.$ac_ext
7458 cat >>conftest.$ac_ext <<_ACEOF
7459 /* end confdefs.h. */
7464 /* FIXME: Include the comments suggested by Paul. */
7466 /* Ultrix mips cc rejects this. */
7467 typedef int charset[2];
7469 /* SunOS 4.1.1 cc rejects this. */
7470 char const *const *pcpcc;
7472 /* NEC SVR4.0.2 mips cc rejects this. */
7473 struct point {int x, y;};
7474 static struct point const zero = {0,0};
7475 /* AIX XL C 1.02.0.0 rejects this.
7476 It does not let you subtract one const X* pointer from another in
7477 an arm of an if-expression whose if-part is not a constant
7479 const char *g = "string";
7480 pcpcc = &g + (g ? g-g : 0);
7481 /* HPUX 7.0 cc rejects these. */
7483 ppc = (char**) pcpcc;
7484 pcpcc = (char const *const *) ppc;
7485 { /* SCO 3.2v4 cc rejects this. */
7487 char const *s = 0 ? (char *) 0 : (char const *) 0;
7492 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
7494 const int *foo = &x[0];
7497 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
7498 typedef const int *iptr;
7502 { /* AIX XL C 1.02.0.0 rejects this saying
7503 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
7504 struct s { int j; const int *ap[3]; };
7505 struct s *b; b->j = 5;
7507 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
7511 return !cs[0] && !zero.x;
7518 rm -f conftest.$ac_objext
7519 if { (ac_try="$ac_compile"
7521 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7522 *) ac_try_echo=$ac_try;;
7524 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7525 $as_echo "$ac_try_echo") >&5
7526 (eval "$ac_compile") 2>conftest.er1
7528 grep -v '^ *+' conftest.er1 >conftest.err
7530 cat conftest.err >&5
7531 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7532 (exit $ac_status); } && {
7533 test -z "$ac_c_werror_flag" ||
7534 test ! -s conftest.err
7535 } && test -s conftest.$ac_objext; then
7538 $as_echo "$as_me: failed program was:" >&5
7539 sed 's/^/| /' conftest.$ac_ext >&5
7544 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7546 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
7547 $as_echo "$ac_cv_c_const" >&6; }
7548 if test $ac_cv_c_const = no; then
7550 cat >>confdefs.h <<\_ACEOF
7556 { $as_echo "$as_me:$LINENO: checking for inline" >&5
7557 $as_echo_n "checking for inline... " >&6; }
7558 if test "${ac_cv_c_inline+set}" = set; then
7559 $as_echo_n "(cached) " >&6
7562 for ac_kw in inline __inline__ __inline; do
7563 cat >conftest.$ac_ext <<_ACEOF
7566 cat confdefs.h >>conftest.$ac_ext
7567 cat >>conftest.$ac_ext <<_ACEOF
7568 /* end confdefs.h. */
7571 static $ac_kw foo_t static_foo () {return 0; }
7572 $ac_kw foo_t foo () {return 0; }
7576 rm -f conftest.$ac_objext
7577 if { (ac_try="$ac_compile"
7579 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7580 *) ac_try_echo=$ac_try;;
7582 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7583 $as_echo "$ac_try_echo") >&5
7584 (eval "$ac_compile") 2>conftest.er1
7586 grep -v '^ *+' conftest.er1 >conftest.err
7588 cat conftest.err >&5
7589 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7590 (exit $ac_status); } && {
7591 test -z "$ac_c_werror_flag" ||
7592 test ! -s conftest.err
7593 } && test -s conftest.$ac_objext; then
7594 ac_cv_c_inline=$ac_kw
7596 $as_echo "$as_me: failed program was:" >&5
7597 sed 's/^/| /' conftest.$ac_ext >&5
7602 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7603 test "$ac_cv_c_inline" != no && break
7607 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
7608 $as_echo "$ac_cv_c_inline" >&6; }
7611 case $ac_cv_c_inline in
7614 case $ac_cv_c_inline in
7616 *) ac_val=$ac_cv_c_inline;;
7618 cat >>confdefs.h <<_ACEOF
7620 #define inline $ac_val
7626 { $as_echo "$as_me:$LINENO: checking for pid_t" >&5
7627 $as_echo_n "checking for pid_t... " >&6; }
7628 if test "${ac_cv_type_pid_t+set}" = set; then
7629 $as_echo_n "(cached) " >&6
7632 cat >conftest.$ac_ext <<_ACEOF
7635 cat confdefs.h >>conftest.$ac_ext
7636 cat >>conftest.$ac_ext <<_ACEOF
7637 /* end confdefs.h. */
7638 $ac_includes_default
7648 rm -f conftest.$ac_objext
7649 if { (ac_try="$ac_compile"
7651 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7652 *) ac_try_echo=$ac_try;;
7654 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7655 $as_echo "$ac_try_echo") >&5
7656 (eval "$ac_compile") 2>conftest.er1
7658 grep -v '^ *+' conftest.er1 >conftest.err
7660 cat conftest.err >&5
7661 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7662 (exit $ac_status); } && {
7663 test -z "$ac_c_werror_flag" ||
7664 test ! -s conftest.err
7665 } && test -s conftest.$ac_objext; then
7666 cat >conftest.$ac_ext <<_ACEOF
7669 cat confdefs.h >>conftest.$ac_ext
7670 cat >>conftest.$ac_ext <<_ACEOF
7671 /* end confdefs.h. */
7672 $ac_includes_default
7676 if (sizeof ((pid_t)))
7682 rm -f conftest.$ac_objext
7683 if { (ac_try="$ac_compile"
7685 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7686 *) ac_try_echo=$ac_try;;
7688 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7689 $as_echo "$ac_try_echo") >&5
7690 (eval "$ac_compile") 2>conftest.er1
7692 grep -v '^ *+' conftest.er1 >conftest.err
7694 cat conftest.err >&5
7695 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7696 (exit $ac_status); } && {
7697 test -z "$ac_c_werror_flag" ||
7698 test ! -s conftest.err
7699 } && test -s conftest.$ac_objext; then
7702 $as_echo "$as_me: failed program was:" >&5
7703 sed 's/^/| /' conftest.$ac_ext >&5
7705 ac_cv_type_pid_t=yes
7708 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7710 $as_echo "$as_me: failed program was:" >&5
7711 sed 's/^/| /' conftest.$ac_ext >&5
7716 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7718 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
7719 $as_echo "$ac_cv_type_pid_t" >&6; }
7720 if test "x$ac_cv_type_pid_t" = x""yes; then
7724 cat >>confdefs.h <<_ACEOF
7730 { $as_echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
7731 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
7732 if test "${ac_cv_header_time+set}" = set; then
7733 $as_echo_n "(cached) " >&6
7735 cat >conftest.$ac_ext <<_ACEOF
7738 cat confdefs.h >>conftest.$ac_ext
7739 cat >>conftest.$ac_ext <<_ACEOF
7740 /* end confdefs.h. */
7741 #include <sys/types.h>
7742 #include <sys/time.h>
7748 if ((struct tm *) 0)
7754 rm -f conftest.$ac_objext
7755 if { (ac_try="$ac_compile"
7757 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7758 *) ac_try_echo=$ac_try;;
7760 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7761 $as_echo "$ac_try_echo") >&5
7762 (eval "$ac_compile") 2>conftest.er1
7764 grep -v '^ *+' conftest.er1 >conftest.err
7766 cat conftest.err >&5
7767 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7768 (exit $ac_status); } && {
7769 test -z "$ac_c_werror_flag" ||
7770 test ! -s conftest.err
7771 } && test -s conftest.$ac_objext; then
7772 ac_cv_header_time=yes
7774 $as_echo "$as_me: failed program was:" >&5
7775 sed 's/^/| /' conftest.$ac_ext >&5
7777 ac_cv_header_time=no
7780 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7782 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
7783 $as_echo "$ac_cv_header_time" >&6; }
7784 if test $ac_cv_header_time = yes; then
7786 cat >>confdefs.h <<\_ACEOF
7787 #define TIME_WITH_SYS_TIME 1
7792 { $as_echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
7793 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
7794 if test "${ac_cv_struct_tm+set}" = set; then
7795 $as_echo_n "(cached) " >&6
7797 cat >conftest.$ac_ext <<_ACEOF
7800 cat confdefs.h >>conftest.$ac_ext
7801 cat >>conftest.$ac_ext <<_ACEOF
7802 /* end confdefs.h. */
7803 #include <sys/types.h>
7810 int *p = &tm.tm_sec;
7816 rm -f conftest.$ac_objext
7817 if { (ac_try="$ac_compile"
7819 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7820 *) ac_try_echo=$ac_try;;
7822 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7823 $as_echo "$ac_try_echo") >&5
7824 (eval "$ac_compile") 2>conftest.er1
7826 grep -v '^ *+' conftest.er1 >conftest.err
7828 cat conftest.err >&5
7829 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7830 (exit $ac_status); } && {
7831 test -z "$ac_c_werror_flag" ||
7832 test ! -s conftest.err
7833 } && test -s conftest.$ac_objext; then
7834 ac_cv_struct_tm=time.h
7836 $as_echo "$as_me: failed program was:" >&5
7837 sed 's/^/| /' conftest.$ac_ext >&5
7839 ac_cv_struct_tm=sys/time.h
7842 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7844 { $as_echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
7845 $as_echo "$ac_cv_struct_tm" >&6; }
7846 if test $ac_cv_struct_tm = sys/time.h; then
7848 cat >>confdefs.h <<\_ACEOF
7849 #define TM_IN_SYS_TIME 1
7855 # Checks for library functions.
7857 for ac_header in vfork.h
7859 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7860 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7861 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
7862 $as_echo_n "checking for $ac_header... " >&6; }
7863 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7864 $as_echo_n "(cached) " >&6
7866 ac_res=`eval 'as_val=${'$as_ac_Header'}
7867 $as_echo "$as_val"'`
7868 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7869 $as_echo "$ac_res" >&6; }
7871 # Is the header compilable?
7872 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
7873 $as_echo_n "checking $ac_header usability... " >&6; }
7874 cat >conftest.$ac_ext <<_ACEOF
7877 cat confdefs.h >>conftest.$ac_ext
7878 cat >>conftest.$ac_ext <<_ACEOF
7879 /* end confdefs.h. */
7880 $ac_includes_default
7881 #include <$ac_header>
7883 rm -f conftest.$ac_objext
7884 if { (ac_try="$ac_compile"
7886 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7887 *) ac_try_echo=$ac_try;;
7889 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7890 $as_echo "$ac_try_echo") >&5
7891 (eval "$ac_compile") 2>conftest.er1
7893 grep -v '^ *+' conftest.er1 >conftest.err
7895 cat conftest.err >&5
7896 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7897 (exit $ac_status); } && {
7898 test -z "$ac_c_werror_flag" ||
7899 test ! -s conftest.err
7900 } && test -s conftest.$ac_objext; then
7901 ac_header_compiler=yes
7903 $as_echo "$as_me: failed program was:" >&5
7904 sed 's/^/| /' conftest.$ac_ext >&5
7906 ac_header_compiler=no
7909 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7910 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7911 $as_echo "$ac_header_compiler" >&6; }
7913 # Is the header present?
7914 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
7915 $as_echo_n "checking $ac_header presence... " >&6; }
7916 cat >conftest.$ac_ext <<_ACEOF
7919 cat confdefs.h >>conftest.$ac_ext
7920 cat >>conftest.$ac_ext <<_ACEOF
7921 /* end confdefs.h. */
7922 #include <$ac_header>
7924 if { (ac_try="$ac_cpp conftest.$ac_ext"
7926 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7927 *) ac_try_echo=$ac_try;;
7929 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7930 $as_echo "$ac_try_echo") >&5
7931 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7933 grep -v '^ *+' conftest.er1 >conftest.err
7935 cat conftest.err >&5
7936 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7937 (exit $ac_status); } >/dev/null && {
7938 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7939 test ! -s conftest.err
7941 ac_header_preproc=yes
7943 $as_echo "$as_me: failed program was:" >&5
7944 sed 's/^/| /' conftest.$ac_ext >&5
7946 ac_header_preproc=no
7949 rm -f conftest.err conftest.$ac_ext
7950 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7951 $as_echo "$ac_header_preproc" >&6; }
7953 # So? What about this header?
7954 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7956 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7957 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7958 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7959 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7960 ac_header_preproc=yes
7963 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7964 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7965 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7966 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7967 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7968 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7969 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7970 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7971 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7972 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7973 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7974 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7976 ## ----------------------------------- ##
7977 ## Report this to andreas@eversberg.eu ##
7978 ## ----------------------------------- ##
7980 ) | sed "s/^/$as_me: WARNING: /" >&2
7983 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
7984 $as_echo_n "checking for $ac_header... " >&6; }
7985 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7986 $as_echo_n "(cached) " >&6
7988 eval "$as_ac_Header=\$ac_header_preproc"
7990 ac_res=`eval 'as_val=${'$as_ac_Header'}
7991 $as_echo "$as_val"'`
7992 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7993 $as_echo "$ac_res" >&6; }
7996 as_val=`eval 'as_val=${'$as_ac_Header'}
7997 $as_echo "$as_val"'`
7998 if test "x$as_val" = x""yes; then
7999 cat >>confdefs.h <<_ACEOF
8000 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8009 for ac_func in fork vfork
8011 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
8012 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
8013 $as_echo_n "checking for $ac_func... " >&6; }
8014 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
8015 $as_echo_n "(cached) " >&6
8017 cat >conftest.$ac_ext <<_ACEOF
8020 cat confdefs.h >>conftest.$ac_ext
8021 cat >>conftest.$ac_ext <<_ACEOF
8022 /* end confdefs.h. */
8023 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8024 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8025 #define $ac_func innocuous_$ac_func
8027 /* System header to define __stub macros and hopefully few prototypes,
8028 which can conflict with char $ac_func (); below.
8029 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8030 <limits.h> exists even on freestanding compilers. */
8033 # include <limits.h>
8035 # include <assert.h>
8040 /* Override any GCC internal prototype to avoid an error.
8041 Use char because int might match the return type of a GCC
8042 builtin and then its argument prototype would still apply. */
8047 /* The GNU C library defines this for functions which it implements
8048 to always fail with ENOSYS. Some functions are actually named
8049 something starting with __ and the normal name is an alias. */
8050 #if defined __stub_$ac_func || defined __stub___$ac_func
8062 rm -f conftest.$ac_objext conftest$ac_exeext
8063 if { (ac_try="$ac_link"
8065 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8066 *) ac_try_echo=$ac_try;;
8068 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8069 $as_echo "$ac_try_echo") >&5
8070 (eval "$ac_link") 2>conftest.er1
8072 grep -v '^ *+' conftest.er1 >conftest.err
8074 cat conftest.err >&5
8075 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8076 (exit $ac_status); } && {
8077 test -z "$ac_c_werror_flag" ||
8078 test ! -s conftest.err
8079 } && test -s conftest$ac_exeext && {
8080 test "$cross_compiling" = yes ||
8081 $as_test_x conftest$ac_exeext
8083 eval "$as_ac_var=yes"
8085 $as_echo "$as_me: failed program was:" >&5
8086 sed 's/^/| /' conftest.$ac_ext >&5
8088 eval "$as_ac_var=no"
8091 rm -rf conftest.dSYM
8092 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8093 conftest$ac_exeext conftest.$ac_ext
8095 ac_res=`eval 'as_val=${'$as_ac_var'}
8096 $as_echo "$as_val"'`
8097 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
8098 $as_echo "$ac_res" >&6; }
8099 as_val=`eval 'as_val=${'$as_ac_var'}
8100 $as_echo "$as_val"'`
8101 if test "x$as_val" = x""yes; then
8102 cat >>confdefs.h <<_ACEOF
8103 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
8109 if test "x$ac_cv_func_fork" = xyes; then
8110 { $as_echo "$as_me:$LINENO: checking for working fork" >&5
8111 $as_echo_n "checking for working fork... " >&6; }
8112 if test "${ac_cv_func_fork_works+set}" = set; then
8113 $as_echo_n "(cached) " >&6
8115 if test "$cross_compiling" = yes; then
8116 ac_cv_func_fork_works=cross
8118 cat >conftest.$ac_ext <<_ACEOF
8121 cat confdefs.h >>conftest.$ac_ext
8122 cat >>conftest.$ac_ext <<_ACEOF
8123 /* end confdefs.h. */
8124 $ac_includes_default
8129 /* By Ruediger Kuhlmann. */
8136 rm -f conftest$ac_exeext
8137 if { (ac_try="$ac_link"
8139 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8140 *) ac_try_echo=$ac_try;;
8142 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8143 $as_echo "$ac_try_echo") >&5
8144 (eval "$ac_link") 2>&5
8146 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8147 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8148 { (case "(($ac_try" in
8149 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8150 *) ac_try_echo=$ac_try;;
8152 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8153 $as_echo "$ac_try_echo") >&5
8154 (eval "$ac_try") 2>&5
8156 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8157 (exit $ac_status); }; }; then
8158 ac_cv_func_fork_works=yes
8160 $as_echo "$as_me: program exited with status $ac_status" >&5
8161 $as_echo "$as_me: failed program was:" >&5
8162 sed 's/^/| /' conftest.$ac_ext >&5
8165 ac_cv_func_fork_works=no
8167 rm -rf conftest.dSYM
8168 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8173 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
8174 $as_echo "$ac_cv_func_fork_works" >&6; }
8177 ac_cv_func_fork_works=$ac_cv_func_fork
8179 if test "x$ac_cv_func_fork_works" = xcross; then
8181 *-*-amigaos* | *-*-msdosdjgpp*)
8182 # Override, as these systems have only a dummy fork() stub
8183 ac_cv_func_fork_works=no
8186 ac_cv_func_fork_works=yes
8189 { $as_echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
8190 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
8192 ac_cv_func_vfork_works=$ac_cv_func_vfork
8193 if test "x$ac_cv_func_vfork" = xyes; then
8194 { $as_echo "$as_me:$LINENO: checking for working vfork" >&5
8195 $as_echo_n "checking for working vfork... " >&6; }
8196 if test "${ac_cv_func_vfork_works+set}" = set; then
8197 $as_echo_n "(cached) " >&6
8199 if test "$cross_compiling" = yes; then
8200 ac_cv_func_vfork_works=cross
8202 cat >conftest.$ac_ext <<_ACEOF
8205 cat confdefs.h >>conftest.$ac_ext
8206 cat >>conftest.$ac_ext <<_ACEOF
8207 /* end confdefs.h. */
8208 /* Thanks to Paul Eggert for this test. */
8209 $ac_includes_default
8210 #include <sys/wait.h>
8214 /* On some sparc systems, changes by the child to local and incoming
8215 argument registers are propagated back to the parent. The compiler
8216 is told about this with #include <vfork.h>, but some compilers
8217 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
8218 static variable whose address is put into a register that is
8219 clobbered by the vfork. */
8222 sparc_address_test (int arg)
8224 sparc_address_test (arg) int arg;
8245 pid_t parent = getpid ();
8248 sparc_address_test (0);
8253 /* Here is another test for sparc vfork register problems. This
8254 test uses lots of local variables, at least as many local
8255 variables as main has allocated so far including compiler
8256 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
8257 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
8258 reuse the register of parent for one of the local variables,
8259 since it will think that parent can't possibly be used any more
8260 in this routine. Assigning to the local variable will thus
8261 munge parent in the parent process. */
8263 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
8264 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
8265 /* Convince the compiler that p..p7 are live; otherwise, it might
8266 use the same hardware register for all 8 local variables. */
8267 if (p != p1 || p != p2 || p != p3 || p != p4
8268 || p != p5 || p != p6 || p != p7)
8271 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
8272 from child file descriptors. If the child closes a descriptor
8273 before it execs or exits, this munges the parent's descriptor
8274 as well. Test for this by closing stdout in the child. */
8275 _exit(close(fileno(stdout)) != 0);
8280 while (wait(&status) != child)
8283 /* Was there some problem with vforking? */
8286 /* Did the child fail? (This shouldn't happen.) */
8289 /* Did the vfork/compiler bug occur? */
8290 || parent != getpid()
8292 /* Did the file descriptor bug occur? */
8293 || fstat(fileno(stdout), &st) != 0
8298 rm -f conftest$ac_exeext
8299 if { (ac_try="$ac_link"
8301 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8302 *) ac_try_echo=$ac_try;;
8304 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8305 $as_echo "$ac_try_echo") >&5
8306 (eval "$ac_link") 2>&5
8308 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8309 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8310 { (case "(($ac_try" in
8311 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8312 *) ac_try_echo=$ac_try;;
8314 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8315 $as_echo "$ac_try_echo") >&5
8316 (eval "$ac_try") 2>&5
8318 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8319 (exit $ac_status); }; }; then
8320 ac_cv_func_vfork_works=yes
8322 $as_echo "$as_me: program exited with status $ac_status" >&5
8323 $as_echo "$as_me: failed program was:" >&5
8324 sed 's/^/| /' conftest.$ac_ext >&5
8327 ac_cv_func_vfork_works=no
8329 rm -rf conftest.dSYM
8330 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8335 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
8336 $as_echo "$ac_cv_func_vfork_works" >&6; }
8339 if test "x$ac_cv_func_fork_works" = xcross; then
8340 ac_cv_func_vfork_works=$ac_cv_func_vfork
8341 { $as_echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
8342 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
8345 if test "x$ac_cv_func_vfork_works" = xyes; then
8347 cat >>confdefs.h <<\_ACEOF
8348 #define HAVE_WORKING_VFORK 1
8353 cat >>confdefs.h <<\_ACEOF
8358 if test "x$ac_cv_func_fork_works" = xyes; then
8360 cat >>confdefs.h <<\_ACEOF
8361 #define HAVE_WORKING_FORK 1
8366 if test $ac_cv_c_compiler_gnu = yes; then
8367 { $as_echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
8368 $as_echo_n "checking whether $CC needs -traditional... " >&6; }
8369 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
8370 $as_echo_n "(cached) " >&6
8372 ac_pattern="Autoconf.*'x'"
8373 cat >conftest.$ac_ext <<_ACEOF
8376 cat confdefs.h >>conftest.$ac_ext
8377 cat >>conftest.$ac_ext <<_ACEOF
8378 /* end confdefs.h. */
8382 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8383 $EGREP "$ac_pattern" >/dev/null 2>&1; then
8384 ac_cv_prog_gcc_traditional=yes
8386 ac_cv_prog_gcc_traditional=no
8391 if test $ac_cv_prog_gcc_traditional = no; then
8392 cat >conftest.$ac_ext <<_ACEOF
8395 cat confdefs.h >>conftest.$ac_ext
8396 cat >>conftest.$ac_ext <<_ACEOF
8397 /* end confdefs.h. */
8401 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8402 $EGREP "$ac_pattern" >/dev/null 2>&1; then
8403 ac_cv_prog_gcc_traditional=yes
8409 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
8410 $as_echo "$ac_cv_prog_gcc_traditional" >&6; }
8411 if test $ac_cv_prog_gcc_traditional = yes; then
8412 CC="$CC -traditional"
8416 { $as_echo "$as_me:$LINENO: checking whether lstat dereferences a symlink specified with a trailing slash" >&5
8417 $as_echo_n "checking whether lstat dereferences a symlink specified with a trailing slash... " >&6; }
8418 if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then
8419 $as_echo_n "(cached) " >&6
8421 rm -f conftest.sym conftest.file
8423 if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
8424 if test "$cross_compiling" = yes; then
8425 ac_cv_func_lstat_dereferences_slashed_symlink=no
8427 cat >conftest.$ac_ext <<_ACEOF
8430 cat confdefs.h >>conftest.$ac_ext
8431 cat >>conftest.$ac_ext <<_ACEOF
8432 /* end confdefs.h. */
8433 $ac_includes_default
8438 /* Linux will dereference the symlink and fail.
8439 That is better in the sense that it means we will not
8440 have to compile and use the lstat wrapper. */
8441 return lstat ("conftest.sym/", &sbuf) == 0;
8446 rm -f conftest$ac_exeext
8447 if { (ac_try="$ac_link"
8449 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8450 *) ac_try_echo=$ac_try;;
8452 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8453 $as_echo "$ac_try_echo") >&5
8454 (eval "$ac_link") 2>&5
8456 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8457 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8458 { (case "(($ac_try" in
8459 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8460 *) ac_try_echo=$ac_try;;
8462 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8463 $as_echo "$ac_try_echo") >&5
8464 (eval "$ac_try") 2>&5
8466 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8467 (exit $ac_status); }; }; then
8468 ac_cv_func_lstat_dereferences_slashed_symlink=yes
8470 $as_echo "$as_me: program exited with status $ac_status" >&5
8471 $as_echo "$as_me: failed program was:" >&5
8472 sed 's/^/| /' conftest.$ac_ext >&5
8475 ac_cv_func_lstat_dereferences_slashed_symlink=no
8477 rm -rf conftest.dSYM
8478 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8483 # If the `ln -s' command failed, then we probably don't even
8484 # have an lstat function.
8485 ac_cv_func_lstat_dereferences_slashed_symlink=no
8487 rm -f conftest.sym conftest.file
8490 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
8491 $as_echo "$ac_cv_func_lstat_dereferences_slashed_symlink" >&6; }
8493 test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
8495 cat >>confdefs.h <<_ACEOF
8496 #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
8500 if test $ac_cv_func_lstat_dereferences_slashed_symlink = no; then
8501 case " $LIBOBJS " in
8502 *" lstat.$ac_objext "* ) ;;
8503 *) LIBOBJS="$LIBOBJS lstat.$ac_objext"
8509 { $as_echo "$as_me:$LINENO: checking whether lstat accepts an empty string" >&5
8510 $as_echo_n "checking whether lstat accepts an empty string... " >&6; }
8511 if test "${ac_cv_func_lstat_empty_string_bug+set}" = set; then
8512 $as_echo_n "(cached) " >&6
8514 if test "$cross_compiling" = yes; then
8515 ac_cv_func_lstat_empty_string_bug=yes
8517 cat >conftest.$ac_ext <<_ACEOF
8520 cat confdefs.h >>conftest.$ac_ext
8521 cat >>conftest.$ac_ext <<_ACEOF
8522 /* end confdefs.h. */
8523 $ac_includes_default
8528 return lstat ("", &sbuf) == 0;
8533 rm -f conftest$ac_exeext
8534 if { (ac_try="$ac_link"
8536 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8537 *) ac_try_echo=$ac_try;;
8539 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8540 $as_echo "$ac_try_echo") >&5
8541 (eval "$ac_link") 2>&5
8543 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8544 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8545 { (case "(($ac_try" in
8546 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8547 *) ac_try_echo=$ac_try;;
8549 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8550 $as_echo "$ac_try_echo") >&5
8551 (eval "$ac_try") 2>&5
8553 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8554 (exit $ac_status); }; }; then
8555 ac_cv_func_lstat_empty_string_bug=no
8557 $as_echo "$as_me: program exited with status $ac_status" >&5
8558 $as_echo "$as_me: failed program was:" >&5
8559 sed 's/^/| /' conftest.$ac_ext >&5
8562 ac_cv_func_lstat_empty_string_bug=yes
8564 rm -rf conftest.dSYM
8565 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8570 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_lstat_empty_string_bug" >&5
8571 $as_echo "$ac_cv_func_lstat_empty_string_bug" >&6; }
8572 if test $ac_cv_func_lstat_empty_string_bug = yes; then
8573 case " $LIBOBJS " in
8574 *" lstat.$ac_objext "* ) ;;
8575 *) LIBOBJS="$LIBOBJS lstat.$ac_objext"
8580 cat >>confdefs.h <<_ACEOF
8581 #define HAVE_LSTAT_EMPTY_STRING_BUG 1
8586 { $as_echo "$as_me:$LINENO: checking whether lstat dereferences a symlink specified with a trailing slash" >&5
8587 $as_echo_n "checking whether lstat dereferences a symlink specified with a trailing slash... " >&6; }
8588 if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then
8589 $as_echo_n "(cached) " >&6
8591 rm -f conftest.sym conftest.file
8593 if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
8594 if test "$cross_compiling" = yes; then
8595 ac_cv_func_lstat_dereferences_slashed_symlink=no
8597 cat >conftest.$ac_ext <<_ACEOF
8600 cat confdefs.h >>conftest.$ac_ext
8601 cat >>conftest.$ac_ext <<_ACEOF
8602 /* end confdefs.h. */
8603 $ac_includes_default
8608 /* Linux will dereference the symlink and fail.
8609 That is better in the sense that it means we will not
8610 have to compile and use the lstat wrapper. */
8611 return lstat ("conftest.sym/", &sbuf) == 0;
8616 rm -f conftest$ac_exeext
8617 if { (ac_try="$ac_link"
8619 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8620 *) ac_try_echo=$ac_try;;
8622 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8623 $as_echo "$ac_try_echo") >&5
8624 (eval "$ac_link") 2>&5
8626 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8627 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8628 { (case "(($ac_try" in
8629 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8630 *) ac_try_echo=$ac_try;;
8632 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8633 $as_echo "$ac_try_echo") >&5
8634 (eval "$ac_try") 2>&5
8636 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8637 (exit $ac_status); }; }; then
8638 ac_cv_func_lstat_dereferences_slashed_symlink=yes
8640 $as_echo "$as_me: program exited with status $ac_status" >&5
8641 $as_echo "$as_me: failed program was:" >&5
8642 sed 's/^/| /' conftest.$ac_ext >&5
8645 ac_cv_func_lstat_dereferences_slashed_symlink=no
8647 rm -rf conftest.dSYM
8648 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8653 # If the `ln -s' command failed, then we probably don't even
8654 # have an lstat function.
8655 ac_cv_func_lstat_dereferences_slashed_symlink=no
8657 rm -f conftest.sym conftest.file
8660 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
8661 $as_echo "$ac_cv_func_lstat_dereferences_slashed_symlink" >&6; }
8663 test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
8665 cat >>confdefs.h <<_ACEOF
8666 #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
8670 if test $ac_cv_func_lstat_dereferences_slashed_symlink = no; then
8671 case " $LIBOBJS " in
8672 *" lstat.$ac_objext "* ) ;;
8673 *) LIBOBJS="$LIBOBJS lstat.$ac_objext"
8680 for ac_header in stdlib.h
8682 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8683 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8684 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
8685 $as_echo_n "checking for $ac_header... " >&6; }
8686 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8687 $as_echo_n "(cached) " >&6
8689 ac_res=`eval 'as_val=${'$as_ac_Header'}
8690 $as_echo "$as_val"'`
8691 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
8692 $as_echo "$ac_res" >&6; }
8694 # Is the header compilable?
8695 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
8696 $as_echo_n "checking $ac_header usability... " >&6; }
8697 cat >conftest.$ac_ext <<_ACEOF
8700 cat confdefs.h >>conftest.$ac_ext
8701 cat >>conftest.$ac_ext <<_ACEOF
8702 /* end confdefs.h. */
8703 $ac_includes_default
8704 #include <$ac_header>
8706 rm -f conftest.$ac_objext
8707 if { (ac_try="$ac_compile"
8709 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8710 *) ac_try_echo=$ac_try;;
8712 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8713 $as_echo "$ac_try_echo") >&5
8714 (eval "$ac_compile") 2>conftest.er1
8716 grep -v '^ *+' conftest.er1 >conftest.err
8718 cat conftest.err >&5
8719 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8720 (exit $ac_status); } && {
8721 test -z "$ac_c_werror_flag" ||
8722 test ! -s conftest.err
8723 } && test -s conftest.$ac_objext; then
8724 ac_header_compiler=yes
8726 $as_echo "$as_me: failed program was:" >&5
8727 sed 's/^/| /' conftest.$ac_ext >&5
8729 ac_header_compiler=no
8732 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8733 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8734 $as_echo "$ac_header_compiler" >&6; }
8736 # Is the header present?
8737 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
8738 $as_echo_n "checking $ac_header presence... " >&6; }
8739 cat >conftest.$ac_ext <<_ACEOF
8742 cat confdefs.h >>conftest.$ac_ext
8743 cat >>conftest.$ac_ext <<_ACEOF
8744 /* end confdefs.h. */
8745 #include <$ac_header>
8747 if { (ac_try="$ac_cpp conftest.$ac_ext"
8749 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8750 *) ac_try_echo=$ac_try;;
8752 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8753 $as_echo "$ac_try_echo") >&5
8754 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8756 grep -v '^ *+' conftest.er1 >conftest.err
8758 cat conftest.err >&5
8759 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8760 (exit $ac_status); } >/dev/null && {
8761 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
8762 test ! -s conftest.err
8764 ac_header_preproc=yes
8766 $as_echo "$as_me: failed program was:" >&5
8767 sed 's/^/| /' conftest.$ac_ext >&5
8769 ac_header_preproc=no
8772 rm -f conftest.err conftest.$ac_ext
8773 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8774 $as_echo "$ac_header_preproc" >&6; }
8776 # So? What about this header?
8777 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8779 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8780 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8781 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8782 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8783 ac_header_preproc=yes
8786 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8787 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8788 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8789 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8790 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8791 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8792 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8793 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8794 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8795 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8796 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8797 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8799 ## ----------------------------------- ##
8800 ## Report this to andreas@eversberg.eu ##
8801 ## ----------------------------------- ##
8803 ) | sed "s/^/$as_me: WARNING: /" >&2
8806 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
8807 $as_echo_n "checking for $ac_header... " >&6; }
8808 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8809 $as_echo_n "(cached) " >&6
8811 eval "$as_ac_Header=\$ac_header_preproc"
8813 ac_res=`eval 'as_val=${'$as_ac_Header'}
8814 $as_echo "$as_val"'`
8815 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
8816 $as_echo "$ac_res" >&6; }
8819 as_val=`eval 'as_val=${'$as_ac_Header'}
8820 $as_echo "$as_val"'`
8821 if test "x$as_val" = x""yes; then
8822 cat >>confdefs.h <<_ACEOF
8823 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8830 { $as_echo "$as_me:$LINENO: checking for GNU libc compatible malloc" >&5
8831 $as_echo_n "checking for GNU libc compatible malloc... " >&6; }
8832 if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then
8833 $as_echo_n "(cached) " >&6
8835 if test "$cross_compiling" = yes; then
8836 ac_cv_func_malloc_0_nonnull=no
8838 cat >conftest.$ac_ext <<_ACEOF
8841 cat confdefs.h >>conftest.$ac_ext
8842 cat >>conftest.$ac_ext <<_ACEOF
8843 /* end confdefs.h. */
8844 #if defined STDC_HEADERS || defined HAVE_STDLIB_H
8845 # include <stdlib.h>
8853 return ! malloc (0);
8858 rm -f conftest$ac_exeext
8859 if { (ac_try="$ac_link"
8861 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8862 *) ac_try_echo=$ac_try;;
8864 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8865 $as_echo "$ac_try_echo") >&5
8866 (eval "$ac_link") 2>&5
8868 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8869 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8870 { (case "(($ac_try" in
8871 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8872 *) ac_try_echo=$ac_try;;
8874 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8875 $as_echo "$ac_try_echo") >&5
8876 (eval "$ac_try") 2>&5
8878 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8879 (exit $ac_status); }; }; then
8880 ac_cv_func_malloc_0_nonnull=yes
8882 $as_echo "$as_me: program exited with status $ac_status" >&5
8883 $as_echo "$as_me: failed program was:" >&5
8884 sed 's/^/| /' conftest.$ac_ext >&5
8887 ac_cv_func_malloc_0_nonnull=no
8889 rm -rf conftest.dSYM
8890 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8895 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_malloc_0_nonnull" >&5
8896 $as_echo "$ac_cv_func_malloc_0_nonnull" >&6; }
8897 if test $ac_cv_func_malloc_0_nonnull = yes; then
8899 cat >>confdefs.h <<\_ACEOF
8900 #define HAVE_MALLOC 1
8904 cat >>confdefs.h <<\_ACEOF
8905 #define HAVE_MALLOC 0
8908 case " $LIBOBJS " in
8909 *" malloc.$ac_objext "* ) ;;
8910 *) LIBOBJS="$LIBOBJS malloc.$ac_objext"
8915 cat >>confdefs.h <<\_ACEOF
8916 #define malloc rpl_malloc
8923 { $as_echo "$as_me:$LINENO: checking for working memcmp" >&5
8924 $as_echo_n "checking for working memcmp... " >&6; }
8925 if test "${ac_cv_func_memcmp_working+set}" = set; then
8926 $as_echo_n "(cached) " >&6
8928 if test "$cross_compiling" = yes; then
8929 ac_cv_func_memcmp_working=no
8931 cat >conftest.$ac_ext <<_ACEOF
8934 cat confdefs.h >>conftest.$ac_ext
8935 cat >>conftest.$ac_ext <<_ACEOF
8936 /* end confdefs.h. */
8937 $ac_includes_default
8942 /* Some versions of memcmp are not 8-bit clean. */
8943 char c0 = '\100', c1 = '\200', c2 = '\201';
8944 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
8947 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
8948 or more and with at least one buffer not starting on a 4-byte boundary.
8949 William Lewis provided this test program. */
8954 for (i = 0; i < 4; i++)
8958 strcpy (a, "--------01111111");
8959 strcpy (b, "--------10000000");
8960 if (memcmp (a, b, 16) >= 0)
8970 rm -f conftest$ac_exeext
8971 if { (ac_try="$ac_link"
8973 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8974 *) ac_try_echo=$ac_try;;
8976 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8977 $as_echo "$ac_try_echo") >&5
8978 (eval "$ac_link") 2>&5
8980 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8981 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8982 { (case "(($ac_try" in
8983 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8984 *) ac_try_echo=$ac_try;;
8986 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8987 $as_echo "$ac_try_echo") >&5
8988 (eval "$ac_try") 2>&5
8990 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8991 (exit $ac_status); }; }; then
8992 ac_cv_func_memcmp_working=yes
8994 $as_echo "$as_me: program exited with status $ac_status" >&5
8995 $as_echo "$as_me: failed program was:" >&5
8996 sed 's/^/| /' conftest.$ac_ext >&5
8999 ac_cv_func_memcmp_working=no
9001 rm -rf conftest.dSYM
9002 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9007 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
9008 $as_echo "$ac_cv_func_memcmp_working" >&6; }
9009 test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
9010 *" memcmp.$ac_objext "* ) ;;
9011 *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
9016 { $as_echo "$as_me:$LINENO: checking return type of signal handlers" >&5
9017 $as_echo_n "checking return type of signal handlers... " >&6; }
9018 if test "${ac_cv_type_signal+set}" = set; then
9019 $as_echo_n "(cached) " >&6
9021 cat >conftest.$ac_ext <<_ACEOF
9024 cat confdefs.h >>conftest.$ac_ext
9025 cat >>conftest.$ac_ext <<_ACEOF
9026 /* end confdefs.h. */
9027 #include <sys/types.h>
9033 return *(signal (0, 0)) (0) == 1;
9038 rm -f conftest.$ac_objext
9039 if { (ac_try="$ac_compile"
9041 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9042 *) ac_try_echo=$ac_try;;
9044 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9045 $as_echo "$ac_try_echo") >&5
9046 (eval "$ac_compile") 2>conftest.er1
9048 grep -v '^ *+' conftest.er1 >conftest.err
9050 cat conftest.err >&5
9051 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9052 (exit $ac_status); } && {
9053 test -z "$ac_c_werror_flag" ||
9054 test ! -s conftest.err
9055 } && test -s conftest.$ac_objext; then
9056 ac_cv_type_signal=int
9058 $as_echo "$as_me: failed program was:" >&5
9059 sed 's/^/| /' conftest.$ac_ext >&5
9061 ac_cv_type_signal=void
9064 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9066 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
9067 $as_echo "$ac_cv_type_signal" >&6; }
9069 cat >>confdefs.h <<_ACEOF
9070 #define RETSIGTYPE $ac_cv_type_signal
9074 { $as_echo "$as_me:$LINENO: checking for working strnlen" >&5
9075 $as_echo_n "checking for working strnlen... " >&6; }
9076 if test "${ac_cv_func_strnlen_working+set}" = set; then
9077 $as_echo_n "(cached) " >&6
9079 if test "$cross_compiling" = yes; then
9080 ac_cv_func_strnlen_working=no
9082 cat >conftest.$ac_ext <<_ACEOF
9085 cat confdefs.h >>conftest.$ac_ext
9086 cat >>conftest.$ac_ext <<_ACEOF
9087 /* end confdefs.h. */
9088 $ac_includes_default
9094 #define S_LEN (sizeof S - 1)
9096 /* At least one implementation is buggy: that of AIX 4.3 would
9097 give strnlen (S, 1) == 3. */
9100 for (i = 0; i < S_LEN + 1; ++i)
9102 int expected = i <= S_LEN ? i : S_LEN;
9103 if (strnlen (S, i) != expected)
9112 rm -f conftest$ac_exeext
9113 if { (ac_try="$ac_link"
9115 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9116 *) ac_try_echo=$ac_try;;
9118 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9119 $as_echo "$ac_try_echo") >&5
9120 (eval "$ac_link") 2>&5
9122 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9123 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9124 { (case "(($ac_try" in
9125 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9126 *) ac_try_echo=$ac_try;;
9128 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9129 $as_echo "$ac_try_echo") >&5
9130 (eval "$ac_try") 2>&5
9132 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9133 (exit $ac_status); }; }; then
9134 ac_cv_func_strnlen_working=yes
9136 $as_echo "$as_me: program exited with status $ac_status" >&5
9137 $as_echo "$as_me: failed program was:" >&5
9138 sed 's/^/| /' conftest.$ac_ext >&5
9141 ac_cv_func_strnlen_working=no
9143 rm -rf conftest.dSYM
9144 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9149 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_strnlen_working" >&5
9150 $as_echo "$ac_cv_func_strnlen_working" >&6; }
9151 test $ac_cv_func_strnlen_working = no && case " $LIBOBJS " in
9152 *" strnlen.$ac_objext "* ) ;;
9153 *) LIBOBJS="$LIBOBJS strnlen.$ac_objext"
9158 { $as_echo "$as_me:$LINENO: checking for working strtod" >&5
9159 $as_echo_n "checking for working strtod... " >&6; }
9160 if test "${ac_cv_func_strtod+set}" = set; then
9161 $as_echo_n "(cached) " >&6
9163 if test "$cross_compiling" = yes; then
9164 ac_cv_func_strtod=no
9166 cat >conftest.$ac_ext <<_ACEOF
9169 cat confdefs.h >>conftest.$ac_ext
9170 cat >>conftest.$ac_ext <<_ACEOF
9171 /* end confdefs.h. */
9173 $ac_includes_default
9181 /* Some versions of Linux strtod mis-parse strings with leading '+'. */
9182 char *string = " +69";
9185 value = strtod (string, &term);
9186 if (value != 69 || term != (string + 4))
9191 /* Under Solaris 2.4, strtod returns the wrong value for the
9192 terminating character under some conditions. */
9193 char *string = "NaN";
9195 strtod (string, &term);
9196 if (term != string && *(term - 1) == 0)
9203 rm -f conftest$ac_exeext
9204 if { (ac_try="$ac_link"
9206 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9207 *) ac_try_echo=$ac_try;;
9209 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9210 $as_echo "$ac_try_echo") >&5
9211 (eval "$ac_link") 2>&5
9213 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9214 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9215 { (case "(($ac_try" in
9216 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9217 *) ac_try_echo=$ac_try;;
9219 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9220 $as_echo "$ac_try_echo") >&5
9221 (eval "$ac_try") 2>&5
9223 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9224 (exit $ac_status); }; }; then
9225 ac_cv_func_strtod=yes
9227 $as_echo "$as_me: program exited with status $ac_status" >&5
9228 $as_echo "$as_me: failed program was:" >&5
9229 sed 's/^/| /' conftest.$ac_ext >&5
9232 ac_cv_func_strtod=no
9234 rm -rf conftest.dSYM
9235 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9240 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_strtod" >&5
9241 $as_echo "$ac_cv_func_strtod" >&6; }
9242 if test $ac_cv_func_strtod = no; then
9243 case " $LIBOBJS " in
9244 *" strtod.$ac_objext "* ) ;;
9245 *) LIBOBJS="$LIBOBJS strtod.$ac_objext"
9249 { $as_echo "$as_me:$LINENO: checking for pow" >&5
9250 $as_echo_n "checking for pow... " >&6; }
9251 if test "${ac_cv_func_pow+set}" = set; then
9252 $as_echo_n "(cached) " >&6
9254 cat >conftest.$ac_ext <<_ACEOF
9257 cat confdefs.h >>conftest.$ac_ext
9258 cat >>conftest.$ac_ext <<_ACEOF
9259 /* end confdefs.h. */
9260 /* Define pow to an innocuous variant, in case <limits.h> declares pow.
9261 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9262 #define pow innocuous_pow
9264 /* System header to define __stub macros and hopefully few prototypes,
9265 which can conflict with char pow (); below.
9266 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9267 <limits.h> exists even on freestanding compilers. */
9270 # include <limits.h>
9272 # include <assert.h>
9277 /* Override any GCC internal prototype to avoid an error.
9278 Use char because int might match the return type of a GCC
9279 builtin and then its argument prototype would still apply. */
9284 /* The GNU C library defines this for functions which it implements
9285 to always fail with ENOSYS. Some functions are actually named
9286 something starting with __ and the normal name is an alias. */
9287 #if defined __stub_pow || defined __stub___pow
9299 rm -f conftest.$ac_objext conftest$ac_exeext
9300 if { (ac_try="$ac_link"
9302 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9303 *) ac_try_echo=$ac_try;;
9305 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9306 $as_echo "$ac_try_echo") >&5
9307 (eval "$ac_link") 2>conftest.er1
9309 grep -v '^ *+' conftest.er1 >conftest.err
9311 cat conftest.err >&5
9312 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9313 (exit $ac_status); } && {
9314 test -z "$ac_c_werror_flag" ||
9315 test ! -s conftest.err
9316 } && test -s conftest$ac_exeext && {
9317 test "$cross_compiling" = yes ||
9318 $as_test_x conftest$ac_exeext
9322 $as_echo "$as_me: failed program was:" >&5
9323 sed 's/^/| /' conftest.$ac_ext >&5
9328 rm -rf conftest.dSYM
9329 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9330 conftest$ac_exeext conftest.$ac_ext
9332 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_pow" >&5
9333 $as_echo "$ac_cv_func_pow" >&6; }
9335 if test $ac_cv_func_pow = no; then
9336 { $as_echo "$as_me:$LINENO: checking for pow in -lm" >&5
9337 $as_echo_n "checking for pow in -lm... " >&6; }
9338 if test "${ac_cv_lib_m_pow+set}" = set; then
9339 $as_echo_n "(cached) " >&6
9341 ac_check_lib_save_LIBS=$LIBS
9343 cat >conftest.$ac_ext <<_ACEOF
9346 cat confdefs.h >>conftest.$ac_ext
9347 cat >>conftest.$ac_ext <<_ACEOF
9348 /* end confdefs.h. */
9350 /* Override any GCC internal prototype to avoid an error.
9351 Use char because int might match the return type of a GCC
9352 builtin and then its argument prototype would still apply. */
9365 rm -f conftest.$ac_objext conftest$ac_exeext
9366 if { (ac_try="$ac_link"
9368 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9369 *) ac_try_echo=$ac_try;;
9371 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9372 $as_echo "$ac_try_echo") >&5
9373 (eval "$ac_link") 2>conftest.er1
9375 grep -v '^ *+' conftest.er1 >conftest.err
9377 cat conftest.err >&5
9378 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9379 (exit $ac_status); } && {
9380 test -z "$ac_c_werror_flag" ||
9381 test ! -s conftest.err
9382 } && test -s conftest$ac_exeext && {
9383 test "$cross_compiling" = yes ||
9384 $as_test_x conftest$ac_exeext
9388 $as_echo "$as_me: failed program was:" >&5
9389 sed 's/^/| /' conftest.$ac_ext >&5
9394 rm -rf conftest.dSYM
9395 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9396 conftest$ac_exeext conftest.$ac_ext
9397 LIBS=$ac_check_lib_save_LIBS
9399 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_m_pow" >&5
9400 $as_echo "$ac_cv_lib_m_pow" >&6; }
9401 if test "x$ac_cv_lib_m_pow" = x""yes; then
9404 { $as_echo "$as_me:$LINENO: WARNING: cannot find library containing definition of pow" >&5
9405 $as_echo "$as_me: WARNING: cannot find library containing definition of pow" >&2;}
9413 for ac_func in vprintf
9415 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9416 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
9417 $as_echo_n "checking for $ac_func... " >&6; }
9418 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
9419 $as_echo_n "(cached) " >&6
9421 cat >conftest.$ac_ext <<_ACEOF
9424 cat confdefs.h >>conftest.$ac_ext
9425 cat >>conftest.$ac_ext <<_ACEOF
9426 /* end confdefs.h. */
9427 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9428 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9429 #define $ac_func innocuous_$ac_func
9431 /* System header to define __stub macros and hopefully few prototypes,
9432 which can conflict with char $ac_func (); below.
9433 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9434 <limits.h> exists even on freestanding compilers. */
9437 # include <limits.h>
9439 # include <assert.h>
9444 /* Override any GCC internal prototype to avoid an error.
9445 Use char because int might match the return type of a GCC
9446 builtin and then its argument prototype would still apply. */
9451 /* The GNU C library defines this for functions which it implements
9452 to always fail with ENOSYS. Some functions are actually named
9453 something starting with __ and the normal name is an alias. */
9454 #if defined __stub_$ac_func || defined __stub___$ac_func
9466 rm -f conftest.$ac_objext conftest$ac_exeext
9467 if { (ac_try="$ac_link"
9469 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9470 *) ac_try_echo=$ac_try;;
9472 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9473 $as_echo "$ac_try_echo") >&5
9474 (eval "$ac_link") 2>conftest.er1
9476 grep -v '^ *+' conftest.er1 >conftest.err
9478 cat conftest.err >&5
9479 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9480 (exit $ac_status); } && {
9481 test -z "$ac_c_werror_flag" ||
9482 test ! -s conftest.err
9483 } && test -s conftest$ac_exeext && {
9484 test "$cross_compiling" = yes ||
9485 $as_test_x conftest$ac_exeext
9487 eval "$as_ac_var=yes"
9489 $as_echo "$as_me: failed program was:" >&5
9490 sed 's/^/| /' conftest.$ac_ext >&5
9492 eval "$as_ac_var=no"
9495 rm -rf conftest.dSYM
9496 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9497 conftest$ac_exeext conftest.$ac_ext
9499 ac_res=`eval 'as_val=${'$as_ac_var'}
9500 $as_echo "$as_val"'`
9501 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
9502 $as_echo "$ac_res" >&6; }
9503 as_val=`eval 'as_val=${'$as_ac_var'}
9504 $as_echo "$as_val"'`
9505 if test "x$as_val" = x""yes; then
9506 cat >>confdefs.h <<_ACEOF
9507 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9510 { $as_echo "$as_me:$LINENO: checking for _doprnt" >&5
9511 $as_echo_n "checking for _doprnt... " >&6; }
9512 if test "${ac_cv_func__doprnt+set}" = set; then
9513 $as_echo_n "(cached) " >&6
9515 cat >conftest.$ac_ext <<_ACEOF
9518 cat confdefs.h >>conftest.$ac_ext
9519 cat >>conftest.$ac_ext <<_ACEOF
9520 /* end confdefs.h. */
9521 /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
9522 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9523 #define _doprnt innocuous__doprnt
9525 /* System header to define __stub macros and hopefully few prototypes,
9526 which can conflict with char _doprnt (); below.
9527 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9528 <limits.h> exists even on freestanding compilers. */
9531 # include <limits.h>
9533 # include <assert.h>
9538 /* Override any GCC internal prototype to avoid an error.
9539 Use char because int might match the return type of a GCC
9540 builtin and then its argument prototype would still apply. */
9545 /* The GNU C library defines this for functions which it implements
9546 to always fail with ENOSYS. Some functions are actually named
9547 something starting with __ and the normal name is an alias. */
9548 #if defined __stub__doprnt || defined __stub____doprnt
9560 rm -f conftest.$ac_objext conftest$ac_exeext
9561 if { (ac_try="$ac_link"
9563 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9564 *) ac_try_echo=$ac_try;;
9566 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9567 $as_echo "$ac_try_echo") >&5
9568 (eval "$ac_link") 2>conftest.er1
9570 grep -v '^ *+' conftest.er1 >conftest.err
9572 cat conftest.err >&5
9573 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9574 (exit $ac_status); } && {
9575 test -z "$ac_c_werror_flag" ||
9576 test ! -s conftest.err
9577 } && test -s conftest$ac_exeext && {
9578 test "$cross_compiling" = yes ||
9579 $as_test_x conftest$ac_exeext
9581 ac_cv_func__doprnt=yes
9583 $as_echo "$as_me: failed program was:" >&5
9584 sed 's/^/| /' conftest.$ac_ext >&5
9586 ac_cv_func__doprnt=no
9589 rm -rf conftest.dSYM
9590 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9591 conftest$ac_exeext conftest.$ac_ext
9593 { $as_echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
9594 $as_echo "$ac_cv_func__doprnt" >&6; }
9595 if test "x$ac_cv_func__doprnt" = x""yes; then
9597 cat >>confdefs.h <<\_ACEOF
9598 #define HAVE_DOPRNT 1
9619 for ac_func in gettimeofday memmove memset mkdir socket strcasecmp strchr strerror strncasecmp strstr strtol strtoul
9621 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9622 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
9623 $as_echo_n "checking for $ac_func... " >&6; }
9624 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
9625 $as_echo_n "(cached) " >&6
9627 cat >conftest.$ac_ext <<_ACEOF
9630 cat confdefs.h >>conftest.$ac_ext
9631 cat >>conftest.$ac_ext <<_ACEOF
9632 /* end confdefs.h. */
9633 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9634 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9635 #define $ac_func innocuous_$ac_func
9637 /* System header to define __stub macros and hopefully few prototypes,
9638 which can conflict with char $ac_func (); below.
9639 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9640 <limits.h> exists even on freestanding compilers. */
9643 # include <limits.h>
9645 # include <assert.h>
9650 /* Override any GCC internal prototype to avoid an error.
9651 Use char because int might match the return type of a GCC
9652 builtin and then its argument prototype would still apply. */
9657 /* The GNU C library defines this for functions which it implements
9658 to always fail with ENOSYS. Some functions are actually named
9659 something starting with __ and the normal name is an alias. */
9660 #if defined __stub_$ac_func || defined __stub___$ac_func
9672 rm -f conftest.$ac_objext conftest$ac_exeext
9673 if { (ac_try="$ac_link"
9675 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9676 *) ac_try_echo=$ac_try;;
9678 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9679 $as_echo "$ac_try_echo") >&5
9680 (eval "$ac_link") 2>conftest.er1
9682 grep -v '^ *+' conftest.er1 >conftest.err
9684 cat conftest.err >&5
9685 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9686 (exit $ac_status); } && {
9687 test -z "$ac_c_werror_flag" ||
9688 test ! -s conftest.err
9689 } && test -s conftest$ac_exeext && {
9690 test "$cross_compiling" = yes ||
9691 $as_test_x conftest$ac_exeext
9693 eval "$as_ac_var=yes"
9695 $as_echo "$as_me: failed program was:" >&5
9696 sed 's/^/| /' conftest.$ac_ext >&5
9698 eval "$as_ac_var=no"
9701 rm -rf conftest.dSYM
9702 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9703 conftest$ac_exeext conftest.$ac_ext
9705 ac_res=`eval 'as_val=${'$as_ac_var'}
9706 $as_echo "$as_val"'`
9707 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
9708 $as_echo "$ac_res" >&6; }
9709 as_val=`eval 'as_val=${'$as_ac_var'}
9710 $as_echo "$as_val"'`
9711 if test "x$as_val" = x""yes; then
9712 cat >>confdefs.h <<_ACEOF
9713 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9721 ac_config_files="$ac_config_files Makefile"
9723 cat >confcache <<\_ACEOF
9724 # This file is a shell script that caches the results of configure
9725 # tests run on this system so they can be shared between configure
9726 # scripts and configure runs, see configure's option --config-cache.
9727 # It is not useful on other systems. If it contains results you don't
9728 # want to keep, you may remove or edit it.
9730 # config.status only pays attention to the cache file if you give it
9731 # the --recheck option to rerun configure.
9733 # `ac_cv_env_foo' variables (set or unset) will be overridden when
9734 # loading this file, other *unset* `ac_cv_foo' will be assigned the
9739 # The following way of writing the cache mishandles newlines in values,
9740 # but we know of no workaround that is simple, portable, and efficient.
9741 # So, we kill variables containing newlines.
9742 # Ultrix sh set writes to stderr and can't be redirected directly,
9743 # and sets the high bit in the cache file unless we assign to the vars.
9745 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
9746 eval ac_val=\$$ac_var
9750 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
9751 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
9754 _ | IFS | as_nl) ;; #(
9755 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
9756 *) $as_unset $ac_var ;;
9762 case $as_nl`(ac_space=' '; set) 2>&1` in #(
9763 *${as_nl}ac_space=\ *)
9764 # `set' does not quote correctly, so add quotes (double-quote
9765 # substitution turns \\\\ into \\, and sed turns \\ into \).
9768 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
9771 # `set' quotes correctly as required by POSIX, so do not add quotes.
9772 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
9781 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
9783 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
9785 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
9786 if test -w "$cache_file"; then
9787 test "x$cache_file" != "x/dev/null" &&
9788 { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
9789 $as_echo "$as_me: updating cache $cache_file" >&6;}
9790 cat confcache >$cache_file
9792 { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
9793 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
9798 test "x$prefix" = xNONE && prefix=$ac_default_prefix
9799 # Let make expand exec_prefix.
9800 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
9802 DEFS=-DHAVE_CONFIG_H
9806 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
9807 # 1. Remove the extension, and $U if already installed.
9808 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
9809 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
9810 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
9811 # will be set to the directory where LIBOBJS objects are built.
9812 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
9813 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
9817 LTLIBOBJS=$ac_ltlibobjs
9820 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
9821 { { $as_echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
9822 Usually this means the macro was only invoked conditionally." >&5
9823 $as_echo "$as_me: error: conditional \"AMDEP\" was never defined.
9824 Usually this means the macro was only invoked conditionally." >&2;}
9825 { (exit 1); exit 1; }; }
9827 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
9828 { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
9829 Usually this means the macro was only invoked conditionally." >&5
9830 $as_echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
9831 Usually this means the macro was only invoked conditionally." >&2;}
9832 { (exit 1); exit 1; }; }
9834 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
9835 { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
9836 Usually this means the macro was only invoked conditionally." >&5
9837 $as_echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
9838 Usually this means the macro was only invoked conditionally." >&2;}
9839 { (exit 1); exit 1; }; }
9841 if test -z "${ENABLE_ASTERISK_CHANNEL_DRIVER_TRUE}" && test -z "${ENABLE_ASTERISK_CHANNEL_DRIVER_FALSE}"; then
9842 { { $as_echo "$as_me:$LINENO: error: conditional \"ENABLE_ASTERISK_CHANNEL_DRIVER\" was never defined.
9843 Usually this means the macro was only invoked conditionally." >&5
9844 $as_echo "$as_me: error: conditional \"ENABLE_ASTERISK_CHANNEL_DRIVER\" was never defined.
9845 Usually this means the macro was only invoked conditionally." >&2;}
9846 { (exit 1); exit 1; }; }
9848 if test -z "${ENABLE_GSM_TRUE}" && test -z "${ENABLE_GSM_FALSE}"; then
9849 { { $as_echo "$as_me:$LINENO: error: conditional \"ENABLE_GSM\" was never defined.
9850 Usually this means the macro was only invoked conditionally." >&5
9851 $as_echo "$as_me: error: conditional \"ENABLE_GSM\" was never defined.
9852 Usually this means the macro was only invoked conditionally." >&2;}
9853 { (exit 1); exit 1; }; }
9855 if test -z "${ENABLE_SS5_TRUE}" && test -z "${ENABLE_SS5_FALSE}"; then
9856 { { $as_echo "$as_me:$LINENO: error: conditional \"ENABLE_SS5\" was never defined.
9857 Usually this means the macro was only invoked conditionally." >&5
9858 $as_echo "$as_me: error: conditional \"ENABLE_SS5\" was never defined.
9859 Usually this means the macro was only invoked conditionally." >&2;}
9860 { (exit 1); exit 1; }; }
9863 : ${CONFIG_STATUS=./config.status}
9865 ac_clean_files_save=$ac_clean_files
9866 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
9867 { $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
9868 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
9869 cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9871 # Generated by $as_me.
9872 # Run this file to recreate the current configuration.
9873 # Compiler output produced by configure, useful for debugging
9874 # configure, is in config.log if it exists.
9879 SHELL=\${CONFIG_SHELL-$SHELL}
9882 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9883 ## --------------------- ##
9884 ## M4sh Initialization. ##
9885 ## --------------------- ##
9887 # Be more Bourne compatible
9888 DUALCASE=1; export DUALCASE # for MKS sh
9889 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
9892 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
9893 # is contrary to our usage. Disable this feature.
9894 alias -g '${1+"$@"}'='"$@"'
9895 setopt NO_GLOB_SUBST
9897 case `(set -o) 2>/dev/null` in
9898 *posix*) set -o posix ;;
9907 # Avoid depending upon Character Ranges.
9908 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
9909 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
9910 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
9911 as_cr_digits='0123456789'
9912 as_cr_alnum=$as_cr_Letters$as_cr_digits
9917 # Printing a long string crashes Solaris 7 /usr/bin/printf.
9918 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
9919 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
9920 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
9921 if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
9922 as_echo='printf %s\n'
9923 as_echo_n='printf %s'
9925 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
9926 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
9927 as_echo_n='/usr/ucb/echo -n'
9929 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
9930 as_echo_n_body='eval
9934 expr "X$arg" : "X\\(.*\\)$as_nl";
9935 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
9937 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
9939 export as_echo_n_body
9940 as_echo_n='sh -c $as_echo_n_body as_echo'
9943 as_echo='sh -c $as_echo_body as_echo'
9946 # The user is always right.
9947 if test "${PATH_SEPARATOR+set}" != set; then
9949 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
9950 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
9955 # Support unset when possible.
9956 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
9964 # We need space, tab and new line, in precisely that order. Quoting is
9965 # there to prevent editors from complaining about space-tab.
9966 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
9967 # splitting by setting IFS to empty value.)
9970 # Find who we are. Look in the path if we contain no directory separator.
9972 *[\\/]* ) as_myself=$0 ;;
9973 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9977 test -z "$as_dir" && as_dir=.
9978 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
9984 # We did not find ourselves, most probably we were run as `sh COMMAND'
9985 # in which case we are not to be found in the path.
9986 if test "x$as_myself" = x; then
9989 if test ! -f "$as_myself"; then
9990 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
9991 { (exit 1); exit 1; }
9994 # Work around bugs in pre-3.0 UWIN ksh.
9995 for as_var in ENV MAIL MAILPATH
9996 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
10008 # Required to use basename.
10009 if expr a : '\(a\)' >/dev/null 2>&1 &&
10010 test "X`expr 00001 : '.*\(...\)'`" = X001; then
10016 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
10017 as_basename=basename
10023 # Name of the executable.
10024 as_me=`$as_basename -- "$0" ||
10025 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
10026 X"$0" : 'X\(//\)$' \| \
10027 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
10029 sed '/^.*\/\([^/][^/]*\)\/*$/{
10048 as_lineno_1=$LINENO
10049 as_lineno_2=$LINENO
10050 test "x$as_lineno_1" != "x$as_lineno_2" &&
10051 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
10053 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
10054 # uniformly replaced by the line number. The first 'sed' inserts a
10055 # line-number line after each line using $LINENO; the second 'sed'
10056 # does the real work. The second script uses 'N' to pair each
10057 # line-number line with the line containing $LINENO, and appends
10058 # trailing '-' during substitution so that $LINENO is not a special
10059 # case at line end.
10060 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
10061 # scripts with optimization help from Paolo Bonzini. Blame Lee
10062 # E. McMahon (1931-1989) for sed's syntax. :-)
10074 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
10077 ' >$as_me.lineno &&
10078 chmod +x "$as_me.lineno" ||
10079 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
10080 { (exit 1); exit 1; }; }
10082 # Don't try to exec as it changes $[0], causing all sort of problems
10083 # (the dirname of $[0] is not the place where we might find the
10084 # original and so on. Autoconf is especially sensitive to this).
10085 . "./$as_me.lineno"
10086 # Exit status is that of the last command.
10091 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
10097 ECHO_C= ECHO_N= ECHO_T=
10098 case `echo -n x` in
10100 case `echo 'x\c'` in
10101 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
10107 if expr a : '\(a\)' >/dev/null 2>&1 &&
10108 test "X`expr 00001 : '.*\(...\)'`" = X001; then
10114 rm -f conf$$ conf$$.exe conf$$.file
10115 if test -d conf$$.dir; then
10116 rm -f conf$$.dir/conf$$.file
10119 mkdir conf$$.dir 2>/dev/null
10121 if (echo >conf$$.file) 2>/dev/null; then
10122 if ln -s conf$$.file conf$$ 2>/dev/null; then
10124 # ... but there are two gotchas:
10125 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
10126 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
10127 # In both cases, we have to default to `cp -p'.
10128 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
10130 elif ln conf$$.file conf$$ 2>/dev/null; then
10138 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
10139 rmdir conf$$.dir 2>/dev/null
10141 if mkdir -p . 2>/dev/null; then
10144 test -d ./-p && rmdir ./-p
10148 if test -x / >/dev/null 2>&1; then
10149 as_test_x='test -x'
10151 if ls -dL / >/dev/null 2>&1; then
10158 if test -d "$1"; then
10164 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
10165 ???[sx]*):;;*)false;;esac;fi
10169 as_executable_p=$as_test_x
10171 # Sed expression to map a string onto a valid CPP name.
10172 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
10174 # Sed expression to map a string onto a valid variable name.
10175 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
10180 # Save the log message, to keep $[0] and so on meaningful, and to
10181 # report actual input values of CONFIG_FILES etc. instead of their
10182 # values after options handling.
10184 This file was extended by lcr $as_me 1.7, which was
10185 generated by GNU Autoconf 2.63. Invocation command line was
10187 CONFIG_FILES = $CONFIG_FILES
10188 CONFIG_HEADERS = $CONFIG_HEADERS
10189 CONFIG_LINKS = $CONFIG_LINKS
10190 CONFIG_COMMANDS = $CONFIG_COMMANDS
10193 on `(hostname || uname -n) 2>/dev/null | sed 1q`
10198 case $ac_config_files in *"
10199 "*) set x $ac_config_files; shift; ac_config_files=$*;;
10202 case $ac_config_headers in *"
10203 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
10207 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10208 # Files that config.status was made for.
10209 config_files="$ac_config_files"
10210 config_headers="$ac_config_headers"
10211 config_commands="$ac_config_commands"
10215 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10217 \`$as_me' instantiates files from templates according to the
10218 current configuration.
10220 Usage: $0 [OPTION]... [FILE]...
10222 -h, --help print this help, then exit
10223 -V, --version print version number and configuration settings, then exit
10224 -q, --quiet, --silent
10225 do not print progress messages
10226 -d, --debug don't remove temporary files
10227 --recheck update $as_me by reconfiguring in the same conditions
10228 --file=FILE[:TEMPLATE]
10229 instantiate the configuration file FILE
10230 --header=FILE[:TEMPLATE]
10231 instantiate the configuration header FILE
10233 Configuration files:
10236 Configuration headers:
10239 Configuration commands:
10242 Report bugs to <bug-autoconf@gnu.org>."
10245 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10247 lcr config.status 1.7
10248 configured by $0, generated by GNU Autoconf 2.63,
10249 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
10251 Copyright (C) 2008 Free Software Foundation, Inc.
10252 This config.status script is free software; the Free Software Foundation
10253 gives unlimited permission to copy, distribute and modify it."
10259 test -n "\$AWK" || AWK=awk
10262 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10263 # The default lists apply if the user does not specify any file.
10269 ac_option=`expr "X$1" : 'X\([^=]*\)='`
10270 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
10281 # Handling of the options.
10282 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
10284 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
10285 $as_echo "$ac_cs_version"; exit ;;
10286 --debug | --debu | --deb | --de | --d | -d )
10288 --file | --fil | --fi | --f )
10291 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
10293 CONFIG_FILES="$CONFIG_FILES '$ac_optarg'"
10294 ac_need_defaults=false;;
10295 --header | --heade | --head | --hea )
10298 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
10300 CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'"
10301 ac_need_defaults=false;;
10303 # Conflict between --help and --header
10304 { $as_echo "$as_me: error: ambiguous option: $1
10305 Try \`$0 --help' for more information." >&2
10306 { (exit 1); exit 1; }; };;
10307 --help | --hel | -h )
10308 $as_echo "$ac_cs_usage"; exit ;;
10309 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
10310 | -silent | --silent | --silen | --sile | --sil | --si | --s)
10313 # This is an error.
10314 -*) { $as_echo "$as_me: error: unrecognized option: $1
10315 Try \`$0 --help' for more information." >&2
10316 { (exit 1); exit 1; }; } ;;
10318 *) ac_config_targets="$ac_config_targets $1"
10319 ac_need_defaults=false ;;
10325 ac_configure_extra_args=
10327 if $ac_cs_silent; then
10329 ac_configure_extra_args="$ac_configure_extra_args --silent"
10333 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10334 if \$ac_cs_recheck; then
10335 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
10337 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
10338 CONFIG_SHELL='$SHELL'
10339 export CONFIG_SHELL
10344 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10348 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
10349 ## Running $as_me. ##
10355 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10359 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
10363 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10365 # Handling of arguments.
10366 for ac_config_target in $ac_config_targets
10368 case $ac_config_target in
10369 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
10370 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
10371 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
10373 *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
10374 $as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
10375 { (exit 1); exit 1; }; };;
10380 # If the user did not use the arguments to specify the items to instantiate,
10381 # then the envvar interface is used. Set only those that are not.
10382 # We use the long form for the default assignment because of an extremely
10383 # bizarre bug on SunOS 4.1.3.
10384 if $ac_need_defaults; then
10385 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
10386 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
10387 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
10390 # Have a temporary directory for convenience. Make it in the build tree
10391 # simply because there is no reason against having it here, and in addition,
10392 # creating and moving files from /tmp can sometimes cause problems.
10393 # Hook for its removal unless debugging.
10394 # Note that there is a small window in which the directory will not be cleaned:
10395 # after its creation but before its name has been assigned to `$tmp'.
10399 trap 'exit_status=$?
10400 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
10402 trap '{ (exit 1); exit 1; }' 1 2 13 15
10404 # Create a (secure) tmp directory for tmp files.
10407 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
10408 test -n "$tmp" && test -d "$tmp"
10411 tmp=./conf$$-$RANDOM
10412 (umask 077 && mkdir "$tmp")
10415 $as_echo "$as_me: cannot create a temporary directory in ." >&2
10416 { (exit 1); exit 1; }
10419 # Set up the scripts for CONFIG_FILES section.
10420 # No need to generate them if there are no CONFIG_FILES.
10421 # This happens for instance with `./config.status config.h'.
10422 if test -n "$CONFIG_FILES"; then
10426 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
10427 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
10430 ac_cs_awk_cr=$ac_cr
10433 echo 'BEGIN {' >"$tmp/subs1.awk" &&
10438 echo "cat >conf$$subs.awk <<_ACEOF" &&
10439 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
10441 } >conf$$subs.sh ||
10442 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
10443 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
10444 { (exit 1); exit 1; }; }
10445 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
10447 for ac_last_try in false false false false false :; do
10448 . ./conf$$subs.sh ||
10449 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
10450 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
10451 { (exit 1); exit 1; }; }
10453 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
10454 if test $ac_delim_n = $ac_delim_num; then
10456 elif $ac_last_try; then
10457 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
10458 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
10459 { (exit 1); exit 1; }; }
10461 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
10464 rm -f conf$$subs.sh
10466 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10467 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
10471 s/^/S["/; s/!.*/"]=/
10481 s/\(.\{148\}\).*/\1/
10483 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
10488 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
10495 s/\(.\{148\}\).*/\1/
10497 s/["\\]/\\&/g; s/^/"/; s/$/"/
10501 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
10506 ' <conf$$subs.awk | sed '
10511 ' >>$CONFIG_STATUS || ac_write_fail=1
10512 rm -f conf$$subs.awk
10513 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10515 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
10516 for (key in S) S_is_set[key] = 1
10522 nfields = split(line, field, "@")
10524 len = length(field[1])
10525 for (i = 2; i < nfields; i++) {
10527 keylen = length(key)
10528 if (S_is_set[key]) {
10530 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
10531 len += length(value) + length(field[++i])
10542 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10543 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
10544 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
10547 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
10548 || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5
10549 $as_echo "$as_me: error: could not setup config files machinery" >&2;}
10550 { (exit 1); exit 1; }; }
10553 # VPATH may cause trouble with some makes, so we remove $(srcdir),
10554 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
10555 # trailing colons and then remove the whole line if VPATH becomes empty
10556 # (actually we leave an empty line to preserve line numbers).
10557 if test "x$srcdir" = x.; then
10558 ac_vpsub='/^[ ]*VPATH[ ]*=/{
10559 s/:*\$(srcdir):*/:/
10560 s/:*\${srcdir}:*/:/
10562 s/^\([^=]*=[ ]*\):*/\1/
10568 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10569 fi # test -n "$CONFIG_FILES"
10571 # Set up the scripts for CONFIG_HEADERS section.
10572 # No need to generate them if there are no CONFIG_HEADERS.
10573 # This happens for instance with `./config.status Makefile'.
10574 if test -n "$CONFIG_HEADERS"; then
10575 cat >"$tmp/defines.awk" <<\_ACAWK ||
10579 # Transform confdefs.h into an awk script `defines.awk', embedded as
10580 # here-document in config.status, that substitutes the proper values into
10581 # config.h.in to produce config.h.
10583 # Create a delimiter string that does not exist in confdefs.h, to ease
10584 # handling of long lines.
10586 for ac_last_try in false false :; do
10587 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
10588 if test -z "$ac_t"; then
10590 elif $ac_last_try; then
10591 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_HEADERS" >&5
10592 $as_echo "$as_me: error: could not make $CONFIG_HEADERS" >&2;}
10593 { (exit 1); exit 1; }; }
10595 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
10599 # For the awk script, D is an array of macro values keyed by name,
10600 # likewise P contains macro parameters if any. Preserve backslash
10601 # newline sequences.
10603 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
10605 s/.\{148\}/&'"$ac_delim"'/g
10608 s/^[ ]*#[ ]*define[ ][ ]*/ /
10615 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
10617 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
10621 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
10622 D["\1"]=" \3\\\\\\n"\\/p
10624 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
10629 s/.\{148\}/&'"$ac_delim"'/g
10634 s/["\\]/\\&/g; s/^/"/; s/$/"/p
10637 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
10639 ' <confdefs.h | sed '
10640 s/'"$ac_delim"'/"\\\
10641 "/g' >>$CONFIG_STATUS || ac_write_fail=1
10643 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10644 for (key in D) D_is_set[key] = 1
10647 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
10649 split(line, arg, " ")
10650 if (arg[1] == "#") {
10654 defundef = substr(arg[1], 2)
10657 split(mac1, mac2, "(") #)
10659 prefix = substr(line, 1, index(line, defundef) - 1)
10660 if (D_is_set[macro]) {
10661 # Preserve the white space surrounding the "#".
10662 print prefix "define", macro P[macro] D[macro]
10665 # Replace #undef with comments. This is necessary, for example,
10666 # in the case of _POSIX_SOURCE, which is predefined and required
10667 # on some systems where configure will not decide to define it.
10668 if (defundef == "undef") {
10669 print "/*", prefix defundef, macro, "*/"
10677 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10678 { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5
10679 $as_echo "$as_me: error: could not setup config headers machinery" >&2;}
10680 { (exit 1); exit 1; }; }
10681 fi # test -n "$CONFIG_HEADERS"
10684 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
10689 :[FHLC]) ac_mode=$ac_tag; continue;;
10691 case $ac_mode$ac_tag in
10693 :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: invalid tag $ac_tag" >&5
10694 $as_echo "$as_me: error: invalid tag $ac_tag" >&2;}
10695 { (exit 1); exit 1; }; };;
10696 :[FH]-) ac_tag=-:-;;
10697 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
10714 -) ac_f="$tmp/stdin";;
10715 *) # Look for the file first in the build tree, then in the source tree
10716 # (if the path is not absolute). The absolute path cannot be DOS-style,
10717 # because $ac_f cannot contain `:'.
10721 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
10723 { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
10724 $as_echo "$as_me: error: cannot find input file: $ac_f" >&2;}
10725 { (exit 1); exit 1; }; };;
10727 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
10728 ac_file_inputs="$ac_file_inputs '$ac_f'"
10731 # Let's still pretend it is `configure' which instantiates (i.e., don't
10732 # use $as_me), people would be surprised to read:
10733 # /* config.h. Generated by config.status. */
10734 configure_input='Generated from '`
10735 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
10737 if test x"$ac_file" != x-; then
10738 configure_input="$ac_file. $configure_input"
10739 { $as_echo "$as_me:$LINENO: creating $ac_file" >&5
10740 $as_echo "$as_me: creating $ac_file" >&6;}
10742 # Neutralize special characters interpreted by sed in replacement strings.
10743 case $configure_input in #(
10744 *\&* | *\|* | *\\* )
10745 ac_sed_conf_input=`$as_echo "$configure_input" |
10746 sed 's/[\\\\&|]/\\\\&/g'`;; #(
10747 *) ac_sed_conf_input=$configure_input;;
10751 *:-:* | *:-) cat >"$tmp/stdin" \
10752 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
10753 $as_echo "$as_me: error: could not create $ac_file" >&2;}
10754 { (exit 1); exit 1; }; } ;;
10759 ac_dir=`$as_dirname -- "$ac_file" ||
10760 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10761 X"$ac_file" : 'X\(//\)[^/]' \| \
10762 X"$ac_file" : 'X\(//\)$' \| \
10763 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
10764 $as_echo X"$ac_file" |
10765 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
10769 /^X\(\/\/\)[^/].*/{
10784 -*) as_dir=./$as_dir;;
10786 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
10790 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
10791 *) as_qdir=$as_dir;;
10793 as_dirs="'$as_qdir' $as_dirs"
10794 as_dir=`$as_dirname -- "$as_dir" ||
10795 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10796 X"$as_dir" : 'X\(//\)[^/]' \| \
10797 X"$as_dir" : 'X\(//\)$' \| \
10798 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
10799 $as_echo X"$as_dir" |
10800 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
10804 /^X\(\/\/\)[^/].*/{
10817 test -d "$as_dir" && break
10819 test -z "$as_dirs" || eval "mkdir $as_dirs"
10820 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
10821 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
10822 { (exit 1); exit 1; }; }; }
10826 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
10828 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
10829 # A ".." for each directory in $ac_dir_suffix.
10830 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
10831 case $ac_top_builddir_sub in
10832 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
10833 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
10836 ac_abs_top_builddir=$ac_pwd
10837 ac_abs_builddir=$ac_pwd$ac_dir_suffix
10838 # for backward compatibility:
10839 ac_top_builddir=$ac_top_build_prefix
10842 .) # We are building in place.
10844 ac_top_srcdir=$ac_top_builddir_sub
10845 ac_abs_top_srcdir=$ac_pwd ;;
10846 [\\/]* | ?:[\\/]* ) # Absolute name.
10847 ac_srcdir=$srcdir$ac_dir_suffix;
10848 ac_top_srcdir=$srcdir
10849 ac_abs_top_srcdir=$srcdir ;;
10850 *) # Relative name.
10851 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
10852 ac_top_srcdir=$ac_top_build_prefix$srcdir
10853 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
10855 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
10865 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
10866 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
10870 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10871 # If the template does not know about datarootdir, expand it.
10872 # FIXME: This hack should be removed a few years after 2.60.
10873 ac_datarootdir_hack=; ac_datarootdir_seen=
10886 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
10887 *datarootdir*) ac_datarootdir_seen=yes;;
10888 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
10889 { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
10890 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
10892 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10893 ac_datarootdir_hack='
10894 s&@datadir@&$datadir&g
10895 s&@docdir@&$docdir&g
10896 s&@infodir@&$infodir&g
10897 s&@localedir@&$localedir&g
10898 s&@mandir@&$mandir&g
10899 s&\\\${datarootdir}&$datarootdir&g' ;;
10903 # Neutralize VPATH when `$srcdir' = `.'.
10904 # Shell code in configure.ac might set extrasub.
10905 # FIXME: do we really want to maintain this feature?
10906 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10907 ac_sed_extra="$ac_vpsub
10910 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10912 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
10913 s|@configure_input@|$ac_sed_conf_input|;t t
10914 s&@top_builddir@&$ac_top_builddir_sub&;t t
10915 s&@top_build_prefix@&$ac_top_build_prefix&;t t
10916 s&@srcdir@&$ac_srcdir&;t t
10917 s&@abs_srcdir@&$ac_abs_srcdir&;t t
10918 s&@top_srcdir@&$ac_top_srcdir&;t t
10919 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
10920 s&@builddir@&$ac_builddir&;t t
10921 s&@abs_builddir@&$ac_abs_builddir&;t t
10922 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
10923 s&@INSTALL@&$ac_INSTALL&;t t
10924 $ac_datarootdir_hack
10926 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
10927 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
10928 $as_echo "$as_me: error: could not create $ac_file" >&2;}
10929 { (exit 1); exit 1; }; }
10931 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
10932 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
10933 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
10934 { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
10935 which seems to be undefined. Please make sure it is defined." >&5
10936 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
10937 which seems to be undefined. Please make sure it is defined." >&2;}
10941 -) cat "$tmp/out" && rm -f "$tmp/out";;
10942 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
10944 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
10945 $as_echo "$as_me: error: could not create $ac_file" >&2;}
10946 { (exit 1); exit 1; }; }
10952 if test x"$ac_file" != x-; then
10954 $as_echo "/* $configure_input */" \
10955 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
10956 } >"$tmp/config.h" \
10957 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
10958 $as_echo "$as_me: error: could not create $ac_file" >&2;}
10959 { (exit 1); exit 1; }; }
10960 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
10961 { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5
10962 $as_echo "$as_me: $ac_file is unchanged" >&6;}
10965 mv "$tmp/config.h" "$ac_file" \
10966 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
10967 $as_echo "$as_me: error: could not create $ac_file" >&2;}
10968 { (exit 1); exit 1; }; }
10971 $as_echo "/* $configure_input */" \
10972 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
10973 || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5
10974 $as_echo "$as_me: error: could not create -" >&2;}
10975 { (exit 1); exit 1; }; }
10977 # Compute "$ac_file"'s index in $config_headers.
10979 for _am_header in $config_headers :; do
10980 case $_am_header in
10981 "$ac_file" | "$ac_file":* )
10984 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
10987 echo "timestamp for "$ac_file"" >`$as_dirname -- "$ac_file" ||
10988 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10989 X"$ac_file" : 'X\(//\)[^/]' \| \
10990 X"$ac_file" : 'X\(//\)$' \| \
10991 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
10992 $as_echo X"$ac_file" |
10993 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
10997 /^X\(\/\/\)[^/].*/{
11009 s/.*/./; q'`/stamp-h$_am_stamp_count
11012 :C) { $as_echo "$as_me:$LINENO: executing $ac_file commands" >&5
11013 $as_echo "$as_me: executing $ac_file commands" >&6;}
11018 case $ac_file$ac_mode in
11019 "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
11020 # Strip MF so we end up with the name of the file.
11021 mf=`echo "$mf" | sed -e 's/:.*$//'`
11022 # Check whether this is an Automake generated Makefile or not.
11023 # We used to match only the files named `Makefile.in', but
11024 # some people rename them; so instead we look at the file content.
11025 # Grep'ing the first line is not enough: some people post-process
11026 # each Makefile.in and add a new line on top of each file to say so.
11027 # So let's grep whole file.
11028 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
11029 dirpart=`$as_dirname -- "$mf" ||
11030 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11031 X"$mf" : 'X\(//\)[^/]' \| \
11032 X"$mf" : 'X\(//\)$' \| \
11033 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
11035 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11039 /^X\(\/\/\)[^/].*/{
11055 # Extract the definition of DEPDIR, am__include, and am__quote
11056 # from the Makefile without running `make'.
11057 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
11058 test -z "$DEPDIR" && continue
11059 am__include=`sed -n 's/^am__include = //p' < "$mf"`
11060 test -z "am__include" && continue
11061 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
11062 # When using ansi2knr, U may be empty or an underscore; expand it
11063 U=`sed -n 's/^U = //p' < "$mf"`
11064 # Find all dependency output files, they are included files with
11065 # $(DEPDIR) in their names. We invoke sed twice because it is the
11066 # simplest approach to changing $(DEPDIR) to its actual value in the
11068 for file in `sed -n "
11069 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
11070 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
11071 # Make sure the directory exists.
11072 test -f "$dirpart/$file" && continue
11073 fdir=`$as_dirname -- "$file" ||
11074 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11075 X"$file" : 'X\(//\)[^/]' \| \
11076 X"$file" : 'X\(//\)$' \| \
11077 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
11078 $as_echo X"$file" |
11079 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11083 /^X\(\/\/\)[^/].*/{
11096 { as_dir=$dirpart/$fdir
11098 -*) as_dir=./$as_dir;;
11100 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
11104 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
11105 *) as_qdir=$as_dir;;
11107 as_dirs="'$as_qdir' $as_dirs"
11108 as_dir=`$as_dirname -- "$as_dir" ||
11109 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11110 X"$as_dir" : 'X\(//\)[^/]' \| \
11111 X"$as_dir" : 'X\(//\)$' \| \
11112 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
11113 $as_echo X"$as_dir" |
11114 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11118 /^X\(\/\/\)[^/].*/{
11131 test -d "$as_dir" && break
11133 test -z "$as_dirs" || eval "mkdir $as_dirs"
11134 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
11135 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
11136 { (exit 1); exit 1; }; }; }
11137 # echo "creating $dirpart/$file"
11138 echo '# dummy' > "$dirpart/$file"
11147 { (exit 0); exit 0; }
11149 chmod +x $CONFIG_STATUS
11150 ac_clean_files=$ac_clean_files_save
11152 test $ac_write_fail = 0 ||
11153 { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5
11154 $as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;}
11155 { (exit 1); exit 1; }; }
11158 # configure is writing to config.log, and then calls config.status.
11159 # config.status does its own redirection, appending to config.log.
11160 # Unfortunately, on DOS this fails, as config.log is still kept open
11161 # by configure, so config.status won't be able to write to it; its
11162 # output is simply discarded. So we exec the FD to /dev/null,
11163 # effectively closing config.log, so it can be properly (re)opened and
11164 # appended to by config.status. When coming back to configure, we
11165 # need to make the FD available again.
11166 if test "$no_create" != yes; then
11168 ac_config_status_args=
11169 test "$silent" = yes &&
11170 ac_config_status_args="$ac_config_status_args --quiet"
11172 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
11174 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
11175 # would make configure fail if this is the last instruction.
11176 $ac_cs_success || { (exit 1); exit 1; }
11178 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
11179 { $as_echo "$as_me:$LINENO: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
11180 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}