2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.63 for lcr 1.7.
5 # Report bugs to <andreas@eversberg.eu>.
7 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
8 # 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## --------------------- ##
12 ## M4sh Initialization. ##
13 ## --------------------- ##
15 # Be more Bourne compatible
16 DUALCASE=1; export DUALCASE # for MKS sh
17 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
25 case `(set -o) 2>/dev/null` in
26 *posix*) set -o posix ;;
35 # Avoid depending upon Character Ranges.
36 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
37 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
38 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
39 as_cr_digits='0123456789'
40 as_cr_alnum=$as_cr_Letters$as_cr_digits
45 # Printing a long string crashes Solaris 7 /usr/bin/printf.
46 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
47 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
48 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
49 if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55 as_echo_n='/usr/ucb/echo -n'
57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
62 expr "X$arg" : "X\\(.*\\)$as_nl";
63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
68 as_echo_n='sh -c $as_echo_n_body as_echo'
71 as_echo='sh -c $as_echo_body as_echo'
74 # The user is always right.
75 if test "${PATH_SEPARATOR+set}" != set; then
77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
83 # Support unset when possible.
84 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
92 # We need space, tab and new line, in precisely that order. Quoting is
93 # there to prevent editors from complaining about space-tab.
94 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
95 # splitting by setting IFS to empty value.)
98 # Find who we are. Look in the path if we contain no directory separator.
100 *[\\/]* ) as_myself=$0 ;;
101 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
105 test -z "$as_dir" && as_dir=.
106 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
112 # We did not find ourselves, most probably we were run as `sh COMMAND'
113 # in which case we are not to be found in the path.
114 if test "x$as_myself" = x; then
117 if test ! -f "$as_myself"; then
118 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
119 { (exit 1); exit 1; }
122 # Work around bugs in pre-3.0 UWIN ksh.
123 for as_var in ENV MAIL MAILPATH
124 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
136 # Required to use basename.
137 if expr a : '\(a\)' >/dev/null 2>&1 &&
138 test "X`expr 00001 : '.*\(...\)'`" = X001; then
144 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
151 # Name of the executable.
152 as_me=`$as_basename -- "$0" ||
153 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
154 X"$0" : 'X\(//\)$' \| \
155 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
157 sed '/^.*\/\([^/][^/]*\)\/*$/{
175 if test "x$CONFIG_SHELL" = x; then
176 if (eval ":") 2>/dev/null; then
182 if test $as_have_required = yes && (eval ":
192 as_func_ret_success () {
195 as_func_ret_failure () {
200 if as_func_success; then
204 echo as_func_success failed.
207 if as_func_failure; then
209 echo as_func_failure succeeded.
212 if as_func_ret_success; then
216 echo as_func_ret_success failed.
219 if as_func_ret_failure; then
221 echo as_func_ret_failure succeeded.
224 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
228 echo positional parameters were not saved.
231 test \$exitcode = 0) || { (exit 1); exit 1; }
236 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
237 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
238 ") 2> /dev/null; then
242 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
243 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
246 test -z "$as_dir" && as_dir=.
249 for as_base in sh bash ksh sh5; do
250 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
257 for as_shell in $as_candidate_shells $SHELL; do
258 # Try only shells that exist, to save several forks.
259 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
260 { ("$as_shell") 2> /dev/null <<\_ASEOF
261 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
264 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
265 # is contrary to our usage. Disable this feature.
266 alias -g '${1+"$@"}'='"$@"'
269 case `(set -o) 2>/dev/null` in
270 *posix*) set -o posix ;;
279 CONFIG_SHELL=$as_shell
281 if { "$as_shell" 2> /dev/null <<\_ASEOF
282 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
285 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
286 # is contrary to our usage. Disable this feature.
287 alias -g '${1+"$@"}'='"$@"'
290 case `(set -o) 2>/dev/null` in
291 *posix*) set -o posix ;;
307 as_func_ret_success () {
310 as_func_ret_failure () {
315 if as_func_success; then
319 echo as_func_success failed.
322 if as_func_failure; then
324 echo as_func_failure succeeded.
327 if as_func_ret_success; then
331 echo as_func_ret_success failed.
334 if as_func_ret_failure; then
336 echo as_func_ret_failure succeeded.
339 if ( set x; as_func_ret_success y && test x = "$1" ); then
343 echo positional parameters were not saved.
346 test $exitcode = 0) || { (exit 1); exit 1; }
351 test "x$as_lineno_1" != "x$as_lineno_2" &&
352 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
363 if test "x$CONFIG_SHELL" != x; then
364 for as_var in BASH_ENV ENV
365 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
368 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
372 if test $as_have_required = no; then
373 echo This script requires a shell more modern than all the
374 echo shells that I found on your system. Please install a
375 echo modern shell, or manually run the script under such a
376 echo shell if you do have one.
377 { (exit 1); exit 1; }
387 (eval "as_func_return () {
396 as_func_ret_success () {
399 as_func_ret_failure () {
404 if as_func_success; then
408 echo as_func_success failed.
411 if as_func_failure; then
413 echo as_func_failure succeeded.
416 if as_func_ret_success; then
420 echo as_func_ret_success failed.
423 if as_func_ret_failure; then
425 echo as_func_ret_failure succeeded.
428 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
432 echo positional parameters were not saved.
435 test \$exitcode = 0") || {
436 echo No shell found that supports shell functions.
437 echo Please tell bug-autoconf@gnu.org about your system,
438 echo including any error possibly output before this message.
439 echo This can help us improve future autoconf versions.
440 echo Configuration will now proceed without shell functions.
447 test "x$as_lineno_1" != "x$as_lineno_2" &&
448 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
450 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
451 # uniformly replaced by the line number. The first 'sed' inserts a
452 # line-number line after each line using $LINENO; the second 'sed'
453 # does the real work. The second script uses 'N' to pair each
454 # line-number line with the line containing $LINENO, and appends
455 # trailing '-' during substitution so that $LINENO is not a special
457 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
458 # scripts with optimization help from Paolo Bonzini. Blame Lee
459 # E. McMahon (1931-1989) for sed's syntax. :-)
471 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
475 chmod +x "$as_me.lineno" ||
476 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
477 { (exit 1); exit 1; }; }
479 # Don't try to exec as it changes $[0], causing all sort of problems
480 # (the dirname of $[0] is not the place where we might find the
481 # original and so on. Autoconf is especially sensitive to this).
483 # Exit status is that of the last command.
488 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
494 ECHO_C= ECHO_N= ECHO_T=
498 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
504 if expr a : '\(a\)' >/dev/null 2>&1 &&
505 test "X`expr 00001 : '.*\(...\)'`" = X001; then
511 rm -f conf$$ conf$$.exe conf$$.file
512 if test -d conf$$.dir; then
513 rm -f conf$$.dir/conf$$.file
516 mkdir conf$$.dir 2>/dev/null
518 if (echo >conf$$.file) 2>/dev/null; then
519 if ln -s conf$$.file conf$$ 2>/dev/null; then
521 # ... but there are two gotchas:
522 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
523 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
524 # In both cases, we have to default to `cp -p'.
525 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
527 elif ln conf$$.file conf$$ 2>/dev/null; then
535 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
536 rmdir conf$$.dir 2>/dev/null
538 if mkdir -p . 2>/dev/null; then
541 test -d ./-p && rmdir ./-p
545 if test -x / >/dev/null 2>&1; then
548 if ls -dL / >/dev/null 2>&1; then
555 if test -d "$1"; then
561 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
562 ???[sx]*):;;*)false;;esac;fi
566 as_executable_p=$as_test_x
568 # Sed expression to map a string onto a valid CPP name.
569 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
571 # Sed expression to map a string onto a valid variable name.
572 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
576 exec 7<&0 </dev/null 6>&1
579 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
580 # so uname gets run too.
581 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
586 ac_default_prefix=/usr/local
588 ac_config_libobj_dir=.
594 SHELL=${CONFIG_SHELL-/bin/sh}
596 # Identity of this package.
598 PACKAGE_TARNAME='lcr'
599 PACKAGE_VERSION='1.7'
600 PACKAGE_STRING='lcr 1.7'
601 PACKAGE_BUGREPORT='andreas@eversberg.eu'
603 ac_unique_file="main.c"
604 # Factoring default headers for most tests.
605 ac_includes_default="\
607 #ifdef HAVE_SYS_TYPES_H
608 # include <sys/types.h>
610 #ifdef HAVE_SYS_STAT_H
611 # include <sys/stat.h>
617 # ifdef HAVE_STDLIB_H
622 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
627 #ifdef HAVE_STRINGS_H
628 # include <strings.h>
630 #ifdef HAVE_INTTYPES_H
631 # include <inttypes.h>
640 ac_subst_vars='LTLIBOBJS
652 ENABLE_ASTERISK_CHANNEL_DRIVER_FALSE
653 ENABLE_ASTERISK_CHANNEL_DRIVER_TRUE
677 INSTALL_STRIP_PROGRAM
728 program_transform_name
740 enable_option_checking
741 enable_dependency_tracking
748 ac_precious_vars='build_alias
762 # Initialize some variables set by options.
764 ac_init_version=false
765 ac_unrecognized_opts=
767 # The variables have the same names as the options, with
768 # dashes changed to underlines.
776 program_transform_name=s,x,x,
784 # Installation directory options.
785 # These are left unexpanded so users can "make install exec_prefix=/foo"
786 # and all the variables that are supposed to be based on exec_prefix
787 # by default will actually change.
788 # Use braces instead of parens because sh, perl, etc. also accept them.
789 # (The list follows the same order as the GNU Coding Standards.)
790 bindir='${exec_prefix}/bin'
791 sbindir='${exec_prefix}/sbin'
792 libexecdir='${exec_prefix}/libexec'
793 datarootdir='${prefix}/share'
794 datadir='${datarootdir}'
795 sysconfdir='${prefix}/etc'
796 sharedstatedir='${prefix}/com'
797 localstatedir='${prefix}/var'
798 includedir='${prefix}/include'
799 oldincludedir='/usr/include'
800 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
801 infodir='${datarootdir}/info'
806 libdir='${exec_prefix}/lib'
807 localedir='${datarootdir}/locale'
808 mandir='${datarootdir}/man'
814 # If the previous option needs an argument, assign it.
815 if test -n "$ac_prev"; then
816 eval $ac_prev=\$ac_option
822 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
826 # Accept the important Cygnus configure options, so we can diagnose typos.
828 case $ac_dashdash$ac_option in
832 -bindir | --bindir | --bindi | --bind | --bin | --bi)
834 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
837 -build | --build | --buil | --bui | --bu)
838 ac_prev=build_alias ;;
839 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
840 build_alias=$ac_optarg ;;
842 -cache-file | --cache-file | --cache-fil | --cache-fi \
843 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
844 ac_prev=cache_file ;;
845 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
846 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
847 cache_file=$ac_optarg ;;
850 cache_file=config.cache ;;
852 -datadir | --datadir | --datadi | --datad)
854 -datadir=* | --datadir=* | --datadi=* | --datad=*)
855 datadir=$ac_optarg ;;
857 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
858 | --dataroo | --dataro | --datar)
859 ac_prev=datarootdir ;;
860 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
861 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
862 datarootdir=$ac_optarg ;;
864 -disable-* | --disable-*)
865 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
866 # Reject names that are not valid shell variable names.
867 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
868 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
869 { (exit 1); exit 1; }; }
870 ac_useropt_orig=$ac_useropt
871 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
872 case $ac_user_opts in
876 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
877 ac_unrecognized_sep=', ';;
879 eval enable_$ac_useropt=no ;;
881 -docdir | --docdir | --docdi | --doc | --do)
883 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
886 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
888 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
891 -enable-* | --enable-*)
892 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
893 # Reject names that are not valid shell variable names.
894 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
895 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
896 { (exit 1); exit 1; }; }
897 ac_useropt_orig=$ac_useropt
898 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
899 case $ac_user_opts in
903 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
904 ac_unrecognized_sep=', ';;
906 eval enable_$ac_useropt=\$ac_optarg ;;
908 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
909 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
910 | --exec | --exe | --ex)
911 ac_prev=exec_prefix ;;
912 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
913 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
914 | --exec=* | --exe=* | --ex=*)
915 exec_prefix=$ac_optarg ;;
917 -gas | --gas | --ga | --g)
918 # Obsolete; use --with-gas.
921 -help | --help | --hel | --he | -h)
923 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
924 ac_init_help=recursive ;;
925 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
926 ac_init_help=short ;;
928 -host | --host | --hos | --ho)
929 ac_prev=host_alias ;;
930 -host=* | --host=* | --hos=* | --ho=*)
931 host_alias=$ac_optarg ;;
933 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
935 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
937 htmldir=$ac_optarg ;;
939 -includedir | --includedir | --includedi | --included | --include \
940 | --includ | --inclu | --incl | --inc)
941 ac_prev=includedir ;;
942 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
943 | --includ=* | --inclu=* | --incl=* | --inc=*)
944 includedir=$ac_optarg ;;
946 -infodir | --infodir | --infodi | --infod | --info | --inf)
948 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
949 infodir=$ac_optarg ;;
951 -libdir | --libdir | --libdi | --libd)
953 -libdir=* | --libdir=* | --libdi=* | --libd=*)
956 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
957 | --libexe | --libex | --libe)
958 ac_prev=libexecdir ;;
959 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
960 | --libexe=* | --libex=* | --libe=*)
961 libexecdir=$ac_optarg ;;
963 -localedir | --localedir | --localedi | --localed | --locale)
965 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
966 localedir=$ac_optarg ;;
968 -localstatedir | --localstatedir | --localstatedi | --localstated \
969 | --localstate | --localstat | --localsta | --localst | --locals)
970 ac_prev=localstatedir ;;
971 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
972 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
973 localstatedir=$ac_optarg ;;
975 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
977 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
981 # Obsolete; use --without-fp.
984 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
985 | --no-cr | --no-c | -n)
988 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
989 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
992 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
993 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
994 | --oldin | --oldi | --old | --ol | --o)
995 ac_prev=oldincludedir ;;
996 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
997 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
998 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
999 oldincludedir=$ac_optarg ;;
1001 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1003 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1004 prefix=$ac_optarg ;;
1006 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1007 | --program-pre | --program-pr | --program-p)
1008 ac_prev=program_prefix ;;
1009 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1010 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1011 program_prefix=$ac_optarg ;;
1013 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1014 | --program-suf | --program-su | --program-s)
1015 ac_prev=program_suffix ;;
1016 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1017 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1018 program_suffix=$ac_optarg ;;
1020 -program-transform-name | --program-transform-name \
1021 | --program-transform-nam | --program-transform-na \
1022 | --program-transform-n | --program-transform- \
1023 | --program-transform | --program-transfor \
1024 | --program-transfo | --program-transf \
1025 | --program-trans | --program-tran \
1026 | --progr-tra | --program-tr | --program-t)
1027 ac_prev=program_transform_name ;;
1028 -program-transform-name=* | --program-transform-name=* \
1029 | --program-transform-nam=* | --program-transform-na=* \
1030 | --program-transform-n=* | --program-transform-=* \
1031 | --program-transform=* | --program-transfor=* \
1032 | --program-transfo=* | --program-transf=* \
1033 | --program-trans=* | --program-tran=* \
1034 | --progr-tra=* | --program-tr=* | --program-t=*)
1035 program_transform_name=$ac_optarg ;;
1037 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1039 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1040 pdfdir=$ac_optarg ;;
1042 -psdir | --psdir | --psdi | --psd | --ps)
1044 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1047 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1048 | -silent | --silent | --silen | --sile | --sil)
1051 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1053 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1055 sbindir=$ac_optarg ;;
1057 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1058 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1059 | --sharedst | --shareds | --shared | --share | --shar \
1061 ac_prev=sharedstatedir ;;
1062 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1063 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1064 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1066 sharedstatedir=$ac_optarg ;;
1068 -site | --site | --sit)
1070 -site=* | --site=* | --sit=*)
1073 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1075 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1076 srcdir=$ac_optarg ;;
1078 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1079 | --syscon | --sysco | --sysc | --sys | --sy)
1080 ac_prev=sysconfdir ;;
1081 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1082 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1083 sysconfdir=$ac_optarg ;;
1085 -target | --target | --targe | --targ | --tar | --ta | --t)
1086 ac_prev=target_alias ;;
1087 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1088 target_alias=$ac_optarg ;;
1090 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1093 -version | --version | --versio | --versi | --vers | -V)
1094 ac_init_version=: ;;
1097 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1098 # Reject names that are not valid shell variable names.
1099 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1100 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1101 { (exit 1); exit 1; }; }
1102 ac_useropt_orig=$ac_useropt
1103 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1104 case $ac_user_opts in
1108 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1109 ac_unrecognized_sep=', ';;
1111 eval with_$ac_useropt=\$ac_optarg ;;
1113 -without-* | --without-*)
1114 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1115 # Reject names that are not valid shell variable names.
1116 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1117 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1118 { (exit 1); exit 1; }; }
1119 ac_useropt_orig=$ac_useropt
1120 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1121 case $ac_user_opts in
1125 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1126 ac_unrecognized_sep=', ';;
1128 eval with_$ac_useropt=no ;;
1131 # Obsolete; use --with-x.
1134 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1135 | --x-incl | --x-inc | --x-in | --x-i)
1136 ac_prev=x_includes ;;
1137 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1138 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1139 x_includes=$ac_optarg ;;
1141 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1142 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1143 ac_prev=x_libraries ;;
1144 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1145 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1146 x_libraries=$ac_optarg ;;
1148 -*) { $as_echo "$as_me: error: unrecognized option: $ac_option
1149 Try \`$0 --help' for more information." >&2
1150 { (exit 1); exit 1; }; }
1154 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1155 # Reject names that are not valid shell variable names.
1156 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1157 { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1158 { (exit 1); exit 1; }; }
1159 eval $ac_envvar=\$ac_optarg
1160 export $ac_envvar ;;
1163 # FIXME: should be removed in autoconf 3.0.
1164 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1165 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1166 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1167 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1173 if test -n "$ac_prev"; then
1174 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1175 { $as_echo "$as_me: error: missing argument to $ac_option" >&2
1176 { (exit 1); exit 1; }; }
1179 if test -n "$ac_unrecognized_opts"; then
1180 case $enable_option_checking in
1182 fatal) { $as_echo "$as_me: error: unrecognized options: $ac_unrecognized_opts" >&2
1183 { (exit 1); exit 1; }; } ;;
1184 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1188 # Check all directory arguments for consistency.
1189 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1190 datadir sysconfdir sharedstatedir localstatedir includedir \
1191 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1192 libdir localedir mandir
1194 eval ac_val=\$$ac_var
1195 # Remove trailing slashes.
1198 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1199 eval $ac_var=\$ac_val;;
1201 # Be sure to have absolute directory names.
1203 [\\/$]* | ?:[\\/]* ) continue;;
1204 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1206 { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1207 { (exit 1); exit 1; }; }
1210 # There might be people who depend on the old broken behavior: `$host'
1211 # used to hold the argument of --host etc.
1212 # FIXME: To remove some day.
1215 target=$target_alias
1217 # FIXME: To remove some day.
1218 if test "x$host_alias" != x; then
1219 if test "x$build_alias" = x; then
1220 cross_compiling=maybe
1221 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1222 If a cross compiler is detected then cross compile mode will be used." >&2
1223 elif test "x$build_alias" != "x$host_alias"; then
1229 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1231 test "$silent" = yes && exec 6>/dev/null
1234 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1235 ac_ls_di=`ls -di .` &&
1236 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1237 { $as_echo "$as_me: error: working directory cannot be determined" >&2
1238 { (exit 1); exit 1; }; }
1239 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1240 { $as_echo "$as_me: error: pwd does not report name of working directory" >&2
1241 { (exit 1); exit 1; }; }
1244 # Find the source files, if location was not specified.
1245 if test -z "$srcdir"; then
1246 ac_srcdir_defaulted=yes
1247 # Try the directory containing this script, then the parent directory.
1248 ac_confdir=`$as_dirname -- "$as_myself" ||
1249 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1250 X"$as_myself" : 'X\(//\)[^/]' \| \
1251 X"$as_myself" : 'X\(//\)$' \| \
1252 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1253 $as_echo X"$as_myself" |
1254 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1272 if test ! -r "$srcdir/$ac_unique_file"; then
1276 ac_srcdir_defaulted=no
1278 if test ! -r "$srcdir/$ac_unique_file"; then
1279 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1280 { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1281 { (exit 1); exit 1; }; }
1283 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1285 cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2
1286 { (exit 1); exit 1; }; }
1288 # When building in place, set srcdir=.
1289 if test "$ac_abs_confdir" = "$ac_pwd"; then
1292 # Remove unnecessary trailing slashes from srcdir.
1293 # Double slashes in file names in object file debugging info
1294 # mess up M-x gdb in Emacs.
1296 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1298 for ac_var in $ac_precious_vars; do
1299 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1300 eval ac_env_${ac_var}_value=\$${ac_var}
1301 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1302 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1306 # Report the --help message.
1308 if test "$ac_init_help" = "long"; then
1309 # Omit some internal or obsolete options to make the list less imposing.
1310 # This message is too long to be a string in the A/UX 3.1 sh.
1312 \`configure' configures lcr 1.7 to adapt to many kinds of systems.
1314 Usage: $0 [OPTION]... [VAR=VALUE]...
1316 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1317 VAR=VALUE. See below for descriptions of some of the useful variables.
1319 Defaults for the options are specified in brackets.
1322 -h, --help display this help and exit
1323 --help=short display options specific to this package
1324 --help=recursive display the short help of all the included packages
1325 -V, --version display version information and exit
1326 -q, --quiet, --silent do not print \`checking...' messages
1327 --cache-file=FILE cache test results in FILE [disabled]
1328 -C, --config-cache alias for \`--cache-file=config.cache'
1329 -n, --no-create do not create output files
1330 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1332 Installation directories:
1333 --prefix=PREFIX install architecture-independent files in PREFIX
1334 [$ac_default_prefix]
1335 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1338 By default, \`make install' will install all the files in
1339 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1340 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1341 for instance \`--prefix=\$HOME'.
1343 For better control, use the options below.
1345 Fine tuning of the installation directories:
1346 --bindir=DIR user executables [EPREFIX/bin]
1347 --sbindir=DIR system admin executables [EPREFIX/sbin]
1348 --libexecdir=DIR program executables [EPREFIX/libexec]
1349 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1350 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1351 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1352 --libdir=DIR object code libraries [EPREFIX/lib]
1353 --includedir=DIR C header files [PREFIX/include]
1354 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1355 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1356 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1357 --infodir=DIR info documentation [DATAROOTDIR/info]
1358 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1359 --mandir=DIR man documentation [DATAROOTDIR/man]
1360 --docdir=DIR documentation root [DATAROOTDIR/doc/lcr]
1361 --htmldir=DIR html documentation [DOCDIR]
1362 --dvidir=DIR dvi documentation [DOCDIR]
1363 --pdfdir=DIR pdf documentation [DOCDIR]
1364 --psdir=DIR ps documentation [DOCDIR]
1370 --program-prefix=PREFIX prepend PREFIX to installed program names
1371 --program-suffix=SUFFIX append SUFFIX to installed program names
1372 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1376 if test -n "$ac_init_help"; then
1377 case $ac_init_help in
1378 short | recursive ) echo "Configuration of lcr 1.7:";;
1383 --disable-option-checking ignore unrecognized --enable/--with options
1384 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1385 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1386 --disable-dependency-tracking speeds up one-time build
1387 --enable-dependency-tracking do not reject slow dependency extractors
1390 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1391 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1392 --with-asterisk compile with built-in Asterisk channel driver
1395 --with-ssl compile with ssl support (libcrypto) [default=check]
1397 --with-gsm-bs compile with OpenBSC support [default=check]
1399 --with-gsm-ms compile with Osmocom-bb support [default=check]
1401 --with-ss5 compile with CCITT No. 5 support [default=no]
1404 Some influential environment variables:
1405 CC C compiler command
1406 CFLAGS C compiler flags
1407 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1408 nonstandard directory <lib dir>
1409 LIBS libraries to pass to the linker, e.g. -l<library>
1410 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1411 you have headers in a nonstandard directory <include dir>
1413 CXX C++ compiler command
1414 CXXFLAGS C++ compiler flags
1416 Use these variables to override the choices made by `configure' or to help
1417 it to find libraries and programs with nonstandard names/locations.
1419 Report bugs to <andreas@eversberg.eu>.
1424 if test "$ac_init_help" = "recursive"; then
1425 # If there are subdirs, report their specific --help.
1426 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1427 test -d "$ac_dir" ||
1428 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1433 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1435 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1436 # A ".." for each directory in $ac_dir_suffix.
1437 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1438 case $ac_top_builddir_sub in
1439 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1440 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1443 ac_abs_top_builddir=$ac_pwd
1444 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1445 # for backward compatibility:
1446 ac_top_builddir=$ac_top_build_prefix
1449 .) # We are building in place.
1451 ac_top_srcdir=$ac_top_builddir_sub
1452 ac_abs_top_srcdir=$ac_pwd ;;
1453 [\\/]* | ?:[\\/]* ) # Absolute name.
1454 ac_srcdir=$srcdir$ac_dir_suffix;
1455 ac_top_srcdir=$srcdir
1456 ac_abs_top_srcdir=$srcdir ;;
1458 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1459 ac_top_srcdir=$ac_top_build_prefix$srcdir
1460 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1462 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1464 cd "$ac_dir" || { ac_status=$?; continue; }
1465 # Check for guested configure.
1466 if test -f "$ac_srcdir/configure.gnu"; then
1468 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1469 elif test -f "$ac_srcdir/configure"; then
1471 $SHELL "$ac_srcdir/configure" --help=recursive
1473 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1475 cd "$ac_pwd" || { ac_status=$?; break; }
1479 test -n "$ac_init_help" && exit $ac_status
1480 if $ac_init_version; then
1483 generated by GNU Autoconf 2.63
1485 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1486 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
1487 This configure script is free software; the Free Software Foundation
1488 gives unlimited permission to copy, distribute and modify it.
1492 cat >config.log <<_ACEOF
1493 This file contains any messages produced by compilers while
1494 running configure, to aid debugging if configure makes a mistake.
1496 It was created by lcr $as_me 1.7, which was
1497 generated by GNU Autoconf 2.63. Invocation command line was
1509 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1510 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1511 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1512 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1513 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1515 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1516 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1518 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1519 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1520 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1521 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1522 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1523 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1524 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1528 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1532 test -z "$as_dir" && as_dir=.
1533 $as_echo "PATH: $as_dir"
1549 # Keep a trace of the command line.
1550 # Strip out --no-create and --no-recursion so they do not pile up.
1551 # Strip out --silent because we don't want to record it for future runs.
1552 # Also quote any args containing shell meta-characters.
1553 # Make two passes to allow for proper duplicate-argument suppression.
1557 ac_must_keep_next=false
1563 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1564 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1565 | -silent | --silent | --silen | --sile | --sil)
1568 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1571 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1573 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1574 if test $ac_must_keep_next = true; then
1575 ac_must_keep_next=false # Got value, back to normal.
1578 *=* | --config-cache | -C | -disable-* | --disable-* \
1579 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1580 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1581 | -with-* | --with-* | -without-* | --without-* | --x)
1582 case "$ac_configure_args0 " in
1583 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1586 -* ) ac_must_keep_next=true ;;
1589 ac_configure_args="$ac_configure_args '$ac_arg'"
1594 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1595 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1597 # When interrupted or exit'd, cleanup temporary files, and complete
1598 # config.log. We remove comments because anyway the quotes in there
1599 # would cause problems or look ugly.
1600 # WARNING: Use '\'' to represent an apostrophe within the trap.
1601 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1602 trap 'exit_status=$?
1603 # Save into config.log some information that might help in debugging.
1608 ## ---------------- ##
1609 ## Cache variables. ##
1610 ## ---------------- ##
1613 # The following way of writing the cache mishandles newlines in values,
1615 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1616 eval ac_val=\$$ac_var
1620 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
1621 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1624 _ | IFS | as_nl) ;; #(
1625 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1626 *) $as_unset $ac_var ;;
1631 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1632 *${as_nl}ac_space=\ *)
1634 "s/'\''/'\''\\\\'\'''\''/g;
1635 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1638 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1646 ## ----------------- ##
1647 ## Output variables. ##
1648 ## ----------------- ##
1651 for ac_var in $ac_subst_vars
1653 eval ac_val=\$$ac_var
1655 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1657 $as_echo "$ac_var='\''$ac_val'\''"
1661 if test -n "$ac_subst_files"; then
1663 ## ------------------- ##
1664 ## File substitutions. ##
1665 ## ------------------- ##
1668 for ac_var in $ac_subst_files
1670 eval ac_val=\$$ac_var
1672 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1674 $as_echo "$ac_var='\''$ac_val'\''"
1679 if test -s confdefs.h; then
1689 test "$ac_signal" != 0 &&
1690 $as_echo "$as_me: caught signal $ac_signal"
1691 $as_echo "$as_me: exit $exit_status"
1693 rm -f core *.core core.conftest.* &&
1694 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1697 for ac_signal in 1 2 13 15; do
1698 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1702 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1703 rm -f -r conftest* confdefs.h
1705 # Predefined preprocessor variables.
1707 cat >>confdefs.h <<_ACEOF
1708 #define PACKAGE_NAME "$PACKAGE_NAME"
1712 cat >>confdefs.h <<_ACEOF
1713 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1717 cat >>confdefs.h <<_ACEOF
1718 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1722 cat >>confdefs.h <<_ACEOF
1723 #define PACKAGE_STRING "$PACKAGE_STRING"
1727 cat >>confdefs.h <<_ACEOF
1728 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1732 # Let the site file select an alternate cache file if it wants to.
1733 # Prefer an explicitly selected file to automatically selected ones.
1736 if test -n "$CONFIG_SITE"; then
1737 ac_site_file1=$CONFIG_SITE
1738 elif test "x$prefix" != xNONE; then
1739 ac_site_file1=$prefix/share/config.site
1740 ac_site_file2=$prefix/etc/config.site
1742 ac_site_file1=$ac_default_prefix/share/config.site
1743 ac_site_file2=$ac_default_prefix/etc/config.site
1745 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
1747 test "x$ac_site_file" = xNONE && continue
1748 if test -r "$ac_site_file"; then
1749 { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1750 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
1751 sed 's/^/| /' "$ac_site_file" >&5
1756 if test -r "$cache_file"; then
1757 # Some versions of bash will fail to source /dev/null (special
1758 # files actually), so we avoid doing that.
1759 if test -f "$cache_file"; then
1760 { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5
1761 $as_echo "$as_me: loading cache $cache_file" >&6;}
1763 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1764 *) . "./$cache_file";;
1768 { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5
1769 $as_echo "$as_me: creating cache $cache_file" >&6;}
1773 # Check that the precious variables saved in the cache have kept the same
1775 ac_cache_corrupted=false
1776 for ac_var in $ac_precious_vars; do
1777 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1778 eval ac_new_set=\$ac_env_${ac_var}_set
1779 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1780 eval ac_new_val=\$ac_env_${ac_var}_value
1781 case $ac_old_set,$ac_new_set in
1783 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1784 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1785 ac_cache_corrupted=: ;;
1787 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1788 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1789 ac_cache_corrupted=: ;;
1792 if test "x$ac_old_val" != "x$ac_new_val"; then
1793 # differences in whitespace do not lead to failure.
1794 ac_old_val_w=`echo x $ac_old_val`
1795 ac_new_val_w=`echo x $ac_new_val`
1796 if test "$ac_old_val_w" != "$ac_new_val_w"; then
1797 { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1798 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1799 ac_cache_corrupted=:
1801 { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
1802 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
1803 eval $ac_var=\$ac_old_val
1805 { $as_echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5
1806 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
1807 { $as_echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5
1808 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
1811 # Pass precious variables to config.status.
1812 if test "$ac_new_set" = set; then
1814 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1815 *) ac_arg=$ac_var=$ac_new_val ;;
1817 case " $ac_configure_args " in
1818 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1819 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1823 if $ac_cache_corrupted; then
1824 { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
1825 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1826 { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1827 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1828 { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1829 $as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1830 { (exit 1); exit 1; }; }
1858 ac_cpp='$CPP $CPPFLAGS'
1859 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1860 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1861 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1866 ac_config_headers="$ac_config_headers config.h"
1869 # fix warnings from autoconf + automake
1871 ac_cpp='$CPP $CPPFLAGS'
1872 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1873 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1874 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1875 if test -n "$ac_tool_prefix"; then
1876 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1877 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1878 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
1879 $as_echo_n "checking for $ac_word... " >&6; }
1880 if test "${ac_cv_prog_CC+set}" = set; then
1881 $as_echo_n "(cached) " >&6
1883 if test -n "$CC"; then
1884 ac_cv_prog_CC="$CC" # Let the user override the test.
1886 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1890 test -z "$as_dir" && as_dir=.
1891 for ac_exec_ext in '' $ac_executable_extensions; do
1892 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1893 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1894 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1904 if test -n "$CC"; then
1905 { $as_echo "$as_me:$LINENO: result: $CC" >&5
1906 $as_echo "$CC" >&6; }
1908 { $as_echo "$as_me:$LINENO: result: no" >&5
1909 $as_echo "no" >&6; }
1914 if test -z "$ac_cv_prog_CC"; then
1916 # Extract the first word of "gcc", so it can be a program name with args.
1917 set dummy gcc; ac_word=$2
1918 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
1919 $as_echo_n "checking for $ac_word... " >&6; }
1920 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1921 $as_echo_n "(cached) " >&6
1923 if test -n "$ac_ct_CC"; then
1924 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1926 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1930 test -z "$as_dir" && as_dir=.
1931 for ac_exec_ext in '' $ac_executable_extensions; do
1932 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1933 ac_cv_prog_ac_ct_CC="gcc"
1934 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1943 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1944 if test -n "$ac_ct_CC"; then
1945 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1946 $as_echo "$ac_ct_CC" >&6; }
1948 { $as_echo "$as_me:$LINENO: result: no" >&5
1949 $as_echo "no" >&6; }
1952 if test "x$ac_ct_CC" = x; then
1955 case $cross_compiling:$ac_tool_warned in
1957 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
1958 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
1959 ac_tool_warned=yes ;;
1967 if test -z "$CC"; then
1968 if test -n "$ac_tool_prefix"; then
1969 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1970 set dummy ${ac_tool_prefix}cc; ac_word=$2
1971 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
1972 $as_echo_n "checking for $ac_word... " >&6; }
1973 if test "${ac_cv_prog_CC+set}" = set; then
1974 $as_echo_n "(cached) " >&6
1976 if test -n "$CC"; then
1977 ac_cv_prog_CC="$CC" # Let the user override the test.
1979 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1983 test -z "$as_dir" && as_dir=.
1984 for ac_exec_ext in '' $ac_executable_extensions; do
1985 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1986 ac_cv_prog_CC="${ac_tool_prefix}cc"
1987 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1997 if test -n "$CC"; then
1998 { $as_echo "$as_me:$LINENO: result: $CC" >&5
1999 $as_echo "$CC" >&6; }
2001 { $as_echo "$as_me:$LINENO: result: no" >&5
2002 $as_echo "no" >&6; }
2008 if test -z "$CC"; then
2009 # Extract the first word of "cc", so it can be a program name with args.
2010 set dummy cc; ac_word=$2
2011 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2012 $as_echo_n "checking for $ac_word... " >&6; }
2013 if test "${ac_cv_prog_CC+set}" = set; then
2014 $as_echo_n "(cached) " >&6
2016 if test -n "$CC"; then
2017 ac_cv_prog_CC="$CC" # Let the user override the test.
2020 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2024 test -z "$as_dir" && as_dir=.
2025 for ac_exec_ext in '' $ac_executable_extensions; do
2026 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2027 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2028 ac_prog_rejected=yes
2032 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2039 if test $ac_prog_rejected = yes; then
2040 # We found a bogon in the path, so make sure we never use it.
2041 set dummy $ac_cv_prog_CC
2043 if test $# != 0; then
2044 # We chose a different compiler from the bogus one.
2045 # However, it has the same basename, so the bogon will be chosen
2046 # first if we set CC to just the basename; use the full file name.
2048 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2054 if test -n "$CC"; then
2055 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2056 $as_echo "$CC" >&6; }
2058 { $as_echo "$as_me:$LINENO: result: no" >&5
2059 $as_echo "no" >&6; }
2064 if test -z "$CC"; then
2065 if test -n "$ac_tool_prefix"; then
2066 for ac_prog in cl.exe
2068 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2069 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2070 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2071 $as_echo_n "checking for $ac_word... " >&6; }
2072 if test "${ac_cv_prog_CC+set}" = set; then
2073 $as_echo_n "(cached) " >&6
2075 if test -n "$CC"; then
2076 ac_cv_prog_CC="$CC" # Let the user override the test.
2078 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2082 test -z "$as_dir" && as_dir=.
2083 for ac_exec_ext in '' $ac_executable_extensions; do
2084 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2085 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2086 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2096 if test -n "$CC"; then
2097 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2098 $as_echo "$CC" >&6; }
2100 { $as_echo "$as_me:$LINENO: result: no" >&5
2101 $as_echo "no" >&6; }
2105 test -n "$CC" && break
2108 if test -z "$CC"; then
2110 for ac_prog in cl.exe
2112 # Extract the first word of "$ac_prog", so it can be a program name with args.
2113 set dummy $ac_prog; ac_word=$2
2114 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2115 $as_echo_n "checking for $ac_word... " >&6; }
2116 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2117 $as_echo_n "(cached) " >&6
2119 if test -n "$ac_ct_CC"; then
2120 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2122 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2126 test -z "$as_dir" && as_dir=.
2127 for ac_exec_ext in '' $ac_executable_extensions; do
2128 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2129 ac_cv_prog_ac_ct_CC="$ac_prog"
2130 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2139 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2140 if test -n "$ac_ct_CC"; then
2141 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2142 $as_echo "$ac_ct_CC" >&6; }
2144 { $as_echo "$as_me:$LINENO: result: no" >&5
2145 $as_echo "no" >&6; }
2149 test -n "$ac_ct_CC" && break
2152 if test "x$ac_ct_CC" = x; then
2155 case $cross_compiling:$ac_tool_warned in
2157 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2158 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2159 ac_tool_warned=yes ;;
2168 test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2169 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2170 { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2171 See \`config.log' for more details." >&5
2172 $as_echo "$as_me: error: no acceptable C compiler found in \$PATH
2173 See \`config.log' for more details." >&2;}
2174 { (exit 1); exit 1; }; }; }
2176 # Provide some information about the compiler.
2177 $as_echo "$as_me:$LINENO: checking for C compiler version" >&5
2180 { (ac_try="$ac_compiler --version >&5"
2182 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2183 *) ac_try_echo=$ac_try;;
2185 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2186 $as_echo "$ac_try_echo") >&5
2187 (eval "$ac_compiler --version >&5") 2>&5
2189 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2190 (exit $ac_status); }
2191 { (ac_try="$ac_compiler -v >&5"
2193 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2194 *) ac_try_echo=$ac_try;;
2196 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2197 $as_echo "$ac_try_echo") >&5
2198 (eval "$ac_compiler -v >&5") 2>&5
2200 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2201 (exit $ac_status); }
2202 { (ac_try="$ac_compiler -V >&5"
2204 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2205 *) ac_try_echo=$ac_try;;
2207 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2208 $as_echo "$ac_try_echo") >&5
2209 (eval "$ac_compiler -V >&5") 2>&5
2211 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2212 (exit $ac_status); }
2214 cat >conftest.$ac_ext <<_ACEOF
2217 cat confdefs.h >>conftest.$ac_ext
2218 cat >>conftest.$ac_ext <<_ACEOF
2219 /* end confdefs.h. */
2229 ac_clean_files_save=$ac_clean_files
2230 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2231 # Try to create an executable without -o first, disregard a.out.
2232 # It will help us diagnose broken compilers, and finding out an intuition
2234 { $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2235 $as_echo_n "checking for C compiler default output file name... " >&6; }
2236 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2238 # The possible output files:
2239 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2242 for ac_file in $ac_files
2245 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2246 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2251 if { (ac_try="$ac_link_default"
2253 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2254 *) ac_try_echo=$ac_try;;
2256 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2257 $as_echo "$ac_try_echo") >&5
2258 (eval "$ac_link_default") 2>&5
2260 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2261 (exit $ac_status); }; then
2262 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2263 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2264 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2265 # so that the user can short-circuit this test for compilers unknown to
2267 for ac_file in $ac_files ''
2269 test -f "$ac_file" || continue
2271 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2274 # We found the default executable, but exeext='' is most
2278 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2280 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2282 # We set ac_cv_exeext here because the later test for it is not
2283 # safe: cross compilers may not add the suffix if given an `-o'
2284 # argument, so we may need to know it at that point already.
2285 # Even if this section looks crufty: it has the advantage of
2292 test "$ac_cv_exeext" = no && ac_cv_exeext=
2298 { $as_echo "$as_me:$LINENO: result: $ac_file" >&5
2299 $as_echo "$ac_file" >&6; }
2300 if test -z "$ac_file"; then
2301 $as_echo "$as_me: failed program was:" >&5
2302 sed 's/^/| /' conftest.$ac_ext >&5
2304 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2305 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2306 { { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables
2307 See \`config.log' for more details." >&5
2308 $as_echo "$as_me: error: C compiler cannot create executables
2309 See \`config.log' for more details." >&2;}
2310 { (exit 77); exit 77; }; }; }
2313 ac_exeext=$ac_cv_exeext
2315 # Check that the compiler produces executables we can run. If not, either
2316 # the compiler is broken, or we cross compile.
2317 { $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2318 $as_echo_n "checking whether the C compiler works... " >&6; }
2319 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2320 # If not cross compiling, check that we can run a simple program.
2321 if test "$cross_compiling" != yes; then
2322 if { ac_try='./$ac_file'
2323 { (case "(($ac_try" in
2324 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2325 *) ac_try_echo=$ac_try;;
2327 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2328 $as_echo "$ac_try_echo") >&5
2329 (eval "$ac_try") 2>&5
2331 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2332 (exit $ac_status); }; }; then
2335 if test "$cross_compiling" = maybe; then
2338 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2339 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2340 { { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs.
2341 If you meant to cross compile, use \`--host'.
2342 See \`config.log' for more details." >&5
2343 $as_echo "$as_me: error: cannot run C compiled programs.
2344 If you meant to cross compile, use \`--host'.
2345 See \`config.log' for more details." >&2;}
2346 { (exit 1); exit 1; }; }; }
2350 { $as_echo "$as_me:$LINENO: result: yes" >&5
2351 $as_echo "yes" >&6; }
2353 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
2354 ac_clean_files=$ac_clean_files_save
2355 # Check that the compiler produces executables we can run. If not, either
2356 # the compiler is broken, or we cross compile.
2357 { $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2358 $as_echo_n "checking whether we are cross compiling... " >&6; }
2359 { $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5
2360 $as_echo "$cross_compiling" >&6; }
2362 { $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5
2363 $as_echo_n "checking for suffix of executables... " >&6; }
2364 if { (ac_try="$ac_link"
2366 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2367 *) ac_try_echo=$ac_try;;
2369 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2370 $as_echo "$ac_try_echo") >&5
2371 (eval "$ac_link") 2>&5
2373 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2374 (exit $ac_status); }; then
2375 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2376 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2377 # work properly (i.e., refer to `conftest.exe'), while it won't with
2379 for ac_file in conftest.exe conftest conftest.*; do
2380 test -f "$ac_file" || continue
2382 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2383 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2389 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2390 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2391 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2392 See \`config.log' for more details." >&5
2393 $as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2394 See \`config.log' for more details." >&2;}
2395 { (exit 1); exit 1; }; }; }
2398 rm -f conftest$ac_cv_exeext
2399 { $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2400 $as_echo "$ac_cv_exeext" >&6; }
2402 rm -f conftest.$ac_ext
2403 EXEEXT=$ac_cv_exeext
2405 { $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5
2406 $as_echo_n "checking for suffix of object files... " >&6; }
2407 if test "${ac_cv_objext+set}" = set; then
2408 $as_echo_n "(cached) " >&6
2410 cat >conftest.$ac_ext <<_ACEOF
2413 cat confdefs.h >>conftest.$ac_ext
2414 cat >>conftest.$ac_ext <<_ACEOF
2415 /* end confdefs.h. */
2425 rm -f conftest.o conftest.obj
2426 if { (ac_try="$ac_compile"
2428 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2429 *) ac_try_echo=$ac_try;;
2431 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2432 $as_echo "$ac_try_echo") >&5
2433 (eval "$ac_compile") 2>&5
2435 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2436 (exit $ac_status); }; then
2437 for ac_file in conftest.o conftest.obj conftest.*; do
2438 test -f "$ac_file" || continue;
2440 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
2441 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2446 $as_echo "$as_me: failed program was:" >&5
2447 sed 's/^/| /' conftest.$ac_ext >&5
2449 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2450 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2451 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2452 See \`config.log' for more details." >&5
2453 $as_echo "$as_me: error: cannot compute suffix of object files: cannot compile
2454 See \`config.log' for more details." >&2;}
2455 { (exit 1); exit 1; }; }; }
2458 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2460 { $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2461 $as_echo "$ac_cv_objext" >&6; }
2462 OBJEXT=$ac_cv_objext
2464 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2465 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
2466 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2467 $as_echo_n "(cached) " >&6
2469 cat >conftest.$ac_ext <<_ACEOF
2472 cat confdefs.h >>conftest.$ac_ext
2473 cat >>conftest.$ac_ext <<_ACEOF
2474 /* end confdefs.h. */
2487 rm -f conftest.$ac_objext
2488 if { (ac_try="$ac_compile"
2490 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2491 *) ac_try_echo=$ac_try;;
2493 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2494 $as_echo "$ac_try_echo") >&5
2495 (eval "$ac_compile") 2>conftest.er1
2497 grep -v '^ *+' conftest.er1 >conftest.err
2499 cat conftest.err >&5
2500 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2501 (exit $ac_status); } && {
2502 test -z "$ac_c_werror_flag" ||
2503 test ! -s conftest.err
2504 } && test -s conftest.$ac_objext; then
2507 $as_echo "$as_me: failed program was:" >&5
2508 sed 's/^/| /' conftest.$ac_ext >&5
2513 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2514 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2517 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2518 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
2519 if test $ac_compiler_gnu = yes; then
2524 ac_test_CFLAGS=${CFLAGS+set}
2525 ac_save_CFLAGS=$CFLAGS
2526 { $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2527 $as_echo_n "checking whether $CC accepts -g... " >&6; }
2528 if test "${ac_cv_prog_cc_g+set}" = set; then
2529 $as_echo_n "(cached) " >&6
2531 ac_save_c_werror_flag=$ac_c_werror_flag
2532 ac_c_werror_flag=yes
2535 cat >conftest.$ac_ext <<_ACEOF
2538 cat confdefs.h >>conftest.$ac_ext
2539 cat >>conftest.$ac_ext <<_ACEOF
2540 /* end confdefs.h. */
2550 rm -f conftest.$ac_objext
2551 if { (ac_try="$ac_compile"
2553 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2554 *) ac_try_echo=$ac_try;;
2556 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2557 $as_echo "$ac_try_echo") >&5
2558 (eval "$ac_compile") 2>conftest.er1
2560 grep -v '^ *+' conftest.er1 >conftest.err
2562 cat conftest.err >&5
2563 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2564 (exit $ac_status); } && {
2565 test -z "$ac_c_werror_flag" ||
2566 test ! -s conftest.err
2567 } && test -s conftest.$ac_objext; then
2570 $as_echo "$as_me: failed program was:" >&5
2571 sed 's/^/| /' conftest.$ac_ext >&5
2574 cat >conftest.$ac_ext <<_ACEOF
2577 cat confdefs.h >>conftest.$ac_ext
2578 cat >>conftest.$ac_ext <<_ACEOF
2579 /* end confdefs.h. */
2589 rm -f conftest.$ac_objext
2590 if { (ac_try="$ac_compile"
2592 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2593 *) ac_try_echo=$ac_try;;
2595 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2596 $as_echo "$ac_try_echo") >&5
2597 (eval "$ac_compile") 2>conftest.er1
2599 grep -v '^ *+' conftest.er1 >conftest.err
2601 cat conftest.err >&5
2602 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2603 (exit $ac_status); } && {
2604 test -z "$ac_c_werror_flag" ||
2605 test ! -s conftest.err
2606 } && test -s conftest.$ac_objext; then
2609 $as_echo "$as_me: failed program was:" >&5
2610 sed 's/^/| /' conftest.$ac_ext >&5
2612 ac_c_werror_flag=$ac_save_c_werror_flag
2614 cat >conftest.$ac_ext <<_ACEOF
2617 cat confdefs.h >>conftest.$ac_ext
2618 cat >>conftest.$ac_ext <<_ACEOF
2619 /* end confdefs.h. */
2629 rm -f conftest.$ac_objext
2630 if { (ac_try="$ac_compile"
2632 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2633 *) ac_try_echo=$ac_try;;
2635 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2636 $as_echo "$ac_try_echo") >&5
2637 (eval "$ac_compile") 2>conftest.er1
2639 grep -v '^ *+' conftest.er1 >conftest.err
2641 cat conftest.err >&5
2642 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2643 (exit $ac_status); } && {
2644 test -z "$ac_c_werror_flag" ||
2645 test ! -s conftest.err
2646 } && test -s conftest.$ac_objext; then
2649 $as_echo "$as_me: failed program was:" >&5
2650 sed 's/^/| /' conftest.$ac_ext >&5
2655 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2658 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2661 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2662 ac_c_werror_flag=$ac_save_c_werror_flag
2664 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2665 $as_echo "$ac_cv_prog_cc_g" >&6; }
2666 if test "$ac_test_CFLAGS" = set; then
2667 CFLAGS=$ac_save_CFLAGS
2668 elif test $ac_cv_prog_cc_g = yes; then
2669 if test "$GCC" = yes; then
2675 if test "$GCC" = yes; then
2681 { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2682 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
2683 if test "${ac_cv_prog_cc_c89+set}" = set; then
2684 $as_echo_n "(cached) " >&6
2686 ac_cv_prog_cc_c89=no
2688 cat >conftest.$ac_ext <<_ACEOF
2691 cat confdefs.h >>conftest.$ac_ext
2692 cat >>conftest.$ac_ext <<_ACEOF
2693 /* end confdefs.h. */
2696 #include <sys/types.h>
2697 #include <sys/stat.h>
2698 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2699 struct buf { int x; };
2700 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2701 static char *e (p, i)
2707 static char *f (char * (*g) (char **, int), char **p, ...)
2712 s = g (p, va_arg (v,int));
2717 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2718 function prototypes and stuff, but not '\xHH' hex character constants.
2719 These don't provoke an error unfortunately, instead are silently treated
2720 as 'x'. The following induces an error, until -std is added to get
2721 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2722 array size at least. It's necessary to write '\x00'==0 to get something
2723 that's true only with -std. */
2724 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2726 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2727 inside strings and character constants. */
2729 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2731 int test (int i, double x);
2732 struct s1 {int (*f) (int a);};
2733 struct s2 {int (*f) (double a);};
2734 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2740 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2745 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2746 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2748 CC="$ac_save_CC $ac_arg"
2749 rm -f conftest.$ac_objext
2750 if { (ac_try="$ac_compile"
2752 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2753 *) ac_try_echo=$ac_try;;
2755 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2756 $as_echo "$ac_try_echo") >&5
2757 (eval "$ac_compile") 2>conftest.er1
2759 grep -v '^ *+' conftest.er1 >conftest.err
2761 cat conftest.err >&5
2762 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2763 (exit $ac_status); } && {
2764 test -z "$ac_c_werror_flag" ||
2765 test ! -s conftest.err
2766 } && test -s conftest.$ac_objext; then
2767 ac_cv_prog_cc_c89=$ac_arg
2769 $as_echo "$as_me: failed program was:" >&5
2770 sed 's/^/| /' conftest.$ac_ext >&5
2775 rm -f core conftest.err conftest.$ac_objext
2776 test "x$ac_cv_prog_cc_c89" != "xno" && break
2778 rm -f conftest.$ac_ext
2783 case "x$ac_cv_prog_cc_c89" in
2785 { $as_echo "$as_me:$LINENO: result: none needed" >&5
2786 $as_echo "none needed" >&6; } ;;
2788 { $as_echo "$as_me:$LINENO: result: unsupported" >&5
2789 $as_echo "unsupported" >&6; } ;;
2791 CC="$CC $ac_cv_prog_cc_c89"
2792 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
2793 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
2798 ac_cpp='$CPP $CPPFLAGS'
2799 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2800 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2801 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2805 ac_cpp='$CPP $CPPFLAGS'
2806 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2807 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2808 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2809 { $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2810 $as_echo_n "checking how to run the C preprocessor... " >&6; }
2811 # On Suns, sometimes $CPP names a directory.
2812 if test -n "$CPP" && test -d "$CPP"; then
2815 if test -z "$CPP"; then
2816 if test "${ac_cv_prog_CPP+set}" = set; then
2817 $as_echo_n "(cached) " >&6
2819 # Double quotes because CPP needs to be expanded
2820 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2823 for ac_c_preproc_warn_flag in '' yes
2825 # Use a header file that comes with gcc, so configuring glibc
2826 # with a fresh cross-compiler works.
2827 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2828 # <limits.h> exists even on freestanding compilers.
2829 # On the NeXT, cc -E runs the code through the compiler's parser,
2830 # not just through cpp. "Syntax error" is here to catch this case.
2831 cat >conftest.$ac_ext <<_ACEOF
2834 cat confdefs.h >>conftest.$ac_ext
2835 cat >>conftest.$ac_ext <<_ACEOF
2836 /* end confdefs.h. */
2838 # include <limits.h>
2840 # include <assert.h>
2844 if { (ac_try="$ac_cpp conftest.$ac_ext"
2846 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2847 *) ac_try_echo=$ac_try;;
2849 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2850 $as_echo "$ac_try_echo") >&5
2851 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
2853 grep -v '^ *+' conftest.er1 >conftest.err
2855 cat conftest.err >&5
2856 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2857 (exit $ac_status); } >/dev/null && {
2858 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2859 test ! -s conftest.err
2863 $as_echo "$as_me: failed program was:" >&5
2864 sed 's/^/| /' conftest.$ac_ext >&5
2866 # Broken: fails on valid input.
2870 rm -f conftest.err conftest.$ac_ext
2872 # OK, works on sane cases. Now check whether nonexistent headers
2873 # can be detected and how.
2874 cat >conftest.$ac_ext <<_ACEOF
2877 cat confdefs.h >>conftest.$ac_ext
2878 cat >>conftest.$ac_ext <<_ACEOF
2879 /* end confdefs.h. */
2880 #include <ac_nonexistent.h>
2882 if { (ac_try="$ac_cpp conftest.$ac_ext"
2884 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2885 *) ac_try_echo=$ac_try;;
2887 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2888 $as_echo "$ac_try_echo") >&5
2889 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
2891 grep -v '^ *+' conftest.er1 >conftest.err
2893 cat conftest.err >&5
2894 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2895 (exit $ac_status); } >/dev/null && {
2896 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2897 test ! -s conftest.err
2899 # Broken: success on invalid input.
2902 $as_echo "$as_me: failed program was:" >&5
2903 sed 's/^/| /' conftest.$ac_ext >&5
2905 # Passes both tests.
2910 rm -f conftest.err conftest.$ac_ext
2913 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2914 rm -f conftest.err conftest.$ac_ext
2915 if $ac_preproc_ok; then
2927 { $as_echo "$as_me:$LINENO: result: $CPP" >&5
2928 $as_echo "$CPP" >&6; }
2930 for ac_c_preproc_warn_flag in '' yes
2932 # Use a header file that comes with gcc, so configuring glibc
2933 # with a fresh cross-compiler works.
2934 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2935 # <limits.h> exists even on freestanding compilers.
2936 # On the NeXT, cc -E runs the code through the compiler's parser,
2937 # not just through cpp. "Syntax error" is here to catch this case.
2938 cat >conftest.$ac_ext <<_ACEOF
2941 cat confdefs.h >>conftest.$ac_ext
2942 cat >>conftest.$ac_ext <<_ACEOF
2943 /* end confdefs.h. */
2945 # include <limits.h>
2947 # include <assert.h>
2951 if { (ac_try="$ac_cpp conftest.$ac_ext"
2953 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2954 *) ac_try_echo=$ac_try;;
2956 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2957 $as_echo "$ac_try_echo") >&5
2958 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
2960 grep -v '^ *+' conftest.er1 >conftest.err
2962 cat conftest.err >&5
2963 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2964 (exit $ac_status); } >/dev/null && {
2965 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2966 test ! -s conftest.err
2970 $as_echo "$as_me: failed program was:" >&5
2971 sed 's/^/| /' conftest.$ac_ext >&5
2973 # Broken: fails on valid input.
2977 rm -f conftest.err conftest.$ac_ext
2979 # OK, works on sane cases. Now check whether nonexistent headers
2980 # can be detected and how.
2981 cat >conftest.$ac_ext <<_ACEOF
2984 cat confdefs.h >>conftest.$ac_ext
2985 cat >>conftest.$ac_ext <<_ACEOF
2986 /* end confdefs.h. */
2987 #include <ac_nonexistent.h>
2989 if { (ac_try="$ac_cpp conftest.$ac_ext"
2991 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2992 *) ac_try_echo=$ac_try;;
2994 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2995 $as_echo "$ac_try_echo") >&5
2996 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
2998 grep -v '^ *+' conftest.er1 >conftest.err
3000 cat conftest.err >&5
3001 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3002 (exit $ac_status); } >/dev/null && {
3003 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3004 test ! -s conftest.err
3006 # Broken: success on invalid input.
3009 $as_echo "$as_me: failed program was:" >&5
3010 sed 's/^/| /' conftest.$ac_ext >&5
3012 # Passes both tests.
3017 rm -f conftest.err conftest.$ac_ext
3020 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3021 rm -f conftest.err conftest.$ac_ext
3022 if $ac_preproc_ok; then
3025 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3026 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3027 { { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3028 See \`config.log' for more details." >&5
3029 $as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3030 See \`config.log' for more details." >&2;}
3031 { (exit 1); exit 1; }; }; }
3035 ac_cpp='$CPP $CPPFLAGS'
3036 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3037 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3038 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3041 { $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3042 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3043 if test "${ac_cv_path_GREP+set}" = set; then
3044 $as_echo_n "(cached) " >&6
3046 if test -z "$GREP"; then
3047 ac_path_GREP_found=false
3048 # Loop through the user's path and test for each of PROGNAME-LIST
3049 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3050 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3053 test -z "$as_dir" && as_dir=.
3054 for ac_prog in grep ggrep; do
3055 for ac_exec_ext in '' $ac_executable_extensions; do
3056 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3057 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3058 # Check for GNU ac_path_GREP and select it if it is found.
3059 # Check for GNU $ac_path_GREP
3060 case `"$ac_path_GREP" --version 2>&1` in
3062 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3065 $as_echo_n 0123456789 >"conftest.in"
3068 cat "conftest.in" "conftest.in" >"conftest.tmp"
3069 mv "conftest.tmp" "conftest.in"
3070 cp "conftest.in" "conftest.nl"
3071 $as_echo 'GREP' >> "conftest.nl"
3072 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3073 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3074 ac_count=`expr $ac_count + 1`
3075 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3076 # Best one so far, save it but keep looking for a better one
3077 ac_cv_path_GREP="$ac_path_GREP"
3078 ac_path_GREP_max=$ac_count
3080 # 10*(2^10) chars as input seems more than enough
3081 test $ac_count -gt 10 && break
3083 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3086 $ac_path_GREP_found && break 3
3091 if test -z "$ac_cv_path_GREP"; then
3092 { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3093 $as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3094 { (exit 1); exit 1; }; }
3097 ac_cv_path_GREP=$GREP
3101 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3102 $as_echo "$ac_cv_path_GREP" >&6; }
3103 GREP="$ac_cv_path_GREP"
3106 { $as_echo "$as_me:$LINENO: checking for egrep" >&5
3107 $as_echo_n "checking for egrep... " >&6; }
3108 if test "${ac_cv_path_EGREP+set}" = set; then
3109 $as_echo_n "(cached) " >&6
3111 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3112 then ac_cv_path_EGREP="$GREP -E"
3114 if test -z "$EGREP"; then
3115 ac_path_EGREP_found=false
3116 # Loop through the user's path and test for each of PROGNAME-LIST
3117 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3118 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3121 test -z "$as_dir" && as_dir=.
3122 for ac_prog in egrep; do
3123 for ac_exec_ext in '' $ac_executable_extensions; do
3124 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3125 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3126 # Check for GNU ac_path_EGREP and select it if it is found.
3127 # Check for GNU $ac_path_EGREP
3128 case `"$ac_path_EGREP" --version 2>&1` in
3130 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3133 $as_echo_n 0123456789 >"conftest.in"
3136 cat "conftest.in" "conftest.in" >"conftest.tmp"
3137 mv "conftest.tmp" "conftest.in"
3138 cp "conftest.in" "conftest.nl"
3139 $as_echo 'EGREP' >> "conftest.nl"
3140 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3141 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3142 ac_count=`expr $ac_count + 1`
3143 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3144 # Best one so far, save it but keep looking for a better one
3145 ac_cv_path_EGREP="$ac_path_EGREP"
3146 ac_path_EGREP_max=$ac_count
3148 # 10*(2^10) chars as input seems more than enough
3149 test $ac_count -gt 10 && break
3151 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3154 $ac_path_EGREP_found && break 3
3159 if test -z "$ac_cv_path_EGREP"; then
3160 { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3161 $as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3162 { (exit 1); exit 1; }; }
3165 ac_cv_path_EGREP=$EGREP
3170 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3171 $as_echo "$ac_cv_path_EGREP" >&6; }
3172 EGREP="$ac_cv_path_EGREP"
3175 { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3176 $as_echo_n "checking for ANSI C header files... " >&6; }
3177 if test "${ac_cv_header_stdc+set}" = set; then
3178 $as_echo_n "(cached) " >&6
3180 cat >conftest.$ac_ext <<_ACEOF
3183 cat confdefs.h >>conftest.$ac_ext
3184 cat >>conftest.$ac_ext <<_ACEOF
3185 /* end confdefs.h. */
3199 rm -f conftest.$ac_objext
3200 if { (ac_try="$ac_compile"
3202 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3203 *) ac_try_echo=$ac_try;;
3205 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3206 $as_echo "$ac_try_echo") >&5
3207 (eval "$ac_compile") 2>conftest.er1
3209 grep -v '^ *+' conftest.er1 >conftest.err
3211 cat conftest.err >&5
3212 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3213 (exit $ac_status); } && {
3214 test -z "$ac_c_werror_flag" ||
3215 test ! -s conftest.err
3216 } && test -s conftest.$ac_objext; then
3217 ac_cv_header_stdc=yes
3219 $as_echo "$as_me: failed program was:" >&5
3220 sed 's/^/| /' conftest.$ac_ext >&5
3222 ac_cv_header_stdc=no
3225 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3227 if test $ac_cv_header_stdc = yes; then
3228 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3229 cat >conftest.$ac_ext <<_ACEOF
3232 cat confdefs.h >>conftest.$ac_ext
3233 cat >>conftest.$ac_ext <<_ACEOF
3234 /* end confdefs.h. */
3238 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3239 $EGREP "memchr" >/dev/null 2>&1; then
3242 ac_cv_header_stdc=no
3248 if test $ac_cv_header_stdc = yes; then
3249 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3250 cat >conftest.$ac_ext <<_ACEOF
3253 cat confdefs.h >>conftest.$ac_ext
3254 cat >>conftest.$ac_ext <<_ACEOF
3255 /* end confdefs.h. */
3259 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3260 $EGREP "free" >/dev/null 2>&1; then
3263 ac_cv_header_stdc=no
3269 if test $ac_cv_header_stdc = yes; then
3270 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3271 if test "$cross_compiling" = yes; then
3274 cat >conftest.$ac_ext <<_ACEOF
3277 cat confdefs.h >>conftest.$ac_ext
3278 cat >>conftest.$ac_ext <<_ACEOF
3279 /* end confdefs.h. */
3282 #if ((' ' & 0x0FF) == 0x020)
3283 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3284 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3286 # define ISLOWER(c) \
3287 (('a' <= (c) && (c) <= 'i') \
3288 || ('j' <= (c) && (c) <= 'r') \
3289 || ('s' <= (c) && (c) <= 'z'))
3290 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3293 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3298 for (i = 0; i < 256; i++)
3299 if (XOR (islower (i), ISLOWER (i))
3300 || toupper (i) != TOUPPER (i))
3305 rm -f conftest$ac_exeext
3306 if { (ac_try="$ac_link"
3308 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3309 *) ac_try_echo=$ac_try;;
3311 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3312 $as_echo "$ac_try_echo") >&5
3313 (eval "$ac_link") 2>&5
3315 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3316 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3317 { (case "(($ac_try" in
3318 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3319 *) ac_try_echo=$ac_try;;
3321 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3322 $as_echo "$ac_try_echo") >&5
3323 (eval "$ac_try") 2>&5
3325 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3326 (exit $ac_status); }; }; then
3329 $as_echo "$as_me: program exited with status $ac_status" >&5
3330 $as_echo "$as_me: failed program was:" >&5
3331 sed 's/^/| /' conftest.$ac_ext >&5
3334 ac_cv_header_stdc=no
3336 rm -rf conftest.dSYM
3337 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3343 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3344 $as_echo "$ac_cv_header_stdc" >&6; }
3345 if test $ac_cv_header_stdc = yes; then
3347 cat >>confdefs.h <<\_ACEOF
3348 #define STDC_HEADERS 1
3353 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3363 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3364 inttypes.h stdint.h unistd.h
3366 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
3367 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
3368 $as_echo_n "checking for $ac_header... " >&6; }
3369 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
3370 $as_echo_n "(cached) " >&6
3372 cat >conftest.$ac_ext <<_ACEOF
3375 cat confdefs.h >>conftest.$ac_ext
3376 cat >>conftest.$ac_ext <<_ACEOF
3377 /* end confdefs.h. */
3378 $ac_includes_default
3380 #include <$ac_header>
3382 rm -f conftest.$ac_objext
3383 if { (ac_try="$ac_compile"
3385 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3386 *) ac_try_echo=$ac_try;;
3388 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3389 $as_echo "$ac_try_echo") >&5
3390 (eval "$ac_compile") 2>conftest.er1
3392 grep -v '^ *+' conftest.er1 >conftest.err
3394 cat conftest.err >&5
3395 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3396 (exit $ac_status); } && {
3397 test -z "$ac_c_werror_flag" ||
3398 test ! -s conftest.err
3399 } && test -s conftest.$ac_objext; then
3400 eval "$as_ac_Header=yes"
3402 $as_echo "$as_me: failed program was:" >&5
3403 sed 's/^/| /' conftest.$ac_ext >&5
3405 eval "$as_ac_Header=no"
3408 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3410 ac_res=`eval 'as_val=${'$as_ac_Header'}
3411 $as_echo "$as_val"'`
3412 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
3413 $as_echo "$ac_res" >&6; }
3414 as_val=`eval 'as_val=${'$as_ac_Header'}
3415 $as_echo "$as_val"'`
3416 if test "x$as_val" = x""yes; then
3417 cat >>confdefs.h <<_ACEOF
3418 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
3427 if test "${ac_cv_header_minix_config_h+set}" = set; then
3428 { $as_echo "$as_me:$LINENO: checking for minix/config.h" >&5
3429 $as_echo_n "checking for minix/config.h... " >&6; }
3430 if test "${ac_cv_header_minix_config_h+set}" = set; then
3431 $as_echo_n "(cached) " >&6
3433 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
3434 $as_echo "$ac_cv_header_minix_config_h" >&6; }
3436 # Is the header compilable?
3437 { $as_echo "$as_me:$LINENO: checking minix/config.h usability" >&5
3438 $as_echo_n "checking minix/config.h usability... " >&6; }
3439 cat >conftest.$ac_ext <<_ACEOF
3442 cat confdefs.h >>conftest.$ac_ext
3443 cat >>conftest.$ac_ext <<_ACEOF
3444 /* end confdefs.h. */
3445 $ac_includes_default
3446 #include <minix/config.h>
3448 rm -f conftest.$ac_objext
3449 if { (ac_try="$ac_compile"
3451 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3452 *) ac_try_echo=$ac_try;;
3454 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3455 $as_echo "$ac_try_echo") >&5
3456 (eval "$ac_compile") 2>conftest.er1
3458 grep -v '^ *+' conftest.er1 >conftest.err
3460 cat conftest.err >&5
3461 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3462 (exit $ac_status); } && {
3463 test -z "$ac_c_werror_flag" ||
3464 test ! -s conftest.err
3465 } && test -s conftest.$ac_objext; then
3466 ac_header_compiler=yes
3468 $as_echo "$as_me: failed program was:" >&5
3469 sed 's/^/| /' conftest.$ac_ext >&5
3471 ac_header_compiler=no
3474 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3475 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3476 $as_echo "$ac_header_compiler" >&6; }
3478 # Is the header present?
3479 { $as_echo "$as_me:$LINENO: checking minix/config.h presence" >&5
3480 $as_echo_n "checking minix/config.h presence... " >&6; }
3481 cat >conftest.$ac_ext <<_ACEOF
3484 cat confdefs.h >>conftest.$ac_ext
3485 cat >>conftest.$ac_ext <<_ACEOF
3486 /* end confdefs.h. */
3487 #include <minix/config.h>
3489 if { (ac_try="$ac_cpp conftest.$ac_ext"
3491 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3492 *) ac_try_echo=$ac_try;;
3494 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3495 $as_echo "$ac_try_echo") >&5
3496 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3498 grep -v '^ *+' conftest.er1 >conftest.err
3500 cat conftest.err >&5
3501 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3502 (exit $ac_status); } >/dev/null && {
3503 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3504 test ! -s conftest.err
3506 ac_header_preproc=yes
3508 $as_echo "$as_me: failed program was:" >&5
3509 sed 's/^/| /' conftest.$ac_ext >&5
3511 ac_header_preproc=no
3514 rm -f conftest.err conftest.$ac_ext
3515 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3516 $as_echo "$ac_header_preproc" >&6; }
3518 # So? What about this header?
3519 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
3521 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&5
3522 $as_echo "$as_me: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
3523 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the compiler's result" >&5
3524 $as_echo "$as_me: WARNING: minix/config.h: proceeding with the compiler's result" >&2;}
3525 ac_header_preproc=yes
3528 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: present but cannot be compiled" >&5
3529 $as_echo "$as_me: WARNING: minix/config.h: present but cannot be compiled" >&2;}
3530 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: check for missing prerequisite headers?" >&5
3531 $as_echo "$as_me: WARNING: minix/config.h: check for missing prerequisite headers?" >&2;}
3532 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: see the Autoconf documentation" >&5
3533 $as_echo "$as_me: WARNING: minix/config.h: see the Autoconf documentation" >&2;}
3534 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&5
3535 $as_echo "$as_me: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&2;}
3536 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5
3537 $as_echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;}
3538 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: in the future, the compiler will take precedence" >&5
3539 $as_echo "$as_me: WARNING: minix/config.h: in the future, the compiler will take precedence" >&2;}
3541 ## ----------------------------------- ##
3542 ## Report this to andreas@eversberg.eu ##
3543 ## ----------------------------------- ##
3545 ) | sed "s/^/$as_me: WARNING: /" >&2
3548 { $as_echo "$as_me:$LINENO: checking for minix/config.h" >&5
3549 $as_echo_n "checking for minix/config.h... " >&6; }
3550 if test "${ac_cv_header_minix_config_h+set}" = set; then
3551 $as_echo_n "(cached) " >&6
3553 ac_cv_header_minix_config_h=$ac_header_preproc
3555 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
3556 $as_echo "$ac_cv_header_minix_config_h" >&6; }
3559 if test "x$ac_cv_header_minix_config_h" = x""yes; then
3566 if test "$MINIX" = yes; then
3568 cat >>confdefs.h <<\_ACEOF
3569 #define _POSIX_SOURCE 1
3573 cat >>confdefs.h <<\_ACEOF
3574 #define _POSIX_1_SOURCE 2
3578 cat >>confdefs.h <<\_ACEOF
3586 { $as_echo "$as_me:$LINENO: checking whether it is safe to define __EXTENSIONS__" >&5
3587 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
3588 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then
3589 $as_echo_n "(cached) " >&6
3591 cat >conftest.$ac_ext <<_ACEOF
3594 cat confdefs.h >>conftest.$ac_ext
3595 cat >>conftest.$ac_ext <<_ACEOF
3596 /* end confdefs.h. */
3598 # define __EXTENSIONS__ 1
3599 $ac_includes_default
3608 rm -f conftest.$ac_objext
3609 if { (ac_try="$ac_compile"
3611 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3612 *) ac_try_echo=$ac_try;;
3614 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3615 $as_echo "$ac_try_echo") >&5
3616 (eval "$ac_compile") 2>conftest.er1
3618 grep -v '^ *+' conftest.er1 >conftest.err
3620 cat conftest.err >&5
3621 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3622 (exit $ac_status); } && {
3623 test -z "$ac_c_werror_flag" ||
3624 test ! -s conftest.err
3625 } && test -s conftest.$ac_objext; then
3626 ac_cv_safe_to_define___extensions__=yes
3628 $as_echo "$as_me: failed program was:" >&5
3629 sed 's/^/| /' conftest.$ac_ext >&5
3631 ac_cv_safe_to_define___extensions__=no
3634 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3636 { $as_echo "$as_me:$LINENO: result: $ac_cv_safe_to_define___extensions__" >&5
3637 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
3638 test $ac_cv_safe_to_define___extensions__ = yes &&
3639 cat >>confdefs.h <<\_ACEOF
3640 #define __EXTENSIONS__ 1
3643 cat >>confdefs.h <<\_ACEOF
3644 #define _ALL_SOURCE 1
3647 cat >>confdefs.h <<\_ACEOF
3648 #define _GNU_SOURCE 1
3651 cat >>confdefs.h <<\_ACEOF
3652 #define _POSIX_PTHREAD_SEMANTICS 1
3655 cat >>confdefs.h <<\_ACEOF
3656 #define _TANDEM_SOURCE 1
3660 # AC_USE_SYSTEM_EXTENSIONS
3661 am__api_version="1.9"
3663 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
3664 if test -f "$ac_dir/install-sh"; then
3666 ac_install_sh="$ac_aux_dir/install-sh -c"
3668 elif test -f "$ac_dir/install.sh"; then
3670 ac_install_sh="$ac_aux_dir/install.sh -c"
3672 elif test -f "$ac_dir/shtool"; then
3674 ac_install_sh="$ac_aux_dir/shtool install -c"
3678 if test -z "$ac_aux_dir"; then
3679 { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
3680 $as_echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
3681 { (exit 1); exit 1; }; }
3684 # These three variables are undocumented and unsupported,
3685 # and are intended to be withdrawn in a future Autoconf release.
3686 # They can cause serious problems if a builder's source tree is in a directory
3687 # whose full name contains unusual characters.
3688 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3689 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3690 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3693 # Find a good install program. We prefer a C program (faster),
3694 # so one script is as good as another. But avoid the broken or
3695 # incompatible versions:
3696 # SysV /etc/install, /usr/sbin/install
3697 # SunOS /usr/etc/install
3698 # IRIX /sbin/install
3700 # AmigaOS /C/install, which installs bootblocks on floppy discs
3701 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3702 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3703 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3704 # OS/2's system install, which has a completely different semantic
3705 # ./install, which can be erroneously created by make from ./install.sh.
3706 # Reject install programs that cannot install multiple files.
3707 { $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3708 $as_echo_n "checking for a BSD-compatible install... " >&6; }
3709 if test -z "$INSTALL"; then
3710 if test "${ac_cv_path_install+set}" = set; then
3711 $as_echo_n "(cached) " >&6
3713 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3717 test -z "$as_dir" && as_dir=.
3718 # Account for people who put trailing slashes in PATH elements.
3720 ./ | .// | /cC/* | \
3721 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3722 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3725 # OSF1 and SCO ODT 3.0 have their own names for install.
3726 # Don't use installbsd from OSF since it installs stuff as root
3728 for ac_prog in ginstall scoinst install; do
3729 for ac_exec_ext in '' $ac_executable_extensions; do
3730 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
3731 if test $ac_prog = install &&
3732 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3733 # AIX install. It has an incompatible calling convention.
3735 elif test $ac_prog = install &&
3736 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3737 # program-specific install script used by HP pwplus--don't use.
3740 rm -rf conftest.one conftest.two conftest.dir
3741 echo one > conftest.one
3742 echo two > conftest.two
3744 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3745 test -s conftest.one && test -s conftest.two &&
3746 test -s conftest.dir/conftest.one &&
3747 test -s conftest.dir/conftest.two
3749 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3762 rm -rf conftest.one conftest.two conftest.dir
3765 if test "${ac_cv_path_install+set}" = set; then
3766 INSTALL=$ac_cv_path_install
3768 # As a last resort, use the slow shell script. Don't cache a
3769 # value for INSTALL within a source directory, because that will
3770 # break other packages using the cache if that directory is
3771 # removed, or if the value is a relative name.
3772 INSTALL=$ac_install_sh
3775 { $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
3776 $as_echo "$INSTALL" >&6; }
3778 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3779 # It thinks the first close brace ends the variable substitution.
3780 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3782 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3784 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3786 { $as_echo "$as_me:$LINENO: checking whether build environment is sane" >&5
3787 $as_echo_n "checking whether build environment is sane... " >&6; }
3790 echo timestamp > conftest.file
3791 # Do `set' in a subshell so we don't clobber the current shell's
3792 # arguments. Must try -L first in case configure is actually a
3793 # symlink; some systems play weird games with the mod time of symlinks
3794 # (eg FreeBSD returns the mod time of the symlink's containing
3797 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
3798 if test "$*" = "X"; then
3800 set X `ls -t $srcdir/configure conftest.file`
3803 if test "$*" != "X $srcdir/configure conftest.file" \
3804 && test "$*" != "X conftest.file $srcdir/configure"; then
3806 # If neither matched, then we have a broken ls. This can happen
3807 # if, for instance, CONFIG_SHELL is bash and it inherits a
3808 # broken ls alias from the environment. This has actually
3809 # happened. Such a system could not be considered "sane".
3810 { { $as_echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
3811 alias in your environment" >&5
3812 $as_echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
3813 alias in your environment" >&2;}
3814 { (exit 1); exit 1; }; }
3817 test "$2" = conftest.file
3823 { { $as_echo "$as_me:$LINENO: error: newly created file is older than distributed files!
3824 Check your system clock" >&5
3825 $as_echo "$as_me: error: newly created file is older than distributed files!
3826 Check your system clock" >&2;}
3827 { (exit 1); exit 1; }; }
3829 { $as_echo "$as_me:$LINENO: result: yes" >&5
3830 $as_echo "yes" >&6; }
3831 test "$program_prefix" != NONE &&
3832 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3833 # Use a double $ so make ignores it.
3834 test "$program_suffix" != NONE &&
3835 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3836 # Double any \ or $.
3837 # By default was `s,x,x', remove it if useless.
3838 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3839 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3841 # expand $ac_aux_dir to an absolute path
3842 am_aux_dir=`cd $ac_aux_dir && pwd`
3844 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
3845 # Use eval to expand $SHELL
3846 if eval "$MISSING --run true"; then
3847 am_missing_run="$MISSING --run "
3850 { $as_echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
3851 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
3854 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
3855 # We used to keeping the `.' as first argument, in order to
3856 # allow $(mkdir_p) to be used without argument. As in
3857 # $(mkdir_p) $(somedir)
3858 # where $(somedir) is conditionally defined. However this is wrong
3860 # 1. if the package is installed by a user who cannot write `.'
3861 # make install will fail,
3862 # 2. the above comment should most certainly read
3863 # $(mkdir_p) $(DESTDIR)$(somedir)
3864 # so it does not work when $(somedir) is undefined and
3865 # $(DESTDIR) is not.
3866 # To support the latter case, we have to write
3867 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
3868 # so the `.' trick is pointless.
3869 mkdir_p='mkdir -p --'
3871 # On NextStep and OpenStep, the `mkdir' command does not
3872 # recognize any option. It will interpret all options as
3873 # directories to create, and then abort because `.' already
3875 for d in ./-p ./--version;
3877 test -d $d && rmdir $d
3879 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
3880 if test -f "$ac_aux_dir/mkinstalldirs"; then
3881 mkdir_p='$(mkinstalldirs)'
3883 mkdir_p='$(install_sh) -d'
3887 for ac_prog in gawk mawk nawk awk
3889 # Extract the first word of "$ac_prog", so it can be a program name with args.
3890 set dummy $ac_prog; ac_word=$2
3891 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3892 $as_echo_n "checking for $ac_word... " >&6; }
3893 if test "${ac_cv_prog_AWK+set}" = set; then
3894 $as_echo_n "(cached) " >&6
3896 if test -n "$AWK"; then
3897 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3899 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3903 test -z "$as_dir" && as_dir=.
3904 for ac_exec_ext in '' $ac_executable_extensions; do
3905 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3906 ac_cv_prog_AWK="$ac_prog"
3907 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3917 if test -n "$AWK"; then
3918 { $as_echo "$as_me:$LINENO: result: $AWK" >&5
3919 $as_echo "$AWK" >&6; }
3921 { $as_echo "$as_me:$LINENO: result: no" >&5
3922 $as_echo "no" >&6; }
3926 test -n "$AWK" && break
3929 { $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3930 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3932 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3933 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
3934 $as_echo_n "(cached) " >&6
3936 cat >conftest.make <<\_ACEOF
3939 @echo '@@@%%%=$(MAKE)=@@@%%%'
3941 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3942 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3944 eval ac_cv_prog_make_${ac_make}_set=yes;;
3946 eval ac_cv_prog_make_${ac_make}_set=no;;
3950 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3951 { $as_echo "$as_me:$LINENO: result: yes" >&5
3952 $as_echo "yes" >&6; }
3955 { $as_echo "$as_me:$LINENO: result: no" >&5
3956 $as_echo "no" >&6; }
3957 SET_MAKE="MAKE=${MAKE-make}"
3960 rm -rf .tst 2>/dev/null
3961 mkdir .tst 2>/dev/null
3962 if test -d .tst; then
3967 rmdir .tst 2>/dev/null
3969 DEPDIR="${am__leading_dot}deps"
3971 ac_config_commands="$ac_config_commands depfiles"
3974 am_make=${MAKE-make}
3975 cat > confinc << 'END'
3980 # If we don't find an include directive, just comment out the code.
3981 { $as_echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
3982 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3986 # First try GNU make style include.
3987 echo "include confinc" > confmf
3988 # We grep out `Entering directory' and `Leaving directory'
3989 # messages which can occur if `w' ends up in MAKEFLAGS.
3990 # In particular we don't look at `^make:' because GNU make might
3991 # be invoked under some other name (usually "gmake"), in which
3992 # case it prints its new name instead of `make'.
3993 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
3998 # Now try BSD make style include.
3999 if test "$am__include" = "#"; then
4000 echo '.include "confinc"' > confmf
4001 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
4002 am__include=.include
4009 { $as_echo "$as_me:$LINENO: result: $_am_result" >&5
4010 $as_echo "$_am_result" >&6; }
4011 rm -f confinc confmf
4013 # Check whether --enable-dependency-tracking was given.
4014 if test "${enable_dependency_tracking+set}" = set; then
4015 enableval=$enable_dependency_tracking;
4018 if test "x$enable_dependency_tracking" != xno; then
4019 am_depcomp="$ac_aux_dir/depcomp"
4024 if test "x$enable_dependency_tracking" != xno; then
4034 # test to see if srcdir already configured
4035 if test "`cd $srcdir && pwd`" != "`pwd`" &&
4036 test -f $srcdir/config.status; then
4037 { { $as_echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
4038 $as_echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
4039 { (exit 1); exit 1; }; }
4042 # test whether we have cygpath
4043 if test -z "$CYGPATH_W"; then
4044 if (cygpath --version) >/dev/null 2>/dev/null; then
4045 CYGPATH_W='cygpath -w'
4052 # Define the identity of the package.
4057 cat >>confdefs.h <<_ACEOF
4058 #define PACKAGE "$PACKAGE"
4062 cat >>confdefs.h <<_ACEOF
4063 #define VERSION "$VERSION"
4066 # Some tools Automake needs.
4068 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
4071 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
4074 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
4077 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
4080 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
4082 install_sh=${install_sh-"$am_aux_dir/install-sh"}
4084 # Installed binaries are usually stripped using `strip' when the user
4085 # run `make install-strip'. However `strip' might not be the right
4086 # tool to use in cross-compilation environments, therefore Automake
4087 # will honor the `STRIP' environment variable to overrule this program.
4088 if test "$cross_compiling" != no; then
4089 if test -n "$ac_tool_prefix"; then
4090 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4091 set dummy ${ac_tool_prefix}strip; ac_word=$2
4092 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4093 $as_echo_n "checking for $ac_word... " >&6; }
4094 if test "${ac_cv_prog_STRIP+set}" = set; then
4095 $as_echo_n "(cached) " >&6
4097 if test -n "$STRIP"; then
4098 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4100 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4104 test -z "$as_dir" && as_dir=.
4105 for ac_exec_ext in '' $ac_executable_extensions; do
4106 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4107 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4108 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4117 STRIP=$ac_cv_prog_STRIP
4118 if test -n "$STRIP"; then
4119 { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
4120 $as_echo "$STRIP" >&6; }
4122 { $as_echo "$as_me:$LINENO: result: no" >&5
4123 $as_echo "no" >&6; }
4128 if test -z "$ac_cv_prog_STRIP"; then
4130 # Extract the first word of "strip", so it can be a program name with args.
4131 set dummy strip; ac_word=$2
4132 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4133 $as_echo_n "checking for $ac_word... " >&6; }
4134 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
4135 $as_echo_n "(cached) " >&6
4137 if test -n "$ac_ct_STRIP"; then
4138 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4140 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4144 test -z "$as_dir" && as_dir=.
4145 for ac_exec_ext in '' $ac_executable_extensions; do
4146 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4147 ac_cv_prog_ac_ct_STRIP="strip"
4148 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4157 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4158 if test -n "$ac_ct_STRIP"; then
4159 { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
4160 $as_echo "$ac_ct_STRIP" >&6; }
4162 { $as_echo "$as_me:$LINENO: result: no" >&5
4163 $as_echo "no" >&6; }
4166 if test "x$ac_ct_STRIP" = x; then
4169 case $cross_compiling:$ac_tool_warned in
4171 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
4172 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4173 ac_tool_warned=yes ;;
4178 STRIP="$ac_cv_prog_STRIP"
4182 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
4184 # We need awk for the "check" target. The system "awk" is bad on
4186 # Always define AMTAR for backward compatibility.
4188 AMTAR=${AMTAR-"${am_missing_run}tar"}
4190 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
4195 depcc="$CC" am_compiler_list=
4197 { $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
4198 $as_echo_n "checking dependency style of $depcc... " >&6; }
4199 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
4200 $as_echo_n "(cached) " >&6
4202 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4203 # We make a subdir and do the tests there. Otherwise we can end up
4204 # making bogus files that we don't know about and never remove. For
4205 # instance it was reported that on HP-UX the gcc test will end up
4206 # making a dummy file named `D' -- because `-MD' means `put the output
4209 # Copy depcomp to subdir because otherwise we won't find it if we're
4210 # using a relative directory.
4211 cp "$am_depcomp" conftest.dir
4213 # We will build objects and dependencies in a subdirectory because
4214 # it helps to detect inapplicable dependency modes. For instance
4215 # both Tru64's cc and ICC support -MD to output dependencies as a
4216 # side effect of compilation, but ICC will put the dependencies in
4217 # the current directory while Tru64 will put them in the object
4221 am_cv_CC_dependencies_compiler_type=none
4222 if test "$am_compiler_list" = ""; then
4223 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4225 for depmode in $am_compiler_list; do
4226 # Setup a source with many dependencies, because some compilers
4227 # like to wrap large dependency lists on column 80 (with \), and
4228 # we should not choose a depcomp mode which is confused by this.
4230 # We need to recreate these files for each test, as the compiler may
4231 # overwrite some of them when testing with obscure command lines.
4232 # This happens at least with the AIX C compiler.
4234 for i in 1 2 3 4 5 6; do
4235 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4236 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4237 # Solaris 8's {/usr,}/bin/sh.
4238 touch sub/conftst$i.h
4240 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4244 # after this tag, mechanisms are not by side-effect, so they'll
4245 # only be used when explicitly requested
4246 if test "x$enable_dependency_tracking" = xyes; then
4254 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4255 # mode. It turns out that the SunPro C++ compiler does not properly
4256 # handle `-M -o', and we need to detect this.
4257 if depmode=$depmode \
4258 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
4259 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4260 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
4261 >/dev/null 2>conftest.err &&
4262 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4263 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
4264 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4265 # icc doesn't choke on unknown options, it will just issue warnings
4266 # or remarks (even with -Werror). So we grep stderr for any message
4267 # that says an option was ignored or not supported.
4268 # When given -MP, icc 7.0 and 7.1 complain thusly:
4269 # icc: Command line warning: ignoring option '-M'; no argument required
4270 # The diagnosis changed in icc 8.0:
4271 # icc: Command line remark: option '-MP' not supported
4272 if (grep 'ignoring option' conftest.err ||
4273 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4274 am_cv_CC_dependencies_compiler_type=$depmode
4283 am_cv_CC_dependencies_compiler_type=none
4287 { $as_echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
4288 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4289 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4294 test "x$enable_dependency_tracking" != xno \
4295 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4297 am__fastdepCC_FALSE='#'
4299 am__fastdepCC_TRUE='#'
4300 am__fastdepCC_FALSE=
4308 # Checks for programs.
4310 ac_cpp='$CPP $CPPFLAGS'
4311 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4312 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4313 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4314 { $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4315 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4316 # On Suns, sometimes $CPP names a directory.
4317 if test -n "$CPP" && test -d "$CPP"; then
4320 if test -z "$CPP"; then
4321 if test "${ac_cv_prog_CPP+set}" = set; then
4322 $as_echo_n "(cached) " >&6
4324 # Double quotes because CPP needs to be expanded
4325 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4328 for ac_c_preproc_warn_flag in '' yes
4330 # Use a header file that comes with gcc, so configuring glibc
4331 # with a fresh cross-compiler works.
4332 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4333 # <limits.h> exists even on freestanding compilers.
4334 # On the NeXT, cc -E runs the code through the compiler's parser,
4335 # not just through cpp. "Syntax error" is here to catch this case.
4336 cat >conftest.$ac_ext <<_ACEOF
4339 cat confdefs.h >>conftest.$ac_ext
4340 cat >>conftest.$ac_ext <<_ACEOF
4341 /* end confdefs.h. */
4343 # include <limits.h>
4345 # include <assert.h>
4349 if { (ac_try="$ac_cpp conftest.$ac_ext"
4351 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4352 *) ac_try_echo=$ac_try;;
4354 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4355 $as_echo "$ac_try_echo") >&5
4356 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4358 grep -v '^ *+' conftest.er1 >conftest.err
4360 cat conftest.err >&5
4361 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4362 (exit $ac_status); } >/dev/null && {
4363 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4364 test ! -s conftest.err
4368 $as_echo "$as_me: failed program was:" >&5
4369 sed 's/^/| /' conftest.$ac_ext >&5
4371 # Broken: fails on valid input.
4375 rm -f conftest.err conftest.$ac_ext
4377 # OK, works on sane cases. Now check whether nonexistent headers
4378 # can be detected and how.
4379 cat >conftest.$ac_ext <<_ACEOF
4382 cat confdefs.h >>conftest.$ac_ext
4383 cat >>conftest.$ac_ext <<_ACEOF
4384 /* end confdefs.h. */
4385 #include <ac_nonexistent.h>
4387 if { (ac_try="$ac_cpp conftest.$ac_ext"
4389 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4390 *) ac_try_echo=$ac_try;;
4392 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4393 $as_echo "$ac_try_echo") >&5
4394 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4396 grep -v '^ *+' conftest.er1 >conftest.err
4398 cat conftest.err >&5
4399 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4400 (exit $ac_status); } >/dev/null && {
4401 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4402 test ! -s conftest.err
4404 # Broken: success on invalid input.
4407 $as_echo "$as_me: failed program was:" >&5
4408 sed 's/^/| /' conftest.$ac_ext >&5
4410 # Passes both tests.
4415 rm -f conftest.err conftest.$ac_ext
4418 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4419 rm -f conftest.err conftest.$ac_ext
4420 if $ac_preproc_ok; then
4432 { $as_echo "$as_me:$LINENO: result: $CPP" >&5
4433 $as_echo "$CPP" >&6; }
4435 for ac_c_preproc_warn_flag in '' yes
4437 # Use a header file that comes with gcc, so configuring glibc
4438 # with a fresh cross-compiler works.
4439 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4440 # <limits.h> exists even on freestanding compilers.
4441 # On the NeXT, cc -E runs the code through the compiler's parser,
4442 # not just through cpp. "Syntax error" is here to catch this case.
4443 cat >conftest.$ac_ext <<_ACEOF
4446 cat confdefs.h >>conftest.$ac_ext
4447 cat >>conftest.$ac_ext <<_ACEOF
4448 /* end confdefs.h. */
4450 # include <limits.h>
4452 # include <assert.h>
4456 if { (ac_try="$ac_cpp conftest.$ac_ext"
4458 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4459 *) ac_try_echo=$ac_try;;
4461 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4462 $as_echo "$ac_try_echo") >&5
4463 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4465 grep -v '^ *+' conftest.er1 >conftest.err
4467 cat conftest.err >&5
4468 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4469 (exit $ac_status); } >/dev/null && {
4470 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4471 test ! -s conftest.err
4475 $as_echo "$as_me: failed program was:" >&5
4476 sed 's/^/| /' conftest.$ac_ext >&5
4478 # Broken: fails on valid input.
4482 rm -f conftest.err conftest.$ac_ext
4484 # OK, works on sane cases. Now check whether nonexistent headers
4485 # can be detected and how.
4486 cat >conftest.$ac_ext <<_ACEOF
4489 cat confdefs.h >>conftest.$ac_ext
4490 cat >>conftest.$ac_ext <<_ACEOF
4491 /* end confdefs.h. */
4492 #include <ac_nonexistent.h>
4494 if { (ac_try="$ac_cpp conftest.$ac_ext"
4496 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4497 *) ac_try_echo=$ac_try;;
4499 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4500 $as_echo "$ac_try_echo") >&5
4501 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4503 grep -v '^ *+' conftest.er1 >conftest.err
4505 cat conftest.err >&5
4506 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4507 (exit $ac_status); } >/dev/null && {
4508 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4509 test ! -s conftest.err
4511 # Broken: success on invalid input.
4514 $as_echo "$as_me: failed program was:" >&5
4515 sed 's/^/| /' conftest.$ac_ext >&5
4517 # Passes both tests.
4522 rm -f conftest.err conftest.$ac_ext
4525 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4526 rm -f conftest.err conftest.$ac_ext
4527 if $ac_preproc_ok; then
4530 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
4531 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4532 { { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4533 See \`config.log' for more details." >&5
4534 $as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4535 See \`config.log' for more details." >&2;}
4536 { (exit 1); exit 1; }; }; }
4540 ac_cpp='$CPP $CPPFLAGS'
4541 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4542 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4543 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4546 ac_cpp='$CXXCPP $CPPFLAGS'
4547 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4548 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4549 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4550 if test -z "$CXX"; then
4551 if test -n "$CCC"; then
4554 if test -n "$ac_tool_prefix"; then
4555 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4557 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4558 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4559 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4560 $as_echo_n "checking for $ac_word... " >&6; }
4561 if test "${ac_cv_prog_CXX+set}" = set; then
4562 $as_echo_n "(cached) " >&6
4564 if test -n "$CXX"; then
4565 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4567 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4571 test -z "$as_dir" && as_dir=.
4572 for ac_exec_ext in '' $ac_executable_extensions; do
4573 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4574 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4575 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4585 if test -n "$CXX"; then
4586 { $as_echo "$as_me:$LINENO: result: $CXX" >&5
4587 $as_echo "$CXX" >&6; }
4589 { $as_echo "$as_me:$LINENO: result: no" >&5
4590 $as_echo "no" >&6; }
4594 test -n "$CXX" && break
4597 if test -z "$CXX"; then
4599 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4601 # Extract the first word of "$ac_prog", so it can be a program name with args.
4602 set dummy $ac_prog; ac_word=$2
4603 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4604 $as_echo_n "checking for $ac_word... " >&6; }
4605 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
4606 $as_echo_n "(cached) " >&6
4608 if test -n "$ac_ct_CXX"; then
4609 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4611 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4615 test -z "$as_dir" && as_dir=.
4616 for ac_exec_ext in '' $ac_executable_extensions; do
4617 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4618 ac_cv_prog_ac_ct_CXX="$ac_prog"
4619 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4628 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4629 if test -n "$ac_ct_CXX"; then
4630 { $as_echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
4631 $as_echo "$ac_ct_CXX" >&6; }
4633 { $as_echo "$as_me:$LINENO: result: no" >&5
4634 $as_echo "no" >&6; }
4638 test -n "$ac_ct_CXX" && break
4641 if test "x$ac_ct_CXX" = x; then
4644 case $cross_compiling:$ac_tool_warned in
4646 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
4647 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4648 ac_tool_warned=yes ;;
4656 # Provide some information about the compiler.
4657 $as_echo "$as_me:$LINENO: checking for C++ compiler version" >&5
4660 { (ac_try="$ac_compiler --version >&5"
4662 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4663 *) ac_try_echo=$ac_try;;
4665 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4666 $as_echo "$ac_try_echo") >&5
4667 (eval "$ac_compiler --version >&5") 2>&5
4669 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4670 (exit $ac_status); }
4671 { (ac_try="$ac_compiler -v >&5"
4673 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4674 *) ac_try_echo=$ac_try;;
4676 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4677 $as_echo "$ac_try_echo") >&5
4678 (eval "$ac_compiler -v >&5") 2>&5
4680 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4681 (exit $ac_status); }
4682 { (ac_try="$ac_compiler -V >&5"
4684 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4685 *) ac_try_echo=$ac_try;;
4687 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4688 $as_echo "$ac_try_echo") >&5
4689 (eval "$ac_compiler -V >&5") 2>&5
4691 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4692 (exit $ac_status); }
4694 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
4695 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4696 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
4697 $as_echo_n "(cached) " >&6
4699 cat >conftest.$ac_ext <<_ACEOF
4702 cat confdefs.h >>conftest.$ac_ext
4703 cat >>conftest.$ac_ext <<_ACEOF
4704 /* end confdefs.h. */
4717 rm -f conftest.$ac_objext
4718 if { (ac_try="$ac_compile"
4720 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4721 *) ac_try_echo=$ac_try;;
4723 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4724 $as_echo "$ac_try_echo") >&5
4725 (eval "$ac_compile") 2>conftest.er1
4727 grep -v '^ *+' conftest.er1 >conftest.err
4729 cat conftest.err >&5
4730 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4731 (exit $ac_status); } && {
4732 test -z "$ac_cxx_werror_flag" ||
4733 test ! -s conftest.err
4734 } && test -s conftest.$ac_objext; then
4737 $as_echo "$as_me: failed program was:" >&5
4738 sed 's/^/| /' conftest.$ac_ext >&5
4743 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4744 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4747 { $as_echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
4748 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4749 if test $ac_compiler_gnu = yes; then
4754 ac_test_CXXFLAGS=${CXXFLAGS+set}
4755 ac_save_CXXFLAGS=$CXXFLAGS
4756 { $as_echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
4757 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4758 if test "${ac_cv_prog_cxx_g+set}" = set; then
4759 $as_echo_n "(cached) " >&6
4761 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4762 ac_cxx_werror_flag=yes
4765 cat >conftest.$ac_ext <<_ACEOF
4768 cat confdefs.h >>conftest.$ac_ext
4769 cat >>conftest.$ac_ext <<_ACEOF
4770 /* end confdefs.h. */
4780 rm -f conftest.$ac_objext
4781 if { (ac_try="$ac_compile"
4783 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4784 *) ac_try_echo=$ac_try;;
4786 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4787 $as_echo "$ac_try_echo") >&5
4788 (eval "$ac_compile") 2>conftest.er1
4790 grep -v '^ *+' conftest.er1 >conftest.err
4792 cat conftest.err >&5
4793 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4794 (exit $ac_status); } && {
4795 test -z "$ac_cxx_werror_flag" ||
4796 test ! -s conftest.err
4797 } && test -s conftest.$ac_objext; then
4798 ac_cv_prog_cxx_g=yes
4800 $as_echo "$as_me: failed program was:" >&5
4801 sed 's/^/| /' conftest.$ac_ext >&5
4804 cat >conftest.$ac_ext <<_ACEOF
4807 cat confdefs.h >>conftest.$ac_ext
4808 cat >>conftest.$ac_ext <<_ACEOF
4809 /* end confdefs.h. */
4819 rm -f conftest.$ac_objext
4820 if { (ac_try="$ac_compile"
4822 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4823 *) ac_try_echo=$ac_try;;
4825 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4826 $as_echo "$ac_try_echo") >&5
4827 (eval "$ac_compile") 2>conftest.er1
4829 grep -v '^ *+' conftest.er1 >conftest.err
4831 cat conftest.err >&5
4832 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4833 (exit $ac_status); } && {
4834 test -z "$ac_cxx_werror_flag" ||
4835 test ! -s conftest.err
4836 } && test -s conftest.$ac_objext; then
4839 $as_echo "$as_me: failed program was:" >&5
4840 sed 's/^/| /' conftest.$ac_ext >&5
4842 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4844 cat >conftest.$ac_ext <<_ACEOF
4847 cat confdefs.h >>conftest.$ac_ext
4848 cat >>conftest.$ac_ext <<_ACEOF
4849 /* end confdefs.h. */
4859 rm -f conftest.$ac_objext
4860 if { (ac_try="$ac_compile"
4862 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4863 *) ac_try_echo=$ac_try;;
4865 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4866 $as_echo "$ac_try_echo") >&5
4867 (eval "$ac_compile") 2>conftest.er1
4869 grep -v '^ *+' conftest.er1 >conftest.err
4871 cat conftest.err >&5
4872 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4873 (exit $ac_status); } && {
4874 test -z "$ac_cxx_werror_flag" ||
4875 test ! -s conftest.err
4876 } && test -s conftest.$ac_objext; then
4877 ac_cv_prog_cxx_g=yes
4879 $as_echo "$as_me: failed program was:" >&5
4880 sed 's/^/| /' conftest.$ac_ext >&5
4885 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4888 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4891 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4892 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4894 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
4895 $as_echo "$ac_cv_prog_cxx_g" >&6; }
4896 if test "$ac_test_CXXFLAGS" = set; then
4897 CXXFLAGS=$ac_save_CXXFLAGS
4898 elif test $ac_cv_prog_cxx_g = yes; then
4899 if test "$GXX" = yes; then
4905 if test "$GXX" = yes; then
4912 ac_cpp='$CPP $CPPFLAGS'
4913 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4914 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4915 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4917 depcc="$CXX" am_compiler_list=
4919 { $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
4920 $as_echo_n "checking dependency style of $depcc... " >&6; }
4921 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
4922 $as_echo_n "(cached) " >&6
4924 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4925 # We make a subdir and do the tests there. Otherwise we can end up
4926 # making bogus files that we don't know about and never remove. For
4927 # instance it was reported that on HP-UX the gcc test will end up
4928 # making a dummy file named `D' -- because `-MD' means `put the output
4931 # Copy depcomp to subdir because otherwise we won't find it if we're
4932 # using a relative directory.
4933 cp "$am_depcomp" conftest.dir
4935 # We will build objects and dependencies in a subdirectory because
4936 # it helps to detect inapplicable dependency modes. For instance
4937 # both Tru64's cc and ICC support -MD to output dependencies as a
4938 # side effect of compilation, but ICC will put the dependencies in
4939 # the current directory while Tru64 will put them in the object
4943 am_cv_CXX_dependencies_compiler_type=none
4944 if test "$am_compiler_list" = ""; then
4945 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4947 for depmode in $am_compiler_list; do
4948 # Setup a source with many dependencies, because some compilers
4949 # like to wrap large dependency lists on column 80 (with \), and
4950 # we should not choose a depcomp mode which is confused by this.
4952 # We need to recreate these files for each test, as the compiler may
4953 # overwrite some of them when testing with obscure command lines.
4954 # This happens at least with the AIX C compiler.
4956 for i in 1 2 3 4 5 6; do
4957 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4958 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4959 # Solaris 8's {/usr,}/bin/sh.
4960 touch sub/conftst$i.h
4962 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4966 # after this tag, mechanisms are not by side-effect, so they'll
4967 # only be used when explicitly requested
4968 if test "x$enable_dependency_tracking" = xyes; then
4976 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4977 # mode. It turns out that the SunPro C++ compiler does not properly
4978 # handle `-M -o', and we need to detect this.
4979 if depmode=$depmode \
4980 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
4981 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4982 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
4983 >/dev/null 2>conftest.err &&
4984 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4985 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
4986 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4987 # icc doesn't choke on unknown options, it will just issue warnings
4988 # or remarks (even with -Werror). So we grep stderr for any message
4989 # that says an option was ignored or not supported.
4990 # When given -MP, icc 7.0 and 7.1 complain thusly:
4991 # icc: Command line warning: ignoring option '-M'; no argument required
4992 # The diagnosis changed in icc 8.0:
4993 # icc: Command line remark: option '-MP' not supported
4994 if (grep 'ignoring option' conftest.err ||
4995 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4996 am_cv_CXX_dependencies_compiler_type=$depmode
5005 am_cv_CXX_dependencies_compiler_type=none
5009 { $as_echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
5010 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
5011 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
5016 test "x$enable_dependency_tracking" != xno \
5017 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
5018 am__fastdepCXX_TRUE=
5019 am__fastdepCXX_FALSE='#'
5021 am__fastdepCXX_TRUE='#'
5022 am__fastdepCXX_FALSE=
5027 ac_cpp='$CPP $CPPFLAGS'
5028 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5029 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5030 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5031 if test -n "$ac_tool_prefix"; then
5032 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
5033 set dummy ${ac_tool_prefix}gcc; ac_word=$2
5034 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5035 $as_echo_n "checking for $ac_word... " >&6; }
5036 if test "${ac_cv_prog_CC+set}" = set; then
5037 $as_echo_n "(cached) " >&6
5039 if test -n "$CC"; then
5040 ac_cv_prog_CC="$CC" # Let the user override the test.
5042 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5046 test -z "$as_dir" && as_dir=.
5047 for ac_exec_ext in '' $ac_executable_extensions; do
5048 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5049 ac_cv_prog_CC="${ac_tool_prefix}gcc"
5050 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5060 if test -n "$CC"; then
5061 { $as_echo "$as_me:$LINENO: result: $CC" >&5
5062 $as_echo "$CC" >&6; }
5064 { $as_echo "$as_me:$LINENO: result: no" >&5
5065 $as_echo "no" >&6; }
5070 if test -z "$ac_cv_prog_CC"; then
5072 # Extract the first word of "gcc", so it can be a program name with args.
5073 set dummy gcc; ac_word=$2
5074 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5075 $as_echo_n "checking for $ac_word... " >&6; }
5076 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
5077 $as_echo_n "(cached) " >&6
5079 if test -n "$ac_ct_CC"; then
5080 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5082 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5086 test -z "$as_dir" && as_dir=.
5087 for ac_exec_ext in '' $ac_executable_extensions; do
5088 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5089 ac_cv_prog_ac_ct_CC="gcc"
5090 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5099 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5100 if test -n "$ac_ct_CC"; then
5101 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
5102 $as_echo "$ac_ct_CC" >&6; }
5104 { $as_echo "$as_me:$LINENO: result: no" >&5
5105 $as_echo "no" >&6; }
5108 if test "x$ac_ct_CC" = x; then
5111 case $cross_compiling:$ac_tool_warned in
5113 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
5114 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5115 ac_tool_warned=yes ;;
5123 if test -z "$CC"; then
5124 if test -n "$ac_tool_prefix"; then
5125 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
5126 set dummy ${ac_tool_prefix}cc; ac_word=$2
5127 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5128 $as_echo_n "checking for $ac_word... " >&6; }
5129 if test "${ac_cv_prog_CC+set}" = set; then
5130 $as_echo_n "(cached) " >&6
5132 if test -n "$CC"; then
5133 ac_cv_prog_CC="$CC" # Let the user override the test.
5135 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5139 test -z "$as_dir" && as_dir=.
5140 for ac_exec_ext in '' $ac_executable_extensions; do
5141 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5142 ac_cv_prog_CC="${ac_tool_prefix}cc"
5143 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5153 if test -n "$CC"; then
5154 { $as_echo "$as_me:$LINENO: result: $CC" >&5
5155 $as_echo "$CC" >&6; }
5157 { $as_echo "$as_me:$LINENO: result: no" >&5
5158 $as_echo "no" >&6; }
5164 if test -z "$CC"; then
5165 # Extract the first word of "cc", so it can be a program name with args.
5166 set dummy cc; ac_word=$2
5167 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5168 $as_echo_n "checking for $ac_word... " >&6; }
5169 if test "${ac_cv_prog_CC+set}" = set; then
5170 $as_echo_n "(cached) " >&6
5172 if test -n "$CC"; then
5173 ac_cv_prog_CC="$CC" # Let the user override the test.
5176 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5180 test -z "$as_dir" && as_dir=.
5181 for ac_exec_ext in '' $ac_executable_extensions; do
5182 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5183 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
5184 ac_prog_rejected=yes
5188 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5195 if test $ac_prog_rejected = yes; then
5196 # We found a bogon in the path, so make sure we never use it.
5197 set dummy $ac_cv_prog_CC
5199 if test $# != 0; then
5200 # We chose a different compiler from the bogus one.
5201 # However, it has the same basename, so the bogon will be chosen
5202 # first if we set CC to just the basename; use the full file name.
5204 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
5210 if test -n "$CC"; then
5211 { $as_echo "$as_me:$LINENO: result: $CC" >&5
5212 $as_echo "$CC" >&6; }
5214 { $as_echo "$as_me:$LINENO: result: no" >&5
5215 $as_echo "no" >&6; }
5220 if test -z "$CC"; then
5221 if test -n "$ac_tool_prefix"; then
5222 for ac_prog in cl.exe
5224 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5225 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5226 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5227 $as_echo_n "checking for $ac_word... " >&6; }
5228 if test "${ac_cv_prog_CC+set}" = set; then
5229 $as_echo_n "(cached) " >&6
5231 if test -n "$CC"; then
5232 ac_cv_prog_CC="$CC" # Let the user override the test.
5234 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5238 test -z "$as_dir" && as_dir=.
5239 for ac_exec_ext in '' $ac_executable_extensions; do
5240 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5241 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5242 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5252 if test -n "$CC"; then
5253 { $as_echo "$as_me:$LINENO: result: $CC" >&5
5254 $as_echo "$CC" >&6; }
5256 { $as_echo "$as_me:$LINENO: result: no" >&5
5257 $as_echo "no" >&6; }
5261 test -n "$CC" && break
5264 if test -z "$CC"; then
5266 for ac_prog in cl.exe
5268 # Extract the first word of "$ac_prog", so it can be a program name with args.
5269 set dummy $ac_prog; ac_word=$2
5270 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5271 $as_echo_n "checking for $ac_word... " >&6; }
5272 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
5273 $as_echo_n "(cached) " >&6
5275 if test -n "$ac_ct_CC"; then
5276 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5278 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5282 test -z "$as_dir" && as_dir=.
5283 for ac_exec_ext in '' $ac_executable_extensions; do
5284 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5285 ac_cv_prog_ac_ct_CC="$ac_prog"
5286 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5295 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5296 if test -n "$ac_ct_CC"; then
5297 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
5298 $as_echo "$ac_ct_CC" >&6; }
5300 { $as_echo "$as_me:$LINENO: result: no" >&5
5301 $as_echo "no" >&6; }
5305 test -n "$ac_ct_CC" && break
5308 if test "x$ac_ct_CC" = x; then
5311 case $cross_compiling:$ac_tool_warned in
5313 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
5314 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5315 ac_tool_warned=yes ;;
5324 test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
5325 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5326 { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
5327 See \`config.log' for more details." >&5
5328 $as_echo "$as_me: error: no acceptable C compiler found in \$PATH
5329 See \`config.log' for more details." >&2;}
5330 { (exit 1); exit 1; }; }; }
5332 # Provide some information about the compiler.
5333 $as_echo "$as_me:$LINENO: checking for C compiler version" >&5
5336 { (ac_try="$ac_compiler --version >&5"
5338 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5339 *) ac_try_echo=$ac_try;;
5341 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5342 $as_echo "$ac_try_echo") >&5
5343 (eval "$ac_compiler --version >&5") 2>&5
5345 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5346 (exit $ac_status); }
5347 { (ac_try="$ac_compiler -v >&5"
5349 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5350 *) ac_try_echo=$ac_try;;
5352 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5353 $as_echo "$ac_try_echo") >&5
5354 (eval "$ac_compiler -v >&5") 2>&5
5356 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5357 (exit $ac_status); }
5358 { (ac_try="$ac_compiler -V >&5"
5360 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5361 *) ac_try_echo=$ac_try;;
5363 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5364 $as_echo "$ac_try_echo") >&5
5365 (eval "$ac_compiler -V >&5") 2>&5
5367 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5368 (exit $ac_status); }
5370 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
5371 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
5372 if test "${ac_cv_c_compiler_gnu+set}" = set; then
5373 $as_echo_n "(cached) " >&6
5375 cat >conftest.$ac_ext <<_ACEOF
5378 cat confdefs.h >>conftest.$ac_ext
5379 cat >>conftest.$ac_ext <<_ACEOF
5380 /* end confdefs.h. */
5393 rm -f conftest.$ac_objext
5394 if { (ac_try="$ac_compile"
5396 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5397 *) ac_try_echo=$ac_try;;
5399 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5400 $as_echo "$ac_try_echo") >&5
5401 (eval "$ac_compile") 2>conftest.er1
5403 grep -v '^ *+' conftest.er1 >conftest.err
5405 cat conftest.err >&5
5406 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5407 (exit $ac_status); } && {
5408 test -z "$ac_c_werror_flag" ||
5409 test ! -s conftest.err
5410 } && test -s conftest.$ac_objext; then
5413 $as_echo "$as_me: failed program was:" >&5
5414 sed 's/^/| /' conftest.$ac_ext >&5
5419 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5420 ac_cv_c_compiler_gnu=$ac_compiler_gnu
5423 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
5424 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
5425 if test $ac_compiler_gnu = yes; then
5430 ac_test_CFLAGS=${CFLAGS+set}
5431 ac_save_CFLAGS=$CFLAGS
5432 { $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
5433 $as_echo_n "checking whether $CC accepts -g... " >&6; }
5434 if test "${ac_cv_prog_cc_g+set}" = set; then
5435 $as_echo_n "(cached) " >&6
5437 ac_save_c_werror_flag=$ac_c_werror_flag
5438 ac_c_werror_flag=yes
5441 cat >conftest.$ac_ext <<_ACEOF
5444 cat confdefs.h >>conftest.$ac_ext
5445 cat >>conftest.$ac_ext <<_ACEOF
5446 /* end confdefs.h. */
5456 rm -f conftest.$ac_objext
5457 if { (ac_try="$ac_compile"
5459 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5460 *) ac_try_echo=$ac_try;;
5462 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5463 $as_echo "$ac_try_echo") >&5
5464 (eval "$ac_compile") 2>conftest.er1
5466 grep -v '^ *+' conftest.er1 >conftest.err
5468 cat conftest.err >&5
5469 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5470 (exit $ac_status); } && {
5471 test -z "$ac_c_werror_flag" ||
5472 test ! -s conftest.err
5473 } && test -s conftest.$ac_objext; then
5476 $as_echo "$as_me: failed program was:" >&5
5477 sed 's/^/| /' conftest.$ac_ext >&5
5480 cat >conftest.$ac_ext <<_ACEOF
5483 cat confdefs.h >>conftest.$ac_ext
5484 cat >>conftest.$ac_ext <<_ACEOF
5485 /* end confdefs.h. */
5495 rm -f conftest.$ac_objext
5496 if { (ac_try="$ac_compile"
5498 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5499 *) ac_try_echo=$ac_try;;
5501 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5502 $as_echo "$ac_try_echo") >&5
5503 (eval "$ac_compile") 2>conftest.er1
5505 grep -v '^ *+' conftest.er1 >conftest.err
5507 cat conftest.err >&5
5508 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5509 (exit $ac_status); } && {
5510 test -z "$ac_c_werror_flag" ||
5511 test ! -s conftest.err
5512 } && test -s conftest.$ac_objext; then
5515 $as_echo "$as_me: failed program was:" >&5
5516 sed 's/^/| /' conftest.$ac_ext >&5
5518 ac_c_werror_flag=$ac_save_c_werror_flag
5520 cat >conftest.$ac_ext <<_ACEOF
5523 cat confdefs.h >>conftest.$ac_ext
5524 cat >>conftest.$ac_ext <<_ACEOF
5525 /* end confdefs.h. */
5535 rm -f conftest.$ac_objext
5536 if { (ac_try="$ac_compile"
5538 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5539 *) ac_try_echo=$ac_try;;
5541 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5542 $as_echo "$ac_try_echo") >&5
5543 (eval "$ac_compile") 2>conftest.er1
5545 grep -v '^ *+' conftest.er1 >conftest.err
5547 cat conftest.err >&5
5548 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5549 (exit $ac_status); } && {
5550 test -z "$ac_c_werror_flag" ||
5551 test ! -s conftest.err
5552 } && test -s conftest.$ac_objext; then
5555 $as_echo "$as_me: failed program was:" >&5
5556 sed 's/^/| /' conftest.$ac_ext >&5
5561 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5564 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5567 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5568 ac_c_werror_flag=$ac_save_c_werror_flag
5570 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
5571 $as_echo "$ac_cv_prog_cc_g" >&6; }
5572 if test "$ac_test_CFLAGS" = set; then
5573 CFLAGS=$ac_save_CFLAGS
5574 elif test $ac_cv_prog_cc_g = yes; then
5575 if test "$GCC" = yes; then
5581 if test "$GCC" = yes; then
5587 { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
5588 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
5589 if test "${ac_cv_prog_cc_c89+set}" = set; then
5590 $as_echo_n "(cached) " >&6
5592 ac_cv_prog_cc_c89=no
5594 cat >conftest.$ac_ext <<_ACEOF
5597 cat confdefs.h >>conftest.$ac_ext
5598 cat >>conftest.$ac_ext <<_ACEOF
5599 /* end confdefs.h. */
5602 #include <sys/types.h>
5603 #include <sys/stat.h>
5604 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5605 struct buf { int x; };
5606 FILE * (*rcsopen) (struct buf *, struct stat *, int);
5607 static char *e (p, i)
5613 static char *f (char * (*g) (char **, int), char **p, ...)
5618 s = g (p, va_arg (v,int));
5623 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5624 function prototypes and stuff, but not '\xHH' hex character constants.
5625 These don't provoke an error unfortunately, instead are silently treated
5626 as 'x'. The following induces an error, until -std is added to get
5627 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5628 array size at least. It's necessary to write '\x00'==0 to get something
5629 that's true only with -std. */
5630 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5632 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5633 inside strings and character constants. */
5635 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5637 int test (int i, double x);
5638 struct s1 {int (*f) (int a);};
5639 struct s2 {int (*f) (double a);};
5640 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5646 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5651 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5652 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5654 CC="$ac_save_CC $ac_arg"
5655 rm -f conftest.$ac_objext
5656 if { (ac_try="$ac_compile"
5658 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5659 *) ac_try_echo=$ac_try;;
5661 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5662 $as_echo "$ac_try_echo") >&5
5663 (eval "$ac_compile") 2>conftest.er1
5665 grep -v '^ *+' conftest.er1 >conftest.err
5667 cat conftest.err >&5
5668 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5669 (exit $ac_status); } && {
5670 test -z "$ac_c_werror_flag" ||
5671 test ! -s conftest.err
5672 } && test -s conftest.$ac_objext; then
5673 ac_cv_prog_cc_c89=$ac_arg
5675 $as_echo "$as_me: failed program was:" >&5
5676 sed 's/^/| /' conftest.$ac_ext >&5
5681 rm -f core conftest.err conftest.$ac_objext
5682 test "x$ac_cv_prog_cc_c89" != "xno" && break
5684 rm -f conftest.$ac_ext
5689 case "x$ac_cv_prog_cc_c89" in
5691 { $as_echo "$as_me:$LINENO: result: none needed" >&5
5692 $as_echo "none needed" >&6; } ;;
5694 { $as_echo "$as_me:$LINENO: result: unsupported" >&5
5695 $as_echo "unsupported" >&6; } ;;
5697 CC="$CC $ac_cv_prog_cc_c89"
5698 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
5699 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5704 ac_cpp='$CPP $CPPFLAGS'
5705 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5706 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5707 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5709 # Find a good install program. We prefer a C program (faster),
5710 # so one script is as good as another. But avoid the broken or
5711 # incompatible versions:
5712 # SysV /etc/install, /usr/sbin/install
5713 # SunOS /usr/etc/install
5714 # IRIX /sbin/install
5716 # AmigaOS /C/install, which installs bootblocks on floppy discs
5717 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
5718 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
5719 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
5720 # OS/2's system install, which has a completely different semantic
5721 # ./install, which can be erroneously created by make from ./install.sh.
5722 # Reject install programs that cannot install multiple files.
5723 { $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
5724 $as_echo_n "checking for a BSD-compatible install... " >&6; }
5725 if test -z "$INSTALL"; then
5726 if test "${ac_cv_path_install+set}" = set; then
5727 $as_echo_n "(cached) " >&6
5729 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5733 test -z "$as_dir" && as_dir=.
5734 # Account for people who put trailing slashes in PATH elements.
5736 ./ | .// | /cC/* | \
5737 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
5738 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
5741 # OSF1 and SCO ODT 3.0 have their own names for install.
5742 # Don't use installbsd from OSF since it installs stuff as root
5744 for ac_prog in ginstall scoinst install; do
5745 for ac_exec_ext in '' $ac_executable_extensions; do
5746 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
5747 if test $ac_prog = install &&
5748 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5749 # AIX install. It has an incompatible calling convention.
5751 elif test $ac_prog = install &&
5752 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5753 # program-specific install script used by HP pwplus--don't use.
5756 rm -rf conftest.one conftest.two conftest.dir
5757 echo one > conftest.one
5758 echo two > conftest.two
5760 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
5761 test -s conftest.one && test -s conftest.two &&
5762 test -s conftest.dir/conftest.one &&
5763 test -s conftest.dir/conftest.two
5765 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
5778 rm -rf conftest.one conftest.two conftest.dir
5781 if test "${ac_cv_path_install+set}" = set; then
5782 INSTALL=$ac_cv_path_install
5784 # As a last resort, use the slow shell script. Don't cache a
5785 # value for INSTALL within a source directory, because that will
5786 # break other packages using the cache if that directory is
5787 # removed, or if the value is a relative name.
5788 INSTALL=$ac_install_sh
5791 { $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
5792 $as_echo "$INSTALL" >&6; }
5794 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
5795 # It thinks the first close brace ends the variable substitution.
5796 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
5798 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
5800 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
5802 { $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
5803 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
5805 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
5806 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
5807 $as_echo_n "(cached) " >&6
5809 cat >conftest.make <<\_ACEOF
5812 @echo '@@@%%%=$(MAKE)=@@@%%%'
5814 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
5815 case `${MAKE-make} -f conftest.make 2>/dev/null` in
5817 eval ac_cv_prog_make_${ac_make}_set=yes;;
5819 eval ac_cv_prog_make_${ac_make}_set=no;;
5823 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
5824 { $as_echo "$as_me:$LINENO: result: yes" >&5
5825 $as_echo "yes" >&6; }
5828 { $as_echo "$as_me:$LINENO: result: no" >&5
5829 $as_echo "no" >&6; }
5830 SET_MAKE="MAKE=${MAKE-make}"
5835 # site specific configs
5837 # check for asterisk
5839 # Check whether --with-asterisk was given.
5840 if test "${with_asterisk+set}" = set; then
5841 withval=$with_asterisk;
5843 with_asterisk="check"
5847 if test "x$with_asterisk" != xno; then
5849 for ac_header in asterisk/compiler.h
5851 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5852 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5853 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
5854 $as_echo_n "checking for $ac_header... " >&6; }
5855 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5856 $as_echo_n "(cached) " >&6
5858 ac_res=`eval 'as_val=${'$as_ac_Header'}
5859 $as_echo "$as_val"'`
5860 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
5861 $as_echo "$ac_res" >&6; }
5863 # Is the header compilable?
5864 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
5865 $as_echo_n "checking $ac_header usability... " >&6; }
5866 cat >conftest.$ac_ext <<_ACEOF
5869 cat confdefs.h >>conftest.$ac_ext
5870 cat >>conftest.$ac_ext <<_ACEOF
5871 /* end confdefs.h. */
5872 $ac_includes_default
5873 #include <$ac_header>
5875 rm -f conftest.$ac_objext
5876 if { (ac_try="$ac_compile"
5878 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5879 *) ac_try_echo=$ac_try;;
5881 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5882 $as_echo "$ac_try_echo") >&5
5883 (eval "$ac_compile") 2>conftest.er1
5885 grep -v '^ *+' conftest.er1 >conftest.err
5887 cat conftest.err >&5
5888 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5889 (exit $ac_status); } && {
5890 test -z "$ac_c_werror_flag" ||
5891 test ! -s conftest.err
5892 } && test -s conftest.$ac_objext; then
5893 ac_header_compiler=yes
5895 $as_echo "$as_me: failed program was:" >&5
5896 sed 's/^/| /' conftest.$ac_ext >&5
5898 ac_header_compiler=no
5901 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5902 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5903 $as_echo "$ac_header_compiler" >&6; }
5905 # Is the header present?
5906 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
5907 $as_echo_n "checking $ac_header presence... " >&6; }
5908 cat >conftest.$ac_ext <<_ACEOF
5911 cat confdefs.h >>conftest.$ac_ext
5912 cat >>conftest.$ac_ext <<_ACEOF
5913 /* end confdefs.h. */
5914 #include <$ac_header>
5916 if { (ac_try="$ac_cpp conftest.$ac_ext"
5918 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5919 *) ac_try_echo=$ac_try;;
5921 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5922 $as_echo "$ac_try_echo") >&5
5923 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5925 grep -v '^ *+' conftest.er1 >conftest.err
5927 cat conftest.err >&5
5928 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5929 (exit $ac_status); } >/dev/null && {
5930 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5931 test ! -s conftest.err
5933 ac_header_preproc=yes
5935 $as_echo "$as_me: failed program was:" >&5
5936 sed 's/^/| /' conftest.$ac_ext >&5
5938 ac_header_preproc=no
5941 rm -f conftest.err conftest.$ac_ext
5942 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5943 $as_echo "$ac_header_preproc" >&6; }
5945 # So? What about this header?
5946 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5948 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5949 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5950 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5951 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5952 ac_header_preproc=yes
5955 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5956 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5957 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5958 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5959 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5960 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5961 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5962 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5963 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5964 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5965 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5966 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5968 ## ----------------------------------- ##
5969 ## Report this to andreas@eversberg.eu ##
5970 ## ----------------------------------- ##
5972 ) | sed "s/^/$as_me: WARNING: /" >&2
5975 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
5976 $as_echo_n "checking for $ac_header... " >&6; }
5977 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5978 $as_echo_n "(cached) " >&6
5980 eval "$as_ac_Header=\$ac_header_preproc"
5982 ac_res=`eval 'as_val=${'$as_ac_Header'}
5983 $as_echo "$as_val"'`
5984 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
5985 $as_echo "$ac_res" >&6; }
5988 as_val=`eval 'as_val=${'$as_ac_Header'}
5989 $as_echo "$as_val"'`
5990 if test "x$as_val" = x""yes; then
5991 cat >>confdefs.h <<_ACEOF
5992 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5996 if test "x$with_asterisk" != xcheck ; then
5997 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
5998 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5999 { { $as_echo "$as_me:$LINENO: error: --with-asterisk was given, but test for header-file asterisk/compiler.h failed
6000 See \`config.log' for more details." >&5
6001 $as_echo "$as_me: error: --with-asterisk was given, but test for header-file asterisk/compiler.h failed
6002 See \`config.log' for more details." >&2;}
6003 { (exit 1); exit 1; }; }; }
6014 if test "x$with_asterisk" = "xyes"; then
6015 ast_tone_zone_sound=
6017 { $as_echo "$as_me:$LINENO: checking for struct tone_zone_sound in asterisk/indications.h" >&5
6018 $as_echo_n "checking for struct tone_zone_sound in asterisk/indications.h... " >&6; }
6020 cat >conftest.$ac_ext <<_ACEOF
6024 cat confdefs.h >>conftest.$ac_ext
6025 cat >>conftest.$ac_ext <<_ACEOF
6026 /* end confdefs.h. */
6027 #include <asterisk.h>,
6028 #include <asterisk/linkedlists.h>,
6029 #include <asterisk/indications.h>
6033 struct tone_zone_sound * ts = NULL; (void) ts->data;
6038 rm -f conftest.$ac_objext
6039 if { (ac_try="$ac_compile"
6041 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6042 *) ac_try_echo=$ac_try;;
6044 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6045 $as_echo "$ac_try_echo") >&5
6046 (eval "$ac_compile") 2>conftest.er1
6048 grep -v '^ *+' conftest.er1 >conftest.err
6050 cat conftest.err >&5
6051 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6052 (exit $ac_status); } && {
6053 test -z "$ac_c_werror_flag" ||
6054 test ! -s conftest.err
6055 } && test -s conftest.$ac_objext; then
6058 $as_echo "$as_me: failed program was:" >&5
6059 sed 's/^/| /' conftest.$ac_ext >&5
6064 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6065 { $as_echo "$as_me:$LINENO: result: $tzs_test_result" >&5
6066 $as_echo "$tzs_test_result" >&6; }
6068 if test "x$tzs_test_result" = "xyes"; then
6069 ast_tone_zone_sound=tone_zone_sound
6072 if test "x$ast_tone_zone_sound" = "x"; then
6073 { $as_echo "$as_me:$LINENO: checking for struct ast_tone_zone_sound in asterisk/indications.h" >&5
6074 $as_echo_n "checking for struct ast_tone_zone_sound in asterisk/indications.h... " >&6; }
6076 cat >conftest.$ac_ext <<_ACEOF
6080 cat confdefs.h >>conftest.$ac_ext
6081 cat >>conftest.$ac_ext <<_ACEOF
6082 /* end confdefs.h. */
6083 #include <asterisk.h>,
6084 #include <asterisk/linkedlists.h>,
6085 #include <asterisk/indications.h>
6089 struct ast_tone_zone_sound * ts = NULL; (void) ts->name;
6094 rm -f conftest.$ac_objext
6095 if { (ac_try="$ac_compile"
6097 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6098 *) ac_try_echo=$ac_try;;
6100 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6101 $as_echo "$ac_try_echo") >&5
6102 (eval "$ac_compile") 2>conftest.er1
6104 grep -v '^ *+' conftest.er1 >conftest.err
6106 cat conftest.err >&5
6107 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6108 (exit $ac_status); } && {
6109 test -z "$ac_c_werror_flag" ||
6110 test ! -s conftest.err
6111 } && test -s conftest.$ac_objext; then
6114 $as_echo "$as_me: failed program was:" >&5
6115 sed 's/^/| /' conftest.$ac_ext >&5
6120 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6121 { $as_echo "$as_me:$LINENO: result: $tzs_test_result" >&5
6122 $as_echo "$tzs_test_result" >&6; }
6124 if test "x$tzs_test_result" = "xyes"; then
6125 ast_tone_zone_sound=ast_tone_zone_sound
6129 if test "x$ast_tone_zone_sound" = "x"; then
6130 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
6131 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6132 { { $as_echo "$as_me:$LINENO: error: No ast_tone_zone_sound, confused...
6133 See \`config.log' for more details." >&5
6134 $as_echo "$as_me: error: No ast_tone_zone_sound, confused...
6135 See \`config.log' for more details." >&2;}
6136 { (exit 1); exit 1; }; }; }
6139 AST_CFLAGS="-Dtone_zone_sound=$ast_tone_zone_sound"
6145 if test "x$with_asterisk" == "xyes" ; then
6146 ENABLE_ASTERISK_CHANNEL_DRIVER_TRUE=
6147 ENABLE_ASTERISK_CHANNEL_DRIVER_FALSE='#'
6149 ENABLE_ASTERISK_CHANNEL_DRIVER_TRUE='#'
6150 ENABLE_ASTERISK_CHANNEL_DRIVER_FALSE=
6156 # Check whether --with-ssl was given.
6157 if test "${with_ssl+set}" = set; then
6164 if test "x$with_ssl" != xno; then
6166 for ac_header in openssl/rsa.h
6168 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6169 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6170 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
6171 $as_echo_n "checking for $ac_header... " >&6; }
6172 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6173 $as_echo_n "(cached) " >&6
6175 ac_res=`eval 'as_val=${'$as_ac_Header'}
6176 $as_echo "$as_val"'`
6177 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6178 $as_echo "$ac_res" >&6; }
6180 # Is the header compilable?
6181 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
6182 $as_echo_n "checking $ac_header usability... " >&6; }
6183 cat >conftest.$ac_ext <<_ACEOF
6186 cat confdefs.h >>conftest.$ac_ext
6187 cat >>conftest.$ac_ext <<_ACEOF
6188 /* end confdefs.h. */
6189 $ac_includes_default
6190 #include <$ac_header>
6192 rm -f conftest.$ac_objext
6193 if { (ac_try="$ac_compile"
6195 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6196 *) ac_try_echo=$ac_try;;
6198 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6199 $as_echo "$ac_try_echo") >&5
6200 (eval "$ac_compile") 2>conftest.er1
6202 grep -v '^ *+' conftest.er1 >conftest.err
6204 cat conftest.err >&5
6205 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6206 (exit $ac_status); } && {
6207 test -z "$ac_c_werror_flag" ||
6208 test ! -s conftest.err
6209 } && test -s conftest.$ac_objext; then
6210 ac_header_compiler=yes
6212 $as_echo "$as_me: failed program was:" >&5
6213 sed 's/^/| /' conftest.$ac_ext >&5
6215 ac_header_compiler=no
6218 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6219 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6220 $as_echo "$ac_header_compiler" >&6; }
6222 # Is the header present?
6223 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
6224 $as_echo_n "checking $ac_header presence... " >&6; }
6225 cat >conftest.$ac_ext <<_ACEOF
6228 cat confdefs.h >>conftest.$ac_ext
6229 cat >>conftest.$ac_ext <<_ACEOF
6230 /* end confdefs.h. */
6231 #include <$ac_header>
6233 if { (ac_try="$ac_cpp conftest.$ac_ext"
6235 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6236 *) ac_try_echo=$ac_try;;
6238 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6239 $as_echo "$ac_try_echo") >&5
6240 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6242 grep -v '^ *+' conftest.er1 >conftest.err
6244 cat conftest.err >&5
6245 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6246 (exit $ac_status); } >/dev/null && {
6247 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6248 test ! -s conftest.err
6250 ac_header_preproc=yes
6252 $as_echo "$as_me: failed program was:" >&5
6253 sed 's/^/| /' conftest.$ac_ext >&5
6255 ac_header_preproc=no
6258 rm -f conftest.err conftest.$ac_ext
6259 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6260 $as_echo "$ac_header_preproc" >&6; }
6262 # So? What about this header?
6263 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6265 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6266 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6267 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6268 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6269 ac_header_preproc=yes
6272 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6273 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6274 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6275 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6276 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6277 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6278 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6279 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6280 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6281 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6282 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6283 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6285 ## ----------------------------------- ##
6286 ## Report this to andreas@eversberg.eu ##
6287 ## ----------------------------------- ##
6289 ) | sed "s/^/$as_me: WARNING: /" >&2
6292 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
6293 $as_echo_n "checking for $ac_header... " >&6; }
6294 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6295 $as_echo_n "(cached) " >&6
6297 eval "$as_ac_Header=\$ac_header_preproc"
6299 ac_res=`eval 'as_val=${'$as_ac_Header'}
6300 $as_echo "$as_val"'`
6301 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6302 $as_echo "$ac_res" >&6; }
6305 as_val=`eval 'as_val=${'$as_ac_Header'}
6306 $as_echo "$as_val"'`
6307 if test "x$as_val" = x""yes; then
6308 cat >>confdefs.h <<_ACEOF
6309 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6316 { $as_echo "$as_me:$LINENO: checking for main in -lcrypto" >&5
6317 $as_echo_n "checking for main in -lcrypto... " >&6; }
6318 if test "${ac_cv_lib_crypto_main+set}" = set; then
6319 $as_echo_n "(cached) " >&6
6321 ac_check_lib_save_LIBS=$LIBS
6322 LIBS="-lcrypto -lcrypto
6324 cat >conftest.$ac_ext <<_ACEOF
6327 cat confdefs.h >>conftest.$ac_ext
6328 cat >>conftest.$ac_ext <<_ACEOF
6329 /* end confdefs.h. */
6340 rm -f conftest.$ac_objext conftest$ac_exeext
6341 if { (ac_try="$ac_link"
6343 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6344 *) ac_try_echo=$ac_try;;
6346 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6347 $as_echo "$ac_try_echo") >&5
6348 (eval "$ac_link") 2>conftest.er1
6350 grep -v '^ *+' conftest.er1 >conftest.err
6352 cat conftest.err >&5
6353 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6354 (exit $ac_status); } && {
6355 test -z "$ac_c_werror_flag" ||
6356 test ! -s conftest.err
6357 } && test -s conftest$ac_exeext && {
6358 test "$cross_compiling" = yes ||
6359 $as_test_x conftest$ac_exeext
6361 ac_cv_lib_crypto_main=yes
6363 $as_echo "$as_me: failed program was:" >&5
6364 sed 's/^/| /' conftest.$ac_ext >&5
6366 ac_cv_lib_crypto_main=no
6369 rm -rf conftest.dSYM
6370 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6371 conftest$ac_exeext conftest.$ac_ext
6372 LIBS=$ac_check_lib_save_LIBS
6374 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_main" >&5
6375 $as_echo "$ac_cv_lib_crypto_main" >&6; }
6376 if test "x$ac_cv_lib_crypto_main" = x""yes; then
6377 LIBCRYPTO="-lcrypto"
6380 cat >>confdefs.h <<\_ACEOF
6381 #define HAVE_LIBCRYPTO 1
6386 if test "x$with_ssl" != xcheck ; then
6387 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
6388 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6389 { { $as_echo "$as_me:$LINENO: error: --with-ssl was given, but test for libcrypto failed
6390 See \`config.log' for more details." >&5
6391 $as_echo "$as_me: error: --with-ssl was given, but test for libcrypto failed
6392 See \`config.log' for more details." >&2;}
6393 { (exit 1); exit 1; }; }; }
6405 # Check whether --with-gsm-bs was given.
6406 if test "${with_gsm_bs+set}" = set; then
6407 withval=$with_gsm_bs;
6413 if test "x$with_gsm_bs" != xno; then
6414 { $as_echo "$as_me:$LINENO: checking for openbsc/include/openbsc/gsm_data.h" >&5
6415 $as_echo_n "checking for openbsc/include/openbsc/gsm_data.h... " >&6; }
6416 if test "${ac_cv_file_openbsc_include_openbsc_gsm_data_h+set}" = set; then
6417 $as_echo_n "(cached) " >&6
6419 test "$cross_compiling" = yes &&
6420 { { $as_echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
6421 $as_echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
6422 { (exit 1); exit 1; }; }
6423 if test -r "openbsc/include/openbsc/gsm_data.h"; then
6424 ac_cv_file_openbsc_include_openbsc_gsm_data_h=yes
6426 ac_cv_file_openbsc_include_openbsc_gsm_data_h=no
6429 { $as_echo "$as_me:$LINENO: result: $ac_cv_file_openbsc_include_openbsc_gsm_data_h" >&5
6430 $as_echo "$ac_cv_file_openbsc_include_openbsc_gsm_data_h" >&6; }
6431 if test "x$ac_cv_file_openbsc_include_openbsc_gsm_data_h" = x""yes; then
6434 if test "x$with_gsm_bs" != xcheck ; then
6435 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
6436 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6437 { { $as_echo "$as_me:$LINENO: error: --with-gsm-bs was given, but openbsc/include/openbsc/gsm_data.h was not found! Pleas link OpenBSC and libosmocore source directory to LCR source directory: ln -s path_to_openbsc/openbsc/ openbsc ; ln -s patch_to_libosmocore libosmocore
6438 See \`config.log' for more details." >&5
6439 $as_echo "$as_me: error: --with-gsm-bs was given, but openbsc/include/openbsc/gsm_data.h was not found! Pleas link OpenBSC and libosmocore source directory to LCR source directory: ln -s path_to_openbsc/openbsc/ openbsc ; ln -s patch_to_libosmocore libosmocore
6440 See \`config.log' for more details." >&2;}
6441 { (exit 1); exit 1; }; }; }
6452 if test "x$with_gsm_bs" == "xyes" ; then
6454 ENABLE_GSM_BS_FALSE='#'
6456 ENABLE_GSM_BS_TRUE='#'
6457 ENABLE_GSM_BS_FALSE=
6463 # Check whether --with-gsm-ms was given.
6464 if test "${with_gsm_ms+set}" = set; then
6465 withval=$with_gsm_ms;
6471 if test "x$with_gsm_ms" != xno; then
6472 { $as_echo "$as_me:$LINENO: checking for layer23/include/osmocom/osmocom_data.h" >&5
6473 $as_echo_n "checking for layer23/include/osmocom/osmocom_data.h... " >&6; }
6474 if test "${ac_cv_file_layer23_include_osmocom_osmocom_data_h+set}" = set; then
6475 $as_echo_n "(cached) " >&6
6477 test "$cross_compiling" = yes &&
6478 { { $as_echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
6479 $as_echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
6480 { (exit 1); exit 1; }; }
6481 if test -r "layer23/include/osmocom/osmocom_data.h"; then
6482 ac_cv_file_layer23_include_osmocom_osmocom_data_h=yes
6484 ac_cv_file_layer23_include_osmocom_osmocom_data_h=no
6487 { $as_echo "$as_me:$LINENO: result: $ac_cv_file_layer23_include_osmocom_osmocom_data_h" >&5
6488 $as_echo "$ac_cv_file_layer23_include_osmocom_osmocom_data_h" >&6; }
6489 if test "x$ac_cv_file_layer23_include_osmocom_osmocom_data_h" = x""yes; then
6492 if test "x$with_gsm_ms" != xcheck ; then
6493 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
6494 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6495 { { $as_echo "$as_me:$LINENO: error: --with-gsm-ms was given, but osmocom-bb/include/osmocom/osmocom_data.h was not found! Pleas 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
6496 See \`config.log' for more details." >&5
6497 $as_echo "$as_me: error: --with-gsm-ms was given, but osmocom-bb/include/osmocom/osmocom_data.h was not found! Pleas 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
6498 See \`config.log' for more details." >&2;}
6499 { (exit 1); exit 1; }; }; }
6510 if test "x$with_gsm_ms" == "xyes" ; then
6512 ENABLE_GSM_MS_FALSE='#'
6514 ENABLE_GSM_MS_TRUE='#'
6515 ENABLE_GSM_MS_FALSE=
6521 if test "x$with_gsm_bs" == "xyes" -o "x$with_gsm_ms" == "xyes"; then
6523 ENABLE_GSM_FALSE='#'
6532 # Check whether --with-ss5 was given.
6533 if test "${with_ss5+set}" = set; then
6542 if test "x$with_ss5" == "xyes" ; then
6544 ENABLE_SS5_FALSE='#'
6551 # Checks for libraries.
6553 { $as_echo "$as_me:$LINENO: checking for main in -lm" >&5
6554 $as_echo_n "checking for main in -lm... " >&6; }
6555 if test "${ac_cv_lib_m_main+set}" = set; then
6556 $as_echo_n "(cached) " >&6
6558 ac_check_lib_save_LIBS=$LIBS
6560 cat >conftest.$ac_ext <<_ACEOF
6563 cat confdefs.h >>conftest.$ac_ext
6564 cat >>conftest.$ac_ext <<_ACEOF
6565 /* end confdefs.h. */
6576 rm -f conftest.$ac_objext conftest$ac_exeext
6577 if { (ac_try="$ac_link"
6579 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6580 *) ac_try_echo=$ac_try;;
6582 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6583 $as_echo "$ac_try_echo") >&5
6584 (eval "$ac_link") 2>conftest.er1
6586 grep -v '^ *+' conftest.er1 >conftest.err
6588 cat conftest.err >&5
6589 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6590 (exit $ac_status); } && {
6591 test -z "$ac_c_werror_flag" ||
6592 test ! -s conftest.err
6593 } && test -s conftest$ac_exeext && {
6594 test "$cross_compiling" = yes ||
6595 $as_test_x conftest$ac_exeext
6597 ac_cv_lib_m_main=yes
6599 $as_echo "$as_me: failed program was:" >&5
6600 sed 's/^/| /' conftest.$ac_ext >&5
6605 rm -rf conftest.dSYM
6606 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6607 conftest$ac_exeext conftest.$ac_ext
6608 LIBS=$ac_check_lib_save_LIBS
6610 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_m_main" >&5
6611 $as_echo "$ac_cv_lib_m_main" >&6; }
6612 if test "x$ac_cv_lib_m_main" = x""yes; then
6613 cat >>confdefs.h <<_ACEOF
6622 { $as_echo "$as_me:$LINENO: checking for main in -lncurses" >&5
6623 $as_echo_n "checking for main in -lncurses... " >&6; }
6624 if test "${ac_cv_lib_ncurses_main+set}" = set; then
6625 $as_echo_n "(cached) " >&6
6627 ac_check_lib_save_LIBS=$LIBS
6628 LIBS="-lncurses $LIBS"
6629 cat >conftest.$ac_ext <<_ACEOF
6632 cat confdefs.h >>conftest.$ac_ext
6633 cat >>conftest.$ac_ext <<_ACEOF
6634 /* end confdefs.h. */
6645 rm -f conftest.$ac_objext conftest$ac_exeext
6646 if { (ac_try="$ac_link"
6648 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6649 *) ac_try_echo=$ac_try;;
6651 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6652 $as_echo "$ac_try_echo") >&5
6653 (eval "$ac_link") 2>conftest.er1
6655 grep -v '^ *+' conftest.er1 >conftest.err
6657 cat conftest.err >&5
6658 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6659 (exit $ac_status); } && {
6660 test -z "$ac_c_werror_flag" ||
6661 test ! -s conftest.err
6662 } && test -s conftest$ac_exeext && {
6663 test "$cross_compiling" = yes ||
6664 $as_test_x conftest$ac_exeext
6666 ac_cv_lib_ncurses_main=yes
6668 $as_echo "$as_me: failed program was:" >&5
6669 sed 's/^/| /' conftest.$ac_ext >&5
6671 ac_cv_lib_ncurses_main=no
6674 rm -rf conftest.dSYM
6675 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6676 conftest$ac_exeext conftest.$ac_ext
6677 LIBS=$ac_check_lib_save_LIBS
6679 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_main" >&5
6680 $as_echo "$ac_cv_lib_ncurses_main" >&6; }
6681 if test "x$ac_cv_lib_ncurses_main" = x""yes; then
6682 cat >>confdefs.h <<_ACEOF
6683 #define HAVE_LIBNCURSES 1
6686 LIBS="-lncurses $LIBS"
6691 { $as_echo "$as_me:$LINENO: checking for main in -lpthread" >&5
6692 $as_echo_n "checking for main in -lpthread... " >&6; }
6693 if test "${ac_cv_lib_pthread_main+set}" = set; then
6694 $as_echo_n "(cached) " >&6
6696 ac_check_lib_save_LIBS=$LIBS
6697 LIBS="-lpthread $LIBS"
6698 cat >conftest.$ac_ext <<_ACEOF
6701 cat confdefs.h >>conftest.$ac_ext
6702 cat >>conftest.$ac_ext <<_ACEOF
6703 /* end confdefs.h. */
6714 rm -f conftest.$ac_objext conftest$ac_exeext
6715 if { (ac_try="$ac_link"
6717 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6718 *) ac_try_echo=$ac_try;;
6720 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6721 $as_echo "$ac_try_echo") >&5
6722 (eval "$ac_link") 2>conftest.er1
6724 grep -v '^ *+' conftest.er1 >conftest.err
6726 cat conftest.err >&5
6727 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6728 (exit $ac_status); } && {
6729 test -z "$ac_c_werror_flag" ||
6730 test ! -s conftest.err
6731 } && test -s conftest$ac_exeext && {
6732 test "$cross_compiling" = yes ||
6733 $as_test_x conftest$ac_exeext
6735 ac_cv_lib_pthread_main=yes
6737 $as_echo "$as_me: failed program was:" >&5
6738 sed 's/^/| /' conftest.$ac_ext >&5
6740 ac_cv_lib_pthread_main=no
6743 rm -rf conftest.dSYM
6744 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6745 conftest$ac_exeext conftest.$ac_ext
6746 LIBS=$ac_check_lib_save_LIBS
6748 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_main" >&5
6749 $as_echo "$ac_cv_lib_pthread_main" >&6; }
6750 if test "x$ac_cv_lib_pthread_main" = x""yes; then
6751 cat >>confdefs.h <<_ACEOF
6752 #define HAVE_LIBPTHREAD 1
6755 LIBS="-lpthread $LIBS"
6760 # Checks for header files.
6767 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
6768 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
6769 { $as_echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
6770 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
6771 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6772 $as_echo_n "(cached) " >&6
6774 cat >conftest.$ac_ext <<_ACEOF
6777 cat confdefs.h >>conftest.$ac_ext
6778 cat >>conftest.$ac_ext <<_ACEOF
6779 /* end confdefs.h. */
6780 #include <sys/types.h>
6792 rm -f conftest.$ac_objext
6793 if { (ac_try="$ac_compile"
6795 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6796 *) ac_try_echo=$ac_try;;
6798 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6799 $as_echo "$ac_try_echo") >&5
6800 (eval "$ac_compile") 2>conftest.er1
6802 grep -v '^ *+' conftest.er1 >conftest.err
6804 cat conftest.err >&5
6805 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6806 (exit $ac_status); } && {
6807 test -z "$ac_c_werror_flag" ||
6808 test ! -s conftest.err
6809 } && test -s conftest.$ac_objext; then
6810 eval "$as_ac_Header=yes"
6812 $as_echo "$as_me: failed program was:" >&5
6813 sed 's/^/| /' conftest.$ac_ext >&5
6815 eval "$as_ac_Header=no"
6818 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6820 ac_res=`eval 'as_val=${'$as_ac_Header'}
6821 $as_echo "$as_val"'`
6822 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6823 $as_echo "$ac_res" >&6; }
6824 as_val=`eval 'as_val=${'$as_ac_Header'}
6825 $as_echo "$as_val"'`
6826 if test "x$as_val" = x""yes; then
6827 cat >>confdefs.h <<_ACEOF
6828 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
6831 ac_header_dirent=$ac_hdr; break
6835 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
6836 if test $ac_header_dirent = dirent.h; then
6837 { $as_echo "$as_me:$LINENO: checking for library containing opendir" >&5
6838 $as_echo_n "checking for library containing opendir... " >&6; }
6839 if test "${ac_cv_search_opendir+set}" = set; then
6840 $as_echo_n "(cached) " >&6
6842 ac_func_search_save_LIBS=$LIBS
6843 cat >conftest.$ac_ext <<_ACEOF
6846 cat confdefs.h >>conftest.$ac_ext
6847 cat >>conftest.$ac_ext <<_ACEOF
6848 /* end confdefs.h. */
6850 /* Override any GCC internal prototype to avoid an error.
6851 Use char because int might match the return type of a GCC
6852 builtin and then its argument prototype would still apply. */
6865 for ac_lib in '' dir; do
6866 if test -z "$ac_lib"; then
6867 ac_res="none required"
6870 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6872 rm -f conftest.$ac_objext conftest$ac_exeext
6873 if { (ac_try="$ac_link"
6875 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6876 *) ac_try_echo=$ac_try;;
6878 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6879 $as_echo "$ac_try_echo") >&5
6880 (eval "$ac_link") 2>conftest.er1
6882 grep -v '^ *+' conftest.er1 >conftest.err
6884 cat conftest.err >&5
6885 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6886 (exit $ac_status); } && {
6887 test -z "$ac_c_werror_flag" ||
6888 test ! -s conftest.err
6889 } && test -s conftest$ac_exeext && {
6890 test "$cross_compiling" = yes ||
6891 $as_test_x conftest$ac_exeext
6893 ac_cv_search_opendir=$ac_res
6895 $as_echo "$as_me: failed program was:" >&5
6896 sed 's/^/| /' conftest.$ac_ext >&5
6901 rm -rf conftest.dSYM
6902 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6904 if test "${ac_cv_search_opendir+set}" = set; then
6908 if test "${ac_cv_search_opendir+set}" = set; then
6911 ac_cv_search_opendir=no
6914 LIBS=$ac_func_search_save_LIBS
6916 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
6917 $as_echo "$ac_cv_search_opendir" >&6; }
6918 ac_res=$ac_cv_search_opendir
6919 if test "$ac_res" != no; then
6920 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
6925 { $as_echo "$as_me:$LINENO: checking for library containing opendir" >&5
6926 $as_echo_n "checking for library containing opendir... " >&6; }
6927 if test "${ac_cv_search_opendir+set}" = set; then
6928 $as_echo_n "(cached) " >&6
6930 ac_func_search_save_LIBS=$LIBS
6931 cat >conftest.$ac_ext <<_ACEOF
6934 cat confdefs.h >>conftest.$ac_ext
6935 cat >>conftest.$ac_ext <<_ACEOF
6936 /* end confdefs.h. */
6938 /* Override any GCC internal prototype to avoid an error.
6939 Use char because int might match the return type of a GCC
6940 builtin and then its argument prototype would still apply. */
6953 for ac_lib in '' x; do
6954 if test -z "$ac_lib"; then
6955 ac_res="none required"
6958 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6960 rm -f conftest.$ac_objext conftest$ac_exeext
6961 if { (ac_try="$ac_link"
6963 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6964 *) ac_try_echo=$ac_try;;
6966 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6967 $as_echo "$ac_try_echo") >&5
6968 (eval "$ac_link") 2>conftest.er1
6970 grep -v '^ *+' conftest.er1 >conftest.err
6972 cat conftest.err >&5
6973 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6974 (exit $ac_status); } && {
6975 test -z "$ac_c_werror_flag" ||
6976 test ! -s conftest.err
6977 } && test -s conftest$ac_exeext && {
6978 test "$cross_compiling" = yes ||
6979 $as_test_x conftest$ac_exeext
6981 ac_cv_search_opendir=$ac_res
6983 $as_echo "$as_me: failed program was:" >&5
6984 sed 's/^/| /' conftest.$ac_ext >&5
6989 rm -rf conftest.dSYM
6990 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6992 if test "${ac_cv_search_opendir+set}" = set; then
6996 if test "${ac_cv_search_opendir+set}" = set; then
6999 ac_cv_search_opendir=no
7002 LIBS=$ac_func_search_save_LIBS
7004 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
7005 $as_echo "$ac_cv_search_opendir" >&6; }
7006 ac_res=$ac_cv_search_opendir
7007 if test "$ac_res" != no; then
7008 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7014 { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
7015 $as_echo_n "checking for ANSI C header files... " >&6; }
7016 if test "${ac_cv_header_stdc+set}" = set; then
7017 $as_echo_n "(cached) " >&6
7019 cat >conftest.$ac_ext <<_ACEOF
7022 cat confdefs.h >>conftest.$ac_ext
7023 cat >>conftest.$ac_ext <<_ACEOF
7024 /* end confdefs.h. */
7038 rm -f conftest.$ac_objext
7039 if { (ac_try="$ac_compile"
7041 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7042 *) ac_try_echo=$ac_try;;
7044 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7045 $as_echo "$ac_try_echo") >&5
7046 (eval "$ac_compile") 2>conftest.er1
7048 grep -v '^ *+' conftest.er1 >conftest.err
7050 cat conftest.err >&5
7051 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7052 (exit $ac_status); } && {
7053 test -z "$ac_c_werror_flag" ||
7054 test ! -s conftest.err
7055 } && test -s conftest.$ac_objext; then
7056 ac_cv_header_stdc=yes
7058 $as_echo "$as_me: failed program was:" >&5
7059 sed 's/^/| /' conftest.$ac_ext >&5
7061 ac_cv_header_stdc=no
7064 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7066 if test $ac_cv_header_stdc = yes; then
7067 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7068 cat >conftest.$ac_ext <<_ACEOF
7071 cat confdefs.h >>conftest.$ac_ext
7072 cat >>conftest.$ac_ext <<_ACEOF
7073 /* end confdefs.h. */
7077 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7078 $EGREP "memchr" >/dev/null 2>&1; then
7081 ac_cv_header_stdc=no
7087 if test $ac_cv_header_stdc = yes; then
7088 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7089 cat >conftest.$ac_ext <<_ACEOF
7092 cat confdefs.h >>conftest.$ac_ext
7093 cat >>conftest.$ac_ext <<_ACEOF
7094 /* end confdefs.h. */
7098 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7099 $EGREP "free" >/dev/null 2>&1; then
7102 ac_cv_header_stdc=no
7108 if test $ac_cv_header_stdc = yes; then
7109 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7110 if test "$cross_compiling" = yes; then
7113 cat >conftest.$ac_ext <<_ACEOF
7116 cat confdefs.h >>conftest.$ac_ext
7117 cat >>conftest.$ac_ext <<_ACEOF
7118 /* end confdefs.h. */
7121 #if ((' ' & 0x0FF) == 0x020)
7122 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7123 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7125 # define ISLOWER(c) \
7126 (('a' <= (c) && (c) <= 'i') \
7127 || ('j' <= (c) && (c) <= 'r') \
7128 || ('s' <= (c) && (c) <= 'z'))
7129 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7132 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7137 for (i = 0; i < 256; i++)
7138 if (XOR (islower (i), ISLOWER (i))
7139 || toupper (i) != TOUPPER (i))
7144 rm -f conftest$ac_exeext
7145 if { (ac_try="$ac_link"
7147 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7148 *) ac_try_echo=$ac_try;;
7150 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7151 $as_echo "$ac_try_echo") >&5
7152 (eval "$ac_link") 2>&5
7154 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7155 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7156 { (case "(($ac_try" in
7157 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7158 *) ac_try_echo=$ac_try;;
7160 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7161 $as_echo "$ac_try_echo") >&5
7162 (eval "$ac_try") 2>&5
7164 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7165 (exit $ac_status); }; }; then
7168 $as_echo "$as_me: program exited with status $ac_status" >&5
7169 $as_echo "$as_me: failed program was:" >&5
7170 sed 's/^/| /' conftest.$ac_ext >&5
7173 ac_cv_header_stdc=no
7175 rm -rf conftest.dSYM
7176 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7182 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
7183 $as_echo "$ac_cv_header_stdc" >&6; }
7184 if test $ac_cv_header_stdc = yes; then
7186 cat >>confdefs.h <<\_ACEOF
7187 #define STDC_HEADERS 1
7192 { $as_echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
7193 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
7194 if test "${ac_cv_header_sys_wait_h+set}" = set; then
7195 $as_echo_n "(cached) " >&6
7197 cat >conftest.$ac_ext <<_ACEOF
7200 cat confdefs.h >>conftest.$ac_ext
7201 cat >>conftest.$ac_ext <<_ACEOF
7202 /* end confdefs.h. */
7203 #include <sys/types.h>
7204 #include <sys/wait.h>
7206 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
7209 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
7217 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
7222 rm -f conftest.$ac_objext
7223 if { (ac_try="$ac_compile"
7225 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7226 *) ac_try_echo=$ac_try;;
7228 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7229 $as_echo "$ac_try_echo") >&5
7230 (eval "$ac_compile") 2>conftest.er1
7232 grep -v '^ *+' conftest.er1 >conftest.err
7234 cat conftest.err >&5
7235 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7236 (exit $ac_status); } && {
7237 test -z "$ac_c_werror_flag" ||
7238 test ! -s conftest.err
7239 } && test -s conftest.$ac_objext; then
7240 ac_cv_header_sys_wait_h=yes
7242 $as_echo "$as_me: failed program was:" >&5
7243 sed 's/^/| /' conftest.$ac_ext >&5
7245 ac_cv_header_sys_wait_h=no
7248 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7250 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
7251 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
7252 if test $ac_cv_header_sys_wait_h = yes; then
7254 cat >>confdefs.h <<\_ACEOF
7255 #define HAVE_SYS_WAIT_H 1
7273 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
7275 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7276 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7277 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
7278 $as_echo_n "checking for $ac_header... " >&6; }
7279 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7280 $as_echo_n "(cached) " >&6
7282 ac_res=`eval 'as_val=${'$as_ac_Header'}
7283 $as_echo "$as_val"'`
7284 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7285 $as_echo "$ac_res" >&6; }
7287 # Is the header compilable?
7288 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
7289 $as_echo_n "checking $ac_header usability... " >&6; }
7290 cat >conftest.$ac_ext <<_ACEOF
7293 cat confdefs.h >>conftest.$ac_ext
7294 cat >>conftest.$ac_ext <<_ACEOF
7295 /* end confdefs.h. */
7296 $ac_includes_default
7297 #include <$ac_header>
7299 rm -f conftest.$ac_objext
7300 if { (ac_try="$ac_compile"
7302 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7303 *) ac_try_echo=$ac_try;;
7305 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7306 $as_echo "$ac_try_echo") >&5
7307 (eval "$ac_compile") 2>conftest.er1
7309 grep -v '^ *+' conftest.er1 >conftest.err
7311 cat conftest.err >&5
7312 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7313 (exit $ac_status); } && {
7314 test -z "$ac_c_werror_flag" ||
7315 test ! -s conftest.err
7316 } && test -s conftest.$ac_objext; then
7317 ac_header_compiler=yes
7319 $as_echo "$as_me: failed program was:" >&5
7320 sed 's/^/| /' conftest.$ac_ext >&5
7322 ac_header_compiler=no
7325 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7326 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7327 $as_echo "$ac_header_compiler" >&6; }
7329 # Is the header present?
7330 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
7331 $as_echo_n "checking $ac_header presence... " >&6; }
7332 cat >conftest.$ac_ext <<_ACEOF
7335 cat confdefs.h >>conftest.$ac_ext
7336 cat >>conftest.$ac_ext <<_ACEOF
7337 /* end confdefs.h. */
7338 #include <$ac_header>
7340 if { (ac_try="$ac_cpp conftest.$ac_ext"
7342 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7343 *) ac_try_echo=$ac_try;;
7345 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7346 $as_echo "$ac_try_echo") >&5
7347 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7349 grep -v '^ *+' conftest.er1 >conftest.err
7351 cat conftest.err >&5
7352 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7353 (exit $ac_status); } >/dev/null && {
7354 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7355 test ! -s conftest.err
7357 ac_header_preproc=yes
7359 $as_echo "$as_me: failed program was:" >&5
7360 sed 's/^/| /' conftest.$ac_ext >&5
7362 ac_header_preproc=no
7365 rm -f conftest.err conftest.$ac_ext
7366 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7367 $as_echo "$ac_header_preproc" >&6; }
7369 # So? What about this header?
7370 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7372 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7373 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7374 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7375 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7376 ac_header_preproc=yes
7379 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7380 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7381 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7382 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7383 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7384 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7385 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7386 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7387 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7388 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7389 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7390 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7392 ## ----------------------------------- ##
7393 ## Report this to andreas@eversberg.eu ##
7394 ## ----------------------------------- ##
7396 ) | sed "s/^/$as_me: WARNING: /" >&2
7399 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
7400 $as_echo_n "checking for $ac_header... " >&6; }
7401 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7402 $as_echo_n "(cached) " >&6
7404 eval "$as_ac_Header=\$ac_header_preproc"
7406 ac_res=`eval 'as_val=${'$as_ac_Header'}
7407 $as_echo "$as_val"'`
7408 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7409 $as_echo "$ac_res" >&6; }
7412 as_val=`eval 'as_val=${'$as_ac_Header'}
7413 $as_echo "$as_val"'`
7414 if test "x$as_val" = x""yes; then
7415 cat >>confdefs.h <<_ACEOF
7416 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7424 # Checks for typedefs, structures, and compiler characteristics.
7425 { $as_echo "$as_me:$LINENO: checking for stdbool.h that conforms to C99" >&5
7426 $as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
7427 if test "${ac_cv_header_stdbool_h+set}" = set; then
7428 $as_echo_n "(cached) " >&6
7430 cat >conftest.$ac_ext <<_ACEOF
7433 cat confdefs.h >>conftest.$ac_ext
7434 cat >>conftest.$ac_ext <<_ACEOF
7435 /* end confdefs.h. */
7437 #include <stdbool.h>
7439 "error: bool is not defined"
7442 "error: false is not defined"
7445 "error: false is not 0"
7448 "error: true is not defined"
7451 "error: true is not 1"
7453 #ifndef __bool_true_false_are_defined
7454 "error: __bool_true_false_are_defined is not defined"
7457 struct s { _Bool s: 1; _Bool t; } s;
7459 char a[true == 1 ? 1 : -1];
7460 char b[false == 0 ? 1 : -1];
7461 char c[__bool_true_false_are_defined == 1 ? 1 : -1];
7462 char d[(bool) 0.5 == true ? 1 : -1];
7464 char f[(_Bool) 0.0 == false ? 1 : -1];
7466 char h[sizeof (_Bool)];
7468 enum { j = false, k = true, l = false * true, m = true * 256 };
7469 /* The following fails for
7470 HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
7472 char o[sizeof n == m * sizeof n[0] ? 1 : -1];
7473 char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
7474 # if defined __xlc__ || defined __GNUC__
7475 /* Catch a bug in IBM AIX xlc compiler version 6.0.0.0
7476 reported by James Lemley on 2005-10-05; see
7477 http://lists.gnu.org/archive/html/bug-coreutils/2005-10/msg00086.html
7478 This test is not quite right, since xlc is allowed to
7479 reject this program, as the initializer for xlcbug is
7480 not one of the forms that C requires support for.
7481 However, doing the test right would require a runtime
7482 test, and that would make cross-compilation harder.
7483 Let us hope that IBM fixes the xlc bug, and also adds
7484 support for this kind of constant expression. In the
7485 meantime, this test will reject xlc, which is OK, since
7486 our stdbool.h substitute should suffice. We also test
7487 this with GCC, where it should work, to detect more
7488 quickly whether someone messes up the test in the
7490 char digs[] = "0123456789";
7491 int xlcbug = 1 / (&(digs + 5)[-2 + (bool) 1] == &digs[4] ? 1 : -1);
7493 /* Catch a bug in an HP-UX C compiler. See
7494 http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
7495 http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
7506 /* Refer to every declared value, to avoid compiler optimizations. */
7507 return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
7508 + !m + !n + !o + !p + !q + !pq);
7514 rm -f conftest.$ac_objext
7515 if { (ac_try="$ac_compile"
7517 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7518 *) ac_try_echo=$ac_try;;
7520 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7521 $as_echo "$ac_try_echo") >&5
7522 (eval "$ac_compile") 2>conftest.er1
7524 grep -v '^ *+' conftest.er1 >conftest.err
7526 cat conftest.err >&5
7527 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7528 (exit $ac_status); } && {
7529 test -z "$ac_c_werror_flag" ||
7530 test ! -s conftest.err
7531 } && test -s conftest.$ac_objext; then
7532 ac_cv_header_stdbool_h=yes
7534 $as_echo "$as_me: failed program was:" >&5
7535 sed 's/^/| /' conftest.$ac_ext >&5
7537 ac_cv_header_stdbool_h=no
7540 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7542 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdbool_h" >&5
7543 $as_echo "$ac_cv_header_stdbool_h" >&6; }
7544 { $as_echo "$as_me:$LINENO: checking for _Bool" >&5
7545 $as_echo_n "checking for _Bool... " >&6; }
7546 if test "${ac_cv_type__Bool+set}" = set; then
7547 $as_echo_n "(cached) " >&6
7550 cat >conftest.$ac_ext <<_ACEOF
7553 cat confdefs.h >>conftest.$ac_ext
7554 cat >>conftest.$ac_ext <<_ACEOF
7555 /* end confdefs.h. */
7556 $ac_includes_default
7566 rm -f conftest.$ac_objext
7567 if { (ac_try="$ac_compile"
7569 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7570 *) ac_try_echo=$ac_try;;
7572 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7573 $as_echo "$ac_try_echo") >&5
7574 (eval "$ac_compile") 2>conftest.er1
7576 grep -v '^ *+' conftest.er1 >conftest.err
7578 cat conftest.err >&5
7579 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7580 (exit $ac_status); } && {
7581 test -z "$ac_c_werror_flag" ||
7582 test ! -s conftest.err
7583 } && test -s conftest.$ac_objext; then
7584 cat >conftest.$ac_ext <<_ACEOF
7587 cat confdefs.h >>conftest.$ac_ext
7588 cat >>conftest.$ac_ext <<_ACEOF
7589 /* end confdefs.h. */
7590 $ac_includes_default
7594 if (sizeof ((_Bool)))
7600 rm -f conftest.$ac_objext
7601 if { (ac_try="$ac_compile"
7603 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7604 *) ac_try_echo=$ac_try;;
7606 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7607 $as_echo "$ac_try_echo") >&5
7608 (eval "$ac_compile") 2>conftest.er1
7610 grep -v '^ *+' conftest.er1 >conftest.err
7612 cat conftest.err >&5
7613 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7614 (exit $ac_status); } && {
7615 test -z "$ac_c_werror_flag" ||
7616 test ! -s conftest.err
7617 } && test -s conftest.$ac_objext; then
7620 $as_echo "$as_me: failed program was:" >&5
7621 sed 's/^/| /' conftest.$ac_ext >&5
7623 ac_cv_type__Bool=yes
7626 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7628 $as_echo "$as_me: failed program was:" >&5
7629 sed 's/^/| /' conftest.$ac_ext >&5
7634 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7636 { $as_echo "$as_me:$LINENO: result: $ac_cv_type__Bool" >&5
7637 $as_echo "$ac_cv_type__Bool" >&6; }
7638 if test "x$ac_cv_type__Bool" = x""yes; then
7640 cat >>confdefs.h <<_ACEOF
7641 #define HAVE__BOOL 1
7647 if test $ac_cv_header_stdbool_h = yes; then
7649 cat >>confdefs.h <<\_ACEOF
7650 #define HAVE_STDBOOL_H 1
7655 { $as_echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
7656 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
7657 if test "${ac_cv_c_const+set}" = set; then
7658 $as_echo_n "(cached) " >&6
7660 cat >conftest.$ac_ext <<_ACEOF
7663 cat confdefs.h >>conftest.$ac_ext
7664 cat >>conftest.$ac_ext <<_ACEOF
7665 /* end confdefs.h. */
7670 /* FIXME: Include the comments suggested by Paul. */
7672 /* Ultrix mips cc rejects this. */
7673 typedef int charset[2];
7675 /* SunOS 4.1.1 cc rejects this. */
7676 char const *const *pcpcc;
7678 /* NEC SVR4.0.2 mips cc rejects this. */
7679 struct point {int x, y;};
7680 static struct point const zero = {0,0};
7681 /* AIX XL C 1.02.0.0 rejects this.
7682 It does not let you subtract one const X* pointer from another in
7683 an arm of an if-expression whose if-part is not a constant
7685 const char *g = "string";
7686 pcpcc = &g + (g ? g-g : 0);
7687 /* HPUX 7.0 cc rejects these. */
7689 ppc = (char**) pcpcc;
7690 pcpcc = (char const *const *) ppc;
7691 { /* SCO 3.2v4 cc rejects this. */
7693 char const *s = 0 ? (char *) 0 : (char const *) 0;
7698 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
7700 const int *foo = &x[0];
7703 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
7704 typedef const int *iptr;
7708 { /* AIX XL C 1.02.0.0 rejects this saying
7709 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
7710 struct s { int j; const int *ap[3]; };
7711 struct s *b; b->j = 5;
7713 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
7717 return !cs[0] && !zero.x;
7724 rm -f conftest.$ac_objext
7725 if { (ac_try="$ac_compile"
7727 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7728 *) ac_try_echo=$ac_try;;
7730 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7731 $as_echo "$ac_try_echo") >&5
7732 (eval "$ac_compile") 2>conftest.er1
7734 grep -v '^ *+' conftest.er1 >conftest.err
7736 cat conftest.err >&5
7737 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7738 (exit $ac_status); } && {
7739 test -z "$ac_c_werror_flag" ||
7740 test ! -s conftest.err
7741 } && test -s conftest.$ac_objext; then
7744 $as_echo "$as_me: failed program was:" >&5
7745 sed 's/^/| /' conftest.$ac_ext >&5
7750 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7752 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
7753 $as_echo "$ac_cv_c_const" >&6; }
7754 if test $ac_cv_c_const = no; then
7756 cat >>confdefs.h <<\_ACEOF
7762 { $as_echo "$as_me:$LINENO: checking for inline" >&5
7763 $as_echo_n "checking for inline... " >&6; }
7764 if test "${ac_cv_c_inline+set}" = set; then
7765 $as_echo_n "(cached) " >&6
7768 for ac_kw in inline __inline__ __inline; do
7769 cat >conftest.$ac_ext <<_ACEOF
7772 cat confdefs.h >>conftest.$ac_ext
7773 cat >>conftest.$ac_ext <<_ACEOF
7774 /* end confdefs.h. */
7777 static $ac_kw foo_t static_foo () {return 0; }
7778 $ac_kw foo_t foo () {return 0; }
7782 rm -f conftest.$ac_objext
7783 if { (ac_try="$ac_compile"
7785 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7786 *) ac_try_echo=$ac_try;;
7788 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7789 $as_echo "$ac_try_echo") >&5
7790 (eval "$ac_compile") 2>conftest.er1
7792 grep -v '^ *+' conftest.er1 >conftest.err
7794 cat conftest.err >&5
7795 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7796 (exit $ac_status); } && {
7797 test -z "$ac_c_werror_flag" ||
7798 test ! -s conftest.err
7799 } && test -s conftest.$ac_objext; then
7800 ac_cv_c_inline=$ac_kw
7802 $as_echo "$as_me: failed program was:" >&5
7803 sed 's/^/| /' conftest.$ac_ext >&5
7808 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7809 test "$ac_cv_c_inline" != no && break
7813 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
7814 $as_echo "$ac_cv_c_inline" >&6; }
7817 case $ac_cv_c_inline in
7820 case $ac_cv_c_inline in
7822 *) ac_val=$ac_cv_c_inline;;
7824 cat >>confdefs.h <<_ACEOF
7826 #define inline $ac_val
7832 { $as_echo "$as_me:$LINENO: checking for pid_t" >&5
7833 $as_echo_n "checking for pid_t... " >&6; }
7834 if test "${ac_cv_type_pid_t+set}" = set; then
7835 $as_echo_n "(cached) " >&6
7838 cat >conftest.$ac_ext <<_ACEOF
7841 cat confdefs.h >>conftest.$ac_ext
7842 cat >>conftest.$ac_ext <<_ACEOF
7843 /* end confdefs.h. */
7844 $ac_includes_default
7854 rm -f conftest.$ac_objext
7855 if { (ac_try="$ac_compile"
7857 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7858 *) ac_try_echo=$ac_try;;
7860 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7861 $as_echo "$ac_try_echo") >&5
7862 (eval "$ac_compile") 2>conftest.er1
7864 grep -v '^ *+' conftest.er1 >conftest.err
7866 cat conftest.err >&5
7867 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7868 (exit $ac_status); } && {
7869 test -z "$ac_c_werror_flag" ||
7870 test ! -s conftest.err
7871 } && test -s conftest.$ac_objext; then
7872 cat >conftest.$ac_ext <<_ACEOF
7875 cat confdefs.h >>conftest.$ac_ext
7876 cat >>conftest.$ac_ext <<_ACEOF
7877 /* end confdefs.h. */
7878 $ac_includes_default
7882 if (sizeof ((pid_t)))
7888 rm -f conftest.$ac_objext
7889 if { (ac_try="$ac_compile"
7891 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7892 *) ac_try_echo=$ac_try;;
7894 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7895 $as_echo "$ac_try_echo") >&5
7896 (eval "$ac_compile") 2>conftest.er1
7898 grep -v '^ *+' conftest.er1 >conftest.err
7900 cat conftest.err >&5
7901 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7902 (exit $ac_status); } && {
7903 test -z "$ac_c_werror_flag" ||
7904 test ! -s conftest.err
7905 } && test -s conftest.$ac_objext; then
7908 $as_echo "$as_me: failed program was:" >&5
7909 sed 's/^/| /' conftest.$ac_ext >&5
7911 ac_cv_type_pid_t=yes
7914 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7916 $as_echo "$as_me: failed program was:" >&5
7917 sed 's/^/| /' conftest.$ac_ext >&5
7922 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7924 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
7925 $as_echo "$ac_cv_type_pid_t" >&6; }
7926 if test "x$ac_cv_type_pid_t" = x""yes; then
7930 cat >>confdefs.h <<_ACEOF
7936 { $as_echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
7937 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
7938 if test "${ac_cv_header_time+set}" = set; then
7939 $as_echo_n "(cached) " >&6
7941 cat >conftest.$ac_ext <<_ACEOF
7944 cat confdefs.h >>conftest.$ac_ext
7945 cat >>conftest.$ac_ext <<_ACEOF
7946 /* end confdefs.h. */
7947 #include <sys/types.h>
7948 #include <sys/time.h>
7954 if ((struct tm *) 0)
7960 rm -f conftest.$ac_objext
7961 if { (ac_try="$ac_compile"
7963 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7964 *) ac_try_echo=$ac_try;;
7966 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7967 $as_echo "$ac_try_echo") >&5
7968 (eval "$ac_compile") 2>conftest.er1
7970 grep -v '^ *+' conftest.er1 >conftest.err
7972 cat conftest.err >&5
7973 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7974 (exit $ac_status); } && {
7975 test -z "$ac_c_werror_flag" ||
7976 test ! -s conftest.err
7977 } && test -s conftest.$ac_objext; then
7978 ac_cv_header_time=yes
7980 $as_echo "$as_me: failed program was:" >&5
7981 sed 's/^/| /' conftest.$ac_ext >&5
7983 ac_cv_header_time=no
7986 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7988 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
7989 $as_echo "$ac_cv_header_time" >&6; }
7990 if test $ac_cv_header_time = yes; then
7992 cat >>confdefs.h <<\_ACEOF
7993 #define TIME_WITH_SYS_TIME 1
7998 { $as_echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
7999 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
8000 if test "${ac_cv_struct_tm+set}" = set; then
8001 $as_echo_n "(cached) " >&6
8003 cat >conftest.$ac_ext <<_ACEOF
8006 cat confdefs.h >>conftest.$ac_ext
8007 cat >>conftest.$ac_ext <<_ACEOF
8008 /* end confdefs.h. */
8009 #include <sys/types.h>
8016 int *p = &tm.tm_sec;
8022 rm -f conftest.$ac_objext
8023 if { (ac_try="$ac_compile"
8025 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8026 *) ac_try_echo=$ac_try;;
8028 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8029 $as_echo "$ac_try_echo") >&5
8030 (eval "$ac_compile") 2>conftest.er1
8032 grep -v '^ *+' conftest.er1 >conftest.err
8034 cat conftest.err >&5
8035 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8036 (exit $ac_status); } && {
8037 test -z "$ac_c_werror_flag" ||
8038 test ! -s conftest.err
8039 } && test -s conftest.$ac_objext; then
8040 ac_cv_struct_tm=time.h
8042 $as_echo "$as_me: failed program was:" >&5
8043 sed 's/^/| /' conftest.$ac_ext >&5
8045 ac_cv_struct_tm=sys/time.h
8048 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8050 { $as_echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
8051 $as_echo "$ac_cv_struct_tm" >&6; }
8052 if test $ac_cv_struct_tm = sys/time.h; then
8054 cat >>confdefs.h <<\_ACEOF
8055 #define TM_IN_SYS_TIME 1
8061 # Checks for library functions.
8063 for ac_header in vfork.h
8065 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8066 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8067 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
8068 $as_echo_n "checking for $ac_header... " >&6; }
8069 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8070 $as_echo_n "(cached) " >&6
8072 ac_res=`eval 'as_val=${'$as_ac_Header'}
8073 $as_echo "$as_val"'`
8074 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
8075 $as_echo "$ac_res" >&6; }
8077 # Is the header compilable?
8078 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
8079 $as_echo_n "checking $ac_header usability... " >&6; }
8080 cat >conftest.$ac_ext <<_ACEOF
8083 cat confdefs.h >>conftest.$ac_ext
8084 cat >>conftest.$ac_ext <<_ACEOF
8085 /* end confdefs.h. */
8086 $ac_includes_default
8087 #include <$ac_header>
8089 rm -f conftest.$ac_objext
8090 if { (ac_try="$ac_compile"
8092 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8093 *) ac_try_echo=$ac_try;;
8095 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8096 $as_echo "$ac_try_echo") >&5
8097 (eval "$ac_compile") 2>conftest.er1
8099 grep -v '^ *+' conftest.er1 >conftest.err
8101 cat conftest.err >&5
8102 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8103 (exit $ac_status); } && {
8104 test -z "$ac_c_werror_flag" ||
8105 test ! -s conftest.err
8106 } && test -s conftest.$ac_objext; then
8107 ac_header_compiler=yes
8109 $as_echo "$as_me: failed program was:" >&5
8110 sed 's/^/| /' conftest.$ac_ext >&5
8112 ac_header_compiler=no
8115 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8116 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8117 $as_echo "$ac_header_compiler" >&6; }
8119 # Is the header present?
8120 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
8121 $as_echo_n "checking $ac_header presence... " >&6; }
8122 cat >conftest.$ac_ext <<_ACEOF
8125 cat confdefs.h >>conftest.$ac_ext
8126 cat >>conftest.$ac_ext <<_ACEOF
8127 /* end confdefs.h. */
8128 #include <$ac_header>
8130 if { (ac_try="$ac_cpp conftest.$ac_ext"
8132 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8133 *) ac_try_echo=$ac_try;;
8135 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8136 $as_echo "$ac_try_echo") >&5
8137 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8139 grep -v '^ *+' conftest.er1 >conftest.err
8141 cat conftest.err >&5
8142 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8143 (exit $ac_status); } >/dev/null && {
8144 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
8145 test ! -s conftest.err
8147 ac_header_preproc=yes
8149 $as_echo "$as_me: failed program was:" >&5
8150 sed 's/^/| /' conftest.$ac_ext >&5
8152 ac_header_preproc=no
8155 rm -f conftest.err conftest.$ac_ext
8156 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8157 $as_echo "$ac_header_preproc" >&6; }
8159 # So? What about this header?
8160 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8162 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8163 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8164 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8165 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8166 ac_header_preproc=yes
8169 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8170 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8171 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8172 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8173 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8174 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8175 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8176 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8177 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8178 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8179 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8180 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8182 ## ----------------------------------- ##
8183 ## Report this to andreas@eversberg.eu ##
8184 ## ----------------------------------- ##
8186 ) | sed "s/^/$as_me: WARNING: /" >&2
8189 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
8190 $as_echo_n "checking for $ac_header... " >&6; }
8191 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8192 $as_echo_n "(cached) " >&6
8194 eval "$as_ac_Header=\$ac_header_preproc"
8196 ac_res=`eval 'as_val=${'$as_ac_Header'}
8197 $as_echo "$as_val"'`
8198 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
8199 $as_echo "$ac_res" >&6; }
8202 as_val=`eval 'as_val=${'$as_ac_Header'}
8203 $as_echo "$as_val"'`
8204 if test "x$as_val" = x""yes; then
8205 cat >>confdefs.h <<_ACEOF
8206 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8215 for ac_func in fork vfork
8217 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
8218 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
8219 $as_echo_n "checking for $ac_func... " >&6; }
8220 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
8221 $as_echo_n "(cached) " >&6
8223 cat >conftest.$ac_ext <<_ACEOF
8226 cat confdefs.h >>conftest.$ac_ext
8227 cat >>conftest.$ac_ext <<_ACEOF
8228 /* end confdefs.h. */
8229 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8230 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8231 #define $ac_func innocuous_$ac_func
8233 /* System header to define __stub macros and hopefully few prototypes,
8234 which can conflict with char $ac_func (); below.
8235 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8236 <limits.h> exists even on freestanding compilers. */
8239 # include <limits.h>
8241 # include <assert.h>
8246 /* Override any GCC internal prototype to avoid an error.
8247 Use char because int might match the return type of a GCC
8248 builtin and then its argument prototype would still apply. */
8253 /* The GNU C library defines this for functions which it implements
8254 to always fail with ENOSYS. Some functions are actually named
8255 something starting with __ and the normal name is an alias. */
8256 #if defined __stub_$ac_func || defined __stub___$ac_func
8268 rm -f conftest.$ac_objext conftest$ac_exeext
8269 if { (ac_try="$ac_link"
8271 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8272 *) ac_try_echo=$ac_try;;
8274 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8275 $as_echo "$ac_try_echo") >&5
8276 (eval "$ac_link") 2>conftest.er1
8278 grep -v '^ *+' conftest.er1 >conftest.err
8280 cat conftest.err >&5
8281 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8282 (exit $ac_status); } && {
8283 test -z "$ac_c_werror_flag" ||
8284 test ! -s conftest.err
8285 } && test -s conftest$ac_exeext && {
8286 test "$cross_compiling" = yes ||
8287 $as_test_x conftest$ac_exeext
8289 eval "$as_ac_var=yes"
8291 $as_echo "$as_me: failed program was:" >&5
8292 sed 's/^/| /' conftest.$ac_ext >&5
8294 eval "$as_ac_var=no"
8297 rm -rf conftest.dSYM
8298 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8299 conftest$ac_exeext conftest.$ac_ext
8301 ac_res=`eval 'as_val=${'$as_ac_var'}
8302 $as_echo "$as_val"'`
8303 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
8304 $as_echo "$ac_res" >&6; }
8305 as_val=`eval 'as_val=${'$as_ac_var'}
8306 $as_echo "$as_val"'`
8307 if test "x$as_val" = x""yes; then
8308 cat >>confdefs.h <<_ACEOF
8309 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
8315 if test "x$ac_cv_func_fork" = xyes; then
8316 { $as_echo "$as_me:$LINENO: checking for working fork" >&5
8317 $as_echo_n "checking for working fork... " >&6; }
8318 if test "${ac_cv_func_fork_works+set}" = set; then
8319 $as_echo_n "(cached) " >&6
8321 if test "$cross_compiling" = yes; then
8322 ac_cv_func_fork_works=cross
8324 cat >conftest.$ac_ext <<_ACEOF
8327 cat confdefs.h >>conftest.$ac_ext
8328 cat >>conftest.$ac_ext <<_ACEOF
8329 /* end confdefs.h. */
8330 $ac_includes_default
8335 /* By Ruediger Kuhlmann. */
8342 rm -f conftest$ac_exeext
8343 if { (ac_try="$ac_link"
8345 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8346 *) ac_try_echo=$ac_try;;
8348 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8349 $as_echo "$ac_try_echo") >&5
8350 (eval "$ac_link") 2>&5
8352 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8353 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8354 { (case "(($ac_try" in
8355 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8356 *) ac_try_echo=$ac_try;;
8358 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8359 $as_echo "$ac_try_echo") >&5
8360 (eval "$ac_try") 2>&5
8362 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8363 (exit $ac_status); }; }; then
8364 ac_cv_func_fork_works=yes
8366 $as_echo "$as_me: program exited with status $ac_status" >&5
8367 $as_echo "$as_me: failed program was:" >&5
8368 sed 's/^/| /' conftest.$ac_ext >&5
8371 ac_cv_func_fork_works=no
8373 rm -rf conftest.dSYM
8374 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8379 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
8380 $as_echo "$ac_cv_func_fork_works" >&6; }
8383 ac_cv_func_fork_works=$ac_cv_func_fork
8385 if test "x$ac_cv_func_fork_works" = xcross; then
8387 *-*-amigaos* | *-*-msdosdjgpp*)
8388 # Override, as these systems have only a dummy fork() stub
8389 ac_cv_func_fork_works=no
8392 ac_cv_func_fork_works=yes
8395 { $as_echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
8396 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
8398 ac_cv_func_vfork_works=$ac_cv_func_vfork
8399 if test "x$ac_cv_func_vfork" = xyes; then
8400 { $as_echo "$as_me:$LINENO: checking for working vfork" >&5
8401 $as_echo_n "checking for working vfork... " >&6; }
8402 if test "${ac_cv_func_vfork_works+set}" = set; then
8403 $as_echo_n "(cached) " >&6
8405 if test "$cross_compiling" = yes; then
8406 ac_cv_func_vfork_works=cross
8408 cat >conftest.$ac_ext <<_ACEOF
8411 cat confdefs.h >>conftest.$ac_ext
8412 cat >>conftest.$ac_ext <<_ACEOF
8413 /* end confdefs.h. */
8414 /* Thanks to Paul Eggert for this test. */
8415 $ac_includes_default
8416 #include <sys/wait.h>
8420 /* On some sparc systems, changes by the child to local and incoming
8421 argument registers are propagated back to the parent. The compiler
8422 is told about this with #include <vfork.h>, but some compilers
8423 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
8424 static variable whose address is put into a register that is
8425 clobbered by the vfork. */
8428 sparc_address_test (int arg)
8430 sparc_address_test (arg) int arg;
8451 pid_t parent = getpid ();
8454 sparc_address_test (0);
8459 /* Here is another test for sparc vfork register problems. This
8460 test uses lots of local variables, at least as many local
8461 variables as main has allocated so far including compiler
8462 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
8463 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
8464 reuse the register of parent for one of the local variables,
8465 since it will think that parent can't possibly be used any more
8466 in this routine. Assigning to the local variable will thus
8467 munge parent in the parent process. */
8469 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
8470 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
8471 /* Convince the compiler that p..p7 are live; otherwise, it might
8472 use the same hardware register for all 8 local variables. */
8473 if (p != p1 || p != p2 || p != p3 || p != p4
8474 || p != p5 || p != p6 || p != p7)
8477 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
8478 from child file descriptors. If the child closes a descriptor
8479 before it execs or exits, this munges the parent's descriptor
8480 as well. Test for this by closing stdout in the child. */
8481 _exit(close(fileno(stdout)) != 0);
8486 while (wait(&status) != child)
8489 /* Was there some problem with vforking? */
8492 /* Did the child fail? (This shouldn't happen.) */
8495 /* Did the vfork/compiler bug occur? */
8496 || parent != getpid()
8498 /* Did the file descriptor bug occur? */
8499 || fstat(fileno(stdout), &st) != 0
8504 rm -f conftest$ac_exeext
8505 if { (ac_try="$ac_link"
8507 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8508 *) ac_try_echo=$ac_try;;
8510 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8511 $as_echo "$ac_try_echo") >&5
8512 (eval "$ac_link") 2>&5
8514 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8515 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8516 { (case "(($ac_try" in
8517 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8518 *) ac_try_echo=$ac_try;;
8520 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8521 $as_echo "$ac_try_echo") >&5
8522 (eval "$ac_try") 2>&5
8524 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8525 (exit $ac_status); }; }; then
8526 ac_cv_func_vfork_works=yes
8528 $as_echo "$as_me: program exited with status $ac_status" >&5
8529 $as_echo "$as_me: failed program was:" >&5
8530 sed 's/^/| /' conftest.$ac_ext >&5
8533 ac_cv_func_vfork_works=no
8535 rm -rf conftest.dSYM
8536 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8541 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
8542 $as_echo "$ac_cv_func_vfork_works" >&6; }
8545 if test "x$ac_cv_func_fork_works" = xcross; then
8546 ac_cv_func_vfork_works=$ac_cv_func_vfork
8547 { $as_echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
8548 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
8551 if test "x$ac_cv_func_vfork_works" = xyes; then
8553 cat >>confdefs.h <<\_ACEOF
8554 #define HAVE_WORKING_VFORK 1
8559 cat >>confdefs.h <<\_ACEOF
8564 if test "x$ac_cv_func_fork_works" = xyes; then
8566 cat >>confdefs.h <<\_ACEOF
8567 #define HAVE_WORKING_FORK 1
8572 if test $ac_cv_c_compiler_gnu = yes; then
8573 { $as_echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
8574 $as_echo_n "checking whether $CC needs -traditional... " >&6; }
8575 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
8576 $as_echo_n "(cached) " >&6
8578 ac_pattern="Autoconf.*'x'"
8579 cat >conftest.$ac_ext <<_ACEOF
8582 cat confdefs.h >>conftest.$ac_ext
8583 cat >>conftest.$ac_ext <<_ACEOF
8584 /* end confdefs.h. */
8588 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8589 $EGREP "$ac_pattern" >/dev/null 2>&1; then
8590 ac_cv_prog_gcc_traditional=yes
8592 ac_cv_prog_gcc_traditional=no
8597 if test $ac_cv_prog_gcc_traditional = no; then
8598 cat >conftest.$ac_ext <<_ACEOF
8601 cat confdefs.h >>conftest.$ac_ext
8602 cat >>conftest.$ac_ext <<_ACEOF
8603 /* end confdefs.h. */
8607 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8608 $EGREP "$ac_pattern" >/dev/null 2>&1; then
8609 ac_cv_prog_gcc_traditional=yes
8615 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
8616 $as_echo "$ac_cv_prog_gcc_traditional" >&6; }
8617 if test $ac_cv_prog_gcc_traditional = yes; then
8618 CC="$CC -traditional"
8622 { $as_echo "$as_me:$LINENO: checking whether lstat dereferences a symlink specified with a trailing slash" >&5
8623 $as_echo_n "checking whether lstat dereferences a symlink specified with a trailing slash... " >&6; }
8624 if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then
8625 $as_echo_n "(cached) " >&6
8627 rm -f conftest.sym conftest.file
8629 if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
8630 if test "$cross_compiling" = yes; then
8631 ac_cv_func_lstat_dereferences_slashed_symlink=no
8633 cat >conftest.$ac_ext <<_ACEOF
8636 cat confdefs.h >>conftest.$ac_ext
8637 cat >>conftest.$ac_ext <<_ACEOF
8638 /* end confdefs.h. */
8639 $ac_includes_default
8644 /* Linux will dereference the symlink and fail.
8645 That is better in the sense that it means we will not
8646 have to compile and use the lstat wrapper. */
8647 return lstat ("conftest.sym/", &sbuf) == 0;
8652 rm -f conftest$ac_exeext
8653 if { (ac_try="$ac_link"
8655 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8656 *) ac_try_echo=$ac_try;;
8658 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8659 $as_echo "$ac_try_echo") >&5
8660 (eval "$ac_link") 2>&5
8662 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8663 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8664 { (case "(($ac_try" in
8665 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8666 *) ac_try_echo=$ac_try;;
8668 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8669 $as_echo "$ac_try_echo") >&5
8670 (eval "$ac_try") 2>&5
8672 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8673 (exit $ac_status); }; }; then
8674 ac_cv_func_lstat_dereferences_slashed_symlink=yes
8676 $as_echo "$as_me: program exited with status $ac_status" >&5
8677 $as_echo "$as_me: failed program was:" >&5
8678 sed 's/^/| /' conftest.$ac_ext >&5
8681 ac_cv_func_lstat_dereferences_slashed_symlink=no
8683 rm -rf conftest.dSYM
8684 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8689 # If the `ln -s' command failed, then we probably don't even
8690 # have an lstat function.
8691 ac_cv_func_lstat_dereferences_slashed_symlink=no
8693 rm -f conftest.sym conftest.file
8696 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
8697 $as_echo "$ac_cv_func_lstat_dereferences_slashed_symlink" >&6; }
8699 test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
8701 cat >>confdefs.h <<_ACEOF
8702 #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
8706 if test $ac_cv_func_lstat_dereferences_slashed_symlink = no; then
8707 case " $LIBOBJS " in
8708 *" lstat.$ac_objext "* ) ;;
8709 *) LIBOBJS="$LIBOBJS lstat.$ac_objext"
8715 { $as_echo "$as_me:$LINENO: checking whether lstat accepts an empty string" >&5
8716 $as_echo_n "checking whether lstat accepts an empty string... " >&6; }
8717 if test "${ac_cv_func_lstat_empty_string_bug+set}" = set; then
8718 $as_echo_n "(cached) " >&6
8720 if test "$cross_compiling" = yes; then
8721 ac_cv_func_lstat_empty_string_bug=yes
8723 cat >conftest.$ac_ext <<_ACEOF
8726 cat confdefs.h >>conftest.$ac_ext
8727 cat >>conftest.$ac_ext <<_ACEOF
8728 /* end confdefs.h. */
8729 $ac_includes_default
8734 return lstat ("", &sbuf) == 0;
8739 rm -f conftest$ac_exeext
8740 if { (ac_try="$ac_link"
8742 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8743 *) ac_try_echo=$ac_try;;
8745 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8746 $as_echo "$ac_try_echo") >&5
8747 (eval "$ac_link") 2>&5
8749 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8750 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8751 { (case "(($ac_try" in
8752 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8753 *) ac_try_echo=$ac_try;;
8755 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8756 $as_echo "$ac_try_echo") >&5
8757 (eval "$ac_try") 2>&5
8759 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8760 (exit $ac_status); }; }; then
8761 ac_cv_func_lstat_empty_string_bug=no
8763 $as_echo "$as_me: program exited with status $ac_status" >&5
8764 $as_echo "$as_me: failed program was:" >&5
8765 sed 's/^/| /' conftest.$ac_ext >&5
8768 ac_cv_func_lstat_empty_string_bug=yes
8770 rm -rf conftest.dSYM
8771 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8776 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_lstat_empty_string_bug" >&5
8777 $as_echo "$ac_cv_func_lstat_empty_string_bug" >&6; }
8778 if test $ac_cv_func_lstat_empty_string_bug = yes; then
8779 case " $LIBOBJS " in
8780 *" lstat.$ac_objext "* ) ;;
8781 *) LIBOBJS="$LIBOBJS lstat.$ac_objext"
8786 cat >>confdefs.h <<_ACEOF
8787 #define HAVE_LSTAT_EMPTY_STRING_BUG 1
8792 { $as_echo "$as_me:$LINENO: checking whether lstat dereferences a symlink specified with a trailing slash" >&5
8793 $as_echo_n "checking whether lstat dereferences a symlink specified with a trailing slash... " >&6; }
8794 if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then
8795 $as_echo_n "(cached) " >&6
8797 rm -f conftest.sym conftest.file
8799 if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
8800 if test "$cross_compiling" = yes; then
8801 ac_cv_func_lstat_dereferences_slashed_symlink=no
8803 cat >conftest.$ac_ext <<_ACEOF
8806 cat confdefs.h >>conftest.$ac_ext
8807 cat >>conftest.$ac_ext <<_ACEOF
8808 /* end confdefs.h. */
8809 $ac_includes_default
8814 /* Linux will dereference the symlink and fail.
8815 That is better in the sense that it means we will not
8816 have to compile and use the lstat wrapper. */
8817 return lstat ("conftest.sym/", &sbuf) == 0;
8822 rm -f conftest$ac_exeext
8823 if { (ac_try="$ac_link"
8825 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8826 *) ac_try_echo=$ac_try;;
8828 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8829 $as_echo "$ac_try_echo") >&5
8830 (eval "$ac_link") 2>&5
8832 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8833 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8834 { (case "(($ac_try" in
8835 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8836 *) ac_try_echo=$ac_try;;
8838 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8839 $as_echo "$ac_try_echo") >&5
8840 (eval "$ac_try") 2>&5
8842 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8843 (exit $ac_status); }; }; then
8844 ac_cv_func_lstat_dereferences_slashed_symlink=yes
8846 $as_echo "$as_me: program exited with status $ac_status" >&5
8847 $as_echo "$as_me: failed program was:" >&5
8848 sed 's/^/| /' conftest.$ac_ext >&5
8851 ac_cv_func_lstat_dereferences_slashed_symlink=no
8853 rm -rf conftest.dSYM
8854 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8859 # If the `ln -s' command failed, then we probably don't even
8860 # have an lstat function.
8861 ac_cv_func_lstat_dereferences_slashed_symlink=no
8863 rm -f conftest.sym conftest.file
8866 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
8867 $as_echo "$ac_cv_func_lstat_dereferences_slashed_symlink" >&6; }
8869 test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
8871 cat >>confdefs.h <<_ACEOF
8872 #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
8876 if test $ac_cv_func_lstat_dereferences_slashed_symlink = no; then
8877 case " $LIBOBJS " in
8878 *" lstat.$ac_objext "* ) ;;
8879 *) LIBOBJS="$LIBOBJS lstat.$ac_objext"
8886 for ac_header in stdlib.h
8888 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8889 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8890 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
8891 $as_echo_n "checking for $ac_header... " >&6; }
8892 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8893 $as_echo_n "(cached) " >&6
8895 ac_res=`eval 'as_val=${'$as_ac_Header'}
8896 $as_echo "$as_val"'`
8897 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
8898 $as_echo "$ac_res" >&6; }
8900 # Is the header compilable?
8901 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
8902 $as_echo_n "checking $ac_header usability... " >&6; }
8903 cat >conftest.$ac_ext <<_ACEOF
8906 cat confdefs.h >>conftest.$ac_ext
8907 cat >>conftest.$ac_ext <<_ACEOF
8908 /* end confdefs.h. */
8909 $ac_includes_default
8910 #include <$ac_header>
8912 rm -f conftest.$ac_objext
8913 if { (ac_try="$ac_compile"
8915 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8916 *) ac_try_echo=$ac_try;;
8918 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8919 $as_echo "$ac_try_echo") >&5
8920 (eval "$ac_compile") 2>conftest.er1
8922 grep -v '^ *+' conftest.er1 >conftest.err
8924 cat conftest.err >&5
8925 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8926 (exit $ac_status); } && {
8927 test -z "$ac_c_werror_flag" ||
8928 test ! -s conftest.err
8929 } && test -s conftest.$ac_objext; then
8930 ac_header_compiler=yes
8932 $as_echo "$as_me: failed program was:" >&5
8933 sed 's/^/| /' conftest.$ac_ext >&5
8935 ac_header_compiler=no
8938 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8939 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8940 $as_echo "$ac_header_compiler" >&6; }
8942 # Is the header present?
8943 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
8944 $as_echo_n "checking $ac_header presence... " >&6; }
8945 cat >conftest.$ac_ext <<_ACEOF
8948 cat confdefs.h >>conftest.$ac_ext
8949 cat >>conftest.$ac_ext <<_ACEOF
8950 /* end confdefs.h. */
8951 #include <$ac_header>
8953 if { (ac_try="$ac_cpp conftest.$ac_ext"
8955 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8956 *) ac_try_echo=$ac_try;;
8958 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8959 $as_echo "$ac_try_echo") >&5
8960 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8962 grep -v '^ *+' conftest.er1 >conftest.err
8964 cat conftest.err >&5
8965 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8966 (exit $ac_status); } >/dev/null && {
8967 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
8968 test ! -s conftest.err
8970 ac_header_preproc=yes
8972 $as_echo "$as_me: failed program was:" >&5
8973 sed 's/^/| /' conftest.$ac_ext >&5
8975 ac_header_preproc=no
8978 rm -f conftest.err conftest.$ac_ext
8979 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8980 $as_echo "$ac_header_preproc" >&6; }
8982 # So? What about this header?
8983 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8985 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8986 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8987 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8988 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8989 ac_header_preproc=yes
8992 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8993 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8994 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8995 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8996 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8997 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8998 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8999 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9000 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9001 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9002 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9003 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9005 ## ----------------------------------- ##
9006 ## Report this to andreas@eversberg.eu ##
9007 ## ----------------------------------- ##
9009 ) | sed "s/^/$as_me: WARNING: /" >&2
9012 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
9013 $as_echo_n "checking for $ac_header... " >&6; }
9014 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9015 $as_echo_n "(cached) " >&6
9017 eval "$as_ac_Header=\$ac_header_preproc"
9019 ac_res=`eval 'as_val=${'$as_ac_Header'}
9020 $as_echo "$as_val"'`
9021 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
9022 $as_echo "$ac_res" >&6; }
9025 as_val=`eval 'as_val=${'$as_ac_Header'}
9026 $as_echo "$as_val"'`
9027 if test "x$as_val" = x""yes; then
9028 cat >>confdefs.h <<_ACEOF
9029 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9036 { $as_echo "$as_me:$LINENO: checking for GNU libc compatible malloc" >&5
9037 $as_echo_n "checking for GNU libc compatible malloc... " >&6; }
9038 if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then
9039 $as_echo_n "(cached) " >&6
9041 if test "$cross_compiling" = yes; then
9042 ac_cv_func_malloc_0_nonnull=no
9044 cat >conftest.$ac_ext <<_ACEOF
9047 cat confdefs.h >>conftest.$ac_ext
9048 cat >>conftest.$ac_ext <<_ACEOF
9049 /* end confdefs.h. */
9050 #if defined STDC_HEADERS || defined HAVE_STDLIB_H
9051 # include <stdlib.h>
9059 return ! malloc (0);
9064 rm -f conftest$ac_exeext
9065 if { (ac_try="$ac_link"
9067 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9068 *) ac_try_echo=$ac_try;;
9070 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9071 $as_echo "$ac_try_echo") >&5
9072 (eval "$ac_link") 2>&5
9074 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9075 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9076 { (case "(($ac_try" in
9077 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9078 *) ac_try_echo=$ac_try;;
9080 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9081 $as_echo "$ac_try_echo") >&5
9082 (eval "$ac_try") 2>&5
9084 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9085 (exit $ac_status); }; }; then
9086 ac_cv_func_malloc_0_nonnull=yes
9088 $as_echo "$as_me: program exited with status $ac_status" >&5
9089 $as_echo "$as_me: failed program was:" >&5
9090 sed 's/^/| /' conftest.$ac_ext >&5
9093 ac_cv_func_malloc_0_nonnull=no
9095 rm -rf conftest.dSYM
9096 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9101 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_malloc_0_nonnull" >&5
9102 $as_echo "$ac_cv_func_malloc_0_nonnull" >&6; }
9103 if test $ac_cv_func_malloc_0_nonnull = yes; then
9105 cat >>confdefs.h <<\_ACEOF
9106 #define HAVE_MALLOC 1
9110 cat >>confdefs.h <<\_ACEOF
9111 #define HAVE_MALLOC 0
9114 case " $LIBOBJS " in
9115 *" malloc.$ac_objext "* ) ;;
9116 *) LIBOBJS="$LIBOBJS malloc.$ac_objext"
9121 cat >>confdefs.h <<\_ACEOF
9122 #define malloc rpl_malloc
9129 { $as_echo "$as_me:$LINENO: checking for working memcmp" >&5
9130 $as_echo_n "checking for working memcmp... " >&6; }
9131 if test "${ac_cv_func_memcmp_working+set}" = set; then
9132 $as_echo_n "(cached) " >&6
9134 if test "$cross_compiling" = yes; then
9135 ac_cv_func_memcmp_working=no
9137 cat >conftest.$ac_ext <<_ACEOF
9140 cat confdefs.h >>conftest.$ac_ext
9141 cat >>conftest.$ac_ext <<_ACEOF
9142 /* end confdefs.h. */
9143 $ac_includes_default
9148 /* Some versions of memcmp are not 8-bit clean. */
9149 char c0 = '\100', c1 = '\200', c2 = '\201';
9150 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
9153 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
9154 or more and with at least one buffer not starting on a 4-byte boundary.
9155 William Lewis provided this test program. */
9160 for (i = 0; i < 4; i++)
9164 strcpy (a, "--------01111111");
9165 strcpy (b, "--------10000000");
9166 if (memcmp (a, b, 16) >= 0)
9176 rm -f conftest$ac_exeext
9177 if { (ac_try="$ac_link"
9179 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9180 *) ac_try_echo=$ac_try;;
9182 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9183 $as_echo "$ac_try_echo") >&5
9184 (eval "$ac_link") 2>&5
9186 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9187 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9188 { (case "(($ac_try" in
9189 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9190 *) ac_try_echo=$ac_try;;
9192 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9193 $as_echo "$ac_try_echo") >&5
9194 (eval "$ac_try") 2>&5
9196 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9197 (exit $ac_status); }; }; then
9198 ac_cv_func_memcmp_working=yes
9200 $as_echo "$as_me: program exited with status $ac_status" >&5
9201 $as_echo "$as_me: failed program was:" >&5
9202 sed 's/^/| /' conftest.$ac_ext >&5
9205 ac_cv_func_memcmp_working=no
9207 rm -rf conftest.dSYM
9208 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9213 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
9214 $as_echo "$ac_cv_func_memcmp_working" >&6; }
9215 test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
9216 *" memcmp.$ac_objext "* ) ;;
9217 *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
9222 { $as_echo "$as_me:$LINENO: checking return type of signal handlers" >&5
9223 $as_echo_n "checking return type of signal handlers... " >&6; }
9224 if test "${ac_cv_type_signal+set}" = set; then
9225 $as_echo_n "(cached) " >&6
9227 cat >conftest.$ac_ext <<_ACEOF
9230 cat confdefs.h >>conftest.$ac_ext
9231 cat >>conftest.$ac_ext <<_ACEOF
9232 /* end confdefs.h. */
9233 #include <sys/types.h>
9239 return *(signal (0, 0)) (0) == 1;
9244 rm -f conftest.$ac_objext
9245 if { (ac_try="$ac_compile"
9247 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9248 *) ac_try_echo=$ac_try;;
9250 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9251 $as_echo "$ac_try_echo") >&5
9252 (eval "$ac_compile") 2>conftest.er1
9254 grep -v '^ *+' conftest.er1 >conftest.err
9256 cat conftest.err >&5
9257 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9258 (exit $ac_status); } && {
9259 test -z "$ac_c_werror_flag" ||
9260 test ! -s conftest.err
9261 } && test -s conftest.$ac_objext; then
9262 ac_cv_type_signal=int
9264 $as_echo "$as_me: failed program was:" >&5
9265 sed 's/^/| /' conftest.$ac_ext >&5
9267 ac_cv_type_signal=void
9270 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9272 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
9273 $as_echo "$ac_cv_type_signal" >&6; }
9275 cat >>confdefs.h <<_ACEOF
9276 #define RETSIGTYPE $ac_cv_type_signal
9280 { $as_echo "$as_me:$LINENO: checking for working strnlen" >&5
9281 $as_echo_n "checking for working strnlen... " >&6; }
9282 if test "${ac_cv_func_strnlen_working+set}" = set; then
9283 $as_echo_n "(cached) " >&6
9285 if test "$cross_compiling" = yes; then
9286 ac_cv_func_strnlen_working=no
9288 cat >conftest.$ac_ext <<_ACEOF
9291 cat confdefs.h >>conftest.$ac_ext
9292 cat >>conftest.$ac_ext <<_ACEOF
9293 /* end confdefs.h. */
9294 $ac_includes_default
9300 #define S_LEN (sizeof S - 1)
9302 /* At least one implementation is buggy: that of AIX 4.3 would
9303 give strnlen (S, 1) == 3. */
9306 for (i = 0; i < S_LEN + 1; ++i)
9308 int expected = i <= S_LEN ? i : S_LEN;
9309 if (strnlen (S, i) != expected)
9318 rm -f conftest$ac_exeext
9319 if { (ac_try="$ac_link"
9321 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9322 *) ac_try_echo=$ac_try;;
9324 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9325 $as_echo "$ac_try_echo") >&5
9326 (eval "$ac_link") 2>&5
9328 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9329 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9330 { (case "(($ac_try" in
9331 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9332 *) ac_try_echo=$ac_try;;
9334 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9335 $as_echo "$ac_try_echo") >&5
9336 (eval "$ac_try") 2>&5
9338 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9339 (exit $ac_status); }; }; then
9340 ac_cv_func_strnlen_working=yes
9342 $as_echo "$as_me: program exited with status $ac_status" >&5
9343 $as_echo "$as_me: failed program was:" >&5
9344 sed 's/^/| /' conftest.$ac_ext >&5
9347 ac_cv_func_strnlen_working=no
9349 rm -rf conftest.dSYM
9350 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9355 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_strnlen_working" >&5
9356 $as_echo "$ac_cv_func_strnlen_working" >&6; }
9357 test $ac_cv_func_strnlen_working = no && case " $LIBOBJS " in
9358 *" strnlen.$ac_objext "* ) ;;
9359 *) LIBOBJS="$LIBOBJS strnlen.$ac_objext"
9364 { $as_echo "$as_me:$LINENO: checking for working strtod" >&5
9365 $as_echo_n "checking for working strtod... " >&6; }
9366 if test "${ac_cv_func_strtod+set}" = set; then
9367 $as_echo_n "(cached) " >&6
9369 if test "$cross_compiling" = yes; then
9370 ac_cv_func_strtod=no
9372 cat >conftest.$ac_ext <<_ACEOF
9375 cat confdefs.h >>conftest.$ac_ext
9376 cat >>conftest.$ac_ext <<_ACEOF
9377 /* end confdefs.h. */
9379 $ac_includes_default
9387 /* Some versions of Linux strtod mis-parse strings with leading '+'. */
9388 char *string = " +69";
9391 value = strtod (string, &term);
9392 if (value != 69 || term != (string + 4))
9397 /* Under Solaris 2.4, strtod returns the wrong value for the
9398 terminating character under some conditions. */
9399 char *string = "NaN";
9401 strtod (string, &term);
9402 if (term != string && *(term - 1) == 0)
9409 rm -f conftest$ac_exeext
9410 if { (ac_try="$ac_link"
9412 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9413 *) ac_try_echo=$ac_try;;
9415 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9416 $as_echo "$ac_try_echo") >&5
9417 (eval "$ac_link") 2>&5
9419 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9420 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9421 { (case "(($ac_try" in
9422 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9423 *) ac_try_echo=$ac_try;;
9425 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9426 $as_echo "$ac_try_echo") >&5
9427 (eval "$ac_try") 2>&5
9429 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9430 (exit $ac_status); }; }; then
9431 ac_cv_func_strtod=yes
9433 $as_echo "$as_me: program exited with status $ac_status" >&5
9434 $as_echo "$as_me: failed program was:" >&5
9435 sed 's/^/| /' conftest.$ac_ext >&5
9438 ac_cv_func_strtod=no
9440 rm -rf conftest.dSYM
9441 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9446 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_strtod" >&5
9447 $as_echo "$ac_cv_func_strtod" >&6; }
9448 if test $ac_cv_func_strtod = no; then
9449 case " $LIBOBJS " in
9450 *" strtod.$ac_objext "* ) ;;
9451 *) LIBOBJS="$LIBOBJS strtod.$ac_objext"
9455 { $as_echo "$as_me:$LINENO: checking for pow" >&5
9456 $as_echo_n "checking for pow... " >&6; }
9457 if test "${ac_cv_func_pow+set}" = set; then
9458 $as_echo_n "(cached) " >&6
9460 cat >conftest.$ac_ext <<_ACEOF
9463 cat confdefs.h >>conftest.$ac_ext
9464 cat >>conftest.$ac_ext <<_ACEOF
9465 /* end confdefs.h. */
9466 /* Define pow to an innocuous variant, in case <limits.h> declares pow.
9467 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9468 #define pow innocuous_pow
9470 /* System header to define __stub macros and hopefully few prototypes,
9471 which can conflict with char pow (); below.
9472 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9473 <limits.h> exists even on freestanding compilers. */
9476 # include <limits.h>
9478 # include <assert.h>
9483 /* Override any GCC internal prototype to avoid an error.
9484 Use char because int might match the return type of a GCC
9485 builtin and then its argument prototype would still apply. */
9490 /* The GNU C library defines this for functions which it implements
9491 to always fail with ENOSYS. Some functions are actually named
9492 something starting with __ and the normal name is an alias. */
9493 #if defined __stub_pow || defined __stub___pow
9505 rm -f conftest.$ac_objext conftest$ac_exeext
9506 if { (ac_try="$ac_link"
9508 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9509 *) ac_try_echo=$ac_try;;
9511 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9512 $as_echo "$ac_try_echo") >&5
9513 (eval "$ac_link") 2>conftest.er1
9515 grep -v '^ *+' conftest.er1 >conftest.err
9517 cat conftest.err >&5
9518 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9519 (exit $ac_status); } && {
9520 test -z "$ac_c_werror_flag" ||
9521 test ! -s conftest.err
9522 } && test -s conftest$ac_exeext && {
9523 test "$cross_compiling" = yes ||
9524 $as_test_x conftest$ac_exeext
9528 $as_echo "$as_me: failed program was:" >&5
9529 sed 's/^/| /' conftest.$ac_ext >&5
9534 rm -rf conftest.dSYM
9535 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9536 conftest$ac_exeext conftest.$ac_ext
9538 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_pow" >&5
9539 $as_echo "$ac_cv_func_pow" >&6; }
9541 if test $ac_cv_func_pow = no; then
9542 { $as_echo "$as_me:$LINENO: checking for pow in -lm" >&5
9543 $as_echo_n "checking for pow in -lm... " >&6; }
9544 if test "${ac_cv_lib_m_pow+set}" = set; then
9545 $as_echo_n "(cached) " >&6
9547 ac_check_lib_save_LIBS=$LIBS
9549 cat >conftest.$ac_ext <<_ACEOF
9552 cat confdefs.h >>conftest.$ac_ext
9553 cat >>conftest.$ac_ext <<_ACEOF
9554 /* end confdefs.h. */
9556 /* Override any GCC internal prototype to avoid an error.
9557 Use char because int might match the return type of a GCC
9558 builtin and then its argument prototype would still apply. */
9571 rm -f conftest.$ac_objext conftest$ac_exeext
9572 if { (ac_try="$ac_link"
9574 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9575 *) ac_try_echo=$ac_try;;
9577 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9578 $as_echo "$ac_try_echo") >&5
9579 (eval "$ac_link") 2>conftest.er1
9581 grep -v '^ *+' conftest.er1 >conftest.err
9583 cat conftest.err >&5
9584 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9585 (exit $ac_status); } && {
9586 test -z "$ac_c_werror_flag" ||
9587 test ! -s conftest.err
9588 } && test -s conftest$ac_exeext && {
9589 test "$cross_compiling" = yes ||
9590 $as_test_x conftest$ac_exeext
9594 $as_echo "$as_me: failed program was:" >&5
9595 sed 's/^/| /' conftest.$ac_ext >&5
9600 rm -rf conftest.dSYM
9601 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9602 conftest$ac_exeext conftest.$ac_ext
9603 LIBS=$ac_check_lib_save_LIBS
9605 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_m_pow" >&5
9606 $as_echo "$ac_cv_lib_m_pow" >&6; }
9607 if test "x$ac_cv_lib_m_pow" = x""yes; then
9610 { $as_echo "$as_me:$LINENO: WARNING: cannot find library containing definition of pow" >&5
9611 $as_echo "$as_me: WARNING: cannot find library containing definition of pow" >&2;}
9619 for ac_func in vprintf
9621 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9622 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
9623 $as_echo_n "checking for $ac_func... " >&6; }
9624 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
9625 $as_echo_n "(cached) " >&6
9627 cat >conftest.$ac_ext <<_ACEOF
9630 cat confdefs.h >>conftest.$ac_ext
9631 cat >>conftest.$ac_ext <<_ACEOF
9632 /* end confdefs.h. */
9633 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9634 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9635 #define $ac_func innocuous_$ac_func
9637 /* System header to define __stub macros and hopefully few prototypes,
9638 which can conflict with char $ac_func (); below.
9639 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9640 <limits.h> exists even on freestanding compilers. */
9643 # include <limits.h>
9645 # include <assert.h>
9650 /* Override any GCC internal prototype to avoid an error.
9651 Use char because int might match the return type of a GCC
9652 builtin and then its argument prototype would still apply. */
9657 /* The GNU C library defines this for functions which it implements
9658 to always fail with ENOSYS. Some functions are actually named
9659 something starting with __ and the normal name is an alias. */
9660 #if defined __stub_$ac_func || defined __stub___$ac_func
9672 rm -f conftest.$ac_objext conftest$ac_exeext
9673 if { (ac_try="$ac_link"
9675 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9676 *) ac_try_echo=$ac_try;;
9678 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9679 $as_echo "$ac_try_echo") >&5
9680 (eval "$ac_link") 2>conftest.er1
9682 grep -v '^ *+' conftest.er1 >conftest.err
9684 cat conftest.err >&5
9685 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9686 (exit $ac_status); } && {
9687 test -z "$ac_c_werror_flag" ||
9688 test ! -s conftest.err
9689 } && test -s conftest$ac_exeext && {
9690 test "$cross_compiling" = yes ||
9691 $as_test_x conftest$ac_exeext
9693 eval "$as_ac_var=yes"
9695 $as_echo "$as_me: failed program was:" >&5
9696 sed 's/^/| /' conftest.$ac_ext >&5
9698 eval "$as_ac_var=no"
9701 rm -rf conftest.dSYM
9702 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9703 conftest$ac_exeext conftest.$ac_ext
9705 ac_res=`eval 'as_val=${'$as_ac_var'}
9706 $as_echo "$as_val"'`
9707 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
9708 $as_echo "$ac_res" >&6; }
9709 as_val=`eval 'as_val=${'$as_ac_var'}
9710 $as_echo "$as_val"'`
9711 if test "x$as_val" = x""yes; then
9712 cat >>confdefs.h <<_ACEOF
9713 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9716 { $as_echo "$as_me:$LINENO: checking for _doprnt" >&5
9717 $as_echo_n "checking for _doprnt... " >&6; }
9718 if test "${ac_cv_func__doprnt+set}" = set; then
9719 $as_echo_n "(cached) " >&6
9721 cat >conftest.$ac_ext <<_ACEOF
9724 cat confdefs.h >>conftest.$ac_ext
9725 cat >>conftest.$ac_ext <<_ACEOF
9726 /* end confdefs.h. */
9727 /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
9728 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9729 #define _doprnt innocuous__doprnt
9731 /* System header to define __stub macros and hopefully few prototypes,
9732 which can conflict with char _doprnt (); below.
9733 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9734 <limits.h> exists even on freestanding compilers. */
9737 # include <limits.h>
9739 # include <assert.h>
9744 /* Override any GCC internal prototype to avoid an error.
9745 Use char because int might match the return type of a GCC
9746 builtin and then its argument prototype would still apply. */
9751 /* The GNU C library defines this for functions which it implements
9752 to always fail with ENOSYS. Some functions are actually named
9753 something starting with __ and the normal name is an alias. */
9754 #if defined __stub__doprnt || defined __stub____doprnt
9766 rm -f conftest.$ac_objext conftest$ac_exeext
9767 if { (ac_try="$ac_link"
9769 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9770 *) ac_try_echo=$ac_try;;
9772 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9773 $as_echo "$ac_try_echo") >&5
9774 (eval "$ac_link") 2>conftest.er1
9776 grep -v '^ *+' conftest.er1 >conftest.err
9778 cat conftest.err >&5
9779 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9780 (exit $ac_status); } && {
9781 test -z "$ac_c_werror_flag" ||
9782 test ! -s conftest.err
9783 } && test -s conftest$ac_exeext && {
9784 test "$cross_compiling" = yes ||
9785 $as_test_x conftest$ac_exeext
9787 ac_cv_func__doprnt=yes
9789 $as_echo "$as_me: failed program was:" >&5
9790 sed 's/^/| /' conftest.$ac_ext >&5
9792 ac_cv_func__doprnt=no
9795 rm -rf conftest.dSYM
9796 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9797 conftest$ac_exeext conftest.$ac_ext
9799 { $as_echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
9800 $as_echo "$ac_cv_func__doprnt" >&6; }
9801 if test "x$ac_cv_func__doprnt" = x""yes; then
9803 cat >>confdefs.h <<\_ACEOF
9804 #define HAVE_DOPRNT 1
9825 for ac_func in gettimeofday memmove memset mkdir socket strcasecmp strchr strerror strncasecmp strstr strtol strtoul
9827 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9828 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
9829 $as_echo_n "checking for $ac_func... " >&6; }
9830 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
9831 $as_echo_n "(cached) " >&6
9833 cat >conftest.$ac_ext <<_ACEOF
9836 cat confdefs.h >>conftest.$ac_ext
9837 cat >>conftest.$ac_ext <<_ACEOF
9838 /* end confdefs.h. */
9839 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9840 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9841 #define $ac_func innocuous_$ac_func
9843 /* System header to define __stub macros and hopefully few prototypes,
9844 which can conflict with char $ac_func (); below.
9845 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9846 <limits.h> exists even on freestanding compilers. */
9849 # include <limits.h>
9851 # include <assert.h>
9856 /* Override any GCC internal prototype to avoid an error.
9857 Use char because int might match the return type of a GCC
9858 builtin and then its argument prototype would still apply. */
9863 /* The GNU C library defines this for functions which it implements
9864 to always fail with ENOSYS. Some functions are actually named
9865 something starting with __ and the normal name is an alias. */
9866 #if defined __stub_$ac_func || defined __stub___$ac_func
9878 rm -f conftest.$ac_objext conftest$ac_exeext
9879 if { (ac_try="$ac_link"
9881 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9882 *) ac_try_echo=$ac_try;;
9884 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9885 $as_echo "$ac_try_echo") >&5
9886 (eval "$ac_link") 2>conftest.er1
9888 grep -v '^ *+' conftest.er1 >conftest.err
9890 cat conftest.err >&5
9891 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9892 (exit $ac_status); } && {
9893 test -z "$ac_c_werror_flag" ||
9894 test ! -s conftest.err
9895 } && test -s conftest$ac_exeext && {
9896 test "$cross_compiling" = yes ||
9897 $as_test_x conftest$ac_exeext
9899 eval "$as_ac_var=yes"
9901 $as_echo "$as_me: failed program was:" >&5
9902 sed 's/^/| /' conftest.$ac_ext >&5
9904 eval "$as_ac_var=no"
9907 rm -rf conftest.dSYM
9908 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9909 conftest$ac_exeext conftest.$ac_ext
9911 ac_res=`eval 'as_val=${'$as_ac_var'}
9912 $as_echo "$as_val"'`
9913 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
9914 $as_echo "$ac_res" >&6; }
9915 as_val=`eval 'as_val=${'$as_ac_var'}
9916 $as_echo "$as_val"'`
9917 if test "x$as_val" = x""yes; then
9918 cat >>confdefs.h <<_ACEOF
9919 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9927 ac_config_files="$ac_config_files Makefile"
9929 cat >confcache <<\_ACEOF
9930 # This file is a shell script that caches the results of configure
9931 # tests run on this system so they can be shared between configure
9932 # scripts and configure runs, see configure's option --config-cache.
9933 # It is not useful on other systems. If it contains results you don't
9934 # want to keep, you may remove or edit it.
9936 # config.status only pays attention to the cache file if you give it
9937 # the --recheck option to rerun configure.
9939 # `ac_cv_env_foo' variables (set or unset) will be overridden when
9940 # loading this file, other *unset* `ac_cv_foo' will be assigned the
9945 # The following way of writing the cache mishandles newlines in values,
9946 # but we know of no workaround that is simple, portable, and efficient.
9947 # So, we kill variables containing newlines.
9948 # Ultrix sh set writes to stderr and can't be redirected directly,
9949 # and sets the high bit in the cache file unless we assign to the vars.
9951 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
9952 eval ac_val=\$$ac_var
9956 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
9957 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
9960 _ | IFS | as_nl) ;; #(
9961 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
9962 *) $as_unset $ac_var ;;
9968 case $as_nl`(ac_space=' '; set) 2>&1` in #(
9969 *${as_nl}ac_space=\ *)
9970 # `set' does not quote correctly, so add quotes (double-quote
9971 # substitution turns \\\\ into \\, and sed turns \\ into \).
9974 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
9977 # `set' quotes correctly as required by POSIX, so do not add quotes.
9978 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
9987 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
9989 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
9991 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
9992 if test -w "$cache_file"; then
9993 test "x$cache_file" != "x/dev/null" &&
9994 { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
9995 $as_echo "$as_me: updating cache $cache_file" >&6;}
9996 cat confcache >$cache_file
9998 { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
9999 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
10004 test "x$prefix" = xNONE && prefix=$ac_default_prefix
10005 # Let make expand exec_prefix.
10006 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
10008 DEFS=-DHAVE_CONFIG_H
10012 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
10013 # 1. Remove the extension, and $U if already installed.
10014 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
10015 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
10016 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
10017 # will be set to the directory where LIBOBJS objects are built.
10018 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
10019 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
10021 LIBOBJS=$ac_libobjs
10023 LTLIBOBJS=$ac_ltlibobjs
10026 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
10027 { { $as_echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
10028 Usually this means the macro was only invoked conditionally." >&5
10029 $as_echo "$as_me: error: conditional \"AMDEP\" was never defined.
10030 Usually this means the macro was only invoked conditionally." >&2;}
10031 { (exit 1); exit 1; }; }
10033 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
10034 { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
10035 Usually this means the macro was only invoked conditionally." >&5
10036 $as_echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
10037 Usually this means the macro was only invoked conditionally." >&2;}
10038 { (exit 1); exit 1; }; }
10040 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
10041 { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
10042 Usually this means the macro was only invoked conditionally." >&5
10043 $as_echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
10044 Usually this means the macro was only invoked conditionally." >&2;}
10045 { (exit 1); exit 1; }; }
10047 if test -z "${ENABLE_ASTERISK_CHANNEL_DRIVER_TRUE}" && test -z "${ENABLE_ASTERISK_CHANNEL_DRIVER_FALSE}"; then
10048 { { $as_echo "$as_me:$LINENO: error: conditional \"ENABLE_ASTERISK_CHANNEL_DRIVER\" was never defined.
10049 Usually this means the macro was only invoked conditionally." >&5
10050 $as_echo "$as_me: error: conditional \"ENABLE_ASTERISK_CHANNEL_DRIVER\" was never defined.
10051 Usually this means the macro was only invoked conditionally." >&2;}
10052 { (exit 1); exit 1; }; }
10054 if test -z "${ENABLE_GSM_BS_TRUE}" && test -z "${ENABLE_GSM_BS_FALSE}"; then
10055 { { $as_echo "$as_me:$LINENO: error: conditional \"ENABLE_GSM_BS\" was never defined.
10056 Usually this means the macro was only invoked conditionally." >&5
10057 $as_echo "$as_me: error: conditional \"ENABLE_GSM_BS\" was never defined.
10058 Usually this means the macro was only invoked conditionally." >&2;}
10059 { (exit 1); exit 1; }; }
10061 if test -z "${ENABLE_GSM_MS_TRUE}" && test -z "${ENABLE_GSM_MS_FALSE}"; then
10062 { { $as_echo "$as_me:$LINENO: error: conditional \"ENABLE_GSM_MS\" was never defined.
10063 Usually this means the macro was only invoked conditionally." >&5
10064 $as_echo "$as_me: error: conditional \"ENABLE_GSM_MS\" was never defined.
10065 Usually this means the macro was only invoked conditionally." >&2;}
10066 { (exit 1); exit 1; }; }
10068 if test -z "${ENABLE_GSM_TRUE}" && test -z "${ENABLE_GSM_FALSE}"; then
10069 { { $as_echo "$as_me:$LINENO: error: conditional \"ENABLE_GSM\" was never defined.
10070 Usually this means the macro was only invoked conditionally." >&5
10071 $as_echo "$as_me: error: conditional \"ENABLE_GSM\" was never defined.
10072 Usually this means the macro was only invoked conditionally." >&2;}
10073 { (exit 1); exit 1; }; }
10075 if test -z "${ENABLE_SS5_TRUE}" && test -z "${ENABLE_SS5_FALSE}"; then
10076 { { $as_echo "$as_me:$LINENO: error: conditional \"ENABLE_SS5\" was never defined.
10077 Usually this means the macro was only invoked conditionally." >&5
10078 $as_echo "$as_me: error: conditional \"ENABLE_SS5\" was never defined.
10079 Usually this means the macro was only invoked conditionally." >&2;}
10080 { (exit 1); exit 1; }; }
10083 : ${CONFIG_STATUS=./config.status}
10085 ac_clean_files_save=$ac_clean_files
10086 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
10087 { $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
10088 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
10089 cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10091 # Generated by $as_me.
10092 # Run this file to recreate the current configuration.
10093 # Compiler output produced by configure, useful for debugging
10094 # configure, is in config.log if it exists.
10097 ac_cs_recheck=false
10099 SHELL=\${CONFIG_SHELL-$SHELL}
10102 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10103 ## --------------------- ##
10104 ## M4sh Initialization. ##
10105 ## --------------------- ##
10107 # Be more Bourne compatible
10108 DUALCASE=1; export DUALCASE # for MKS sh
10109 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
10112 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
10113 # is contrary to our usage. Disable this feature.
10114 alias -g '${1+"$@"}'='"$@"'
10115 setopt NO_GLOB_SUBST
10117 case `(set -o) 2>/dev/null` in
10118 *posix*) set -o posix ;;
10127 # Avoid depending upon Character Ranges.
10128 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
10129 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
10130 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
10131 as_cr_digits='0123456789'
10132 as_cr_alnum=$as_cr_Letters$as_cr_digits
10137 # Printing a long string crashes Solaris 7 /usr/bin/printf.
10138 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
10139 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
10140 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
10141 if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
10142 as_echo='printf %s\n'
10143 as_echo_n='printf %s'
10145 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
10146 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
10147 as_echo_n='/usr/ucb/echo -n'
10149 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
10150 as_echo_n_body='eval
10154 expr "X$arg" : "X\\(.*\\)$as_nl";
10155 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
10157 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
10159 export as_echo_n_body
10160 as_echo_n='sh -c $as_echo_n_body as_echo'
10162 export as_echo_body
10163 as_echo='sh -c $as_echo_body as_echo'
10166 # The user is always right.
10167 if test "${PATH_SEPARATOR+set}" != set; then
10169 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
10170 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
10175 # Support unset when possible.
10176 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
10184 # We need space, tab and new line, in precisely that order. Quoting is
10185 # there to prevent editors from complaining about space-tab.
10186 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
10187 # splitting by setting IFS to empty value.)
10190 # Find who we are. Look in the path if we contain no directory separator.
10192 *[\\/]* ) as_myself=$0 ;;
10193 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10194 for as_dir in $PATH
10197 test -z "$as_dir" && as_dir=.
10198 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
10204 # We did not find ourselves, most probably we were run as `sh COMMAND'
10205 # in which case we are not to be found in the path.
10206 if test "x$as_myself" = x; then
10209 if test ! -f "$as_myself"; then
10210 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
10211 { (exit 1); exit 1; }
10214 # Work around bugs in pre-3.0 UWIN ksh.
10215 for as_var in ENV MAIL MAILPATH
10216 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
10228 # Required to use basename.
10229 if expr a : '\(a\)' >/dev/null 2>&1 &&
10230 test "X`expr 00001 : '.*\(...\)'`" = X001; then
10236 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
10237 as_basename=basename
10243 # Name of the executable.
10244 as_me=`$as_basename -- "$0" ||
10245 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
10246 X"$0" : 'X\(//\)$' \| \
10247 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
10249 sed '/^.*\/\([^/][^/]*\)\/*$/{
10268 as_lineno_1=$LINENO
10269 as_lineno_2=$LINENO
10270 test "x$as_lineno_1" != "x$as_lineno_2" &&
10271 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
10273 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
10274 # uniformly replaced by the line number. The first 'sed' inserts a
10275 # line-number line after each line using $LINENO; the second 'sed'
10276 # does the real work. The second script uses 'N' to pair each
10277 # line-number line with the line containing $LINENO, and appends
10278 # trailing '-' during substitution so that $LINENO is not a special
10279 # case at line end.
10280 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
10281 # scripts with optimization help from Paolo Bonzini. Blame Lee
10282 # E. McMahon (1931-1989) for sed's syntax. :-)
10294 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
10297 ' >$as_me.lineno &&
10298 chmod +x "$as_me.lineno" ||
10299 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
10300 { (exit 1); exit 1; }; }
10302 # Don't try to exec as it changes $[0], causing all sort of problems
10303 # (the dirname of $[0] is not the place where we might find the
10304 # original and so on. Autoconf is especially sensitive to this).
10305 . "./$as_me.lineno"
10306 # Exit status is that of the last command.
10311 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
10317 ECHO_C= ECHO_N= ECHO_T=
10318 case `echo -n x` in
10320 case `echo 'x\c'` in
10321 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
10327 if expr a : '\(a\)' >/dev/null 2>&1 &&
10328 test "X`expr 00001 : '.*\(...\)'`" = X001; then
10334 rm -f conf$$ conf$$.exe conf$$.file
10335 if test -d conf$$.dir; then
10336 rm -f conf$$.dir/conf$$.file
10339 mkdir conf$$.dir 2>/dev/null
10341 if (echo >conf$$.file) 2>/dev/null; then
10342 if ln -s conf$$.file conf$$ 2>/dev/null; then
10344 # ... but there are two gotchas:
10345 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
10346 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
10347 # In both cases, we have to default to `cp -p'.
10348 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
10350 elif ln conf$$.file conf$$ 2>/dev/null; then
10358 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
10359 rmdir conf$$.dir 2>/dev/null
10361 if mkdir -p . 2>/dev/null; then
10364 test -d ./-p && rmdir ./-p
10368 if test -x / >/dev/null 2>&1; then
10369 as_test_x='test -x'
10371 if ls -dL / >/dev/null 2>&1; then
10378 if test -d "$1"; then
10384 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
10385 ???[sx]*):;;*)false;;esac;fi
10389 as_executable_p=$as_test_x
10391 # Sed expression to map a string onto a valid CPP name.
10392 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
10394 # Sed expression to map a string onto a valid variable name.
10395 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
10400 # Save the log message, to keep $[0] and so on meaningful, and to
10401 # report actual input values of CONFIG_FILES etc. instead of their
10402 # values after options handling.
10404 This file was extended by lcr $as_me 1.7, which was
10405 generated by GNU Autoconf 2.63. Invocation command line was
10407 CONFIG_FILES = $CONFIG_FILES
10408 CONFIG_HEADERS = $CONFIG_HEADERS
10409 CONFIG_LINKS = $CONFIG_LINKS
10410 CONFIG_COMMANDS = $CONFIG_COMMANDS
10413 on `(hostname || uname -n) 2>/dev/null | sed 1q`
10418 case $ac_config_files in *"
10419 "*) set x $ac_config_files; shift; ac_config_files=$*;;
10422 case $ac_config_headers in *"
10423 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
10427 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10428 # Files that config.status was made for.
10429 config_files="$ac_config_files"
10430 config_headers="$ac_config_headers"
10431 config_commands="$ac_config_commands"
10435 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10437 \`$as_me' instantiates files from templates according to the
10438 current configuration.
10440 Usage: $0 [OPTION]... [FILE]...
10442 -h, --help print this help, then exit
10443 -V, --version print version number and configuration settings, then exit
10444 -q, --quiet, --silent
10445 do not print progress messages
10446 -d, --debug don't remove temporary files
10447 --recheck update $as_me by reconfiguring in the same conditions
10448 --file=FILE[:TEMPLATE]
10449 instantiate the configuration file FILE
10450 --header=FILE[:TEMPLATE]
10451 instantiate the configuration header FILE
10453 Configuration files:
10456 Configuration headers:
10459 Configuration commands:
10462 Report bugs to <bug-autoconf@gnu.org>."
10465 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10467 lcr config.status 1.7
10468 configured by $0, generated by GNU Autoconf 2.63,
10469 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
10471 Copyright (C) 2008 Free Software Foundation, Inc.
10472 This config.status script is free software; the Free Software Foundation
10473 gives unlimited permission to copy, distribute and modify it."
10479 test -n "\$AWK" || AWK=awk
10482 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10483 # The default lists apply if the user does not specify any file.
10489 ac_option=`expr "X$1" : 'X\([^=]*\)='`
10490 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
10501 # Handling of the options.
10502 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
10504 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
10505 $as_echo "$ac_cs_version"; exit ;;
10506 --debug | --debu | --deb | --de | --d | -d )
10508 --file | --fil | --fi | --f )
10511 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
10513 CONFIG_FILES="$CONFIG_FILES '$ac_optarg'"
10514 ac_need_defaults=false;;
10515 --header | --heade | --head | --hea )
10518 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
10520 CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'"
10521 ac_need_defaults=false;;
10523 # Conflict between --help and --header
10524 { $as_echo "$as_me: error: ambiguous option: $1
10525 Try \`$0 --help' for more information." >&2
10526 { (exit 1); exit 1; }; };;
10527 --help | --hel | -h )
10528 $as_echo "$ac_cs_usage"; exit ;;
10529 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
10530 | -silent | --silent | --silen | --sile | --sil | --si | --s)
10533 # This is an error.
10534 -*) { $as_echo "$as_me: error: unrecognized option: $1
10535 Try \`$0 --help' for more information." >&2
10536 { (exit 1); exit 1; }; } ;;
10538 *) ac_config_targets="$ac_config_targets $1"
10539 ac_need_defaults=false ;;
10545 ac_configure_extra_args=
10547 if $ac_cs_silent; then
10549 ac_configure_extra_args="$ac_configure_extra_args --silent"
10553 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10554 if \$ac_cs_recheck; then
10555 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
10557 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
10558 CONFIG_SHELL='$SHELL'
10559 export CONFIG_SHELL
10564 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10568 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
10569 ## Running $as_me. ##
10575 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10579 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
10583 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10585 # Handling of arguments.
10586 for ac_config_target in $ac_config_targets
10588 case $ac_config_target in
10589 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
10590 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
10591 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
10593 *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
10594 $as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
10595 { (exit 1); exit 1; }; };;
10600 # If the user did not use the arguments to specify the items to instantiate,
10601 # then the envvar interface is used. Set only those that are not.
10602 # We use the long form for the default assignment because of an extremely
10603 # bizarre bug on SunOS 4.1.3.
10604 if $ac_need_defaults; then
10605 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
10606 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
10607 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
10610 # Have a temporary directory for convenience. Make it in the build tree
10611 # simply because there is no reason against having it here, and in addition,
10612 # creating and moving files from /tmp can sometimes cause problems.
10613 # Hook for its removal unless debugging.
10614 # Note that there is a small window in which the directory will not be cleaned:
10615 # after its creation but before its name has been assigned to `$tmp'.
10619 trap 'exit_status=$?
10620 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
10622 trap '{ (exit 1); exit 1; }' 1 2 13 15
10624 # Create a (secure) tmp directory for tmp files.
10627 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
10628 test -n "$tmp" && test -d "$tmp"
10631 tmp=./conf$$-$RANDOM
10632 (umask 077 && mkdir "$tmp")
10635 $as_echo "$as_me: cannot create a temporary directory in ." >&2
10636 { (exit 1); exit 1; }
10639 # Set up the scripts for CONFIG_FILES section.
10640 # No need to generate them if there are no CONFIG_FILES.
10641 # This happens for instance with `./config.status config.h'.
10642 if test -n "$CONFIG_FILES"; then
10646 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
10647 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
10650 ac_cs_awk_cr=$ac_cr
10653 echo 'BEGIN {' >"$tmp/subs1.awk" &&
10658 echo "cat >conf$$subs.awk <<_ACEOF" &&
10659 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
10661 } >conf$$subs.sh ||
10662 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
10663 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
10664 { (exit 1); exit 1; }; }
10665 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
10667 for ac_last_try in false false false false false :; do
10668 . ./conf$$subs.sh ||
10669 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
10670 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
10671 { (exit 1); exit 1; }; }
10673 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
10674 if test $ac_delim_n = $ac_delim_num; then
10676 elif $ac_last_try; then
10677 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
10678 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
10679 { (exit 1); exit 1; }; }
10681 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
10684 rm -f conf$$subs.sh
10686 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10687 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
10691 s/^/S["/; s/!.*/"]=/
10701 s/\(.\{148\}\).*/\1/
10703 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
10708 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
10715 s/\(.\{148\}\).*/\1/
10717 s/["\\]/\\&/g; s/^/"/; s/$/"/
10721 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
10726 ' <conf$$subs.awk | sed '
10731 ' >>$CONFIG_STATUS || ac_write_fail=1
10732 rm -f conf$$subs.awk
10733 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10735 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
10736 for (key in S) S_is_set[key] = 1
10742 nfields = split(line, field, "@")
10744 len = length(field[1])
10745 for (i = 2; i < nfields; i++) {
10747 keylen = length(key)
10748 if (S_is_set[key]) {
10750 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
10751 len += length(value) + length(field[++i])
10762 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10763 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
10764 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
10767 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
10768 || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5
10769 $as_echo "$as_me: error: could not setup config files machinery" >&2;}
10770 { (exit 1); exit 1; }; }
10773 # VPATH may cause trouble with some makes, so we remove $(srcdir),
10774 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
10775 # trailing colons and then remove the whole line if VPATH becomes empty
10776 # (actually we leave an empty line to preserve line numbers).
10777 if test "x$srcdir" = x.; then
10778 ac_vpsub='/^[ ]*VPATH[ ]*=/{
10779 s/:*\$(srcdir):*/:/
10780 s/:*\${srcdir}:*/:/
10782 s/^\([^=]*=[ ]*\):*/\1/
10788 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10789 fi # test -n "$CONFIG_FILES"
10791 # Set up the scripts for CONFIG_HEADERS section.
10792 # No need to generate them if there are no CONFIG_HEADERS.
10793 # This happens for instance with `./config.status Makefile'.
10794 if test -n "$CONFIG_HEADERS"; then
10795 cat >"$tmp/defines.awk" <<\_ACAWK ||
10799 # Transform confdefs.h into an awk script `defines.awk', embedded as
10800 # here-document in config.status, that substitutes the proper values into
10801 # config.h.in to produce config.h.
10803 # Create a delimiter string that does not exist in confdefs.h, to ease
10804 # handling of long lines.
10806 for ac_last_try in false false :; do
10807 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
10808 if test -z "$ac_t"; then
10810 elif $ac_last_try; then
10811 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_HEADERS" >&5
10812 $as_echo "$as_me: error: could not make $CONFIG_HEADERS" >&2;}
10813 { (exit 1); exit 1; }; }
10815 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
10819 # For the awk script, D is an array of macro values keyed by name,
10820 # likewise P contains macro parameters if any. Preserve backslash
10821 # newline sequences.
10823 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
10825 s/.\{148\}/&'"$ac_delim"'/g
10828 s/^[ ]*#[ ]*define[ ][ ]*/ /
10835 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
10837 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
10841 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
10842 D["\1"]=" \3\\\\\\n"\\/p
10844 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
10849 s/.\{148\}/&'"$ac_delim"'/g
10854 s/["\\]/\\&/g; s/^/"/; s/$/"/p
10857 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
10859 ' <confdefs.h | sed '
10860 s/'"$ac_delim"'/"\\\
10861 "/g' >>$CONFIG_STATUS || ac_write_fail=1
10863 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10864 for (key in D) D_is_set[key] = 1
10867 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
10869 split(line, arg, " ")
10870 if (arg[1] == "#") {
10874 defundef = substr(arg[1], 2)
10877 split(mac1, mac2, "(") #)
10879 prefix = substr(line, 1, index(line, defundef) - 1)
10880 if (D_is_set[macro]) {
10881 # Preserve the white space surrounding the "#".
10882 print prefix "define", macro P[macro] D[macro]
10885 # Replace #undef with comments. This is necessary, for example,
10886 # in the case of _POSIX_SOURCE, which is predefined and required
10887 # on some systems where configure will not decide to define it.
10888 if (defundef == "undef") {
10889 print "/*", prefix defundef, macro, "*/"
10897 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10898 { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5
10899 $as_echo "$as_me: error: could not setup config headers machinery" >&2;}
10900 { (exit 1); exit 1; }; }
10901 fi # test -n "$CONFIG_HEADERS"
10904 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
10909 :[FHLC]) ac_mode=$ac_tag; continue;;
10911 case $ac_mode$ac_tag in
10913 :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: invalid tag $ac_tag" >&5
10914 $as_echo "$as_me: error: invalid tag $ac_tag" >&2;}
10915 { (exit 1); exit 1; }; };;
10916 :[FH]-) ac_tag=-:-;;
10917 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
10934 -) ac_f="$tmp/stdin";;
10935 *) # Look for the file first in the build tree, then in the source tree
10936 # (if the path is not absolute). The absolute path cannot be DOS-style,
10937 # because $ac_f cannot contain `:'.
10941 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
10943 { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
10944 $as_echo "$as_me: error: cannot find input file: $ac_f" >&2;}
10945 { (exit 1); exit 1; }; };;
10947 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
10948 ac_file_inputs="$ac_file_inputs '$ac_f'"
10951 # Let's still pretend it is `configure' which instantiates (i.e., don't
10952 # use $as_me), people would be surprised to read:
10953 # /* config.h. Generated by config.status. */
10954 configure_input='Generated from '`
10955 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
10957 if test x"$ac_file" != x-; then
10958 configure_input="$ac_file. $configure_input"
10959 { $as_echo "$as_me:$LINENO: creating $ac_file" >&5
10960 $as_echo "$as_me: creating $ac_file" >&6;}
10962 # Neutralize special characters interpreted by sed in replacement strings.
10963 case $configure_input in #(
10964 *\&* | *\|* | *\\* )
10965 ac_sed_conf_input=`$as_echo "$configure_input" |
10966 sed 's/[\\\\&|]/\\\\&/g'`;; #(
10967 *) ac_sed_conf_input=$configure_input;;
10971 *:-:* | *:-) cat >"$tmp/stdin" \
10972 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
10973 $as_echo "$as_me: error: could not create $ac_file" >&2;}
10974 { (exit 1); exit 1; }; } ;;
10979 ac_dir=`$as_dirname -- "$ac_file" ||
10980 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10981 X"$ac_file" : 'X\(//\)[^/]' \| \
10982 X"$ac_file" : 'X\(//\)$' \| \
10983 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
10984 $as_echo X"$ac_file" |
10985 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
10989 /^X\(\/\/\)[^/].*/{
11004 -*) as_dir=./$as_dir;;
11006 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
11010 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
11011 *) as_qdir=$as_dir;;
11013 as_dirs="'$as_qdir' $as_dirs"
11014 as_dir=`$as_dirname -- "$as_dir" ||
11015 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11016 X"$as_dir" : 'X\(//\)[^/]' \| \
11017 X"$as_dir" : 'X\(//\)$' \| \
11018 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
11019 $as_echo X"$as_dir" |
11020 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11024 /^X\(\/\/\)[^/].*/{
11037 test -d "$as_dir" && break
11039 test -z "$as_dirs" || eval "mkdir $as_dirs"
11040 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
11041 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
11042 { (exit 1); exit 1; }; }; }
11046 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
11048 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
11049 # A ".." for each directory in $ac_dir_suffix.
11050 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
11051 case $ac_top_builddir_sub in
11052 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
11053 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
11056 ac_abs_top_builddir=$ac_pwd
11057 ac_abs_builddir=$ac_pwd$ac_dir_suffix
11058 # for backward compatibility:
11059 ac_top_builddir=$ac_top_build_prefix
11062 .) # We are building in place.
11064 ac_top_srcdir=$ac_top_builddir_sub
11065 ac_abs_top_srcdir=$ac_pwd ;;
11066 [\\/]* | ?:[\\/]* ) # Absolute name.
11067 ac_srcdir=$srcdir$ac_dir_suffix;
11068 ac_top_srcdir=$srcdir
11069 ac_abs_top_srcdir=$srcdir ;;
11070 *) # Relative name.
11071 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
11072 ac_top_srcdir=$ac_top_build_prefix$srcdir
11073 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
11075 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
11085 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
11086 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
11090 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11091 # If the template does not know about datarootdir, expand it.
11092 # FIXME: This hack should be removed a few years after 2.60.
11093 ac_datarootdir_hack=; ac_datarootdir_seen=
11106 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
11107 *datarootdir*) ac_datarootdir_seen=yes;;
11108 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
11109 { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
11110 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
11112 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11113 ac_datarootdir_hack='
11114 s&@datadir@&$datadir&g
11115 s&@docdir@&$docdir&g
11116 s&@infodir@&$infodir&g
11117 s&@localedir@&$localedir&g
11118 s&@mandir@&$mandir&g
11119 s&\\\${datarootdir}&$datarootdir&g' ;;
11123 # Neutralize VPATH when `$srcdir' = `.'.
11124 # Shell code in configure.ac might set extrasub.
11125 # FIXME: do we really want to maintain this feature?
11126 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11127 ac_sed_extra="$ac_vpsub
11130 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11132 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
11133 s|@configure_input@|$ac_sed_conf_input|;t t
11134 s&@top_builddir@&$ac_top_builddir_sub&;t t
11135 s&@top_build_prefix@&$ac_top_build_prefix&;t t
11136 s&@srcdir@&$ac_srcdir&;t t
11137 s&@abs_srcdir@&$ac_abs_srcdir&;t t
11138 s&@top_srcdir@&$ac_top_srcdir&;t t
11139 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
11140 s&@builddir@&$ac_builddir&;t t
11141 s&@abs_builddir@&$ac_abs_builddir&;t t
11142 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
11143 s&@INSTALL@&$ac_INSTALL&;t t
11144 $ac_datarootdir_hack
11146 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
11147 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
11148 $as_echo "$as_me: error: could not create $ac_file" >&2;}
11149 { (exit 1); exit 1; }; }
11151 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
11152 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
11153 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
11154 { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
11155 which seems to be undefined. Please make sure it is defined." >&5
11156 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
11157 which seems to be undefined. Please make sure it is defined." >&2;}
11161 -) cat "$tmp/out" && rm -f "$tmp/out";;
11162 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
11164 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
11165 $as_echo "$as_me: error: could not create $ac_file" >&2;}
11166 { (exit 1); exit 1; }; }
11172 if test x"$ac_file" != x-; then
11174 $as_echo "/* $configure_input */" \
11175 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
11176 } >"$tmp/config.h" \
11177 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
11178 $as_echo "$as_me: error: could not create $ac_file" >&2;}
11179 { (exit 1); exit 1; }; }
11180 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
11181 { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5
11182 $as_echo "$as_me: $ac_file is unchanged" >&6;}
11185 mv "$tmp/config.h" "$ac_file" \
11186 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
11187 $as_echo "$as_me: error: could not create $ac_file" >&2;}
11188 { (exit 1); exit 1; }; }
11191 $as_echo "/* $configure_input */" \
11192 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
11193 || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5
11194 $as_echo "$as_me: error: could not create -" >&2;}
11195 { (exit 1); exit 1; }; }
11197 # Compute "$ac_file"'s index in $config_headers.
11199 for _am_header in $config_headers :; do
11200 case $_am_header in
11201 "$ac_file" | "$ac_file":* )
11204 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
11207 echo "timestamp for "$ac_file"" >`$as_dirname -- "$ac_file" ||
11208 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11209 X"$ac_file" : 'X\(//\)[^/]' \| \
11210 X"$ac_file" : 'X\(//\)$' \| \
11211 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
11212 $as_echo X"$ac_file" |
11213 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11217 /^X\(\/\/\)[^/].*/{
11229 s/.*/./; q'`/stamp-h$_am_stamp_count
11232 :C) { $as_echo "$as_me:$LINENO: executing $ac_file commands" >&5
11233 $as_echo "$as_me: executing $ac_file commands" >&6;}
11238 case $ac_file$ac_mode in
11239 "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
11240 # Strip MF so we end up with the name of the file.
11241 mf=`echo "$mf" | sed -e 's/:.*$//'`
11242 # Check whether this is an Automake generated Makefile or not.
11243 # We used to match only the files named `Makefile.in', but
11244 # some people rename them; so instead we look at the file content.
11245 # Grep'ing the first line is not enough: some people post-process
11246 # each Makefile.in and add a new line on top of each file to say so.
11247 # So let's grep whole file.
11248 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
11249 dirpart=`$as_dirname -- "$mf" ||
11250 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11251 X"$mf" : 'X\(//\)[^/]' \| \
11252 X"$mf" : 'X\(//\)$' \| \
11253 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
11255 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11259 /^X\(\/\/\)[^/].*/{
11275 # Extract the definition of DEPDIR, am__include, and am__quote
11276 # from the Makefile without running `make'.
11277 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
11278 test -z "$DEPDIR" && continue
11279 am__include=`sed -n 's/^am__include = //p' < "$mf"`
11280 test -z "am__include" && continue
11281 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
11282 # When using ansi2knr, U may be empty or an underscore; expand it
11283 U=`sed -n 's/^U = //p' < "$mf"`
11284 # Find all dependency output files, they are included files with
11285 # $(DEPDIR) in their names. We invoke sed twice because it is the
11286 # simplest approach to changing $(DEPDIR) to its actual value in the
11288 for file in `sed -n "
11289 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
11290 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
11291 # Make sure the directory exists.
11292 test -f "$dirpart/$file" && continue
11293 fdir=`$as_dirname -- "$file" ||
11294 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11295 X"$file" : 'X\(//\)[^/]' \| \
11296 X"$file" : 'X\(//\)$' \| \
11297 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
11298 $as_echo X"$file" |
11299 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11303 /^X\(\/\/\)[^/].*/{
11316 { as_dir=$dirpart/$fdir
11318 -*) as_dir=./$as_dir;;
11320 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
11324 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
11325 *) as_qdir=$as_dir;;
11327 as_dirs="'$as_qdir' $as_dirs"
11328 as_dir=`$as_dirname -- "$as_dir" ||
11329 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11330 X"$as_dir" : 'X\(//\)[^/]' \| \
11331 X"$as_dir" : 'X\(//\)$' \| \
11332 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
11333 $as_echo X"$as_dir" |
11334 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11338 /^X\(\/\/\)[^/].*/{
11351 test -d "$as_dir" && break
11353 test -z "$as_dirs" || eval "mkdir $as_dirs"
11354 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
11355 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
11356 { (exit 1); exit 1; }; }; }
11357 # echo "creating $dirpart/$file"
11358 echo '# dummy' > "$dirpart/$file"
11367 { (exit 0); exit 0; }
11369 chmod +x $CONFIG_STATUS
11370 ac_clean_files=$ac_clean_files_save
11372 test $ac_write_fail = 0 ||
11373 { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5
11374 $as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;}
11375 { (exit 1); exit 1; }; }
11378 # configure is writing to config.log, and then calls config.status.
11379 # config.status does its own redirection, appending to config.log.
11380 # Unfortunately, on DOS this fails, as config.log is still kept open
11381 # by configure, so config.status won't be able to write to it; its
11382 # output is simply discarded. So we exec the FD to /dev/null,
11383 # effectively closing config.log, so it can be properly (re)opened and
11384 # appended to by config.status. When coming back to configure, we
11385 # need to make the FD available again.
11386 if test "$no_create" != yes; then
11388 ac_config_status_args=
11389 test "$silent" = yes &&
11390 ac_config_status_args="$ac_config_status_args --quiet"
11392 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
11394 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
11395 # would make configure fail if this is the last instruction.
11396 $ac_cs_success || { (exit 1); exit 1; }
11398 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
11399 { $as_echo "$as_me:$LINENO: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
11400 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}