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='am__EXEEXT_FALSE
654 ENABLE_ASTERISK_CHANNEL_DRIVER_FALSE
655 ENABLE_ASTERISK_CHANNEL_DRIVER_TRUE
680 INSTALL_STRIP_PROGRAM
732 program_transform_name
744 enable_option_checking
745 enable_dependency_tracking
752 ac_precious_vars='build_alias
766 # Initialize some variables set by options.
768 ac_init_version=false
769 ac_unrecognized_opts=
771 # The variables have the same names as the options, with
772 # dashes changed to underlines.
780 program_transform_name=s,x,x,
788 # Installation directory options.
789 # These are left unexpanded so users can "make install exec_prefix=/foo"
790 # and all the variables that are supposed to be based on exec_prefix
791 # by default will actually change.
792 # Use braces instead of parens because sh, perl, etc. also accept them.
793 # (The list follows the same order as the GNU Coding Standards.)
794 bindir='${exec_prefix}/bin'
795 sbindir='${exec_prefix}/sbin'
796 libexecdir='${exec_prefix}/libexec'
797 datarootdir='${prefix}/share'
798 datadir='${datarootdir}'
799 sysconfdir='${prefix}/etc'
800 sharedstatedir='${prefix}/com'
801 localstatedir='${prefix}/var'
802 includedir='${prefix}/include'
803 oldincludedir='/usr/include'
804 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
805 infodir='${datarootdir}/info'
810 libdir='${exec_prefix}/lib'
811 localedir='${datarootdir}/locale'
812 mandir='${datarootdir}/man'
818 # If the previous option needs an argument, assign it.
819 if test -n "$ac_prev"; then
820 eval $ac_prev=\$ac_option
826 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
830 # Accept the important Cygnus configure options, so we can diagnose typos.
832 case $ac_dashdash$ac_option in
836 -bindir | --bindir | --bindi | --bind | --bin | --bi)
838 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
841 -build | --build | --buil | --bui | --bu)
842 ac_prev=build_alias ;;
843 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
844 build_alias=$ac_optarg ;;
846 -cache-file | --cache-file | --cache-fil | --cache-fi \
847 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
848 ac_prev=cache_file ;;
849 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
850 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
851 cache_file=$ac_optarg ;;
854 cache_file=config.cache ;;
856 -datadir | --datadir | --datadi | --datad)
858 -datadir=* | --datadir=* | --datadi=* | --datad=*)
859 datadir=$ac_optarg ;;
861 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
862 | --dataroo | --dataro | --datar)
863 ac_prev=datarootdir ;;
864 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
865 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
866 datarootdir=$ac_optarg ;;
868 -disable-* | --disable-*)
869 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
870 # Reject names that are not valid shell variable names.
871 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
872 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
873 { (exit 1); exit 1; }; }
874 ac_useropt_orig=$ac_useropt
875 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
876 case $ac_user_opts in
880 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
881 ac_unrecognized_sep=', ';;
883 eval enable_$ac_useropt=no ;;
885 -docdir | --docdir | --docdi | --doc | --do)
887 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
890 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
892 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
895 -enable-* | --enable-*)
896 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
897 # Reject names that are not valid shell variable names.
898 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
899 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
900 { (exit 1); exit 1; }; }
901 ac_useropt_orig=$ac_useropt
902 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
903 case $ac_user_opts in
907 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
908 ac_unrecognized_sep=', ';;
910 eval enable_$ac_useropt=\$ac_optarg ;;
912 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
913 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
914 | --exec | --exe | --ex)
915 ac_prev=exec_prefix ;;
916 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
917 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
918 | --exec=* | --exe=* | --ex=*)
919 exec_prefix=$ac_optarg ;;
921 -gas | --gas | --ga | --g)
922 # Obsolete; use --with-gas.
925 -help | --help | --hel | --he | -h)
927 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
928 ac_init_help=recursive ;;
929 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
930 ac_init_help=short ;;
932 -host | --host | --hos | --ho)
933 ac_prev=host_alias ;;
934 -host=* | --host=* | --hos=* | --ho=*)
935 host_alias=$ac_optarg ;;
937 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
939 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
941 htmldir=$ac_optarg ;;
943 -includedir | --includedir | --includedi | --included | --include \
944 | --includ | --inclu | --incl | --inc)
945 ac_prev=includedir ;;
946 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
947 | --includ=* | --inclu=* | --incl=* | --inc=*)
948 includedir=$ac_optarg ;;
950 -infodir | --infodir | --infodi | --infod | --info | --inf)
952 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
953 infodir=$ac_optarg ;;
955 -libdir | --libdir | --libdi | --libd)
957 -libdir=* | --libdir=* | --libdi=* | --libd=*)
960 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
961 | --libexe | --libex | --libe)
962 ac_prev=libexecdir ;;
963 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
964 | --libexe=* | --libex=* | --libe=*)
965 libexecdir=$ac_optarg ;;
967 -localedir | --localedir | --localedi | --localed | --locale)
969 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
970 localedir=$ac_optarg ;;
972 -localstatedir | --localstatedir | --localstatedi | --localstated \
973 | --localstate | --localstat | --localsta | --localst | --locals)
974 ac_prev=localstatedir ;;
975 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
976 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
977 localstatedir=$ac_optarg ;;
979 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
981 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
985 # Obsolete; use --without-fp.
988 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
989 | --no-cr | --no-c | -n)
992 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
993 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
996 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
997 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
998 | --oldin | --oldi | --old | --ol | --o)
999 ac_prev=oldincludedir ;;
1000 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1001 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1002 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1003 oldincludedir=$ac_optarg ;;
1005 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1007 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1008 prefix=$ac_optarg ;;
1010 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1011 | --program-pre | --program-pr | --program-p)
1012 ac_prev=program_prefix ;;
1013 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1014 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1015 program_prefix=$ac_optarg ;;
1017 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1018 | --program-suf | --program-su | --program-s)
1019 ac_prev=program_suffix ;;
1020 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1021 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1022 program_suffix=$ac_optarg ;;
1024 -program-transform-name | --program-transform-name \
1025 | --program-transform-nam | --program-transform-na \
1026 | --program-transform-n | --program-transform- \
1027 | --program-transform | --program-transfor \
1028 | --program-transfo | --program-transf \
1029 | --program-trans | --program-tran \
1030 | --progr-tra | --program-tr | --program-t)
1031 ac_prev=program_transform_name ;;
1032 -program-transform-name=* | --program-transform-name=* \
1033 | --program-transform-nam=* | --program-transform-na=* \
1034 | --program-transform-n=* | --program-transform-=* \
1035 | --program-transform=* | --program-transfor=* \
1036 | --program-transfo=* | --program-transf=* \
1037 | --program-trans=* | --program-tran=* \
1038 | --progr-tra=* | --program-tr=* | --program-t=*)
1039 program_transform_name=$ac_optarg ;;
1041 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1043 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1044 pdfdir=$ac_optarg ;;
1046 -psdir | --psdir | --psdi | --psd | --ps)
1048 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1051 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1052 | -silent | --silent | --silen | --sile | --sil)
1055 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1057 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1059 sbindir=$ac_optarg ;;
1061 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1062 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1063 | --sharedst | --shareds | --shared | --share | --shar \
1065 ac_prev=sharedstatedir ;;
1066 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1067 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1068 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1070 sharedstatedir=$ac_optarg ;;
1072 -site | --site | --sit)
1074 -site=* | --site=* | --sit=*)
1077 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1079 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1080 srcdir=$ac_optarg ;;
1082 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1083 | --syscon | --sysco | --sysc | --sys | --sy)
1084 ac_prev=sysconfdir ;;
1085 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1086 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1087 sysconfdir=$ac_optarg ;;
1089 -target | --target | --targe | --targ | --tar | --ta | --t)
1090 ac_prev=target_alias ;;
1091 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1092 target_alias=$ac_optarg ;;
1094 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1097 -version | --version | --versio | --versi | --vers | -V)
1098 ac_init_version=: ;;
1101 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1102 # Reject names that are not valid shell variable names.
1103 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1104 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1105 { (exit 1); exit 1; }; }
1106 ac_useropt_orig=$ac_useropt
1107 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1108 case $ac_user_opts in
1112 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1113 ac_unrecognized_sep=', ';;
1115 eval with_$ac_useropt=\$ac_optarg ;;
1117 -without-* | --without-*)
1118 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1119 # Reject names that are not valid shell variable names.
1120 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1121 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1122 { (exit 1); exit 1; }; }
1123 ac_useropt_orig=$ac_useropt
1124 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1125 case $ac_user_opts in
1129 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1130 ac_unrecognized_sep=', ';;
1132 eval with_$ac_useropt=no ;;
1135 # Obsolete; use --with-x.
1138 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1139 | --x-incl | --x-inc | --x-in | --x-i)
1140 ac_prev=x_includes ;;
1141 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1142 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1143 x_includes=$ac_optarg ;;
1145 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1146 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1147 ac_prev=x_libraries ;;
1148 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1149 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1150 x_libraries=$ac_optarg ;;
1152 -*) { $as_echo "$as_me: error: unrecognized option: $ac_option
1153 Try \`$0 --help' for more information." >&2
1154 { (exit 1); exit 1; }; }
1158 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1159 # Reject names that are not valid shell variable names.
1160 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1161 { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1162 { (exit 1); exit 1; }; }
1163 eval $ac_envvar=\$ac_optarg
1164 export $ac_envvar ;;
1167 # FIXME: should be removed in autoconf 3.0.
1168 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1169 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1170 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1171 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1177 if test -n "$ac_prev"; then
1178 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1179 { $as_echo "$as_me: error: missing argument to $ac_option" >&2
1180 { (exit 1); exit 1; }; }
1183 if test -n "$ac_unrecognized_opts"; then
1184 case $enable_option_checking in
1186 fatal) { $as_echo "$as_me: error: unrecognized options: $ac_unrecognized_opts" >&2
1187 { (exit 1); exit 1; }; } ;;
1188 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1192 # Check all directory arguments for consistency.
1193 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1194 datadir sysconfdir sharedstatedir localstatedir includedir \
1195 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1196 libdir localedir mandir
1198 eval ac_val=\$$ac_var
1199 # Remove trailing slashes.
1202 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1203 eval $ac_var=\$ac_val;;
1205 # Be sure to have absolute directory names.
1207 [\\/$]* | ?:[\\/]* ) continue;;
1208 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1210 { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1211 { (exit 1); exit 1; }; }
1214 # There might be people who depend on the old broken behavior: `$host'
1215 # used to hold the argument of --host etc.
1216 # FIXME: To remove some day.
1219 target=$target_alias
1221 # FIXME: To remove some day.
1222 if test "x$host_alias" != x; then
1223 if test "x$build_alias" = x; then
1224 cross_compiling=maybe
1225 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1226 If a cross compiler is detected then cross compile mode will be used." >&2
1227 elif test "x$build_alias" != "x$host_alias"; then
1233 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1235 test "$silent" = yes && exec 6>/dev/null
1238 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1239 ac_ls_di=`ls -di .` &&
1240 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1241 { $as_echo "$as_me: error: working directory cannot be determined" >&2
1242 { (exit 1); exit 1; }; }
1243 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1244 { $as_echo "$as_me: error: pwd does not report name of working directory" >&2
1245 { (exit 1); exit 1; }; }
1248 # Find the source files, if location was not specified.
1249 if test -z "$srcdir"; then
1250 ac_srcdir_defaulted=yes
1251 # Try the directory containing this script, then the parent directory.
1252 ac_confdir=`$as_dirname -- "$as_myself" ||
1253 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1254 X"$as_myself" : 'X\(//\)[^/]' \| \
1255 X"$as_myself" : 'X\(//\)$' \| \
1256 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1257 $as_echo X"$as_myself" |
1258 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1276 if test ! -r "$srcdir/$ac_unique_file"; then
1280 ac_srcdir_defaulted=no
1282 if test ! -r "$srcdir/$ac_unique_file"; then
1283 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1284 { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1285 { (exit 1); exit 1; }; }
1287 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1289 cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2
1290 { (exit 1); exit 1; }; }
1292 # When building in place, set srcdir=.
1293 if test "$ac_abs_confdir" = "$ac_pwd"; then
1296 # Remove unnecessary trailing slashes from srcdir.
1297 # Double slashes in file names in object file debugging info
1298 # mess up M-x gdb in Emacs.
1300 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1302 for ac_var in $ac_precious_vars; do
1303 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1304 eval ac_env_${ac_var}_value=\$${ac_var}
1305 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1306 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1310 # Report the --help message.
1312 if test "$ac_init_help" = "long"; then
1313 # Omit some internal or obsolete options to make the list less imposing.
1314 # This message is too long to be a string in the A/UX 3.1 sh.
1316 \`configure' configures lcr 1.7 to adapt to many kinds of systems.
1318 Usage: $0 [OPTION]... [VAR=VALUE]...
1320 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1321 VAR=VALUE. See below for descriptions of some of the useful variables.
1323 Defaults for the options are specified in brackets.
1326 -h, --help display this help and exit
1327 --help=short display options specific to this package
1328 --help=recursive display the short help of all the included packages
1329 -V, --version display version information and exit
1330 -q, --quiet, --silent do not print \`checking...' messages
1331 --cache-file=FILE cache test results in FILE [disabled]
1332 -C, --config-cache alias for \`--cache-file=config.cache'
1333 -n, --no-create do not create output files
1334 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1336 Installation directories:
1337 --prefix=PREFIX install architecture-independent files in PREFIX
1338 [$ac_default_prefix]
1339 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1342 By default, \`make install' will install all the files in
1343 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1344 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1345 for instance \`--prefix=\$HOME'.
1347 For better control, use the options below.
1349 Fine tuning of the installation directories:
1350 --bindir=DIR user executables [EPREFIX/bin]
1351 --sbindir=DIR system admin executables [EPREFIX/sbin]
1352 --libexecdir=DIR program executables [EPREFIX/libexec]
1353 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1354 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1355 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1356 --libdir=DIR object code libraries [EPREFIX/lib]
1357 --includedir=DIR C header files [PREFIX/include]
1358 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1359 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1360 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1361 --infodir=DIR info documentation [DATAROOTDIR/info]
1362 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1363 --mandir=DIR man documentation [DATAROOTDIR/man]
1364 --docdir=DIR documentation root [DATAROOTDIR/doc/lcr]
1365 --htmldir=DIR html documentation [DOCDIR]
1366 --dvidir=DIR dvi documentation [DOCDIR]
1367 --pdfdir=DIR pdf documentation [DOCDIR]
1368 --psdir=DIR ps documentation [DOCDIR]
1374 --program-prefix=PREFIX prepend PREFIX to installed program names
1375 --program-suffix=SUFFIX append SUFFIX to installed program names
1376 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1380 if test -n "$ac_init_help"; then
1381 case $ac_init_help in
1382 short | recursive ) echo "Configuration of lcr 1.7:";;
1387 --disable-option-checking ignore unrecognized --enable/--with options
1388 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1389 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1390 --disable-dependency-tracking speeds up one-time build
1391 --enable-dependency-tracking do not reject slow dependency extractors
1394 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1395 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1396 --with-asterisk compile with built-in Asterisk channel driver
1399 --with-ssl compile with ssl support (libcrypto) [default=check]
1401 --with-gsm-bs compile with OpenBSC support [default=check]
1403 --with-gsm-ms compile with Osmocom-bb support [default=check]
1405 --with-ss5 compile with CCITT No. 5 support [default=no]
1408 Some influential environment variables:
1409 CC C compiler command
1410 CFLAGS C compiler flags
1411 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1412 nonstandard directory <lib dir>
1413 LIBS libraries to pass to the linker, e.g. -l<library>
1414 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1415 you have headers in a nonstandard directory <include dir>
1417 CXX C++ compiler command
1418 CXXFLAGS C++ compiler flags
1420 Use these variables to override the choices made by `configure' or to help
1421 it to find libraries and programs with nonstandard names/locations.
1423 Report bugs to <andreas@eversberg.eu>.
1428 if test "$ac_init_help" = "recursive"; then
1429 # If there are subdirs, report their specific --help.
1430 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1431 test -d "$ac_dir" ||
1432 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1437 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1439 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1440 # A ".." for each directory in $ac_dir_suffix.
1441 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1442 case $ac_top_builddir_sub in
1443 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1444 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1447 ac_abs_top_builddir=$ac_pwd
1448 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1449 # for backward compatibility:
1450 ac_top_builddir=$ac_top_build_prefix
1453 .) # We are building in place.
1455 ac_top_srcdir=$ac_top_builddir_sub
1456 ac_abs_top_srcdir=$ac_pwd ;;
1457 [\\/]* | ?:[\\/]* ) # Absolute name.
1458 ac_srcdir=$srcdir$ac_dir_suffix;
1459 ac_top_srcdir=$srcdir
1460 ac_abs_top_srcdir=$srcdir ;;
1462 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1463 ac_top_srcdir=$ac_top_build_prefix$srcdir
1464 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1466 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1468 cd "$ac_dir" || { ac_status=$?; continue; }
1469 # Check for guested configure.
1470 if test -f "$ac_srcdir/configure.gnu"; then
1472 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1473 elif test -f "$ac_srcdir/configure"; then
1475 $SHELL "$ac_srcdir/configure" --help=recursive
1477 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1479 cd "$ac_pwd" || { ac_status=$?; break; }
1483 test -n "$ac_init_help" && exit $ac_status
1484 if $ac_init_version; then
1487 generated by GNU Autoconf 2.63
1489 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1490 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
1491 This configure script is free software; the Free Software Foundation
1492 gives unlimited permission to copy, distribute and modify it.
1496 cat >config.log <<_ACEOF
1497 This file contains any messages produced by compilers while
1498 running configure, to aid debugging if configure makes a mistake.
1500 It was created by lcr $as_me 1.7, which was
1501 generated by GNU Autoconf 2.63. Invocation command line was
1513 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1514 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1515 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1516 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1517 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1519 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1520 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1522 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1523 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1524 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1525 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1526 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1527 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1528 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1532 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1536 test -z "$as_dir" && as_dir=.
1537 $as_echo "PATH: $as_dir"
1553 # Keep a trace of the command line.
1554 # Strip out --no-create and --no-recursion so they do not pile up.
1555 # Strip out --silent because we don't want to record it for future runs.
1556 # Also quote any args containing shell meta-characters.
1557 # Make two passes to allow for proper duplicate-argument suppression.
1561 ac_must_keep_next=false
1567 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1568 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1569 | -silent | --silent | --silen | --sile | --sil)
1572 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1575 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1577 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1578 if test $ac_must_keep_next = true; then
1579 ac_must_keep_next=false # Got value, back to normal.
1582 *=* | --config-cache | -C | -disable-* | --disable-* \
1583 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1584 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1585 | -with-* | --with-* | -without-* | --without-* | --x)
1586 case "$ac_configure_args0 " in
1587 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1590 -* ) ac_must_keep_next=true ;;
1593 ac_configure_args="$ac_configure_args '$ac_arg'"
1598 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1599 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1601 # When interrupted or exit'd, cleanup temporary files, and complete
1602 # config.log. We remove comments because anyway the quotes in there
1603 # would cause problems or look ugly.
1604 # WARNING: Use '\'' to represent an apostrophe within the trap.
1605 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1606 trap 'exit_status=$?
1607 # Save into config.log some information that might help in debugging.
1612 ## ---------------- ##
1613 ## Cache variables. ##
1614 ## ---------------- ##
1617 # The following way of writing the cache mishandles newlines in values,
1619 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1620 eval ac_val=\$$ac_var
1624 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
1625 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1628 _ | IFS | as_nl) ;; #(
1629 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1630 *) $as_unset $ac_var ;;
1635 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1636 *${as_nl}ac_space=\ *)
1638 "s/'\''/'\''\\\\'\'''\''/g;
1639 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1642 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1650 ## ----------------- ##
1651 ## Output variables. ##
1652 ## ----------------- ##
1655 for ac_var in $ac_subst_vars
1657 eval ac_val=\$$ac_var
1659 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1661 $as_echo "$ac_var='\''$ac_val'\''"
1665 if test -n "$ac_subst_files"; then
1667 ## ------------------- ##
1668 ## File substitutions. ##
1669 ## ------------------- ##
1672 for ac_var in $ac_subst_files
1674 eval ac_val=\$$ac_var
1676 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1678 $as_echo "$ac_var='\''$ac_val'\''"
1683 if test -s confdefs.h; then
1693 test "$ac_signal" != 0 &&
1694 $as_echo "$as_me: caught signal $ac_signal"
1695 $as_echo "$as_me: exit $exit_status"
1697 rm -f core *.core core.conftest.* &&
1698 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1701 for ac_signal in 1 2 13 15; do
1702 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1706 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1707 rm -f -r conftest* confdefs.h
1709 # Predefined preprocessor variables.
1711 cat >>confdefs.h <<_ACEOF
1712 #define PACKAGE_NAME "$PACKAGE_NAME"
1716 cat >>confdefs.h <<_ACEOF
1717 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1721 cat >>confdefs.h <<_ACEOF
1722 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1726 cat >>confdefs.h <<_ACEOF
1727 #define PACKAGE_STRING "$PACKAGE_STRING"
1731 cat >>confdefs.h <<_ACEOF
1732 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1736 # Let the site file select an alternate cache file if it wants to.
1737 # Prefer an explicitly selected file to automatically selected ones.
1740 if test -n "$CONFIG_SITE"; then
1741 ac_site_file1=$CONFIG_SITE
1742 elif test "x$prefix" != xNONE; then
1743 ac_site_file1=$prefix/share/config.site
1744 ac_site_file2=$prefix/etc/config.site
1746 ac_site_file1=$ac_default_prefix/share/config.site
1747 ac_site_file2=$ac_default_prefix/etc/config.site
1749 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
1751 test "x$ac_site_file" = xNONE && continue
1752 if test -r "$ac_site_file"; then
1753 { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1754 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
1755 sed 's/^/| /' "$ac_site_file" >&5
1760 if test -r "$cache_file"; then
1761 # Some versions of bash will fail to source /dev/null (special
1762 # files actually), so we avoid doing that.
1763 if test -f "$cache_file"; then
1764 { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5
1765 $as_echo "$as_me: loading cache $cache_file" >&6;}
1767 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1768 *) . "./$cache_file";;
1772 { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5
1773 $as_echo "$as_me: creating cache $cache_file" >&6;}
1777 # Check that the precious variables saved in the cache have kept the same
1779 ac_cache_corrupted=false
1780 for ac_var in $ac_precious_vars; do
1781 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1782 eval ac_new_set=\$ac_env_${ac_var}_set
1783 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1784 eval ac_new_val=\$ac_env_${ac_var}_value
1785 case $ac_old_set,$ac_new_set in
1787 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1788 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1789 ac_cache_corrupted=: ;;
1791 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1792 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1793 ac_cache_corrupted=: ;;
1796 if test "x$ac_old_val" != "x$ac_new_val"; then
1797 # differences in whitespace do not lead to failure.
1798 ac_old_val_w=`echo x $ac_old_val`
1799 ac_new_val_w=`echo x $ac_new_val`
1800 if test "$ac_old_val_w" != "$ac_new_val_w"; then
1801 { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1802 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1803 ac_cache_corrupted=:
1805 { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
1806 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
1807 eval $ac_var=\$ac_old_val
1809 { $as_echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5
1810 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
1811 { $as_echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5
1812 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
1815 # Pass precious variables to config.status.
1816 if test "$ac_new_set" = set; then
1818 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1819 *) ac_arg=$ac_var=$ac_new_val ;;
1821 case " $ac_configure_args " in
1822 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1823 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1827 if $ac_cache_corrupted; then
1828 { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
1829 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1830 { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1831 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1832 { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1833 $as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1834 { (exit 1); exit 1; }; }
1862 ac_cpp='$CPP $CPPFLAGS'
1863 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1864 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1865 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1870 ac_config_headers="$ac_config_headers config.h"
1873 # fix warnings from autoconf + automake
1875 ac_cpp='$CPP $CPPFLAGS'
1876 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1877 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1878 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1879 if test -n "$ac_tool_prefix"; then
1880 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1881 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1882 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
1883 $as_echo_n "checking for $ac_word... " >&6; }
1884 if test "${ac_cv_prog_CC+set}" = set; then
1885 $as_echo_n "(cached) " >&6
1887 if test -n "$CC"; then
1888 ac_cv_prog_CC="$CC" # Let the user override the test.
1890 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1894 test -z "$as_dir" && as_dir=.
1895 for ac_exec_ext in '' $ac_executable_extensions; do
1896 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1897 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1898 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1908 if test -n "$CC"; then
1909 { $as_echo "$as_me:$LINENO: result: $CC" >&5
1910 $as_echo "$CC" >&6; }
1912 { $as_echo "$as_me:$LINENO: result: no" >&5
1913 $as_echo "no" >&6; }
1918 if test -z "$ac_cv_prog_CC"; then
1920 # Extract the first word of "gcc", so it can be a program name with args.
1921 set dummy gcc; ac_word=$2
1922 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
1923 $as_echo_n "checking for $ac_word... " >&6; }
1924 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1925 $as_echo_n "(cached) " >&6
1927 if test -n "$ac_ct_CC"; then
1928 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1930 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1934 test -z "$as_dir" && as_dir=.
1935 for ac_exec_ext in '' $ac_executable_extensions; do
1936 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1937 ac_cv_prog_ac_ct_CC="gcc"
1938 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1947 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1948 if test -n "$ac_ct_CC"; then
1949 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1950 $as_echo "$ac_ct_CC" >&6; }
1952 { $as_echo "$as_me:$LINENO: result: no" >&5
1953 $as_echo "no" >&6; }
1956 if test "x$ac_ct_CC" = x; then
1959 case $cross_compiling:$ac_tool_warned in
1961 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
1962 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
1963 ac_tool_warned=yes ;;
1971 if test -z "$CC"; then
1972 if test -n "$ac_tool_prefix"; then
1973 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1974 set dummy ${ac_tool_prefix}cc; ac_word=$2
1975 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
1976 $as_echo_n "checking for $ac_word... " >&6; }
1977 if test "${ac_cv_prog_CC+set}" = set; then
1978 $as_echo_n "(cached) " >&6
1980 if test -n "$CC"; then
1981 ac_cv_prog_CC="$CC" # Let the user override the test.
1983 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1987 test -z "$as_dir" && as_dir=.
1988 for ac_exec_ext in '' $ac_executable_extensions; do
1989 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1990 ac_cv_prog_CC="${ac_tool_prefix}cc"
1991 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2001 if test -n "$CC"; then
2002 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2003 $as_echo "$CC" >&6; }
2005 { $as_echo "$as_me:$LINENO: result: no" >&5
2006 $as_echo "no" >&6; }
2012 if test -z "$CC"; then
2013 # Extract the first word of "cc", so it can be a program name with args.
2014 set dummy cc; ac_word=$2
2015 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2016 $as_echo_n "checking for $ac_word... " >&6; }
2017 if test "${ac_cv_prog_CC+set}" = set; then
2018 $as_echo_n "(cached) " >&6
2020 if test -n "$CC"; then
2021 ac_cv_prog_CC="$CC" # Let the user override the test.
2024 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2028 test -z "$as_dir" && as_dir=.
2029 for ac_exec_ext in '' $ac_executable_extensions; do
2030 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2031 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2032 ac_prog_rejected=yes
2036 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2043 if test $ac_prog_rejected = yes; then
2044 # We found a bogon in the path, so make sure we never use it.
2045 set dummy $ac_cv_prog_CC
2047 if test $# != 0; then
2048 # We chose a different compiler from the bogus one.
2049 # However, it has the same basename, so the bogon will be chosen
2050 # first if we set CC to just the basename; use the full file name.
2052 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2058 if test -n "$CC"; then
2059 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2060 $as_echo "$CC" >&6; }
2062 { $as_echo "$as_me:$LINENO: result: no" >&5
2063 $as_echo "no" >&6; }
2068 if test -z "$CC"; then
2069 if test -n "$ac_tool_prefix"; then
2070 for ac_prog in cl.exe
2072 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2073 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2074 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2075 $as_echo_n "checking for $ac_word... " >&6; }
2076 if test "${ac_cv_prog_CC+set}" = set; then
2077 $as_echo_n "(cached) " >&6
2079 if test -n "$CC"; then
2080 ac_cv_prog_CC="$CC" # Let the user override the test.
2082 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2086 test -z "$as_dir" && as_dir=.
2087 for ac_exec_ext in '' $ac_executable_extensions; do
2088 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2089 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2090 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2100 if test -n "$CC"; then
2101 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2102 $as_echo "$CC" >&6; }
2104 { $as_echo "$as_me:$LINENO: result: no" >&5
2105 $as_echo "no" >&6; }
2109 test -n "$CC" && break
2112 if test -z "$CC"; then
2114 for ac_prog in cl.exe
2116 # Extract the first word of "$ac_prog", so it can be a program name with args.
2117 set dummy $ac_prog; ac_word=$2
2118 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2119 $as_echo_n "checking for $ac_word... " >&6; }
2120 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2121 $as_echo_n "(cached) " >&6
2123 if test -n "$ac_ct_CC"; then
2124 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2126 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2130 test -z "$as_dir" && as_dir=.
2131 for ac_exec_ext in '' $ac_executable_extensions; do
2132 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2133 ac_cv_prog_ac_ct_CC="$ac_prog"
2134 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2143 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2144 if test -n "$ac_ct_CC"; then
2145 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2146 $as_echo "$ac_ct_CC" >&6; }
2148 { $as_echo "$as_me:$LINENO: result: no" >&5
2149 $as_echo "no" >&6; }
2153 test -n "$ac_ct_CC" && break
2156 if test "x$ac_ct_CC" = x; then
2159 case $cross_compiling:$ac_tool_warned in
2161 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2162 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2163 ac_tool_warned=yes ;;
2172 test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2173 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2174 { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2175 See \`config.log' for more details." >&5
2176 $as_echo "$as_me: error: no acceptable C compiler found in \$PATH
2177 See \`config.log' for more details." >&2;}
2178 { (exit 1); exit 1; }; }; }
2180 # Provide some information about the compiler.
2181 $as_echo "$as_me:$LINENO: checking for C compiler version" >&5
2184 { (ac_try="$ac_compiler --version >&5"
2186 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2187 *) ac_try_echo=$ac_try;;
2189 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2190 $as_echo "$ac_try_echo") >&5
2191 (eval "$ac_compiler --version >&5") 2>&5
2193 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2194 (exit $ac_status); }
2195 { (ac_try="$ac_compiler -v >&5"
2197 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2198 *) ac_try_echo=$ac_try;;
2200 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2201 $as_echo "$ac_try_echo") >&5
2202 (eval "$ac_compiler -v >&5") 2>&5
2204 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2205 (exit $ac_status); }
2206 { (ac_try="$ac_compiler -V >&5"
2208 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2209 *) ac_try_echo=$ac_try;;
2211 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2212 $as_echo "$ac_try_echo") >&5
2213 (eval "$ac_compiler -V >&5") 2>&5
2215 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2216 (exit $ac_status); }
2218 cat >conftest.$ac_ext <<_ACEOF
2221 cat confdefs.h >>conftest.$ac_ext
2222 cat >>conftest.$ac_ext <<_ACEOF
2223 /* end confdefs.h. */
2233 ac_clean_files_save=$ac_clean_files
2234 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2235 # Try to create an executable without -o first, disregard a.out.
2236 # It will help us diagnose broken compilers, and finding out an intuition
2238 { $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2239 $as_echo_n "checking for C compiler default output file name... " >&6; }
2240 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2242 # The possible output files:
2243 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2246 for ac_file in $ac_files
2249 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2250 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2255 if { (ac_try="$ac_link_default"
2257 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2258 *) ac_try_echo=$ac_try;;
2260 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2261 $as_echo "$ac_try_echo") >&5
2262 (eval "$ac_link_default") 2>&5
2264 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2265 (exit $ac_status); }; then
2266 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2267 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2268 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2269 # so that the user can short-circuit this test for compilers unknown to
2271 for ac_file in $ac_files ''
2273 test -f "$ac_file" || continue
2275 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2278 # We found the default executable, but exeext='' is most
2282 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2284 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2286 # We set ac_cv_exeext here because the later test for it is not
2287 # safe: cross compilers may not add the suffix if given an `-o'
2288 # argument, so we may need to know it at that point already.
2289 # Even if this section looks crufty: it has the advantage of
2296 test "$ac_cv_exeext" = no && ac_cv_exeext=
2302 { $as_echo "$as_me:$LINENO: result: $ac_file" >&5
2303 $as_echo "$ac_file" >&6; }
2304 if test -z "$ac_file"; then
2305 $as_echo "$as_me: failed program was:" >&5
2306 sed 's/^/| /' conftest.$ac_ext >&5
2308 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2309 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2310 { { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables
2311 See \`config.log' for more details." >&5
2312 $as_echo "$as_me: error: C compiler cannot create executables
2313 See \`config.log' for more details." >&2;}
2314 { (exit 77); exit 77; }; }; }
2317 ac_exeext=$ac_cv_exeext
2319 # Check that the compiler produces executables we can run. If not, either
2320 # the compiler is broken, or we cross compile.
2321 { $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2322 $as_echo_n "checking whether the C compiler works... " >&6; }
2323 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2324 # If not cross compiling, check that we can run a simple program.
2325 if test "$cross_compiling" != yes; then
2326 if { ac_try='./$ac_file'
2327 { (case "(($ac_try" in
2328 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2329 *) ac_try_echo=$ac_try;;
2331 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2332 $as_echo "$ac_try_echo") >&5
2333 (eval "$ac_try") 2>&5
2335 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2336 (exit $ac_status); }; }; then
2339 if test "$cross_compiling" = maybe; then
2342 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2343 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2344 { { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs.
2345 If you meant to cross compile, use \`--host'.
2346 See \`config.log' for more details." >&5
2347 $as_echo "$as_me: error: cannot run C compiled programs.
2348 If you meant to cross compile, use \`--host'.
2349 See \`config.log' for more details." >&2;}
2350 { (exit 1); exit 1; }; }; }
2354 { $as_echo "$as_me:$LINENO: result: yes" >&5
2355 $as_echo "yes" >&6; }
2357 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
2358 ac_clean_files=$ac_clean_files_save
2359 # Check that the compiler produces executables we can run. If not, either
2360 # the compiler is broken, or we cross compile.
2361 { $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2362 $as_echo_n "checking whether we are cross compiling... " >&6; }
2363 { $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5
2364 $as_echo "$cross_compiling" >&6; }
2366 { $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5
2367 $as_echo_n "checking for suffix of executables... " >&6; }
2368 if { (ac_try="$ac_link"
2370 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2371 *) ac_try_echo=$ac_try;;
2373 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2374 $as_echo "$ac_try_echo") >&5
2375 (eval "$ac_link") 2>&5
2377 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2378 (exit $ac_status); }; then
2379 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2380 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2381 # work properly (i.e., refer to `conftest.exe'), while it won't with
2383 for ac_file in conftest.exe conftest conftest.*; do
2384 test -f "$ac_file" || continue
2386 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2387 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2393 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2394 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2395 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2396 See \`config.log' for more details." >&5
2397 $as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2398 See \`config.log' for more details." >&2;}
2399 { (exit 1); exit 1; }; }; }
2402 rm -f conftest$ac_cv_exeext
2403 { $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2404 $as_echo "$ac_cv_exeext" >&6; }
2406 rm -f conftest.$ac_ext
2407 EXEEXT=$ac_cv_exeext
2409 { $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5
2410 $as_echo_n "checking for suffix of object files... " >&6; }
2411 if test "${ac_cv_objext+set}" = set; then
2412 $as_echo_n "(cached) " >&6
2414 cat >conftest.$ac_ext <<_ACEOF
2417 cat confdefs.h >>conftest.$ac_ext
2418 cat >>conftest.$ac_ext <<_ACEOF
2419 /* end confdefs.h. */
2429 rm -f conftest.o conftest.obj
2430 if { (ac_try="$ac_compile"
2432 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2433 *) ac_try_echo=$ac_try;;
2435 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2436 $as_echo "$ac_try_echo") >&5
2437 (eval "$ac_compile") 2>&5
2439 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2440 (exit $ac_status); }; then
2441 for ac_file in conftest.o conftest.obj conftest.*; do
2442 test -f "$ac_file" || continue;
2444 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
2445 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2450 $as_echo "$as_me: failed program was:" >&5
2451 sed 's/^/| /' conftest.$ac_ext >&5
2453 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2454 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2455 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2456 See \`config.log' for more details." >&5
2457 $as_echo "$as_me: error: cannot compute suffix of object files: cannot compile
2458 See \`config.log' for more details." >&2;}
2459 { (exit 1); exit 1; }; }; }
2462 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2464 { $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2465 $as_echo "$ac_cv_objext" >&6; }
2466 OBJEXT=$ac_cv_objext
2468 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2469 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
2470 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2471 $as_echo_n "(cached) " >&6
2473 cat >conftest.$ac_ext <<_ACEOF
2476 cat confdefs.h >>conftest.$ac_ext
2477 cat >>conftest.$ac_ext <<_ACEOF
2478 /* end confdefs.h. */
2491 rm -f conftest.$ac_objext
2492 if { (ac_try="$ac_compile"
2494 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2495 *) ac_try_echo=$ac_try;;
2497 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2498 $as_echo "$ac_try_echo") >&5
2499 (eval "$ac_compile") 2>conftest.er1
2501 grep -v '^ *+' conftest.er1 >conftest.err
2503 cat conftest.err >&5
2504 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2505 (exit $ac_status); } && {
2506 test -z "$ac_c_werror_flag" ||
2507 test ! -s conftest.err
2508 } && test -s conftest.$ac_objext; then
2511 $as_echo "$as_me: failed program was:" >&5
2512 sed 's/^/| /' conftest.$ac_ext >&5
2517 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2518 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2521 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2522 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
2523 if test $ac_compiler_gnu = yes; then
2528 ac_test_CFLAGS=${CFLAGS+set}
2529 ac_save_CFLAGS=$CFLAGS
2530 { $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2531 $as_echo_n "checking whether $CC accepts -g... " >&6; }
2532 if test "${ac_cv_prog_cc_g+set}" = set; then
2533 $as_echo_n "(cached) " >&6
2535 ac_save_c_werror_flag=$ac_c_werror_flag
2536 ac_c_werror_flag=yes
2539 cat >conftest.$ac_ext <<_ACEOF
2542 cat confdefs.h >>conftest.$ac_ext
2543 cat >>conftest.$ac_ext <<_ACEOF
2544 /* end confdefs.h. */
2554 rm -f conftest.$ac_objext
2555 if { (ac_try="$ac_compile"
2557 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2558 *) ac_try_echo=$ac_try;;
2560 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2561 $as_echo "$ac_try_echo") >&5
2562 (eval "$ac_compile") 2>conftest.er1
2564 grep -v '^ *+' conftest.er1 >conftest.err
2566 cat conftest.err >&5
2567 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2568 (exit $ac_status); } && {
2569 test -z "$ac_c_werror_flag" ||
2570 test ! -s conftest.err
2571 } && test -s conftest.$ac_objext; then
2574 $as_echo "$as_me: failed program was:" >&5
2575 sed 's/^/| /' conftest.$ac_ext >&5
2578 cat >conftest.$ac_ext <<_ACEOF
2581 cat confdefs.h >>conftest.$ac_ext
2582 cat >>conftest.$ac_ext <<_ACEOF
2583 /* end confdefs.h. */
2593 rm -f conftest.$ac_objext
2594 if { (ac_try="$ac_compile"
2596 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2597 *) ac_try_echo=$ac_try;;
2599 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2600 $as_echo "$ac_try_echo") >&5
2601 (eval "$ac_compile") 2>conftest.er1
2603 grep -v '^ *+' conftest.er1 >conftest.err
2605 cat conftest.err >&5
2606 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2607 (exit $ac_status); } && {
2608 test -z "$ac_c_werror_flag" ||
2609 test ! -s conftest.err
2610 } && test -s conftest.$ac_objext; then
2613 $as_echo "$as_me: failed program was:" >&5
2614 sed 's/^/| /' conftest.$ac_ext >&5
2616 ac_c_werror_flag=$ac_save_c_werror_flag
2618 cat >conftest.$ac_ext <<_ACEOF
2621 cat confdefs.h >>conftest.$ac_ext
2622 cat >>conftest.$ac_ext <<_ACEOF
2623 /* end confdefs.h. */
2633 rm -f conftest.$ac_objext
2634 if { (ac_try="$ac_compile"
2636 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2637 *) ac_try_echo=$ac_try;;
2639 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2640 $as_echo "$ac_try_echo") >&5
2641 (eval "$ac_compile") 2>conftest.er1
2643 grep -v '^ *+' conftest.er1 >conftest.err
2645 cat conftest.err >&5
2646 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2647 (exit $ac_status); } && {
2648 test -z "$ac_c_werror_flag" ||
2649 test ! -s conftest.err
2650 } && test -s conftest.$ac_objext; then
2653 $as_echo "$as_me: failed program was:" >&5
2654 sed 's/^/| /' conftest.$ac_ext >&5
2659 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2662 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2665 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2666 ac_c_werror_flag=$ac_save_c_werror_flag
2668 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2669 $as_echo "$ac_cv_prog_cc_g" >&6; }
2670 if test "$ac_test_CFLAGS" = set; then
2671 CFLAGS=$ac_save_CFLAGS
2672 elif test $ac_cv_prog_cc_g = yes; then
2673 if test "$GCC" = yes; then
2679 if test "$GCC" = yes; then
2685 { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2686 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
2687 if test "${ac_cv_prog_cc_c89+set}" = set; then
2688 $as_echo_n "(cached) " >&6
2690 ac_cv_prog_cc_c89=no
2692 cat >conftest.$ac_ext <<_ACEOF
2695 cat confdefs.h >>conftest.$ac_ext
2696 cat >>conftest.$ac_ext <<_ACEOF
2697 /* end confdefs.h. */
2700 #include <sys/types.h>
2701 #include <sys/stat.h>
2702 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2703 struct buf { int x; };
2704 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2705 static char *e (p, i)
2711 static char *f (char * (*g) (char **, int), char **p, ...)
2716 s = g (p, va_arg (v,int));
2721 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2722 function prototypes and stuff, but not '\xHH' hex character constants.
2723 These don't provoke an error unfortunately, instead are silently treated
2724 as 'x'. The following induces an error, until -std is added to get
2725 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2726 array size at least. It's necessary to write '\x00'==0 to get something
2727 that's true only with -std. */
2728 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2730 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2731 inside strings and character constants. */
2733 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2735 int test (int i, double x);
2736 struct s1 {int (*f) (int a);};
2737 struct s2 {int (*f) (double a);};
2738 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2744 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2749 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2750 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2752 CC="$ac_save_CC $ac_arg"
2753 rm -f conftest.$ac_objext
2754 if { (ac_try="$ac_compile"
2756 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2757 *) ac_try_echo=$ac_try;;
2759 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2760 $as_echo "$ac_try_echo") >&5
2761 (eval "$ac_compile") 2>conftest.er1
2763 grep -v '^ *+' conftest.er1 >conftest.err
2765 cat conftest.err >&5
2766 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2767 (exit $ac_status); } && {
2768 test -z "$ac_c_werror_flag" ||
2769 test ! -s conftest.err
2770 } && test -s conftest.$ac_objext; then
2771 ac_cv_prog_cc_c89=$ac_arg
2773 $as_echo "$as_me: failed program was:" >&5
2774 sed 's/^/| /' conftest.$ac_ext >&5
2779 rm -f core conftest.err conftest.$ac_objext
2780 test "x$ac_cv_prog_cc_c89" != "xno" && break
2782 rm -f conftest.$ac_ext
2787 case "x$ac_cv_prog_cc_c89" in
2789 { $as_echo "$as_me:$LINENO: result: none needed" >&5
2790 $as_echo "none needed" >&6; } ;;
2792 { $as_echo "$as_me:$LINENO: result: unsupported" >&5
2793 $as_echo "unsupported" >&6; } ;;
2795 CC="$CC $ac_cv_prog_cc_c89"
2796 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
2797 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
2802 ac_cpp='$CPP $CPPFLAGS'
2803 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2804 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2805 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2809 ac_cpp='$CPP $CPPFLAGS'
2810 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2811 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2812 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2813 { $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2814 $as_echo_n "checking how to run the C preprocessor... " >&6; }
2815 # On Suns, sometimes $CPP names a directory.
2816 if test -n "$CPP" && test -d "$CPP"; then
2819 if test -z "$CPP"; then
2820 if test "${ac_cv_prog_CPP+set}" = set; then
2821 $as_echo_n "(cached) " >&6
2823 # Double quotes because CPP needs to be expanded
2824 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2827 for ac_c_preproc_warn_flag in '' yes
2829 # Use a header file that comes with gcc, so configuring glibc
2830 # with a fresh cross-compiler works.
2831 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2832 # <limits.h> exists even on freestanding compilers.
2833 # On the NeXT, cc -E runs the code through the compiler's parser,
2834 # not just through cpp. "Syntax error" is here to catch this case.
2835 cat >conftest.$ac_ext <<_ACEOF
2838 cat confdefs.h >>conftest.$ac_ext
2839 cat >>conftest.$ac_ext <<_ACEOF
2840 /* end confdefs.h. */
2842 # include <limits.h>
2844 # include <assert.h>
2848 if { (ac_try="$ac_cpp conftest.$ac_ext"
2850 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2851 *) ac_try_echo=$ac_try;;
2853 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2854 $as_echo "$ac_try_echo") >&5
2855 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
2857 grep -v '^ *+' conftest.er1 >conftest.err
2859 cat conftest.err >&5
2860 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2861 (exit $ac_status); } >/dev/null && {
2862 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2863 test ! -s conftest.err
2867 $as_echo "$as_me: failed program was:" >&5
2868 sed 's/^/| /' conftest.$ac_ext >&5
2870 # Broken: fails on valid input.
2874 rm -f conftest.err conftest.$ac_ext
2876 # OK, works on sane cases. Now check whether nonexistent headers
2877 # can be detected and how.
2878 cat >conftest.$ac_ext <<_ACEOF
2881 cat confdefs.h >>conftest.$ac_ext
2882 cat >>conftest.$ac_ext <<_ACEOF
2883 /* end confdefs.h. */
2884 #include <ac_nonexistent.h>
2886 if { (ac_try="$ac_cpp conftest.$ac_ext"
2888 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2889 *) ac_try_echo=$ac_try;;
2891 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2892 $as_echo "$ac_try_echo") >&5
2893 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
2895 grep -v '^ *+' conftest.er1 >conftest.err
2897 cat conftest.err >&5
2898 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2899 (exit $ac_status); } >/dev/null && {
2900 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2901 test ! -s conftest.err
2903 # Broken: success on invalid input.
2906 $as_echo "$as_me: failed program was:" >&5
2907 sed 's/^/| /' conftest.$ac_ext >&5
2909 # Passes both tests.
2914 rm -f conftest.err conftest.$ac_ext
2917 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2918 rm -f conftest.err conftest.$ac_ext
2919 if $ac_preproc_ok; then
2931 { $as_echo "$as_me:$LINENO: result: $CPP" >&5
2932 $as_echo "$CPP" >&6; }
2934 for ac_c_preproc_warn_flag in '' yes
2936 # Use a header file that comes with gcc, so configuring glibc
2937 # with a fresh cross-compiler works.
2938 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2939 # <limits.h> exists even on freestanding compilers.
2940 # On the NeXT, cc -E runs the code through the compiler's parser,
2941 # not just through cpp. "Syntax error" is here to catch this case.
2942 cat >conftest.$ac_ext <<_ACEOF
2945 cat confdefs.h >>conftest.$ac_ext
2946 cat >>conftest.$ac_ext <<_ACEOF
2947 /* end confdefs.h. */
2949 # include <limits.h>
2951 # include <assert.h>
2955 if { (ac_try="$ac_cpp conftest.$ac_ext"
2957 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2958 *) ac_try_echo=$ac_try;;
2960 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2961 $as_echo "$ac_try_echo") >&5
2962 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
2964 grep -v '^ *+' conftest.er1 >conftest.err
2966 cat conftest.err >&5
2967 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2968 (exit $ac_status); } >/dev/null && {
2969 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2970 test ! -s conftest.err
2974 $as_echo "$as_me: failed program was:" >&5
2975 sed 's/^/| /' conftest.$ac_ext >&5
2977 # Broken: fails on valid input.
2981 rm -f conftest.err conftest.$ac_ext
2983 # OK, works on sane cases. Now check whether nonexistent headers
2984 # can be detected and how.
2985 cat >conftest.$ac_ext <<_ACEOF
2988 cat confdefs.h >>conftest.$ac_ext
2989 cat >>conftest.$ac_ext <<_ACEOF
2990 /* end confdefs.h. */
2991 #include <ac_nonexistent.h>
2993 if { (ac_try="$ac_cpp conftest.$ac_ext"
2995 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2996 *) ac_try_echo=$ac_try;;
2998 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2999 $as_echo "$ac_try_echo") >&5
3000 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3002 grep -v '^ *+' conftest.er1 >conftest.err
3004 cat conftest.err >&5
3005 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3006 (exit $ac_status); } >/dev/null && {
3007 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3008 test ! -s conftest.err
3010 # Broken: success on invalid input.
3013 $as_echo "$as_me: failed program was:" >&5
3014 sed 's/^/| /' conftest.$ac_ext >&5
3016 # Passes both tests.
3021 rm -f conftest.err conftest.$ac_ext
3024 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3025 rm -f conftest.err conftest.$ac_ext
3026 if $ac_preproc_ok; then
3029 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3030 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3031 { { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3032 See \`config.log' for more details." >&5
3033 $as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3034 See \`config.log' for more details." >&2;}
3035 { (exit 1); exit 1; }; }; }
3039 ac_cpp='$CPP $CPPFLAGS'
3040 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3041 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3042 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3045 { $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3046 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3047 if test "${ac_cv_path_GREP+set}" = set; then
3048 $as_echo_n "(cached) " >&6
3050 if test -z "$GREP"; then
3051 ac_path_GREP_found=false
3052 # Loop through the user's path and test for each of PROGNAME-LIST
3053 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3054 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3057 test -z "$as_dir" && as_dir=.
3058 for ac_prog in grep ggrep; do
3059 for ac_exec_ext in '' $ac_executable_extensions; do
3060 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3061 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3062 # Check for GNU ac_path_GREP and select it if it is found.
3063 # Check for GNU $ac_path_GREP
3064 case `"$ac_path_GREP" --version 2>&1` in
3066 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3069 $as_echo_n 0123456789 >"conftest.in"
3072 cat "conftest.in" "conftest.in" >"conftest.tmp"
3073 mv "conftest.tmp" "conftest.in"
3074 cp "conftest.in" "conftest.nl"
3075 $as_echo 'GREP' >> "conftest.nl"
3076 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3077 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3078 ac_count=`expr $ac_count + 1`
3079 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3080 # Best one so far, save it but keep looking for a better one
3081 ac_cv_path_GREP="$ac_path_GREP"
3082 ac_path_GREP_max=$ac_count
3084 # 10*(2^10) chars as input seems more than enough
3085 test $ac_count -gt 10 && break
3087 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3090 $ac_path_GREP_found && break 3
3095 if test -z "$ac_cv_path_GREP"; then
3096 { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3097 $as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3098 { (exit 1); exit 1; }; }
3101 ac_cv_path_GREP=$GREP
3105 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3106 $as_echo "$ac_cv_path_GREP" >&6; }
3107 GREP="$ac_cv_path_GREP"
3110 { $as_echo "$as_me:$LINENO: checking for egrep" >&5
3111 $as_echo_n "checking for egrep... " >&6; }
3112 if test "${ac_cv_path_EGREP+set}" = set; then
3113 $as_echo_n "(cached) " >&6
3115 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3116 then ac_cv_path_EGREP="$GREP -E"
3118 if test -z "$EGREP"; then
3119 ac_path_EGREP_found=false
3120 # Loop through the user's path and test for each of PROGNAME-LIST
3121 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3122 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3125 test -z "$as_dir" && as_dir=.
3126 for ac_prog in egrep; do
3127 for ac_exec_ext in '' $ac_executable_extensions; do
3128 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3129 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3130 # Check for GNU ac_path_EGREP and select it if it is found.
3131 # Check for GNU $ac_path_EGREP
3132 case `"$ac_path_EGREP" --version 2>&1` in
3134 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3137 $as_echo_n 0123456789 >"conftest.in"
3140 cat "conftest.in" "conftest.in" >"conftest.tmp"
3141 mv "conftest.tmp" "conftest.in"
3142 cp "conftest.in" "conftest.nl"
3143 $as_echo 'EGREP' >> "conftest.nl"
3144 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3145 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3146 ac_count=`expr $ac_count + 1`
3147 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3148 # Best one so far, save it but keep looking for a better one
3149 ac_cv_path_EGREP="$ac_path_EGREP"
3150 ac_path_EGREP_max=$ac_count
3152 # 10*(2^10) chars as input seems more than enough
3153 test $ac_count -gt 10 && break
3155 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3158 $ac_path_EGREP_found && break 3
3163 if test -z "$ac_cv_path_EGREP"; then
3164 { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3165 $as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3166 { (exit 1); exit 1; }; }
3169 ac_cv_path_EGREP=$EGREP
3174 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3175 $as_echo "$ac_cv_path_EGREP" >&6; }
3176 EGREP="$ac_cv_path_EGREP"
3179 { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3180 $as_echo_n "checking for ANSI C header files... " >&6; }
3181 if test "${ac_cv_header_stdc+set}" = set; then
3182 $as_echo_n "(cached) " >&6
3184 cat >conftest.$ac_ext <<_ACEOF
3187 cat confdefs.h >>conftest.$ac_ext
3188 cat >>conftest.$ac_ext <<_ACEOF
3189 /* end confdefs.h. */
3203 rm -f conftest.$ac_objext
3204 if { (ac_try="$ac_compile"
3206 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3207 *) ac_try_echo=$ac_try;;
3209 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3210 $as_echo "$ac_try_echo") >&5
3211 (eval "$ac_compile") 2>conftest.er1
3213 grep -v '^ *+' conftest.er1 >conftest.err
3215 cat conftest.err >&5
3216 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3217 (exit $ac_status); } && {
3218 test -z "$ac_c_werror_flag" ||
3219 test ! -s conftest.err
3220 } && test -s conftest.$ac_objext; then
3221 ac_cv_header_stdc=yes
3223 $as_echo "$as_me: failed program was:" >&5
3224 sed 's/^/| /' conftest.$ac_ext >&5
3226 ac_cv_header_stdc=no
3229 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3231 if test $ac_cv_header_stdc = yes; then
3232 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3233 cat >conftest.$ac_ext <<_ACEOF
3236 cat confdefs.h >>conftest.$ac_ext
3237 cat >>conftest.$ac_ext <<_ACEOF
3238 /* end confdefs.h. */
3242 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3243 $EGREP "memchr" >/dev/null 2>&1; then
3246 ac_cv_header_stdc=no
3252 if test $ac_cv_header_stdc = yes; then
3253 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3254 cat >conftest.$ac_ext <<_ACEOF
3257 cat confdefs.h >>conftest.$ac_ext
3258 cat >>conftest.$ac_ext <<_ACEOF
3259 /* end confdefs.h. */
3263 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3264 $EGREP "free" >/dev/null 2>&1; then
3267 ac_cv_header_stdc=no
3273 if test $ac_cv_header_stdc = yes; then
3274 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3275 if test "$cross_compiling" = yes; then
3278 cat >conftest.$ac_ext <<_ACEOF
3281 cat confdefs.h >>conftest.$ac_ext
3282 cat >>conftest.$ac_ext <<_ACEOF
3283 /* end confdefs.h. */
3286 #if ((' ' & 0x0FF) == 0x020)
3287 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3288 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3290 # define ISLOWER(c) \
3291 (('a' <= (c) && (c) <= 'i') \
3292 || ('j' <= (c) && (c) <= 'r') \
3293 || ('s' <= (c) && (c) <= 'z'))
3294 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3297 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3302 for (i = 0; i < 256; i++)
3303 if (XOR (islower (i), ISLOWER (i))
3304 || toupper (i) != TOUPPER (i))
3309 rm -f conftest$ac_exeext
3310 if { (ac_try="$ac_link"
3312 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3313 *) ac_try_echo=$ac_try;;
3315 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3316 $as_echo "$ac_try_echo") >&5
3317 (eval "$ac_link") 2>&5
3319 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3320 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3321 { (case "(($ac_try" in
3322 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3323 *) ac_try_echo=$ac_try;;
3325 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3326 $as_echo "$ac_try_echo") >&5
3327 (eval "$ac_try") 2>&5
3329 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3330 (exit $ac_status); }; }; then
3333 $as_echo "$as_me: program exited with status $ac_status" >&5
3334 $as_echo "$as_me: failed program was:" >&5
3335 sed 's/^/| /' conftest.$ac_ext >&5
3338 ac_cv_header_stdc=no
3340 rm -rf conftest.dSYM
3341 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3347 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3348 $as_echo "$ac_cv_header_stdc" >&6; }
3349 if test $ac_cv_header_stdc = yes; then
3351 cat >>confdefs.h <<\_ACEOF
3352 #define STDC_HEADERS 1
3357 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3367 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3368 inttypes.h stdint.h unistd.h
3370 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
3371 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
3372 $as_echo_n "checking for $ac_header... " >&6; }
3373 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
3374 $as_echo_n "(cached) " >&6
3376 cat >conftest.$ac_ext <<_ACEOF
3379 cat confdefs.h >>conftest.$ac_ext
3380 cat >>conftest.$ac_ext <<_ACEOF
3381 /* end confdefs.h. */
3382 $ac_includes_default
3384 #include <$ac_header>
3386 rm -f conftest.$ac_objext
3387 if { (ac_try="$ac_compile"
3389 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3390 *) ac_try_echo=$ac_try;;
3392 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3393 $as_echo "$ac_try_echo") >&5
3394 (eval "$ac_compile") 2>conftest.er1
3396 grep -v '^ *+' conftest.er1 >conftest.err
3398 cat conftest.err >&5
3399 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3400 (exit $ac_status); } && {
3401 test -z "$ac_c_werror_flag" ||
3402 test ! -s conftest.err
3403 } && test -s conftest.$ac_objext; then
3404 eval "$as_ac_Header=yes"
3406 $as_echo "$as_me: failed program was:" >&5
3407 sed 's/^/| /' conftest.$ac_ext >&5
3409 eval "$as_ac_Header=no"
3412 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3414 ac_res=`eval 'as_val=${'$as_ac_Header'}
3415 $as_echo "$as_val"'`
3416 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
3417 $as_echo "$ac_res" >&6; }
3418 as_val=`eval 'as_val=${'$as_ac_Header'}
3419 $as_echo "$as_val"'`
3420 if test "x$as_val" = x""yes; then
3421 cat >>confdefs.h <<_ACEOF
3422 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
3431 if test "${ac_cv_header_minix_config_h+set}" = set; then
3432 { $as_echo "$as_me:$LINENO: checking for minix/config.h" >&5
3433 $as_echo_n "checking for minix/config.h... " >&6; }
3434 if test "${ac_cv_header_minix_config_h+set}" = set; then
3435 $as_echo_n "(cached) " >&6
3437 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
3438 $as_echo "$ac_cv_header_minix_config_h" >&6; }
3440 # Is the header compilable?
3441 { $as_echo "$as_me:$LINENO: checking minix/config.h usability" >&5
3442 $as_echo_n "checking minix/config.h usability... " >&6; }
3443 cat >conftest.$ac_ext <<_ACEOF
3446 cat confdefs.h >>conftest.$ac_ext
3447 cat >>conftest.$ac_ext <<_ACEOF
3448 /* end confdefs.h. */
3449 $ac_includes_default
3450 #include <minix/config.h>
3452 rm -f conftest.$ac_objext
3453 if { (ac_try="$ac_compile"
3455 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3456 *) ac_try_echo=$ac_try;;
3458 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3459 $as_echo "$ac_try_echo") >&5
3460 (eval "$ac_compile") 2>conftest.er1
3462 grep -v '^ *+' conftest.er1 >conftest.err
3464 cat conftest.err >&5
3465 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3466 (exit $ac_status); } && {
3467 test -z "$ac_c_werror_flag" ||
3468 test ! -s conftest.err
3469 } && test -s conftest.$ac_objext; then
3470 ac_header_compiler=yes
3472 $as_echo "$as_me: failed program was:" >&5
3473 sed 's/^/| /' conftest.$ac_ext >&5
3475 ac_header_compiler=no
3478 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3479 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3480 $as_echo "$ac_header_compiler" >&6; }
3482 # Is the header present?
3483 { $as_echo "$as_me:$LINENO: checking minix/config.h presence" >&5
3484 $as_echo_n "checking minix/config.h presence... " >&6; }
3485 cat >conftest.$ac_ext <<_ACEOF
3488 cat confdefs.h >>conftest.$ac_ext
3489 cat >>conftest.$ac_ext <<_ACEOF
3490 /* end confdefs.h. */
3491 #include <minix/config.h>
3493 if { (ac_try="$ac_cpp conftest.$ac_ext"
3495 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3496 *) ac_try_echo=$ac_try;;
3498 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3499 $as_echo "$ac_try_echo") >&5
3500 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3502 grep -v '^ *+' conftest.er1 >conftest.err
3504 cat conftest.err >&5
3505 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3506 (exit $ac_status); } >/dev/null && {
3507 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3508 test ! -s conftest.err
3510 ac_header_preproc=yes
3512 $as_echo "$as_me: failed program was:" >&5
3513 sed 's/^/| /' conftest.$ac_ext >&5
3515 ac_header_preproc=no
3518 rm -f conftest.err conftest.$ac_ext
3519 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3520 $as_echo "$ac_header_preproc" >&6; }
3522 # So? What about this header?
3523 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
3525 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&5
3526 $as_echo "$as_me: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
3527 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the compiler's result" >&5
3528 $as_echo "$as_me: WARNING: minix/config.h: proceeding with the compiler's result" >&2;}
3529 ac_header_preproc=yes
3532 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: present but cannot be compiled" >&5
3533 $as_echo "$as_me: WARNING: minix/config.h: present but cannot be compiled" >&2;}
3534 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: check for missing prerequisite headers?" >&5
3535 $as_echo "$as_me: WARNING: minix/config.h: check for missing prerequisite headers?" >&2;}
3536 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: see the Autoconf documentation" >&5
3537 $as_echo "$as_me: WARNING: minix/config.h: see the Autoconf documentation" >&2;}
3538 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&5
3539 $as_echo "$as_me: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&2;}
3540 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5
3541 $as_echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;}
3542 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: in the future, the compiler will take precedence" >&5
3543 $as_echo "$as_me: WARNING: minix/config.h: in the future, the compiler will take precedence" >&2;}
3545 ## ----------------------------------- ##
3546 ## Report this to andreas@eversberg.eu ##
3547 ## ----------------------------------- ##
3549 ) | sed "s/^/$as_me: WARNING: /" >&2
3552 { $as_echo "$as_me:$LINENO: checking for minix/config.h" >&5
3553 $as_echo_n "checking for minix/config.h... " >&6; }
3554 if test "${ac_cv_header_minix_config_h+set}" = set; then
3555 $as_echo_n "(cached) " >&6
3557 ac_cv_header_minix_config_h=$ac_header_preproc
3559 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
3560 $as_echo "$ac_cv_header_minix_config_h" >&6; }
3563 if test "x$ac_cv_header_minix_config_h" = x""yes; then
3570 if test "$MINIX" = yes; then
3572 cat >>confdefs.h <<\_ACEOF
3573 #define _POSIX_SOURCE 1
3577 cat >>confdefs.h <<\_ACEOF
3578 #define _POSIX_1_SOURCE 2
3582 cat >>confdefs.h <<\_ACEOF
3590 { $as_echo "$as_me:$LINENO: checking whether it is safe to define __EXTENSIONS__" >&5
3591 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
3592 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then
3593 $as_echo_n "(cached) " >&6
3595 cat >conftest.$ac_ext <<_ACEOF
3598 cat confdefs.h >>conftest.$ac_ext
3599 cat >>conftest.$ac_ext <<_ACEOF
3600 /* end confdefs.h. */
3602 # define __EXTENSIONS__ 1
3603 $ac_includes_default
3612 rm -f conftest.$ac_objext
3613 if { (ac_try="$ac_compile"
3615 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3616 *) ac_try_echo=$ac_try;;
3618 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3619 $as_echo "$ac_try_echo") >&5
3620 (eval "$ac_compile") 2>conftest.er1
3622 grep -v '^ *+' conftest.er1 >conftest.err
3624 cat conftest.err >&5
3625 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3626 (exit $ac_status); } && {
3627 test -z "$ac_c_werror_flag" ||
3628 test ! -s conftest.err
3629 } && test -s conftest.$ac_objext; then
3630 ac_cv_safe_to_define___extensions__=yes
3632 $as_echo "$as_me: failed program was:" >&5
3633 sed 's/^/| /' conftest.$ac_ext >&5
3635 ac_cv_safe_to_define___extensions__=no
3638 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3640 { $as_echo "$as_me:$LINENO: result: $ac_cv_safe_to_define___extensions__" >&5
3641 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
3642 test $ac_cv_safe_to_define___extensions__ = yes &&
3643 cat >>confdefs.h <<\_ACEOF
3644 #define __EXTENSIONS__ 1
3647 cat >>confdefs.h <<\_ACEOF
3648 #define _ALL_SOURCE 1
3651 cat >>confdefs.h <<\_ACEOF
3652 #define _GNU_SOURCE 1
3655 cat >>confdefs.h <<\_ACEOF
3656 #define _POSIX_PTHREAD_SEMANTICS 1
3659 cat >>confdefs.h <<\_ACEOF
3660 #define _TANDEM_SOURCE 1
3664 # AC_USE_SYSTEM_EXTENSIONS
3665 am__api_version='1.11'
3668 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
3669 if test -f "$ac_dir/install-sh"; then
3671 ac_install_sh="$ac_aux_dir/install-sh -c"
3673 elif test -f "$ac_dir/install.sh"; then
3675 ac_install_sh="$ac_aux_dir/install.sh -c"
3677 elif test -f "$ac_dir/shtool"; then
3679 ac_install_sh="$ac_aux_dir/shtool install -c"
3683 if test -z "$ac_aux_dir"; then
3684 { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
3685 $as_echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
3686 { (exit 1); exit 1; }; }
3689 # These three variables are undocumented and unsupported,
3690 # and are intended to be withdrawn in a future Autoconf release.
3691 # They can cause serious problems if a builder's source tree is in a directory
3692 # whose full name contains unusual characters.
3693 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3694 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3695 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3698 # Find a good install program. We prefer a C program (faster),
3699 # so one script is as good as another. But avoid the broken or
3700 # incompatible versions:
3701 # SysV /etc/install, /usr/sbin/install
3702 # SunOS /usr/etc/install
3703 # IRIX /sbin/install
3705 # AmigaOS /C/install, which installs bootblocks on floppy discs
3706 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3707 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3708 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3709 # OS/2's system install, which has a completely different semantic
3710 # ./install, which can be erroneously created by make from ./install.sh.
3711 # Reject install programs that cannot install multiple files.
3712 { $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3713 $as_echo_n "checking for a BSD-compatible install... " >&6; }
3714 if test -z "$INSTALL"; then
3715 if test "${ac_cv_path_install+set}" = set; then
3716 $as_echo_n "(cached) " >&6
3718 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3722 test -z "$as_dir" && as_dir=.
3723 # Account for people who put trailing slashes in PATH elements.
3725 ./ | .// | /cC/* | \
3726 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3727 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3730 # OSF1 and SCO ODT 3.0 have their own names for install.
3731 # Don't use installbsd from OSF since it installs stuff as root
3733 for ac_prog in ginstall scoinst install; do
3734 for ac_exec_ext in '' $ac_executable_extensions; do
3735 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
3736 if test $ac_prog = install &&
3737 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3738 # AIX install. It has an incompatible calling convention.
3740 elif test $ac_prog = install &&
3741 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3742 # program-specific install script used by HP pwplus--don't use.
3745 rm -rf conftest.one conftest.two conftest.dir
3746 echo one > conftest.one
3747 echo two > conftest.two
3749 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3750 test -s conftest.one && test -s conftest.two &&
3751 test -s conftest.dir/conftest.one &&
3752 test -s conftest.dir/conftest.two
3754 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3767 rm -rf conftest.one conftest.two conftest.dir
3770 if test "${ac_cv_path_install+set}" = set; then
3771 INSTALL=$ac_cv_path_install
3773 # As a last resort, use the slow shell script. Don't cache a
3774 # value for INSTALL within a source directory, because that will
3775 # break other packages using the cache if that directory is
3776 # removed, or if the value is a relative name.
3777 INSTALL=$ac_install_sh
3780 { $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
3781 $as_echo "$INSTALL" >&6; }
3783 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3784 # It thinks the first close brace ends the variable substitution.
3785 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3787 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3789 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3791 { $as_echo "$as_me:$LINENO: checking whether build environment is sane" >&5
3792 $as_echo_n "checking whether build environment is sane... " >&6; }
3795 echo timestamp > conftest.file
3796 # Reject unsafe characters in $srcdir or the absolute working directory
3797 # name. Accept space and tab only in the latter.
3801 *[\\\"\#\$\&\'\`$am_lf]*)
3802 { { $as_echo "$as_me:$LINENO: error: unsafe absolute working directory name" >&5
3803 $as_echo "$as_me: error: unsafe absolute working directory name" >&2;}
3804 { (exit 1); exit 1; }; };;
3807 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
3808 { { $as_echo "$as_me:$LINENO: error: unsafe srcdir value: \`$srcdir'" >&5
3809 $as_echo "$as_me: error: unsafe srcdir value: \`$srcdir'" >&2;}
3810 { (exit 1); exit 1; }; };;
3813 # Do `set' in a subshell so we don't clobber the current shell's
3814 # arguments. Must try -L first in case configure is actually a
3815 # symlink; some systems play weird games with the mod time of symlinks
3816 # (eg FreeBSD returns the mod time of the symlink's containing
3819 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3820 if test "$*" = "X"; then
3822 set X `ls -t "$srcdir/configure" conftest.file`
3825 if test "$*" != "X $srcdir/configure conftest.file" \
3826 && test "$*" != "X conftest.file $srcdir/configure"; then
3828 # If neither matched, then we have a broken ls. This can happen
3829 # if, for instance, CONFIG_SHELL is bash and it inherits a
3830 # broken ls alias from the environment. This has actually
3831 # happened. Such a system could not be considered "sane".
3832 { { $as_echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
3833 alias in your environment" >&5
3834 $as_echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
3835 alias in your environment" >&2;}
3836 { (exit 1); exit 1; }; }
3839 test "$2" = conftest.file
3845 { { $as_echo "$as_me:$LINENO: error: newly created file is older than distributed files!
3846 Check your system clock" >&5
3847 $as_echo "$as_me: error: newly created file is older than distributed files!
3848 Check your system clock" >&2;}
3849 { (exit 1); exit 1; }; }
3851 { $as_echo "$as_me:$LINENO: result: yes" >&5
3852 $as_echo "yes" >&6; }
3853 test "$program_prefix" != NONE &&
3854 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3855 # Use a double $ so make ignores it.
3856 test "$program_suffix" != NONE &&
3857 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3858 # Double any \ or $.
3859 # By default was `s,x,x', remove it if useless.
3860 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3861 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3863 # expand $ac_aux_dir to an absolute path
3864 am_aux_dir=`cd $ac_aux_dir && pwd`
3866 if test x"${MISSING+set}" != xset; then
3869 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
3871 MISSING="\${SHELL} $am_aux_dir/missing" ;;
3874 # Use eval to expand $SHELL
3875 if eval "$MISSING --run true"; then
3876 am_missing_run="$MISSING --run "
3879 { $as_echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
3880 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
3883 if test x"${install_sh}" != xset; then
3886 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3888 install_sh="\${SHELL} $am_aux_dir/install-sh"
3892 # Installed binaries are usually stripped using `strip' when the user
3893 # run `make install-strip'. However `strip' might not be the right
3894 # tool to use in cross-compilation environments, therefore Automake
3895 # will honor the `STRIP' environment variable to overrule this program.
3896 if test "$cross_compiling" != no; then
3897 if test -n "$ac_tool_prefix"; then
3898 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3899 set dummy ${ac_tool_prefix}strip; ac_word=$2
3900 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3901 $as_echo_n "checking for $ac_word... " >&6; }
3902 if test "${ac_cv_prog_STRIP+set}" = set; then
3903 $as_echo_n "(cached) " >&6
3905 if test -n "$STRIP"; then
3906 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3908 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3912 test -z "$as_dir" && as_dir=.
3913 for ac_exec_ext in '' $ac_executable_extensions; do
3914 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3915 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3916 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3925 STRIP=$ac_cv_prog_STRIP
3926 if test -n "$STRIP"; then
3927 { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
3928 $as_echo "$STRIP" >&6; }
3930 { $as_echo "$as_me:$LINENO: result: no" >&5
3931 $as_echo "no" >&6; }
3936 if test -z "$ac_cv_prog_STRIP"; then
3938 # Extract the first word of "strip", so it can be a program name with args.
3939 set dummy strip; ac_word=$2
3940 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3941 $as_echo_n "checking for $ac_word... " >&6; }
3942 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
3943 $as_echo_n "(cached) " >&6
3945 if test -n "$ac_ct_STRIP"; then
3946 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3948 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3952 test -z "$as_dir" && as_dir=.
3953 for ac_exec_ext in '' $ac_executable_extensions; do
3954 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3955 ac_cv_prog_ac_ct_STRIP="strip"
3956 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3965 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3966 if test -n "$ac_ct_STRIP"; then
3967 { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
3968 $as_echo "$ac_ct_STRIP" >&6; }
3970 { $as_echo "$as_me:$LINENO: result: no" >&5
3971 $as_echo "no" >&6; }
3974 if test "x$ac_ct_STRIP" = x; then
3977 case $cross_compiling:$ac_tool_warned in
3979 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
3980 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3981 ac_tool_warned=yes ;;
3986 STRIP="$ac_cv_prog_STRIP"
3990 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3992 { $as_echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
3993 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3994 if test -z "$MKDIR_P"; then
3995 if test "${ac_cv_path_mkdir+set}" = set; then
3996 $as_echo_n "(cached) " >&6
3998 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3999 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
4002 test -z "$as_dir" && as_dir=.
4003 for ac_prog in mkdir gmkdir; do
4004 for ac_exec_ext in '' $ac_executable_extensions; do
4005 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
4006 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
4007 'mkdir (GNU coreutils) '* | \
4008 'mkdir (coreutils) '* | \
4009 'mkdir (fileutils) '4.1*)
4010 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
4020 if test "${ac_cv_path_mkdir+set}" = set; then
4021 MKDIR_P="$ac_cv_path_mkdir -p"
4023 # As a last resort, use the slow shell script. Don't cache a
4024 # value for MKDIR_P within a source directory, because that will
4025 # break other packages using the cache if that directory is
4026 # removed, or if the value is a relative name.
4027 test -d ./--version && rmdir ./--version
4028 MKDIR_P="$ac_install_sh -d"
4031 { $as_echo "$as_me:$LINENO: result: $MKDIR_P" >&5
4032 $as_echo "$MKDIR_P" >&6; }
4036 [\\/$]* | ?:[\\/]*) ;;
4037 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
4040 for ac_prog in gawk mawk nawk awk
4042 # Extract the first word of "$ac_prog", so it can be a program name with args.
4043 set dummy $ac_prog; ac_word=$2
4044 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4045 $as_echo_n "checking for $ac_word... " >&6; }
4046 if test "${ac_cv_prog_AWK+set}" = set; then
4047 $as_echo_n "(cached) " >&6
4049 if test -n "$AWK"; then
4050 ac_cv_prog_AWK="$AWK" # Let the user override the test.
4052 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4056 test -z "$as_dir" && as_dir=.
4057 for ac_exec_ext in '' $ac_executable_extensions; do
4058 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4059 ac_cv_prog_AWK="$ac_prog"
4060 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4070 if test -n "$AWK"; then
4071 { $as_echo "$as_me:$LINENO: result: $AWK" >&5
4072 $as_echo "$AWK" >&6; }
4074 { $as_echo "$as_me:$LINENO: result: no" >&5
4075 $as_echo "no" >&6; }
4079 test -n "$AWK" && break
4082 { $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4083 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
4085 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
4086 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
4087 $as_echo_n "(cached) " >&6
4089 cat >conftest.make <<\_ACEOF
4092 @echo '@@@%%%=$(MAKE)=@@@%%%'
4094 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
4095 case `${MAKE-make} -f conftest.make 2>/dev/null` in
4097 eval ac_cv_prog_make_${ac_make}_set=yes;;
4099 eval ac_cv_prog_make_${ac_make}_set=no;;
4103 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4104 { $as_echo "$as_me:$LINENO: result: yes" >&5
4105 $as_echo "yes" >&6; }
4108 { $as_echo "$as_me:$LINENO: result: no" >&5
4109 $as_echo "no" >&6; }
4110 SET_MAKE="MAKE=${MAKE-make}"
4113 rm -rf .tst 2>/dev/null
4114 mkdir .tst 2>/dev/null
4115 if test -d .tst; then
4120 rmdir .tst 2>/dev/null
4122 DEPDIR="${am__leading_dot}deps"
4124 ac_config_commands="$ac_config_commands depfiles"
4127 am_make=${MAKE-make}
4128 cat > confinc << 'END'
4130 @echo this is the am__doit target
4133 # If we don't find an include directive, just comment out the code.
4134 { $as_echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
4135 $as_echo_n "checking for style of include used by $am_make... " >&6; }
4139 # First try GNU make style include.
4140 echo "include confinc" > confmf
4141 # Ignore all kinds of additional output from `make'.
4142 case `$am_make -s -f confmf 2> /dev/null` in #(
4143 *the\ am__doit\ target*)
4149 # Now try BSD make style include.
4150 if test "$am__include" = "#"; then
4151 echo '.include "confinc"' > confmf
4152 case `$am_make -s -f confmf 2> /dev/null` in #(
4153 *the\ am__doit\ target*)
4154 am__include=.include
4162 { $as_echo "$as_me:$LINENO: result: $_am_result" >&5
4163 $as_echo "$_am_result" >&6; }
4164 rm -f confinc confmf
4166 # Check whether --enable-dependency-tracking was given.
4167 if test "${enable_dependency_tracking+set}" = set; then
4168 enableval=$enable_dependency_tracking;
4171 if test "x$enable_dependency_tracking" != xno; then
4172 am_depcomp="$ac_aux_dir/depcomp"
4175 if test "x$enable_dependency_tracking" != xno; then
4184 if test "`cd $srcdir && pwd`" != "`pwd`"; then
4185 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
4186 # is not polluted with repeated "-I."
4187 am__isrc=' -I$(srcdir)'
4188 # test to see if srcdir already configured
4189 if test -f $srcdir/config.status; then
4190 { { $as_echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
4191 $as_echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
4192 { (exit 1); exit 1; }; }
4196 # test whether we have cygpath
4197 if test -z "$CYGPATH_W"; then
4198 if (cygpath --version) >/dev/null 2>/dev/null; then
4199 CYGPATH_W='cygpath -w'
4206 # Define the identity of the package.
4211 cat >>confdefs.h <<_ACEOF
4212 #define PACKAGE "$PACKAGE"
4216 cat >>confdefs.h <<_ACEOF
4217 #define VERSION "$VERSION"
4220 # Some tools Automake needs.
4222 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
4225 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
4228 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
4231 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
4234 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
4236 # We need awk for the "check" target. The system "awk" is bad on
4238 # Always define AMTAR for backward compatibility.
4240 AMTAR=${AMTAR-"${am_missing_run}tar"}
4242 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
4247 depcc="$CC" am_compiler_list=
4249 { $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
4250 $as_echo_n "checking dependency style of $depcc... " >&6; }
4251 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
4252 $as_echo_n "(cached) " >&6
4254 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4255 # We make a subdir and do the tests there. Otherwise we can end up
4256 # making bogus files that we don't know about and never remove. For
4257 # instance it was reported that on HP-UX the gcc test will end up
4258 # making a dummy file named `D' -- because `-MD' means `put the output
4261 # Copy depcomp to subdir because otherwise we won't find it if we're
4262 # using a relative directory.
4263 cp "$am_depcomp" conftest.dir
4265 # We will build objects and dependencies in a subdirectory because
4266 # it helps to detect inapplicable dependency modes. For instance
4267 # both Tru64's cc and ICC support -MD to output dependencies as a
4268 # side effect of compilation, but ICC will put the dependencies in
4269 # the current directory while Tru64 will put them in the object
4273 am_cv_CC_dependencies_compiler_type=none
4274 if test "$am_compiler_list" = ""; then
4275 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4278 case " $depcc " in #(
4279 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4282 for depmode in $am_compiler_list; do
4283 # Setup a source with many dependencies, because some compilers
4284 # like to wrap large dependency lists on column 80 (with \), and
4285 # we should not choose a depcomp mode which is confused by this.
4287 # We need to recreate these files for each test, as the compiler may
4288 # overwrite some of them when testing with obscure command lines.
4289 # This happens at least with the AIX C compiler.
4291 for i in 1 2 3 4 5 6; do
4292 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4293 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4294 # Solaris 8's {/usr,}/bin/sh.
4295 touch sub/conftst$i.h
4297 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4299 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4300 # mode. It turns out that the SunPro C++ compiler does not properly
4301 # handle `-M -o', and we need to detect this. Also, some Intel
4302 # versions had trouble with output in subdirs
4303 am__obj=sub/conftest.${OBJEXT-o}
4304 am__minus_obj="-o $am__obj"
4307 # This depmode causes a compiler race in universal mode.
4308 test "$am__universal" = false || continue
4311 # after this tag, mechanisms are not by side-effect, so they'll
4312 # only be used when explicitly requested
4313 if test "x$enable_dependency_tracking" = xyes; then
4319 msvisualcpp | msvcmsys)
4320 # This compiler won't grok `-c -o', but also, the minuso test has
4321 # not run yet. These depmodes are late enough in the game, and
4322 # so weak that their functioning should not be impacted.
4323 am__obj=conftest.${OBJEXT-o}
4328 if depmode=$depmode \
4329 source=sub/conftest.c object=$am__obj \
4330 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4331 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4332 >/dev/null 2>conftest.err &&
4333 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4334 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4335 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4336 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4337 # icc doesn't choke on unknown options, it will just issue warnings
4338 # or remarks (even with -Werror). So we grep stderr for any message
4339 # that says an option was ignored or not supported.
4340 # When given -MP, icc 7.0 and 7.1 complain thusly:
4341 # icc: Command line warning: ignoring option '-M'; no argument required
4342 # The diagnosis changed in icc 8.0:
4343 # icc: Command line remark: option '-MP' not supported
4344 if (grep 'ignoring option' conftest.err ||
4345 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4346 am_cv_CC_dependencies_compiler_type=$depmode
4355 am_cv_CC_dependencies_compiler_type=none
4359 { $as_echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
4360 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4361 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4364 test "x$enable_dependency_tracking" != xno \
4365 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4367 am__fastdepCC_FALSE='#'
4369 am__fastdepCC_TRUE='#'
4370 am__fastdepCC_FALSE=
4378 # Checks for programs.
4380 ac_cpp='$CPP $CPPFLAGS'
4381 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4382 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4383 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4384 { $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4385 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4386 # On Suns, sometimes $CPP names a directory.
4387 if test -n "$CPP" && test -d "$CPP"; then
4390 if test -z "$CPP"; then
4391 if test "${ac_cv_prog_CPP+set}" = set; then
4392 $as_echo_n "(cached) " >&6
4394 # Double quotes because CPP needs to be expanded
4395 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4398 for ac_c_preproc_warn_flag in '' yes
4400 # Use a header file that comes with gcc, so configuring glibc
4401 # with a fresh cross-compiler works.
4402 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4403 # <limits.h> exists even on freestanding compilers.
4404 # On the NeXT, cc -E runs the code through the compiler's parser,
4405 # not just through cpp. "Syntax error" is here to catch this case.
4406 cat >conftest.$ac_ext <<_ACEOF
4409 cat confdefs.h >>conftest.$ac_ext
4410 cat >>conftest.$ac_ext <<_ACEOF
4411 /* end confdefs.h. */
4413 # include <limits.h>
4415 # include <assert.h>
4419 if { (ac_try="$ac_cpp conftest.$ac_ext"
4421 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4422 *) ac_try_echo=$ac_try;;
4424 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4425 $as_echo "$ac_try_echo") >&5
4426 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4428 grep -v '^ *+' conftest.er1 >conftest.err
4430 cat conftest.err >&5
4431 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4432 (exit $ac_status); } >/dev/null && {
4433 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4434 test ! -s conftest.err
4438 $as_echo "$as_me: failed program was:" >&5
4439 sed 's/^/| /' conftest.$ac_ext >&5
4441 # Broken: fails on valid input.
4445 rm -f conftest.err conftest.$ac_ext
4447 # OK, works on sane cases. Now check whether nonexistent headers
4448 # can be detected and how.
4449 cat >conftest.$ac_ext <<_ACEOF
4452 cat confdefs.h >>conftest.$ac_ext
4453 cat >>conftest.$ac_ext <<_ACEOF
4454 /* end confdefs.h. */
4455 #include <ac_nonexistent.h>
4457 if { (ac_try="$ac_cpp conftest.$ac_ext"
4459 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4460 *) ac_try_echo=$ac_try;;
4462 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4463 $as_echo "$ac_try_echo") >&5
4464 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4466 grep -v '^ *+' conftest.er1 >conftest.err
4468 cat conftest.err >&5
4469 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4470 (exit $ac_status); } >/dev/null && {
4471 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4472 test ! -s conftest.err
4474 # Broken: success on invalid input.
4477 $as_echo "$as_me: failed program was:" >&5
4478 sed 's/^/| /' conftest.$ac_ext >&5
4480 # Passes both tests.
4485 rm -f conftest.err conftest.$ac_ext
4488 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4489 rm -f conftest.err conftest.$ac_ext
4490 if $ac_preproc_ok; then
4502 { $as_echo "$as_me:$LINENO: result: $CPP" >&5
4503 $as_echo "$CPP" >&6; }
4505 for ac_c_preproc_warn_flag in '' yes
4507 # Use a header file that comes with gcc, so configuring glibc
4508 # with a fresh cross-compiler works.
4509 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4510 # <limits.h> exists even on freestanding compilers.
4511 # On the NeXT, cc -E runs the code through the compiler's parser,
4512 # not just through cpp. "Syntax error" is here to catch this case.
4513 cat >conftest.$ac_ext <<_ACEOF
4516 cat confdefs.h >>conftest.$ac_ext
4517 cat >>conftest.$ac_ext <<_ACEOF
4518 /* end confdefs.h. */
4520 # include <limits.h>
4522 # include <assert.h>
4526 if { (ac_try="$ac_cpp conftest.$ac_ext"
4528 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4529 *) ac_try_echo=$ac_try;;
4531 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4532 $as_echo "$ac_try_echo") >&5
4533 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4535 grep -v '^ *+' conftest.er1 >conftest.err
4537 cat conftest.err >&5
4538 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4539 (exit $ac_status); } >/dev/null && {
4540 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4541 test ! -s conftest.err
4545 $as_echo "$as_me: failed program was:" >&5
4546 sed 's/^/| /' conftest.$ac_ext >&5
4548 # Broken: fails on valid input.
4552 rm -f conftest.err conftest.$ac_ext
4554 # OK, works on sane cases. Now check whether nonexistent headers
4555 # can be detected and how.
4556 cat >conftest.$ac_ext <<_ACEOF
4559 cat confdefs.h >>conftest.$ac_ext
4560 cat >>conftest.$ac_ext <<_ACEOF
4561 /* end confdefs.h. */
4562 #include <ac_nonexistent.h>
4564 if { (ac_try="$ac_cpp conftest.$ac_ext"
4566 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4567 *) ac_try_echo=$ac_try;;
4569 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4570 $as_echo "$ac_try_echo") >&5
4571 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4573 grep -v '^ *+' conftest.er1 >conftest.err
4575 cat conftest.err >&5
4576 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4577 (exit $ac_status); } >/dev/null && {
4578 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4579 test ! -s conftest.err
4581 # Broken: success on invalid input.
4584 $as_echo "$as_me: failed program was:" >&5
4585 sed 's/^/| /' conftest.$ac_ext >&5
4587 # Passes both tests.
4592 rm -f conftest.err conftest.$ac_ext
4595 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4596 rm -f conftest.err conftest.$ac_ext
4597 if $ac_preproc_ok; then
4600 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
4601 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4602 { { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4603 See \`config.log' for more details." >&5
4604 $as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4605 See \`config.log' for more details." >&2;}
4606 { (exit 1); exit 1; }; }; }
4610 ac_cpp='$CPP $CPPFLAGS'
4611 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4612 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4613 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4616 ac_cpp='$CXXCPP $CPPFLAGS'
4617 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4618 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4619 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4620 if test -z "$CXX"; then
4621 if test -n "$CCC"; then
4624 if test -n "$ac_tool_prefix"; then
4625 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4627 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4628 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4629 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4630 $as_echo_n "checking for $ac_word... " >&6; }
4631 if test "${ac_cv_prog_CXX+set}" = set; then
4632 $as_echo_n "(cached) " >&6
4634 if test -n "$CXX"; then
4635 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4637 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4641 test -z "$as_dir" && as_dir=.
4642 for ac_exec_ext in '' $ac_executable_extensions; do
4643 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4644 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4645 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4655 if test -n "$CXX"; then
4656 { $as_echo "$as_me:$LINENO: result: $CXX" >&5
4657 $as_echo "$CXX" >&6; }
4659 { $as_echo "$as_me:$LINENO: result: no" >&5
4660 $as_echo "no" >&6; }
4664 test -n "$CXX" && break
4667 if test -z "$CXX"; then
4669 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4671 # Extract the first word of "$ac_prog", so it can be a program name with args.
4672 set dummy $ac_prog; ac_word=$2
4673 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4674 $as_echo_n "checking for $ac_word... " >&6; }
4675 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
4676 $as_echo_n "(cached) " >&6
4678 if test -n "$ac_ct_CXX"; then
4679 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4681 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4685 test -z "$as_dir" && as_dir=.
4686 for ac_exec_ext in '' $ac_executable_extensions; do
4687 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4688 ac_cv_prog_ac_ct_CXX="$ac_prog"
4689 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4698 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4699 if test -n "$ac_ct_CXX"; then
4700 { $as_echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
4701 $as_echo "$ac_ct_CXX" >&6; }
4703 { $as_echo "$as_me:$LINENO: result: no" >&5
4704 $as_echo "no" >&6; }
4708 test -n "$ac_ct_CXX" && break
4711 if test "x$ac_ct_CXX" = x; then
4714 case $cross_compiling:$ac_tool_warned in
4716 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
4717 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4718 ac_tool_warned=yes ;;
4726 # Provide some information about the compiler.
4727 $as_echo "$as_me:$LINENO: checking for C++ compiler version" >&5
4730 { (ac_try="$ac_compiler --version >&5"
4732 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4733 *) ac_try_echo=$ac_try;;
4735 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4736 $as_echo "$ac_try_echo") >&5
4737 (eval "$ac_compiler --version >&5") 2>&5
4739 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4740 (exit $ac_status); }
4741 { (ac_try="$ac_compiler -v >&5"
4743 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4744 *) ac_try_echo=$ac_try;;
4746 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4747 $as_echo "$ac_try_echo") >&5
4748 (eval "$ac_compiler -v >&5") 2>&5
4750 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4751 (exit $ac_status); }
4752 { (ac_try="$ac_compiler -V >&5"
4754 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4755 *) ac_try_echo=$ac_try;;
4757 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4758 $as_echo "$ac_try_echo") >&5
4759 (eval "$ac_compiler -V >&5") 2>&5
4761 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4762 (exit $ac_status); }
4764 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
4765 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4766 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
4767 $as_echo_n "(cached) " >&6
4769 cat >conftest.$ac_ext <<_ACEOF
4772 cat confdefs.h >>conftest.$ac_ext
4773 cat >>conftest.$ac_ext <<_ACEOF
4774 /* end confdefs.h. */
4787 rm -f conftest.$ac_objext
4788 if { (ac_try="$ac_compile"
4790 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4791 *) ac_try_echo=$ac_try;;
4793 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4794 $as_echo "$ac_try_echo") >&5
4795 (eval "$ac_compile") 2>conftest.er1
4797 grep -v '^ *+' conftest.er1 >conftest.err
4799 cat conftest.err >&5
4800 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4801 (exit $ac_status); } && {
4802 test -z "$ac_cxx_werror_flag" ||
4803 test ! -s conftest.err
4804 } && test -s conftest.$ac_objext; then
4807 $as_echo "$as_me: failed program was:" >&5
4808 sed 's/^/| /' conftest.$ac_ext >&5
4813 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4814 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4817 { $as_echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
4818 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4819 if test $ac_compiler_gnu = yes; then
4824 ac_test_CXXFLAGS=${CXXFLAGS+set}
4825 ac_save_CXXFLAGS=$CXXFLAGS
4826 { $as_echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
4827 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4828 if test "${ac_cv_prog_cxx_g+set}" = set; then
4829 $as_echo_n "(cached) " >&6
4831 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4832 ac_cxx_werror_flag=yes
4835 cat >conftest.$ac_ext <<_ACEOF
4838 cat confdefs.h >>conftest.$ac_ext
4839 cat >>conftest.$ac_ext <<_ACEOF
4840 /* end confdefs.h. */
4850 rm -f conftest.$ac_objext
4851 if { (ac_try="$ac_compile"
4853 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4854 *) ac_try_echo=$ac_try;;
4856 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4857 $as_echo "$ac_try_echo") >&5
4858 (eval "$ac_compile") 2>conftest.er1
4860 grep -v '^ *+' conftest.er1 >conftest.err
4862 cat conftest.err >&5
4863 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4864 (exit $ac_status); } && {
4865 test -z "$ac_cxx_werror_flag" ||
4866 test ! -s conftest.err
4867 } && test -s conftest.$ac_objext; then
4868 ac_cv_prog_cxx_g=yes
4870 $as_echo "$as_me: failed program was:" >&5
4871 sed 's/^/| /' conftest.$ac_ext >&5
4874 cat >conftest.$ac_ext <<_ACEOF
4877 cat confdefs.h >>conftest.$ac_ext
4878 cat >>conftest.$ac_ext <<_ACEOF
4879 /* end confdefs.h. */
4889 rm -f conftest.$ac_objext
4890 if { (ac_try="$ac_compile"
4892 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4893 *) ac_try_echo=$ac_try;;
4895 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4896 $as_echo "$ac_try_echo") >&5
4897 (eval "$ac_compile") 2>conftest.er1
4899 grep -v '^ *+' conftest.er1 >conftest.err
4901 cat conftest.err >&5
4902 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4903 (exit $ac_status); } && {
4904 test -z "$ac_cxx_werror_flag" ||
4905 test ! -s conftest.err
4906 } && test -s conftest.$ac_objext; then
4909 $as_echo "$as_me: failed program was:" >&5
4910 sed 's/^/| /' conftest.$ac_ext >&5
4912 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4914 cat >conftest.$ac_ext <<_ACEOF
4917 cat confdefs.h >>conftest.$ac_ext
4918 cat >>conftest.$ac_ext <<_ACEOF
4919 /* end confdefs.h. */
4929 rm -f conftest.$ac_objext
4930 if { (ac_try="$ac_compile"
4932 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4933 *) ac_try_echo=$ac_try;;
4935 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4936 $as_echo "$ac_try_echo") >&5
4937 (eval "$ac_compile") 2>conftest.er1
4939 grep -v '^ *+' conftest.er1 >conftest.err
4941 cat conftest.err >&5
4942 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4943 (exit $ac_status); } && {
4944 test -z "$ac_cxx_werror_flag" ||
4945 test ! -s conftest.err
4946 } && test -s conftest.$ac_objext; then
4947 ac_cv_prog_cxx_g=yes
4949 $as_echo "$as_me: failed program was:" >&5
4950 sed 's/^/| /' conftest.$ac_ext >&5
4955 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4958 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4961 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4962 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4964 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
4965 $as_echo "$ac_cv_prog_cxx_g" >&6; }
4966 if test "$ac_test_CXXFLAGS" = set; then
4967 CXXFLAGS=$ac_save_CXXFLAGS
4968 elif test $ac_cv_prog_cxx_g = yes; then
4969 if test "$GXX" = yes; then
4975 if test "$GXX" = yes; then
4982 ac_cpp='$CPP $CPPFLAGS'
4983 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4984 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4985 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4987 depcc="$CXX" am_compiler_list=
4989 { $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
4990 $as_echo_n "checking dependency style of $depcc... " >&6; }
4991 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
4992 $as_echo_n "(cached) " >&6
4994 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4995 # We make a subdir and do the tests there. Otherwise we can end up
4996 # making bogus files that we don't know about and never remove. For
4997 # instance it was reported that on HP-UX the gcc test will end up
4998 # making a dummy file named `D' -- because `-MD' means `put the output
5001 # Copy depcomp to subdir because otherwise we won't find it if we're
5002 # using a relative directory.
5003 cp "$am_depcomp" conftest.dir
5005 # We will build objects and dependencies in a subdirectory because
5006 # it helps to detect inapplicable dependency modes. For instance
5007 # both Tru64's cc and ICC support -MD to output dependencies as a
5008 # side effect of compilation, but ICC will put the dependencies in
5009 # the current directory while Tru64 will put them in the object
5013 am_cv_CXX_dependencies_compiler_type=none
5014 if test "$am_compiler_list" = ""; then
5015 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5018 case " $depcc " in #(
5019 *\ -arch\ *\ -arch\ *) am__universal=true ;;
5022 for depmode in $am_compiler_list; do
5023 # Setup a source with many dependencies, because some compilers
5024 # like to wrap large dependency lists on column 80 (with \), and
5025 # we should not choose a depcomp mode which is confused by this.
5027 # We need to recreate these files for each test, as the compiler may
5028 # overwrite some of them when testing with obscure command lines.
5029 # This happens at least with the AIX C compiler.
5031 for i in 1 2 3 4 5 6; do
5032 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5033 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5034 # Solaris 8's {/usr,}/bin/sh.
5035 touch sub/conftst$i.h
5037 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5039 # We check with `-c' and `-o' for the sake of the "dashmstdout"
5040 # mode. It turns out that the SunPro C++ compiler does not properly
5041 # handle `-M -o', and we need to detect this. Also, some Intel
5042 # versions had trouble with output in subdirs
5043 am__obj=sub/conftest.${OBJEXT-o}
5044 am__minus_obj="-o $am__obj"
5047 # This depmode causes a compiler race in universal mode.
5048 test "$am__universal" = false || continue
5051 # after this tag, mechanisms are not by side-effect, so they'll
5052 # only be used when explicitly requested
5053 if test "x$enable_dependency_tracking" = xyes; then
5059 msvisualcpp | msvcmsys)
5060 # This compiler won't grok `-c -o', but also, the minuso test has
5061 # not run yet. These depmodes are late enough in the game, and
5062 # so weak that their functioning should not be impacted.
5063 am__obj=conftest.${OBJEXT-o}
5068 if depmode=$depmode \
5069 source=sub/conftest.c object=$am__obj \
5070 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5071 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5072 >/dev/null 2>conftest.err &&
5073 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5074 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5075 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5076 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5077 # icc doesn't choke on unknown options, it will just issue warnings
5078 # or remarks (even with -Werror). So we grep stderr for any message
5079 # that says an option was ignored or not supported.
5080 # When given -MP, icc 7.0 and 7.1 complain thusly:
5081 # icc: Command line warning: ignoring option '-M'; no argument required
5082 # The diagnosis changed in icc 8.0:
5083 # icc: Command line remark: option '-MP' not supported
5084 if (grep 'ignoring option' conftest.err ||
5085 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5086 am_cv_CXX_dependencies_compiler_type=$depmode
5095 am_cv_CXX_dependencies_compiler_type=none
5099 { $as_echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
5100 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
5101 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
5104 test "x$enable_dependency_tracking" != xno \
5105 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
5106 am__fastdepCXX_TRUE=
5107 am__fastdepCXX_FALSE='#'
5109 am__fastdepCXX_TRUE='#'
5110 am__fastdepCXX_FALSE=
5115 ac_cpp='$CPP $CPPFLAGS'
5116 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5117 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5118 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5119 if test -n "$ac_tool_prefix"; then
5120 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
5121 set dummy ${ac_tool_prefix}gcc; ac_word=$2
5122 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5123 $as_echo_n "checking for $ac_word... " >&6; }
5124 if test "${ac_cv_prog_CC+set}" = set; then
5125 $as_echo_n "(cached) " >&6
5127 if test -n "$CC"; then
5128 ac_cv_prog_CC="$CC" # Let the user override the test.
5130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5134 test -z "$as_dir" && as_dir=.
5135 for ac_exec_ext in '' $ac_executable_extensions; do
5136 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5137 ac_cv_prog_CC="${ac_tool_prefix}gcc"
5138 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5148 if test -n "$CC"; then
5149 { $as_echo "$as_me:$LINENO: result: $CC" >&5
5150 $as_echo "$CC" >&6; }
5152 { $as_echo "$as_me:$LINENO: result: no" >&5
5153 $as_echo "no" >&6; }
5158 if test -z "$ac_cv_prog_CC"; then
5160 # Extract the first word of "gcc", so it can be a program name with args.
5161 set dummy gcc; ac_word=$2
5162 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5163 $as_echo_n "checking for $ac_word... " >&6; }
5164 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
5165 $as_echo_n "(cached) " >&6
5167 if test -n "$ac_ct_CC"; then
5168 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5170 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5174 test -z "$as_dir" && as_dir=.
5175 for ac_exec_ext in '' $ac_executable_extensions; do
5176 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5177 ac_cv_prog_ac_ct_CC="gcc"
5178 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5187 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5188 if test -n "$ac_ct_CC"; then
5189 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
5190 $as_echo "$ac_ct_CC" >&6; }
5192 { $as_echo "$as_me:$LINENO: result: no" >&5
5193 $as_echo "no" >&6; }
5196 if test "x$ac_ct_CC" = x; then
5199 case $cross_compiling:$ac_tool_warned in
5201 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
5202 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5203 ac_tool_warned=yes ;;
5211 if test -z "$CC"; then
5212 if test -n "$ac_tool_prefix"; then
5213 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
5214 set dummy ${ac_tool_prefix}cc; ac_word=$2
5215 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5216 $as_echo_n "checking for $ac_word... " >&6; }
5217 if test "${ac_cv_prog_CC+set}" = set; then
5218 $as_echo_n "(cached) " >&6
5220 if test -n "$CC"; then
5221 ac_cv_prog_CC="$CC" # Let the user override the test.
5223 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5227 test -z "$as_dir" && as_dir=.
5228 for ac_exec_ext in '' $ac_executable_extensions; do
5229 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5230 ac_cv_prog_CC="${ac_tool_prefix}cc"
5231 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5241 if test -n "$CC"; then
5242 { $as_echo "$as_me:$LINENO: result: $CC" >&5
5243 $as_echo "$CC" >&6; }
5245 { $as_echo "$as_me:$LINENO: result: no" >&5
5246 $as_echo "no" >&6; }
5252 if test -z "$CC"; then
5253 # Extract the first word of "cc", so it can be a program name with args.
5254 set dummy cc; ac_word=$2
5255 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5256 $as_echo_n "checking for $ac_word... " >&6; }
5257 if test "${ac_cv_prog_CC+set}" = set; then
5258 $as_echo_n "(cached) " >&6
5260 if test -n "$CC"; then
5261 ac_cv_prog_CC="$CC" # Let the user override the test.
5264 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5268 test -z "$as_dir" && as_dir=.
5269 for ac_exec_ext in '' $ac_executable_extensions; do
5270 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5271 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
5272 ac_prog_rejected=yes
5276 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5283 if test $ac_prog_rejected = yes; then
5284 # We found a bogon in the path, so make sure we never use it.
5285 set dummy $ac_cv_prog_CC
5287 if test $# != 0; then
5288 # We chose a different compiler from the bogus one.
5289 # However, it has the same basename, so the bogon will be chosen
5290 # first if we set CC to just the basename; use the full file name.
5292 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
5298 if test -n "$CC"; then
5299 { $as_echo "$as_me:$LINENO: result: $CC" >&5
5300 $as_echo "$CC" >&6; }
5302 { $as_echo "$as_me:$LINENO: result: no" >&5
5303 $as_echo "no" >&6; }
5308 if test -z "$CC"; then
5309 if test -n "$ac_tool_prefix"; then
5310 for ac_prog in cl.exe
5312 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5313 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5314 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5315 $as_echo_n "checking for $ac_word... " >&6; }
5316 if test "${ac_cv_prog_CC+set}" = set; then
5317 $as_echo_n "(cached) " >&6
5319 if test -n "$CC"; then
5320 ac_cv_prog_CC="$CC" # Let the user override the test.
5322 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5326 test -z "$as_dir" && as_dir=.
5327 for ac_exec_ext in '' $ac_executable_extensions; do
5328 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5329 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5330 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5340 if test -n "$CC"; then
5341 { $as_echo "$as_me:$LINENO: result: $CC" >&5
5342 $as_echo "$CC" >&6; }
5344 { $as_echo "$as_me:$LINENO: result: no" >&5
5345 $as_echo "no" >&6; }
5349 test -n "$CC" && break
5352 if test -z "$CC"; then
5354 for ac_prog in cl.exe
5356 # Extract the first word of "$ac_prog", so it can be a program name with args.
5357 set dummy $ac_prog; ac_word=$2
5358 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5359 $as_echo_n "checking for $ac_word... " >&6; }
5360 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
5361 $as_echo_n "(cached) " >&6
5363 if test -n "$ac_ct_CC"; then
5364 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5366 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5370 test -z "$as_dir" && as_dir=.
5371 for ac_exec_ext in '' $ac_executable_extensions; do
5372 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5373 ac_cv_prog_ac_ct_CC="$ac_prog"
5374 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5383 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5384 if test -n "$ac_ct_CC"; then
5385 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
5386 $as_echo "$ac_ct_CC" >&6; }
5388 { $as_echo "$as_me:$LINENO: result: no" >&5
5389 $as_echo "no" >&6; }
5393 test -n "$ac_ct_CC" && break
5396 if test "x$ac_ct_CC" = x; then
5399 case $cross_compiling:$ac_tool_warned in
5401 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
5402 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5403 ac_tool_warned=yes ;;
5412 test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
5413 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5414 { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
5415 See \`config.log' for more details." >&5
5416 $as_echo "$as_me: error: no acceptable C compiler found in \$PATH
5417 See \`config.log' for more details." >&2;}
5418 { (exit 1); exit 1; }; }; }
5420 # Provide some information about the compiler.
5421 $as_echo "$as_me:$LINENO: checking for C compiler version" >&5
5424 { (ac_try="$ac_compiler --version >&5"
5426 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5427 *) ac_try_echo=$ac_try;;
5429 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5430 $as_echo "$ac_try_echo") >&5
5431 (eval "$ac_compiler --version >&5") 2>&5
5433 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5434 (exit $ac_status); }
5435 { (ac_try="$ac_compiler -v >&5"
5437 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5438 *) ac_try_echo=$ac_try;;
5440 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5441 $as_echo "$ac_try_echo") >&5
5442 (eval "$ac_compiler -v >&5") 2>&5
5444 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5445 (exit $ac_status); }
5446 { (ac_try="$ac_compiler -V >&5"
5448 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5449 *) ac_try_echo=$ac_try;;
5451 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5452 $as_echo "$ac_try_echo") >&5
5453 (eval "$ac_compiler -V >&5") 2>&5
5455 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5456 (exit $ac_status); }
5458 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
5459 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
5460 if test "${ac_cv_c_compiler_gnu+set}" = set; then
5461 $as_echo_n "(cached) " >&6
5463 cat >conftest.$ac_ext <<_ACEOF
5466 cat confdefs.h >>conftest.$ac_ext
5467 cat >>conftest.$ac_ext <<_ACEOF
5468 /* end confdefs.h. */
5481 rm -f conftest.$ac_objext
5482 if { (ac_try="$ac_compile"
5484 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5485 *) ac_try_echo=$ac_try;;
5487 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5488 $as_echo "$ac_try_echo") >&5
5489 (eval "$ac_compile") 2>conftest.er1
5491 grep -v '^ *+' conftest.er1 >conftest.err
5493 cat conftest.err >&5
5494 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5495 (exit $ac_status); } && {
5496 test -z "$ac_c_werror_flag" ||
5497 test ! -s conftest.err
5498 } && test -s conftest.$ac_objext; then
5501 $as_echo "$as_me: failed program was:" >&5
5502 sed 's/^/| /' conftest.$ac_ext >&5
5507 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5508 ac_cv_c_compiler_gnu=$ac_compiler_gnu
5511 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
5512 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
5513 if test $ac_compiler_gnu = yes; then
5518 ac_test_CFLAGS=${CFLAGS+set}
5519 ac_save_CFLAGS=$CFLAGS
5520 { $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
5521 $as_echo_n "checking whether $CC accepts -g... " >&6; }
5522 if test "${ac_cv_prog_cc_g+set}" = set; then
5523 $as_echo_n "(cached) " >&6
5525 ac_save_c_werror_flag=$ac_c_werror_flag
5526 ac_c_werror_flag=yes
5529 cat >conftest.$ac_ext <<_ACEOF
5532 cat confdefs.h >>conftest.$ac_ext
5533 cat >>conftest.$ac_ext <<_ACEOF
5534 /* end confdefs.h. */
5544 rm -f conftest.$ac_objext
5545 if { (ac_try="$ac_compile"
5547 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5548 *) ac_try_echo=$ac_try;;
5550 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5551 $as_echo "$ac_try_echo") >&5
5552 (eval "$ac_compile") 2>conftest.er1
5554 grep -v '^ *+' conftest.er1 >conftest.err
5556 cat conftest.err >&5
5557 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5558 (exit $ac_status); } && {
5559 test -z "$ac_c_werror_flag" ||
5560 test ! -s conftest.err
5561 } && test -s conftest.$ac_objext; then
5564 $as_echo "$as_me: failed program was:" >&5
5565 sed 's/^/| /' conftest.$ac_ext >&5
5568 cat >conftest.$ac_ext <<_ACEOF
5571 cat confdefs.h >>conftest.$ac_ext
5572 cat >>conftest.$ac_ext <<_ACEOF
5573 /* end confdefs.h. */
5583 rm -f conftest.$ac_objext
5584 if { (ac_try="$ac_compile"
5586 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5587 *) ac_try_echo=$ac_try;;
5589 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5590 $as_echo "$ac_try_echo") >&5
5591 (eval "$ac_compile") 2>conftest.er1
5593 grep -v '^ *+' conftest.er1 >conftest.err
5595 cat conftest.err >&5
5596 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5597 (exit $ac_status); } && {
5598 test -z "$ac_c_werror_flag" ||
5599 test ! -s conftest.err
5600 } && test -s conftest.$ac_objext; then
5603 $as_echo "$as_me: failed program was:" >&5
5604 sed 's/^/| /' conftest.$ac_ext >&5
5606 ac_c_werror_flag=$ac_save_c_werror_flag
5608 cat >conftest.$ac_ext <<_ACEOF
5611 cat confdefs.h >>conftest.$ac_ext
5612 cat >>conftest.$ac_ext <<_ACEOF
5613 /* end confdefs.h. */
5623 rm -f conftest.$ac_objext
5624 if { (ac_try="$ac_compile"
5626 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5627 *) ac_try_echo=$ac_try;;
5629 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5630 $as_echo "$ac_try_echo") >&5
5631 (eval "$ac_compile") 2>conftest.er1
5633 grep -v '^ *+' conftest.er1 >conftest.err
5635 cat conftest.err >&5
5636 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5637 (exit $ac_status); } && {
5638 test -z "$ac_c_werror_flag" ||
5639 test ! -s conftest.err
5640 } && test -s conftest.$ac_objext; then
5643 $as_echo "$as_me: failed program was:" >&5
5644 sed 's/^/| /' conftest.$ac_ext >&5
5649 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5652 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5655 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5656 ac_c_werror_flag=$ac_save_c_werror_flag
5658 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
5659 $as_echo "$ac_cv_prog_cc_g" >&6; }
5660 if test "$ac_test_CFLAGS" = set; then
5661 CFLAGS=$ac_save_CFLAGS
5662 elif test $ac_cv_prog_cc_g = yes; then
5663 if test "$GCC" = yes; then
5669 if test "$GCC" = yes; then
5675 { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
5676 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
5677 if test "${ac_cv_prog_cc_c89+set}" = set; then
5678 $as_echo_n "(cached) " >&6
5680 ac_cv_prog_cc_c89=no
5682 cat >conftest.$ac_ext <<_ACEOF
5685 cat confdefs.h >>conftest.$ac_ext
5686 cat >>conftest.$ac_ext <<_ACEOF
5687 /* end confdefs.h. */
5690 #include <sys/types.h>
5691 #include <sys/stat.h>
5692 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5693 struct buf { int x; };
5694 FILE * (*rcsopen) (struct buf *, struct stat *, int);
5695 static char *e (p, i)
5701 static char *f (char * (*g) (char **, int), char **p, ...)
5706 s = g (p, va_arg (v,int));
5711 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5712 function prototypes and stuff, but not '\xHH' hex character constants.
5713 These don't provoke an error unfortunately, instead are silently treated
5714 as 'x'. The following induces an error, until -std is added to get
5715 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5716 array size at least. It's necessary to write '\x00'==0 to get something
5717 that's true only with -std. */
5718 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5720 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5721 inside strings and character constants. */
5723 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5725 int test (int i, double x);
5726 struct s1 {int (*f) (int a);};
5727 struct s2 {int (*f) (double a);};
5728 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5734 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5739 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5740 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5742 CC="$ac_save_CC $ac_arg"
5743 rm -f conftest.$ac_objext
5744 if { (ac_try="$ac_compile"
5746 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5747 *) ac_try_echo=$ac_try;;
5749 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5750 $as_echo "$ac_try_echo") >&5
5751 (eval "$ac_compile") 2>conftest.er1
5753 grep -v '^ *+' conftest.er1 >conftest.err
5755 cat conftest.err >&5
5756 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5757 (exit $ac_status); } && {
5758 test -z "$ac_c_werror_flag" ||
5759 test ! -s conftest.err
5760 } && test -s conftest.$ac_objext; then
5761 ac_cv_prog_cc_c89=$ac_arg
5763 $as_echo "$as_me: failed program was:" >&5
5764 sed 's/^/| /' conftest.$ac_ext >&5
5769 rm -f core conftest.err conftest.$ac_objext
5770 test "x$ac_cv_prog_cc_c89" != "xno" && break
5772 rm -f conftest.$ac_ext
5777 case "x$ac_cv_prog_cc_c89" in
5779 { $as_echo "$as_me:$LINENO: result: none needed" >&5
5780 $as_echo "none needed" >&6; } ;;
5782 { $as_echo "$as_me:$LINENO: result: unsupported" >&5
5783 $as_echo "unsupported" >&6; } ;;
5785 CC="$CC $ac_cv_prog_cc_c89"
5786 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
5787 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5792 ac_cpp='$CPP $CPPFLAGS'
5793 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5794 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5795 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5797 # Find a good install program. We prefer a C program (faster),
5798 # so one script is as good as another. But avoid the broken or
5799 # incompatible versions:
5800 # SysV /etc/install, /usr/sbin/install
5801 # SunOS /usr/etc/install
5802 # IRIX /sbin/install
5804 # AmigaOS /C/install, which installs bootblocks on floppy discs
5805 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
5806 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
5807 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
5808 # OS/2's system install, which has a completely different semantic
5809 # ./install, which can be erroneously created by make from ./install.sh.
5810 # Reject install programs that cannot install multiple files.
5811 { $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
5812 $as_echo_n "checking for a BSD-compatible install... " >&6; }
5813 if test -z "$INSTALL"; then
5814 if test "${ac_cv_path_install+set}" = set; then
5815 $as_echo_n "(cached) " >&6
5817 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5821 test -z "$as_dir" && as_dir=.
5822 # Account for people who put trailing slashes in PATH elements.
5824 ./ | .// | /cC/* | \
5825 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
5826 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
5829 # OSF1 and SCO ODT 3.0 have their own names for install.
5830 # Don't use installbsd from OSF since it installs stuff as root
5832 for ac_prog in ginstall scoinst install; do
5833 for ac_exec_ext in '' $ac_executable_extensions; do
5834 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
5835 if test $ac_prog = install &&
5836 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5837 # AIX install. It has an incompatible calling convention.
5839 elif test $ac_prog = install &&
5840 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5841 # program-specific install script used by HP pwplus--don't use.
5844 rm -rf conftest.one conftest.two conftest.dir
5845 echo one > conftest.one
5846 echo two > conftest.two
5848 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
5849 test -s conftest.one && test -s conftest.two &&
5850 test -s conftest.dir/conftest.one &&
5851 test -s conftest.dir/conftest.two
5853 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
5866 rm -rf conftest.one conftest.two conftest.dir
5869 if test "${ac_cv_path_install+set}" = set; then
5870 INSTALL=$ac_cv_path_install
5872 # As a last resort, use the slow shell script. Don't cache a
5873 # value for INSTALL within a source directory, because that will
5874 # break other packages using the cache if that directory is
5875 # removed, or if the value is a relative name.
5876 INSTALL=$ac_install_sh
5879 { $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
5880 $as_echo "$INSTALL" >&6; }
5882 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
5883 # It thinks the first close brace ends the variable substitution.
5884 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
5886 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
5888 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
5890 { $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
5891 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
5893 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
5894 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
5895 $as_echo_n "(cached) " >&6
5897 cat >conftest.make <<\_ACEOF
5900 @echo '@@@%%%=$(MAKE)=@@@%%%'
5902 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
5903 case `${MAKE-make} -f conftest.make 2>/dev/null` in
5905 eval ac_cv_prog_make_${ac_make}_set=yes;;
5907 eval ac_cv_prog_make_${ac_make}_set=no;;
5911 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
5912 { $as_echo "$as_me:$LINENO: result: yes" >&5
5913 $as_echo "yes" >&6; }
5916 { $as_echo "$as_me:$LINENO: result: no" >&5
5917 $as_echo "no" >&6; }
5918 SET_MAKE="MAKE=${MAKE-make}"
5923 # site specific configs
5925 # check for asterisk
5927 # Check whether --with-asterisk was given.
5928 if test "${with_asterisk+set}" = set; then
5929 withval=$with_asterisk;
5931 with_asterisk="check"
5935 if test "x$with_asterisk" != xno; then
5937 for ac_header in asterisk/compiler.h
5939 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5940 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5941 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
5942 $as_echo_n "checking for $ac_header... " >&6; }
5943 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5944 $as_echo_n "(cached) " >&6
5946 ac_res=`eval 'as_val=${'$as_ac_Header'}
5947 $as_echo "$as_val"'`
5948 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
5949 $as_echo "$ac_res" >&6; }
5951 # Is the header compilable?
5952 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
5953 $as_echo_n "checking $ac_header usability... " >&6; }
5954 cat >conftest.$ac_ext <<_ACEOF
5957 cat confdefs.h >>conftest.$ac_ext
5958 cat >>conftest.$ac_ext <<_ACEOF
5959 /* end confdefs.h. */
5960 $ac_includes_default
5961 #include <$ac_header>
5963 rm -f conftest.$ac_objext
5964 if { (ac_try="$ac_compile"
5966 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5967 *) ac_try_echo=$ac_try;;
5969 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5970 $as_echo "$ac_try_echo") >&5
5971 (eval "$ac_compile") 2>conftest.er1
5973 grep -v '^ *+' conftest.er1 >conftest.err
5975 cat conftest.err >&5
5976 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5977 (exit $ac_status); } && {
5978 test -z "$ac_c_werror_flag" ||
5979 test ! -s conftest.err
5980 } && test -s conftest.$ac_objext; then
5981 ac_header_compiler=yes
5983 $as_echo "$as_me: failed program was:" >&5
5984 sed 's/^/| /' conftest.$ac_ext >&5
5986 ac_header_compiler=no
5989 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5990 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5991 $as_echo "$ac_header_compiler" >&6; }
5993 # Is the header present?
5994 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
5995 $as_echo_n "checking $ac_header presence... " >&6; }
5996 cat >conftest.$ac_ext <<_ACEOF
5999 cat confdefs.h >>conftest.$ac_ext
6000 cat >>conftest.$ac_ext <<_ACEOF
6001 /* end confdefs.h. */
6002 #include <$ac_header>
6004 if { (ac_try="$ac_cpp conftest.$ac_ext"
6006 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6007 *) ac_try_echo=$ac_try;;
6009 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6010 $as_echo "$ac_try_echo") >&5
6011 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6013 grep -v '^ *+' conftest.er1 >conftest.err
6015 cat conftest.err >&5
6016 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6017 (exit $ac_status); } >/dev/null && {
6018 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6019 test ! -s conftest.err
6021 ac_header_preproc=yes
6023 $as_echo "$as_me: failed program was:" >&5
6024 sed 's/^/| /' conftest.$ac_ext >&5
6026 ac_header_preproc=no
6029 rm -f conftest.err conftest.$ac_ext
6030 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6031 $as_echo "$ac_header_preproc" >&6; }
6033 # So? What about this header?
6034 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6036 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6037 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6038 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6039 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6040 ac_header_preproc=yes
6043 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6044 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6045 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6046 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6047 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6048 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6049 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6050 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6051 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6052 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6053 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6054 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6056 ## ----------------------------------- ##
6057 ## Report this to andreas@eversberg.eu ##
6058 ## ----------------------------------- ##
6060 ) | sed "s/^/$as_me: WARNING: /" >&2
6063 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
6064 $as_echo_n "checking for $ac_header... " >&6; }
6065 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6066 $as_echo_n "(cached) " >&6
6068 eval "$as_ac_Header=\$ac_header_preproc"
6070 ac_res=`eval 'as_val=${'$as_ac_Header'}
6071 $as_echo "$as_val"'`
6072 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6073 $as_echo "$ac_res" >&6; }
6076 as_val=`eval 'as_val=${'$as_ac_Header'}
6077 $as_echo "$as_val"'`
6078 if test "x$as_val" = x""yes; then
6079 cat >>confdefs.h <<_ACEOF
6080 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6084 if test "x$with_asterisk" != xcheck ; then
6085 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
6086 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6087 { { $as_echo "$as_me:$LINENO: error: --with-asterisk was given, but test for header-file asterisk/compiler.h failed
6088 See \`config.log' for more details." >&5
6089 $as_echo "$as_me: error: --with-asterisk was given, but test for header-file asterisk/compiler.h failed
6090 See \`config.log' for more details." >&2;}
6091 { (exit 1); exit 1; }; }; }
6102 if test "x$with_asterisk" = "xyes"; then
6103 ast_tone_zone_sound=
6105 { $as_echo "$as_me:$LINENO: checking for struct tone_zone_sound in asterisk/indications.h" >&5
6106 $as_echo_n "checking for struct tone_zone_sound in asterisk/indications.h... " >&6; }
6108 cat >conftest.$ac_ext <<_ACEOF
6112 cat confdefs.h >>conftest.$ac_ext
6113 cat >>conftest.$ac_ext <<_ACEOF
6114 /* end confdefs.h. */
6115 #include <asterisk.h>,
6116 #include <asterisk/linkedlists.h>,
6117 #include <asterisk/indications.h>
6121 struct tone_zone_sound * ts = NULL; (void) ts->data;
6126 rm -f conftest.$ac_objext
6127 if { (ac_try="$ac_compile"
6129 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6130 *) ac_try_echo=$ac_try;;
6132 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6133 $as_echo "$ac_try_echo") >&5
6134 (eval "$ac_compile") 2>conftest.er1
6136 grep -v '^ *+' conftest.er1 >conftest.err
6138 cat conftest.err >&5
6139 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6140 (exit $ac_status); } && {
6141 test -z "$ac_c_werror_flag" ||
6142 test ! -s conftest.err
6143 } && test -s conftest.$ac_objext; then
6146 $as_echo "$as_me: failed program was:" >&5
6147 sed 's/^/| /' conftest.$ac_ext >&5
6152 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6153 { $as_echo "$as_me:$LINENO: result: $tzs_test_result" >&5
6154 $as_echo "$tzs_test_result" >&6; }
6156 if test "x$tzs_test_result" = "xyes"; then
6157 ast_tone_zone_sound=tone_zone_sound
6160 if test "x$ast_tone_zone_sound" = "x"; then
6161 { $as_echo "$as_me:$LINENO: checking for struct ast_tone_zone_sound in asterisk/indications.h" >&5
6162 $as_echo_n "checking for struct ast_tone_zone_sound in asterisk/indications.h... " >&6; }
6164 cat >conftest.$ac_ext <<_ACEOF
6168 cat confdefs.h >>conftest.$ac_ext
6169 cat >>conftest.$ac_ext <<_ACEOF
6170 /* end confdefs.h. */
6171 #include <asterisk.h>,
6172 #include <asterisk/linkedlists.h>,
6173 #include <asterisk/indications.h>
6177 struct ast_tone_zone_sound * ts = NULL; (void) ts->name;
6182 rm -f conftest.$ac_objext
6183 if { (ac_try="$ac_compile"
6185 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6186 *) ac_try_echo=$ac_try;;
6188 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6189 $as_echo "$ac_try_echo") >&5
6190 (eval "$ac_compile") 2>conftest.er1
6192 grep -v '^ *+' conftest.er1 >conftest.err
6194 cat conftest.err >&5
6195 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6196 (exit $ac_status); } && {
6197 test -z "$ac_c_werror_flag" ||
6198 test ! -s conftest.err
6199 } && test -s conftest.$ac_objext; then
6202 $as_echo "$as_me: failed program was:" >&5
6203 sed 's/^/| /' conftest.$ac_ext >&5
6208 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6209 { $as_echo "$as_me:$LINENO: result: $tzs_test_result" >&5
6210 $as_echo "$tzs_test_result" >&6; }
6212 if test "x$tzs_test_result" = "xyes"; then
6213 ast_tone_zone_sound=ast_tone_zone_sound
6217 if test "x$ast_tone_zone_sound" = "x"; then
6218 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
6219 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6220 { { $as_echo "$as_me:$LINENO: error: No ast_tone_zone_sound, confused...
6221 See \`config.log' for more details." >&5
6222 $as_echo "$as_me: error: No ast_tone_zone_sound, confused...
6223 See \`config.log' for more details." >&2;}
6224 { (exit 1); exit 1; }; }; }
6227 AST_CFLAGS="-Dtone_zone_sound=$ast_tone_zone_sound"
6231 if test "x$with_asterisk" == "xyes" ; then
6232 ENABLE_ASTERISK_CHANNEL_DRIVER_TRUE=
6233 ENABLE_ASTERISK_CHANNEL_DRIVER_FALSE='#'
6235 ENABLE_ASTERISK_CHANNEL_DRIVER_TRUE='#'
6236 ENABLE_ASTERISK_CHANNEL_DRIVER_FALSE=
6242 # Check whether --with-ssl was given.
6243 if test "${with_ssl+set}" = set; then
6250 if test "x$with_ssl" != xno; then
6252 for ac_header in openssl/rsa.h
6254 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6255 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6256 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
6257 $as_echo_n "checking for $ac_header... " >&6; }
6258 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6259 $as_echo_n "(cached) " >&6
6261 ac_res=`eval 'as_val=${'$as_ac_Header'}
6262 $as_echo "$as_val"'`
6263 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6264 $as_echo "$ac_res" >&6; }
6266 # Is the header compilable?
6267 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
6268 $as_echo_n "checking $ac_header usability... " >&6; }
6269 cat >conftest.$ac_ext <<_ACEOF
6272 cat confdefs.h >>conftest.$ac_ext
6273 cat >>conftest.$ac_ext <<_ACEOF
6274 /* end confdefs.h. */
6275 $ac_includes_default
6276 #include <$ac_header>
6278 rm -f conftest.$ac_objext
6279 if { (ac_try="$ac_compile"
6281 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6282 *) ac_try_echo=$ac_try;;
6284 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6285 $as_echo "$ac_try_echo") >&5
6286 (eval "$ac_compile") 2>conftest.er1
6288 grep -v '^ *+' conftest.er1 >conftest.err
6290 cat conftest.err >&5
6291 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6292 (exit $ac_status); } && {
6293 test -z "$ac_c_werror_flag" ||
6294 test ! -s conftest.err
6295 } && test -s conftest.$ac_objext; then
6296 ac_header_compiler=yes
6298 $as_echo "$as_me: failed program was:" >&5
6299 sed 's/^/| /' conftest.$ac_ext >&5
6301 ac_header_compiler=no
6304 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6305 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6306 $as_echo "$ac_header_compiler" >&6; }
6308 # Is the header present?
6309 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
6310 $as_echo_n "checking $ac_header presence... " >&6; }
6311 cat >conftest.$ac_ext <<_ACEOF
6314 cat confdefs.h >>conftest.$ac_ext
6315 cat >>conftest.$ac_ext <<_ACEOF
6316 /* end confdefs.h. */
6317 #include <$ac_header>
6319 if { (ac_try="$ac_cpp conftest.$ac_ext"
6321 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6322 *) ac_try_echo=$ac_try;;
6324 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6325 $as_echo "$ac_try_echo") >&5
6326 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6328 grep -v '^ *+' conftest.er1 >conftest.err
6330 cat conftest.err >&5
6331 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6332 (exit $ac_status); } >/dev/null && {
6333 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6334 test ! -s conftest.err
6336 ac_header_preproc=yes
6338 $as_echo "$as_me: failed program was:" >&5
6339 sed 's/^/| /' conftest.$ac_ext >&5
6341 ac_header_preproc=no
6344 rm -f conftest.err conftest.$ac_ext
6345 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6346 $as_echo "$ac_header_preproc" >&6; }
6348 # So? What about this header?
6349 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6351 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6352 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6353 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6354 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6355 ac_header_preproc=yes
6358 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6359 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6360 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6361 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6362 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6363 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6364 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6365 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6366 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6367 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6368 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6369 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6371 ## ----------------------------------- ##
6372 ## Report this to andreas@eversberg.eu ##
6373 ## ----------------------------------- ##
6375 ) | sed "s/^/$as_me: WARNING: /" >&2
6378 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
6379 $as_echo_n "checking for $ac_header... " >&6; }
6380 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6381 $as_echo_n "(cached) " >&6
6383 eval "$as_ac_Header=\$ac_header_preproc"
6385 ac_res=`eval 'as_val=${'$as_ac_Header'}
6386 $as_echo "$as_val"'`
6387 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6388 $as_echo "$ac_res" >&6; }
6391 as_val=`eval 'as_val=${'$as_ac_Header'}
6392 $as_echo "$as_val"'`
6393 if test "x$as_val" = x""yes; then
6394 cat >>confdefs.h <<_ACEOF
6395 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6402 { $as_echo "$as_me:$LINENO: checking for main in -lcrypto" >&5
6403 $as_echo_n "checking for main in -lcrypto... " >&6; }
6404 if test "${ac_cv_lib_crypto_main+set}" = set; then
6405 $as_echo_n "(cached) " >&6
6407 ac_check_lib_save_LIBS=$LIBS
6408 LIBS="-lcrypto -lcrypto
6410 cat >conftest.$ac_ext <<_ACEOF
6413 cat confdefs.h >>conftest.$ac_ext
6414 cat >>conftest.$ac_ext <<_ACEOF
6415 /* end confdefs.h. */
6426 rm -f conftest.$ac_objext conftest$ac_exeext
6427 if { (ac_try="$ac_link"
6429 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6430 *) ac_try_echo=$ac_try;;
6432 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6433 $as_echo "$ac_try_echo") >&5
6434 (eval "$ac_link") 2>conftest.er1
6436 grep -v '^ *+' conftest.er1 >conftest.err
6438 cat conftest.err >&5
6439 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6440 (exit $ac_status); } && {
6441 test -z "$ac_c_werror_flag" ||
6442 test ! -s conftest.err
6443 } && test -s conftest$ac_exeext && {
6444 test "$cross_compiling" = yes ||
6445 $as_test_x conftest$ac_exeext
6447 ac_cv_lib_crypto_main=yes
6449 $as_echo "$as_me: failed program was:" >&5
6450 sed 's/^/| /' conftest.$ac_ext >&5
6452 ac_cv_lib_crypto_main=no
6455 rm -rf conftest.dSYM
6456 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6457 conftest$ac_exeext conftest.$ac_ext
6458 LIBS=$ac_check_lib_save_LIBS
6460 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_main" >&5
6461 $as_echo "$ac_cv_lib_crypto_main" >&6; }
6462 if test "x$ac_cv_lib_crypto_main" = x""yes; then
6463 LIBCRYPTO="-lcrypto"
6466 cat >>confdefs.h <<\_ACEOF
6467 #define HAVE_LIBCRYPTO 1
6472 if test "x$with_ssl" != xcheck ; then
6473 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
6474 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6475 { { $as_echo "$as_me:$LINENO: error: --with-ssl was given, but test for libcrypto failed
6476 See \`config.log' for more details." >&5
6477 $as_echo "$as_me: error: --with-ssl was given, but test for libcrypto failed
6478 See \`config.log' for more details." >&2;}
6479 { (exit 1); exit 1; }; }; }
6491 # Check whether --with-gsm-bs was given.
6492 if test "${with_gsm_bs+set}" = set; then
6493 withval=$with_gsm_bs;
6499 if test "x$with_gsm_bs" != xno; then
6500 { $as_echo "$as_me:$LINENO: checking openbsc/include/openbsc/gsm_data.h" >&5
6501 $as_echo_n "checking openbsc/include/openbsc/gsm_data.h... " >&6; }
6502 if test -e openbsc/include/openbsc/gsm_data.h; then
6504 { $as_echo "$as_me:$LINENO: result: yes" >&5
6505 $as_echo "yes" >&6; }
6506 elif test "x$with_gsm_bs" != xcheck ; then
6507 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
6508 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6509 { { $as_echo "$as_me:$LINENO: error: --with-gsm-bs was given, but openbsc/include/openbsc/gsm_data.h was not found! Please link OpenBSC and libosmocore source directory to LCR source directory: ln -s path_to_openbsc/openbsc/ openbsc ; ln -s patch_to_libosmocore libosmocore
6510 See \`config.log' for more details." >&5
6511 $as_echo "$as_me: error: --with-gsm-bs was given, but openbsc/include/openbsc/gsm_data.h was not found! Please link OpenBSC and libosmocore source directory to LCR source directory: ln -s path_to_openbsc/openbsc/ openbsc ; ln -s patch_to_libosmocore libosmocore
6512 See \`config.log' for more details." >&2;}
6513 { (exit 1); exit 1; }; }; }
6515 { $as_echo "$as_me:$LINENO: result: no" >&5
6516 $as_echo "no" >&6; }
6522 if test "x$with_gsm_bs" == "xyes" ; then
6524 ENABLE_GSM_BS_FALSE='#'
6526 ENABLE_GSM_BS_TRUE='#'
6527 ENABLE_GSM_BS_FALSE=
6533 # Check whether --with-gsm-ms was given.
6534 if test "${with_gsm_ms+set}" = set; then
6535 withval=$with_gsm_ms;
6541 if test "x$with_gsm_ms" != xno; then
6542 { $as_echo "$as_me:$LINENO: checking layer23/include/osmocom/osmocom_data.h" >&5
6543 $as_echo_n "checking layer23/include/osmocom/osmocom_data.h... " >&6; }
6544 if test -e layer23/include/osmocom/osmocom_data.h; then
6546 { $as_echo "$as_me:$LINENO: result: yes" >&5
6547 $as_echo "yes" >&6; }
6548 elif test "x$with_gsm_ms" != xcheck ; then
6549 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
6550 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6551 { { $as_echo "$as_me:$LINENO: error: --with-gsm-ms was given, but layer23/include/osmocom/osmocom_data.h was not found! Please link Osmocom-BB and libosmocore source directory to LCR source directory: ln -s path_to_osmocom-bb/src/host/layer23/ layer23 ; ln -s path_to_libosmocore libosmocore
6552 See \`config.log' for more details." >&5
6553 $as_echo "$as_me: error: --with-gsm-ms was given, but layer23/include/osmocom/osmocom_data.h was not found! Please link Osmocom-BB and libosmocore source directory to LCR source directory: ln -s path_to_osmocom-bb/src/host/layer23/ layer23 ; ln -s path_to_libosmocore libosmocore
6554 See \`config.log' for more details." >&2;}
6555 { (exit 1); exit 1; }; }; }
6557 { $as_echo "$as_me:$LINENO: result: no" >&5
6558 $as_echo "no" >&6; }
6564 if test "x$with_gsm_ms" == "xyes" ; then
6566 ENABLE_GSM_MS_FALSE='#'
6568 ENABLE_GSM_MS_TRUE='#'
6569 ENABLE_GSM_MS_FALSE=
6573 if test "x$with_gsm_bs" == "xyes" -o "x$with_gsm_ms" == "xyes"; then
6575 ENABLE_GSM_FALSE='#'
6584 # Check whether --with-ss5 was given.
6585 if test "${with_ss5+set}" = set; then
6592 if test "x$with_ss5" == "xyes" ; then
6594 ENABLE_SS5_FALSE='#'
6601 # Checks for libraries.
6603 { $as_echo "$as_me:$LINENO: checking for main in -lm" >&5
6604 $as_echo_n "checking for main in -lm... " >&6; }
6605 if test "${ac_cv_lib_m_main+set}" = set; then
6606 $as_echo_n "(cached) " >&6
6608 ac_check_lib_save_LIBS=$LIBS
6610 cat >conftest.$ac_ext <<_ACEOF
6613 cat confdefs.h >>conftest.$ac_ext
6614 cat >>conftest.$ac_ext <<_ACEOF
6615 /* end confdefs.h. */
6626 rm -f conftest.$ac_objext conftest$ac_exeext
6627 if { (ac_try="$ac_link"
6629 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6630 *) ac_try_echo=$ac_try;;
6632 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6633 $as_echo "$ac_try_echo") >&5
6634 (eval "$ac_link") 2>conftest.er1
6636 grep -v '^ *+' conftest.er1 >conftest.err
6638 cat conftest.err >&5
6639 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6640 (exit $ac_status); } && {
6641 test -z "$ac_c_werror_flag" ||
6642 test ! -s conftest.err
6643 } && test -s conftest$ac_exeext && {
6644 test "$cross_compiling" = yes ||
6645 $as_test_x conftest$ac_exeext
6647 ac_cv_lib_m_main=yes
6649 $as_echo "$as_me: failed program was:" >&5
6650 sed 's/^/| /' conftest.$ac_ext >&5
6655 rm -rf conftest.dSYM
6656 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6657 conftest$ac_exeext conftest.$ac_ext
6658 LIBS=$ac_check_lib_save_LIBS
6660 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_m_main" >&5
6661 $as_echo "$ac_cv_lib_m_main" >&6; }
6662 if test "x$ac_cv_lib_m_main" = x""yes; then
6663 cat >>confdefs.h <<_ACEOF
6672 { $as_echo "$as_me:$LINENO: checking for main in -lncurses" >&5
6673 $as_echo_n "checking for main in -lncurses... " >&6; }
6674 if test "${ac_cv_lib_ncurses_main+set}" = set; then
6675 $as_echo_n "(cached) " >&6
6677 ac_check_lib_save_LIBS=$LIBS
6678 LIBS="-lncurses $LIBS"
6679 cat >conftest.$ac_ext <<_ACEOF
6682 cat confdefs.h >>conftest.$ac_ext
6683 cat >>conftest.$ac_ext <<_ACEOF
6684 /* end confdefs.h. */
6695 rm -f conftest.$ac_objext conftest$ac_exeext
6696 if { (ac_try="$ac_link"
6698 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6699 *) ac_try_echo=$ac_try;;
6701 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6702 $as_echo "$ac_try_echo") >&5
6703 (eval "$ac_link") 2>conftest.er1
6705 grep -v '^ *+' conftest.er1 >conftest.err
6707 cat conftest.err >&5
6708 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6709 (exit $ac_status); } && {
6710 test -z "$ac_c_werror_flag" ||
6711 test ! -s conftest.err
6712 } && test -s conftest$ac_exeext && {
6713 test "$cross_compiling" = yes ||
6714 $as_test_x conftest$ac_exeext
6716 ac_cv_lib_ncurses_main=yes
6718 $as_echo "$as_me: failed program was:" >&5
6719 sed 's/^/| /' conftest.$ac_ext >&5
6721 ac_cv_lib_ncurses_main=no
6724 rm -rf conftest.dSYM
6725 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6726 conftest$ac_exeext conftest.$ac_ext
6727 LIBS=$ac_check_lib_save_LIBS
6729 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_main" >&5
6730 $as_echo "$ac_cv_lib_ncurses_main" >&6; }
6731 if test "x$ac_cv_lib_ncurses_main" = x""yes; then
6732 cat >>confdefs.h <<_ACEOF
6733 #define HAVE_LIBNCURSES 1
6736 LIBS="-lncurses $LIBS"
6741 { $as_echo "$as_me:$LINENO: checking for main in -lpthread" >&5
6742 $as_echo_n "checking for main in -lpthread... " >&6; }
6743 if test "${ac_cv_lib_pthread_main+set}" = set; then
6744 $as_echo_n "(cached) " >&6
6746 ac_check_lib_save_LIBS=$LIBS
6747 LIBS="-lpthread $LIBS"
6748 cat >conftest.$ac_ext <<_ACEOF
6751 cat confdefs.h >>conftest.$ac_ext
6752 cat >>conftest.$ac_ext <<_ACEOF
6753 /* end confdefs.h. */
6764 rm -f conftest.$ac_objext conftest$ac_exeext
6765 if { (ac_try="$ac_link"
6767 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6768 *) ac_try_echo=$ac_try;;
6770 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6771 $as_echo "$ac_try_echo") >&5
6772 (eval "$ac_link") 2>conftest.er1
6774 grep -v '^ *+' conftest.er1 >conftest.err
6776 cat conftest.err >&5
6777 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6778 (exit $ac_status); } && {
6779 test -z "$ac_c_werror_flag" ||
6780 test ! -s conftest.err
6781 } && test -s conftest$ac_exeext && {
6782 test "$cross_compiling" = yes ||
6783 $as_test_x conftest$ac_exeext
6785 ac_cv_lib_pthread_main=yes
6787 $as_echo "$as_me: failed program was:" >&5
6788 sed 's/^/| /' conftest.$ac_ext >&5
6790 ac_cv_lib_pthread_main=no
6793 rm -rf conftest.dSYM
6794 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6795 conftest$ac_exeext conftest.$ac_ext
6796 LIBS=$ac_check_lib_save_LIBS
6798 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_main" >&5
6799 $as_echo "$ac_cv_lib_pthread_main" >&6; }
6800 if test "x$ac_cv_lib_pthread_main" = x""yes; then
6801 cat >>confdefs.h <<_ACEOF
6802 #define HAVE_LIBPTHREAD 1
6805 LIBS="-lpthread $LIBS"
6810 # Checks for header files.
6817 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
6818 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
6819 { $as_echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
6820 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
6821 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6822 $as_echo_n "(cached) " >&6
6824 cat >conftest.$ac_ext <<_ACEOF
6827 cat confdefs.h >>conftest.$ac_ext
6828 cat >>conftest.$ac_ext <<_ACEOF
6829 /* end confdefs.h. */
6830 #include <sys/types.h>
6842 rm -f conftest.$ac_objext
6843 if { (ac_try="$ac_compile"
6845 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6846 *) ac_try_echo=$ac_try;;
6848 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6849 $as_echo "$ac_try_echo") >&5
6850 (eval "$ac_compile") 2>conftest.er1
6852 grep -v '^ *+' conftest.er1 >conftest.err
6854 cat conftest.err >&5
6855 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6856 (exit $ac_status); } && {
6857 test -z "$ac_c_werror_flag" ||
6858 test ! -s conftest.err
6859 } && test -s conftest.$ac_objext; then
6860 eval "$as_ac_Header=yes"
6862 $as_echo "$as_me: failed program was:" >&5
6863 sed 's/^/| /' conftest.$ac_ext >&5
6865 eval "$as_ac_Header=no"
6868 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6870 ac_res=`eval 'as_val=${'$as_ac_Header'}
6871 $as_echo "$as_val"'`
6872 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6873 $as_echo "$ac_res" >&6; }
6874 as_val=`eval 'as_val=${'$as_ac_Header'}
6875 $as_echo "$as_val"'`
6876 if test "x$as_val" = x""yes; then
6877 cat >>confdefs.h <<_ACEOF
6878 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
6881 ac_header_dirent=$ac_hdr; break
6885 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
6886 if test $ac_header_dirent = dirent.h; then
6887 { $as_echo "$as_me:$LINENO: checking for library containing opendir" >&5
6888 $as_echo_n "checking for library containing opendir... " >&6; }
6889 if test "${ac_cv_search_opendir+set}" = set; then
6890 $as_echo_n "(cached) " >&6
6892 ac_func_search_save_LIBS=$LIBS
6893 cat >conftest.$ac_ext <<_ACEOF
6896 cat confdefs.h >>conftest.$ac_ext
6897 cat >>conftest.$ac_ext <<_ACEOF
6898 /* end confdefs.h. */
6900 /* Override any GCC internal prototype to avoid an error.
6901 Use char because int might match the return type of a GCC
6902 builtin and then its argument prototype would still apply. */
6915 for ac_lib in '' dir; do
6916 if test -z "$ac_lib"; then
6917 ac_res="none required"
6920 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6922 rm -f conftest.$ac_objext conftest$ac_exeext
6923 if { (ac_try="$ac_link"
6925 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6926 *) ac_try_echo=$ac_try;;
6928 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6929 $as_echo "$ac_try_echo") >&5
6930 (eval "$ac_link") 2>conftest.er1
6932 grep -v '^ *+' conftest.er1 >conftest.err
6934 cat conftest.err >&5
6935 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6936 (exit $ac_status); } && {
6937 test -z "$ac_c_werror_flag" ||
6938 test ! -s conftest.err
6939 } && test -s conftest$ac_exeext && {
6940 test "$cross_compiling" = yes ||
6941 $as_test_x conftest$ac_exeext
6943 ac_cv_search_opendir=$ac_res
6945 $as_echo "$as_me: failed program was:" >&5
6946 sed 's/^/| /' conftest.$ac_ext >&5
6951 rm -rf conftest.dSYM
6952 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6954 if test "${ac_cv_search_opendir+set}" = set; then
6958 if test "${ac_cv_search_opendir+set}" = set; then
6961 ac_cv_search_opendir=no
6964 LIBS=$ac_func_search_save_LIBS
6966 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
6967 $as_echo "$ac_cv_search_opendir" >&6; }
6968 ac_res=$ac_cv_search_opendir
6969 if test "$ac_res" != no; then
6970 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
6975 { $as_echo "$as_me:$LINENO: checking for library containing opendir" >&5
6976 $as_echo_n "checking for library containing opendir... " >&6; }
6977 if test "${ac_cv_search_opendir+set}" = set; then
6978 $as_echo_n "(cached) " >&6
6980 ac_func_search_save_LIBS=$LIBS
6981 cat >conftest.$ac_ext <<_ACEOF
6984 cat confdefs.h >>conftest.$ac_ext
6985 cat >>conftest.$ac_ext <<_ACEOF
6986 /* end confdefs.h. */
6988 /* Override any GCC internal prototype to avoid an error.
6989 Use char because int might match the return type of a GCC
6990 builtin and then its argument prototype would still apply. */
7003 for ac_lib in '' x; do
7004 if test -z "$ac_lib"; then
7005 ac_res="none required"
7008 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7010 rm -f conftest.$ac_objext conftest$ac_exeext
7011 if { (ac_try="$ac_link"
7013 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7014 *) ac_try_echo=$ac_try;;
7016 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7017 $as_echo "$ac_try_echo") >&5
7018 (eval "$ac_link") 2>conftest.er1
7020 grep -v '^ *+' conftest.er1 >conftest.err
7022 cat conftest.err >&5
7023 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7024 (exit $ac_status); } && {
7025 test -z "$ac_c_werror_flag" ||
7026 test ! -s conftest.err
7027 } && test -s conftest$ac_exeext && {
7028 test "$cross_compiling" = yes ||
7029 $as_test_x conftest$ac_exeext
7031 ac_cv_search_opendir=$ac_res
7033 $as_echo "$as_me: failed program was:" >&5
7034 sed 's/^/| /' conftest.$ac_ext >&5
7039 rm -rf conftest.dSYM
7040 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7042 if test "${ac_cv_search_opendir+set}" = set; then
7046 if test "${ac_cv_search_opendir+set}" = set; then
7049 ac_cv_search_opendir=no
7052 LIBS=$ac_func_search_save_LIBS
7054 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
7055 $as_echo "$ac_cv_search_opendir" >&6; }
7056 ac_res=$ac_cv_search_opendir
7057 if test "$ac_res" != no; then
7058 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7064 { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
7065 $as_echo_n "checking for ANSI C header files... " >&6; }
7066 if test "${ac_cv_header_stdc+set}" = set; then
7067 $as_echo_n "(cached) " >&6
7069 cat >conftest.$ac_ext <<_ACEOF
7072 cat confdefs.h >>conftest.$ac_ext
7073 cat >>conftest.$ac_ext <<_ACEOF
7074 /* end confdefs.h. */
7088 rm -f conftest.$ac_objext
7089 if { (ac_try="$ac_compile"
7091 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7092 *) ac_try_echo=$ac_try;;
7094 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7095 $as_echo "$ac_try_echo") >&5
7096 (eval "$ac_compile") 2>conftest.er1
7098 grep -v '^ *+' conftest.er1 >conftest.err
7100 cat conftest.err >&5
7101 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7102 (exit $ac_status); } && {
7103 test -z "$ac_c_werror_flag" ||
7104 test ! -s conftest.err
7105 } && test -s conftest.$ac_objext; then
7106 ac_cv_header_stdc=yes
7108 $as_echo "$as_me: failed program was:" >&5
7109 sed 's/^/| /' conftest.$ac_ext >&5
7111 ac_cv_header_stdc=no
7114 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7116 if test $ac_cv_header_stdc = yes; then
7117 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7118 cat >conftest.$ac_ext <<_ACEOF
7121 cat confdefs.h >>conftest.$ac_ext
7122 cat >>conftest.$ac_ext <<_ACEOF
7123 /* end confdefs.h. */
7127 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7128 $EGREP "memchr" >/dev/null 2>&1; then
7131 ac_cv_header_stdc=no
7137 if test $ac_cv_header_stdc = yes; then
7138 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7139 cat >conftest.$ac_ext <<_ACEOF
7142 cat confdefs.h >>conftest.$ac_ext
7143 cat >>conftest.$ac_ext <<_ACEOF
7144 /* end confdefs.h. */
7148 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7149 $EGREP "free" >/dev/null 2>&1; then
7152 ac_cv_header_stdc=no
7158 if test $ac_cv_header_stdc = yes; then
7159 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7160 if test "$cross_compiling" = yes; then
7163 cat >conftest.$ac_ext <<_ACEOF
7166 cat confdefs.h >>conftest.$ac_ext
7167 cat >>conftest.$ac_ext <<_ACEOF
7168 /* end confdefs.h. */
7171 #if ((' ' & 0x0FF) == 0x020)
7172 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7173 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7175 # define ISLOWER(c) \
7176 (('a' <= (c) && (c) <= 'i') \
7177 || ('j' <= (c) && (c) <= 'r') \
7178 || ('s' <= (c) && (c) <= 'z'))
7179 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7182 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7187 for (i = 0; i < 256; i++)
7188 if (XOR (islower (i), ISLOWER (i))
7189 || toupper (i) != TOUPPER (i))
7194 rm -f conftest$ac_exeext
7195 if { (ac_try="$ac_link"
7197 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7198 *) ac_try_echo=$ac_try;;
7200 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7201 $as_echo "$ac_try_echo") >&5
7202 (eval "$ac_link") 2>&5
7204 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7205 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7206 { (case "(($ac_try" in
7207 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7208 *) ac_try_echo=$ac_try;;
7210 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7211 $as_echo "$ac_try_echo") >&5
7212 (eval "$ac_try") 2>&5
7214 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7215 (exit $ac_status); }; }; then
7218 $as_echo "$as_me: program exited with status $ac_status" >&5
7219 $as_echo "$as_me: failed program was:" >&5
7220 sed 's/^/| /' conftest.$ac_ext >&5
7223 ac_cv_header_stdc=no
7225 rm -rf conftest.dSYM
7226 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7232 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
7233 $as_echo "$ac_cv_header_stdc" >&6; }
7234 if test $ac_cv_header_stdc = yes; then
7236 cat >>confdefs.h <<\_ACEOF
7237 #define STDC_HEADERS 1
7242 { $as_echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
7243 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
7244 if test "${ac_cv_header_sys_wait_h+set}" = set; then
7245 $as_echo_n "(cached) " >&6
7247 cat >conftest.$ac_ext <<_ACEOF
7250 cat confdefs.h >>conftest.$ac_ext
7251 cat >>conftest.$ac_ext <<_ACEOF
7252 /* end confdefs.h. */
7253 #include <sys/types.h>
7254 #include <sys/wait.h>
7256 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
7259 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
7267 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
7272 rm -f conftest.$ac_objext
7273 if { (ac_try="$ac_compile"
7275 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7276 *) ac_try_echo=$ac_try;;
7278 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7279 $as_echo "$ac_try_echo") >&5
7280 (eval "$ac_compile") 2>conftest.er1
7282 grep -v '^ *+' conftest.er1 >conftest.err
7284 cat conftest.err >&5
7285 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7286 (exit $ac_status); } && {
7287 test -z "$ac_c_werror_flag" ||
7288 test ! -s conftest.err
7289 } && test -s conftest.$ac_objext; then
7290 ac_cv_header_sys_wait_h=yes
7292 $as_echo "$as_me: failed program was:" >&5
7293 sed 's/^/| /' conftest.$ac_ext >&5
7295 ac_cv_header_sys_wait_h=no
7298 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7300 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
7301 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
7302 if test $ac_cv_header_sys_wait_h = yes; then
7304 cat >>confdefs.h <<\_ACEOF
7305 #define HAVE_SYS_WAIT_H 1
7323 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
7325 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7326 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7327 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
7328 $as_echo_n "checking for $ac_header... " >&6; }
7329 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7330 $as_echo_n "(cached) " >&6
7332 ac_res=`eval 'as_val=${'$as_ac_Header'}
7333 $as_echo "$as_val"'`
7334 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7335 $as_echo "$ac_res" >&6; }
7337 # Is the header compilable?
7338 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
7339 $as_echo_n "checking $ac_header usability... " >&6; }
7340 cat >conftest.$ac_ext <<_ACEOF
7343 cat confdefs.h >>conftest.$ac_ext
7344 cat >>conftest.$ac_ext <<_ACEOF
7345 /* end confdefs.h. */
7346 $ac_includes_default
7347 #include <$ac_header>
7349 rm -f conftest.$ac_objext
7350 if { (ac_try="$ac_compile"
7352 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7353 *) ac_try_echo=$ac_try;;
7355 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7356 $as_echo "$ac_try_echo") >&5
7357 (eval "$ac_compile") 2>conftest.er1
7359 grep -v '^ *+' conftest.er1 >conftest.err
7361 cat conftest.err >&5
7362 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7363 (exit $ac_status); } && {
7364 test -z "$ac_c_werror_flag" ||
7365 test ! -s conftest.err
7366 } && test -s conftest.$ac_objext; then
7367 ac_header_compiler=yes
7369 $as_echo "$as_me: failed program was:" >&5
7370 sed 's/^/| /' conftest.$ac_ext >&5
7372 ac_header_compiler=no
7375 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7376 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7377 $as_echo "$ac_header_compiler" >&6; }
7379 # Is the header present?
7380 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
7381 $as_echo_n "checking $ac_header presence... " >&6; }
7382 cat >conftest.$ac_ext <<_ACEOF
7385 cat confdefs.h >>conftest.$ac_ext
7386 cat >>conftest.$ac_ext <<_ACEOF
7387 /* end confdefs.h. */
7388 #include <$ac_header>
7390 if { (ac_try="$ac_cpp conftest.$ac_ext"
7392 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7393 *) ac_try_echo=$ac_try;;
7395 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7396 $as_echo "$ac_try_echo") >&5
7397 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7399 grep -v '^ *+' conftest.er1 >conftest.err
7401 cat conftest.err >&5
7402 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7403 (exit $ac_status); } >/dev/null && {
7404 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7405 test ! -s conftest.err
7407 ac_header_preproc=yes
7409 $as_echo "$as_me: failed program was:" >&5
7410 sed 's/^/| /' conftest.$ac_ext >&5
7412 ac_header_preproc=no
7415 rm -f conftest.err conftest.$ac_ext
7416 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7417 $as_echo "$ac_header_preproc" >&6; }
7419 # So? What about this header?
7420 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7422 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7423 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7424 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7425 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7426 ac_header_preproc=yes
7429 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7430 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7431 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7432 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7433 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7434 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7435 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7436 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7437 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7438 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7439 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7440 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7442 ## ----------------------------------- ##
7443 ## Report this to andreas@eversberg.eu ##
7444 ## ----------------------------------- ##
7446 ) | sed "s/^/$as_me: WARNING: /" >&2
7449 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
7450 $as_echo_n "checking for $ac_header... " >&6; }
7451 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7452 $as_echo_n "(cached) " >&6
7454 eval "$as_ac_Header=\$ac_header_preproc"
7456 ac_res=`eval 'as_val=${'$as_ac_Header'}
7457 $as_echo "$as_val"'`
7458 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7459 $as_echo "$ac_res" >&6; }
7462 as_val=`eval 'as_val=${'$as_ac_Header'}
7463 $as_echo "$as_val"'`
7464 if test "x$as_val" = x""yes; then
7465 cat >>confdefs.h <<_ACEOF
7466 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7474 # Checks for typedefs, structures, and compiler characteristics.
7475 { $as_echo "$as_me:$LINENO: checking for stdbool.h that conforms to C99" >&5
7476 $as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
7477 if test "${ac_cv_header_stdbool_h+set}" = set; then
7478 $as_echo_n "(cached) " >&6
7480 cat >conftest.$ac_ext <<_ACEOF
7483 cat confdefs.h >>conftest.$ac_ext
7484 cat >>conftest.$ac_ext <<_ACEOF
7485 /* end confdefs.h. */
7487 #include <stdbool.h>
7489 "error: bool is not defined"
7492 "error: false is not defined"
7495 "error: false is not 0"
7498 "error: true is not defined"
7501 "error: true is not 1"
7503 #ifndef __bool_true_false_are_defined
7504 "error: __bool_true_false_are_defined is not defined"
7507 struct s { _Bool s: 1; _Bool t; } s;
7509 char a[true == 1 ? 1 : -1];
7510 char b[false == 0 ? 1 : -1];
7511 char c[__bool_true_false_are_defined == 1 ? 1 : -1];
7512 char d[(bool) 0.5 == true ? 1 : -1];
7514 char f[(_Bool) 0.0 == false ? 1 : -1];
7516 char h[sizeof (_Bool)];
7518 enum { j = false, k = true, l = false * true, m = true * 256 };
7519 /* The following fails for
7520 HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
7522 char o[sizeof n == m * sizeof n[0] ? 1 : -1];
7523 char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
7524 # if defined __xlc__ || defined __GNUC__
7525 /* Catch a bug in IBM AIX xlc compiler version 6.0.0.0
7526 reported by James Lemley on 2005-10-05; see
7527 http://lists.gnu.org/archive/html/bug-coreutils/2005-10/msg00086.html
7528 This test is not quite right, since xlc is allowed to
7529 reject this program, as the initializer for xlcbug is
7530 not one of the forms that C requires support for.
7531 However, doing the test right would require a runtime
7532 test, and that would make cross-compilation harder.
7533 Let us hope that IBM fixes the xlc bug, and also adds
7534 support for this kind of constant expression. In the
7535 meantime, this test will reject xlc, which is OK, since
7536 our stdbool.h substitute should suffice. We also test
7537 this with GCC, where it should work, to detect more
7538 quickly whether someone messes up the test in the
7540 char digs[] = "0123456789";
7541 int xlcbug = 1 / (&(digs + 5)[-2 + (bool) 1] == &digs[4] ? 1 : -1);
7543 /* Catch a bug in an HP-UX C compiler. See
7544 http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
7545 http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
7556 /* Refer to every declared value, to avoid compiler optimizations. */
7557 return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
7558 + !m + !n + !o + !p + !q + !pq);
7564 rm -f conftest.$ac_objext
7565 if { (ac_try="$ac_compile"
7567 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7568 *) ac_try_echo=$ac_try;;
7570 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7571 $as_echo "$ac_try_echo") >&5
7572 (eval "$ac_compile") 2>conftest.er1
7574 grep -v '^ *+' conftest.er1 >conftest.err
7576 cat conftest.err >&5
7577 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7578 (exit $ac_status); } && {
7579 test -z "$ac_c_werror_flag" ||
7580 test ! -s conftest.err
7581 } && test -s conftest.$ac_objext; then
7582 ac_cv_header_stdbool_h=yes
7584 $as_echo "$as_me: failed program was:" >&5
7585 sed 's/^/| /' conftest.$ac_ext >&5
7587 ac_cv_header_stdbool_h=no
7590 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7592 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdbool_h" >&5
7593 $as_echo "$ac_cv_header_stdbool_h" >&6; }
7594 { $as_echo "$as_me:$LINENO: checking for _Bool" >&5
7595 $as_echo_n "checking for _Bool... " >&6; }
7596 if test "${ac_cv_type__Bool+set}" = set; then
7597 $as_echo_n "(cached) " >&6
7600 cat >conftest.$ac_ext <<_ACEOF
7603 cat confdefs.h >>conftest.$ac_ext
7604 cat >>conftest.$ac_ext <<_ACEOF
7605 /* end confdefs.h. */
7606 $ac_includes_default
7616 rm -f conftest.$ac_objext
7617 if { (ac_try="$ac_compile"
7619 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7620 *) ac_try_echo=$ac_try;;
7622 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7623 $as_echo "$ac_try_echo") >&5
7624 (eval "$ac_compile") 2>conftest.er1
7626 grep -v '^ *+' conftest.er1 >conftest.err
7628 cat conftest.err >&5
7629 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7630 (exit $ac_status); } && {
7631 test -z "$ac_c_werror_flag" ||
7632 test ! -s conftest.err
7633 } && test -s conftest.$ac_objext; then
7634 cat >conftest.$ac_ext <<_ACEOF
7637 cat confdefs.h >>conftest.$ac_ext
7638 cat >>conftest.$ac_ext <<_ACEOF
7639 /* end confdefs.h. */
7640 $ac_includes_default
7644 if (sizeof ((_Bool)))
7650 rm -f conftest.$ac_objext
7651 if { (ac_try="$ac_compile"
7653 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7654 *) ac_try_echo=$ac_try;;
7656 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7657 $as_echo "$ac_try_echo") >&5
7658 (eval "$ac_compile") 2>conftest.er1
7660 grep -v '^ *+' conftest.er1 >conftest.err
7662 cat conftest.err >&5
7663 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7664 (exit $ac_status); } && {
7665 test -z "$ac_c_werror_flag" ||
7666 test ! -s conftest.err
7667 } && test -s conftest.$ac_objext; then
7670 $as_echo "$as_me: failed program was:" >&5
7671 sed 's/^/| /' conftest.$ac_ext >&5
7673 ac_cv_type__Bool=yes
7676 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7678 $as_echo "$as_me: failed program was:" >&5
7679 sed 's/^/| /' conftest.$ac_ext >&5
7684 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7686 { $as_echo "$as_me:$LINENO: result: $ac_cv_type__Bool" >&5
7687 $as_echo "$ac_cv_type__Bool" >&6; }
7688 if test "x$ac_cv_type__Bool" = x""yes; then
7690 cat >>confdefs.h <<_ACEOF
7691 #define HAVE__BOOL 1
7697 if test $ac_cv_header_stdbool_h = yes; then
7699 cat >>confdefs.h <<\_ACEOF
7700 #define HAVE_STDBOOL_H 1
7705 { $as_echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
7706 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
7707 if test "${ac_cv_c_const+set}" = set; then
7708 $as_echo_n "(cached) " >&6
7710 cat >conftest.$ac_ext <<_ACEOF
7713 cat confdefs.h >>conftest.$ac_ext
7714 cat >>conftest.$ac_ext <<_ACEOF
7715 /* end confdefs.h. */
7720 /* FIXME: Include the comments suggested by Paul. */
7722 /* Ultrix mips cc rejects this. */
7723 typedef int charset[2];
7725 /* SunOS 4.1.1 cc rejects this. */
7726 char const *const *pcpcc;
7728 /* NEC SVR4.0.2 mips cc rejects this. */
7729 struct point {int x, y;};
7730 static struct point const zero = {0,0};
7731 /* AIX XL C 1.02.0.0 rejects this.
7732 It does not let you subtract one const X* pointer from another in
7733 an arm of an if-expression whose if-part is not a constant
7735 const char *g = "string";
7736 pcpcc = &g + (g ? g-g : 0);
7737 /* HPUX 7.0 cc rejects these. */
7739 ppc = (char**) pcpcc;
7740 pcpcc = (char const *const *) ppc;
7741 { /* SCO 3.2v4 cc rejects this. */
7743 char const *s = 0 ? (char *) 0 : (char const *) 0;
7748 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
7750 const int *foo = &x[0];
7753 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
7754 typedef const int *iptr;
7758 { /* AIX XL C 1.02.0.0 rejects this saying
7759 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
7760 struct s { int j; const int *ap[3]; };
7761 struct s *b; b->j = 5;
7763 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
7767 return !cs[0] && !zero.x;
7774 rm -f conftest.$ac_objext
7775 if { (ac_try="$ac_compile"
7777 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7778 *) ac_try_echo=$ac_try;;
7780 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7781 $as_echo "$ac_try_echo") >&5
7782 (eval "$ac_compile") 2>conftest.er1
7784 grep -v '^ *+' conftest.er1 >conftest.err
7786 cat conftest.err >&5
7787 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7788 (exit $ac_status); } && {
7789 test -z "$ac_c_werror_flag" ||
7790 test ! -s conftest.err
7791 } && test -s conftest.$ac_objext; then
7794 $as_echo "$as_me: failed program was:" >&5
7795 sed 's/^/| /' conftest.$ac_ext >&5
7800 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7802 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
7803 $as_echo "$ac_cv_c_const" >&6; }
7804 if test $ac_cv_c_const = no; then
7806 cat >>confdefs.h <<\_ACEOF
7812 { $as_echo "$as_me:$LINENO: checking for inline" >&5
7813 $as_echo_n "checking for inline... " >&6; }
7814 if test "${ac_cv_c_inline+set}" = set; then
7815 $as_echo_n "(cached) " >&6
7818 for ac_kw in inline __inline__ __inline; do
7819 cat >conftest.$ac_ext <<_ACEOF
7822 cat confdefs.h >>conftest.$ac_ext
7823 cat >>conftest.$ac_ext <<_ACEOF
7824 /* end confdefs.h. */
7827 static $ac_kw foo_t static_foo () {return 0; }
7828 $ac_kw foo_t foo () {return 0; }
7832 rm -f conftest.$ac_objext
7833 if { (ac_try="$ac_compile"
7835 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7836 *) ac_try_echo=$ac_try;;
7838 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7839 $as_echo "$ac_try_echo") >&5
7840 (eval "$ac_compile") 2>conftest.er1
7842 grep -v '^ *+' conftest.er1 >conftest.err
7844 cat conftest.err >&5
7845 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7846 (exit $ac_status); } && {
7847 test -z "$ac_c_werror_flag" ||
7848 test ! -s conftest.err
7849 } && test -s conftest.$ac_objext; then
7850 ac_cv_c_inline=$ac_kw
7852 $as_echo "$as_me: failed program was:" >&5
7853 sed 's/^/| /' conftest.$ac_ext >&5
7858 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7859 test "$ac_cv_c_inline" != no && break
7863 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
7864 $as_echo "$ac_cv_c_inline" >&6; }
7867 case $ac_cv_c_inline in
7870 case $ac_cv_c_inline in
7872 *) ac_val=$ac_cv_c_inline;;
7874 cat >>confdefs.h <<_ACEOF
7876 #define inline $ac_val
7882 { $as_echo "$as_me:$LINENO: checking for pid_t" >&5
7883 $as_echo_n "checking for pid_t... " >&6; }
7884 if test "${ac_cv_type_pid_t+set}" = set; then
7885 $as_echo_n "(cached) " >&6
7888 cat >conftest.$ac_ext <<_ACEOF
7891 cat confdefs.h >>conftest.$ac_ext
7892 cat >>conftest.$ac_ext <<_ACEOF
7893 /* end confdefs.h. */
7894 $ac_includes_default
7904 rm -f conftest.$ac_objext
7905 if { (ac_try="$ac_compile"
7907 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7908 *) ac_try_echo=$ac_try;;
7910 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7911 $as_echo "$ac_try_echo") >&5
7912 (eval "$ac_compile") 2>conftest.er1
7914 grep -v '^ *+' conftest.er1 >conftest.err
7916 cat conftest.err >&5
7917 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7918 (exit $ac_status); } && {
7919 test -z "$ac_c_werror_flag" ||
7920 test ! -s conftest.err
7921 } && test -s conftest.$ac_objext; then
7922 cat >conftest.$ac_ext <<_ACEOF
7925 cat confdefs.h >>conftest.$ac_ext
7926 cat >>conftest.$ac_ext <<_ACEOF
7927 /* end confdefs.h. */
7928 $ac_includes_default
7932 if (sizeof ((pid_t)))
7938 rm -f conftest.$ac_objext
7939 if { (ac_try="$ac_compile"
7941 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7942 *) ac_try_echo=$ac_try;;
7944 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7945 $as_echo "$ac_try_echo") >&5
7946 (eval "$ac_compile") 2>conftest.er1
7948 grep -v '^ *+' conftest.er1 >conftest.err
7950 cat conftest.err >&5
7951 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7952 (exit $ac_status); } && {
7953 test -z "$ac_c_werror_flag" ||
7954 test ! -s conftest.err
7955 } && test -s conftest.$ac_objext; then
7958 $as_echo "$as_me: failed program was:" >&5
7959 sed 's/^/| /' conftest.$ac_ext >&5
7961 ac_cv_type_pid_t=yes
7964 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7966 $as_echo "$as_me: failed program was:" >&5
7967 sed 's/^/| /' conftest.$ac_ext >&5
7972 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7974 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
7975 $as_echo "$ac_cv_type_pid_t" >&6; }
7976 if test "x$ac_cv_type_pid_t" = x""yes; then
7980 cat >>confdefs.h <<_ACEOF
7986 { $as_echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
7987 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
7988 if test "${ac_cv_header_time+set}" = set; then
7989 $as_echo_n "(cached) " >&6
7991 cat >conftest.$ac_ext <<_ACEOF
7994 cat confdefs.h >>conftest.$ac_ext
7995 cat >>conftest.$ac_ext <<_ACEOF
7996 /* end confdefs.h. */
7997 #include <sys/types.h>
7998 #include <sys/time.h>
8004 if ((struct tm *) 0)
8010 rm -f conftest.$ac_objext
8011 if { (ac_try="$ac_compile"
8013 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8014 *) ac_try_echo=$ac_try;;
8016 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8017 $as_echo "$ac_try_echo") >&5
8018 (eval "$ac_compile") 2>conftest.er1
8020 grep -v '^ *+' conftest.er1 >conftest.err
8022 cat conftest.err >&5
8023 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8024 (exit $ac_status); } && {
8025 test -z "$ac_c_werror_flag" ||
8026 test ! -s conftest.err
8027 } && test -s conftest.$ac_objext; then
8028 ac_cv_header_time=yes
8030 $as_echo "$as_me: failed program was:" >&5
8031 sed 's/^/| /' conftest.$ac_ext >&5
8033 ac_cv_header_time=no
8036 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8038 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
8039 $as_echo "$ac_cv_header_time" >&6; }
8040 if test $ac_cv_header_time = yes; then
8042 cat >>confdefs.h <<\_ACEOF
8043 #define TIME_WITH_SYS_TIME 1
8048 { $as_echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
8049 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
8050 if test "${ac_cv_struct_tm+set}" = set; then
8051 $as_echo_n "(cached) " >&6
8053 cat >conftest.$ac_ext <<_ACEOF
8056 cat confdefs.h >>conftest.$ac_ext
8057 cat >>conftest.$ac_ext <<_ACEOF
8058 /* end confdefs.h. */
8059 #include <sys/types.h>
8066 int *p = &tm.tm_sec;
8072 rm -f conftest.$ac_objext
8073 if { (ac_try="$ac_compile"
8075 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8076 *) ac_try_echo=$ac_try;;
8078 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8079 $as_echo "$ac_try_echo") >&5
8080 (eval "$ac_compile") 2>conftest.er1
8082 grep -v '^ *+' conftest.er1 >conftest.err
8084 cat conftest.err >&5
8085 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8086 (exit $ac_status); } && {
8087 test -z "$ac_c_werror_flag" ||
8088 test ! -s conftest.err
8089 } && test -s conftest.$ac_objext; then
8090 ac_cv_struct_tm=time.h
8092 $as_echo "$as_me: failed program was:" >&5
8093 sed 's/^/| /' conftest.$ac_ext >&5
8095 ac_cv_struct_tm=sys/time.h
8098 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8100 { $as_echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
8101 $as_echo "$ac_cv_struct_tm" >&6; }
8102 if test $ac_cv_struct_tm = sys/time.h; then
8104 cat >>confdefs.h <<\_ACEOF
8105 #define TM_IN_SYS_TIME 1
8111 # Checks for library functions.
8113 for ac_header in vfork.h
8115 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8116 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8117 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
8118 $as_echo_n "checking for $ac_header... " >&6; }
8119 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8120 $as_echo_n "(cached) " >&6
8122 ac_res=`eval 'as_val=${'$as_ac_Header'}
8123 $as_echo "$as_val"'`
8124 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
8125 $as_echo "$ac_res" >&6; }
8127 # Is the header compilable?
8128 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
8129 $as_echo_n "checking $ac_header usability... " >&6; }
8130 cat >conftest.$ac_ext <<_ACEOF
8133 cat confdefs.h >>conftest.$ac_ext
8134 cat >>conftest.$ac_ext <<_ACEOF
8135 /* end confdefs.h. */
8136 $ac_includes_default
8137 #include <$ac_header>
8139 rm -f conftest.$ac_objext
8140 if { (ac_try="$ac_compile"
8142 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8143 *) ac_try_echo=$ac_try;;
8145 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8146 $as_echo "$ac_try_echo") >&5
8147 (eval "$ac_compile") 2>conftest.er1
8149 grep -v '^ *+' conftest.er1 >conftest.err
8151 cat conftest.err >&5
8152 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8153 (exit $ac_status); } && {
8154 test -z "$ac_c_werror_flag" ||
8155 test ! -s conftest.err
8156 } && test -s conftest.$ac_objext; then
8157 ac_header_compiler=yes
8159 $as_echo "$as_me: failed program was:" >&5
8160 sed 's/^/| /' conftest.$ac_ext >&5
8162 ac_header_compiler=no
8165 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8166 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8167 $as_echo "$ac_header_compiler" >&6; }
8169 # Is the header present?
8170 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
8171 $as_echo_n "checking $ac_header presence... " >&6; }
8172 cat >conftest.$ac_ext <<_ACEOF
8175 cat confdefs.h >>conftest.$ac_ext
8176 cat >>conftest.$ac_ext <<_ACEOF
8177 /* end confdefs.h. */
8178 #include <$ac_header>
8180 if { (ac_try="$ac_cpp conftest.$ac_ext"
8182 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8183 *) ac_try_echo=$ac_try;;
8185 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8186 $as_echo "$ac_try_echo") >&5
8187 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8189 grep -v '^ *+' conftest.er1 >conftest.err
8191 cat conftest.err >&5
8192 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8193 (exit $ac_status); } >/dev/null && {
8194 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
8195 test ! -s conftest.err
8197 ac_header_preproc=yes
8199 $as_echo "$as_me: failed program was:" >&5
8200 sed 's/^/| /' conftest.$ac_ext >&5
8202 ac_header_preproc=no
8205 rm -f conftest.err conftest.$ac_ext
8206 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8207 $as_echo "$ac_header_preproc" >&6; }
8209 # So? What about this header?
8210 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8212 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8213 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8214 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8215 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8216 ac_header_preproc=yes
8219 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8220 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8221 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8222 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8223 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8224 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8225 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8226 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8227 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8228 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8229 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8230 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8232 ## ----------------------------------- ##
8233 ## Report this to andreas@eversberg.eu ##
8234 ## ----------------------------------- ##
8236 ) | sed "s/^/$as_me: WARNING: /" >&2
8239 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
8240 $as_echo_n "checking for $ac_header... " >&6; }
8241 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8242 $as_echo_n "(cached) " >&6
8244 eval "$as_ac_Header=\$ac_header_preproc"
8246 ac_res=`eval 'as_val=${'$as_ac_Header'}
8247 $as_echo "$as_val"'`
8248 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
8249 $as_echo "$ac_res" >&6; }
8252 as_val=`eval 'as_val=${'$as_ac_Header'}
8253 $as_echo "$as_val"'`
8254 if test "x$as_val" = x""yes; then
8255 cat >>confdefs.h <<_ACEOF
8256 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8265 for ac_func in fork vfork
8267 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
8268 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
8269 $as_echo_n "checking for $ac_func... " >&6; }
8270 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
8271 $as_echo_n "(cached) " >&6
8273 cat >conftest.$ac_ext <<_ACEOF
8276 cat confdefs.h >>conftest.$ac_ext
8277 cat >>conftest.$ac_ext <<_ACEOF
8278 /* end confdefs.h. */
8279 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8280 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8281 #define $ac_func innocuous_$ac_func
8283 /* System header to define __stub macros and hopefully few prototypes,
8284 which can conflict with char $ac_func (); below.
8285 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8286 <limits.h> exists even on freestanding compilers. */
8289 # include <limits.h>
8291 # include <assert.h>
8296 /* Override any GCC internal prototype to avoid an error.
8297 Use char because int might match the return type of a GCC
8298 builtin and then its argument prototype would still apply. */
8303 /* The GNU C library defines this for functions which it implements
8304 to always fail with ENOSYS. Some functions are actually named
8305 something starting with __ and the normal name is an alias. */
8306 #if defined __stub_$ac_func || defined __stub___$ac_func
8318 rm -f conftest.$ac_objext conftest$ac_exeext
8319 if { (ac_try="$ac_link"
8321 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8322 *) ac_try_echo=$ac_try;;
8324 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8325 $as_echo "$ac_try_echo") >&5
8326 (eval "$ac_link") 2>conftest.er1
8328 grep -v '^ *+' conftest.er1 >conftest.err
8330 cat conftest.err >&5
8331 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8332 (exit $ac_status); } && {
8333 test -z "$ac_c_werror_flag" ||
8334 test ! -s conftest.err
8335 } && test -s conftest$ac_exeext && {
8336 test "$cross_compiling" = yes ||
8337 $as_test_x conftest$ac_exeext
8339 eval "$as_ac_var=yes"
8341 $as_echo "$as_me: failed program was:" >&5
8342 sed 's/^/| /' conftest.$ac_ext >&5
8344 eval "$as_ac_var=no"
8347 rm -rf conftest.dSYM
8348 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8349 conftest$ac_exeext conftest.$ac_ext
8351 ac_res=`eval 'as_val=${'$as_ac_var'}
8352 $as_echo "$as_val"'`
8353 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
8354 $as_echo "$ac_res" >&6; }
8355 as_val=`eval 'as_val=${'$as_ac_var'}
8356 $as_echo "$as_val"'`
8357 if test "x$as_val" = x""yes; then
8358 cat >>confdefs.h <<_ACEOF
8359 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
8365 if test "x$ac_cv_func_fork" = xyes; then
8366 { $as_echo "$as_me:$LINENO: checking for working fork" >&5
8367 $as_echo_n "checking for working fork... " >&6; }
8368 if test "${ac_cv_func_fork_works+set}" = set; then
8369 $as_echo_n "(cached) " >&6
8371 if test "$cross_compiling" = yes; then
8372 ac_cv_func_fork_works=cross
8374 cat >conftest.$ac_ext <<_ACEOF
8377 cat confdefs.h >>conftest.$ac_ext
8378 cat >>conftest.$ac_ext <<_ACEOF
8379 /* end confdefs.h. */
8380 $ac_includes_default
8385 /* By Ruediger Kuhlmann. */
8392 rm -f conftest$ac_exeext
8393 if { (ac_try="$ac_link"
8395 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8396 *) ac_try_echo=$ac_try;;
8398 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8399 $as_echo "$ac_try_echo") >&5
8400 (eval "$ac_link") 2>&5
8402 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8403 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8404 { (case "(($ac_try" in
8405 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8406 *) ac_try_echo=$ac_try;;
8408 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8409 $as_echo "$ac_try_echo") >&5
8410 (eval "$ac_try") 2>&5
8412 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8413 (exit $ac_status); }; }; then
8414 ac_cv_func_fork_works=yes
8416 $as_echo "$as_me: program exited with status $ac_status" >&5
8417 $as_echo "$as_me: failed program was:" >&5
8418 sed 's/^/| /' conftest.$ac_ext >&5
8421 ac_cv_func_fork_works=no
8423 rm -rf conftest.dSYM
8424 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8429 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
8430 $as_echo "$ac_cv_func_fork_works" >&6; }
8433 ac_cv_func_fork_works=$ac_cv_func_fork
8435 if test "x$ac_cv_func_fork_works" = xcross; then
8437 *-*-amigaos* | *-*-msdosdjgpp*)
8438 # Override, as these systems have only a dummy fork() stub
8439 ac_cv_func_fork_works=no
8442 ac_cv_func_fork_works=yes
8445 { $as_echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
8446 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
8448 ac_cv_func_vfork_works=$ac_cv_func_vfork
8449 if test "x$ac_cv_func_vfork" = xyes; then
8450 { $as_echo "$as_me:$LINENO: checking for working vfork" >&5
8451 $as_echo_n "checking for working vfork... " >&6; }
8452 if test "${ac_cv_func_vfork_works+set}" = set; then
8453 $as_echo_n "(cached) " >&6
8455 if test "$cross_compiling" = yes; then
8456 ac_cv_func_vfork_works=cross
8458 cat >conftest.$ac_ext <<_ACEOF
8461 cat confdefs.h >>conftest.$ac_ext
8462 cat >>conftest.$ac_ext <<_ACEOF
8463 /* end confdefs.h. */
8464 /* Thanks to Paul Eggert for this test. */
8465 $ac_includes_default
8466 #include <sys/wait.h>
8470 /* On some sparc systems, changes by the child to local and incoming
8471 argument registers are propagated back to the parent. The compiler
8472 is told about this with #include <vfork.h>, but some compilers
8473 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
8474 static variable whose address is put into a register that is
8475 clobbered by the vfork. */
8478 sparc_address_test (int arg)
8480 sparc_address_test (arg) int arg;
8501 pid_t parent = getpid ();
8504 sparc_address_test (0);
8509 /* Here is another test for sparc vfork register problems. This
8510 test uses lots of local variables, at least as many local
8511 variables as main has allocated so far including compiler
8512 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
8513 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
8514 reuse the register of parent for one of the local variables,
8515 since it will think that parent can't possibly be used any more
8516 in this routine. Assigning to the local variable will thus
8517 munge parent in the parent process. */
8519 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
8520 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
8521 /* Convince the compiler that p..p7 are live; otherwise, it might
8522 use the same hardware register for all 8 local variables. */
8523 if (p != p1 || p != p2 || p != p3 || p != p4
8524 || p != p5 || p != p6 || p != p7)
8527 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
8528 from child file descriptors. If the child closes a descriptor
8529 before it execs or exits, this munges the parent's descriptor
8530 as well. Test for this by closing stdout in the child. */
8531 _exit(close(fileno(stdout)) != 0);
8536 while (wait(&status) != child)
8539 /* Was there some problem with vforking? */
8542 /* Did the child fail? (This shouldn't happen.) */
8545 /* Did the vfork/compiler bug occur? */
8546 || parent != getpid()
8548 /* Did the file descriptor bug occur? */
8549 || fstat(fileno(stdout), &st) != 0
8554 rm -f conftest$ac_exeext
8555 if { (ac_try="$ac_link"
8557 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8558 *) ac_try_echo=$ac_try;;
8560 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8561 $as_echo "$ac_try_echo") >&5
8562 (eval "$ac_link") 2>&5
8564 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8565 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8566 { (case "(($ac_try" in
8567 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8568 *) ac_try_echo=$ac_try;;
8570 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8571 $as_echo "$ac_try_echo") >&5
8572 (eval "$ac_try") 2>&5
8574 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8575 (exit $ac_status); }; }; then
8576 ac_cv_func_vfork_works=yes
8578 $as_echo "$as_me: program exited with status $ac_status" >&5
8579 $as_echo "$as_me: failed program was:" >&5
8580 sed 's/^/| /' conftest.$ac_ext >&5
8583 ac_cv_func_vfork_works=no
8585 rm -rf conftest.dSYM
8586 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8591 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
8592 $as_echo "$ac_cv_func_vfork_works" >&6; }
8595 if test "x$ac_cv_func_fork_works" = xcross; then
8596 ac_cv_func_vfork_works=$ac_cv_func_vfork
8597 { $as_echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
8598 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
8601 if test "x$ac_cv_func_vfork_works" = xyes; then
8603 cat >>confdefs.h <<\_ACEOF
8604 #define HAVE_WORKING_VFORK 1
8609 cat >>confdefs.h <<\_ACEOF
8614 if test "x$ac_cv_func_fork_works" = xyes; then
8616 cat >>confdefs.h <<\_ACEOF
8617 #define HAVE_WORKING_FORK 1
8622 if test $ac_cv_c_compiler_gnu = yes; then
8623 { $as_echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
8624 $as_echo_n "checking whether $CC needs -traditional... " >&6; }
8625 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
8626 $as_echo_n "(cached) " >&6
8628 ac_pattern="Autoconf.*'x'"
8629 cat >conftest.$ac_ext <<_ACEOF
8632 cat confdefs.h >>conftest.$ac_ext
8633 cat >>conftest.$ac_ext <<_ACEOF
8634 /* end confdefs.h. */
8638 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8639 $EGREP "$ac_pattern" >/dev/null 2>&1; then
8640 ac_cv_prog_gcc_traditional=yes
8642 ac_cv_prog_gcc_traditional=no
8647 if test $ac_cv_prog_gcc_traditional = no; then
8648 cat >conftest.$ac_ext <<_ACEOF
8651 cat confdefs.h >>conftest.$ac_ext
8652 cat >>conftest.$ac_ext <<_ACEOF
8653 /* end confdefs.h. */
8657 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8658 $EGREP "$ac_pattern" >/dev/null 2>&1; then
8659 ac_cv_prog_gcc_traditional=yes
8665 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
8666 $as_echo "$ac_cv_prog_gcc_traditional" >&6; }
8667 if test $ac_cv_prog_gcc_traditional = yes; then
8668 CC="$CC -traditional"
8672 { $as_echo "$as_me:$LINENO: checking whether lstat dereferences a symlink specified with a trailing slash" >&5
8673 $as_echo_n "checking whether lstat dereferences a symlink specified with a trailing slash... " >&6; }
8674 if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then
8675 $as_echo_n "(cached) " >&6
8677 rm -f conftest.sym conftest.file
8679 if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
8680 if test "$cross_compiling" = yes; then
8681 ac_cv_func_lstat_dereferences_slashed_symlink=no
8683 cat >conftest.$ac_ext <<_ACEOF
8686 cat confdefs.h >>conftest.$ac_ext
8687 cat >>conftest.$ac_ext <<_ACEOF
8688 /* end confdefs.h. */
8689 $ac_includes_default
8694 /* Linux will dereference the symlink and fail.
8695 That is better in the sense that it means we will not
8696 have to compile and use the lstat wrapper. */
8697 return lstat ("conftest.sym/", &sbuf) == 0;
8702 rm -f conftest$ac_exeext
8703 if { (ac_try="$ac_link"
8705 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8706 *) ac_try_echo=$ac_try;;
8708 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8709 $as_echo "$ac_try_echo") >&5
8710 (eval "$ac_link") 2>&5
8712 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8713 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8714 { (case "(($ac_try" in
8715 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8716 *) ac_try_echo=$ac_try;;
8718 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8719 $as_echo "$ac_try_echo") >&5
8720 (eval "$ac_try") 2>&5
8722 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8723 (exit $ac_status); }; }; then
8724 ac_cv_func_lstat_dereferences_slashed_symlink=yes
8726 $as_echo "$as_me: program exited with status $ac_status" >&5
8727 $as_echo "$as_me: failed program was:" >&5
8728 sed 's/^/| /' conftest.$ac_ext >&5
8731 ac_cv_func_lstat_dereferences_slashed_symlink=no
8733 rm -rf conftest.dSYM
8734 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8739 # If the `ln -s' command failed, then we probably don't even
8740 # have an lstat function.
8741 ac_cv_func_lstat_dereferences_slashed_symlink=no
8743 rm -f conftest.sym conftest.file
8746 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
8747 $as_echo "$ac_cv_func_lstat_dereferences_slashed_symlink" >&6; }
8749 test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
8751 cat >>confdefs.h <<_ACEOF
8752 #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
8756 if test $ac_cv_func_lstat_dereferences_slashed_symlink = no; then
8757 case " $LIBOBJS " in
8758 *" lstat.$ac_objext "* ) ;;
8759 *) LIBOBJS="$LIBOBJS lstat.$ac_objext"
8765 { $as_echo "$as_me:$LINENO: checking whether lstat accepts an empty string" >&5
8766 $as_echo_n "checking whether lstat accepts an empty string... " >&6; }
8767 if test "${ac_cv_func_lstat_empty_string_bug+set}" = set; then
8768 $as_echo_n "(cached) " >&6
8770 if test "$cross_compiling" = yes; then
8771 ac_cv_func_lstat_empty_string_bug=yes
8773 cat >conftest.$ac_ext <<_ACEOF
8776 cat confdefs.h >>conftest.$ac_ext
8777 cat >>conftest.$ac_ext <<_ACEOF
8778 /* end confdefs.h. */
8779 $ac_includes_default
8784 return lstat ("", &sbuf) == 0;
8789 rm -f conftest$ac_exeext
8790 if { (ac_try="$ac_link"
8792 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8793 *) ac_try_echo=$ac_try;;
8795 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8796 $as_echo "$ac_try_echo") >&5
8797 (eval "$ac_link") 2>&5
8799 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8800 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8801 { (case "(($ac_try" in
8802 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8803 *) ac_try_echo=$ac_try;;
8805 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8806 $as_echo "$ac_try_echo") >&5
8807 (eval "$ac_try") 2>&5
8809 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8810 (exit $ac_status); }; }; then
8811 ac_cv_func_lstat_empty_string_bug=no
8813 $as_echo "$as_me: program exited with status $ac_status" >&5
8814 $as_echo "$as_me: failed program was:" >&5
8815 sed 's/^/| /' conftest.$ac_ext >&5
8818 ac_cv_func_lstat_empty_string_bug=yes
8820 rm -rf conftest.dSYM
8821 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8826 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_lstat_empty_string_bug" >&5
8827 $as_echo "$ac_cv_func_lstat_empty_string_bug" >&6; }
8828 if test $ac_cv_func_lstat_empty_string_bug = yes; then
8829 case " $LIBOBJS " in
8830 *" lstat.$ac_objext "* ) ;;
8831 *) LIBOBJS="$LIBOBJS lstat.$ac_objext"
8836 cat >>confdefs.h <<_ACEOF
8837 #define HAVE_LSTAT_EMPTY_STRING_BUG 1
8842 { $as_echo "$as_me:$LINENO: checking whether lstat dereferences a symlink specified with a trailing slash" >&5
8843 $as_echo_n "checking whether lstat dereferences a symlink specified with a trailing slash... " >&6; }
8844 if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then
8845 $as_echo_n "(cached) " >&6
8847 rm -f conftest.sym conftest.file
8849 if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
8850 if test "$cross_compiling" = yes; then
8851 ac_cv_func_lstat_dereferences_slashed_symlink=no
8853 cat >conftest.$ac_ext <<_ACEOF
8856 cat confdefs.h >>conftest.$ac_ext
8857 cat >>conftest.$ac_ext <<_ACEOF
8858 /* end confdefs.h. */
8859 $ac_includes_default
8864 /* Linux will dereference the symlink and fail.
8865 That is better in the sense that it means we will not
8866 have to compile and use the lstat wrapper. */
8867 return lstat ("conftest.sym/", &sbuf) == 0;
8872 rm -f conftest$ac_exeext
8873 if { (ac_try="$ac_link"
8875 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8876 *) ac_try_echo=$ac_try;;
8878 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8879 $as_echo "$ac_try_echo") >&5
8880 (eval "$ac_link") 2>&5
8882 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8883 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8884 { (case "(($ac_try" in
8885 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8886 *) ac_try_echo=$ac_try;;
8888 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8889 $as_echo "$ac_try_echo") >&5
8890 (eval "$ac_try") 2>&5
8892 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8893 (exit $ac_status); }; }; then
8894 ac_cv_func_lstat_dereferences_slashed_symlink=yes
8896 $as_echo "$as_me: program exited with status $ac_status" >&5
8897 $as_echo "$as_me: failed program was:" >&5
8898 sed 's/^/| /' conftest.$ac_ext >&5
8901 ac_cv_func_lstat_dereferences_slashed_symlink=no
8903 rm -rf conftest.dSYM
8904 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8909 # If the `ln -s' command failed, then we probably don't even
8910 # have an lstat function.
8911 ac_cv_func_lstat_dereferences_slashed_symlink=no
8913 rm -f conftest.sym conftest.file
8916 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
8917 $as_echo "$ac_cv_func_lstat_dereferences_slashed_symlink" >&6; }
8919 test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
8921 cat >>confdefs.h <<_ACEOF
8922 #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
8926 if test $ac_cv_func_lstat_dereferences_slashed_symlink = no; then
8927 case " $LIBOBJS " in
8928 *" lstat.$ac_objext "* ) ;;
8929 *) LIBOBJS="$LIBOBJS lstat.$ac_objext"
8936 for ac_header in stdlib.h
8938 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8939 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8940 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
8941 $as_echo_n "checking for $ac_header... " >&6; }
8942 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8943 $as_echo_n "(cached) " >&6
8945 ac_res=`eval 'as_val=${'$as_ac_Header'}
8946 $as_echo "$as_val"'`
8947 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
8948 $as_echo "$ac_res" >&6; }
8950 # Is the header compilable?
8951 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
8952 $as_echo_n "checking $ac_header usability... " >&6; }
8953 cat >conftest.$ac_ext <<_ACEOF
8956 cat confdefs.h >>conftest.$ac_ext
8957 cat >>conftest.$ac_ext <<_ACEOF
8958 /* end confdefs.h. */
8959 $ac_includes_default
8960 #include <$ac_header>
8962 rm -f conftest.$ac_objext
8963 if { (ac_try="$ac_compile"
8965 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8966 *) ac_try_echo=$ac_try;;
8968 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8969 $as_echo "$ac_try_echo") >&5
8970 (eval "$ac_compile") 2>conftest.er1
8972 grep -v '^ *+' conftest.er1 >conftest.err
8974 cat conftest.err >&5
8975 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8976 (exit $ac_status); } && {
8977 test -z "$ac_c_werror_flag" ||
8978 test ! -s conftest.err
8979 } && test -s conftest.$ac_objext; then
8980 ac_header_compiler=yes
8982 $as_echo "$as_me: failed program was:" >&5
8983 sed 's/^/| /' conftest.$ac_ext >&5
8985 ac_header_compiler=no
8988 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8989 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8990 $as_echo "$ac_header_compiler" >&6; }
8992 # Is the header present?
8993 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
8994 $as_echo_n "checking $ac_header presence... " >&6; }
8995 cat >conftest.$ac_ext <<_ACEOF
8998 cat confdefs.h >>conftest.$ac_ext
8999 cat >>conftest.$ac_ext <<_ACEOF
9000 /* end confdefs.h. */
9001 #include <$ac_header>
9003 if { (ac_try="$ac_cpp conftest.$ac_ext"
9005 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9006 *) ac_try_echo=$ac_try;;
9008 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9009 $as_echo "$ac_try_echo") >&5
9010 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9012 grep -v '^ *+' conftest.er1 >conftest.err
9014 cat conftest.err >&5
9015 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9016 (exit $ac_status); } >/dev/null && {
9017 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9018 test ! -s conftest.err
9020 ac_header_preproc=yes
9022 $as_echo "$as_me: failed program was:" >&5
9023 sed 's/^/| /' conftest.$ac_ext >&5
9025 ac_header_preproc=no
9028 rm -f conftest.err conftest.$ac_ext
9029 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9030 $as_echo "$ac_header_preproc" >&6; }
9032 # So? What about this header?
9033 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9035 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9036 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9037 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9038 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9039 ac_header_preproc=yes
9042 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9043 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9044 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9045 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9046 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9047 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9048 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9049 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9050 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9051 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9052 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9053 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9055 ## ----------------------------------- ##
9056 ## Report this to andreas@eversberg.eu ##
9057 ## ----------------------------------- ##
9059 ) | sed "s/^/$as_me: WARNING: /" >&2
9062 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
9063 $as_echo_n "checking for $ac_header... " >&6; }
9064 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9065 $as_echo_n "(cached) " >&6
9067 eval "$as_ac_Header=\$ac_header_preproc"
9069 ac_res=`eval 'as_val=${'$as_ac_Header'}
9070 $as_echo "$as_val"'`
9071 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
9072 $as_echo "$ac_res" >&6; }
9075 as_val=`eval 'as_val=${'$as_ac_Header'}
9076 $as_echo "$as_val"'`
9077 if test "x$as_val" = x""yes; then
9078 cat >>confdefs.h <<_ACEOF
9079 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9086 { $as_echo "$as_me:$LINENO: checking for GNU libc compatible malloc" >&5
9087 $as_echo_n "checking for GNU libc compatible malloc... " >&6; }
9088 if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then
9089 $as_echo_n "(cached) " >&6
9091 if test "$cross_compiling" = yes; then
9092 ac_cv_func_malloc_0_nonnull=no
9094 cat >conftest.$ac_ext <<_ACEOF
9097 cat confdefs.h >>conftest.$ac_ext
9098 cat >>conftest.$ac_ext <<_ACEOF
9099 /* end confdefs.h. */
9100 #if defined STDC_HEADERS || defined HAVE_STDLIB_H
9101 # include <stdlib.h>
9109 return ! malloc (0);
9114 rm -f conftest$ac_exeext
9115 if { (ac_try="$ac_link"
9117 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9118 *) ac_try_echo=$ac_try;;
9120 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9121 $as_echo "$ac_try_echo") >&5
9122 (eval "$ac_link") 2>&5
9124 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9125 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9126 { (case "(($ac_try" in
9127 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9128 *) ac_try_echo=$ac_try;;
9130 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9131 $as_echo "$ac_try_echo") >&5
9132 (eval "$ac_try") 2>&5
9134 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9135 (exit $ac_status); }; }; then
9136 ac_cv_func_malloc_0_nonnull=yes
9138 $as_echo "$as_me: program exited with status $ac_status" >&5
9139 $as_echo "$as_me: failed program was:" >&5
9140 sed 's/^/| /' conftest.$ac_ext >&5
9143 ac_cv_func_malloc_0_nonnull=no
9145 rm -rf conftest.dSYM
9146 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9151 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_malloc_0_nonnull" >&5
9152 $as_echo "$ac_cv_func_malloc_0_nonnull" >&6; }
9153 if test $ac_cv_func_malloc_0_nonnull = yes; then
9155 cat >>confdefs.h <<\_ACEOF
9156 #define HAVE_MALLOC 1
9160 cat >>confdefs.h <<\_ACEOF
9161 #define HAVE_MALLOC 0
9164 case " $LIBOBJS " in
9165 *" malloc.$ac_objext "* ) ;;
9166 *) LIBOBJS="$LIBOBJS malloc.$ac_objext"
9171 cat >>confdefs.h <<\_ACEOF
9172 #define malloc rpl_malloc
9179 { $as_echo "$as_me:$LINENO: checking for working memcmp" >&5
9180 $as_echo_n "checking for working memcmp... " >&6; }
9181 if test "${ac_cv_func_memcmp_working+set}" = set; then
9182 $as_echo_n "(cached) " >&6
9184 if test "$cross_compiling" = yes; then
9185 ac_cv_func_memcmp_working=no
9187 cat >conftest.$ac_ext <<_ACEOF
9190 cat confdefs.h >>conftest.$ac_ext
9191 cat >>conftest.$ac_ext <<_ACEOF
9192 /* end confdefs.h. */
9193 $ac_includes_default
9198 /* Some versions of memcmp are not 8-bit clean. */
9199 char c0 = '\100', c1 = '\200', c2 = '\201';
9200 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
9203 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
9204 or more and with at least one buffer not starting on a 4-byte boundary.
9205 William Lewis provided this test program. */
9210 for (i = 0; i < 4; i++)
9214 strcpy (a, "--------01111111");
9215 strcpy (b, "--------10000000");
9216 if (memcmp (a, b, 16) >= 0)
9226 rm -f conftest$ac_exeext
9227 if { (ac_try="$ac_link"
9229 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9230 *) ac_try_echo=$ac_try;;
9232 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9233 $as_echo "$ac_try_echo") >&5
9234 (eval "$ac_link") 2>&5
9236 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9237 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9238 { (case "(($ac_try" in
9239 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9240 *) ac_try_echo=$ac_try;;
9242 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9243 $as_echo "$ac_try_echo") >&5
9244 (eval "$ac_try") 2>&5
9246 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9247 (exit $ac_status); }; }; then
9248 ac_cv_func_memcmp_working=yes
9250 $as_echo "$as_me: program exited with status $ac_status" >&5
9251 $as_echo "$as_me: failed program was:" >&5
9252 sed 's/^/| /' conftest.$ac_ext >&5
9255 ac_cv_func_memcmp_working=no
9257 rm -rf conftest.dSYM
9258 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9263 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
9264 $as_echo "$ac_cv_func_memcmp_working" >&6; }
9265 test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
9266 *" memcmp.$ac_objext "* ) ;;
9267 *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
9272 { $as_echo "$as_me:$LINENO: checking return type of signal handlers" >&5
9273 $as_echo_n "checking return type of signal handlers... " >&6; }
9274 if test "${ac_cv_type_signal+set}" = set; then
9275 $as_echo_n "(cached) " >&6
9277 cat >conftest.$ac_ext <<_ACEOF
9280 cat confdefs.h >>conftest.$ac_ext
9281 cat >>conftest.$ac_ext <<_ACEOF
9282 /* end confdefs.h. */
9283 #include <sys/types.h>
9289 return *(signal (0, 0)) (0) == 1;
9294 rm -f conftest.$ac_objext
9295 if { (ac_try="$ac_compile"
9297 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9298 *) ac_try_echo=$ac_try;;
9300 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9301 $as_echo "$ac_try_echo") >&5
9302 (eval "$ac_compile") 2>conftest.er1
9304 grep -v '^ *+' conftest.er1 >conftest.err
9306 cat conftest.err >&5
9307 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9308 (exit $ac_status); } && {
9309 test -z "$ac_c_werror_flag" ||
9310 test ! -s conftest.err
9311 } && test -s conftest.$ac_objext; then
9312 ac_cv_type_signal=int
9314 $as_echo "$as_me: failed program was:" >&5
9315 sed 's/^/| /' conftest.$ac_ext >&5
9317 ac_cv_type_signal=void
9320 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9322 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
9323 $as_echo "$ac_cv_type_signal" >&6; }
9325 cat >>confdefs.h <<_ACEOF
9326 #define RETSIGTYPE $ac_cv_type_signal
9330 { $as_echo "$as_me:$LINENO: checking for working strnlen" >&5
9331 $as_echo_n "checking for working strnlen... " >&6; }
9332 if test "${ac_cv_func_strnlen_working+set}" = set; then
9333 $as_echo_n "(cached) " >&6
9335 if test "$cross_compiling" = yes; then
9336 ac_cv_func_strnlen_working=no
9338 cat >conftest.$ac_ext <<_ACEOF
9341 cat confdefs.h >>conftest.$ac_ext
9342 cat >>conftest.$ac_ext <<_ACEOF
9343 /* end confdefs.h. */
9344 $ac_includes_default
9350 #define S_LEN (sizeof S - 1)
9352 /* At least one implementation is buggy: that of AIX 4.3 would
9353 give strnlen (S, 1) == 3. */
9356 for (i = 0; i < S_LEN + 1; ++i)
9358 int expected = i <= S_LEN ? i : S_LEN;
9359 if (strnlen (S, i) != expected)
9368 rm -f conftest$ac_exeext
9369 if { (ac_try="$ac_link"
9371 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9372 *) ac_try_echo=$ac_try;;
9374 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9375 $as_echo "$ac_try_echo") >&5
9376 (eval "$ac_link") 2>&5
9378 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9379 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9380 { (case "(($ac_try" in
9381 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9382 *) ac_try_echo=$ac_try;;
9384 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9385 $as_echo "$ac_try_echo") >&5
9386 (eval "$ac_try") 2>&5
9388 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9389 (exit $ac_status); }; }; then
9390 ac_cv_func_strnlen_working=yes
9392 $as_echo "$as_me: program exited with status $ac_status" >&5
9393 $as_echo "$as_me: failed program was:" >&5
9394 sed 's/^/| /' conftest.$ac_ext >&5
9397 ac_cv_func_strnlen_working=no
9399 rm -rf conftest.dSYM
9400 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9405 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_strnlen_working" >&5
9406 $as_echo "$ac_cv_func_strnlen_working" >&6; }
9407 test $ac_cv_func_strnlen_working = no && case " $LIBOBJS " in
9408 *" strnlen.$ac_objext "* ) ;;
9409 *) LIBOBJS="$LIBOBJS strnlen.$ac_objext"
9414 { $as_echo "$as_me:$LINENO: checking for working strtod" >&5
9415 $as_echo_n "checking for working strtod... " >&6; }
9416 if test "${ac_cv_func_strtod+set}" = set; then
9417 $as_echo_n "(cached) " >&6
9419 if test "$cross_compiling" = yes; then
9420 ac_cv_func_strtod=no
9422 cat >conftest.$ac_ext <<_ACEOF
9425 cat confdefs.h >>conftest.$ac_ext
9426 cat >>conftest.$ac_ext <<_ACEOF
9427 /* end confdefs.h. */
9429 $ac_includes_default
9437 /* Some versions of Linux strtod mis-parse strings with leading '+'. */
9438 char *string = " +69";
9441 value = strtod (string, &term);
9442 if (value != 69 || term != (string + 4))
9447 /* Under Solaris 2.4, strtod returns the wrong value for the
9448 terminating character under some conditions. */
9449 char *string = "NaN";
9451 strtod (string, &term);
9452 if (term != string && *(term - 1) == 0)
9459 rm -f conftest$ac_exeext
9460 if { (ac_try="$ac_link"
9462 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9463 *) ac_try_echo=$ac_try;;
9465 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9466 $as_echo "$ac_try_echo") >&5
9467 (eval "$ac_link") 2>&5
9469 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9470 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9471 { (case "(($ac_try" in
9472 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9473 *) ac_try_echo=$ac_try;;
9475 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9476 $as_echo "$ac_try_echo") >&5
9477 (eval "$ac_try") 2>&5
9479 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9480 (exit $ac_status); }; }; then
9481 ac_cv_func_strtod=yes
9483 $as_echo "$as_me: program exited with status $ac_status" >&5
9484 $as_echo "$as_me: failed program was:" >&5
9485 sed 's/^/| /' conftest.$ac_ext >&5
9488 ac_cv_func_strtod=no
9490 rm -rf conftest.dSYM
9491 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9496 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_strtod" >&5
9497 $as_echo "$ac_cv_func_strtod" >&6; }
9498 if test $ac_cv_func_strtod = no; then
9499 case " $LIBOBJS " in
9500 *" strtod.$ac_objext "* ) ;;
9501 *) LIBOBJS="$LIBOBJS strtod.$ac_objext"
9505 { $as_echo "$as_me:$LINENO: checking for pow" >&5
9506 $as_echo_n "checking for pow... " >&6; }
9507 if test "${ac_cv_func_pow+set}" = set; then
9508 $as_echo_n "(cached) " >&6
9510 cat >conftest.$ac_ext <<_ACEOF
9513 cat confdefs.h >>conftest.$ac_ext
9514 cat >>conftest.$ac_ext <<_ACEOF
9515 /* end confdefs.h. */
9516 /* Define pow to an innocuous variant, in case <limits.h> declares pow.
9517 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9518 #define pow innocuous_pow
9520 /* System header to define __stub macros and hopefully few prototypes,
9521 which can conflict with char pow (); below.
9522 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9523 <limits.h> exists even on freestanding compilers. */
9526 # include <limits.h>
9528 # include <assert.h>
9533 /* Override any GCC internal prototype to avoid an error.
9534 Use char because int might match the return type of a GCC
9535 builtin and then its argument prototype would still apply. */
9540 /* The GNU C library defines this for functions which it implements
9541 to always fail with ENOSYS. Some functions are actually named
9542 something starting with __ and the normal name is an alias. */
9543 #if defined __stub_pow || defined __stub___pow
9555 rm -f conftest.$ac_objext conftest$ac_exeext
9556 if { (ac_try="$ac_link"
9558 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9559 *) ac_try_echo=$ac_try;;
9561 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9562 $as_echo "$ac_try_echo") >&5
9563 (eval "$ac_link") 2>conftest.er1
9565 grep -v '^ *+' conftest.er1 >conftest.err
9567 cat conftest.err >&5
9568 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9569 (exit $ac_status); } && {
9570 test -z "$ac_c_werror_flag" ||
9571 test ! -s conftest.err
9572 } && test -s conftest$ac_exeext && {
9573 test "$cross_compiling" = yes ||
9574 $as_test_x conftest$ac_exeext
9578 $as_echo "$as_me: failed program was:" >&5
9579 sed 's/^/| /' conftest.$ac_ext >&5
9584 rm -rf conftest.dSYM
9585 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9586 conftest$ac_exeext conftest.$ac_ext
9588 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_pow" >&5
9589 $as_echo "$ac_cv_func_pow" >&6; }
9591 if test $ac_cv_func_pow = no; then
9592 { $as_echo "$as_me:$LINENO: checking for pow in -lm" >&5
9593 $as_echo_n "checking for pow in -lm... " >&6; }
9594 if test "${ac_cv_lib_m_pow+set}" = set; then
9595 $as_echo_n "(cached) " >&6
9597 ac_check_lib_save_LIBS=$LIBS
9599 cat >conftest.$ac_ext <<_ACEOF
9602 cat confdefs.h >>conftest.$ac_ext
9603 cat >>conftest.$ac_ext <<_ACEOF
9604 /* end confdefs.h. */
9606 /* Override any GCC internal prototype to avoid an error.
9607 Use char because int might match the return type of a GCC
9608 builtin and then its argument prototype would still apply. */
9621 rm -f conftest.$ac_objext conftest$ac_exeext
9622 if { (ac_try="$ac_link"
9624 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9625 *) ac_try_echo=$ac_try;;
9627 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9628 $as_echo "$ac_try_echo") >&5
9629 (eval "$ac_link") 2>conftest.er1
9631 grep -v '^ *+' conftest.er1 >conftest.err
9633 cat conftest.err >&5
9634 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9635 (exit $ac_status); } && {
9636 test -z "$ac_c_werror_flag" ||
9637 test ! -s conftest.err
9638 } && test -s conftest$ac_exeext && {
9639 test "$cross_compiling" = yes ||
9640 $as_test_x conftest$ac_exeext
9644 $as_echo "$as_me: failed program was:" >&5
9645 sed 's/^/| /' conftest.$ac_ext >&5
9650 rm -rf conftest.dSYM
9651 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9652 conftest$ac_exeext conftest.$ac_ext
9653 LIBS=$ac_check_lib_save_LIBS
9655 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_m_pow" >&5
9656 $as_echo "$ac_cv_lib_m_pow" >&6; }
9657 if test "x$ac_cv_lib_m_pow" = x""yes; then
9660 { $as_echo "$as_me:$LINENO: WARNING: cannot find library containing definition of pow" >&5
9661 $as_echo "$as_me: WARNING: cannot find library containing definition of pow" >&2;}
9669 for ac_func in vprintf
9671 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9672 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
9673 $as_echo_n "checking for $ac_func... " >&6; }
9674 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
9675 $as_echo_n "(cached) " >&6
9677 cat >conftest.$ac_ext <<_ACEOF
9680 cat confdefs.h >>conftest.$ac_ext
9681 cat >>conftest.$ac_ext <<_ACEOF
9682 /* end confdefs.h. */
9683 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9684 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9685 #define $ac_func innocuous_$ac_func
9687 /* System header to define __stub macros and hopefully few prototypes,
9688 which can conflict with char $ac_func (); below.
9689 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9690 <limits.h> exists even on freestanding compilers. */
9693 # include <limits.h>
9695 # include <assert.h>
9700 /* Override any GCC internal prototype to avoid an error.
9701 Use char because int might match the return type of a GCC
9702 builtin and then its argument prototype would still apply. */
9707 /* The GNU C library defines this for functions which it implements
9708 to always fail with ENOSYS. Some functions are actually named
9709 something starting with __ and the normal name is an alias. */
9710 #if defined __stub_$ac_func || defined __stub___$ac_func
9722 rm -f conftest.$ac_objext conftest$ac_exeext
9723 if { (ac_try="$ac_link"
9725 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9726 *) ac_try_echo=$ac_try;;
9728 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9729 $as_echo "$ac_try_echo") >&5
9730 (eval "$ac_link") 2>conftest.er1
9732 grep -v '^ *+' conftest.er1 >conftest.err
9734 cat conftest.err >&5
9735 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9736 (exit $ac_status); } && {
9737 test -z "$ac_c_werror_flag" ||
9738 test ! -s conftest.err
9739 } && test -s conftest$ac_exeext && {
9740 test "$cross_compiling" = yes ||
9741 $as_test_x conftest$ac_exeext
9743 eval "$as_ac_var=yes"
9745 $as_echo "$as_me: failed program was:" >&5
9746 sed 's/^/| /' conftest.$ac_ext >&5
9748 eval "$as_ac_var=no"
9751 rm -rf conftest.dSYM
9752 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9753 conftest$ac_exeext conftest.$ac_ext
9755 ac_res=`eval 'as_val=${'$as_ac_var'}
9756 $as_echo "$as_val"'`
9757 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
9758 $as_echo "$ac_res" >&6; }
9759 as_val=`eval 'as_val=${'$as_ac_var'}
9760 $as_echo "$as_val"'`
9761 if test "x$as_val" = x""yes; then
9762 cat >>confdefs.h <<_ACEOF
9763 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9766 { $as_echo "$as_me:$LINENO: checking for _doprnt" >&5
9767 $as_echo_n "checking for _doprnt... " >&6; }
9768 if test "${ac_cv_func__doprnt+set}" = set; then
9769 $as_echo_n "(cached) " >&6
9771 cat >conftest.$ac_ext <<_ACEOF
9774 cat confdefs.h >>conftest.$ac_ext
9775 cat >>conftest.$ac_ext <<_ACEOF
9776 /* end confdefs.h. */
9777 /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
9778 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9779 #define _doprnt innocuous__doprnt
9781 /* System header to define __stub macros and hopefully few prototypes,
9782 which can conflict with char _doprnt (); below.
9783 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9784 <limits.h> exists even on freestanding compilers. */
9787 # include <limits.h>
9789 # include <assert.h>
9794 /* Override any GCC internal prototype to avoid an error.
9795 Use char because int might match the return type of a GCC
9796 builtin and then its argument prototype would still apply. */
9801 /* The GNU C library defines this for functions which it implements
9802 to always fail with ENOSYS. Some functions are actually named
9803 something starting with __ and the normal name is an alias. */
9804 #if defined __stub__doprnt || defined __stub____doprnt
9816 rm -f conftest.$ac_objext conftest$ac_exeext
9817 if { (ac_try="$ac_link"
9819 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9820 *) ac_try_echo=$ac_try;;
9822 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9823 $as_echo "$ac_try_echo") >&5
9824 (eval "$ac_link") 2>conftest.er1
9826 grep -v '^ *+' conftest.er1 >conftest.err
9828 cat conftest.err >&5
9829 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9830 (exit $ac_status); } && {
9831 test -z "$ac_c_werror_flag" ||
9832 test ! -s conftest.err
9833 } && test -s conftest$ac_exeext && {
9834 test "$cross_compiling" = yes ||
9835 $as_test_x conftest$ac_exeext
9837 ac_cv_func__doprnt=yes
9839 $as_echo "$as_me: failed program was:" >&5
9840 sed 's/^/| /' conftest.$ac_ext >&5
9842 ac_cv_func__doprnt=no
9845 rm -rf conftest.dSYM
9846 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9847 conftest$ac_exeext conftest.$ac_ext
9849 { $as_echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
9850 $as_echo "$ac_cv_func__doprnt" >&6; }
9851 if test "x$ac_cv_func__doprnt" = x""yes; then
9853 cat >>confdefs.h <<\_ACEOF
9854 #define HAVE_DOPRNT 1
9875 for ac_func in gettimeofday memmove memset mkdir socket strcasecmp strchr strerror strncasecmp strstr strtol strtoul
9877 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9878 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
9879 $as_echo_n "checking for $ac_func... " >&6; }
9880 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
9881 $as_echo_n "(cached) " >&6
9883 cat >conftest.$ac_ext <<_ACEOF
9886 cat confdefs.h >>conftest.$ac_ext
9887 cat >>conftest.$ac_ext <<_ACEOF
9888 /* end confdefs.h. */
9889 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9890 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9891 #define $ac_func innocuous_$ac_func
9893 /* System header to define __stub macros and hopefully few prototypes,
9894 which can conflict with char $ac_func (); below.
9895 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9896 <limits.h> exists even on freestanding compilers. */
9899 # include <limits.h>
9901 # include <assert.h>
9906 /* Override any GCC internal prototype to avoid an error.
9907 Use char because int might match the return type of a GCC
9908 builtin and then its argument prototype would still apply. */
9913 /* The GNU C library defines this for functions which it implements
9914 to always fail with ENOSYS. Some functions are actually named
9915 something starting with __ and the normal name is an alias. */
9916 #if defined __stub_$ac_func || defined __stub___$ac_func
9928 rm -f conftest.$ac_objext conftest$ac_exeext
9929 if { (ac_try="$ac_link"
9931 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9932 *) ac_try_echo=$ac_try;;
9934 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9935 $as_echo "$ac_try_echo") >&5
9936 (eval "$ac_link") 2>conftest.er1
9938 grep -v '^ *+' conftest.er1 >conftest.err
9940 cat conftest.err >&5
9941 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9942 (exit $ac_status); } && {
9943 test -z "$ac_c_werror_flag" ||
9944 test ! -s conftest.err
9945 } && test -s conftest$ac_exeext && {
9946 test "$cross_compiling" = yes ||
9947 $as_test_x conftest$ac_exeext
9949 eval "$as_ac_var=yes"
9951 $as_echo "$as_me: failed program was:" >&5
9952 sed 's/^/| /' conftest.$ac_ext >&5
9954 eval "$as_ac_var=no"
9957 rm -rf conftest.dSYM
9958 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9959 conftest$ac_exeext conftest.$ac_ext
9961 ac_res=`eval 'as_val=${'$as_ac_var'}
9962 $as_echo "$as_val"'`
9963 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
9964 $as_echo "$ac_res" >&6; }
9965 as_val=`eval 'as_val=${'$as_ac_var'}
9966 $as_echo "$as_val"'`
9967 if test "x$as_val" = x""yes; then
9968 cat >>confdefs.h <<_ACEOF
9969 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9977 ac_config_files="$ac_config_files Makefile"
9979 cat >confcache <<\_ACEOF
9980 # This file is a shell script that caches the results of configure
9981 # tests run on this system so they can be shared between configure
9982 # scripts and configure runs, see configure's option --config-cache.
9983 # It is not useful on other systems. If it contains results you don't
9984 # want to keep, you may remove or edit it.
9986 # config.status only pays attention to the cache file if you give it
9987 # the --recheck option to rerun configure.
9989 # `ac_cv_env_foo' variables (set or unset) will be overridden when
9990 # loading this file, other *unset* `ac_cv_foo' will be assigned the
9995 # The following way of writing the cache mishandles newlines in values,
9996 # but we know of no workaround that is simple, portable, and efficient.
9997 # So, we kill variables containing newlines.
9998 # Ultrix sh set writes to stderr and can't be redirected directly,
9999 # and sets the high bit in the cache file unless we assign to the vars.
10001 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
10002 eval ac_val=\$$ac_var
10006 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
10007 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
10010 _ | IFS | as_nl) ;; #(
10011 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
10012 *) $as_unset $ac_var ;;
10018 case $as_nl`(ac_space=' '; set) 2>&1` in #(
10019 *${as_nl}ac_space=\ *)
10020 # `set' does not quote correctly, so add quotes (double-quote
10021 # substitution turns \\\\ into \\, and sed turns \\ into \).
10024 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
10027 # `set' quotes correctly as required by POSIX, so do not add quotes.
10028 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
10037 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
10039 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
10041 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
10042 if test -w "$cache_file"; then
10043 test "x$cache_file" != "x/dev/null" &&
10044 { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
10045 $as_echo "$as_me: updating cache $cache_file" >&6;}
10046 cat confcache >$cache_file
10048 { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
10049 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
10054 test "x$prefix" = xNONE && prefix=$ac_default_prefix
10055 # Let make expand exec_prefix.
10056 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
10058 DEFS=-DHAVE_CONFIG_H
10062 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
10063 # 1. Remove the extension, and $U if already installed.
10064 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
10065 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
10066 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
10067 # will be set to the directory where LIBOBJS objects are built.
10068 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
10069 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
10071 LIBOBJS=$ac_libobjs
10073 LTLIBOBJS=$ac_ltlibobjs
10076 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
10077 { { $as_echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
10078 Usually this means the macro was only invoked conditionally." >&5
10079 $as_echo "$as_me: error: conditional \"AMDEP\" was never defined.
10080 Usually this means the macro was only invoked conditionally." >&2;}
10081 { (exit 1); exit 1; }; }
10083 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
10084 { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
10085 Usually this means the macro was only invoked conditionally." >&5
10086 $as_echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
10087 Usually this means the macro was only invoked conditionally." >&2;}
10088 { (exit 1); exit 1; }; }
10090 if test -n "$EXEEXT"; then
10092 am__EXEEXT_FALSE='#'
10094 am__EXEEXT_TRUE='#'
10098 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
10099 { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
10100 Usually this means the macro was only invoked conditionally." >&5
10101 $as_echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
10102 Usually this means the macro was only invoked conditionally." >&2;}
10103 { (exit 1); exit 1; }; }
10105 if test -z "${ENABLE_ASTERISK_CHANNEL_DRIVER_TRUE}" && test -z "${ENABLE_ASTERISK_CHANNEL_DRIVER_FALSE}"; then
10106 { { $as_echo "$as_me:$LINENO: error: conditional \"ENABLE_ASTERISK_CHANNEL_DRIVER\" was never defined.
10107 Usually this means the macro was only invoked conditionally." >&5
10108 $as_echo "$as_me: error: conditional \"ENABLE_ASTERISK_CHANNEL_DRIVER\" was never defined.
10109 Usually this means the macro was only invoked conditionally." >&2;}
10110 { (exit 1); exit 1; }; }
10112 if test -z "${ENABLE_GSM_BS_TRUE}" && test -z "${ENABLE_GSM_BS_FALSE}"; then
10113 { { $as_echo "$as_me:$LINENO: error: conditional \"ENABLE_GSM_BS\" was never defined.
10114 Usually this means the macro was only invoked conditionally." >&5
10115 $as_echo "$as_me: error: conditional \"ENABLE_GSM_BS\" was never defined.
10116 Usually this means the macro was only invoked conditionally." >&2;}
10117 { (exit 1); exit 1; }; }
10119 if test -z "${ENABLE_GSM_MS_TRUE}" && test -z "${ENABLE_GSM_MS_FALSE}"; then
10120 { { $as_echo "$as_me:$LINENO: error: conditional \"ENABLE_GSM_MS\" was never defined.
10121 Usually this means the macro was only invoked conditionally." >&5
10122 $as_echo "$as_me: error: conditional \"ENABLE_GSM_MS\" was never defined.
10123 Usually this means the macro was only invoked conditionally." >&2;}
10124 { (exit 1); exit 1; }; }
10126 if test -z "${ENABLE_GSM_TRUE}" && test -z "${ENABLE_GSM_FALSE}"; then
10127 { { $as_echo "$as_me:$LINENO: error: conditional \"ENABLE_GSM\" was never defined.
10128 Usually this means the macro was only invoked conditionally." >&5
10129 $as_echo "$as_me: error: conditional \"ENABLE_GSM\" was never defined.
10130 Usually this means the macro was only invoked conditionally." >&2;}
10131 { (exit 1); exit 1; }; }
10133 if test -z "${ENABLE_SS5_TRUE}" && test -z "${ENABLE_SS5_FALSE}"; then
10134 { { $as_echo "$as_me:$LINENO: error: conditional \"ENABLE_SS5\" was never defined.
10135 Usually this means the macro was only invoked conditionally." >&5
10136 $as_echo "$as_me: error: conditional \"ENABLE_SS5\" was never defined.
10137 Usually this means the macro was only invoked conditionally." >&2;}
10138 { (exit 1); exit 1; }; }
10141 : ${CONFIG_STATUS=./config.status}
10143 ac_clean_files_save=$ac_clean_files
10144 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
10145 { $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
10146 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
10147 cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10149 # Generated by $as_me.
10150 # Run this file to recreate the current configuration.
10151 # Compiler output produced by configure, useful for debugging
10152 # configure, is in config.log if it exists.
10155 ac_cs_recheck=false
10157 SHELL=\${CONFIG_SHELL-$SHELL}
10160 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10161 ## --------------------- ##
10162 ## M4sh Initialization. ##
10163 ## --------------------- ##
10165 # Be more Bourne compatible
10166 DUALCASE=1; export DUALCASE # for MKS sh
10167 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
10170 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
10171 # is contrary to our usage. Disable this feature.
10172 alias -g '${1+"$@"}'='"$@"'
10173 setopt NO_GLOB_SUBST
10175 case `(set -o) 2>/dev/null` in
10176 *posix*) set -o posix ;;
10185 # Avoid depending upon Character Ranges.
10186 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
10187 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
10188 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
10189 as_cr_digits='0123456789'
10190 as_cr_alnum=$as_cr_Letters$as_cr_digits
10195 # Printing a long string crashes Solaris 7 /usr/bin/printf.
10196 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
10197 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
10198 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
10199 if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
10200 as_echo='printf %s\n'
10201 as_echo_n='printf %s'
10203 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
10204 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
10205 as_echo_n='/usr/ucb/echo -n'
10207 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
10208 as_echo_n_body='eval
10212 expr "X$arg" : "X\\(.*\\)$as_nl";
10213 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
10215 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
10217 export as_echo_n_body
10218 as_echo_n='sh -c $as_echo_n_body as_echo'
10220 export as_echo_body
10221 as_echo='sh -c $as_echo_body as_echo'
10224 # The user is always right.
10225 if test "${PATH_SEPARATOR+set}" != set; then
10227 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
10228 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
10233 # Support unset when possible.
10234 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
10242 # We need space, tab and new line, in precisely that order. Quoting is
10243 # there to prevent editors from complaining about space-tab.
10244 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
10245 # splitting by setting IFS to empty value.)
10248 # Find who we are. Look in the path if we contain no directory separator.
10250 *[\\/]* ) as_myself=$0 ;;
10251 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10252 for as_dir in $PATH
10255 test -z "$as_dir" && as_dir=.
10256 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
10262 # We did not find ourselves, most probably we were run as `sh COMMAND'
10263 # in which case we are not to be found in the path.
10264 if test "x$as_myself" = x; then
10267 if test ! -f "$as_myself"; then
10268 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
10269 { (exit 1); exit 1; }
10272 # Work around bugs in pre-3.0 UWIN ksh.
10273 for as_var in ENV MAIL MAILPATH
10274 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
10286 # Required to use basename.
10287 if expr a : '\(a\)' >/dev/null 2>&1 &&
10288 test "X`expr 00001 : '.*\(...\)'`" = X001; then
10294 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
10295 as_basename=basename
10301 # Name of the executable.
10302 as_me=`$as_basename -- "$0" ||
10303 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
10304 X"$0" : 'X\(//\)$' \| \
10305 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
10307 sed '/^.*\/\([^/][^/]*\)\/*$/{
10326 as_lineno_1=$LINENO
10327 as_lineno_2=$LINENO
10328 test "x$as_lineno_1" != "x$as_lineno_2" &&
10329 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
10331 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
10332 # uniformly replaced by the line number. The first 'sed' inserts a
10333 # line-number line after each line using $LINENO; the second 'sed'
10334 # does the real work. The second script uses 'N' to pair each
10335 # line-number line with the line containing $LINENO, and appends
10336 # trailing '-' during substitution so that $LINENO is not a special
10337 # case at line end.
10338 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
10339 # scripts with optimization help from Paolo Bonzini. Blame Lee
10340 # E. McMahon (1931-1989) for sed's syntax. :-)
10352 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
10355 ' >$as_me.lineno &&
10356 chmod +x "$as_me.lineno" ||
10357 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
10358 { (exit 1); exit 1; }; }
10360 # Don't try to exec as it changes $[0], causing all sort of problems
10361 # (the dirname of $[0] is not the place where we might find the
10362 # original and so on. Autoconf is especially sensitive to this).
10363 . "./$as_me.lineno"
10364 # Exit status is that of the last command.
10369 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
10375 ECHO_C= ECHO_N= ECHO_T=
10376 case `echo -n x` in
10378 case `echo 'x\c'` in
10379 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
10385 if expr a : '\(a\)' >/dev/null 2>&1 &&
10386 test "X`expr 00001 : '.*\(...\)'`" = X001; then
10392 rm -f conf$$ conf$$.exe conf$$.file
10393 if test -d conf$$.dir; then
10394 rm -f conf$$.dir/conf$$.file
10397 mkdir conf$$.dir 2>/dev/null
10399 if (echo >conf$$.file) 2>/dev/null; then
10400 if ln -s conf$$.file conf$$ 2>/dev/null; then
10402 # ... but there are two gotchas:
10403 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
10404 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
10405 # In both cases, we have to default to `cp -p'.
10406 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
10408 elif ln conf$$.file conf$$ 2>/dev/null; then
10416 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
10417 rmdir conf$$.dir 2>/dev/null
10419 if mkdir -p . 2>/dev/null; then
10422 test -d ./-p && rmdir ./-p
10426 if test -x / >/dev/null 2>&1; then
10427 as_test_x='test -x'
10429 if ls -dL / >/dev/null 2>&1; then
10436 if test -d "$1"; then
10442 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
10443 ???[sx]*):;;*)false;;esac;fi
10447 as_executable_p=$as_test_x
10449 # Sed expression to map a string onto a valid CPP name.
10450 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
10452 # Sed expression to map a string onto a valid variable name.
10453 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
10458 # Save the log message, to keep $[0] and so on meaningful, and to
10459 # report actual input values of CONFIG_FILES etc. instead of their
10460 # values after options handling.
10462 This file was extended by lcr $as_me 1.7, which was
10463 generated by GNU Autoconf 2.63. Invocation command line was
10465 CONFIG_FILES = $CONFIG_FILES
10466 CONFIG_HEADERS = $CONFIG_HEADERS
10467 CONFIG_LINKS = $CONFIG_LINKS
10468 CONFIG_COMMANDS = $CONFIG_COMMANDS
10471 on `(hostname || uname -n) 2>/dev/null | sed 1q`
10476 case $ac_config_files in *"
10477 "*) set x $ac_config_files; shift; ac_config_files=$*;;
10480 case $ac_config_headers in *"
10481 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
10485 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10486 # Files that config.status was made for.
10487 config_files="$ac_config_files"
10488 config_headers="$ac_config_headers"
10489 config_commands="$ac_config_commands"
10493 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10495 \`$as_me' instantiates files from templates according to the
10496 current configuration.
10498 Usage: $0 [OPTION]... [FILE]...
10500 -h, --help print this help, then exit
10501 -V, --version print version number and configuration settings, then exit
10502 -q, --quiet, --silent
10503 do not print progress messages
10504 -d, --debug don't remove temporary files
10505 --recheck update $as_me by reconfiguring in the same conditions
10506 --file=FILE[:TEMPLATE]
10507 instantiate the configuration file FILE
10508 --header=FILE[:TEMPLATE]
10509 instantiate the configuration header FILE
10511 Configuration files:
10514 Configuration headers:
10517 Configuration commands:
10520 Report bugs to <bug-autoconf@gnu.org>."
10523 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10525 lcr config.status 1.7
10526 configured by $0, generated by GNU Autoconf 2.63,
10527 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
10529 Copyright (C) 2008 Free Software Foundation, Inc.
10530 This config.status script is free software; the Free Software Foundation
10531 gives unlimited permission to copy, distribute and modify it."
10538 test -n "\$AWK" || AWK=awk
10541 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10542 # The default lists apply if the user does not specify any file.
10548 ac_option=`expr "X$1" : 'X\([^=]*\)='`
10549 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
10560 # Handling of the options.
10561 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
10563 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
10564 $as_echo "$ac_cs_version"; exit ;;
10565 --debug | --debu | --deb | --de | --d | -d )
10567 --file | --fil | --fi | --f )
10570 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
10572 CONFIG_FILES="$CONFIG_FILES '$ac_optarg'"
10573 ac_need_defaults=false;;
10574 --header | --heade | --head | --hea )
10577 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
10579 CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'"
10580 ac_need_defaults=false;;
10582 # Conflict between --help and --header
10583 { $as_echo "$as_me: error: ambiguous option: $1
10584 Try \`$0 --help' for more information." >&2
10585 { (exit 1); exit 1; }; };;
10586 --help | --hel | -h )
10587 $as_echo "$ac_cs_usage"; exit ;;
10588 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
10589 | -silent | --silent | --silen | --sile | --sil | --si | --s)
10592 # This is an error.
10593 -*) { $as_echo "$as_me: error: unrecognized option: $1
10594 Try \`$0 --help' for more information." >&2
10595 { (exit 1); exit 1; }; } ;;
10597 *) ac_config_targets="$ac_config_targets $1"
10598 ac_need_defaults=false ;;
10604 ac_configure_extra_args=
10606 if $ac_cs_silent; then
10608 ac_configure_extra_args="$ac_configure_extra_args --silent"
10612 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10613 if \$ac_cs_recheck; then
10614 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
10616 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
10617 CONFIG_SHELL='$SHELL'
10618 export CONFIG_SHELL
10623 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10627 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
10628 ## Running $as_me. ##
10634 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10638 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
10642 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10644 # Handling of arguments.
10645 for ac_config_target in $ac_config_targets
10647 case $ac_config_target in
10648 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
10649 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
10650 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
10652 *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
10653 $as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
10654 { (exit 1); exit 1; }; };;
10659 # If the user did not use the arguments to specify the items to instantiate,
10660 # then the envvar interface is used. Set only those that are not.
10661 # We use the long form for the default assignment because of an extremely
10662 # bizarre bug on SunOS 4.1.3.
10663 if $ac_need_defaults; then
10664 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
10665 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
10666 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
10669 # Have a temporary directory for convenience. Make it in the build tree
10670 # simply because there is no reason against having it here, and in addition,
10671 # creating and moving files from /tmp can sometimes cause problems.
10672 # Hook for its removal unless debugging.
10673 # Note that there is a small window in which the directory will not be cleaned:
10674 # after its creation but before its name has been assigned to `$tmp'.
10678 trap 'exit_status=$?
10679 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
10681 trap '{ (exit 1); exit 1; }' 1 2 13 15
10683 # Create a (secure) tmp directory for tmp files.
10686 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
10687 test -n "$tmp" && test -d "$tmp"
10690 tmp=./conf$$-$RANDOM
10691 (umask 077 && mkdir "$tmp")
10694 $as_echo "$as_me: cannot create a temporary directory in ." >&2
10695 { (exit 1); exit 1; }
10698 # Set up the scripts for CONFIG_FILES section.
10699 # No need to generate them if there are no CONFIG_FILES.
10700 # This happens for instance with `./config.status config.h'.
10701 if test -n "$CONFIG_FILES"; then
10705 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
10706 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
10709 ac_cs_awk_cr=$ac_cr
10712 echo 'BEGIN {' >"$tmp/subs1.awk" &&
10717 echo "cat >conf$$subs.awk <<_ACEOF" &&
10718 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
10720 } >conf$$subs.sh ||
10721 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
10722 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
10723 { (exit 1); exit 1; }; }
10724 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
10726 for ac_last_try in false false false false false :; do
10727 . ./conf$$subs.sh ||
10728 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
10729 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
10730 { (exit 1); exit 1; }; }
10732 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
10733 if test $ac_delim_n = $ac_delim_num; then
10735 elif $ac_last_try; then
10736 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
10737 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
10738 { (exit 1); exit 1; }; }
10740 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
10743 rm -f conf$$subs.sh
10745 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10746 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
10750 s/^/S["/; s/!.*/"]=/
10760 s/\(.\{148\}\).*/\1/
10762 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
10767 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
10774 s/\(.\{148\}\).*/\1/
10776 s/["\\]/\\&/g; s/^/"/; s/$/"/
10780 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
10785 ' <conf$$subs.awk | sed '
10790 ' >>$CONFIG_STATUS || ac_write_fail=1
10791 rm -f conf$$subs.awk
10792 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10794 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
10795 for (key in S) S_is_set[key] = 1
10801 nfields = split(line, field, "@")
10803 len = length(field[1])
10804 for (i = 2; i < nfields; i++) {
10806 keylen = length(key)
10807 if (S_is_set[key]) {
10809 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
10810 len += length(value) + length(field[++i])
10821 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10822 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
10823 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
10826 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
10827 || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5
10828 $as_echo "$as_me: error: could not setup config files machinery" >&2;}
10829 { (exit 1); exit 1; }; }
10832 # VPATH may cause trouble with some makes, so we remove $(srcdir),
10833 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
10834 # trailing colons and then remove the whole line if VPATH becomes empty
10835 # (actually we leave an empty line to preserve line numbers).
10836 if test "x$srcdir" = x.; then
10837 ac_vpsub='/^[ ]*VPATH[ ]*=/{
10838 s/:*\$(srcdir):*/:/
10839 s/:*\${srcdir}:*/:/
10841 s/^\([^=]*=[ ]*\):*/\1/
10847 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10848 fi # test -n "$CONFIG_FILES"
10850 # Set up the scripts for CONFIG_HEADERS section.
10851 # No need to generate them if there are no CONFIG_HEADERS.
10852 # This happens for instance with `./config.status Makefile'.
10853 if test -n "$CONFIG_HEADERS"; then
10854 cat >"$tmp/defines.awk" <<\_ACAWK ||
10858 # Transform confdefs.h into an awk script `defines.awk', embedded as
10859 # here-document in config.status, that substitutes the proper values into
10860 # config.h.in to produce config.h.
10862 # Create a delimiter string that does not exist in confdefs.h, to ease
10863 # handling of long lines.
10865 for ac_last_try in false false :; do
10866 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
10867 if test -z "$ac_t"; then
10869 elif $ac_last_try; then
10870 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_HEADERS" >&5
10871 $as_echo "$as_me: error: could not make $CONFIG_HEADERS" >&2;}
10872 { (exit 1); exit 1; }; }
10874 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
10878 # For the awk script, D is an array of macro values keyed by name,
10879 # likewise P contains macro parameters if any. Preserve backslash
10880 # newline sequences.
10882 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
10884 s/.\{148\}/&'"$ac_delim"'/g
10887 s/^[ ]*#[ ]*define[ ][ ]*/ /
10894 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
10896 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
10900 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
10901 D["\1"]=" \3\\\\\\n"\\/p
10903 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
10908 s/.\{148\}/&'"$ac_delim"'/g
10913 s/["\\]/\\&/g; s/^/"/; s/$/"/p
10916 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
10918 ' <confdefs.h | sed '
10919 s/'"$ac_delim"'/"\\\
10920 "/g' >>$CONFIG_STATUS || ac_write_fail=1
10922 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10923 for (key in D) D_is_set[key] = 1
10926 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
10928 split(line, arg, " ")
10929 if (arg[1] == "#") {
10933 defundef = substr(arg[1], 2)
10936 split(mac1, mac2, "(") #)
10938 prefix = substr(line, 1, index(line, defundef) - 1)
10939 if (D_is_set[macro]) {
10940 # Preserve the white space surrounding the "#".
10941 print prefix "define", macro P[macro] D[macro]
10944 # Replace #undef with comments. This is necessary, for example,
10945 # in the case of _POSIX_SOURCE, which is predefined and required
10946 # on some systems where configure will not decide to define it.
10947 if (defundef == "undef") {
10948 print "/*", prefix defundef, macro, "*/"
10956 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10957 { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5
10958 $as_echo "$as_me: error: could not setup config headers machinery" >&2;}
10959 { (exit 1); exit 1; }; }
10960 fi # test -n "$CONFIG_HEADERS"
10963 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
10968 :[FHLC]) ac_mode=$ac_tag; continue;;
10970 case $ac_mode$ac_tag in
10972 :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: invalid tag $ac_tag" >&5
10973 $as_echo "$as_me: error: invalid tag $ac_tag" >&2;}
10974 { (exit 1); exit 1; }; };;
10975 :[FH]-) ac_tag=-:-;;
10976 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
10993 -) ac_f="$tmp/stdin";;
10994 *) # Look for the file first in the build tree, then in the source tree
10995 # (if the path is not absolute). The absolute path cannot be DOS-style,
10996 # because $ac_f cannot contain `:'.
11000 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
11002 { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
11003 $as_echo "$as_me: error: cannot find input file: $ac_f" >&2;}
11004 { (exit 1); exit 1; }; };;
11006 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
11007 ac_file_inputs="$ac_file_inputs '$ac_f'"
11010 # Let's still pretend it is `configure' which instantiates (i.e., don't
11011 # use $as_me), people would be surprised to read:
11012 # /* config.h. Generated by config.status. */
11013 configure_input='Generated from '`
11014 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
11016 if test x"$ac_file" != x-; then
11017 configure_input="$ac_file. $configure_input"
11018 { $as_echo "$as_me:$LINENO: creating $ac_file" >&5
11019 $as_echo "$as_me: creating $ac_file" >&6;}
11021 # Neutralize special characters interpreted by sed in replacement strings.
11022 case $configure_input in #(
11023 *\&* | *\|* | *\\* )
11024 ac_sed_conf_input=`$as_echo "$configure_input" |
11025 sed 's/[\\\\&|]/\\\\&/g'`;; #(
11026 *) ac_sed_conf_input=$configure_input;;
11030 *:-:* | *:-) cat >"$tmp/stdin" \
11031 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
11032 $as_echo "$as_me: error: could not create $ac_file" >&2;}
11033 { (exit 1); exit 1; }; } ;;
11038 ac_dir=`$as_dirname -- "$ac_file" ||
11039 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11040 X"$ac_file" : 'X\(//\)[^/]' \| \
11041 X"$ac_file" : 'X\(//\)$' \| \
11042 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
11043 $as_echo X"$ac_file" |
11044 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11048 /^X\(\/\/\)[^/].*/{
11063 -*) as_dir=./$as_dir;;
11065 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
11069 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
11070 *) as_qdir=$as_dir;;
11072 as_dirs="'$as_qdir' $as_dirs"
11073 as_dir=`$as_dirname -- "$as_dir" ||
11074 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11075 X"$as_dir" : 'X\(//\)[^/]' \| \
11076 X"$as_dir" : 'X\(//\)$' \| \
11077 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
11078 $as_echo X"$as_dir" |
11079 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11083 /^X\(\/\/\)[^/].*/{
11096 test -d "$as_dir" && break
11098 test -z "$as_dirs" || eval "mkdir $as_dirs"
11099 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
11100 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
11101 { (exit 1); exit 1; }; }; }
11105 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
11107 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
11108 # A ".." for each directory in $ac_dir_suffix.
11109 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
11110 case $ac_top_builddir_sub in
11111 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
11112 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
11115 ac_abs_top_builddir=$ac_pwd
11116 ac_abs_builddir=$ac_pwd$ac_dir_suffix
11117 # for backward compatibility:
11118 ac_top_builddir=$ac_top_build_prefix
11121 .) # We are building in place.
11123 ac_top_srcdir=$ac_top_builddir_sub
11124 ac_abs_top_srcdir=$ac_pwd ;;
11125 [\\/]* | ?:[\\/]* ) # Absolute name.
11126 ac_srcdir=$srcdir$ac_dir_suffix;
11127 ac_top_srcdir=$srcdir
11128 ac_abs_top_srcdir=$srcdir ;;
11129 *) # Relative name.
11130 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
11131 ac_top_srcdir=$ac_top_build_prefix$srcdir
11132 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
11134 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
11144 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
11145 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
11147 ac_MKDIR_P=$MKDIR_P
11149 [\\/$]* | ?:[\\/]* ) ;;
11150 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
11154 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11155 # If the template does not know about datarootdir, expand it.
11156 # FIXME: This hack should be removed a few years after 2.60.
11157 ac_datarootdir_hack=; ac_datarootdir_seen=
11170 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
11171 *datarootdir*) ac_datarootdir_seen=yes;;
11172 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
11173 { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
11174 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
11176 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11177 ac_datarootdir_hack='
11178 s&@datadir@&$datadir&g
11179 s&@docdir@&$docdir&g
11180 s&@infodir@&$infodir&g
11181 s&@localedir@&$localedir&g
11182 s&@mandir@&$mandir&g
11183 s&\\\${datarootdir}&$datarootdir&g' ;;
11187 # Neutralize VPATH when `$srcdir' = `.'.
11188 # Shell code in configure.ac might set extrasub.
11189 # FIXME: do we really want to maintain this feature?
11190 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11191 ac_sed_extra="$ac_vpsub
11194 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11196 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
11197 s|@configure_input@|$ac_sed_conf_input|;t t
11198 s&@top_builddir@&$ac_top_builddir_sub&;t t
11199 s&@top_build_prefix@&$ac_top_build_prefix&;t t
11200 s&@srcdir@&$ac_srcdir&;t t
11201 s&@abs_srcdir@&$ac_abs_srcdir&;t t
11202 s&@top_srcdir@&$ac_top_srcdir&;t t
11203 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
11204 s&@builddir@&$ac_builddir&;t t
11205 s&@abs_builddir@&$ac_abs_builddir&;t t
11206 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
11207 s&@INSTALL@&$ac_INSTALL&;t t
11208 s&@MKDIR_P@&$ac_MKDIR_P&;t t
11209 $ac_datarootdir_hack
11211 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
11212 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
11213 $as_echo "$as_me: error: could not create $ac_file" >&2;}
11214 { (exit 1); exit 1; }; }
11216 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
11217 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
11218 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
11219 { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
11220 which seems to be undefined. Please make sure it is defined." >&5
11221 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
11222 which seems to be undefined. Please make sure it is defined." >&2;}
11226 -) cat "$tmp/out" && rm -f "$tmp/out";;
11227 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
11229 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
11230 $as_echo "$as_me: error: could not create $ac_file" >&2;}
11231 { (exit 1); exit 1; }; }
11237 if test x"$ac_file" != x-; then
11239 $as_echo "/* $configure_input */" \
11240 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
11241 } >"$tmp/config.h" \
11242 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
11243 $as_echo "$as_me: error: could not create $ac_file" >&2;}
11244 { (exit 1); exit 1; }; }
11245 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
11246 { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5
11247 $as_echo "$as_me: $ac_file is unchanged" >&6;}
11250 mv "$tmp/config.h" "$ac_file" \
11251 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
11252 $as_echo "$as_me: error: could not create $ac_file" >&2;}
11253 { (exit 1); exit 1; }; }
11256 $as_echo "/* $configure_input */" \
11257 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
11258 || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5
11259 $as_echo "$as_me: error: could not create -" >&2;}
11260 { (exit 1); exit 1; }; }
11262 # Compute "$ac_file"'s index in $config_headers.
11265 for _am_header in $config_headers :; do
11266 case $_am_header in
11267 $_am_arg | $_am_arg:* )
11270 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
11273 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
11274 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11275 X"$_am_arg" : 'X\(//\)[^/]' \| \
11276 X"$_am_arg" : 'X\(//\)$' \| \
11277 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
11278 $as_echo X"$_am_arg" |
11279 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11283 /^X\(\/\/\)[^/].*/{
11295 s/.*/./; q'`/stamp-h$_am_stamp_count
11298 :C) { $as_echo "$as_me:$LINENO: executing $ac_file commands" >&5
11299 $as_echo "$as_me: executing $ac_file commands" >&6;}
11304 case $ac_file$ac_mode in
11305 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
11306 # Autoconf 2.62 quotes --file arguments for eval, but not when files
11307 # are listed without --file. Let's play safe and only enable the eval
11308 # if we detect the quoting.
11309 case $CONFIG_FILES in
11310 *\'*) eval set x "$CONFIG_FILES" ;;
11311 *) set x $CONFIG_FILES ;;
11316 # Strip MF so we end up with the name of the file.
11317 mf=`echo "$mf" | sed -e 's/:.*$//'`
11318 # Check whether this is an Automake generated Makefile or not.
11319 # We used to match only the files named `Makefile.in', but
11320 # some people rename them; so instead we look at the file content.
11321 # Grep'ing the first line is not enough: some people post-process
11322 # each Makefile.in and add a new line on top of each file to say so.
11323 # Grep'ing the whole file is not good either: AIX grep has a line
11324 # limit of 2048, but all sed's we know have understand at least 4000.
11325 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
11326 dirpart=`$as_dirname -- "$mf" ||
11327 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11328 X"$mf" : 'X\(//\)[^/]' \| \
11329 X"$mf" : 'X\(//\)$' \| \
11330 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
11332 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11336 /^X\(\/\/\)[^/].*/{
11352 # Extract the definition of DEPDIR, am__include, and am__quote
11353 # from the Makefile without running `make'.
11354 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
11355 test -z "$DEPDIR" && continue
11356 am__include=`sed -n 's/^am__include = //p' < "$mf"`
11357 test -z "am__include" && continue
11358 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
11359 # When using ansi2knr, U may be empty or an underscore; expand it
11360 U=`sed -n 's/^U = //p' < "$mf"`
11361 # Find all dependency output files, they are included files with
11362 # $(DEPDIR) in their names. We invoke sed twice because it is the
11363 # simplest approach to changing $(DEPDIR) to its actual value in the
11365 for file in `sed -n "
11366 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
11367 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
11368 # Make sure the directory exists.
11369 test -f "$dirpart/$file" && continue
11370 fdir=`$as_dirname -- "$file" ||
11371 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11372 X"$file" : 'X\(//\)[^/]' \| \
11373 X"$file" : 'X\(//\)$' \| \
11374 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
11375 $as_echo X"$file" |
11376 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11380 /^X\(\/\/\)[^/].*/{
11393 { as_dir=$dirpart/$fdir
11395 -*) as_dir=./$as_dir;;
11397 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
11401 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
11402 *) as_qdir=$as_dir;;
11404 as_dirs="'$as_qdir' $as_dirs"
11405 as_dir=`$as_dirname -- "$as_dir" ||
11406 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11407 X"$as_dir" : 'X\(//\)[^/]' \| \
11408 X"$as_dir" : 'X\(//\)$' \| \
11409 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
11410 $as_echo X"$as_dir" |
11411 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11415 /^X\(\/\/\)[^/].*/{
11428 test -d "$as_dir" && break
11430 test -z "$as_dirs" || eval "mkdir $as_dirs"
11431 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
11432 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
11433 { (exit 1); exit 1; }; }; }
11434 # echo "creating $dirpart/$file"
11435 echo '# dummy' > "$dirpart/$file"
11445 { (exit 0); exit 0; }
11447 chmod +x $CONFIG_STATUS
11448 ac_clean_files=$ac_clean_files_save
11450 test $ac_write_fail = 0 ||
11451 { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5
11452 $as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;}
11453 { (exit 1); exit 1; }; }
11456 # configure is writing to config.log, and then calls config.status.
11457 # config.status does its own redirection, appending to config.log.
11458 # Unfortunately, on DOS this fails, as config.log is still kept open
11459 # by configure, so config.status won't be able to write to it; its
11460 # output is simply discarded. So we exec the FD to /dev/null,
11461 # effectively closing config.log, so it can be properly (re)opened and
11462 # appended to by config.status. When coming back to configure, we
11463 # need to make the FD available again.
11464 if test "$no_create" != yes; then
11466 ac_config_status_args=
11467 test "$silent" = yes &&
11468 ac_config_status_args="$ac_config_status_args --quiet"
11470 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
11472 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
11473 # would make configure fail if this is the last instruction.
11474 $ac_cs_success || { (exit 1); exit 1; }
11476 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
11477 { $as_echo "$as_me:$LINENO: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
11478 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}