2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.61 for polyglot 1.4.32b.
5 # Report bugs to <michel.vandenbergh@uhasselt.be>.
7 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
8 # 2002, 2003, 2004, 2005, 2006 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 # Zsh 3.x and 4.x performs 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
42 # The user is always right.
43 if test "${PATH_SEPARATOR+set}" != set; then
44 echo "#! /bin/sh" >conf$$.sh
45 echo "exit 0" >>conf$$.sh
47 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
55 # Support unset when possible.
56 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
64 # We need space, tab and new line, in precisely that order. Quoting is
65 # there to prevent editors from complaining about space-tab.
66 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
67 # splitting by setting IFS to empty value.)
72 # Find who we are. Look in the path if we contain no directory separator.
74 *[\\/]* ) as_myself=$0 ;;
75 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
79 test -z "$as_dir" && as_dir=.
80 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
86 # We did not find ourselves, most probably we were run as `sh COMMAND'
87 # in which case we are not to be found in the path.
88 if test "x$as_myself" = x; then
91 if test ! -f "$as_myself"; then
92 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
96 # Work around bugs in pre-3.0 UWIN ksh.
97 for as_var in ENV MAIL MAILPATH
98 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
106 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
107 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
110 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
111 eval $as_var=C; export $as_var
113 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
117 # Required to use basename.
118 if expr a : '\(a\)' >/dev/null 2>&1 &&
119 test "X`expr 00001 : '.*\(...\)'`" = X001; then
125 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
132 # Name of the executable.
133 as_me=`$as_basename -- "$0" ||
134 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
135 X"$0" : 'X\(//\)$' \| \
136 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
138 sed '/^.*\/\([^/][^/]*\)\/*$/{
156 if test "x$CONFIG_SHELL" = x; then
157 if (eval ":") 2>/dev/null; then
163 if test $as_have_required = yes && (eval ":
173 as_func_ret_success () {
176 as_func_ret_failure () {
181 if as_func_success; then
185 echo as_func_success failed.
188 if as_func_failure; then
190 echo as_func_failure succeeded.
193 if as_func_ret_success; then
197 echo as_func_ret_success failed.
200 if as_func_ret_failure; then
202 echo as_func_ret_failure succeeded.
205 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
209 echo positional parameters were not saved.
212 test \$exitcode = 0) || { (exit 1); exit 1; }
217 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
218 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
219 ") 2> /dev/null; then
223 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
224 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
227 test -z "$as_dir" && as_dir=.
230 for as_base in sh bash ksh sh5; do
231 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
238 for as_shell in $as_candidate_shells $SHELL; do
239 # Try only shells that exist, to save several forks.
240 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
241 { ("$as_shell") 2> /dev/null <<\_ASEOF
242 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
245 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
246 # is contrary to our usage. Disable this feature.
247 alias -g '${1+"$@"}'='"$@"'
250 case `(set -o) 2>/dev/null` in
251 *posix*) set -o posix ;;
260 CONFIG_SHELL=$as_shell
262 if { "$as_shell" 2> /dev/null <<\_ASEOF
263 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
266 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
267 # is contrary to our usage. Disable this feature.
268 alias -g '${1+"$@"}'='"$@"'
271 case `(set -o) 2>/dev/null` in
272 *posix*) set -o posix ;;
288 as_func_ret_success () {
291 as_func_ret_failure () {
296 if as_func_success; then
300 echo as_func_success failed.
303 if as_func_failure; then
305 echo as_func_failure succeeded.
308 if as_func_ret_success; then
312 echo as_func_ret_success failed.
315 if as_func_ret_failure; then
317 echo as_func_ret_failure succeeded.
320 if ( set x; as_func_ret_success y && test x = "$1" ); then
324 echo positional parameters were not saved.
327 test $exitcode = 0) || { (exit 1); exit 1; }
332 test "x$as_lineno_1" != "x$as_lineno_2" &&
333 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
344 if test "x$CONFIG_SHELL" != x; then
345 for as_var in BASH_ENV ENV
346 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
349 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
353 if test $as_have_required = no; then
354 echo This script requires a shell more modern than all the
355 echo shells that I found on your system. Please install a
356 echo modern shell, or manually run the script under such a
357 echo shell if you do have one.
358 { (exit 1); exit 1; }
368 (eval "as_func_return () {
377 as_func_ret_success () {
380 as_func_ret_failure () {
385 if as_func_success; then
389 echo as_func_success failed.
392 if as_func_failure; then
394 echo as_func_failure succeeded.
397 if as_func_ret_success; then
401 echo as_func_ret_success failed.
404 if as_func_ret_failure; then
406 echo as_func_ret_failure succeeded.
409 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
413 echo positional parameters were not saved.
416 test \$exitcode = 0") || {
417 echo No shell found that supports shell functions.
418 echo Please tell autoconf@gnu.org about your system,
419 echo including any error possibly output before this
427 test "x$as_lineno_1" != "x$as_lineno_2" &&
428 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
430 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
431 # uniformly replaced by the line number. The first 'sed' inserts a
432 # line-number line after each line using $LINENO; the second 'sed'
433 # does the real work. The second script uses 'N' to pair each
434 # line-number line with the line containing $LINENO, and appends
435 # trailing '-' during substitution so that $LINENO is not a special
437 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
438 # scripts with optimization help from Paolo Bonzini. Blame Lee
439 # E. McMahon (1931-1989) for sed's syntax. :-)
451 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
455 chmod +x "$as_me.lineno" ||
456 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
457 { (exit 1); exit 1; }; }
459 # Don't try to exec as it changes $[0], causing all sort of problems
460 # (the dirname of $[0] is not the place where we might find the
461 # original and so on. Autoconf is especially sensitive to this).
463 # Exit status is that of the last command.
468 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
474 ECHO_C= ECHO_N= ECHO_T=
478 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
485 if expr a : '\(a\)' >/dev/null 2>&1 &&
486 test "X`expr 00001 : '.*\(...\)'`" = X001; then
492 rm -f conf$$ conf$$.exe conf$$.file
493 if test -d conf$$.dir; then
494 rm -f conf$$.dir/conf$$.file
500 if ln -s conf$$.file conf$$ 2>/dev/null; then
502 # ... but there are two gotchas:
503 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
504 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
505 # In both cases, we have to default to `cp -p'.
506 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
508 elif ln conf$$.file conf$$ 2>/dev/null; then
513 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
514 rmdir conf$$.dir 2>/dev/null
516 if mkdir -p . 2>/dev/null; then
519 test -d ./-p && rmdir ./-p
523 if test -x / >/dev/null 2>&1; then
526 if ls -dL / >/dev/null 2>&1; then
533 if test -d "$1"; then
539 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
540 ???[sx]*):;;*)false;;esac;fi
544 as_executable_p=$as_test_x
546 # Sed expression to map a string onto a valid CPP name.
547 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
549 # Sed expression to map a string onto a valid variable name.
550 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
554 exec 7<&0 </dev/null 6>&1
557 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
558 # so uname gets run too.
559 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
564 ac_default_prefix=/usr/local
566 ac_config_libobj_dir=.
572 SHELL=${CONFIG_SHELL-/bin/sh}
574 # Identity of this package.
575 PACKAGE_NAME='polyglot'
576 PACKAGE_TARNAME='polyglot'
577 PACKAGE_VERSION='1.4.32b'
578 PACKAGE_STRING='polyglot 1.4.32b'
579 PACKAGE_BUGREPORT='michel.vandenbergh@uhasselt.be'
581 ac_unique_file="mainloop.c"
582 # Factoring default headers for most tests.
583 ac_includes_default="\
585 #ifdef HAVE_SYS_TYPES_H
586 # include <sys/types.h>
588 #ifdef HAVE_SYS_STAT_H
589 # include <sys/stat.h>
595 # ifdef HAVE_STDLIB_H
600 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
605 #ifdef HAVE_STRINGS_H
606 # include <strings.h>
608 #ifdef HAVE_INTTYPES_H
609 # include <inttypes.h>
627 program_transform_name
669 INSTALL_STRIP_PROGRAM
699 ac_precious_vars='build_alias
710 # Initialize some variables set by options.
712 ac_init_version=false
713 # The variables have the same names as the options, with
714 # dashes changed to underlines.
722 program_transform_name=s,x,x,
730 # Installation directory options.
731 # These are left unexpanded so users can "make install exec_prefix=/foo"
732 # and all the variables that are supposed to be based on exec_prefix
733 # by default will actually change.
734 # Use braces instead of parens because sh, perl, etc. also accept them.
735 # (The list follows the same order as the GNU Coding Standards.)
736 bindir='${exec_prefix}/bin'
737 sbindir='${exec_prefix}/sbin'
738 libexecdir='${exec_prefix}/libexec'
739 datarootdir='${prefix}/share'
740 datadir='${datarootdir}'
741 sysconfdir='${prefix}/etc'
742 sharedstatedir='${prefix}/com'
743 localstatedir='${prefix}/var'
744 includedir='${prefix}/include'
745 oldincludedir='/usr/include'
746 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
747 infodir='${datarootdir}/info'
752 libdir='${exec_prefix}/lib'
753 localedir='${datarootdir}/locale'
754 mandir='${datarootdir}/man'
760 # If the previous option needs an argument, assign it.
761 if test -n "$ac_prev"; then
762 eval $ac_prev=\$ac_option
768 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
772 # Accept the important Cygnus configure options, so we can diagnose typos.
774 case $ac_dashdash$ac_option in
778 -bindir | --bindir | --bindi | --bind | --bin | --bi)
780 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
783 -build | --build | --buil | --bui | --bu)
784 ac_prev=build_alias ;;
785 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
786 build_alias=$ac_optarg ;;
788 -cache-file | --cache-file | --cache-fil | --cache-fi \
789 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
790 ac_prev=cache_file ;;
791 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
792 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
793 cache_file=$ac_optarg ;;
796 cache_file=config.cache ;;
798 -datadir | --datadir | --datadi | --datad)
800 -datadir=* | --datadir=* | --datadi=* | --datad=*)
801 datadir=$ac_optarg ;;
803 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
804 | --dataroo | --dataro | --datar)
805 ac_prev=datarootdir ;;
806 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
807 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
808 datarootdir=$ac_optarg ;;
810 -disable-* | --disable-*)
811 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
812 # Reject names that are not valid shell variable names.
813 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
814 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
815 { (exit 1); exit 1; }; }
816 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
817 eval enable_$ac_feature=no ;;
819 -docdir | --docdir | --docdi | --doc | --do)
821 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
824 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
826 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
829 -enable-* | --enable-*)
830 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
831 # Reject names that are not valid shell variable names.
832 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
833 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
834 { (exit 1); exit 1; }; }
835 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
836 eval enable_$ac_feature=\$ac_optarg ;;
838 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
839 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
840 | --exec | --exe | --ex)
841 ac_prev=exec_prefix ;;
842 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
843 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
844 | --exec=* | --exe=* | --ex=*)
845 exec_prefix=$ac_optarg ;;
847 -gas | --gas | --ga | --g)
848 # Obsolete; use --with-gas.
851 -help | --help | --hel | --he | -h)
853 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
854 ac_init_help=recursive ;;
855 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
856 ac_init_help=short ;;
858 -host | --host | --hos | --ho)
859 ac_prev=host_alias ;;
860 -host=* | --host=* | --hos=* | --ho=*)
861 host_alias=$ac_optarg ;;
863 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
865 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
867 htmldir=$ac_optarg ;;
869 -includedir | --includedir | --includedi | --included | --include \
870 | --includ | --inclu | --incl | --inc)
871 ac_prev=includedir ;;
872 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
873 | --includ=* | --inclu=* | --incl=* | --inc=*)
874 includedir=$ac_optarg ;;
876 -infodir | --infodir | --infodi | --infod | --info | --inf)
878 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
879 infodir=$ac_optarg ;;
881 -libdir | --libdir | --libdi | --libd)
883 -libdir=* | --libdir=* | --libdi=* | --libd=*)
886 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
887 | --libexe | --libex | --libe)
888 ac_prev=libexecdir ;;
889 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
890 | --libexe=* | --libex=* | --libe=*)
891 libexecdir=$ac_optarg ;;
893 -localedir | --localedir | --localedi | --localed | --locale)
895 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
896 localedir=$ac_optarg ;;
898 -localstatedir | --localstatedir | --localstatedi | --localstated \
899 | --localstate | --localstat | --localsta | --localst | --locals)
900 ac_prev=localstatedir ;;
901 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
902 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
903 localstatedir=$ac_optarg ;;
905 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
907 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
911 # Obsolete; use --without-fp.
914 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
915 | --no-cr | --no-c | -n)
918 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
919 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
922 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
923 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
924 | --oldin | --oldi | --old | --ol | --o)
925 ac_prev=oldincludedir ;;
926 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
927 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
928 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
929 oldincludedir=$ac_optarg ;;
931 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
933 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
936 -program-prefix | --program-prefix | --program-prefi | --program-pref \
937 | --program-pre | --program-pr | --program-p)
938 ac_prev=program_prefix ;;
939 -program-prefix=* | --program-prefix=* | --program-prefi=* \
940 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
941 program_prefix=$ac_optarg ;;
943 -program-suffix | --program-suffix | --program-suffi | --program-suff \
944 | --program-suf | --program-su | --program-s)
945 ac_prev=program_suffix ;;
946 -program-suffix=* | --program-suffix=* | --program-suffi=* \
947 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
948 program_suffix=$ac_optarg ;;
950 -program-transform-name | --program-transform-name \
951 | --program-transform-nam | --program-transform-na \
952 | --program-transform-n | --program-transform- \
953 | --program-transform | --program-transfor \
954 | --program-transfo | --program-transf \
955 | --program-trans | --program-tran \
956 | --progr-tra | --program-tr | --program-t)
957 ac_prev=program_transform_name ;;
958 -program-transform-name=* | --program-transform-name=* \
959 | --program-transform-nam=* | --program-transform-na=* \
960 | --program-transform-n=* | --program-transform-=* \
961 | --program-transform=* | --program-transfor=* \
962 | --program-transfo=* | --program-transf=* \
963 | --program-trans=* | --program-tran=* \
964 | --progr-tra=* | --program-tr=* | --program-t=*)
965 program_transform_name=$ac_optarg ;;
967 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
969 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
972 -psdir | --psdir | --psdi | --psd | --ps)
974 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
977 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
978 | -silent | --silent | --silen | --sile | --sil)
981 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
983 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
985 sbindir=$ac_optarg ;;
987 -sharedstatedir | --sharedstatedir | --sharedstatedi \
988 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
989 | --sharedst | --shareds | --shared | --share | --shar \
991 ac_prev=sharedstatedir ;;
992 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
993 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
994 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
996 sharedstatedir=$ac_optarg ;;
998 -site | --site | --sit)
1000 -site=* | --site=* | --sit=*)
1003 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1005 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1006 srcdir=$ac_optarg ;;
1008 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1009 | --syscon | --sysco | --sysc | --sys | --sy)
1010 ac_prev=sysconfdir ;;
1011 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1012 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1013 sysconfdir=$ac_optarg ;;
1015 -target | --target | --targe | --targ | --tar | --ta | --t)
1016 ac_prev=target_alias ;;
1017 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1018 target_alias=$ac_optarg ;;
1020 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1023 -version | --version | --versio | --versi | --vers | -V)
1024 ac_init_version=: ;;
1027 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1028 # Reject names that are not valid shell variable names.
1029 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1030 { echo "$as_me: error: invalid package name: $ac_package" >&2
1031 { (exit 1); exit 1; }; }
1032 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1033 eval with_$ac_package=\$ac_optarg ;;
1035 -without-* | --without-*)
1036 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1037 # Reject names that are not valid shell variable names.
1038 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1039 { echo "$as_me: error: invalid package name: $ac_package" >&2
1040 { (exit 1); exit 1; }; }
1041 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1042 eval with_$ac_package=no ;;
1045 # Obsolete; use --with-x.
1048 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1049 | --x-incl | --x-inc | --x-in | --x-i)
1050 ac_prev=x_includes ;;
1051 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1052 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1053 x_includes=$ac_optarg ;;
1055 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1056 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1057 ac_prev=x_libraries ;;
1058 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1059 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1060 x_libraries=$ac_optarg ;;
1062 -*) { echo "$as_me: error: unrecognized option: $ac_option
1063 Try \`$0 --help' for more information." >&2
1064 { (exit 1); exit 1; }; }
1068 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1069 # Reject names that are not valid shell variable names.
1070 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1071 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1072 { (exit 1); exit 1; }; }
1073 eval $ac_envvar=\$ac_optarg
1074 export $ac_envvar ;;
1077 # FIXME: should be removed in autoconf 3.0.
1078 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1079 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1080 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1081 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1087 if test -n "$ac_prev"; then
1088 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1089 { echo "$as_me: error: missing argument to $ac_option" >&2
1090 { (exit 1); exit 1; }; }
1093 # Be sure to have absolute directory names.
1094 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1095 datadir sysconfdir sharedstatedir localstatedir includedir \
1096 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1097 libdir localedir mandir
1099 eval ac_val=\$$ac_var
1101 [\\/$]* | ?:[\\/]* ) continue;;
1102 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1104 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1105 { (exit 1); exit 1; }; }
1108 # There might be people who depend on the old broken behavior: `$host'
1109 # used to hold the argument of --host etc.
1110 # FIXME: To remove some day.
1113 target=$target_alias
1115 # FIXME: To remove some day.
1116 if test "x$host_alias" != x; then
1117 if test "x$build_alias" = x; then
1118 cross_compiling=maybe
1119 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1120 If a cross compiler is detected then cross compile mode will be used." >&2
1121 elif test "x$build_alias" != "x$host_alias"; then
1127 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1129 test "$silent" = yes && exec 6>/dev/null
1132 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1133 ac_ls_di=`ls -di .` &&
1134 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1135 { echo "$as_me: error: Working directory cannot be determined" >&2
1136 { (exit 1); exit 1; }; }
1137 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1138 { echo "$as_me: error: pwd does not report name of working directory" >&2
1139 { (exit 1); exit 1; }; }
1142 # Find the source files, if location was not specified.
1143 if test -z "$srcdir"; then
1144 ac_srcdir_defaulted=yes
1145 # Try the directory containing this script, then the parent directory.
1146 ac_confdir=`$as_dirname -- "$0" ||
1147 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1148 X"$0" : 'X\(//\)[^/]' \| \
1149 X"$0" : 'X\(//\)$' \| \
1150 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1152 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1170 if test ! -r "$srcdir/$ac_unique_file"; then
1174 ac_srcdir_defaulted=no
1176 if test ! -r "$srcdir/$ac_unique_file"; then
1177 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1178 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1179 { (exit 1); exit 1; }; }
1181 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1183 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1184 { (exit 1); exit 1; }; }
1186 # When building in place, set srcdir=.
1187 if test "$ac_abs_confdir" = "$ac_pwd"; then
1190 # Remove unnecessary trailing slashes from srcdir.
1191 # Double slashes in file names in object file debugging info
1192 # mess up M-x gdb in Emacs.
1194 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1196 for ac_var in $ac_precious_vars; do
1197 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1198 eval ac_env_${ac_var}_value=\$${ac_var}
1199 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1200 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1204 # Report the --help message.
1206 if test "$ac_init_help" = "long"; then
1207 # Omit some internal or obsolete options to make the list less imposing.
1208 # This message is too long to be a string in the A/UX 3.1 sh.
1210 \`configure' configures polyglot 1.4.32b to adapt to many kinds of systems.
1212 Usage: $0 [OPTION]... [VAR=VALUE]...
1214 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1215 VAR=VALUE. See below for descriptions of some of the useful variables.
1217 Defaults for the options are specified in brackets.
1220 -h, --help display this help and exit
1221 --help=short display options specific to this package
1222 --help=recursive display the short help of all the included packages
1223 -V, --version display version information and exit
1224 -q, --quiet, --silent do not print \`checking...' messages
1225 --cache-file=FILE cache test results in FILE [disabled]
1226 -C, --config-cache alias for \`--cache-file=config.cache'
1227 -n, --no-create do not create output files
1228 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1230 Installation directories:
1231 --prefix=PREFIX install architecture-independent files in PREFIX
1232 [$ac_default_prefix]
1233 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1236 By default, \`make install' will install all the files in
1237 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1238 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1239 for instance \`--prefix=\$HOME'.
1241 For better control, use the options below.
1243 Fine tuning of the installation directories:
1244 --bindir=DIR user executables [EPREFIX/bin]
1245 --sbindir=DIR system admin executables [EPREFIX/sbin]
1246 --libexecdir=DIR program executables [EPREFIX/libexec]
1247 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1248 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1249 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1250 --libdir=DIR object code libraries [EPREFIX/lib]
1251 --includedir=DIR C header files [PREFIX/include]
1252 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1253 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1254 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1255 --infodir=DIR info documentation [DATAROOTDIR/info]
1256 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1257 --mandir=DIR man documentation [DATAROOTDIR/man]
1258 --docdir=DIR documentation root [DATAROOTDIR/doc/polyglot]
1259 --htmldir=DIR html documentation [DOCDIR]
1260 --dvidir=DIR dvi documentation [DOCDIR]
1261 --pdfdir=DIR pdf documentation [DOCDIR]
1262 --psdir=DIR ps documentation [DOCDIR]
1268 --program-prefix=PREFIX prepend PREFIX to installed program names
1269 --program-suffix=SUFFIX append SUFFIX to installed program names
1270 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1274 if test -n "$ac_init_help"; then
1275 case $ac_init_help in
1276 short | recursive ) echo "Configuration of polyglot 1.4.32b:";;
1281 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1282 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1283 --disable-dependency-tracking speeds up one-time build
1284 --enable-dependency-tracking do not reject slow dependency extractors
1286 Some influential environment variables:
1287 CC C compiler command
1288 CFLAGS C compiler flags
1289 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1290 nonstandard directory <lib dir>
1291 LIBS libraries to pass to the linker, e.g. -l<library>
1292 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1293 you have headers in a nonstandard directory <include dir>
1296 Use these variables to override the choices made by `configure' or to help
1297 it to find libraries and programs with nonstandard names/locations.
1299 Report bugs to <michel.vandenbergh@uhasselt.be>.
1304 if test "$ac_init_help" = "recursive"; then
1305 # If there are subdirs, report their specific --help.
1306 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1307 test -d "$ac_dir" || continue
1311 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1313 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1314 # A ".." for each directory in $ac_dir_suffix.
1315 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1316 case $ac_top_builddir_sub in
1317 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1318 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1321 ac_abs_top_builddir=$ac_pwd
1322 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1323 # for backward compatibility:
1324 ac_top_builddir=$ac_top_build_prefix
1327 .) # We are building in place.
1329 ac_top_srcdir=$ac_top_builddir_sub
1330 ac_abs_top_srcdir=$ac_pwd ;;
1331 [\\/]* | ?:[\\/]* ) # Absolute name.
1332 ac_srcdir=$srcdir$ac_dir_suffix;
1333 ac_top_srcdir=$srcdir
1334 ac_abs_top_srcdir=$srcdir ;;
1336 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1337 ac_top_srcdir=$ac_top_build_prefix$srcdir
1338 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1340 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1342 cd "$ac_dir" || { ac_status=$?; continue; }
1343 # Check for guested configure.
1344 if test -f "$ac_srcdir/configure.gnu"; then
1346 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1347 elif test -f "$ac_srcdir/configure"; then
1349 $SHELL "$ac_srcdir/configure" --help=recursive
1351 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1353 cd "$ac_pwd" || { ac_status=$?; break; }
1357 test -n "$ac_init_help" && exit $ac_status
1358 if $ac_init_version; then
1360 polyglot configure 1.4.32b
1361 generated by GNU Autoconf 2.61
1363 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1364 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1365 This configure script is free software; the Free Software Foundation
1366 gives unlimited permission to copy, distribute and modify it.
1370 cat >config.log <<_ACEOF
1371 This file contains any messages produced by compilers while
1372 running configure, to aid debugging if configure makes a mistake.
1374 It was created by polyglot $as_me 1.4.32b, which was
1375 generated by GNU Autoconf 2.61. Invocation command line was
1387 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1388 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1389 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1390 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1391 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1393 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1394 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1396 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1397 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1398 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1399 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1400 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1401 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1402 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1406 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1410 test -z "$as_dir" && as_dir=.
1411 echo "PATH: $as_dir"
1427 # Keep a trace of the command line.
1428 # Strip out --no-create and --no-recursion so they do not pile up.
1429 # Strip out --silent because we don't want to record it for future runs.
1430 # Also quote any args containing shell meta-characters.
1431 # Make two passes to allow for proper duplicate-argument suppression.
1435 ac_must_keep_next=false
1441 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1442 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1443 | -silent | --silent | --silen | --sile | --sil)
1446 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1449 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1451 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1452 if test $ac_must_keep_next = true; then
1453 ac_must_keep_next=false # Got value, back to normal.
1456 *=* | --config-cache | -C | -disable-* | --disable-* \
1457 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1458 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1459 | -with-* | --with-* | -without-* | --without-* | --x)
1460 case "$ac_configure_args0 " in
1461 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1464 -* ) ac_must_keep_next=true ;;
1467 ac_configure_args="$ac_configure_args '$ac_arg'"
1472 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1473 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1475 # When interrupted or exit'd, cleanup temporary files, and complete
1476 # config.log. We remove comments because anyway the quotes in there
1477 # would cause problems or look ugly.
1478 # WARNING: Use '\'' to represent an apostrophe within the trap.
1479 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1480 trap 'exit_status=$?
1481 # Save into config.log some information that might help in debugging.
1486 ## ---------------- ##
1487 ## Cache variables. ##
1488 ## ---------------- ##
1491 # The following way of writing the cache mishandles newlines in values,
1493 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1494 eval ac_val=\$$ac_var
1498 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1499 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1502 _ | IFS | as_nl) ;; #(
1503 *) $as_unset $ac_var ;;
1508 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1509 *${as_nl}ac_space=\ *)
1511 "s/'\''/'\''\\\\'\'''\''/g;
1512 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1515 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1523 ## ----------------- ##
1524 ## Output variables. ##
1525 ## ----------------- ##
1528 for ac_var in $ac_subst_vars
1530 eval ac_val=\$$ac_var
1532 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1534 echo "$ac_var='\''$ac_val'\''"
1538 if test -n "$ac_subst_files"; then
1540 ## ------------------- ##
1541 ## File substitutions. ##
1542 ## ------------------- ##
1545 for ac_var in $ac_subst_files
1547 eval ac_val=\$$ac_var
1549 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1551 echo "$ac_var='\''$ac_val'\''"
1556 if test -s confdefs.h; then
1566 test "$ac_signal" != 0 &&
1567 echo "$as_me: caught signal $ac_signal"
1568 echo "$as_me: exit $exit_status"
1570 rm -f core *.core core.conftest.* &&
1571 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1574 for ac_signal in 1 2 13 15; do
1575 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1579 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1580 rm -f -r conftest* confdefs.h
1582 # Predefined preprocessor variables.
1584 cat >>confdefs.h <<_ACEOF
1585 #define PACKAGE_NAME "$PACKAGE_NAME"
1589 cat >>confdefs.h <<_ACEOF
1590 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1594 cat >>confdefs.h <<_ACEOF
1595 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1599 cat >>confdefs.h <<_ACEOF
1600 #define PACKAGE_STRING "$PACKAGE_STRING"
1604 cat >>confdefs.h <<_ACEOF
1605 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1609 # Let the site file select an alternate cache file if it wants to.
1610 # Prefer explicitly selected file to automatically selected ones.
1611 if test -n "$CONFIG_SITE"; then
1612 set x "$CONFIG_SITE"
1613 elif test "x$prefix" != xNONE; then
1614 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1616 set x "$ac_default_prefix/share/config.site" \
1617 "$ac_default_prefix/etc/config.site"
1622 if test -r "$ac_site_file"; then
1623 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1624 echo "$as_me: loading site script $ac_site_file" >&6;}
1625 sed 's/^/| /' "$ac_site_file" >&5
1630 if test -r "$cache_file"; then
1631 # Some versions of bash will fail to source /dev/null (special
1632 # files actually), so we avoid doing that.
1633 if test -f "$cache_file"; then
1634 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1635 echo "$as_me: loading cache $cache_file" >&6;}
1637 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1638 *) . "./$cache_file";;
1642 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1643 echo "$as_me: creating cache $cache_file" >&6;}
1647 # Check that the precious variables saved in the cache have kept the same
1649 ac_cache_corrupted=false
1650 for ac_var in $ac_precious_vars; do
1651 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1652 eval ac_new_set=\$ac_env_${ac_var}_set
1653 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1654 eval ac_new_val=\$ac_env_${ac_var}_value
1655 case $ac_old_set,$ac_new_set in
1657 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1658 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1659 ac_cache_corrupted=: ;;
1661 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1662 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1663 ac_cache_corrupted=: ;;
1666 if test "x$ac_old_val" != "x$ac_new_val"; then
1667 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1668 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1669 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1670 echo "$as_me: former value: $ac_old_val" >&2;}
1671 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1672 echo "$as_me: current value: $ac_new_val" >&2;}
1673 ac_cache_corrupted=:
1676 # Pass precious variables to config.status.
1677 if test "$ac_new_set" = set; then
1679 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1680 *) ac_arg=$ac_var=$ac_new_val ;;
1682 case " $ac_configure_args " in
1683 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1684 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1688 if $ac_cache_corrupted; then
1689 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1690 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1691 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1692 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1693 { (exit 1); exit 1; }; }
1721 ac_cpp='$CPP $CPPFLAGS'
1722 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1723 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1724 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1727 am__api_version='1.10'
1730 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
1731 if test -f "$ac_dir/install-sh"; then
1733 ac_install_sh="$ac_aux_dir/install-sh -c"
1735 elif test -f "$ac_dir/install.sh"; then
1737 ac_install_sh="$ac_aux_dir/install.sh -c"
1739 elif test -f "$ac_dir/shtool"; then
1741 ac_install_sh="$ac_aux_dir/shtool install -c"
1745 if test -z "$ac_aux_dir"; then
1746 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
1747 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
1748 { (exit 1); exit 1; }; }
1751 # These three variables are undocumented and unsupported,
1752 # and are intended to be withdrawn in a future Autoconf release.
1753 # They can cause serious problems if a builder's source tree is in a directory
1754 # whose full name contains unusual characters.
1755 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1756 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1757 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1760 # Find a good install program. We prefer a C program (faster),
1761 # so one script is as good as another. But avoid the broken or
1762 # incompatible versions:
1763 # SysV /etc/install, /usr/sbin/install
1764 # SunOS /usr/etc/install
1765 # IRIX /sbin/install
1767 # AmigaOS /C/install, which installs bootblocks on floppy discs
1768 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1769 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1770 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1771 # OS/2's system install, which has a completely different semantic
1772 # ./install, which can be erroneously created by make from ./install.sh.
1773 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1774 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
1775 if test -z "$INSTALL"; then
1776 if test "${ac_cv_path_install+set}" = set; then
1777 echo $ECHO_N "(cached) $ECHO_C" >&6
1779 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1783 test -z "$as_dir" && as_dir=.
1784 # Account for people who put trailing slashes in PATH elements.
1786 ./ | .// | /cC/* | \
1787 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1788 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1791 # OSF1 and SCO ODT 3.0 have their own names for install.
1792 # Don't use installbsd from OSF since it installs stuff as root
1794 for ac_prog in ginstall scoinst install; do
1795 for ac_exec_ext in '' $ac_executable_extensions; do
1796 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
1797 if test $ac_prog = install &&
1798 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1799 # AIX install. It has an incompatible calling convention.
1801 elif test $ac_prog = install &&
1802 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1803 # program-specific install script used by HP pwplus--don't use.
1806 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1819 if test "${ac_cv_path_install+set}" = set; then
1820 INSTALL=$ac_cv_path_install
1822 # As a last resort, use the slow shell script. Don't cache a
1823 # value for INSTALL within a source directory, because that will
1824 # break other packages using the cache if that directory is
1825 # removed, or if the value is a relative name.
1826 INSTALL=$ac_install_sh
1829 { echo "$as_me:$LINENO: result: $INSTALL" >&5
1830 echo "${ECHO_T}$INSTALL" >&6; }
1832 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1833 # It thinks the first close brace ends the variable substitution.
1834 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1836 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1838 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1840 { echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1841 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; }
1844 echo timestamp > conftest.file
1845 # Do `set' in a subshell so we don't clobber the current shell's
1846 # arguments. Must try -L first in case configure is actually a
1847 # symlink; some systems play weird games with the mod time of symlinks
1848 # (eg FreeBSD returns the mod time of the symlink's containing
1851 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1852 if test "$*" = "X"; then
1854 set X `ls -t $srcdir/configure conftest.file`
1857 if test "$*" != "X $srcdir/configure conftest.file" \
1858 && test "$*" != "X conftest.file $srcdir/configure"; then
1860 # If neither matched, then we have a broken ls. This can happen
1861 # if, for instance, CONFIG_SHELL is bash and it inherits a
1862 # broken ls alias from the environment. This has actually
1863 # happened. Such a system could not be considered "sane".
1864 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
1865 alias in your environment" >&5
1866 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
1867 alias in your environment" >&2;}
1868 { (exit 1); exit 1; }; }
1871 test "$2" = conftest.file
1877 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1878 Check your system clock" >&5
1879 echo "$as_me: error: newly created file is older than distributed files!
1880 Check your system clock" >&2;}
1881 { (exit 1); exit 1; }; }
1883 { echo "$as_me:$LINENO: result: yes" >&5
1884 echo "${ECHO_T}yes" >&6; }
1885 test "$program_prefix" != NONE &&
1886 program_transform_name="s&^&$program_prefix&;$program_transform_name"
1887 # Use a double $ so make ignores it.
1888 test "$program_suffix" != NONE &&
1889 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
1890 # Double any \ or $. echo might interpret backslashes.
1891 # By default was `s,x,x', remove it if useless.
1892 cat <<\_ACEOF >conftest.sed
1893 s/[\\$]/&&/g;s/;s,x,x,$//
1895 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1898 # expand $ac_aux_dir to an absolute path
1899 am_aux_dir=`cd $ac_aux_dir && pwd`
1901 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1902 # Use eval to expand $SHELL
1903 if eval "$MISSING --run true"; then
1904 am_missing_run="$MISSING --run "
1907 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1908 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1911 { echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
1912 echo $ECHO_N "checking for a thread-safe mkdir -p... $ECHO_C" >&6; }
1913 if test -z "$MKDIR_P"; then
1914 if test "${ac_cv_path_mkdir+set}" = set; then
1915 echo $ECHO_N "(cached) $ECHO_C" >&6
1917 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1918 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
1921 test -z "$as_dir" && as_dir=.
1922 for ac_prog in mkdir gmkdir; do
1923 for ac_exec_ext in '' $ac_executable_extensions; do
1924 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
1925 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
1926 'mkdir (GNU coreutils) '* | \
1927 'mkdir (coreutils) '* | \
1928 'mkdir (fileutils) '4.1*)
1929 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
1939 if test "${ac_cv_path_mkdir+set}" = set; then
1940 MKDIR_P="$ac_cv_path_mkdir -p"
1942 # As a last resort, use the slow shell script. Don't cache a
1943 # value for MKDIR_P within a source directory, because that will
1944 # break other packages using the cache if that directory is
1945 # removed, or if the value is a relative name.
1946 test -d ./--version && rmdir ./--version
1947 MKDIR_P="$ac_install_sh -d"
1950 { echo "$as_me:$LINENO: result: $MKDIR_P" >&5
1951 echo "${ECHO_T}$MKDIR_P" >&6; }
1955 [\\/$]* | ?:[\\/]*) ;;
1956 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
1959 for ac_prog in gawk mawk nawk awk
1961 # Extract the first word of "$ac_prog", so it can be a program name with args.
1962 set dummy $ac_prog; ac_word=$2
1963 { echo "$as_me:$LINENO: checking for $ac_word" >&5
1964 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1965 if test "${ac_cv_prog_AWK+set}" = set; then
1966 echo $ECHO_N "(cached) $ECHO_C" >&6
1968 if test -n "$AWK"; then
1969 ac_cv_prog_AWK="$AWK" # Let the user override the test.
1971 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1975 test -z "$as_dir" && as_dir=.
1976 for ac_exec_ext in '' $ac_executable_extensions; do
1977 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1978 ac_cv_prog_AWK="$ac_prog"
1979 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1989 if test -n "$AWK"; then
1990 { echo "$as_me:$LINENO: result: $AWK" >&5
1991 echo "${ECHO_T}$AWK" >&6; }
1993 { echo "$as_me:$LINENO: result: no" >&5
1994 echo "${ECHO_T}no" >&6; }
1998 test -n "$AWK" && break
2001 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2002 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
2003 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2004 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2005 echo $ECHO_N "(cached) $ECHO_C" >&6
2007 cat >conftest.make <<\_ACEOF
2010 @echo '@@@%%%=$(MAKE)=@@@%%%'
2012 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2013 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2015 eval ac_cv_prog_make_${ac_make}_set=yes;;
2017 eval ac_cv_prog_make_${ac_make}_set=no;;
2021 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2022 { echo "$as_me:$LINENO: result: yes" >&5
2023 echo "${ECHO_T}yes" >&6; }
2026 { echo "$as_me:$LINENO: result: no" >&5
2027 echo "${ECHO_T}no" >&6; }
2028 SET_MAKE="MAKE=${MAKE-make}"
2031 rm -rf .tst 2>/dev/null
2032 mkdir .tst 2>/dev/null
2033 if test -d .tst; then
2038 rmdir .tst 2>/dev/null
2040 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2041 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2042 # is not polluted with repeated "-I."
2043 am__isrc=' -I$(srcdir)'
2044 # test to see if srcdir already configured
2045 if test -f $srcdir/config.status; then
2046 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2047 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2048 { (exit 1); exit 1; }; }
2052 # test whether we have cygpath
2053 if test -z "$CYGPATH_W"; then
2054 if (cygpath --version) >/dev/null 2>/dev/null; then
2055 CYGPATH_W='cygpath -w'
2062 # Define the identity of the package.
2067 cat >>confdefs.h <<_ACEOF
2068 #define PACKAGE "$PACKAGE"
2072 cat >>confdefs.h <<_ACEOF
2073 #define VERSION "$VERSION"
2076 # Some tools Automake needs.
2078 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2081 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2084 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2087 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2090 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2092 install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"}
2094 # Installed binaries are usually stripped using `strip' when the user
2095 # run `make install-strip'. However `strip' might not be the right
2096 # tool to use in cross-compilation environments, therefore Automake
2097 # will honor the `STRIP' environment variable to overrule this program.
2098 if test "$cross_compiling" != no; then
2099 if test -n "$ac_tool_prefix"; then
2100 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2101 set dummy ${ac_tool_prefix}strip; ac_word=$2
2102 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2103 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2104 if test "${ac_cv_prog_STRIP+set}" = set; then
2105 echo $ECHO_N "(cached) $ECHO_C" >&6
2107 if test -n "$STRIP"; then
2108 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2110 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2114 test -z "$as_dir" && as_dir=.
2115 for ac_exec_ext in '' $ac_executable_extensions; do
2116 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2117 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2118 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2127 STRIP=$ac_cv_prog_STRIP
2128 if test -n "$STRIP"; then
2129 { echo "$as_me:$LINENO: result: $STRIP" >&5
2130 echo "${ECHO_T}$STRIP" >&6; }
2132 { echo "$as_me:$LINENO: result: no" >&5
2133 echo "${ECHO_T}no" >&6; }
2138 if test -z "$ac_cv_prog_STRIP"; then
2140 # Extract the first word of "strip", so it can be a program name with args.
2141 set dummy strip; ac_word=$2
2142 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2143 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2144 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2145 echo $ECHO_N "(cached) $ECHO_C" >&6
2147 if test -n "$ac_ct_STRIP"; then
2148 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2150 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2154 test -z "$as_dir" && as_dir=.
2155 for ac_exec_ext in '' $ac_executable_extensions; do
2156 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2157 ac_cv_prog_ac_ct_STRIP="strip"
2158 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2167 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2168 if test -n "$ac_ct_STRIP"; then
2169 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2170 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
2172 { echo "$as_me:$LINENO: result: no" >&5
2173 echo "${ECHO_T}no" >&6; }
2176 if test "x$ac_ct_STRIP" = x; then
2179 case $cross_compiling:$ac_tool_warned in
2181 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2182 whose name does not start with the host triplet. If you think this
2183 configuration is useful to you, please write to autoconf@gnu.org." >&5
2184 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2185 whose name does not start with the host triplet. If you think this
2186 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2187 ac_tool_warned=yes ;;
2192 STRIP="$ac_cv_prog_STRIP"
2196 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2198 # We need awk for the "check" target. The system "awk" is bad on
2200 # Always define AMTAR for backward compatibility.
2202 AMTAR=${AMTAR-"${am_missing_run}tar"}
2204 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2211 ac_config_headers="$ac_config_headers config.h"
2214 # Checks for programs.
2216 ac_cpp='$CPP $CPPFLAGS'
2217 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2218 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2219 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2220 if test -n "$ac_tool_prefix"; then
2221 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2222 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2223 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2224 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2225 if test "${ac_cv_prog_CC+set}" = set; then
2226 echo $ECHO_N "(cached) $ECHO_C" >&6
2228 if test -n "$CC"; then
2229 ac_cv_prog_CC="$CC" # Let the user override the test.
2231 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2235 test -z "$as_dir" && as_dir=.
2236 for ac_exec_ext in '' $ac_executable_extensions; do
2237 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2238 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2239 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2249 if test -n "$CC"; then
2250 { echo "$as_me:$LINENO: result: $CC" >&5
2251 echo "${ECHO_T}$CC" >&6; }
2253 { echo "$as_me:$LINENO: result: no" >&5
2254 echo "${ECHO_T}no" >&6; }
2259 if test -z "$ac_cv_prog_CC"; then
2261 # Extract the first word of "gcc", so it can be a program name with args.
2262 set dummy gcc; ac_word=$2
2263 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2264 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2265 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2266 echo $ECHO_N "(cached) $ECHO_C" >&6
2268 if test -n "$ac_ct_CC"; then
2269 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2271 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2275 test -z "$as_dir" && as_dir=.
2276 for ac_exec_ext in '' $ac_executable_extensions; do
2277 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2278 ac_cv_prog_ac_ct_CC="gcc"
2279 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2288 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2289 if test -n "$ac_ct_CC"; then
2290 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2291 echo "${ECHO_T}$ac_ct_CC" >&6; }
2293 { echo "$as_me:$LINENO: result: no" >&5
2294 echo "${ECHO_T}no" >&6; }
2297 if test "x$ac_ct_CC" = x; then
2300 case $cross_compiling:$ac_tool_warned in
2302 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2303 whose name does not start with the host triplet. If you think this
2304 configuration is useful to you, please write to autoconf@gnu.org." >&5
2305 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2306 whose name does not start with the host triplet. If you think this
2307 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2308 ac_tool_warned=yes ;;
2316 if test -z "$CC"; then
2317 if test -n "$ac_tool_prefix"; then
2318 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2319 set dummy ${ac_tool_prefix}cc; ac_word=$2
2320 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2321 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2322 if test "${ac_cv_prog_CC+set}" = set; then
2323 echo $ECHO_N "(cached) $ECHO_C" >&6
2325 if test -n "$CC"; then
2326 ac_cv_prog_CC="$CC" # Let the user override the test.
2328 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2332 test -z "$as_dir" && as_dir=.
2333 for ac_exec_ext in '' $ac_executable_extensions; do
2334 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2335 ac_cv_prog_CC="${ac_tool_prefix}cc"
2336 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2346 if test -n "$CC"; then
2347 { echo "$as_me:$LINENO: result: $CC" >&5
2348 echo "${ECHO_T}$CC" >&6; }
2350 { echo "$as_me:$LINENO: result: no" >&5
2351 echo "${ECHO_T}no" >&6; }
2357 if test -z "$CC"; then
2358 # Extract the first word of "cc", so it can be a program name with args.
2359 set dummy cc; ac_word=$2
2360 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2361 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2362 if test "${ac_cv_prog_CC+set}" = set; then
2363 echo $ECHO_N "(cached) $ECHO_C" >&6
2365 if test -n "$CC"; then
2366 ac_cv_prog_CC="$CC" # Let the user override the test.
2369 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2373 test -z "$as_dir" && as_dir=.
2374 for ac_exec_ext in '' $ac_executable_extensions; do
2375 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2376 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2377 ac_prog_rejected=yes
2381 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2388 if test $ac_prog_rejected = yes; then
2389 # We found a bogon in the path, so make sure we never use it.
2390 set dummy $ac_cv_prog_CC
2392 if test $# != 0; then
2393 # We chose a different compiler from the bogus one.
2394 # However, it has the same basename, so the bogon will be chosen
2395 # first if we set CC to just the basename; use the full file name.
2397 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2403 if test -n "$CC"; then
2404 { echo "$as_me:$LINENO: result: $CC" >&5
2405 echo "${ECHO_T}$CC" >&6; }
2407 { echo "$as_me:$LINENO: result: no" >&5
2408 echo "${ECHO_T}no" >&6; }
2413 if test -z "$CC"; then
2414 if test -n "$ac_tool_prefix"; then
2415 for ac_prog in cl.exe
2417 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2418 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2419 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2420 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2421 if test "${ac_cv_prog_CC+set}" = set; then
2422 echo $ECHO_N "(cached) $ECHO_C" >&6
2424 if test -n "$CC"; then
2425 ac_cv_prog_CC="$CC" # Let the user override the test.
2427 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2431 test -z "$as_dir" && as_dir=.
2432 for ac_exec_ext in '' $ac_executable_extensions; do
2433 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2434 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2435 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2445 if test -n "$CC"; then
2446 { echo "$as_me:$LINENO: result: $CC" >&5
2447 echo "${ECHO_T}$CC" >&6; }
2449 { echo "$as_me:$LINENO: result: no" >&5
2450 echo "${ECHO_T}no" >&6; }
2454 test -n "$CC" && break
2457 if test -z "$CC"; then
2459 for ac_prog in cl.exe
2461 # Extract the first word of "$ac_prog", so it can be a program name with args.
2462 set dummy $ac_prog; ac_word=$2
2463 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2464 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2465 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2466 echo $ECHO_N "(cached) $ECHO_C" >&6
2468 if test -n "$ac_ct_CC"; then
2469 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2471 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2475 test -z "$as_dir" && as_dir=.
2476 for ac_exec_ext in '' $ac_executable_extensions; do
2477 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2478 ac_cv_prog_ac_ct_CC="$ac_prog"
2479 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2488 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2489 if test -n "$ac_ct_CC"; then
2490 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2491 echo "${ECHO_T}$ac_ct_CC" >&6; }
2493 { echo "$as_me:$LINENO: result: no" >&5
2494 echo "${ECHO_T}no" >&6; }
2498 test -n "$ac_ct_CC" && break
2501 if test "x$ac_ct_CC" = x; then
2504 case $cross_compiling:$ac_tool_warned in
2506 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2507 whose name does not start with the host triplet. If you think this
2508 configuration is useful to you, please write to autoconf@gnu.org." >&5
2509 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2510 whose name does not start with the host triplet. If you think this
2511 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2512 ac_tool_warned=yes ;;
2521 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2522 See \`config.log' for more details." >&5
2523 echo "$as_me: error: no acceptable C compiler found in \$PATH
2524 See \`config.log' for more details." >&2;}
2525 { (exit 1); exit 1; }; }
2527 # Provide some information about the compiler.
2528 echo "$as_me:$LINENO: checking for C compiler version" >&5
2529 ac_compiler=`set X $ac_compile; echo $2`
2530 { (ac_try="$ac_compiler --version >&5"
2532 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2533 *) ac_try_echo=$ac_try;;
2535 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2536 (eval "$ac_compiler --version >&5") 2>&5
2538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2539 (exit $ac_status); }
2540 { (ac_try="$ac_compiler -v >&5"
2542 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2543 *) ac_try_echo=$ac_try;;
2545 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2546 (eval "$ac_compiler -v >&5") 2>&5
2548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2549 (exit $ac_status); }
2550 { (ac_try="$ac_compiler -V >&5"
2552 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2553 *) ac_try_echo=$ac_try;;
2555 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2556 (eval "$ac_compiler -V >&5") 2>&5
2558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2559 (exit $ac_status); }
2561 cat >conftest.$ac_ext <<_ACEOF
2564 cat confdefs.h >>conftest.$ac_ext
2565 cat >>conftest.$ac_ext <<_ACEOF
2566 /* end confdefs.h. */
2576 ac_clean_files_save=$ac_clean_files
2577 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2578 # Try to create an executable without -o first, disregard a.out.
2579 # It will help us diagnose broken compilers, and finding out an intuition
2581 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2582 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2583 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2585 # List of possible output files, starting from the most likely.
2586 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2587 # only as a last resort. b.out is created by i960 compilers.
2588 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2590 # The IRIX 6 linker writes into existing files which may not be
2591 # executable, retaining their permissions. Remove them first so a
2592 # subsequent execution test works.
2594 for ac_file in $ac_files
2597 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2598 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2603 if { (ac_try="$ac_link_default"
2605 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2606 *) ac_try_echo=$ac_try;;
2608 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2609 (eval "$ac_link_default") 2>&5
2611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2612 (exit $ac_status); }; then
2613 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2614 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2615 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2616 # so that the user can short-circuit this test for compilers unknown to
2618 for ac_file in $ac_files ''
2620 test -f "$ac_file" || continue
2622 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2625 # We found the default executable, but exeext='' is most
2629 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2631 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2633 # We set ac_cv_exeext here because the later test for it is not
2634 # safe: cross compilers may not add the suffix if given an `-o'
2635 # argument, so we may need to know it at that point already.
2636 # Even if this section looks crufty: it has the advantage of
2643 test "$ac_cv_exeext" = no && ac_cv_exeext=
2649 { echo "$as_me:$LINENO: result: $ac_file" >&5
2650 echo "${ECHO_T}$ac_file" >&6; }
2651 if test -z "$ac_file"; then
2652 echo "$as_me: failed program was:" >&5
2653 sed 's/^/| /' conftest.$ac_ext >&5
2655 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2656 See \`config.log' for more details." >&5
2657 echo "$as_me: error: C compiler cannot create executables
2658 See \`config.log' for more details." >&2;}
2659 { (exit 77); exit 77; }; }
2662 ac_exeext=$ac_cv_exeext
2664 # Check that the compiler produces executables we can run. If not, either
2665 # the compiler is broken, or we cross compile.
2666 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2667 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2668 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2669 # If not cross compiling, check that we can run a simple program.
2670 if test "$cross_compiling" != yes; then
2671 if { ac_try='./$ac_file'
2672 { (case "(($ac_try" in
2673 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2674 *) ac_try_echo=$ac_try;;
2676 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2677 (eval "$ac_try") 2>&5
2679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2680 (exit $ac_status); }; }; then
2683 if test "$cross_compiling" = maybe; then
2686 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2687 If you meant to cross compile, use \`--host'.
2688 See \`config.log' for more details." >&5
2689 echo "$as_me: error: cannot run C compiled programs.
2690 If you meant to cross compile, use \`--host'.
2691 See \`config.log' for more details." >&2;}
2692 { (exit 1); exit 1; }; }
2696 { echo "$as_me:$LINENO: result: yes" >&5
2697 echo "${ECHO_T}yes" >&6; }
2699 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2700 ac_clean_files=$ac_clean_files_save
2701 # Check that the compiler produces executables we can run. If not, either
2702 # the compiler is broken, or we cross compile.
2703 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2704 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2705 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2706 echo "${ECHO_T}$cross_compiling" >&6; }
2708 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2709 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2710 if { (ac_try="$ac_link"
2712 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2713 *) ac_try_echo=$ac_try;;
2715 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2716 (eval "$ac_link") 2>&5
2718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2719 (exit $ac_status); }; then
2720 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2721 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2722 # work properly (i.e., refer to `conftest.exe'), while it won't with
2724 for ac_file in conftest.exe conftest conftest.*; do
2725 test -f "$ac_file" || continue
2727 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2728 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2734 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2735 See \`config.log' for more details." >&5
2736 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2737 See \`config.log' for more details." >&2;}
2738 { (exit 1); exit 1; }; }
2741 rm -f conftest$ac_cv_exeext
2742 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2743 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2745 rm -f conftest.$ac_ext
2746 EXEEXT=$ac_cv_exeext
2748 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2749 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2750 if test "${ac_cv_objext+set}" = set; then
2751 echo $ECHO_N "(cached) $ECHO_C" >&6
2753 cat >conftest.$ac_ext <<_ACEOF
2756 cat confdefs.h >>conftest.$ac_ext
2757 cat >>conftest.$ac_ext <<_ACEOF
2758 /* end confdefs.h. */
2768 rm -f conftest.o conftest.obj
2769 if { (ac_try="$ac_compile"
2771 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2772 *) ac_try_echo=$ac_try;;
2774 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2775 (eval "$ac_compile") 2>&5
2777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2778 (exit $ac_status); }; then
2779 for ac_file in conftest.o conftest.obj conftest.*; do
2780 test -f "$ac_file" || continue;
2782 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2783 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2788 echo "$as_me: failed program was:" >&5
2789 sed 's/^/| /' conftest.$ac_ext >&5
2791 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2792 See \`config.log' for more details." >&5
2793 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2794 See \`config.log' for more details." >&2;}
2795 { (exit 1); exit 1; }; }
2798 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2800 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2801 echo "${ECHO_T}$ac_cv_objext" >&6; }
2802 OBJEXT=$ac_cv_objext
2804 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2805 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2806 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2807 echo $ECHO_N "(cached) $ECHO_C" >&6
2809 cat >conftest.$ac_ext <<_ACEOF
2812 cat confdefs.h >>conftest.$ac_ext
2813 cat >>conftest.$ac_ext <<_ACEOF
2814 /* end confdefs.h. */
2827 rm -f conftest.$ac_objext
2828 if { (ac_try="$ac_compile"
2830 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2831 *) ac_try_echo=$ac_try;;
2833 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2834 (eval "$ac_compile") 2>conftest.er1
2836 grep -v '^ *+' conftest.er1 >conftest.err
2838 cat conftest.err >&5
2839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2840 (exit $ac_status); } && {
2841 test -z "$ac_c_werror_flag" ||
2842 test ! -s conftest.err
2843 } && test -s conftest.$ac_objext; then
2846 echo "$as_me: failed program was:" >&5
2847 sed 's/^/| /' conftest.$ac_ext >&5
2852 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2853 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2856 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2857 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2858 GCC=`test $ac_compiler_gnu = yes && echo yes`
2859 ac_test_CFLAGS=${CFLAGS+set}
2860 ac_save_CFLAGS=$CFLAGS
2861 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2862 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2863 if test "${ac_cv_prog_cc_g+set}" = set; then
2864 echo $ECHO_N "(cached) $ECHO_C" >&6
2866 ac_save_c_werror_flag=$ac_c_werror_flag
2867 ac_c_werror_flag=yes
2870 cat >conftest.$ac_ext <<_ACEOF
2873 cat confdefs.h >>conftest.$ac_ext
2874 cat >>conftest.$ac_ext <<_ACEOF
2875 /* end confdefs.h. */
2885 rm -f conftest.$ac_objext
2886 if { (ac_try="$ac_compile"
2888 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2889 *) ac_try_echo=$ac_try;;
2891 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2892 (eval "$ac_compile") 2>conftest.er1
2894 grep -v '^ *+' conftest.er1 >conftest.err
2896 cat conftest.err >&5
2897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2898 (exit $ac_status); } && {
2899 test -z "$ac_c_werror_flag" ||
2900 test ! -s conftest.err
2901 } && test -s conftest.$ac_objext; then
2904 echo "$as_me: failed program was:" >&5
2905 sed 's/^/| /' conftest.$ac_ext >&5
2908 cat >conftest.$ac_ext <<_ACEOF
2911 cat confdefs.h >>conftest.$ac_ext
2912 cat >>conftest.$ac_ext <<_ACEOF
2913 /* end confdefs.h. */
2923 rm -f conftest.$ac_objext
2924 if { (ac_try="$ac_compile"
2926 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2927 *) ac_try_echo=$ac_try;;
2929 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2930 (eval "$ac_compile") 2>conftest.er1
2932 grep -v '^ *+' conftest.er1 >conftest.err
2934 cat conftest.err >&5
2935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2936 (exit $ac_status); } && {
2937 test -z "$ac_c_werror_flag" ||
2938 test ! -s conftest.err
2939 } && test -s conftest.$ac_objext; then
2942 echo "$as_me: failed program was:" >&5
2943 sed 's/^/| /' conftest.$ac_ext >&5
2945 ac_c_werror_flag=$ac_save_c_werror_flag
2947 cat >conftest.$ac_ext <<_ACEOF
2950 cat confdefs.h >>conftest.$ac_ext
2951 cat >>conftest.$ac_ext <<_ACEOF
2952 /* end confdefs.h. */
2962 rm -f conftest.$ac_objext
2963 if { (ac_try="$ac_compile"
2965 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2966 *) ac_try_echo=$ac_try;;
2968 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2969 (eval "$ac_compile") 2>conftest.er1
2971 grep -v '^ *+' conftest.er1 >conftest.err
2973 cat conftest.err >&5
2974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2975 (exit $ac_status); } && {
2976 test -z "$ac_c_werror_flag" ||
2977 test ! -s conftest.err
2978 } && test -s conftest.$ac_objext; then
2981 echo "$as_me: failed program was:" >&5
2982 sed 's/^/| /' conftest.$ac_ext >&5
2987 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2990 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2993 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2994 ac_c_werror_flag=$ac_save_c_werror_flag
2996 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2997 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
2998 if test "$ac_test_CFLAGS" = set; then
2999 CFLAGS=$ac_save_CFLAGS
3000 elif test $ac_cv_prog_cc_g = yes; then
3001 if test "$GCC" = yes; then
3007 if test "$GCC" = yes; then
3013 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3014 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3015 if test "${ac_cv_prog_cc_c89+set}" = set; then
3016 echo $ECHO_N "(cached) $ECHO_C" >&6
3018 ac_cv_prog_cc_c89=no
3020 cat >conftest.$ac_ext <<_ACEOF
3023 cat confdefs.h >>conftest.$ac_ext
3024 cat >>conftest.$ac_ext <<_ACEOF
3025 /* end confdefs.h. */
3028 #include <sys/types.h>
3029 #include <sys/stat.h>
3030 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3031 struct buf { int x; };
3032 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3033 static char *e (p, i)
3039 static char *f (char * (*g) (char **, int), char **p, ...)
3044 s = g (p, va_arg (v,int));
3049 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3050 function prototypes and stuff, but not '\xHH' hex character constants.
3051 These don't provoke an error unfortunately, instead are silently treated
3052 as 'x'. The following induces an error, until -std is added to get
3053 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3054 array size at least. It's necessary to write '\x00'==0 to get something
3055 that's true only with -std. */
3056 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3058 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3059 inside strings and character constants. */
3061 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3063 int test (int i, double x);
3064 struct s1 {int (*f) (int a);};
3065 struct s2 {int (*f) (double a);};
3066 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3072 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3077 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3078 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3080 CC="$ac_save_CC $ac_arg"
3081 rm -f conftest.$ac_objext
3082 if { (ac_try="$ac_compile"
3084 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3085 *) ac_try_echo=$ac_try;;
3087 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3088 (eval "$ac_compile") 2>conftest.er1
3090 grep -v '^ *+' conftest.er1 >conftest.err
3092 cat conftest.err >&5
3093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3094 (exit $ac_status); } && {
3095 test -z "$ac_c_werror_flag" ||
3096 test ! -s conftest.err
3097 } && test -s conftest.$ac_objext; then
3098 ac_cv_prog_cc_c89=$ac_arg
3100 echo "$as_me: failed program was:" >&5
3101 sed 's/^/| /' conftest.$ac_ext >&5
3106 rm -f core conftest.err conftest.$ac_objext
3107 test "x$ac_cv_prog_cc_c89" != "xno" && break
3109 rm -f conftest.$ac_ext
3114 case "x$ac_cv_prog_cc_c89" in
3116 { echo "$as_me:$LINENO: result: none needed" >&5
3117 echo "${ECHO_T}none needed" >&6; } ;;
3119 { echo "$as_me:$LINENO: result: unsupported" >&5
3120 echo "${ECHO_T}unsupported" >&6; } ;;
3122 CC="$CC $ac_cv_prog_cc_c89"
3123 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3124 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3129 ac_cpp='$CPP $CPPFLAGS'
3130 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3131 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3132 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3133 DEPDIR="${am__leading_dot}deps"
3135 ac_config_commands="$ac_config_commands depfiles"
3138 am_make=${MAKE-make}
3139 cat > confinc << 'END'
3144 # If we don't find an include directive, just comment out the code.
3145 { echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
3146 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; }
3150 # First try GNU make style include.
3151 echo "include confinc" > confmf
3152 # We grep out `Entering directory' and `Leaving directory'
3153 # messages which can occur if `w' ends up in MAKEFLAGS.
3154 # In particular we don't look at `^make:' because GNU make might
3155 # be invoked under some other name (usually "gmake"), in which
3156 # case it prints its new name instead of `make'.
3157 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
3162 # Now try BSD make style include.
3163 if test "$am__include" = "#"; then
3164 echo '.include "confinc"' > confmf
3165 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
3166 am__include=.include
3173 { echo "$as_me:$LINENO: result: $_am_result" >&5
3174 echo "${ECHO_T}$_am_result" >&6; }
3175 rm -f confinc confmf
3177 # Check whether --enable-dependency-tracking was given.
3178 if test "${enable_dependency_tracking+set}" = set; then
3179 enableval=$enable_dependency_tracking;
3182 if test "x$enable_dependency_tracking" != xno; then
3183 am_depcomp="$ac_aux_dir/depcomp"
3186 if test "x$enable_dependency_tracking" != xno; then
3196 depcc="$CC" am_compiler_list=
3198 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3199 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
3200 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3201 echo $ECHO_N "(cached) $ECHO_C" >&6
3203 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3204 # We make a subdir and do the tests there. Otherwise we can end up
3205 # making bogus files that we don't know about and never remove. For
3206 # instance it was reported that on HP-UX the gcc test will end up
3207 # making a dummy file named `D' -- because `-MD' means `put the output
3210 # Copy depcomp to subdir because otherwise we won't find it if we're
3211 # using a relative directory.
3212 cp "$am_depcomp" conftest.dir
3214 # We will build objects and dependencies in a subdirectory because
3215 # it helps to detect inapplicable dependency modes. For instance
3216 # both Tru64's cc and ICC support -MD to output dependencies as a
3217 # side effect of compilation, but ICC will put the dependencies in
3218 # the current directory while Tru64 will put them in the object
3222 am_cv_CC_dependencies_compiler_type=none
3223 if test "$am_compiler_list" = ""; then
3224 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3226 for depmode in $am_compiler_list; do
3227 # Setup a source with many dependencies, because some compilers
3228 # like to wrap large dependency lists on column 80 (with \), and
3229 # we should not choose a depcomp mode which is confused by this.
3231 # We need to recreate these files for each test, as the compiler may
3232 # overwrite some of them when testing with obscure command lines.
3233 # This happens at least with the AIX C compiler.
3235 for i in 1 2 3 4 5 6; do
3236 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3237 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3238 # Solaris 8's {/usr,}/bin/sh.
3239 touch sub/conftst$i.h
3241 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3245 # after this tag, mechanisms are not by side-effect, so they'll
3246 # only be used when explicitly requested
3247 if test "x$enable_dependency_tracking" = xyes; then
3255 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3256 # mode. It turns out that the SunPro C++ compiler does not properly
3257 # handle `-M -o', and we need to detect this.
3258 if depmode=$depmode \
3259 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3260 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3261 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3262 >/dev/null 2>conftest.err &&
3263 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3264 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3265 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3266 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3267 # icc doesn't choke on unknown options, it will just issue warnings
3268 # or remarks (even with -Werror). So we grep stderr for any message
3269 # that says an option was ignored or not supported.
3270 # When given -MP, icc 7.0 and 7.1 complain thusly:
3271 # icc: Command line warning: ignoring option '-M'; no argument required
3272 # The diagnosis changed in icc 8.0:
3273 # icc: Command line remark: option '-MP' not supported
3274 if (grep 'ignoring option' conftest.err ||
3275 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3276 am_cv_CC_dependencies_compiler_type=$depmode
3285 am_cv_CC_dependencies_compiler_type=none
3289 { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3290 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
3291 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3294 test "x$enable_dependency_tracking" != xno \
3295 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3297 am__fastdepCC_FALSE='#'
3299 am__fastdepCC_TRUE='#'
3300 am__fastdepCC_FALSE=
3305 # Checks for libraries.
3309 { echo "$as_me:$LINENO: checking for main in -lm" >&5
3310 echo $ECHO_N "checking for main in -lm... $ECHO_C" >&6; }
3311 if test "${ac_cv_lib_m_main+set}" = set; then
3312 echo $ECHO_N "(cached) $ECHO_C" >&6
3314 ac_check_lib_save_LIBS=$LIBS
3316 cat >conftest.$ac_ext <<_ACEOF
3319 cat confdefs.h >>conftest.$ac_ext
3320 cat >>conftest.$ac_ext <<_ACEOF
3321 /* end confdefs.h. */
3332 rm -f conftest.$ac_objext conftest$ac_exeext
3333 if { (ac_try="$ac_link"
3335 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3336 *) ac_try_echo=$ac_try;;
3338 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3339 (eval "$ac_link") 2>conftest.er1
3341 grep -v '^ *+' conftest.er1 >conftest.err
3343 cat conftest.err >&5
3344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3345 (exit $ac_status); } && {
3346 test -z "$ac_c_werror_flag" ||
3347 test ! -s conftest.err
3348 } && test -s conftest$ac_exeext &&
3349 $as_test_x conftest$ac_exeext; then
3350 ac_cv_lib_m_main=yes
3352 echo "$as_me: failed program was:" >&5
3353 sed 's/^/| /' conftest.$ac_ext >&5
3358 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
3359 conftest$ac_exeext conftest.$ac_ext
3360 LIBS=$ac_check_lib_save_LIBS
3362 { echo "$as_me:$LINENO: result: $ac_cv_lib_m_main" >&5
3363 echo "${ECHO_T}$ac_cv_lib_m_main" >&6; }
3364 if test $ac_cv_lib_m_main = yes; then
3365 cat >>confdefs.h <<_ACEOF
3374 # Checks for header files.
3376 ac_cpp='$CPP $CPPFLAGS'
3377 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3378 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3379 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3380 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3381 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3382 # On Suns, sometimes $CPP names a directory.
3383 if test -n "$CPP" && test -d "$CPP"; then
3386 if test -z "$CPP"; then
3387 if test "${ac_cv_prog_CPP+set}" = set; then
3388 echo $ECHO_N "(cached) $ECHO_C" >&6
3390 # Double quotes because CPP needs to be expanded
3391 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3394 for ac_c_preproc_warn_flag in '' yes
3396 # Use a header file that comes with gcc, so configuring glibc
3397 # with a fresh cross-compiler works.
3398 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3399 # <limits.h> exists even on freestanding compilers.
3400 # On the NeXT, cc -E runs the code through the compiler's parser,
3401 # not just through cpp. "Syntax error" is here to catch this case.
3402 cat >conftest.$ac_ext <<_ACEOF
3405 cat confdefs.h >>conftest.$ac_ext
3406 cat >>conftest.$ac_ext <<_ACEOF
3407 /* end confdefs.h. */
3409 # include <limits.h>
3411 # include <assert.h>
3415 if { (ac_try="$ac_cpp conftest.$ac_ext"
3417 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3418 *) ac_try_echo=$ac_try;;
3420 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3421 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3423 grep -v '^ *+' conftest.er1 >conftest.err
3425 cat conftest.err >&5
3426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3427 (exit $ac_status); } >/dev/null && {
3428 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3429 test ! -s conftest.err
3433 echo "$as_me: failed program was:" >&5
3434 sed 's/^/| /' conftest.$ac_ext >&5
3436 # Broken: fails on valid input.
3440 rm -f conftest.err conftest.$ac_ext
3442 # OK, works on sane cases. Now check whether nonexistent headers
3443 # can be detected and how.
3444 cat >conftest.$ac_ext <<_ACEOF
3447 cat confdefs.h >>conftest.$ac_ext
3448 cat >>conftest.$ac_ext <<_ACEOF
3449 /* end confdefs.h. */
3450 #include <ac_nonexistent.h>
3452 if { (ac_try="$ac_cpp conftest.$ac_ext"
3454 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3455 *) ac_try_echo=$ac_try;;
3457 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3458 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3460 grep -v '^ *+' conftest.er1 >conftest.err
3462 cat conftest.err >&5
3463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3464 (exit $ac_status); } >/dev/null && {
3465 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3466 test ! -s conftest.err
3468 # Broken: success on invalid input.
3471 echo "$as_me: failed program was:" >&5
3472 sed 's/^/| /' conftest.$ac_ext >&5
3474 # Passes both tests.
3479 rm -f conftest.err conftest.$ac_ext
3482 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3483 rm -f conftest.err conftest.$ac_ext
3484 if $ac_preproc_ok; then
3496 { echo "$as_me:$LINENO: result: $CPP" >&5
3497 echo "${ECHO_T}$CPP" >&6; }
3499 for ac_c_preproc_warn_flag in '' yes
3501 # Use a header file that comes with gcc, so configuring glibc
3502 # with a fresh cross-compiler works.
3503 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3504 # <limits.h> exists even on freestanding compilers.
3505 # On the NeXT, cc -E runs the code through the compiler's parser,
3506 # not just through cpp. "Syntax error" is here to catch this case.
3507 cat >conftest.$ac_ext <<_ACEOF
3510 cat confdefs.h >>conftest.$ac_ext
3511 cat >>conftest.$ac_ext <<_ACEOF
3512 /* end confdefs.h. */
3514 # include <limits.h>
3516 # include <assert.h>
3520 if { (ac_try="$ac_cpp conftest.$ac_ext"
3522 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3523 *) ac_try_echo=$ac_try;;
3525 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3526 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3528 grep -v '^ *+' conftest.er1 >conftest.err
3530 cat conftest.err >&5
3531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3532 (exit $ac_status); } >/dev/null && {
3533 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3534 test ! -s conftest.err
3538 echo "$as_me: failed program was:" >&5
3539 sed 's/^/| /' conftest.$ac_ext >&5
3541 # Broken: fails on valid input.
3545 rm -f conftest.err conftest.$ac_ext
3547 # OK, works on sane cases. Now check whether nonexistent headers
3548 # can be detected and how.
3549 cat >conftest.$ac_ext <<_ACEOF
3552 cat confdefs.h >>conftest.$ac_ext
3553 cat >>conftest.$ac_ext <<_ACEOF
3554 /* end confdefs.h. */
3555 #include <ac_nonexistent.h>
3557 if { (ac_try="$ac_cpp conftest.$ac_ext"
3559 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3560 *) ac_try_echo=$ac_try;;
3562 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3563 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3565 grep -v '^ *+' conftest.er1 >conftest.err
3567 cat conftest.err >&5
3568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3569 (exit $ac_status); } >/dev/null && {
3570 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3571 test ! -s conftest.err
3573 # Broken: success on invalid input.
3576 echo "$as_me: failed program was:" >&5
3577 sed 's/^/| /' conftest.$ac_ext >&5
3579 # Passes both tests.
3584 rm -f conftest.err conftest.$ac_ext
3587 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3588 rm -f conftest.err conftest.$ac_ext
3589 if $ac_preproc_ok; then
3592 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3593 See \`config.log' for more details." >&5
3594 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3595 See \`config.log' for more details." >&2;}
3596 { (exit 1); exit 1; }; }
3600 ac_cpp='$CPP $CPPFLAGS'
3601 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3602 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3603 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3606 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3607 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3608 if test "${ac_cv_path_GREP+set}" = set; then
3609 echo $ECHO_N "(cached) $ECHO_C" >&6
3611 # Extract the first word of "grep ggrep" to use in msg output
3612 if test -z "$GREP"; then
3613 set dummy grep ggrep; ac_prog_name=$2
3614 if test "${ac_cv_path_GREP+set}" = set; then
3615 echo $ECHO_N "(cached) $ECHO_C" >&6
3617 ac_path_GREP_found=false
3618 # Loop through the user's path and test for each of PROGNAME-LIST
3619 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3620 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3623 test -z "$as_dir" && as_dir=.
3624 for ac_prog in grep ggrep; do
3625 for ac_exec_ext in '' $ac_executable_extensions; do
3626 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3627 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3628 # Check for GNU ac_path_GREP and select it if it is found.
3629 # Check for GNU $ac_path_GREP
3630 case `"$ac_path_GREP" --version 2>&1` in
3632 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3635 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3638 cat "conftest.in" "conftest.in" >"conftest.tmp"
3639 mv "conftest.tmp" "conftest.in"
3640 cp "conftest.in" "conftest.nl"
3641 echo 'GREP' >> "conftest.nl"
3642 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3643 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3644 ac_count=`expr $ac_count + 1`
3645 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3646 # Best one so far, save it but keep looking for a better one
3647 ac_cv_path_GREP="$ac_path_GREP"
3648 ac_path_GREP_max=$ac_count
3650 # 10*(2^10) chars as input seems more than enough
3651 test $ac_count -gt 10 && break
3653 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3657 $ac_path_GREP_found && break 3
3667 GREP="$ac_cv_path_GREP"
3668 if test -z "$GREP"; then
3669 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3670 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3671 { (exit 1); exit 1; }; }
3675 ac_cv_path_GREP=$GREP
3680 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3681 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3682 GREP="$ac_cv_path_GREP"
3685 { echo "$as_me:$LINENO: checking for egrep" >&5
3686 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3687 if test "${ac_cv_path_EGREP+set}" = set; then
3688 echo $ECHO_N "(cached) $ECHO_C" >&6
3690 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3691 then ac_cv_path_EGREP="$GREP -E"
3693 # Extract the first word of "egrep" to use in msg output
3694 if test -z "$EGREP"; then
3695 set dummy egrep; ac_prog_name=$2
3696 if test "${ac_cv_path_EGREP+set}" = set; then
3697 echo $ECHO_N "(cached) $ECHO_C" >&6
3699 ac_path_EGREP_found=false
3700 # Loop through the user's path and test for each of PROGNAME-LIST
3701 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3702 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3705 test -z "$as_dir" && as_dir=.
3706 for ac_prog in egrep; do
3707 for ac_exec_ext in '' $ac_executable_extensions; do
3708 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3709 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3710 # Check for GNU ac_path_EGREP and select it if it is found.
3711 # Check for GNU $ac_path_EGREP
3712 case `"$ac_path_EGREP" --version 2>&1` in
3714 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3717 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3720 cat "conftest.in" "conftest.in" >"conftest.tmp"
3721 mv "conftest.tmp" "conftest.in"
3722 cp "conftest.in" "conftest.nl"
3723 echo 'EGREP' >> "conftest.nl"
3724 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3725 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3726 ac_count=`expr $ac_count + 1`
3727 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3728 # Best one so far, save it but keep looking for a better one
3729 ac_cv_path_EGREP="$ac_path_EGREP"
3730 ac_path_EGREP_max=$ac_count
3732 # 10*(2^10) chars as input seems more than enough
3733 test $ac_count -gt 10 && break
3735 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3739 $ac_path_EGREP_found && break 3
3749 EGREP="$ac_cv_path_EGREP"
3750 if test -z "$EGREP"; then
3751 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3752 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3753 { (exit 1); exit 1; }; }
3757 ac_cv_path_EGREP=$EGREP
3763 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3764 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3765 EGREP="$ac_cv_path_EGREP"
3768 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3769 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
3770 if test "${ac_cv_header_stdc+set}" = set; then
3771 echo $ECHO_N "(cached) $ECHO_C" >&6
3773 cat >conftest.$ac_ext <<_ACEOF
3776 cat confdefs.h >>conftest.$ac_ext
3777 cat >>conftest.$ac_ext <<_ACEOF
3778 /* end confdefs.h. */
3792 rm -f conftest.$ac_objext
3793 if { (ac_try="$ac_compile"
3795 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3796 *) ac_try_echo=$ac_try;;
3798 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3799 (eval "$ac_compile") 2>conftest.er1
3801 grep -v '^ *+' conftest.er1 >conftest.err
3803 cat conftest.err >&5
3804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3805 (exit $ac_status); } && {
3806 test -z "$ac_c_werror_flag" ||
3807 test ! -s conftest.err
3808 } && test -s conftest.$ac_objext; then
3809 ac_cv_header_stdc=yes
3811 echo "$as_me: failed program was:" >&5
3812 sed 's/^/| /' conftest.$ac_ext >&5
3814 ac_cv_header_stdc=no
3817 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3819 if test $ac_cv_header_stdc = yes; then
3820 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3821 cat >conftest.$ac_ext <<_ACEOF
3824 cat confdefs.h >>conftest.$ac_ext
3825 cat >>conftest.$ac_ext <<_ACEOF
3826 /* end confdefs.h. */
3830 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3831 $EGREP "memchr" >/dev/null 2>&1; then
3834 ac_cv_header_stdc=no
3840 if test $ac_cv_header_stdc = yes; then
3841 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3842 cat >conftest.$ac_ext <<_ACEOF
3845 cat confdefs.h >>conftest.$ac_ext
3846 cat >>conftest.$ac_ext <<_ACEOF
3847 /* end confdefs.h. */
3851 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3852 $EGREP "free" >/dev/null 2>&1; then
3855 ac_cv_header_stdc=no
3861 if test $ac_cv_header_stdc = yes; then
3862 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3863 if test "$cross_compiling" = yes; then
3866 cat >conftest.$ac_ext <<_ACEOF
3869 cat confdefs.h >>conftest.$ac_ext
3870 cat >>conftest.$ac_ext <<_ACEOF
3871 /* end confdefs.h. */
3874 #if ((' ' & 0x0FF) == 0x020)
3875 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3876 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3878 # define ISLOWER(c) \
3879 (('a' <= (c) && (c) <= 'i') \
3880 || ('j' <= (c) && (c) <= 'r') \
3881 || ('s' <= (c) && (c) <= 'z'))
3882 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3885 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3890 for (i = 0; i < 256; i++)
3891 if (XOR (islower (i), ISLOWER (i))
3892 || toupper (i) != TOUPPER (i))
3897 rm -f conftest$ac_exeext
3898 if { (ac_try="$ac_link"
3900 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3901 *) ac_try_echo=$ac_try;;
3903 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3904 (eval "$ac_link") 2>&5
3906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3907 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3908 { (case "(($ac_try" in
3909 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3910 *) ac_try_echo=$ac_try;;
3912 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3913 (eval "$ac_try") 2>&5
3915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3916 (exit $ac_status); }; }; then
3919 echo "$as_me: program exited with status $ac_status" >&5
3920 echo "$as_me: failed program was:" >&5
3921 sed 's/^/| /' conftest.$ac_ext >&5
3924 ac_cv_header_stdc=no
3926 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3932 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3933 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
3934 if test $ac_cv_header_stdc = yes; then
3936 cat >>confdefs.h <<\_ACEOF
3937 #define STDC_HEADERS 1
3942 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3952 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3953 inttypes.h stdint.h unistd.h
3955 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3956 { echo "$as_me:$LINENO: checking for $ac_header" >&5
3957 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
3958 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
3959 echo $ECHO_N "(cached) $ECHO_C" >&6
3961 cat >conftest.$ac_ext <<_ACEOF
3964 cat confdefs.h >>conftest.$ac_ext
3965 cat >>conftest.$ac_ext <<_ACEOF
3966 /* end confdefs.h. */
3967 $ac_includes_default
3969 #include <$ac_header>
3971 rm -f conftest.$ac_objext
3972 if { (ac_try="$ac_compile"
3974 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3975 *) ac_try_echo=$ac_try;;
3977 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3978 (eval "$ac_compile") 2>conftest.er1
3980 grep -v '^ *+' conftest.er1 >conftest.err
3982 cat conftest.err >&5
3983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3984 (exit $ac_status); } && {
3985 test -z "$ac_c_werror_flag" ||
3986 test ! -s conftest.err
3987 } && test -s conftest.$ac_objext; then
3988 eval "$as_ac_Header=yes"
3990 echo "$as_me: failed program was:" >&5
3991 sed 's/^/| /' conftest.$ac_ext >&5
3993 eval "$as_ac_Header=no"
3996 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3998 ac_res=`eval echo '${'$as_ac_Header'}'`
3999 { echo "$as_me:$LINENO: result: $ac_res" >&5
4000 echo "${ECHO_T}$ac_res" >&6; }
4001 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4002 cat >>confdefs.h <<_ACEOF
4003 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4015 for ac_header in stdlib.h string.h sys/time.h unistd.h
4017 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4018 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4019 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4020 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4021 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4022 echo $ECHO_N "(cached) $ECHO_C" >&6
4024 ac_res=`eval echo '${'$as_ac_Header'}'`
4025 { echo "$as_me:$LINENO: result: $ac_res" >&5
4026 echo "${ECHO_T}$ac_res" >&6; }
4028 # Is the header compilable?
4029 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
4030 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
4031 cat >conftest.$ac_ext <<_ACEOF
4034 cat confdefs.h >>conftest.$ac_ext
4035 cat >>conftest.$ac_ext <<_ACEOF
4036 /* end confdefs.h. */
4037 $ac_includes_default
4038 #include <$ac_header>
4040 rm -f conftest.$ac_objext
4041 if { (ac_try="$ac_compile"
4043 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4044 *) ac_try_echo=$ac_try;;
4046 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4047 (eval "$ac_compile") 2>conftest.er1
4049 grep -v '^ *+' conftest.er1 >conftest.err
4051 cat conftest.err >&5
4052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4053 (exit $ac_status); } && {
4054 test -z "$ac_c_werror_flag" ||
4055 test ! -s conftest.err
4056 } && test -s conftest.$ac_objext; then
4057 ac_header_compiler=yes
4059 echo "$as_me: failed program was:" >&5
4060 sed 's/^/| /' conftest.$ac_ext >&5
4062 ac_header_compiler=no
4065 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4066 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4067 echo "${ECHO_T}$ac_header_compiler" >&6; }
4069 # Is the header present?
4070 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
4071 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
4072 cat >conftest.$ac_ext <<_ACEOF
4075 cat confdefs.h >>conftest.$ac_ext
4076 cat >>conftest.$ac_ext <<_ACEOF
4077 /* end confdefs.h. */
4078 #include <$ac_header>
4080 if { (ac_try="$ac_cpp conftest.$ac_ext"
4082 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4083 *) ac_try_echo=$ac_try;;
4085 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4086 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4088 grep -v '^ *+' conftest.er1 >conftest.err
4090 cat conftest.err >&5
4091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4092 (exit $ac_status); } >/dev/null && {
4093 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4094 test ! -s conftest.err
4096 ac_header_preproc=yes
4098 echo "$as_me: failed program was:" >&5
4099 sed 's/^/| /' conftest.$ac_ext >&5
4101 ac_header_preproc=no
4104 rm -f conftest.err conftest.$ac_ext
4105 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4106 echo "${ECHO_T}$ac_header_preproc" >&6; }
4108 # So? What about this header?
4109 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4111 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4112 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4113 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4114 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4115 ac_header_preproc=yes
4118 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4119 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4120 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4121 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4122 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4123 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4124 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4125 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4126 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4127 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4128 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4129 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4131 ## --------------------------------------------- ##
4132 ## Report this to michel.vandenbergh@uhasselt.be ##
4133 ## --------------------------------------------- ##
4135 ) | sed "s/^/$as_me: WARNING: /" >&2
4138 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4139 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4140 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4141 echo $ECHO_N "(cached) $ECHO_C" >&6
4143 eval "$as_ac_Header=\$ac_header_preproc"
4145 ac_res=`eval echo '${'$as_ac_Header'}'`
4146 { echo "$as_me:$LINENO: result: $ac_res" >&5
4147 echo "${ECHO_T}$ac_res" >&6; }
4150 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4151 cat >>confdefs.h <<_ACEOF
4152 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4160 # Checks for typedefs, structures, and compiler characteristics.
4161 { echo "$as_me:$LINENO: checking for stdbool.h that conforms to C99" >&5
4162 echo $ECHO_N "checking for stdbool.h that conforms to C99... $ECHO_C" >&6; }
4163 if test "${ac_cv_header_stdbool_h+set}" = set; then
4164 echo $ECHO_N "(cached) $ECHO_C" >&6
4166 cat >conftest.$ac_ext <<_ACEOF
4169 cat confdefs.h >>conftest.$ac_ext
4170 cat >>conftest.$ac_ext <<_ACEOF
4171 /* end confdefs.h. */
4173 #include <stdbool.h>
4175 "error: bool is not defined"
4178 "error: false is not defined"
4181 "error: false is not 0"
4184 "error: true is not defined"
4187 "error: true is not 1"
4189 #ifndef __bool_true_false_are_defined
4190 "error: __bool_true_false_are_defined is not defined"
4193 struct s { _Bool s: 1; _Bool t; } s;
4195 char a[true == 1 ? 1 : -1];
4196 char b[false == 0 ? 1 : -1];
4197 char c[__bool_true_false_are_defined == 1 ? 1 : -1];
4198 char d[(bool) 0.5 == true ? 1 : -1];
4200 char f[(_Bool) 0.0 == false ? 1 : -1];
4202 char h[sizeof (_Bool)];
4204 enum { j = false, k = true, l = false * true, m = true * 256 };
4206 char o[sizeof n == m * sizeof n[0] ? 1 : -1];
4207 char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
4208 # if defined __xlc__ || defined __GNUC__
4209 /* Catch a bug in IBM AIX xlc compiler version 6.0.0.0
4210 reported by James Lemley on 2005-10-05; see
4211 http://lists.gnu.org/archive/html/bug-coreutils/2005-10/msg00086.html
4212 This test is not quite right, since xlc is allowed to
4213 reject this program, as the initializer for xlcbug is
4214 not one of the forms that C requires support for.
4215 However, doing the test right would require a runtime
4216 test, and that would make cross-compilation harder.
4217 Let us hope that IBM fixes the xlc bug, and also adds
4218 support for this kind of constant expression. In the
4219 meantime, this test will reject xlc, which is OK, since
4220 our stdbool.h substitute should suffice. We also test
4221 this with GCC, where it should work, to detect more
4222 quickly whether someone messes up the test in the
4224 char digs[] = "0123456789";
4225 int xlcbug = 1 / (&(digs + 5)[-2 + (bool) 1] == &digs[4] ? 1 : -1);
4227 /* Catch a bug in an HP-UX C compiler. See
4228 http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
4229 http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
4240 /* Refer to every declared value, to avoid compiler optimizations. */
4241 return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
4242 + !m + !n + !o + !p + !q + !pq);
4248 rm -f conftest.$ac_objext
4249 if { (ac_try="$ac_compile"
4251 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4252 *) ac_try_echo=$ac_try;;
4254 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4255 (eval "$ac_compile") 2>conftest.er1
4257 grep -v '^ *+' conftest.er1 >conftest.err
4259 cat conftest.err >&5
4260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4261 (exit $ac_status); } && {
4262 test -z "$ac_c_werror_flag" ||
4263 test ! -s conftest.err
4264 } && test -s conftest.$ac_objext; then
4265 ac_cv_header_stdbool_h=yes
4267 echo "$as_me: failed program was:" >&5
4268 sed 's/^/| /' conftest.$ac_ext >&5
4270 ac_cv_header_stdbool_h=no
4273 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4275 { echo "$as_me:$LINENO: result: $ac_cv_header_stdbool_h" >&5
4276 echo "${ECHO_T}$ac_cv_header_stdbool_h" >&6; }
4277 { echo "$as_me:$LINENO: checking for _Bool" >&5
4278 echo $ECHO_N "checking for _Bool... $ECHO_C" >&6; }
4279 if test "${ac_cv_type__Bool+set}" = set; then
4280 echo $ECHO_N "(cached) $ECHO_C" >&6
4282 cat >conftest.$ac_ext <<_ACEOF
4285 cat confdefs.h >>conftest.$ac_ext
4286 cat >>conftest.$ac_ext <<_ACEOF
4287 /* end confdefs.h. */
4288 $ac_includes_default
4289 typedef _Bool ac__type_new_;
4293 if ((ac__type_new_ *) 0)
4295 if (sizeof (ac__type_new_))
4301 rm -f conftest.$ac_objext
4302 if { (ac_try="$ac_compile"
4304 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4305 *) ac_try_echo=$ac_try;;
4307 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4308 (eval "$ac_compile") 2>conftest.er1
4310 grep -v '^ *+' conftest.er1 >conftest.err
4312 cat conftest.err >&5
4313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4314 (exit $ac_status); } && {
4315 test -z "$ac_c_werror_flag" ||
4316 test ! -s conftest.err
4317 } && test -s conftest.$ac_objext; then
4318 ac_cv_type__Bool=yes
4320 echo "$as_me: failed program was:" >&5
4321 sed 's/^/| /' conftest.$ac_ext >&5
4326 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4328 { echo "$as_me:$LINENO: result: $ac_cv_type__Bool" >&5
4329 echo "${ECHO_T}$ac_cv_type__Bool" >&6; }
4330 if test $ac_cv_type__Bool = yes; then
4332 cat >>confdefs.h <<_ACEOF
4333 #define HAVE__BOOL 1
4339 if test $ac_cv_header_stdbool_h = yes; then
4341 cat >>confdefs.h <<\_ACEOF
4342 #define HAVE_STDBOOL_H 1
4347 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
4348 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
4349 if test "${ac_cv_c_const+set}" = set; then
4350 echo $ECHO_N "(cached) $ECHO_C" >&6
4352 cat >conftest.$ac_ext <<_ACEOF
4355 cat confdefs.h >>conftest.$ac_ext
4356 cat >>conftest.$ac_ext <<_ACEOF
4357 /* end confdefs.h. */
4362 /* FIXME: Include the comments suggested by Paul. */
4364 /* Ultrix mips cc rejects this. */
4365 typedef int charset[2];
4367 /* SunOS 4.1.1 cc rejects this. */
4368 char const *const *pcpcc;
4370 /* NEC SVR4.0.2 mips cc rejects this. */
4371 struct point {int x, y;};
4372 static struct point const zero = {0,0};
4373 /* AIX XL C 1.02.0.0 rejects this.
4374 It does not let you subtract one const X* pointer from another in
4375 an arm of an if-expression whose if-part is not a constant
4377 const char *g = "string";
4378 pcpcc = &g + (g ? g-g : 0);
4379 /* HPUX 7.0 cc rejects these. */
4381 ppc = (char**) pcpcc;
4382 pcpcc = (char const *const *) ppc;
4383 { /* SCO 3.2v4 cc rejects this. */
4385 char const *s = 0 ? (char *) 0 : (char const *) 0;
4390 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
4392 const int *foo = &x[0];
4395 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
4396 typedef const int *iptr;
4400 { /* AIX XL C 1.02.0.0 rejects this saying
4401 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
4402 struct s { int j; const int *ap[3]; };
4403 struct s *b; b->j = 5;
4405 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
4409 return !cs[0] && !zero.x;
4416 rm -f conftest.$ac_objext
4417 if { (ac_try="$ac_compile"
4419 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4420 *) ac_try_echo=$ac_try;;
4422 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4423 (eval "$ac_compile") 2>conftest.er1
4425 grep -v '^ *+' conftest.er1 >conftest.err
4427 cat conftest.err >&5
4428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4429 (exit $ac_status); } && {
4430 test -z "$ac_c_werror_flag" ||
4431 test ! -s conftest.err
4432 } && test -s conftest.$ac_objext; then
4435 echo "$as_me: failed program was:" >&5
4436 sed 's/^/| /' conftest.$ac_ext >&5
4441 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4443 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
4444 echo "${ECHO_T}$ac_cv_c_const" >&6; }
4445 if test $ac_cv_c_const = no; then
4447 cat >>confdefs.h <<\_ACEOF
4453 { echo "$as_me:$LINENO: checking for inline" >&5
4454 echo $ECHO_N "checking for inline... $ECHO_C" >&6; }
4455 if test "${ac_cv_c_inline+set}" = set; then
4456 echo $ECHO_N "(cached) $ECHO_C" >&6
4459 for ac_kw in inline __inline__ __inline; do
4460 cat >conftest.$ac_ext <<_ACEOF
4463 cat confdefs.h >>conftest.$ac_ext
4464 cat >>conftest.$ac_ext <<_ACEOF
4465 /* end confdefs.h. */
4468 static $ac_kw foo_t static_foo () {return 0; }
4469 $ac_kw foo_t foo () {return 0; }
4473 rm -f conftest.$ac_objext
4474 if { (ac_try="$ac_compile"
4476 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4477 *) ac_try_echo=$ac_try;;
4479 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4480 (eval "$ac_compile") 2>conftest.er1
4482 grep -v '^ *+' conftest.er1 >conftest.err
4484 cat conftest.err >&5
4485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4486 (exit $ac_status); } && {
4487 test -z "$ac_c_werror_flag" ||
4488 test ! -s conftest.err
4489 } && test -s conftest.$ac_objext; then
4490 ac_cv_c_inline=$ac_kw
4492 echo "$as_me: failed program was:" >&5
4493 sed 's/^/| /' conftest.$ac_ext >&5
4498 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4499 test "$ac_cv_c_inline" != no && break
4503 { echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
4504 echo "${ECHO_T}$ac_cv_c_inline" >&6; }
4507 case $ac_cv_c_inline in
4510 case $ac_cv_c_inline in
4512 *) ac_val=$ac_cv_c_inline;;
4514 cat >>confdefs.h <<_ACEOF
4516 #define inline $ac_val
4522 { echo "$as_me:$LINENO: checking for pid_t" >&5
4523 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
4524 if test "${ac_cv_type_pid_t+set}" = set; then
4525 echo $ECHO_N "(cached) $ECHO_C" >&6
4527 cat >conftest.$ac_ext <<_ACEOF
4530 cat confdefs.h >>conftest.$ac_ext
4531 cat >>conftest.$ac_ext <<_ACEOF
4532 /* end confdefs.h. */
4533 $ac_includes_default
4534 typedef pid_t ac__type_new_;
4538 if ((ac__type_new_ *) 0)
4540 if (sizeof (ac__type_new_))
4546 rm -f conftest.$ac_objext
4547 if { (ac_try="$ac_compile"
4549 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4550 *) ac_try_echo=$ac_try;;
4552 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4553 (eval "$ac_compile") 2>conftest.er1
4555 grep -v '^ *+' conftest.er1 >conftest.err
4557 cat conftest.err >&5
4558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4559 (exit $ac_status); } && {
4560 test -z "$ac_c_werror_flag" ||
4561 test ! -s conftest.err
4562 } && test -s conftest.$ac_objext; then
4563 ac_cv_type_pid_t=yes
4565 echo "$as_me: failed program was:" >&5
4566 sed 's/^/| /' conftest.$ac_ext >&5
4571 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4573 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
4574 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
4575 if test $ac_cv_type_pid_t = yes; then
4579 cat >>confdefs.h <<_ACEOF
4585 { echo "$as_me:$LINENO: checking for size_t" >&5
4586 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
4587 if test "${ac_cv_type_size_t+set}" = set; then
4588 echo $ECHO_N "(cached) $ECHO_C" >&6
4590 cat >conftest.$ac_ext <<_ACEOF
4593 cat confdefs.h >>conftest.$ac_ext
4594 cat >>conftest.$ac_ext <<_ACEOF
4595 /* end confdefs.h. */
4596 $ac_includes_default
4597 typedef size_t ac__type_new_;
4601 if ((ac__type_new_ *) 0)
4603 if (sizeof (ac__type_new_))
4609 rm -f conftest.$ac_objext
4610 if { (ac_try="$ac_compile"
4612 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4613 *) ac_try_echo=$ac_try;;
4615 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4616 (eval "$ac_compile") 2>conftest.er1
4618 grep -v '^ *+' conftest.er1 >conftest.err
4620 cat conftest.err >&5
4621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4622 (exit $ac_status); } && {
4623 test -z "$ac_c_werror_flag" ||
4624 test ! -s conftest.err
4625 } && test -s conftest.$ac_objext; then
4626 ac_cv_type_size_t=yes
4628 echo "$as_me: failed program was:" >&5
4629 sed 's/^/| /' conftest.$ac_ext >&5
4631 ac_cv_type_size_t=no
4634 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4636 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
4637 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
4638 if test $ac_cv_type_size_t = yes; then
4642 cat >>confdefs.h <<_ACEOF
4643 #define size_t unsigned int
4648 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
4649 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
4650 if test "${ac_cv_header_time+set}" = set; then
4651 echo $ECHO_N "(cached) $ECHO_C" >&6
4653 cat >conftest.$ac_ext <<_ACEOF
4656 cat confdefs.h >>conftest.$ac_ext
4657 cat >>conftest.$ac_ext <<_ACEOF
4658 /* end confdefs.h. */
4659 #include <sys/types.h>
4660 #include <sys/time.h>
4666 if ((struct tm *) 0)
4672 rm -f conftest.$ac_objext
4673 if { (ac_try="$ac_compile"
4675 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4676 *) ac_try_echo=$ac_try;;
4678 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4679 (eval "$ac_compile") 2>conftest.er1
4681 grep -v '^ *+' conftest.er1 >conftest.err
4683 cat conftest.err >&5
4684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4685 (exit $ac_status); } && {
4686 test -z "$ac_c_werror_flag" ||
4687 test ! -s conftest.err
4688 } && test -s conftest.$ac_objext; then
4689 ac_cv_header_time=yes
4691 echo "$as_me: failed program was:" >&5
4692 sed 's/^/| /' conftest.$ac_ext >&5
4694 ac_cv_header_time=no
4697 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4699 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
4700 echo "${ECHO_T}$ac_cv_header_time" >&6; }
4701 if test $ac_cv_header_time = yes; then
4703 cat >>confdefs.h <<\_ACEOF
4704 #define TIME_WITH_SYS_TIME 1
4710 # Checks for library functions.
4712 for ac_header in vfork.h
4714 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4715 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4716 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4717 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4718 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4719 echo $ECHO_N "(cached) $ECHO_C" >&6
4721 ac_res=`eval echo '${'$as_ac_Header'}'`
4722 { echo "$as_me:$LINENO: result: $ac_res" >&5
4723 echo "${ECHO_T}$ac_res" >&6; }
4725 # Is the header compilable?
4726 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
4727 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
4728 cat >conftest.$ac_ext <<_ACEOF
4731 cat confdefs.h >>conftest.$ac_ext
4732 cat >>conftest.$ac_ext <<_ACEOF
4733 /* end confdefs.h. */
4734 $ac_includes_default
4735 #include <$ac_header>
4737 rm -f conftest.$ac_objext
4738 if { (ac_try="$ac_compile"
4740 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4741 *) ac_try_echo=$ac_try;;
4743 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4744 (eval "$ac_compile") 2>conftest.er1
4746 grep -v '^ *+' conftest.er1 >conftest.err
4748 cat conftest.err >&5
4749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4750 (exit $ac_status); } && {
4751 test -z "$ac_c_werror_flag" ||
4752 test ! -s conftest.err
4753 } && test -s conftest.$ac_objext; then
4754 ac_header_compiler=yes
4756 echo "$as_me: failed program was:" >&5
4757 sed 's/^/| /' conftest.$ac_ext >&5
4759 ac_header_compiler=no
4762 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4763 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4764 echo "${ECHO_T}$ac_header_compiler" >&6; }
4766 # Is the header present?
4767 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
4768 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
4769 cat >conftest.$ac_ext <<_ACEOF
4772 cat confdefs.h >>conftest.$ac_ext
4773 cat >>conftest.$ac_ext <<_ACEOF
4774 /* end confdefs.h. */
4775 #include <$ac_header>
4777 if { (ac_try="$ac_cpp conftest.$ac_ext"
4779 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4780 *) ac_try_echo=$ac_try;;
4782 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4783 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4785 grep -v '^ *+' conftest.er1 >conftest.err
4787 cat conftest.err >&5
4788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4789 (exit $ac_status); } >/dev/null && {
4790 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4791 test ! -s conftest.err
4793 ac_header_preproc=yes
4795 echo "$as_me: failed program was:" >&5
4796 sed 's/^/| /' conftest.$ac_ext >&5
4798 ac_header_preproc=no
4801 rm -f conftest.err conftest.$ac_ext
4802 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4803 echo "${ECHO_T}$ac_header_preproc" >&6; }
4805 # So? What about this header?
4806 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4808 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4809 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4810 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4811 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4812 ac_header_preproc=yes
4815 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4816 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4817 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4818 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4819 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4820 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4821 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4822 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4823 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4824 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4825 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4826 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4828 ## --------------------------------------------- ##
4829 ## Report this to michel.vandenbergh@uhasselt.be ##
4830 ## --------------------------------------------- ##
4832 ) | sed "s/^/$as_me: WARNING: /" >&2
4835 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4836 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4837 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4838 echo $ECHO_N "(cached) $ECHO_C" >&6
4840 eval "$as_ac_Header=\$ac_header_preproc"
4842 ac_res=`eval echo '${'$as_ac_Header'}'`
4843 { echo "$as_me:$LINENO: result: $ac_res" >&5
4844 echo "${ECHO_T}$ac_res" >&6; }
4847 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4848 cat >>confdefs.h <<_ACEOF
4849 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4858 for ac_func in fork vfork
4860 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4861 { echo "$as_me:$LINENO: checking for $ac_func" >&5
4862 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
4863 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
4864 echo $ECHO_N "(cached) $ECHO_C" >&6
4866 cat >conftest.$ac_ext <<_ACEOF
4869 cat confdefs.h >>conftest.$ac_ext
4870 cat >>conftest.$ac_ext <<_ACEOF
4871 /* end confdefs.h. */
4872 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
4873 For example, HP-UX 11i <limits.h> declares gettimeofday. */
4874 #define $ac_func innocuous_$ac_func
4876 /* System header to define __stub macros and hopefully few prototypes,
4877 which can conflict with char $ac_func (); below.
4878 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4879 <limits.h> exists even on freestanding compilers. */
4882 # include <limits.h>
4884 # include <assert.h>
4889 /* Override any GCC internal prototype to avoid an error.
4890 Use char because int might match the return type of a GCC
4891 builtin and then its argument prototype would still apply. */
4896 /* The GNU C library defines this for functions which it implements
4897 to always fail with ENOSYS. Some functions are actually named
4898 something starting with __ and the normal name is an alias. */
4899 #if defined __stub_$ac_func || defined __stub___$ac_func
4911 rm -f conftest.$ac_objext conftest$ac_exeext
4912 if { (ac_try="$ac_link"
4914 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4915 *) ac_try_echo=$ac_try;;
4917 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4918 (eval "$ac_link") 2>conftest.er1
4920 grep -v '^ *+' conftest.er1 >conftest.err
4922 cat conftest.err >&5
4923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4924 (exit $ac_status); } && {
4925 test -z "$ac_c_werror_flag" ||
4926 test ! -s conftest.err
4927 } && test -s conftest$ac_exeext &&
4928 $as_test_x conftest$ac_exeext; then
4929 eval "$as_ac_var=yes"
4931 echo "$as_me: failed program was:" >&5
4932 sed 's/^/| /' conftest.$ac_ext >&5
4934 eval "$as_ac_var=no"
4937 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4938 conftest$ac_exeext conftest.$ac_ext
4940 ac_res=`eval echo '${'$as_ac_var'}'`
4941 { echo "$as_me:$LINENO: result: $ac_res" >&5
4942 echo "${ECHO_T}$ac_res" >&6; }
4943 if test `eval echo '${'$as_ac_var'}'` = yes; then
4944 cat >>confdefs.h <<_ACEOF
4945 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4951 if test "x$ac_cv_func_fork" = xyes; then
4952 { echo "$as_me:$LINENO: checking for working fork" >&5
4953 echo $ECHO_N "checking for working fork... $ECHO_C" >&6; }
4954 if test "${ac_cv_func_fork_works+set}" = set; then
4955 echo $ECHO_N "(cached) $ECHO_C" >&6
4957 if test "$cross_compiling" = yes; then
4958 ac_cv_func_fork_works=cross
4960 cat >conftest.$ac_ext <<_ACEOF
4963 cat confdefs.h >>conftest.$ac_ext
4964 cat >>conftest.$ac_ext <<_ACEOF
4965 /* end confdefs.h. */
4966 $ac_includes_default
4971 /* By Ruediger Kuhlmann. */
4978 rm -f conftest$ac_exeext
4979 if { (ac_try="$ac_link"
4981 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4982 *) ac_try_echo=$ac_try;;
4984 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4985 (eval "$ac_link") 2>&5
4987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4988 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4989 { (case "(($ac_try" in
4990 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4991 *) ac_try_echo=$ac_try;;
4993 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4994 (eval "$ac_try") 2>&5
4996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4997 (exit $ac_status); }; }; then
4998 ac_cv_func_fork_works=yes
5000 echo "$as_me: program exited with status $ac_status" >&5
5001 echo "$as_me: failed program was:" >&5
5002 sed 's/^/| /' conftest.$ac_ext >&5
5005 ac_cv_func_fork_works=no
5007 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5012 { echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
5013 echo "${ECHO_T}$ac_cv_func_fork_works" >&6; }
5016 ac_cv_func_fork_works=$ac_cv_func_fork
5018 if test "x$ac_cv_func_fork_works" = xcross; then
5020 *-*-amigaos* | *-*-msdosdjgpp*)
5021 # Override, as these systems have only a dummy fork() stub
5022 ac_cv_func_fork_works=no
5025 ac_cv_func_fork_works=yes
5028 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
5029 echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
5031 ac_cv_func_vfork_works=$ac_cv_func_vfork
5032 if test "x$ac_cv_func_vfork" = xyes; then
5033 { echo "$as_me:$LINENO: checking for working vfork" >&5
5034 echo $ECHO_N "checking for working vfork... $ECHO_C" >&6; }
5035 if test "${ac_cv_func_vfork_works+set}" = set; then
5036 echo $ECHO_N "(cached) $ECHO_C" >&6
5038 if test "$cross_compiling" = yes; then
5039 ac_cv_func_vfork_works=cross
5041 cat >conftest.$ac_ext <<_ACEOF
5044 cat confdefs.h >>conftest.$ac_ext
5045 cat >>conftest.$ac_ext <<_ACEOF
5046 /* end confdefs.h. */
5047 /* Thanks to Paul Eggert for this test. */
5048 $ac_includes_default
5049 #include <sys/wait.h>
5053 /* On some sparc systems, changes by the child to local and incoming
5054 argument registers are propagated back to the parent. The compiler
5055 is told about this with #include <vfork.h>, but some compilers
5056 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
5057 static variable whose address is put into a register that is
5058 clobbered by the vfork. */
5061 sparc_address_test (int arg)
5063 sparc_address_test (arg) int arg;
5084 pid_t parent = getpid ();
5087 sparc_address_test (0);
5092 /* Here is another test for sparc vfork register problems. This
5093 test uses lots of local variables, at least as many local
5094 variables as main has allocated so far including compiler
5095 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
5096 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
5097 reuse the register of parent for one of the local variables,
5098 since it will think that parent can't possibly be used any more
5099 in this routine. Assigning to the local variable will thus
5100 munge parent in the parent process. */
5102 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
5103 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
5104 /* Convince the compiler that p..p7 are live; otherwise, it might
5105 use the same hardware register for all 8 local variables. */
5106 if (p != p1 || p != p2 || p != p3 || p != p4
5107 || p != p5 || p != p6 || p != p7)
5110 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
5111 from child file descriptors. If the child closes a descriptor
5112 before it execs or exits, this munges the parent's descriptor
5113 as well. Test for this by closing stdout in the child. */
5114 _exit(close(fileno(stdout)) != 0);
5119 while (wait(&status) != child)
5122 /* Was there some problem with vforking? */
5125 /* Did the child fail? (This shouldn't happen.) */
5128 /* Did the vfork/compiler bug occur? */
5129 || parent != getpid()
5131 /* Did the file descriptor bug occur? */
5132 || fstat(fileno(stdout), &st) != 0
5137 rm -f conftest$ac_exeext
5138 if { (ac_try="$ac_link"
5140 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5141 *) ac_try_echo=$ac_try;;
5143 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5144 (eval "$ac_link") 2>&5
5146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5147 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5148 { (case "(($ac_try" in
5149 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5150 *) ac_try_echo=$ac_try;;
5152 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5153 (eval "$ac_try") 2>&5
5155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5156 (exit $ac_status); }; }; then
5157 ac_cv_func_vfork_works=yes
5159 echo "$as_me: program exited with status $ac_status" >&5
5160 echo "$as_me: failed program was:" >&5
5161 sed 's/^/| /' conftest.$ac_ext >&5
5164 ac_cv_func_vfork_works=no
5166 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5171 { echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
5172 echo "${ECHO_T}$ac_cv_func_vfork_works" >&6; }
5175 if test "x$ac_cv_func_fork_works" = xcross; then
5176 ac_cv_func_vfork_works=$ac_cv_func_vfork
5177 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
5178 echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
5181 if test "x$ac_cv_func_vfork_works" = xyes; then
5183 cat >>confdefs.h <<\_ACEOF
5184 #define HAVE_WORKING_VFORK 1
5189 cat >>confdefs.h <<\_ACEOF
5194 if test "x$ac_cv_func_fork_works" = xyes; then
5196 cat >>confdefs.h <<\_ACEOF
5197 #define HAVE_WORKING_FORK 1
5203 for ac_header in stdlib.h
5205 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5206 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5207 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5208 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5209 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5210 echo $ECHO_N "(cached) $ECHO_C" >&6
5212 ac_res=`eval echo '${'$as_ac_Header'}'`
5213 { echo "$as_me:$LINENO: result: $ac_res" >&5
5214 echo "${ECHO_T}$ac_res" >&6; }
5216 # Is the header compilable?
5217 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
5218 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
5219 cat >conftest.$ac_ext <<_ACEOF
5222 cat confdefs.h >>conftest.$ac_ext
5223 cat >>conftest.$ac_ext <<_ACEOF
5224 /* end confdefs.h. */
5225 $ac_includes_default
5226 #include <$ac_header>
5228 rm -f conftest.$ac_objext
5229 if { (ac_try="$ac_compile"
5231 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5232 *) ac_try_echo=$ac_try;;
5234 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5235 (eval "$ac_compile") 2>conftest.er1
5237 grep -v '^ *+' conftest.er1 >conftest.err
5239 cat conftest.err >&5
5240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5241 (exit $ac_status); } && {
5242 test -z "$ac_c_werror_flag" ||
5243 test ! -s conftest.err
5244 } && test -s conftest.$ac_objext; then
5245 ac_header_compiler=yes
5247 echo "$as_me: failed program was:" >&5
5248 sed 's/^/| /' conftest.$ac_ext >&5
5250 ac_header_compiler=no
5253 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5254 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5255 echo "${ECHO_T}$ac_header_compiler" >&6; }
5257 # Is the header present?
5258 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
5259 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
5260 cat >conftest.$ac_ext <<_ACEOF
5263 cat confdefs.h >>conftest.$ac_ext
5264 cat >>conftest.$ac_ext <<_ACEOF
5265 /* end confdefs.h. */
5266 #include <$ac_header>
5268 if { (ac_try="$ac_cpp conftest.$ac_ext"
5270 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5271 *) ac_try_echo=$ac_try;;
5273 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5274 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5276 grep -v '^ *+' conftest.er1 >conftest.err
5278 cat conftest.err >&5
5279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5280 (exit $ac_status); } >/dev/null && {
5281 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5282 test ! -s conftest.err
5284 ac_header_preproc=yes
5286 echo "$as_me: failed program was:" >&5
5287 sed 's/^/| /' conftest.$ac_ext >&5
5289 ac_header_preproc=no
5292 rm -f conftest.err conftest.$ac_ext
5293 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5294 echo "${ECHO_T}$ac_header_preproc" >&6; }
5296 # So? What about this header?
5297 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5299 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5300 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5301 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5302 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5303 ac_header_preproc=yes
5306 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5307 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5308 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5309 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5310 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5311 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5312 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5313 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5314 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5315 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5316 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5317 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5319 ## --------------------------------------------- ##
5320 ## Report this to michel.vandenbergh@uhasselt.be ##
5321 ## --------------------------------------------- ##
5323 ) | sed "s/^/$as_me: WARNING: /" >&2
5326 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5327 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5328 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5329 echo $ECHO_N "(cached) $ECHO_C" >&6
5331 eval "$as_ac_Header=\$ac_header_preproc"
5333 ac_res=`eval echo '${'$as_ac_Header'}'`
5334 { echo "$as_me:$LINENO: result: $ac_res" >&5
5335 echo "${ECHO_T}$ac_res" >&6; }
5338 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5339 cat >>confdefs.h <<_ACEOF
5340 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5347 { echo "$as_me:$LINENO: checking for GNU libc compatible malloc" >&5
5348 echo $ECHO_N "checking for GNU libc compatible malloc... $ECHO_C" >&6; }
5349 if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then
5350 echo $ECHO_N "(cached) $ECHO_C" >&6
5352 if test "$cross_compiling" = yes; then
5353 ac_cv_func_malloc_0_nonnull=no
5355 cat >conftest.$ac_ext <<_ACEOF
5358 cat confdefs.h >>conftest.$ac_ext
5359 cat >>conftest.$ac_ext <<_ACEOF
5360 /* end confdefs.h. */
5361 #if defined STDC_HEADERS || defined HAVE_STDLIB_H
5362 # include <stdlib.h>
5370 return ! malloc (0);
5375 rm -f conftest$ac_exeext
5376 if { (ac_try="$ac_link"
5378 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5379 *) ac_try_echo=$ac_try;;
5381 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5382 (eval "$ac_link") 2>&5
5384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5385 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5386 { (case "(($ac_try" in
5387 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5388 *) ac_try_echo=$ac_try;;
5390 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5391 (eval "$ac_try") 2>&5
5393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5394 (exit $ac_status); }; }; then
5395 ac_cv_func_malloc_0_nonnull=yes
5397 echo "$as_me: program exited with status $ac_status" >&5
5398 echo "$as_me: failed program was:" >&5
5399 sed 's/^/| /' conftest.$ac_ext >&5
5402 ac_cv_func_malloc_0_nonnull=no
5404 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5409 { echo "$as_me:$LINENO: result: $ac_cv_func_malloc_0_nonnull" >&5
5410 echo "${ECHO_T}$ac_cv_func_malloc_0_nonnull" >&6; }
5411 if test $ac_cv_func_malloc_0_nonnull = yes; then
5413 cat >>confdefs.h <<\_ACEOF
5414 #define HAVE_MALLOC 1
5418 cat >>confdefs.h <<\_ACEOF
5419 #define HAVE_MALLOC 0
5422 case " $LIBOBJS " in
5423 *" malloc.$ac_objext "* ) ;;
5424 *) LIBOBJS="$LIBOBJS malloc.$ac_objext"
5429 cat >>confdefs.h <<\_ACEOF
5430 #define malloc rpl_malloc
5438 for ac_header in stdlib.h
5440 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5441 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5442 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5443 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5444 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5445 echo $ECHO_N "(cached) $ECHO_C" >&6
5447 ac_res=`eval echo '${'$as_ac_Header'}'`
5448 { echo "$as_me:$LINENO: result: $ac_res" >&5
5449 echo "${ECHO_T}$ac_res" >&6; }
5451 # Is the header compilable?
5452 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
5453 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
5454 cat >conftest.$ac_ext <<_ACEOF
5457 cat confdefs.h >>conftest.$ac_ext
5458 cat >>conftest.$ac_ext <<_ACEOF
5459 /* end confdefs.h. */
5460 $ac_includes_default
5461 #include <$ac_header>
5463 rm -f conftest.$ac_objext
5464 if { (ac_try="$ac_compile"
5466 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5467 *) ac_try_echo=$ac_try;;
5469 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5470 (eval "$ac_compile") 2>conftest.er1
5472 grep -v '^ *+' conftest.er1 >conftest.err
5474 cat conftest.err >&5
5475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5476 (exit $ac_status); } && {
5477 test -z "$ac_c_werror_flag" ||
5478 test ! -s conftest.err
5479 } && test -s conftest.$ac_objext; then
5480 ac_header_compiler=yes
5482 echo "$as_me: failed program was:" >&5
5483 sed 's/^/| /' conftest.$ac_ext >&5
5485 ac_header_compiler=no
5488 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5489 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5490 echo "${ECHO_T}$ac_header_compiler" >&6; }
5492 # Is the header present?
5493 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
5494 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
5495 cat >conftest.$ac_ext <<_ACEOF
5498 cat confdefs.h >>conftest.$ac_ext
5499 cat >>conftest.$ac_ext <<_ACEOF
5500 /* end confdefs.h. */
5501 #include <$ac_header>
5503 if { (ac_try="$ac_cpp conftest.$ac_ext"
5505 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5506 *) ac_try_echo=$ac_try;;
5508 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5509 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5511 grep -v '^ *+' conftest.er1 >conftest.err
5513 cat conftest.err >&5
5514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5515 (exit $ac_status); } >/dev/null && {
5516 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5517 test ! -s conftest.err
5519 ac_header_preproc=yes
5521 echo "$as_me: failed program was:" >&5
5522 sed 's/^/| /' conftest.$ac_ext >&5
5524 ac_header_preproc=no
5527 rm -f conftest.err conftest.$ac_ext
5528 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5529 echo "${ECHO_T}$ac_header_preproc" >&6; }
5531 # So? What about this header?
5532 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5534 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5535 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5536 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5537 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5538 ac_header_preproc=yes
5541 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5542 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5543 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5544 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5545 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5546 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5547 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5548 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5549 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5550 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5551 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5552 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5554 ## --------------------------------------------- ##
5555 ## Report this to michel.vandenbergh@uhasselt.be ##
5556 ## --------------------------------------------- ##
5558 ) | sed "s/^/$as_me: WARNING: /" >&2
5561 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5562 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5563 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5564 echo $ECHO_N "(cached) $ECHO_C" >&6
5566 eval "$as_ac_Header=\$ac_header_preproc"
5568 ac_res=`eval echo '${'$as_ac_Header'}'`
5569 { echo "$as_me:$LINENO: result: $ac_res" >&5
5570 echo "${ECHO_T}$ac_res" >&6; }
5573 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5574 cat >>confdefs.h <<_ACEOF
5575 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5582 { echo "$as_me:$LINENO: checking for GNU libc compatible realloc" >&5
5583 echo $ECHO_N "checking for GNU libc compatible realloc... $ECHO_C" >&6; }
5584 if test "${ac_cv_func_realloc_0_nonnull+set}" = set; then
5585 echo $ECHO_N "(cached) $ECHO_C" >&6
5587 if test "$cross_compiling" = yes; then
5588 ac_cv_func_realloc_0_nonnull=no
5590 cat >conftest.$ac_ext <<_ACEOF
5593 cat confdefs.h >>conftest.$ac_ext
5594 cat >>conftest.$ac_ext <<_ACEOF
5595 /* end confdefs.h. */
5596 #if defined STDC_HEADERS || defined HAVE_STDLIB_H
5597 # include <stdlib.h>
5605 return ! realloc (0, 0);
5610 rm -f conftest$ac_exeext
5611 if { (ac_try="$ac_link"
5613 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5614 *) ac_try_echo=$ac_try;;
5616 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5617 (eval "$ac_link") 2>&5
5619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5620 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5621 { (case "(($ac_try" in
5622 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5623 *) ac_try_echo=$ac_try;;
5625 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5626 (eval "$ac_try") 2>&5
5628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5629 (exit $ac_status); }; }; then
5630 ac_cv_func_realloc_0_nonnull=yes
5632 echo "$as_me: program exited with status $ac_status" >&5
5633 echo "$as_me: failed program was:" >&5
5634 sed 's/^/| /' conftest.$ac_ext >&5
5637 ac_cv_func_realloc_0_nonnull=no
5639 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5644 { echo "$as_me:$LINENO: result: $ac_cv_func_realloc_0_nonnull" >&5
5645 echo "${ECHO_T}$ac_cv_func_realloc_0_nonnull" >&6; }
5646 if test $ac_cv_func_realloc_0_nonnull = yes; then
5648 cat >>confdefs.h <<\_ACEOF
5649 #define HAVE_REALLOC 1
5653 cat >>confdefs.h <<\_ACEOF
5654 #define HAVE_REALLOC 0
5657 case " $LIBOBJS " in
5658 *" realloc.$ac_objext "* ) ;;
5659 *) LIBOBJS="$LIBOBJS realloc.$ac_objext"
5664 cat >>confdefs.h <<\_ACEOF
5665 #define realloc rpl_realloc
5674 for ac_header in sys/select.h sys/socket.h
5676 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5677 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5678 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5679 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5680 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5681 echo $ECHO_N "(cached) $ECHO_C" >&6
5683 ac_res=`eval echo '${'$as_ac_Header'}'`
5684 { echo "$as_me:$LINENO: result: $ac_res" >&5
5685 echo "${ECHO_T}$ac_res" >&6; }
5687 # Is the header compilable?
5688 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
5689 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
5690 cat >conftest.$ac_ext <<_ACEOF
5693 cat confdefs.h >>conftest.$ac_ext
5694 cat >>conftest.$ac_ext <<_ACEOF
5695 /* end confdefs.h. */
5696 $ac_includes_default
5697 #include <$ac_header>
5699 rm -f conftest.$ac_objext
5700 if { (ac_try="$ac_compile"
5702 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5703 *) ac_try_echo=$ac_try;;
5705 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5706 (eval "$ac_compile") 2>conftest.er1
5708 grep -v '^ *+' conftest.er1 >conftest.err
5710 cat conftest.err >&5
5711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5712 (exit $ac_status); } && {
5713 test -z "$ac_c_werror_flag" ||
5714 test ! -s conftest.err
5715 } && test -s conftest.$ac_objext; then
5716 ac_header_compiler=yes
5718 echo "$as_me: failed program was:" >&5
5719 sed 's/^/| /' conftest.$ac_ext >&5
5721 ac_header_compiler=no
5724 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5725 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5726 echo "${ECHO_T}$ac_header_compiler" >&6; }
5728 # Is the header present?
5729 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
5730 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
5731 cat >conftest.$ac_ext <<_ACEOF
5734 cat confdefs.h >>conftest.$ac_ext
5735 cat >>conftest.$ac_ext <<_ACEOF
5736 /* end confdefs.h. */
5737 #include <$ac_header>
5739 if { (ac_try="$ac_cpp conftest.$ac_ext"
5741 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5742 *) ac_try_echo=$ac_try;;
5744 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5745 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5747 grep -v '^ *+' conftest.er1 >conftest.err
5749 cat conftest.err >&5
5750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5751 (exit $ac_status); } >/dev/null && {
5752 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5753 test ! -s conftest.err
5755 ac_header_preproc=yes
5757 echo "$as_me: failed program was:" >&5
5758 sed 's/^/| /' conftest.$ac_ext >&5
5760 ac_header_preproc=no
5763 rm -f conftest.err conftest.$ac_ext
5764 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5765 echo "${ECHO_T}$ac_header_preproc" >&6; }
5767 # So? What about this header?
5768 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5770 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5771 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5772 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5773 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5774 ac_header_preproc=yes
5777 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5778 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5779 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5780 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5781 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5782 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5783 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5784 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5785 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5786 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5787 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5788 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5790 ## --------------------------------------------- ##
5791 ## Report this to michel.vandenbergh@uhasselt.be ##
5792 ## --------------------------------------------- ##
5794 ) | sed "s/^/$as_me: WARNING: /" >&2
5797 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5798 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5799 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5800 echo $ECHO_N "(cached) $ECHO_C" >&6
5802 eval "$as_ac_Header=\$ac_header_preproc"
5804 ac_res=`eval echo '${'$as_ac_Header'}'`
5805 { echo "$as_me:$LINENO: result: $ac_res" >&5
5806 echo "${ECHO_T}$ac_res" >&6; }
5809 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5810 cat >>confdefs.h <<_ACEOF
5811 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5818 { echo "$as_me:$LINENO: checking types of arguments for select" >&5
5819 echo $ECHO_N "checking types of arguments for select... $ECHO_C" >&6; }
5820 if test "${ac_cv_func_select_args+set}" = set; then
5821 echo $ECHO_N "(cached) $ECHO_C" >&6
5823 for ac_arg234 in 'fd_set *' 'int *' 'void *'; do
5824 for ac_arg1 in 'int' 'size_t' 'unsigned long int' 'unsigned int'; do
5825 for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do
5826 cat >conftest.$ac_ext <<_ACEOF
5829 cat confdefs.h >>conftest.$ac_ext
5830 cat >>conftest.$ac_ext <<_ACEOF
5831 /* end confdefs.h. */
5832 $ac_includes_default
5833 #ifdef HAVE_SYS_SELECT_H
5834 # include <sys/select.h>
5836 #ifdef HAVE_SYS_SOCKET_H
5837 # include <sys/socket.h>
5843 extern int select ($ac_arg1,
5844 $ac_arg234, $ac_arg234, $ac_arg234,
5850 rm -f conftest.$ac_objext
5851 if { (ac_try="$ac_compile"
5853 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5854 *) ac_try_echo=$ac_try;;
5856 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5857 (eval "$ac_compile") 2>conftest.er1
5859 grep -v '^ *+' conftest.er1 >conftest.err
5861 cat conftest.err >&5
5862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5863 (exit $ac_status); } && {
5864 test -z "$ac_c_werror_flag" ||
5865 test ! -s conftest.err
5866 } && test -s conftest.$ac_objext; then
5867 ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
5869 echo "$as_me: failed program was:" >&5
5870 sed 's/^/| /' conftest.$ac_ext >&5
5875 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5879 # Provide a safe default value.
5880 : ${ac_cv_func_select_args='int,int *,struct timeval *'}
5883 { echo "$as_me:$LINENO: result: $ac_cv_func_select_args" >&5
5884 echo "${ECHO_T}$ac_cv_func_select_args" >&6; }
5885 ac_save_IFS=$IFS; IFS=','
5886 set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
5890 cat >>confdefs.h <<_ACEOF
5891 #define SELECT_TYPE_ARG1 $1
5895 cat >>confdefs.h <<_ACEOF
5896 #define SELECT_TYPE_ARG234 ($2)
5900 cat >>confdefs.h <<_ACEOF
5901 #define SELECT_TYPE_ARG5 ($3)
5906 { echo "$as_me:$LINENO: checking for function prototypes" >&5
5907 echo $ECHO_N "checking for function prototypes... $ECHO_C" >&6; }
5908 if test "$ac_cv_prog_cc_c89" != no; then
5909 { echo "$as_me:$LINENO: result: yes" >&5
5910 echo "${ECHO_T}yes" >&6; }
5912 cat >>confdefs.h <<\_ACEOF
5913 #define PROTOTYPES 1
5917 cat >>confdefs.h <<\_ACEOF
5918 #define __PROTOTYPES 1
5922 { echo "$as_me:$LINENO: result: no" >&5
5923 echo "${ECHO_T}no" >&6; }
5926 { echo "$as_me:$LINENO: checking whether setvbuf arguments are reversed" >&5
5927 echo $ECHO_N "checking whether setvbuf arguments are reversed... $ECHO_C" >&6; }
5928 if test "${ac_cv_func_setvbuf_reversed+set}" = set; then
5929 echo $ECHO_N "(cached) $ECHO_C" >&6
5931 ac_cv_func_setvbuf_reversed=no
5932 cat >conftest.$ac_ext <<_ACEOF
5935 cat confdefs.h >>conftest.$ac_ext
5936 cat >>conftest.$ac_ext <<_ACEOF
5937 /* end confdefs.h. */
5940 int (setvbuf) (FILE *, int, char *, size_t);
5945 char buf; return setvbuf (stdout, _IOLBF, &buf, 1);
5950 rm -f conftest.$ac_objext conftest$ac_exeext
5951 if { (ac_try="$ac_link"
5953 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5954 *) ac_try_echo=$ac_try;;
5956 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5957 (eval "$ac_link") 2>conftest.er1
5959 grep -v '^ *+' conftest.er1 >conftest.err
5961 cat conftest.err >&5
5962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5963 (exit $ac_status); } && {
5964 test -z "$ac_c_werror_flag" ||
5965 test ! -s conftest.err
5966 } && test -s conftest$ac_exeext &&
5967 $as_test_x conftest$ac_exeext; then
5968 cat >conftest.$ac_ext <<_ACEOF
5971 cat confdefs.h >>conftest.$ac_ext
5972 cat >>conftest.$ac_ext <<_ACEOF
5973 /* end confdefs.h. */
5976 int (setvbuf) (FILE *, int, char *, size_t);
5981 char buf; return setvbuf (stdout, &buf, _IOLBF, 1);
5986 rm -f conftest.$ac_objext conftest$ac_exeext
5987 if { (ac_try="$ac_link"
5989 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5990 *) ac_try_echo=$ac_try;;
5992 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5993 (eval "$ac_link") 2>conftest.er1
5995 grep -v '^ *+' conftest.er1 >conftest.err
5997 cat conftest.err >&5
5998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5999 (exit $ac_status); } && {
6000 test -z "$ac_c_werror_flag" ||
6001 test ! -s conftest.err
6002 } && test -s conftest$ac_exeext &&
6003 $as_test_x conftest$ac_exeext; then
6004 # It compiles and links either way, so it must not be declared
6005 # with a prototype and most likely this is a K&R C compiler.
6007 if test "$cross_compiling" = yes; then
6008 : # Assume setvbuf is not reversed when cross-compiling.
6010 cat >conftest.$ac_ext <<_ACEOF
6013 cat confdefs.h >>conftest.$ac_ext
6014 cat >>conftest.$ac_ext <<_ACEOF
6015 /* end confdefs.h. */
6016 $ac_includes_default
6020 /* This call has the arguments reversed.
6021 A reversed system may check and see that the address of buf
6022 is not _IOLBF, _IONBF, or _IOFBF, and return nonzero. */
6024 if (setvbuf (stdout, _IOLBF, &buf, 1) != 0)
6027 return 0; /* Non-reversed systems SEGV here. */
6032 rm -f conftest$ac_exeext
6033 if { (ac_try="$ac_link"
6035 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6036 *) ac_try_echo=$ac_try;;
6038 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6039 (eval "$ac_link") 2>&5
6041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6042 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6043 { (case "(($ac_try" in
6044 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6045 *) ac_try_echo=$ac_try;;
6047 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6048 (eval "$ac_try") 2>&5
6050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6051 (exit $ac_status); }; }; then
6052 ac_cv_func_setvbuf_reversed=yes
6054 echo "$as_me: program exited with status $ac_status" >&5
6055 echo "$as_me: failed program was:" >&5
6056 sed 's/^/| /' conftest.$ac_ext >&5
6059 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6063 ac_cv_func_setvbuf_reversed=yes
6065 echo "$as_me: failed program was:" >&5
6066 sed 's/^/| /' conftest.$ac_ext >&5
6071 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6072 conftest$ac_exeext conftest.$ac_ext
6074 echo "$as_me: failed program was:" >&5
6075 sed 's/^/| /' conftest.$ac_ext >&5
6080 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6081 conftest$ac_exeext conftest.$ac_ext
6083 { echo "$as_me:$LINENO: result: $ac_cv_func_setvbuf_reversed" >&5
6084 echo "${ECHO_T}$ac_cv_func_setvbuf_reversed" >&6; }
6085 if test $ac_cv_func_setvbuf_reversed = yes; then
6087 cat >>confdefs.h <<\_ACEOF
6088 #define SETVBUF_REVERSED 1
6093 { echo "$as_me:$LINENO: checking return type of signal handlers" >&5
6094 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
6095 if test "${ac_cv_type_signal+set}" = set; then
6096 echo $ECHO_N "(cached) $ECHO_C" >&6
6098 cat >conftest.$ac_ext <<_ACEOF
6101 cat confdefs.h >>conftest.$ac_ext
6102 cat >>conftest.$ac_ext <<_ACEOF
6103 /* end confdefs.h. */
6104 #include <sys/types.h>
6110 return *(signal (0, 0)) (0) == 1;
6115 rm -f conftest.$ac_objext
6116 if { (ac_try="$ac_compile"
6118 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6119 *) ac_try_echo=$ac_try;;
6121 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6122 (eval "$ac_compile") 2>conftest.er1
6124 grep -v '^ *+' conftest.er1 >conftest.err
6126 cat conftest.err >&5
6127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6128 (exit $ac_status); } && {
6129 test -z "$ac_c_werror_flag" ||
6130 test ! -s conftest.err
6131 } && test -s conftest.$ac_objext; then
6132 ac_cv_type_signal=int
6134 echo "$as_me: failed program was:" >&5
6135 sed 's/^/| /' conftest.$ac_ext >&5
6137 ac_cv_type_signal=void
6140 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6142 { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
6143 echo "${ECHO_T}$ac_cv_type_signal" >&6; }
6145 cat >>confdefs.h <<_ACEOF
6146 #define RETSIGTYPE $ac_cv_type_signal
6151 for ac_func in vprintf
6153 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6154 { echo "$as_me:$LINENO: checking for $ac_func" >&5
6155 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
6156 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
6157 echo $ECHO_N "(cached) $ECHO_C" >&6
6159 cat >conftest.$ac_ext <<_ACEOF
6162 cat confdefs.h >>conftest.$ac_ext
6163 cat >>conftest.$ac_ext <<_ACEOF
6164 /* end confdefs.h. */
6165 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6166 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6167 #define $ac_func innocuous_$ac_func
6169 /* System header to define __stub macros and hopefully few prototypes,
6170 which can conflict with char $ac_func (); below.
6171 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6172 <limits.h> exists even on freestanding compilers. */
6175 # include <limits.h>
6177 # include <assert.h>
6182 /* Override any GCC internal prototype to avoid an error.
6183 Use char because int might match the return type of a GCC
6184 builtin and then its argument prototype would still apply. */
6189 /* The GNU C library defines this for functions which it implements
6190 to always fail with ENOSYS. Some functions are actually named
6191 something starting with __ and the normal name is an alias. */
6192 #if defined __stub_$ac_func || defined __stub___$ac_func
6204 rm -f conftest.$ac_objext conftest$ac_exeext
6205 if { (ac_try="$ac_link"
6207 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6208 *) ac_try_echo=$ac_try;;
6210 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6211 (eval "$ac_link") 2>conftest.er1
6213 grep -v '^ *+' conftest.er1 >conftest.err
6215 cat conftest.err >&5
6216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6217 (exit $ac_status); } && {
6218 test -z "$ac_c_werror_flag" ||
6219 test ! -s conftest.err
6220 } && test -s conftest$ac_exeext &&
6221 $as_test_x conftest$ac_exeext; then
6222 eval "$as_ac_var=yes"
6224 echo "$as_me: failed program was:" >&5
6225 sed 's/^/| /' conftest.$ac_ext >&5
6227 eval "$as_ac_var=no"
6230 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6231 conftest$ac_exeext conftest.$ac_ext
6233 ac_res=`eval echo '${'$as_ac_var'}'`
6234 { echo "$as_me:$LINENO: result: $ac_res" >&5
6235 echo "${ECHO_T}$ac_res" >&6; }
6236 if test `eval echo '${'$as_ac_var'}'` = yes; then
6237 cat >>confdefs.h <<_ACEOF
6238 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6241 { echo "$as_me:$LINENO: checking for _doprnt" >&5
6242 echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6; }
6243 if test "${ac_cv_func__doprnt+set}" = set; then
6244 echo $ECHO_N "(cached) $ECHO_C" >&6
6246 cat >conftest.$ac_ext <<_ACEOF
6249 cat confdefs.h >>conftest.$ac_ext
6250 cat >>conftest.$ac_ext <<_ACEOF
6251 /* end confdefs.h. */
6252 /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
6253 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6254 #define _doprnt innocuous__doprnt
6256 /* System header to define __stub macros and hopefully few prototypes,
6257 which can conflict with char _doprnt (); below.
6258 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6259 <limits.h> exists even on freestanding compilers. */
6262 # include <limits.h>
6264 # include <assert.h>
6269 /* Override any GCC internal prototype to avoid an error.
6270 Use char because int might match the return type of a GCC
6271 builtin and then its argument prototype would still apply. */
6276 /* The GNU C library defines this for functions which it implements
6277 to always fail with ENOSYS. Some functions are actually named
6278 something starting with __ and the normal name is an alias. */
6279 #if defined __stub__doprnt || defined __stub____doprnt
6291 rm -f conftest.$ac_objext conftest$ac_exeext
6292 if { (ac_try="$ac_link"
6294 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6295 *) ac_try_echo=$ac_try;;
6297 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6298 (eval "$ac_link") 2>conftest.er1
6300 grep -v '^ *+' conftest.er1 >conftest.err
6302 cat conftest.err >&5
6303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6304 (exit $ac_status); } && {
6305 test -z "$ac_c_werror_flag" ||
6306 test ! -s conftest.err
6307 } && test -s conftest$ac_exeext &&
6308 $as_test_x conftest$ac_exeext; then
6309 ac_cv_func__doprnt=yes
6311 echo "$as_me: failed program was:" >&5
6312 sed 's/^/| /' conftest.$ac_ext >&5
6314 ac_cv_func__doprnt=no
6317 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6318 conftest$ac_exeext conftest.$ac_ext
6320 { echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
6321 echo "${ECHO_T}$ac_cv_func__doprnt" >&6; }
6322 if test $ac_cv_func__doprnt = yes; then
6324 cat >>confdefs.h <<\_ACEOF
6325 #define HAVE_DOPRNT 1
6344 for ac_func in dup2 floor gettimeofday memchr memmove select strchr strdup strerror strstr
6346 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6347 { echo "$as_me:$LINENO: checking for $ac_func" >&5
6348 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
6349 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
6350 echo $ECHO_N "(cached) $ECHO_C" >&6
6352 cat >conftest.$ac_ext <<_ACEOF
6355 cat confdefs.h >>conftest.$ac_ext
6356 cat >>conftest.$ac_ext <<_ACEOF
6357 /* end confdefs.h. */
6358 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6359 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6360 #define $ac_func innocuous_$ac_func
6362 /* System header to define __stub macros and hopefully few prototypes,
6363 which can conflict with char $ac_func (); below.
6364 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6365 <limits.h> exists even on freestanding compilers. */
6368 # include <limits.h>
6370 # include <assert.h>
6375 /* Override any GCC internal prototype to avoid an error.
6376 Use char because int might match the return type of a GCC
6377 builtin and then its argument prototype would still apply. */
6382 /* The GNU C library defines this for functions which it implements
6383 to always fail with ENOSYS. Some functions are actually named
6384 something starting with __ and the normal name is an alias. */
6385 #if defined __stub_$ac_func || defined __stub___$ac_func
6397 rm -f conftest.$ac_objext conftest$ac_exeext
6398 if { (ac_try="$ac_link"
6400 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6401 *) ac_try_echo=$ac_try;;
6403 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6404 (eval "$ac_link") 2>conftest.er1
6406 grep -v '^ *+' conftest.er1 >conftest.err
6408 cat conftest.err >&5
6409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6410 (exit $ac_status); } && {
6411 test -z "$ac_c_werror_flag" ||
6412 test ! -s conftest.err
6413 } && test -s conftest$ac_exeext &&
6414 $as_test_x conftest$ac_exeext; then
6415 eval "$as_ac_var=yes"
6417 echo "$as_me: failed program was:" >&5
6418 sed 's/^/| /' conftest.$ac_ext >&5
6420 eval "$as_ac_var=no"
6423 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6424 conftest$ac_exeext conftest.$ac_ext
6426 ac_res=`eval echo '${'$as_ac_var'}'`
6427 { echo "$as_me:$LINENO: result: $ac_res" >&5
6428 echo "${ECHO_T}$ac_res" >&6; }
6429 if test `eval echo '${'$as_ac_var'}'` = yes; then
6430 cat >>confdefs.h <<_ACEOF
6431 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6439 ac_config_files="$ac_config_files Makefile"
6441 cat >confcache <<\_ACEOF
6442 # This file is a shell script that caches the results of configure
6443 # tests run on this system so they can be shared between configure
6444 # scripts and configure runs, see configure's option --config-cache.
6445 # It is not useful on other systems. If it contains results you don't
6446 # want to keep, you may remove or edit it.
6448 # config.status only pays attention to the cache file if you give it
6449 # the --recheck option to rerun configure.
6451 # `ac_cv_env_foo' variables (set or unset) will be overridden when
6452 # loading this file, other *unset* `ac_cv_foo' will be assigned the
6457 # The following way of writing the cache mishandles newlines in values,
6458 # but we know of no workaround that is simple, portable, and efficient.
6459 # So, we kill variables containing newlines.
6460 # Ultrix sh set writes to stderr and can't be redirected directly,
6461 # and sets the high bit in the cache file unless we assign to the vars.
6463 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
6464 eval ac_val=\$$ac_var
6468 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
6469 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
6472 _ | IFS | as_nl) ;; #(
6473 *) $as_unset $ac_var ;;
6479 case $as_nl`(ac_space=' '; set) 2>&1` in #(
6480 *${as_nl}ac_space=\ *)
6481 # `set' does not quote correctly, so add quotes (double-quote
6482 # substitution turns \\\\ into \\, and sed turns \\ into \).
6485 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
6488 # `set' quotes correctly as required by POSIX, so do not add quotes.
6489 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
6498 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
6500 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
6502 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
6503 if test -w "$cache_file"; then
6504 test "x$cache_file" != "x/dev/null" &&
6505 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
6506 echo "$as_me: updating cache $cache_file" >&6;}
6507 cat confcache >$cache_file
6509 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
6510 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
6515 test "x$prefix" = xNONE && prefix=$ac_default_prefix
6516 # Let make expand exec_prefix.
6517 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
6519 DEFS=-DHAVE_CONFIG_H
6523 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
6524 # 1. Remove the extension, and $U if already installed.
6525 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
6526 ac_i=`echo "$ac_i" | sed "$ac_script"`
6527 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
6528 # will be set to the directory where LIBOBJS objects are built.
6529 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
6530 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
6534 LTLIBOBJS=$ac_ltlibobjs
6537 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
6538 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
6539 Usually this means the macro was only invoked conditionally." >&5
6540 echo "$as_me: error: conditional \"AMDEP\" was never defined.
6541 Usually this means the macro was only invoked conditionally." >&2;}
6542 { (exit 1); exit 1; }; }
6544 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
6545 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
6546 Usually this means the macro was only invoked conditionally." >&5
6547 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
6548 Usually this means the macro was only invoked conditionally." >&2;}
6549 { (exit 1); exit 1; }; }
6552 : ${CONFIG_STATUS=./config.status}
6553 ac_clean_files_save=$ac_clean_files
6554 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
6555 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
6556 echo "$as_me: creating $CONFIG_STATUS" >&6;}
6557 cat >$CONFIG_STATUS <<_ACEOF
6559 # Generated by $as_me.
6560 # Run this file to recreate the current configuration.
6561 # Compiler output produced by configure, useful for debugging
6562 # configure, is in config.log if it exists.
6567 SHELL=\${CONFIG_SHELL-$SHELL}
6570 cat >>$CONFIG_STATUS <<\_ACEOF
6571 ## --------------------- ##
6572 ## M4sh Initialization. ##
6573 ## --------------------- ##
6575 # Be more Bourne compatible
6576 DUALCASE=1; export DUALCASE # for MKS sh
6577 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
6580 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
6581 # is contrary to our usage. Disable this feature.
6582 alias -g '${1+"$@"}'='"$@"'
6583 setopt NO_GLOB_SUBST
6585 case `(set -o) 2>/dev/null` in
6586 *posix*) set -o posix ;;
6595 # Avoid depending upon Character Ranges.
6596 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
6597 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
6598 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
6599 as_cr_digits='0123456789'
6600 as_cr_alnum=$as_cr_Letters$as_cr_digits
6602 # The user is always right.
6603 if test "${PATH_SEPARATOR+set}" != set; then
6604 echo "#! /bin/sh" >conf$$.sh
6605 echo "exit 0" >>conf$$.sh
6607 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
6615 # Support unset when possible.
6616 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6624 # We need space, tab and new line, in precisely that order. Quoting is
6625 # there to prevent editors from complaining about space-tab.
6626 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
6627 # splitting by setting IFS to empty value.)
6632 # Find who we are. Look in the path if we contain no directory separator.
6634 *[\\/]* ) as_myself=$0 ;;
6635 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6639 test -z "$as_dir" && as_dir=.
6640 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
6646 # We did not find ourselves, most probably we were run as `sh COMMAND'
6647 # in which case we are not to be found in the path.
6648 if test "x$as_myself" = x; then
6651 if test ! -f "$as_myself"; then
6652 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
6653 { (exit 1); exit 1; }
6656 # Work around bugs in pre-3.0 UWIN ksh.
6657 for as_var in ENV MAIL MAILPATH
6658 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
6666 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
6667 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
6668 LC_TELEPHONE LC_TIME
6670 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
6671 eval $as_var=C; export $as_var
6673 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
6677 # Required to use basename.
6678 if expr a : '\(a\)' >/dev/null 2>&1 &&
6679 test "X`expr 00001 : '.*\(...\)'`" = X001; then
6685 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
6686 as_basename=basename
6692 # Name of the executable.
6693 as_me=`$as_basename -- "$0" ||
6694 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
6695 X"$0" : 'X\(//\)$' \| \
6696 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
6698 sed '/^.*\/\([^/][^/]*\)\/*$/{
6719 test "x$as_lineno_1" != "x$as_lineno_2" &&
6720 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
6722 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
6723 # uniformly replaced by the line number. The first 'sed' inserts a
6724 # line-number line after each line using $LINENO; the second 'sed'
6725 # does the real work. The second script uses 'N' to pair each
6726 # line-number line with the line containing $LINENO, and appends
6727 # trailing '-' during substitution so that $LINENO is not a special
6729 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
6730 # scripts with optimization help from Paolo Bonzini. Blame Lee
6731 # E. McMahon (1931-1989) for sed's syntax. :-)
6743 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
6747 chmod +x "$as_me.lineno" ||
6748 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
6749 { (exit 1); exit 1; }; }
6751 # Don't try to exec as it changes $[0], causing all sort of problems
6752 # (the dirname of $[0] is not the place where we might find the
6753 # original and so on. Autoconf is especially sensitive to this).
6755 # Exit status is that of the last command.
6760 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
6766 ECHO_C= ECHO_N= ECHO_T=
6769 case `echo 'x\c'` in
6770 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
6777 if expr a : '\(a\)' >/dev/null 2>&1 &&
6778 test "X`expr 00001 : '.*\(...\)'`" = X001; then
6784 rm -f conf$$ conf$$.exe conf$$.file
6785 if test -d conf$$.dir; then
6786 rm -f conf$$.dir/conf$$.file
6792 if ln -s conf$$.file conf$$ 2>/dev/null; then
6794 # ... but there are two gotchas:
6795 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
6796 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
6797 # In both cases, we have to default to `cp -p'.
6798 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
6800 elif ln conf$$.file conf$$ 2>/dev/null; then
6805 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
6806 rmdir conf$$.dir 2>/dev/null
6808 if mkdir -p . 2>/dev/null; then
6811 test -d ./-p && rmdir ./-p
6815 if test -x / >/dev/null 2>&1; then
6818 if ls -dL / >/dev/null 2>&1; then
6825 if test -d "$1"; then
6831 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
6832 ???[sx]*):;;*)false;;esac;fi
6836 as_executable_p=$as_test_x
6838 # Sed expression to map a string onto a valid CPP name.
6839 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
6841 # Sed expression to map a string onto a valid variable name.
6842 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
6847 # Save the log message, to keep $[0] and so on meaningful, and to
6848 # report actual input values of CONFIG_FILES etc. instead of their
6849 # values after options handling.
6851 This file was extended by polyglot $as_me 1.4.32b, which was
6852 generated by GNU Autoconf 2.61. Invocation command line was
6854 CONFIG_FILES = $CONFIG_FILES
6855 CONFIG_HEADERS = $CONFIG_HEADERS
6856 CONFIG_LINKS = $CONFIG_LINKS
6857 CONFIG_COMMANDS = $CONFIG_COMMANDS
6860 on `(hostname || uname -n) 2>/dev/null | sed 1q`
6865 cat >>$CONFIG_STATUS <<_ACEOF
6866 # Files that config.status was made for.
6867 config_files="$ac_config_files"
6868 config_headers="$ac_config_headers"
6869 config_commands="$ac_config_commands"
6873 cat >>$CONFIG_STATUS <<\_ACEOF
6875 \`$as_me' instantiates files from templates according to the
6876 current configuration.
6878 Usage: $0 [OPTIONS] [FILE]...
6880 -h, --help print this help, then exit
6881 -V, --version print version number and configuration settings, then exit
6882 -q, --quiet do not print progress messages
6883 -d, --debug don't remove temporary files
6884 --recheck update $as_me by reconfiguring in the same conditions
6885 --file=FILE[:TEMPLATE]
6886 instantiate the configuration file FILE
6887 --header=FILE[:TEMPLATE]
6888 instantiate the configuration header FILE
6890 Configuration files:
6893 Configuration headers:
6896 Configuration commands:
6899 Report bugs to <bug-autoconf@gnu.org>."
6902 cat >>$CONFIG_STATUS <<_ACEOF
6904 polyglot config.status 1.4.32b
6905 configured by $0, generated by GNU Autoconf 2.61,
6906 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
6908 Copyright (C) 2006 Free Software Foundation, Inc.
6909 This config.status script is free software; the Free Software Foundation
6910 gives unlimited permission to copy, distribute and modify it."
6918 cat >>$CONFIG_STATUS <<\_ACEOF
6919 # If no file are specified by the user, then we need to provide default
6920 # value. By we need to know if files were specified by the user.
6926 ac_option=`expr "X$1" : 'X\([^=]*\)='`
6927 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
6938 # Handling of the options.
6939 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
6941 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
6942 echo "$ac_cs_version"; exit ;;
6943 --debug | --debu | --deb | --de | --d | -d )
6945 --file | --fil | --fi | --f )
6947 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
6948 ac_need_defaults=false;;
6949 --header | --heade | --head | --hea )
6951 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
6952 ac_need_defaults=false;;
6954 # Conflict between --help and --header
6955 { echo "$as_me: error: ambiguous option: $1
6956 Try \`$0 --help' for more information." >&2
6957 { (exit 1); exit 1; }; };;
6958 --help | --hel | -h )
6959 echo "$ac_cs_usage"; exit ;;
6960 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
6961 | -silent | --silent | --silen | --sile | --sil | --si | --s)
6965 -*) { echo "$as_me: error: unrecognized option: $1
6966 Try \`$0 --help' for more information." >&2
6967 { (exit 1); exit 1; }; } ;;
6969 *) ac_config_targets="$ac_config_targets $1"
6970 ac_need_defaults=false ;;
6976 ac_configure_extra_args=
6978 if $ac_cs_silent; then
6980 ac_configure_extra_args="$ac_configure_extra_args --silent"
6984 cat >>$CONFIG_STATUS <<_ACEOF
6985 if \$ac_cs_recheck; then
6986 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
6989 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
6993 cat >>$CONFIG_STATUS <<\_ACEOF
6997 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
6998 ## Running $as_me. ##
7004 cat >>$CONFIG_STATUS <<_ACEOF
7008 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
7012 cat >>$CONFIG_STATUS <<\_ACEOF
7014 # Handling of arguments.
7015 for ac_config_target in $ac_config_targets
7017 case $ac_config_target in
7018 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
7019 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
7020 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
7022 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
7023 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
7024 { (exit 1); exit 1; }; };;
7029 # If the user did not use the arguments to specify the items to instantiate,
7030 # then the envvar interface is used. Set only those that are not.
7031 # We use the long form for the default assignment because of an extremely
7032 # bizarre bug on SunOS 4.1.3.
7033 if $ac_need_defaults; then
7034 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
7035 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
7036 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
7039 # Have a temporary directory for convenience. Make it in the build tree
7040 # simply because there is no reason against having it here, and in addition,
7041 # creating and moving files from /tmp can sometimes cause problems.
7042 # Hook for its removal unless debugging.
7043 # Note that there is a small window in which the directory will not be cleaned:
7044 # after its creation but before its name has been assigned to `$tmp'.
7048 trap 'exit_status=$?
7049 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
7051 trap '{ (exit 1); exit 1; }' 1 2 13 15
7053 # Create a (secure) tmp directory for tmp files.
7056 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
7057 test -n "$tmp" && test -d "$tmp"
7060 tmp=./conf$$-$RANDOM
7061 (umask 077 && mkdir "$tmp")
7064 echo "$me: cannot create a temporary directory in ." >&2
7065 { (exit 1); exit 1; }
7069 # Set up the sed scripts for CONFIG_FILES section.
7072 # No need to generate the scripts if there are no CONFIG_FILES.
7073 # This happens for instance when ./config.status config.h
7074 if test -n "$CONFIG_FILES"; then
7081 for ac_last_try in false false false false false :; do
7082 cat >conf$$subs.sed <<_ACEOF
7083 SHELL!$SHELL$ac_delim
7084 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
7085 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
7086 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
7087 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
7088 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
7089 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
7090 exec_prefix!$exec_prefix$ac_delim
7091 prefix!$prefix$ac_delim
7092 program_transform_name!$program_transform_name$ac_delim
7093 bindir!$bindir$ac_delim
7094 sbindir!$sbindir$ac_delim
7095 libexecdir!$libexecdir$ac_delim
7096 datarootdir!$datarootdir$ac_delim
7097 datadir!$datadir$ac_delim
7098 sysconfdir!$sysconfdir$ac_delim
7099 sharedstatedir!$sharedstatedir$ac_delim
7100 localstatedir!$localstatedir$ac_delim
7101 includedir!$includedir$ac_delim
7102 oldincludedir!$oldincludedir$ac_delim
7103 docdir!$docdir$ac_delim
7104 infodir!$infodir$ac_delim
7105 htmldir!$htmldir$ac_delim
7106 dvidir!$dvidir$ac_delim
7107 pdfdir!$pdfdir$ac_delim
7108 psdir!$psdir$ac_delim
7109 libdir!$libdir$ac_delim
7110 localedir!$localedir$ac_delim
7111 mandir!$mandir$ac_delim
7113 ECHO_C!$ECHO_C$ac_delim
7114 ECHO_N!$ECHO_N$ac_delim
7115 ECHO_T!$ECHO_T$ac_delim
7117 build_alias!$build_alias$ac_delim
7118 host_alias!$host_alias$ac_delim
7119 target_alias!$target_alias$ac_delim
7120 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
7121 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
7122 INSTALL_DATA!$INSTALL_DATA$ac_delim
7123 am__isrc!$am__isrc$ac_delim
7124 CYGPATH_W!$CYGPATH_W$ac_delim
7125 PACKAGE!$PACKAGE$ac_delim
7126 VERSION!$VERSION$ac_delim
7127 ACLOCAL!$ACLOCAL$ac_delim
7128 AUTOCONF!$AUTOCONF$ac_delim
7129 AUTOMAKE!$AUTOMAKE$ac_delim
7130 AUTOHEADER!$AUTOHEADER$ac_delim
7131 MAKEINFO!$MAKEINFO$ac_delim
7132 install_sh!$install_sh$ac_delim
7133 STRIP!$STRIP$ac_delim
7134 INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim
7135 mkdir_p!$mkdir_p$ac_delim
7137 SET_MAKE!$SET_MAKE$ac_delim
7138 am__leading_dot!$am__leading_dot$ac_delim
7139 AMTAR!$AMTAR$ac_delim
7140 am__tar!$am__tar$ac_delim
7141 am__untar!$am__untar$ac_delim
7143 CFLAGS!$CFLAGS$ac_delim
7144 LDFLAGS!$LDFLAGS$ac_delim
7145 CPPFLAGS!$CPPFLAGS$ac_delim
7146 ac_ct_CC!$ac_ct_CC$ac_delim
7147 EXEEXT!$EXEEXT$ac_delim
7148 OBJEXT!$OBJEXT$ac_delim
7149 DEPDIR!$DEPDIR$ac_delim
7150 am__include!$am__include$ac_delim
7151 am__quote!$am__quote$ac_delim
7152 AMDEP_TRUE!$AMDEP_TRUE$ac_delim
7153 AMDEP_FALSE!$AMDEP_FALSE$ac_delim
7154 AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim
7155 CCDEPMODE!$CCDEPMODE$ac_delim
7156 am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim
7157 am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim
7160 EGREP!$EGREP$ac_delim
7161 LIBOBJS!$LIBOBJS$ac_delim
7162 LTLIBOBJS!$LTLIBOBJS$ac_delim
7165 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 80; then
7167 elif $ac_last_try; then
7168 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
7169 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
7170 { (exit 1); exit 1; }; }
7172 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
7176 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
7177 if test -n "$ac_eof"; then
7178 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
7179 ac_eof=`expr $ac_eof + 1`
7182 cat >>$CONFIG_STATUS <<_ACEOF
7183 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
7184 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
7187 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
7188 s/^/s,@/; s/!/@,|#_!!_#|/
7191 s/'"$ac_delim"'$/,g/; t
7193 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
7194 ' >>$CONFIG_STATUS <conf$$subs.sed
7195 rm -f conf$$subs.sed
7196 cat >>$CONFIG_STATUS <<_ACEOF
7203 # VPATH may cause trouble with some makes, so we remove $(srcdir),
7204 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
7205 # trailing colons and then remove the whole line if VPATH becomes empty
7206 # (actually we leave an empty line to preserve line numbers).
7207 if test "x$srcdir" = x.; then
7208 ac_vpsub='/^[ ]*VPATH[ ]*=/{
7212 s/^\([^=]*=[ ]*\):*/\1/
7218 cat >>$CONFIG_STATUS <<\_ACEOF
7219 fi # test -n "$CONFIG_FILES"
7222 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
7225 :[FHLC]) ac_mode=$ac_tag; continue;;
7227 case $ac_mode$ac_tag in
7229 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
7230 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
7231 { (exit 1); exit 1; }; };;
7232 :[FH]-) ac_tag=-:-;;
7233 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
7250 -) ac_f="$tmp/stdin";;
7251 *) # Look for the file first in the build tree, then in the source tree
7252 # (if the path is not absolute). The absolute path cannot be DOS-style,
7253 # because $ac_f cannot contain `:'.
7257 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
7259 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
7260 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
7261 { (exit 1); exit 1; }; };;
7263 ac_file_inputs="$ac_file_inputs $ac_f"
7266 # Let's still pretend it is `configure' which instantiates (i.e., don't
7267 # use $as_me), people would be surprised to read:
7268 # /* config.h. Generated by config.status. */
7269 configure_input="Generated from "`IFS=:
7270 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
7271 if test x"$ac_file" != x-; then
7272 configure_input="$ac_file. $configure_input"
7273 { echo "$as_me:$LINENO: creating $ac_file" >&5
7274 echo "$as_me: creating $ac_file" >&6;}
7278 *:-:* | *:-) cat >"$tmp/stdin";;
7283 ac_dir=`$as_dirname -- "$ac_file" ||
7284 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7285 X"$ac_file" : 'X\(//\)[^/]' \| \
7286 X"$ac_file" : 'X\(//\)$' \| \
7287 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
7289 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
7308 -*) as_dir=./$as_dir;;
7310 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
7314 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
7315 *) as_qdir=$as_dir;;
7317 as_dirs="'$as_qdir' $as_dirs"
7318 as_dir=`$as_dirname -- "$as_dir" ||
7319 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7320 X"$as_dir" : 'X\(//\)[^/]' \| \
7321 X"$as_dir" : 'X\(//\)$' \| \
7322 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
7324 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
7341 test -d "$as_dir" && break
7343 test -z "$as_dirs" || eval "mkdir $as_dirs"
7344 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
7345 echo "$as_me: error: cannot create directory $as_dir" >&2;}
7346 { (exit 1); exit 1; }; }; }
7350 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
7352 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
7353 # A ".." for each directory in $ac_dir_suffix.
7354 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
7355 case $ac_top_builddir_sub in
7356 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
7357 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
7360 ac_abs_top_builddir=$ac_pwd
7361 ac_abs_builddir=$ac_pwd$ac_dir_suffix
7362 # for backward compatibility:
7363 ac_top_builddir=$ac_top_build_prefix
7366 .) # We are building in place.
7368 ac_top_srcdir=$ac_top_builddir_sub
7369 ac_abs_top_srcdir=$ac_pwd ;;
7370 [\\/]* | ?:[\\/]* ) # Absolute name.
7371 ac_srcdir=$srcdir$ac_dir_suffix;
7372 ac_top_srcdir=$srcdir
7373 ac_abs_top_srcdir=$srcdir ;;
7375 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
7376 ac_top_srcdir=$ac_top_build_prefix$srcdir
7377 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
7379 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
7389 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
7390 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
7394 [\\/$]* | ?:[\\/]* ) ;;
7395 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
7399 cat >>$CONFIG_STATUS <<\_ACEOF
7400 # If the template does not know about datarootdir, expand it.
7401 # FIXME: This hack should be removed a few years after 2.60.
7402 ac_datarootdir_hack=; ac_datarootdir_seen=
7404 case `sed -n '/datarootdir/ {
7413 ' $ac_file_inputs` in
7414 *datarootdir*) ac_datarootdir_seen=yes;;
7415 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
7416 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
7417 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
7419 cat >>$CONFIG_STATUS <<_ACEOF
7420 ac_datarootdir_hack='
7421 s&@datadir@&$datadir&g
7422 s&@docdir@&$docdir&g
7423 s&@infodir@&$infodir&g
7424 s&@localedir@&$localedir&g
7425 s&@mandir@&$mandir&g
7426 s&\\\${datarootdir}&$datarootdir&g' ;;
7430 # Neutralize VPATH when `$srcdir' = `.'.
7431 # Shell code in configure.ac might set extrasub.
7432 # FIXME: do we really want to maintain this feature?
7433 cat >>$CONFIG_STATUS <<_ACEOF
7437 cat >>$CONFIG_STATUS <<\_ACEOF
7439 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
7440 s&@configure_input@&$configure_input&;t t
7441 s&@top_builddir@&$ac_top_builddir_sub&;t t
7442 s&@srcdir@&$ac_srcdir&;t t
7443 s&@abs_srcdir@&$ac_abs_srcdir&;t t
7444 s&@top_srcdir@&$ac_top_srcdir&;t t
7445 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
7446 s&@builddir@&$ac_builddir&;t t
7447 s&@abs_builddir@&$ac_abs_builddir&;t t
7448 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
7449 s&@INSTALL@&$ac_INSTALL&;t t
7450 s&@MKDIR_P@&$ac_MKDIR_P&;t t
7451 $ac_datarootdir_hack
7452 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" >$tmp/out
7454 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
7455 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
7456 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
7457 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
7458 which seems to be undefined. Please make sure it is defined." >&5
7459 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
7460 which seems to be undefined. Please make sure it is defined." >&2;}
7464 -) cat "$tmp/out"; rm -f "$tmp/out";;
7465 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
7474 # Transform confdefs.h into a sed script `conftest.defines', that
7475 # substitutes the proper values into config.h.in to produce config.h.
7476 rm -f conftest.defines conftest.tail
7477 # First, append a space to every undef/define line, to ease matching.
7478 echo 's/$/ /' >conftest.defines
7479 # Then, protect against being on the right side of a sed subst, or in
7480 # an unquoted here document, in config.status. If some macros were
7481 # called several times there might be several #defines for the same
7482 # symbol, which is useless. But do not sort them, since the last
7483 # AC_DEFINE must be honored.
7484 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
7485 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
7486 # NAME is the cpp macro being defined, VALUE is the value it is being given.
7487 # PARAMS is the parameter list in the macro definition--in most cases, it's
7488 # just an empty string.
7489 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
7490 ac_dB='\\)[ (].*,\\1define\\2'
7498 s/^[ ]*#[ ]*define[ ][ ]*//
7503 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
7504 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
7505 ' >>conftest.defines
7507 # Remove the space that was appended to ease matching.
7508 # Then replace #undef with comments. This is necessary, for
7509 # example, in the case of _POSIX_SOURCE, which is predefined and required
7510 # on some systems where configure will not decide to define it.
7511 # (The regexp can be short, since the line contains either #define or #undef.)
7513 s,^[ #]*u.*,/* & */,' >>conftest.defines
7515 # Break up conftest.defines:
7518 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
7519 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
7520 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
7522 ac_in='$ac_file_inputs'
7523 ac_out='"$tmp/out1"'
7524 ac_nxt='"$tmp/out2"'
7528 # Write a here document:
7529 cat >>$CONFIG_STATUS <<_ACEOF
7530 # First, check the format of the line:
7531 cat >"\$tmp/defines.sed" <<\\CEOF
7532 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
7533 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
7537 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
7539 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
7540 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
7541 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
7542 grep . conftest.tail >/dev/null || break
7543 rm -f conftest.defines
7544 mv conftest.tail conftest.defines
7546 rm -f conftest.defines conftest.tail
7548 echo "ac_result=$ac_in" >>$CONFIG_STATUS
7549 cat >>$CONFIG_STATUS <<\_ACEOF
7550 if test x"$ac_file" != x-; then
7551 echo "/* $configure_input */" >"$tmp/config.h"
7552 cat "$ac_result" >>"$tmp/config.h"
7553 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
7554 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
7555 echo "$as_me: $ac_file is unchanged" >&6;}
7558 mv "$tmp/config.h" $ac_file
7561 echo "/* $configure_input */"
7565 # Compute $ac_file's index in $config_headers.
7568 for _am_header in $config_headers :; do
7570 $_am_arg | $_am_arg:* )
7573 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
7576 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
7577 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7578 X"$_am_arg" : 'X\(//\)[^/]' \| \
7579 X"$_am_arg" : 'X\(//\)$' \| \
7580 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
7582 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
7598 s/.*/./; q'`/stamp-h$_am_stamp_count
7601 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
7602 echo "$as_me: executing $ac_file commands" >&6;}
7607 case $ac_file$ac_mode in
7608 "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
7609 # Strip MF so we end up with the name of the file.
7610 mf=`echo "$mf" | sed -e 's/:.*$//'`
7611 # Check whether this is an Automake generated Makefile or not.
7612 # We used to match only the files named `Makefile.in', but
7613 # some people rename them; so instead we look at the file content.
7614 # Grep'ing the first line is not enough: some people post-process
7615 # each Makefile.in and add a new line on top of each file to say so.
7616 # Grep'ing the whole file is not good either: AIX grep has a line
7617 # limit of 2048, but all sed's we know have understand at least 4000.
7618 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
7619 dirpart=`$as_dirname -- "$mf" ||
7620 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7621 X"$mf" : 'X\(//\)[^/]' \| \
7622 X"$mf" : 'X\(//\)$' \| \
7623 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
7625 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
7645 # Extract the definition of DEPDIR, am__include, and am__quote
7646 # from the Makefile without running `make'.
7647 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
7648 test -z "$DEPDIR" && continue
7649 am__include=`sed -n 's/^am__include = //p' < "$mf"`
7650 test -z "am__include" && continue
7651 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
7652 # When using ansi2knr, U may be empty or an underscore; expand it
7653 U=`sed -n 's/^U = //p' < "$mf"`
7654 # Find all dependency output files, they are included files with
7655 # $(DEPDIR) in their names. We invoke sed twice because it is the
7656 # simplest approach to changing $(DEPDIR) to its actual value in the
7658 for file in `sed -n "
7659 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
7660 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
7661 # Make sure the directory exists.
7662 test -f "$dirpart/$file" && continue
7663 fdir=`$as_dirname -- "$file" ||
7664 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7665 X"$file" : 'X\(//\)[^/]' \| \
7666 X"$file" : 'X\(//\)$' \| \
7667 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
7669 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
7686 { as_dir=$dirpart/$fdir
7688 -*) as_dir=./$as_dir;;
7690 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
7694 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
7695 *) as_qdir=$as_dir;;
7697 as_dirs="'$as_qdir' $as_dirs"
7698 as_dir=`$as_dirname -- "$as_dir" ||
7699 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7700 X"$as_dir" : 'X\(//\)[^/]' \| \
7701 X"$as_dir" : 'X\(//\)$' \| \
7702 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
7704 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
7721 test -d "$as_dir" && break
7723 test -z "$as_dirs" || eval "mkdir $as_dirs"
7724 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
7725 echo "$as_me: error: cannot create directory $as_dir" >&2;}
7726 { (exit 1); exit 1; }; }; }
7727 # echo "creating $dirpart/$file"
7728 echo '# dummy' > "$dirpart/$file"
7737 { (exit 0); exit 0; }
7739 chmod +x $CONFIG_STATUS
7740 ac_clean_files=$ac_clean_files_save
7743 # configure is writing to config.log, and then calls config.status.
7744 # config.status does its own redirection, appending to config.log.
7745 # Unfortunately, on DOS this fails, as config.log is still kept open
7746 # by configure, so config.status won't be able to write to it; its
7747 # output is simply discarded. So we exec the FD to /dev/null,
7748 # effectively closing config.log, so it can be properly (re)opened and
7749 # appended to by config.status. When coming back to configure, we
7750 # need to make the FD available again.
7751 if test "$no_create" != yes; then
7753 ac_config_status_args=
7754 test "$silent" = yes &&
7755 ac_config_status_args="$ac_config_status_args --quiet"
7757 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
7759 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
7760 # would make configure fail if this is the last instruction.
7761 $ac_cs_success || { (exit 1); exit 1; }