2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.61 for tcsh 6.17.00.
5 # Report bugs to <http://bugs.gw.com/>.
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.
576 PACKAGE_TARNAME='tcsh'
577 PACKAGE_VERSION='6.17.00'
578 PACKAGE_STRING='tcsh 6.17.00'
579 PACKAGE_BUGREPORT='http://bugs.gw.com/'
581 ac_unique_file="tc.vers.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
681 ac_precious_vars='build_alias
692 # Initialize some variables set by options.
694 ac_init_version=false
695 # The variables have the same names as the options, with
696 # dashes changed to underlines.
704 program_transform_name=s,x,x,
712 # Installation directory options.
713 # These are left unexpanded so users can "make install exec_prefix=/foo"
714 # and all the variables that are supposed to be based on exec_prefix
715 # by default will actually change.
716 # Use braces instead of parens because sh, perl, etc. also accept them.
717 # (The list follows the same order as the GNU Coding Standards.)
718 bindir='${exec_prefix}/bin'
719 sbindir='${exec_prefix}/sbin'
720 libexecdir='${exec_prefix}/libexec'
721 datarootdir='${prefix}/share'
722 datadir='${datarootdir}'
723 sysconfdir='${prefix}/etc'
724 sharedstatedir='${prefix}/com'
725 localstatedir='${prefix}/var'
726 includedir='${prefix}/include'
727 oldincludedir='/usr/include'
728 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
729 infodir='${datarootdir}/info'
734 libdir='${exec_prefix}/lib'
735 localedir='${datarootdir}/locale'
736 mandir='${datarootdir}/man'
742 # If the previous option needs an argument, assign it.
743 if test -n "$ac_prev"; then
744 eval $ac_prev=\$ac_option
750 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
754 # Accept the important Cygnus configure options, so we can diagnose typos.
756 case $ac_dashdash$ac_option in
760 -bindir | --bindir | --bindi | --bind | --bin | --bi)
762 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
765 -build | --build | --buil | --bui | --bu)
766 ac_prev=build_alias ;;
767 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
768 build_alias=$ac_optarg ;;
770 -cache-file | --cache-file | --cache-fil | --cache-fi \
771 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
772 ac_prev=cache_file ;;
773 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
774 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
775 cache_file=$ac_optarg ;;
778 cache_file=config.cache ;;
780 -datadir | --datadir | --datadi | --datad)
782 -datadir=* | --datadir=* | --datadi=* | --datad=*)
783 datadir=$ac_optarg ;;
785 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
786 | --dataroo | --dataro | --datar)
787 ac_prev=datarootdir ;;
788 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
789 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
790 datarootdir=$ac_optarg ;;
792 -disable-* | --disable-*)
793 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
794 # Reject names that are not valid shell variable names.
795 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
796 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
797 { (exit 1); exit 1; }; }
798 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
799 eval enable_$ac_feature=no ;;
801 -docdir | --docdir | --docdi | --doc | --do)
803 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
806 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
808 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
811 -enable-* | --enable-*)
812 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
813 # Reject names that are not valid shell variable names.
814 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
815 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
816 { (exit 1); exit 1; }; }
817 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
818 eval enable_$ac_feature=\$ac_optarg ;;
820 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
821 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
822 | --exec | --exe | --ex)
823 ac_prev=exec_prefix ;;
824 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
825 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
826 | --exec=* | --exe=* | --ex=*)
827 exec_prefix=$ac_optarg ;;
829 -gas | --gas | --ga | --g)
830 # Obsolete; use --with-gas.
833 -help | --help | --hel | --he | -h)
835 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
836 ac_init_help=recursive ;;
837 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
838 ac_init_help=short ;;
840 -host | --host | --hos | --ho)
841 ac_prev=host_alias ;;
842 -host=* | --host=* | --hos=* | --ho=*)
843 host_alias=$ac_optarg ;;
845 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
847 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
849 htmldir=$ac_optarg ;;
851 -includedir | --includedir | --includedi | --included | --include \
852 | --includ | --inclu | --incl | --inc)
853 ac_prev=includedir ;;
854 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
855 | --includ=* | --inclu=* | --incl=* | --inc=*)
856 includedir=$ac_optarg ;;
858 -infodir | --infodir | --infodi | --infod | --info | --inf)
860 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
861 infodir=$ac_optarg ;;
863 -libdir | --libdir | --libdi | --libd)
865 -libdir=* | --libdir=* | --libdi=* | --libd=*)
868 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
869 | --libexe | --libex | --libe)
870 ac_prev=libexecdir ;;
871 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
872 | --libexe=* | --libex=* | --libe=*)
873 libexecdir=$ac_optarg ;;
875 -localedir | --localedir | --localedi | --localed | --locale)
877 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
878 localedir=$ac_optarg ;;
880 -localstatedir | --localstatedir | --localstatedi | --localstated \
881 | --localstate | --localstat | --localsta | --localst | --locals)
882 ac_prev=localstatedir ;;
883 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
884 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
885 localstatedir=$ac_optarg ;;
887 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
889 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
893 # Obsolete; use --without-fp.
896 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
897 | --no-cr | --no-c | -n)
900 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
901 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
904 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
905 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
906 | --oldin | --oldi | --old | --ol | --o)
907 ac_prev=oldincludedir ;;
908 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
909 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
910 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
911 oldincludedir=$ac_optarg ;;
913 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
915 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
918 -program-prefix | --program-prefix | --program-prefi | --program-pref \
919 | --program-pre | --program-pr | --program-p)
920 ac_prev=program_prefix ;;
921 -program-prefix=* | --program-prefix=* | --program-prefi=* \
922 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
923 program_prefix=$ac_optarg ;;
925 -program-suffix | --program-suffix | --program-suffi | --program-suff \
926 | --program-suf | --program-su | --program-s)
927 ac_prev=program_suffix ;;
928 -program-suffix=* | --program-suffix=* | --program-suffi=* \
929 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
930 program_suffix=$ac_optarg ;;
932 -program-transform-name | --program-transform-name \
933 | --program-transform-nam | --program-transform-na \
934 | --program-transform-n | --program-transform- \
935 | --program-transform | --program-transfor \
936 | --program-transfo | --program-transf \
937 | --program-trans | --program-tran \
938 | --progr-tra | --program-tr | --program-t)
939 ac_prev=program_transform_name ;;
940 -program-transform-name=* | --program-transform-name=* \
941 | --program-transform-nam=* | --program-transform-na=* \
942 | --program-transform-n=* | --program-transform-=* \
943 | --program-transform=* | --program-transfor=* \
944 | --program-transfo=* | --program-transf=* \
945 | --program-trans=* | --program-tran=* \
946 | --progr-tra=* | --program-tr=* | --program-t=*)
947 program_transform_name=$ac_optarg ;;
949 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
951 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
954 -psdir | --psdir | --psdi | --psd | --ps)
956 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
959 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
960 | -silent | --silent | --silen | --sile | --sil)
963 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
965 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
967 sbindir=$ac_optarg ;;
969 -sharedstatedir | --sharedstatedir | --sharedstatedi \
970 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
971 | --sharedst | --shareds | --shared | --share | --shar \
973 ac_prev=sharedstatedir ;;
974 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
975 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
976 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
978 sharedstatedir=$ac_optarg ;;
980 -site | --site | --sit)
982 -site=* | --site=* | --sit=*)
985 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
987 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
990 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
991 | --syscon | --sysco | --sysc | --sys | --sy)
992 ac_prev=sysconfdir ;;
993 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
994 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
995 sysconfdir=$ac_optarg ;;
997 -target | --target | --targe | --targ | --tar | --ta | --t)
998 ac_prev=target_alias ;;
999 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1000 target_alias=$ac_optarg ;;
1002 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1005 -version | --version | --versio | --versi | --vers | -V)
1006 ac_init_version=: ;;
1009 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1010 # Reject names that are not valid shell variable names.
1011 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1012 { echo "$as_me: error: invalid package name: $ac_package" >&2
1013 { (exit 1); exit 1; }; }
1014 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1015 eval with_$ac_package=\$ac_optarg ;;
1017 -without-* | --without-*)
1018 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1019 # Reject names that are not valid shell variable names.
1020 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1021 { echo "$as_me: error: invalid package name: $ac_package" >&2
1022 { (exit 1); exit 1; }; }
1023 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1024 eval with_$ac_package=no ;;
1027 # Obsolete; use --with-x.
1030 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1031 | --x-incl | --x-inc | --x-in | --x-i)
1032 ac_prev=x_includes ;;
1033 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1034 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1035 x_includes=$ac_optarg ;;
1037 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1038 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1039 ac_prev=x_libraries ;;
1040 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1041 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1042 x_libraries=$ac_optarg ;;
1044 -*) { echo "$as_me: error: unrecognized option: $ac_option
1045 Try \`$0 --help' for more information." >&2
1046 { (exit 1); exit 1; }; }
1050 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1051 # Reject names that are not valid shell variable names.
1052 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1053 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1054 { (exit 1); exit 1; }; }
1055 eval $ac_envvar=\$ac_optarg
1056 export $ac_envvar ;;
1059 # FIXME: should be removed in autoconf 3.0.
1060 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1061 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1062 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1063 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1069 if test -n "$ac_prev"; then
1070 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1071 { echo "$as_me: error: missing argument to $ac_option" >&2
1072 { (exit 1); exit 1; }; }
1075 # Be sure to have absolute directory names.
1076 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1077 datadir sysconfdir sharedstatedir localstatedir includedir \
1078 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1079 libdir localedir mandir
1081 eval ac_val=\$$ac_var
1083 [\\/$]* | ?:[\\/]* ) continue;;
1084 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1086 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1087 { (exit 1); exit 1; }; }
1090 # There might be people who depend on the old broken behavior: `$host'
1091 # used to hold the argument of --host etc.
1092 # FIXME: To remove some day.
1095 target=$target_alias
1097 # FIXME: To remove some day.
1098 if test "x$host_alias" != x; then
1099 if test "x$build_alias" = x; then
1100 cross_compiling=maybe
1101 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1102 If a cross compiler is detected then cross compile mode will be used." >&2
1103 elif test "x$build_alias" != "x$host_alias"; then
1109 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1111 test "$silent" = yes && exec 6>/dev/null
1114 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1115 ac_ls_di=`ls -di .` &&
1116 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1117 { echo "$as_me: error: Working directory cannot be determined" >&2
1118 { (exit 1); exit 1; }; }
1119 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1120 { echo "$as_me: error: pwd does not report name of working directory" >&2
1121 { (exit 1); exit 1; }; }
1124 # Find the source files, if location was not specified.
1125 if test -z "$srcdir"; then
1126 ac_srcdir_defaulted=yes
1127 # Try the directory containing this script, then the parent directory.
1128 ac_confdir=`$as_dirname -- "$0" ||
1129 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1130 X"$0" : 'X\(//\)[^/]' \| \
1131 X"$0" : 'X\(//\)$' \| \
1132 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1134 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1152 if test ! -r "$srcdir/$ac_unique_file"; then
1156 ac_srcdir_defaulted=no
1158 if test ! -r "$srcdir/$ac_unique_file"; then
1159 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1160 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1161 { (exit 1); exit 1; }; }
1163 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1165 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1166 { (exit 1); exit 1; }; }
1168 # When building in place, set srcdir=.
1169 if test "$ac_abs_confdir" = "$ac_pwd"; then
1172 # Remove unnecessary trailing slashes from srcdir.
1173 # Double slashes in file names in object file debugging info
1174 # mess up M-x gdb in Emacs.
1176 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1178 for ac_var in $ac_precious_vars; do
1179 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1180 eval ac_env_${ac_var}_value=\$${ac_var}
1181 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1182 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1186 # Report the --help message.
1188 if test "$ac_init_help" = "long"; then
1189 # Omit some internal or obsolete options to make the list less imposing.
1190 # This message is too long to be a string in the A/UX 3.1 sh.
1192 \`configure' configures tcsh 6.17.00 to adapt to many kinds of systems.
1194 Usage: $0 [OPTION]... [VAR=VALUE]...
1196 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1197 VAR=VALUE. See below for descriptions of some of the useful variables.
1199 Defaults for the options are specified in brackets.
1202 -h, --help display this help and exit
1203 --help=short display options specific to this package
1204 --help=recursive display the short help of all the included packages
1205 -V, --version display version information and exit
1206 -q, --quiet, --silent do not print \`checking...' messages
1207 --cache-file=FILE cache test results in FILE [disabled]
1208 -C, --config-cache alias for \`--cache-file=config.cache'
1209 -n, --no-create do not create output files
1210 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1212 Installation directories:
1213 --prefix=PREFIX install architecture-independent files in PREFIX
1214 [$ac_default_prefix]
1215 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1218 By default, \`make install' will install all the files in
1219 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1220 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1221 for instance \`--prefix=\$HOME'.
1223 For better control, use the options below.
1225 Fine tuning of the installation directories:
1226 --bindir=DIR user executables [EPREFIX/bin]
1227 --sbindir=DIR system admin executables [EPREFIX/sbin]
1228 --libexecdir=DIR program executables [EPREFIX/libexec]
1229 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1230 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1231 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1232 --libdir=DIR object code libraries [EPREFIX/lib]
1233 --includedir=DIR C header files [PREFIX/include]
1234 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1235 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1236 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1237 --infodir=DIR info documentation [DATAROOTDIR/info]
1238 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1239 --mandir=DIR man documentation [DATAROOTDIR/man]
1240 --docdir=DIR documentation root [DATAROOTDIR/doc/tcsh]
1241 --htmldir=DIR html documentation [DOCDIR]
1242 --dvidir=DIR dvi documentation [DOCDIR]
1243 --pdfdir=DIR pdf documentation [DOCDIR]
1244 --psdir=DIR ps documentation [DOCDIR]
1250 --build=BUILD configure for building on BUILD [guessed]
1251 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1255 if test -n "$ac_init_help"; then
1256 case $ac_init_help in
1257 short | recursive ) echo "Configuration of tcsh 6.17.00:";;
1262 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1263 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1264 --disable-rpath do not hardcode runtime library paths
1265 --disable-nls Disable NLS support
1268 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1269 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1270 --with-gnu-ld assume the C compiler uses GNU ld default=no
1271 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1272 --without-libiconv-prefix don't search for libiconv in includedir and libdir
1273 --with-hesiod=PREFIX Use Hesiod lookup for ~ expansion
1275 Some influential environment variables:
1276 CC C compiler command
1277 CFLAGS C compiler flags
1278 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1279 nonstandard directory <lib dir>
1280 LIBS libraries to pass to the linker, e.g. -l<library>
1281 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1282 you have headers in a nonstandard directory <include dir>
1285 Use these variables to override the choices made by `configure' or to help
1286 it to find libraries and programs with nonstandard names/locations.
1288 Report bugs to <http://bugs.gw.com/>.
1293 if test "$ac_init_help" = "recursive"; then
1294 # If there are subdirs, report their specific --help.
1295 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1296 test -d "$ac_dir" || continue
1300 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1302 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1303 # A ".." for each directory in $ac_dir_suffix.
1304 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1305 case $ac_top_builddir_sub in
1306 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1307 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1310 ac_abs_top_builddir=$ac_pwd
1311 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1312 # for backward compatibility:
1313 ac_top_builddir=$ac_top_build_prefix
1316 .) # We are building in place.
1318 ac_top_srcdir=$ac_top_builddir_sub
1319 ac_abs_top_srcdir=$ac_pwd ;;
1320 [\\/]* | ?:[\\/]* ) # Absolute name.
1321 ac_srcdir=$srcdir$ac_dir_suffix;
1322 ac_top_srcdir=$srcdir
1323 ac_abs_top_srcdir=$srcdir ;;
1325 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1326 ac_top_srcdir=$ac_top_build_prefix$srcdir
1327 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1329 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1331 cd "$ac_dir" || { ac_status=$?; continue; }
1332 # Check for guested configure.
1333 if test -f "$ac_srcdir/configure.gnu"; then
1335 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1336 elif test -f "$ac_srcdir/configure"; then
1338 $SHELL "$ac_srcdir/configure" --help=recursive
1340 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1342 cd "$ac_pwd" || { ac_status=$?; break; }
1346 test -n "$ac_init_help" && exit $ac_status
1347 if $ac_init_version; then
1349 tcsh configure 6.17.00
1350 generated by GNU Autoconf 2.61
1352 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1353 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1354 This configure script is free software; the Free Software Foundation
1355 gives unlimited permission to copy, distribute and modify it.
1359 cat >config.log <<_ACEOF
1360 This file contains any messages produced by compilers while
1361 running configure, to aid debugging if configure makes a mistake.
1363 It was created by tcsh $as_me 6.17.00, which was
1364 generated by GNU Autoconf 2.61. Invocation command line was
1376 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1377 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1378 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1379 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1380 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1382 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1383 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1385 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1386 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1387 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1388 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1389 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1390 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1391 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1395 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1399 test -z "$as_dir" && as_dir=.
1400 echo "PATH: $as_dir"
1416 # Keep a trace of the command line.
1417 # Strip out --no-create and --no-recursion so they do not pile up.
1418 # Strip out --silent because we don't want to record it for future runs.
1419 # Also quote any args containing shell meta-characters.
1420 # Make two passes to allow for proper duplicate-argument suppression.
1424 ac_must_keep_next=false
1430 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1431 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1432 | -silent | --silent | --silen | --sile | --sil)
1435 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1438 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1440 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1441 if test $ac_must_keep_next = true; then
1442 ac_must_keep_next=false # Got value, back to normal.
1445 *=* | --config-cache | -C | -disable-* | --disable-* \
1446 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1447 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1448 | -with-* | --with-* | -without-* | --without-* | --x)
1449 case "$ac_configure_args0 " in
1450 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1453 -* ) ac_must_keep_next=true ;;
1456 ac_configure_args="$ac_configure_args '$ac_arg'"
1461 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1462 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1464 # When interrupted or exit'd, cleanup temporary files, and complete
1465 # config.log. We remove comments because anyway the quotes in there
1466 # would cause problems or look ugly.
1467 # WARNING: Use '\'' to represent an apostrophe within the trap.
1468 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1469 trap 'exit_status=$?
1470 # Save into config.log some information that might help in debugging.
1475 ## ---------------- ##
1476 ## Cache variables. ##
1477 ## ---------------- ##
1480 # The following way of writing the cache mishandles newlines in values,
1482 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1483 eval ac_val=\$$ac_var
1487 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1488 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1491 _ | IFS | as_nl) ;; #(
1492 *) $as_unset $ac_var ;;
1497 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1498 *${as_nl}ac_space=\ *)
1500 "s/'\''/'\''\\\\'\'''\''/g;
1501 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1504 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1512 ## ----------------- ##
1513 ## Output variables. ##
1514 ## ----------------- ##
1517 for ac_var in $ac_subst_vars
1519 eval ac_val=\$$ac_var
1521 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1523 echo "$ac_var='\''$ac_val'\''"
1527 if test -n "$ac_subst_files"; then
1529 ## ------------------- ##
1530 ## File substitutions. ##
1531 ## ------------------- ##
1534 for ac_var in $ac_subst_files
1536 eval ac_val=\$$ac_var
1538 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1540 echo "$ac_var='\''$ac_val'\''"
1545 if test -s confdefs.h; then
1555 test "$ac_signal" != 0 &&
1556 echo "$as_me: caught signal $ac_signal"
1557 echo "$as_me: exit $exit_status"
1559 rm -f core *.core core.conftest.* &&
1560 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1563 for ac_signal in 1 2 13 15; do
1564 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1568 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1569 rm -f -r conftest* confdefs.h
1571 # Predefined preprocessor variables.
1573 cat >>confdefs.h <<_ACEOF
1574 #define PACKAGE_NAME "$PACKAGE_NAME"
1578 cat >>confdefs.h <<_ACEOF
1579 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1583 cat >>confdefs.h <<_ACEOF
1584 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1588 cat >>confdefs.h <<_ACEOF
1589 #define PACKAGE_STRING "$PACKAGE_STRING"
1593 cat >>confdefs.h <<_ACEOF
1594 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1598 # Let the site file select an alternate cache file if it wants to.
1599 # Prefer explicitly selected file to automatically selected ones.
1600 if test -n "$CONFIG_SITE"; then
1601 set x "$CONFIG_SITE"
1602 elif test "x$prefix" != xNONE; then
1603 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1605 set x "$ac_default_prefix/share/config.site" \
1606 "$ac_default_prefix/etc/config.site"
1611 if test -r "$ac_site_file"; then
1612 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1613 echo "$as_me: loading site script $ac_site_file" >&6;}
1614 sed 's/^/| /' "$ac_site_file" >&5
1619 if test -r "$cache_file"; then
1620 # Some versions of bash will fail to source /dev/null (special
1621 # files actually), so we avoid doing that.
1622 if test -f "$cache_file"; then
1623 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1624 echo "$as_me: loading cache $cache_file" >&6;}
1626 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1627 *) . "./$cache_file";;
1631 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1632 echo "$as_me: creating cache $cache_file" >&6;}
1636 # Check that the precious variables saved in the cache have kept the same
1638 ac_cache_corrupted=false
1639 for ac_var in $ac_precious_vars; do
1640 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1641 eval ac_new_set=\$ac_env_${ac_var}_set
1642 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1643 eval ac_new_val=\$ac_env_${ac_var}_value
1644 case $ac_old_set,$ac_new_set in
1646 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1647 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1648 ac_cache_corrupted=: ;;
1650 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1651 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1652 ac_cache_corrupted=: ;;
1655 if test "x$ac_old_val" != "x$ac_new_val"; then
1656 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1657 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1658 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1659 echo "$as_me: former value: $ac_old_val" >&2;}
1660 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1661 echo "$as_me: current value: $ac_new_val" >&2;}
1662 ac_cache_corrupted=:
1665 # Pass precious variables to config.status.
1666 if test "$ac_new_set" = set; then
1668 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1669 *) ac_arg=$ac_var=$ac_new_val ;;
1671 case " $ac_configure_args " in
1672 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1673 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1677 if $ac_cache_corrupted; then
1678 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1679 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1680 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1681 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1682 { (exit 1); exit 1; }; }
1710 ac_cpp='$CPP $CPPFLAGS'
1711 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1712 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1713 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1717 ac_config_headers="$ac_config_headers config.h"
1719 ac_config_commands="$ac_config_commands ./atconfig"
1724 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
1725 if test -f "$ac_dir/install-sh"; then
1727 ac_install_sh="$ac_aux_dir/install-sh -c"
1729 elif test -f "$ac_dir/install.sh"; then
1731 ac_install_sh="$ac_aux_dir/install.sh -c"
1733 elif test -f "$ac_dir/shtool"; then
1735 ac_install_sh="$ac_aux_dir/shtool install -c"
1739 if test -z "$ac_aux_dir"; then
1740 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
1741 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
1742 { (exit 1); exit 1; }; }
1745 # These three variables are undocumented and unsupported,
1746 # and are intended to be withdrawn in a future Autoconf release.
1747 # They can cause serious problems if a builder's source tree is in a directory
1748 # whose full name contains unusual characters.
1749 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1750 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1751 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1754 # Make sure we can run config.sub.
1755 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
1756 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
1757 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
1758 { (exit 1); exit 1; }; }
1760 { echo "$as_me:$LINENO: checking build system type" >&5
1761 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
1762 if test "${ac_cv_build+set}" = set; then
1763 echo $ECHO_N "(cached) $ECHO_C" >&6
1765 ac_build_alias=$build_alias
1766 test "x$ac_build_alias" = x &&
1767 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
1768 test "x$ac_build_alias" = x &&
1769 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1770 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1771 { (exit 1); exit 1; }; }
1772 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
1773 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
1774 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
1775 { (exit 1); exit 1; }; }
1778 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1779 echo "${ECHO_T}$ac_cv_build" >&6; }
1780 case $ac_cv_build in
1782 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
1783 echo "$as_me: error: invalid value of canonical build" >&2;}
1784 { (exit 1); exit 1; }; };;
1787 ac_save_IFS=$IFS; IFS='-'
1793 # Remember, the first character of IFS is used to create $*,
1794 # except with old shells:
1797 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
1800 { echo "$as_me:$LINENO: checking host system type" >&5
1801 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
1802 if test "${ac_cv_host+set}" = set; then
1803 echo $ECHO_N "(cached) $ECHO_C" >&6
1805 if test "x$host_alias" = x; then
1806 ac_cv_host=$ac_cv_build
1808 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
1809 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
1810 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
1811 { (exit 1); exit 1; }; }
1815 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1816 echo "${ECHO_T}$ac_cv_host" >&6; }
1819 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
1820 echo "$as_me: error: invalid value of canonical host" >&2;}
1821 { (exit 1); exit 1; }; };;
1824 ac_save_IFS=$IFS; IFS='-'
1830 # Remember, the first character of IFS is used to create $*,
1831 # except with old shells:
1834 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
1838 { echo "$as_me:$LINENO: checking cached host tuple" >&5
1839 echo $ECHO_N "checking cached host tuple... $ECHO_C" >&6; }
1840 if { test x"${ac_cv_host_system_type+set}" = x"set" &&
1841 test x"$ac_cv_host_system_type" != x"$host"; }; then
1842 { echo "$as_me:$LINENO: result: different" >&5
1843 echo "${ECHO_T}different" >&6; }
1844 { { echo "$as_me:$LINENO: error: remove config.cache and re-run configure" >&5
1845 echo "$as_me: error: remove config.cache and re-run configure" >&2;}
1846 { (exit 1); exit 1; }; }
1848 { echo "$as_me:$LINENO: result: ok" >&5
1849 echo "${ECHO_T}ok" >&6; }
1851 ac_cv_host_system_type="$host"
1857 ## Alpha (DEC) machines.
1859 tcsh_config_file=decosf1
1864 tcsh_config_file=ultrix
1869 tcsh_config_file=dgux5.4
1872 tcsh_config_file=dgux5.4
1877 tcsh_config_file=hpux7
1880 tcsh_config_file=hpux8
1883 tcsh_config_file=hpux11
1888 tcsh_config_file=aix
1893 CC='cc -h0,ansi,novector,float0'
1895 tcsh_config_file=superux8
1898 ## IBM OS/390 systems
1901 tcsh_config_file=os390
1905 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu)
1906 tcsh_config_file=linux
1910 m68k-motorola-sysv* )
1911 tcsh_config_file=sysV68
1913 m88k-motorola-sysv3* )
1914 tcsh_config_file=sysV88
1919 tcsh_config_file=bsd4.4
1924 tcsh_config_file=bsd4.4
1927 ## MidnightBSD systems
1929 tcsh_config_file=bsd4.4
1932 ## DragonFlyBSD systems
1934 tcsh_config_file=bsd4.4
1939 tcsh_config_file=bsd4.4
1944 tcsh_config_file=bsd4.4
1949 tcsh_config_file=bsd4.4
1954 tcsh_config_file=bsd4.4
1957 ## DragonFly systems
1959 tcsh_config_file=bsd4.4
1962 ## Silicon Graphics machines
1964 tcsh_config_file=irix
1965 case "${host_os}" in
1966 irix[34]*) # Irix-3.x - Irix 4.x
1967 NON_GNU_DFLAGS='-D__STDC__'
1968 LIBS='-lsun -lbsd -lc_s'
1970 irix5* | irix6.[01]*) # Irix 5.x, Irix 6.0 - 6.1
1973 irix6.[2-9]*) # Irix 6.2 and later
1974 tcsh_config_file=irix62
1981 tcsh_config_file=sunos35
1984 tcsh_config_file=sunos40
1986 *-sun-sunos4.1.[12]* )
1987 tcsh_config_file=sunos41
1989 *-sun-sunos4.1.[3456]* )
1990 tcsh_config_file=sunos413
1992 *-*-solaris2.[01] ) # Should handle sparc or x86
1993 tcsh_config_file=sol2
1995 *-sun-solaris2.2 ) # Sparc only release
1996 tcsh_config_file=sol22
1998 *-sun-solaris2.3 ) # Sparc only release
1999 tcsh_config_file=sol23
2001 *-*-solaris2.[45] ) # Should handle sparc, x86 and powerpc
2002 tcsh_config_file=sol24
2004 *-*-solaris2.* ) # Should handle sparc, x86 and powerpc
2005 tcsh_config_file=sol26
2010 tcsh_config_file=sysv4
2011 DFLAGS="$DFLAGS -DDELL"
2014 ## SVR4 (Generic and otherwise)
2016 tcsh_config_file=sysv4
2019 ## Tektronix systems
2020 m68k-tektronix-bsd* )
2021 tcsh_config_file=bsd
2022 NON_GNU_DFLAGS='-DBSD -DUTek'
2024 m88k-tektronix-sysv3* )
2025 tcsh_config_file=tekXD88
2030 tcsh_config_file=sco32v5
2033 tcsh_config_file=sco32v4
2036 tcsh_config_file=sco32v2
2039 ## Siemens BS2000 Mainframe
2041 tcsh_config_file=bs2000
2046 tcsh_config_file=convex
2051 tcsh_config_file=cray
2056 tcsh_config_file=cygwin32
2059 ## mips-compaq-nonstopux
2061 tcsh_config_file=sysv4
2066 tcsh_config_file=apollo
2071 tcsh_config_file=qnx6
2075 { { echo "$as_me:$LINENO: error: Tcsh can't guess the configuration file name
2076 for \`${host}' systems.
2077 Check tcsh's \`Ported' file for manual configuration instructions." >&5
2078 echo "$as_me: error: Tcsh can't guess the configuration file name
2079 for \`${host}' systems.
2080 Check tcsh's \`Ported' file for manual configuration instructions." >&2;}
2081 { (exit 1); exit 1; }; }
2086 echo "Tcsh will use configuration file \`$tcsh_config_file'."
2087 cp ${srcdir}/config/${tcsh_config_file} config_p.h
2092 ac_cpp='$CPP $CPPFLAGS'
2093 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2094 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2095 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2096 if test -n "$ac_tool_prefix"; then
2097 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2098 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2099 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2100 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2101 if test "${ac_cv_prog_CC+set}" = set; then
2102 echo $ECHO_N "(cached) $ECHO_C" >&6
2104 if test -n "$CC"; then
2105 ac_cv_prog_CC="$CC" # Let the user override the test.
2107 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2111 test -z "$as_dir" && as_dir=.
2112 for ac_exec_ext in '' $ac_executable_extensions; do
2113 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2114 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2115 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2125 if test -n "$CC"; then
2126 { echo "$as_me:$LINENO: result: $CC" >&5
2127 echo "${ECHO_T}$CC" >&6; }
2129 { echo "$as_me:$LINENO: result: no" >&5
2130 echo "${ECHO_T}no" >&6; }
2135 if test -z "$ac_cv_prog_CC"; then
2137 # Extract the first word of "gcc", so it can be a program name with args.
2138 set dummy gcc; ac_word=$2
2139 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2140 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2141 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2142 echo $ECHO_N "(cached) $ECHO_C" >&6
2144 if test -n "$ac_ct_CC"; then
2145 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2147 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2151 test -z "$as_dir" && as_dir=.
2152 for ac_exec_ext in '' $ac_executable_extensions; do
2153 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2154 ac_cv_prog_ac_ct_CC="gcc"
2155 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2164 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2165 if test -n "$ac_ct_CC"; then
2166 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2167 echo "${ECHO_T}$ac_ct_CC" >&6; }
2169 { echo "$as_me:$LINENO: result: no" >&5
2170 echo "${ECHO_T}no" >&6; }
2173 if test "x$ac_ct_CC" = x; then
2176 case $cross_compiling:$ac_tool_warned in
2178 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2179 whose name does not start with the host triplet. If you think this
2180 configuration is useful to you, please write to autoconf@gnu.org." >&5
2181 echo "$as_me: 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." >&2;}
2184 ac_tool_warned=yes ;;
2192 if test -z "$CC"; then
2193 if test -n "$ac_tool_prefix"; then
2194 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2195 set dummy ${ac_tool_prefix}cc; ac_word=$2
2196 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2197 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2198 if test "${ac_cv_prog_CC+set}" = set; then
2199 echo $ECHO_N "(cached) $ECHO_C" >&6
2201 if test -n "$CC"; then
2202 ac_cv_prog_CC="$CC" # Let the user override the test.
2204 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2208 test -z "$as_dir" && as_dir=.
2209 for ac_exec_ext in '' $ac_executable_extensions; do
2210 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2211 ac_cv_prog_CC="${ac_tool_prefix}cc"
2212 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2222 if test -n "$CC"; then
2223 { echo "$as_me:$LINENO: result: $CC" >&5
2224 echo "${ECHO_T}$CC" >&6; }
2226 { echo "$as_me:$LINENO: result: no" >&5
2227 echo "${ECHO_T}no" >&6; }
2233 if test -z "$CC"; then
2234 # Extract the first word of "cc", so it can be a program name with args.
2235 set dummy cc; ac_word=$2
2236 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2237 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2238 if test "${ac_cv_prog_CC+set}" = set; then
2239 echo $ECHO_N "(cached) $ECHO_C" >&6
2241 if test -n "$CC"; then
2242 ac_cv_prog_CC="$CC" # Let the user override the test.
2245 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2249 test -z "$as_dir" && as_dir=.
2250 for ac_exec_ext in '' $ac_executable_extensions; do
2251 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2252 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2253 ac_prog_rejected=yes
2257 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2264 if test $ac_prog_rejected = yes; then
2265 # We found a bogon in the path, so make sure we never use it.
2266 set dummy $ac_cv_prog_CC
2268 if test $# != 0; then
2269 # We chose a different compiler from the bogus one.
2270 # However, it has the same basename, so the bogon will be chosen
2271 # first if we set CC to just the basename; use the full file name.
2273 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2279 if test -n "$CC"; then
2280 { echo "$as_me:$LINENO: result: $CC" >&5
2281 echo "${ECHO_T}$CC" >&6; }
2283 { echo "$as_me:$LINENO: result: no" >&5
2284 echo "${ECHO_T}no" >&6; }
2289 if test -z "$CC"; then
2290 if test -n "$ac_tool_prefix"; then
2291 for ac_prog in cl.exe
2293 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2294 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2295 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2296 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2297 if test "${ac_cv_prog_CC+set}" = set; then
2298 echo $ECHO_N "(cached) $ECHO_C" >&6
2300 if test -n "$CC"; then
2301 ac_cv_prog_CC="$CC" # Let the user override the test.
2303 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2307 test -z "$as_dir" && as_dir=.
2308 for ac_exec_ext in '' $ac_executable_extensions; do
2309 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2310 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2311 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2321 if test -n "$CC"; then
2322 { echo "$as_me:$LINENO: result: $CC" >&5
2323 echo "${ECHO_T}$CC" >&6; }
2325 { echo "$as_me:$LINENO: result: no" >&5
2326 echo "${ECHO_T}no" >&6; }
2330 test -n "$CC" && break
2333 if test -z "$CC"; then
2335 for ac_prog in cl.exe
2337 # Extract the first word of "$ac_prog", so it can be a program name with args.
2338 set dummy $ac_prog; ac_word=$2
2339 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2340 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2341 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2342 echo $ECHO_N "(cached) $ECHO_C" >&6
2344 if test -n "$ac_ct_CC"; then
2345 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2347 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2351 test -z "$as_dir" && as_dir=.
2352 for ac_exec_ext in '' $ac_executable_extensions; do
2353 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2354 ac_cv_prog_ac_ct_CC="$ac_prog"
2355 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2364 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2365 if test -n "$ac_ct_CC"; then
2366 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2367 echo "${ECHO_T}$ac_ct_CC" >&6; }
2369 { echo "$as_me:$LINENO: result: no" >&5
2370 echo "${ECHO_T}no" >&6; }
2374 test -n "$ac_ct_CC" && break
2377 if test "x$ac_ct_CC" = x; then
2380 case $cross_compiling:$ac_tool_warned in
2382 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2383 whose name does not start with the host triplet. If you think this
2384 configuration is useful to you, please write to autoconf@gnu.org." >&5
2385 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2386 whose name does not start with the host triplet. If you think this
2387 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2388 ac_tool_warned=yes ;;
2397 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2398 See \`config.log' for more details." >&5
2399 echo "$as_me: error: no acceptable C compiler found in \$PATH
2400 See \`config.log' for more details." >&2;}
2401 { (exit 1); exit 1; }; }
2403 # Provide some information about the compiler.
2404 echo "$as_me:$LINENO: checking for C compiler version" >&5
2405 ac_compiler=`set X $ac_compile; echo $2`
2406 { (ac_try="$ac_compiler --version >&5"
2408 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2409 *) ac_try_echo=$ac_try;;
2411 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2412 (eval "$ac_compiler --version >&5") 2>&5
2414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2415 (exit $ac_status); }
2416 { (ac_try="$ac_compiler -v >&5"
2418 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2419 *) ac_try_echo=$ac_try;;
2421 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2422 (eval "$ac_compiler -v >&5") 2>&5
2424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2425 (exit $ac_status); }
2426 { (ac_try="$ac_compiler -V >&5"
2428 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2429 *) ac_try_echo=$ac_try;;
2431 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2432 (eval "$ac_compiler -V >&5") 2>&5
2434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2435 (exit $ac_status); }
2437 cat >conftest.$ac_ext <<_ACEOF
2440 cat confdefs.h >>conftest.$ac_ext
2441 cat >>conftest.$ac_ext <<_ACEOF
2442 /* end confdefs.h. */
2452 ac_clean_files_save=$ac_clean_files
2453 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2454 # Try to create an executable without -o first, disregard a.out.
2455 # It will help us diagnose broken compilers, and finding out an intuition
2457 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2458 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2459 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2461 # List of possible output files, starting from the most likely.
2462 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2463 # only as a last resort. b.out is created by i960 compilers.
2464 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2466 # The IRIX 6 linker writes into existing files which may not be
2467 # executable, retaining their permissions. Remove them first so a
2468 # subsequent execution test works.
2470 for ac_file in $ac_files
2473 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2474 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2479 if { (ac_try="$ac_link_default"
2481 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2482 *) ac_try_echo=$ac_try;;
2484 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2485 (eval "$ac_link_default") 2>&5
2487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2488 (exit $ac_status); }; then
2489 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2490 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2491 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2492 # so that the user can short-circuit this test for compilers unknown to
2494 for ac_file in $ac_files ''
2496 test -f "$ac_file" || continue
2498 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2501 # We found the default executable, but exeext='' is most
2505 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2507 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2509 # We set ac_cv_exeext here because the later test for it is not
2510 # safe: cross compilers may not add the suffix if given an `-o'
2511 # argument, so we may need to know it at that point already.
2512 # Even if this section looks crufty: it has the advantage of
2519 test "$ac_cv_exeext" = no && ac_cv_exeext=
2525 { echo "$as_me:$LINENO: result: $ac_file" >&5
2526 echo "${ECHO_T}$ac_file" >&6; }
2527 if test -z "$ac_file"; then
2528 echo "$as_me: failed program was:" >&5
2529 sed 's/^/| /' conftest.$ac_ext >&5
2531 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2532 See \`config.log' for more details." >&5
2533 echo "$as_me: error: C compiler cannot create executables
2534 See \`config.log' for more details." >&2;}
2535 { (exit 77); exit 77; }; }
2538 ac_exeext=$ac_cv_exeext
2540 # Check that the compiler produces executables we can run. If not, either
2541 # the compiler is broken, or we cross compile.
2542 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2543 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2544 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2545 # If not cross compiling, check that we can run a simple program.
2546 if test "$cross_compiling" != yes; then
2547 if { ac_try='./$ac_file'
2548 { (case "(($ac_try" in
2549 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2550 *) ac_try_echo=$ac_try;;
2552 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2553 (eval "$ac_try") 2>&5
2555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2556 (exit $ac_status); }; }; then
2559 if test "$cross_compiling" = maybe; then
2562 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2563 If you meant to cross compile, use \`--host'.
2564 See \`config.log' for more details." >&5
2565 echo "$as_me: error: cannot run C compiled programs.
2566 If you meant to cross compile, use \`--host'.
2567 See \`config.log' for more details." >&2;}
2568 { (exit 1); exit 1; }; }
2572 { echo "$as_me:$LINENO: result: yes" >&5
2573 echo "${ECHO_T}yes" >&6; }
2575 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2576 ac_clean_files=$ac_clean_files_save
2577 # Check that the compiler produces executables we can run. If not, either
2578 # the compiler is broken, or we cross compile.
2579 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2580 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2581 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2582 echo "${ECHO_T}$cross_compiling" >&6; }
2584 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2585 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2586 if { (ac_try="$ac_link"
2588 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2589 *) ac_try_echo=$ac_try;;
2591 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2592 (eval "$ac_link") 2>&5
2594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2595 (exit $ac_status); }; then
2596 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2597 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2598 # work properly (i.e., refer to `conftest.exe'), while it won't with
2600 for ac_file in conftest.exe conftest conftest.*; do
2601 test -f "$ac_file" || continue
2603 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2604 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2610 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2611 See \`config.log' for more details." >&5
2612 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2613 See \`config.log' for more details." >&2;}
2614 { (exit 1); exit 1; }; }
2617 rm -f conftest$ac_cv_exeext
2618 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2619 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2621 rm -f conftest.$ac_ext
2622 EXEEXT=$ac_cv_exeext
2624 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2625 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2626 if test "${ac_cv_objext+set}" = set; then
2627 echo $ECHO_N "(cached) $ECHO_C" >&6
2629 cat >conftest.$ac_ext <<_ACEOF
2632 cat confdefs.h >>conftest.$ac_ext
2633 cat >>conftest.$ac_ext <<_ACEOF
2634 /* end confdefs.h. */
2644 rm -f conftest.o conftest.obj
2645 if { (ac_try="$ac_compile"
2647 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2648 *) ac_try_echo=$ac_try;;
2650 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2651 (eval "$ac_compile") 2>&5
2653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2654 (exit $ac_status); }; then
2655 for ac_file in conftest.o conftest.obj conftest.*; do
2656 test -f "$ac_file" || continue;
2658 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2659 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2664 echo "$as_me: failed program was:" >&5
2665 sed 's/^/| /' conftest.$ac_ext >&5
2667 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2668 See \`config.log' for more details." >&5
2669 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2670 See \`config.log' for more details." >&2;}
2671 { (exit 1); exit 1; }; }
2674 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2676 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2677 echo "${ECHO_T}$ac_cv_objext" >&6; }
2678 OBJEXT=$ac_cv_objext
2680 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2681 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2682 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2683 echo $ECHO_N "(cached) $ECHO_C" >&6
2685 cat >conftest.$ac_ext <<_ACEOF
2688 cat confdefs.h >>conftest.$ac_ext
2689 cat >>conftest.$ac_ext <<_ACEOF
2690 /* end confdefs.h. */
2703 rm -f conftest.$ac_objext
2704 if { (ac_try="$ac_compile"
2706 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2707 *) ac_try_echo=$ac_try;;
2709 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2710 (eval "$ac_compile") 2>conftest.er1
2712 grep -v '^ *+' conftest.er1 >conftest.err
2714 cat conftest.err >&5
2715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2716 (exit $ac_status); } && {
2717 test -z "$ac_c_werror_flag" ||
2718 test ! -s conftest.err
2719 } && test -s conftest.$ac_objext; then
2722 echo "$as_me: failed program was:" >&5
2723 sed 's/^/| /' conftest.$ac_ext >&5
2728 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2729 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2732 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2733 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2734 GCC=`test $ac_compiler_gnu = yes && echo yes`
2735 ac_test_CFLAGS=${CFLAGS+set}
2736 ac_save_CFLAGS=$CFLAGS
2737 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2738 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2739 if test "${ac_cv_prog_cc_g+set}" = set; then
2740 echo $ECHO_N "(cached) $ECHO_C" >&6
2742 ac_save_c_werror_flag=$ac_c_werror_flag
2743 ac_c_werror_flag=yes
2746 cat >conftest.$ac_ext <<_ACEOF
2749 cat confdefs.h >>conftest.$ac_ext
2750 cat >>conftest.$ac_ext <<_ACEOF
2751 /* end confdefs.h. */
2761 rm -f conftest.$ac_objext
2762 if { (ac_try="$ac_compile"
2764 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2765 *) ac_try_echo=$ac_try;;
2767 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2768 (eval "$ac_compile") 2>conftest.er1
2770 grep -v '^ *+' conftest.er1 >conftest.err
2772 cat conftest.err >&5
2773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2774 (exit $ac_status); } && {
2775 test -z "$ac_c_werror_flag" ||
2776 test ! -s conftest.err
2777 } && test -s conftest.$ac_objext; then
2780 echo "$as_me: failed program was:" >&5
2781 sed 's/^/| /' conftest.$ac_ext >&5
2784 cat >conftest.$ac_ext <<_ACEOF
2787 cat confdefs.h >>conftest.$ac_ext
2788 cat >>conftest.$ac_ext <<_ACEOF
2789 /* end confdefs.h. */
2799 rm -f conftest.$ac_objext
2800 if { (ac_try="$ac_compile"
2802 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2803 *) ac_try_echo=$ac_try;;
2805 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2806 (eval "$ac_compile") 2>conftest.er1
2808 grep -v '^ *+' conftest.er1 >conftest.err
2810 cat conftest.err >&5
2811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2812 (exit $ac_status); } && {
2813 test -z "$ac_c_werror_flag" ||
2814 test ! -s conftest.err
2815 } && test -s conftest.$ac_objext; then
2818 echo "$as_me: failed program was:" >&5
2819 sed 's/^/| /' conftest.$ac_ext >&5
2821 ac_c_werror_flag=$ac_save_c_werror_flag
2823 cat >conftest.$ac_ext <<_ACEOF
2826 cat confdefs.h >>conftest.$ac_ext
2827 cat >>conftest.$ac_ext <<_ACEOF
2828 /* end confdefs.h. */
2838 rm -f conftest.$ac_objext
2839 if { (ac_try="$ac_compile"
2841 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2842 *) ac_try_echo=$ac_try;;
2844 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2845 (eval "$ac_compile") 2>conftest.er1
2847 grep -v '^ *+' conftest.er1 >conftest.err
2849 cat conftest.err >&5
2850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2851 (exit $ac_status); } && {
2852 test -z "$ac_c_werror_flag" ||
2853 test ! -s conftest.err
2854 } && test -s conftest.$ac_objext; then
2857 echo "$as_me: failed program was:" >&5
2858 sed 's/^/| /' conftest.$ac_ext >&5
2863 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2866 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2869 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2870 ac_c_werror_flag=$ac_save_c_werror_flag
2872 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2873 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
2874 if test "$ac_test_CFLAGS" = set; then
2875 CFLAGS=$ac_save_CFLAGS
2876 elif test $ac_cv_prog_cc_g = yes; then
2877 if test "$GCC" = yes; then
2883 if test "$GCC" = yes; then
2889 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2890 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
2891 if test "${ac_cv_prog_cc_c89+set}" = set; then
2892 echo $ECHO_N "(cached) $ECHO_C" >&6
2894 ac_cv_prog_cc_c89=no
2896 cat >conftest.$ac_ext <<_ACEOF
2899 cat confdefs.h >>conftest.$ac_ext
2900 cat >>conftest.$ac_ext <<_ACEOF
2901 /* end confdefs.h. */
2904 #include <sys/types.h>
2905 #include <sys/stat.h>
2906 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2907 struct buf { int x; };
2908 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2909 static char *e (p, i)
2915 static char *f (char * (*g) (char **, int), char **p, ...)
2920 s = g (p, va_arg (v,int));
2925 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2926 function prototypes and stuff, but not '\xHH' hex character constants.
2927 These don't provoke an error unfortunately, instead are silently treated
2928 as 'x'. The following induces an error, until -std is added to get
2929 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2930 array size at least. It's necessary to write '\x00'==0 to get something
2931 that's true only with -std. */
2932 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2934 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2935 inside strings and character constants. */
2937 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2939 int test (int i, double x);
2940 struct s1 {int (*f) (int a);};
2941 struct s2 {int (*f) (double a);};
2942 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2948 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2953 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2954 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2956 CC="$ac_save_CC $ac_arg"
2957 rm -f conftest.$ac_objext
2958 if { (ac_try="$ac_compile"
2960 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2961 *) ac_try_echo=$ac_try;;
2963 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2964 (eval "$ac_compile") 2>conftest.er1
2966 grep -v '^ *+' conftest.er1 >conftest.err
2968 cat conftest.err >&5
2969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2970 (exit $ac_status); } && {
2971 test -z "$ac_c_werror_flag" ||
2972 test ! -s conftest.err
2973 } && test -s conftest.$ac_objext; then
2974 ac_cv_prog_cc_c89=$ac_arg
2976 echo "$as_me: failed program was:" >&5
2977 sed 's/^/| /' conftest.$ac_ext >&5
2982 rm -f core conftest.err conftest.$ac_objext
2983 test "x$ac_cv_prog_cc_c89" != "xno" && break
2985 rm -f conftest.$ac_ext
2990 case "x$ac_cv_prog_cc_c89" in
2992 { echo "$as_me:$LINENO: result: none needed" >&5
2993 echo "${ECHO_T}none needed" >&6; } ;;
2995 { echo "$as_me:$LINENO: result: unsupported" >&5
2996 echo "${ECHO_T}unsupported" >&6; } ;;
2998 CC="$CC $ac_cv_prog_cc_c89"
2999 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3000 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3005 ac_cpp='$CPP $CPPFLAGS'
3006 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3007 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3008 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3011 ac_cpp='$CPP $CPPFLAGS'
3012 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3013 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3014 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3015 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3016 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3017 # On Suns, sometimes $CPP names a directory.
3018 if test -n "$CPP" && test -d "$CPP"; then
3021 if test -z "$CPP"; then
3022 if test "${ac_cv_prog_CPP+set}" = set; then
3023 echo $ECHO_N "(cached) $ECHO_C" >&6
3025 # Double quotes because CPP needs to be expanded
3026 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3029 for ac_c_preproc_warn_flag in '' yes
3031 # Use a header file that comes with gcc, so configuring glibc
3032 # with a fresh cross-compiler works.
3033 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3034 # <limits.h> exists even on freestanding compilers.
3035 # On the NeXT, cc -E runs the code through the compiler's parser,
3036 # not just through cpp. "Syntax error" is here to catch this case.
3037 cat >conftest.$ac_ext <<_ACEOF
3040 cat confdefs.h >>conftest.$ac_ext
3041 cat >>conftest.$ac_ext <<_ACEOF
3042 /* end confdefs.h. */
3044 # include <limits.h>
3046 # include <assert.h>
3050 if { (ac_try="$ac_cpp conftest.$ac_ext"
3052 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3053 *) ac_try_echo=$ac_try;;
3055 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3056 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3058 grep -v '^ *+' conftest.er1 >conftest.err
3060 cat conftest.err >&5
3061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3062 (exit $ac_status); } >/dev/null && {
3063 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3064 test ! -s conftest.err
3068 echo "$as_me: failed program was:" >&5
3069 sed 's/^/| /' conftest.$ac_ext >&5
3071 # Broken: fails on valid input.
3075 rm -f conftest.err conftest.$ac_ext
3077 # OK, works on sane cases. Now check whether nonexistent headers
3078 # can be detected and how.
3079 cat >conftest.$ac_ext <<_ACEOF
3082 cat confdefs.h >>conftest.$ac_ext
3083 cat >>conftest.$ac_ext <<_ACEOF
3084 /* end confdefs.h. */
3085 #include <ac_nonexistent.h>
3087 if { (ac_try="$ac_cpp conftest.$ac_ext"
3089 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3090 *) ac_try_echo=$ac_try;;
3092 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3093 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3095 grep -v '^ *+' conftest.er1 >conftest.err
3097 cat conftest.err >&5
3098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3099 (exit $ac_status); } >/dev/null && {
3100 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3101 test ! -s conftest.err
3103 # Broken: success on invalid input.
3106 echo "$as_me: failed program was:" >&5
3107 sed 's/^/| /' conftest.$ac_ext >&5
3109 # Passes both tests.
3114 rm -f conftest.err conftest.$ac_ext
3117 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3118 rm -f conftest.err conftest.$ac_ext
3119 if $ac_preproc_ok; then
3131 { echo "$as_me:$LINENO: result: $CPP" >&5
3132 echo "${ECHO_T}$CPP" >&6; }
3134 for ac_c_preproc_warn_flag in '' yes
3136 # Use a header file that comes with gcc, so configuring glibc
3137 # with a fresh cross-compiler works.
3138 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3139 # <limits.h> exists even on freestanding compilers.
3140 # On the NeXT, cc -E runs the code through the compiler's parser,
3141 # not just through cpp. "Syntax error" is here to catch this case.
3142 cat >conftest.$ac_ext <<_ACEOF
3145 cat confdefs.h >>conftest.$ac_ext
3146 cat >>conftest.$ac_ext <<_ACEOF
3147 /* end confdefs.h. */
3149 # include <limits.h>
3151 # include <assert.h>
3155 if { (ac_try="$ac_cpp conftest.$ac_ext"
3157 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3158 *) ac_try_echo=$ac_try;;
3160 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3161 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3163 grep -v '^ *+' conftest.er1 >conftest.err
3165 cat conftest.err >&5
3166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3167 (exit $ac_status); } >/dev/null && {
3168 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3169 test ! -s conftest.err
3173 echo "$as_me: failed program was:" >&5
3174 sed 's/^/| /' conftest.$ac_ext >&5
3176 # Broken: fails on valid input.
3180 rm -f conftest.err conftest.$ac_ext
3182 # OK, works on sane cases. Now check whether nonexistent headers
3183 # can be detected and how.
3184 cat >conftest.$ac_ext <<_ACEOF
3187 cat confdefs.h >>conftest.$ac_ext
3188 cat >>conftest.$ac_ext <<_ACEOF
3189 /* end confdefs.h. */
3190 #include <ac_nonexistent.h>
3192 if { (ac_try="$ac_cpp conftest.$ac_ext"
3194 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3195 *) ac_try_echo=$ac_try;;
3197 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3198 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3200 grep -v '^ *+' conftest.er1 >conftest.err
3202 cat conftest.err >&5
3203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3204 (exit $ac_status); } >/dev/null && {
3205 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3206 test ! -s conftest.err
3208 # Broken: success on invalid input.
3211 echo "$as_me: failed program was:" >&5
3212 sed 's/^/| /' conftest.$ac_ext >&5
3214 # Passes both tests.
3219 rm -f conftest.err conftest.$ac_ext
3222 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3223 rm -f conftest.err conftest.$ac_ext
3224 if $ac_preproc_ok; then
3227 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3228 See \`config.log' for more details." >&5
3229 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3230 See \`config.log' for more details." >&2;}
3231 { (exit 1); exit 1; }; }
3235 ac_cpp='$CPP $CPPFLAGS'
3236 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3237 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3238 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3242 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3243 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3244 if test "${ac_cv_path_GREP+set}" = set; then
3245 echo $ECHO_N "(cached) $ECHO_C" >&6
3247 # Extract the first word of "grep ggrep" to use in msg output
3248 if test -z "$GREP"; then
3249 set dummy grep ggrep; ac_prog_name=$2
3250 if test "${ac_cv_path_GREP+set}" = set; then
3251 echo $ECHO_N "(cached) $ECHO_C" >&6
3253 ac_path_GREP_found=false
3254 # Loop through the user's path and test for each of PROGNAME-LIST
3255 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3256 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3259 test -z "$as_dir" && as_dir=.
3260 for ac_prog in grep ggrep; do
3261 for ac_exec_ext in '' $ac_executable_extensions; do
3262 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3263 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3264 # Check for GNU ac_path_GREP and select it if it is found.
3265 # Check for GNU $ac_path_GREP
3266 case `"$ac_path_GREP" --version 2>&1` in
3268 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3271 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3274 cat "conftest.in" "conftest.in" >"conftest.tmp"
3275 mv "conftest.tmp" "conftest.in"
3276 cp "conftest.in" "conftest.nl"
3277 echo 'GREP' >> "conftest.nl"
3278 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3279 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3280 ac_count=`expr $ac_count + 1`
3281 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3282 # Best one so far, save it but keep looking for a better one
3283 ac_cv_path_GREP="$ac_path_GREP"
3284 ac_path_GREP_max=$ac_count
3286 # 10*(2^10) chars as input seems more than enough
3287 test $ac_count -gt 10 && break
3289 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3293 $ac_path_GREP_found && break 3
3303 GREP="$ac_cv_path_GREP"
3304 if test -z "$GREP"; then
3305 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3306 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3307 { (exit 1); exit 1; }; }
3311 ac_cv_path_GREP=$GREP
3316 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3317 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3318 GREP="$ac_cv_path_GREP"
3321 { echo "$as_me:$LINENO: checking for egrep" >&5
3322 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3323 if test "${ac_cv_path_EGREP+set}" = set; then
3324 echo $ECHO_N "(cached) $ECHO_C" >&6
3326 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3327 then ac_cv_path_EGREP="$GREP -E"
3329 # Extract the first word of "egrep" to use in msg output
3330 if test -z "$EGREP"; then
3331 set dummy egrep; ac_prog_name=$2
3332 if test "${ac_cv_path_EGREP+set}" = set; then
3333 echo $ECHO_N "(cached) $ECHO_C" >&6
3335 ac_path_EGREP_found=false
3336 # Loop through the user's path and test for each of PROGNAME-LIST
3337 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3338 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3341 test -z "$as_dir" && as_dir=.
3342 for ac_prog in egrep; do
3343 for ac_exec_ext in '' $ac_executable_extensions; do
3344 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3345 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3346 # Check for GNU ac_path_EGREP and select it if it is found.
3347 # Check for GNU $ac_path_EGREP
3348 case `"$ac_path_EGREP" --version 2>&1` in
3350 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3353 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3356 cat "conftest.in" "conftest.in" >"conftest.tmp"
3357 mv "conftest.tmp" "conftest.in"
3358 cp "conftest.in" "conftest.nl"
3359 echo 'EGREP' >> "conftest.nl"
3360 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3361 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3362 ac_count=`expr $ac_count + 1`
3363 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3364 # Best one so far, save it but keep looking for a better one
3365 ac_cv_path_EGREP="$ac_path_EGREP"
3366 ac_path_EGREP_max=$ac_count
3368 # 10*(2^10) chars as input seems more than enough
3369 test $ac_count -gt 10 && break
3371 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3375 $ac_path_EGREP_found && break 3
3385 EGREP="$ac_cv_path_EGREP"
3386 if test -z "$EGREP"; then
3387 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3388 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3389 { (exit 1); exit 1; }; }
3393 ac_cv_path_EGREP=$EGREP
3399 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3400 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3401 EGREP="$ac_cv_path_EGREP"
3404 if test $ac_cv_c_compiler_gnu = yes; then
3405 { echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
3406 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6; }
3407 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
3408 echo $ECHO_N "(cached) $ECHO_C" >&6
3410 ac_pattern="Autoconf.*'x'"
3411 cat >conftest.$ac_ext <<_ACEOF
3414 cat confdefs.h >>conftest.$ac_ext
3415 cat >>conftest.$ac_ext <<_ACEOF
3416 /* end confdefs.h. */
3420 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3421 $EGREP "$ac_pattern" >/dev/null 2>&1; then
3422 ac_cv_prog_gcc_traditional=yes
3424 ac_cv_prog_gcc_traditional=no
3429 if test $ac_cv_prog_gcc_traditional = no; then
3430 cat >conftest.$ac_ext <<_ACEOF
3433 cat confdefs.h >>conftest.$ac_ext
3434 cat >>conftest.$ac_ext <<_ACEOF
3435 /* end confdefs.h. */
3439 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3440 $EGREP "$ac_pattern" >/dev/null 2>&1; then
3441 ac_cv_prog_gcc_traditional=yes
3447 { echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
3448 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6; }
3449 if test $ac_cv_prog_gcc_traditional = yes; then
3450 CC="$CC -traditional"
3455 if test "x$GCC" != xyes ; then
3456 DFLAGS="$DFLAGS $NON_GNU_DFLAGS"
3457 CFLAGS="$CFLAGS $NON_GNU_CFLAGS"
3460 { echo "$as_me:$LINENO: checking for library containing crypt" >&5
3461 echo $ECHO_N "checking for library containing crypt... $ECHO_C" >&6; }
3462 if test "${ac_cv_search_crypt+set}" = set; then
3463 echo $ECHO_N "(cached) $ECHO_C" >&6
3465 ac_func_search_save_LIBS=$LIBS
3466 cat >conftest.$ac_ext <<_ACEOF
3469 cat confdefs.h >>conftest.$ac_ext
3470 cat >>conftest.$ac_ext <<_ACEOF
3471 /* end confdefs.h. */
3473 /* Override any GCC internal prototype to avoid an error.
3474 Use char because int might match the return type of a GCC
3475 builtin and then its argument prototype would still apply. */
3488 for ac_lib in '' crypt; do
3489 if test -z "$ac_lib"; then
3490 ac_res="none required"
3493 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
3495 rm -f conftest.$ac_objext conftest$ac_exeext
3496 if { (ac_try="$ac_link"
3498 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3499 *) ac_try_echo=$ac_try;;
3501 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3502 (eval "$ac_link") 2>conftest.er1
3504 grep -v '^ *+' conftest.er1 >conftest.err
3506 cat conftest.err >&5
3507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3508 (exit $ac_status); } && {
3509 test -z "$ac_c_werror_flag" ||
3510 test ! -s conftest.err
3511 } && test -s conftest$ac_exeext &&
3512 $as_test_x conftest$ac_exeext; then
3513 ac_cv_search_crypt=$ac_res
3515 echo "$as_me: failed program was:" >&5
3516 sed 's/^/| /' conftest.$ac_ext >&5
3521 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
3523 if test "${ac_cv_search_crypt+set}" = set; then
3527 if test "${ac_cv_search_crypt+set}" = set; then
3530 ac_cv_search_crypt=no
3533 LIBS=$ac_func_search_save_LIBS
3535 { echo "$as_me:$LINENO: result: $ac_cv_search_crypt" >&5
3536 echo "${ECHO_T}$ac_cv_search_crypt" >&6; }
3537 ac_res=$ac_cv_search_crypt
3538 if test "$ac_res" != no; then
3539 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
3543 { echo "$as_me:$LINENO: checking for library containing getspnam" >&5
3544 echo $ECHO_N "checking for library containing getspnam... $ECHO_C" >&6; }
3545 if test "${ac_cv_search_getspnam+set}" = set; then
3546 echo $ECHO_N "(cached) $ECHO_C" >&6
3548 ac_func_search_save_LIBS=$LIBS
3549 cat >conftest.$ac_ext <<_ACEOF
3552 cat confdefs.h >>conftest.$ac_ext
3553 cat >>conftest.$ac_ext <<_ACEOF
3554 /* end confdefs.h. */
3556 /* Override any GCC internal prototype to avoid an error.
3557 Use char because int might match the return type of a GCC
3558 builtin and then its argument prototype would still apply. */
3571 for ac_lib in '' sec; do
3572 if test -z "$ac_lib"; then
3573 ac_res="none required"
3576 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
3578 rm -f conftest.$ac_objext conftest$ac_exeext
3579 if { (ac_try="$ac_link"
3581 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3582 *) ac_try_echo=$ac_try;;
3584 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3585 (eval "$ac_link") 2>conftest.er1
3587 grep -v '^ *+' conftest.er1 >conftest.err
3589 cat conftest.err >&5
3590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3591 (exit $ac_status); } && {
3592 test -z "$ac_c_werror_flag" ||
3593 test ! -s conftest.err
3594 } && test -s conftest$ac_exeext &&
3595 $as_test_x conftest$ac_exeext; then
3596 ac_cv_search_getspnam=$ac_res
3598 echo "$as_me: failed program was:" >&5
3599 sed 's/^/| /' conftest.$ac_ext >&5
3604 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
3606 if test "${ac_cv_search_getspnam+set}" = set; then
3610 if test "${ac_cv_search_getspnam+set}" = set; then
3613 ac_cv_search_getspnam=no
3616 LIBS=$ac_func_search_save_LIBS
3618 { echo "$as_me:$LINENO: result: $ac_cv_search_getspnam" >&5
3619 echo "${ECHO_T}$ac_cv_search_getspnam" >&6; }
3620 ac_res=$ac_cv_search_getspnam
3621 if test "$ac_res" != no; then
3622 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
3626 { echo "$as_me:$LINENO: checking for library containing tgetent" >&5
3627 echo $ECHO_N "checking for library containing tgetent... $ECHO_C" >&6; }
3628 if test "${ac_cv_search_tgetent+set}" = set; then
3629 echo $ECHO_N "(cached) $ECHO_C" >&6
3631 ac_func_search_save_LIBS=$LIBS
3632 cat >conftest.$ac_ext <<_ACEOF
3635 cat confdefs.h >>conftest.$ac_ext
3636 cat >>conftest.$ac_ext <<_ACEOF
3637 /* end confdefs.h. */
3639 /* Override any GCC internal prototype to avoid an error.
3640 Use char because int might match the return type of a GCC
3641 builtin and then its argument prototype would still apply. */
3654 for ac_lib in '' termlib termcap curses ncurses; do
3655 if test -z "$ac_lib"; then
3656 ac_res="none required"
3659 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
3661 rm -f conftest.$ac_objext conftest$ac_exeext
3662 if { (ac_try="$ac_link"
3664 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3665 *) ac_try_echo=$ac_try;;
3667 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3668 (eval "$ac_link") 2>conftest.er1
3670 grep -v '^ *+' conftest.er1 >conftest.err
3672 cat conftest.err >&5
3673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3674 (exit $ac_status); } && {
3675 test -z "$ac_c_werror_flag" ||
3676 test ! -s conftest.err
3677 } && test -s conftest$ac_exeext &&
3678 $as_test_x conftest$ac_exeext; then
3679 ac_cv_search_tgetent=$ac_res
3681 echo "$as_me: failed program was:" >&5
3682 sed 's/^/| /' conftest.$ac_ext >&5
3687 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
3689 if test "${ac_cv_search_tgetent+set}" = set; then
3693 if test "${ac_cv_search_tgetent+set}" = set; then
3696 ac_cv_search_tgetent=no
3699 LIBS=$ac_func_search_save_LIBS
3701 { echo "$as_me:$LINENO: result: $ac_cv_search_tgetent" >&5
3702 echo "${ECHO_T}$ac_cv_search_tgetent" >&6; }
3703 ac_res=$ac_cv_search_tgetent
3704 if test "$ac_res" != no; then
3705 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
3709 { echo "$as_me:$LINENO: checking for library containing gethostbyname" >&5
3710 echo $ECHO_N "checking for library containing gethostbyname... $ECHO_C" >&6; }
3711 if test "${ac_cv_search_gethostbyname+set}" = set; then
3712 echo $ECHO_N "(cached) $ECHO_C" >&6
3714 ac_func_search_save_LIBS=$LIBS
3715 cat >conftest.$ac_ext <<_ACEOF
3718 cat confdefs.h >>conftest.$ac_ext
3719 cat >>conftest.$ac_ext <<_ACEOF
3720 /* end confdefs.h. */
3722 /* Override any GCC internal prototype to avoid an error.
3723 Use char because int might match the return type of a GCC
3724 builtin and then its argument prototype would still apply. */
3728 char gethostbyname ();
3732 return gethostbyname ();
3737 for ac_lib in '' nsl; do
3738 if test -z "$ac_lib"; then
3739 ac_res="none required"
3742 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
3744 rm -f conftest.$ac_objext conftest$ac_exeext
3745 if { (ac_try="$ac_link"
3747 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3748 *) ac_try_echo=$ac_try;;
3750 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3751 (eval "$ac_link") 2>conftest.er1
3753 grep -v '^ *+' conftest.er1 >conftest.err
3755 cat conftest.err >&5
3756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3757 (exit $ac_status); } && {
3758 test -z "$ac_c_werror_flag" ||
3759 test ! -s conftest.err
3760 } && test -s conftest$ac_exeext &&
3761 $as_test_x conftest$ac_exeext; then
3762 ac_cv_search_gethostbyname=$ac_res
3764 echo "$as_me: failed program was:" >&5
3765 sed 's/^/| /' conftest.$ac_ext >&5
3770 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
3772 if test "${ac_cv_search_gethostbyname+set}" = set; then
3776 if test "${ac_cv_search_gethostbyname+set}" = set; then
3779 ac_cv_search_gethostbyname=no
3782 LIBS=$ac_func_search_save_LIBS
3784 { echo "$as_me:$LINENO: result: $ac_cv_search_gethostbyname" >&5
3785 echo "${ECHO_T}$ac_cv_search_gethostbyname" >&6; }
3786 ac_res=$ac_cv_search_gethostbyname
3787 if test "$ac_res" != no; then
3788 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
3792 { echo "$as_me:$LINENO: checking for library containing connect" >&5
3793 echo $ECHO_N "checking for library containing connect... $ECHO_C" >&6; }
3794 if test "${ac_cv_search_connect+set}" = set; then
3795 echo $ECHO_N "(cached) $ECHO_C" >&6
3797 ac_func_search_save_LIBS=$LIBS
3798 cat >conftest.$ac_ext <<_ACEOF
3801 cat confdefs.h >>conftest.$ac_ext
3802 cat >>conftest.$ac_ext <<_ACEOF
3803 /* end confdefs.h. */
3805 /* Override any GCC internal prototype to avoid an error.
3806 Use char because int might match the return type of a GCC
3807 builtin and then its argument prototype would still apply. */
3820 for ac_lib in '' socket; do
3821 if test -z "$ac_lib"; then
3822 ac_res="none required"
3825 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
3827 rm -f conftest.$ac_objext conftest$ac_exeext
3828 if { (ac_try="$ac_link"
3830 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3831 *) ac_try_echo=$ac_try;;
3833 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3834 (eval "$ac_link") 2>conftest.er1
3836 grep -v '^ *+' conftest.er1 >conftest.err
3838 cat conftest.err >&5
3839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3840 (exit $ac_status); } && {
3841 test -z "$ac_c_werror_flag" ||
3842 test ! -s conftest.err
3843 } && test -s conftest$ac_exeext &&
3844 $as_test_x conftest$ac_exeext; then
3845 ac_cv_search_connect=$ac_res
3847 echo "$as_me: failed program was:" >&5
3848 sed 's/^/| /' conftest.$ac_ext >&5
3853 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
3855 if test "${ac_cv_search_connect+set}" = set; then
3859 if test "${ac_cv_search_connect+set}" = set; then
3862 ac_cv_search_connect=no
3865 LIBS=$ac_func_search_save_LIBS
3867 { echo "$as_me:$LINENO: result: $ac_cv_search_connect" >&5
3868 echo "${ECHO_T}$ac_cv_search_connect" >&6; }
3869 ac_res=$ac_cv_search_connect
3870 if test "$ac_res" != no; then
3871 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
3876 if test "X$prefix" = "XNONE"; then
3877 acl_final_prefix="$ac_default_prefix"
3879 acl_final_prefix="$prefix"
3881 if test "X$exec_prefix" = "XNONE"; then
3882 acl_final_exec_prefix='${prefix}'
3884 acl_final_exec_prefix="$exec_prefix"
3886 acl_save_prefix="$prefix"
3887 prefix="$acl_final_prefix"
3888 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
3889 prefix="$acl_save_prefix"
3892 # Check whether --with-gnu-ld was given.
3893 if test "${with_gnu_ld+set}" = set; then
3894 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
3899 # Prepare PATH_SEPARATOR.
3900 # The user is always right.
3901 if test "${PATH_SEPARATOR+set}" != set; then
3902 echo "#! /bin/sh" >conf$$.sh
3903 echo "exit 0" >>conf$$.sh
3905 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
3913 if test "$GCC" = yes; then
3914 # Check if gcc -print-prog-name=ld gives a path.
3915 { echo "$as_me:$LINENO: checking for ld used by GCC" >&5
3916 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6; }
3919 # gcc leaves a trailing carriage return which upsets mingw
3920 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3922 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3925 # Accept absolute paths.
3926 [\\/]* | [A-Za-z]:[\\/]*)
3927 re_direlt='/[^/][^/]*/\.\./'
3928 # Canonicalize the path of ld
3929 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
3930 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3931 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
3933 test -z "$LD" && LD="$ac_prog"
3936 # If it fails, then pretend we aren't using GCC.
3940 # If it is relative, then search for the first ld in PATH.
3944 elif test "$with_gnu_ld" = yes; then
3945 { echo "$as_me:$LINENO: checking for GNU ld" >&5
3946 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
3948 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3949 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
3951 if test "${acl_cv_path_LD+set}" = set; then
3952 echo $ECHO_N "(cached) $ECHO_C" >&6
3954 if test -z "$LD"; then
3955 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
3956 for ac_dir in $PATH; do
3957 test -z "$ac_dir" && ac_dir=.
3958 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3959 acl_cv_path_LD="$ac_dir/$ac_prog"
3960 # Check to see if the program is GNU ld. I'd rather use --version,
3961 # but apparently some GNU ld's only accept -v.
3962 # Break only if it was the GNU/non-GNU ld that we prefer.
3963 case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
3964 *GNU* | *'with BFD'*)
3965 test "$with_gnu_ld" != no && break ;;
3967 test "$with_gnu_ld" != yes && break ;;
3973 acl_cv_path_LD="$LD" # Let the user override the test with a path.
3977 LD="$acl_cv_path_LD"
3978 if test -n "$LD"; then
3979 { echo "$as_me:$LINENO: result: $LD" >&5
3980 echo "${ECHO_T}$LD" >&6; }
3982 { echo "$as_me:$LINENO: result: no" >&5
3983 echo "${ECHO_T}no" >&6; }
3985 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3986 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3987 { (exit 1); exit 1; }; }
3988 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3989 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
3990 if test "${acl_cv_prog_gnu_ld+set}" = set; then
3991 echo $ECHO_N "(cached) $ECHO_C" >&6
3993 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
3994 case `$LD -v 2>&1 </dev/null` in
3995 *GNU* | *'with BFD'*)
3996 acl_cv_prog_gnu_ld=yes ;;
3998 acl_cv_prog_gnu_ld=no ;;
4001 { echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
4002 echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6; }
4003 with_gnu_ld=$acl_cv_prog_gnu_ld
4008 { echo "$as_me:$LINENO: checking for shared library run path origin" >&5
4009 echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6; }
4010 if test "${acl_cv_rpath+set}" = set; then
4011 echo $ECHO_N "(cached) $ECHO_C" >&6
4014 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
4015 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
4021 { echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
4022 echo "${ECHO_T}$acl_cv_rpath" >&6; }
4024 libext="$acl_cv_libext"
4025 shlibext="$acl_cv_shlibext"
4026 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
4027 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
4028 hardcode_direct="$acl_cv_hardcode_direct"
4029 hardcode_minus_L="$acl_cv_hardcode_minus_L"
4030 # Check whether --enable-rpath was given.
4031 if test "${enable_rpath+set}" = set; then
4032 enableval=$enable_rpath; :
4046 acl_save_prefix="$prefix"
4047 prefix="$acl_final_prefix"
4048 acl_save_exec_prefix="$exec_prefix"
4049 exec_prefix="$acl_final_exec_prefix"
4051 eval additional_includedir=\"$includedir\"
4052 eval additional_libdir=\"$libdir\"
4054 exec_prefix="$acl_save_exec_prefix"
4055 prefix="$acl_save_prefix"
4058 # Check whether --with-libiconv-prefix was given.
4059 if test "${with_libiconv_prefix+set}" = set; then
4060 withval=$with_libiconv_prefix;
4061 if test "X$withval" = "Xno"; then
4064 if test "X$withval" = "X"; then
4066 acl_save_prefix="$prefix"
4067 prefix="$acl_final_prefix"
4068 acl_save_exec_prefix="$exec_prefix"
4069 exec_prefix="$acl_final_exec_prefix"
4071 eval additional_includedir=\"$includedir\"
4072 eval additional_libdir=\"$libdir\"
4074 exec_prefix="$acl_save_exec_prefix"
4075 prefix="$acl_save_prefix"
4078 additional_includedir="$withval/include"
4079 additional_libdir="$withval/lib"
4090 names_already_handled=
4091 names_next_round='iconv '
4092 while test -n "$names_next_round"; do
4093 names_this_round="$names_next_round"
4095 for name in $names_this_round; do
4097 for n in $names_already_handled; do
4098 if test "$n" = "$name"; then
4103 if test -z "$already_handled"; then
4104 names_already_handled="$names_already_handled $name"
4105 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
4106 eval value=\"\$HAVE_LIB$uppername\"
4107 if test -n "$value"; then
4108 if test "$value" = yes; then
4109 eval value=\"\$LIB$uppername\"
4110 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
4111 eval value=\"\$LTLIB$uppername\"
4112 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
4121 if test $use_additional = yes; then
4122 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
4123 found_dir="$additional_libdir"
4124 found_so="$additional_libdir/lib$name.$shlibext"
4125 if test -f "$additional_libdir/lib$name.la"; then
4126 found_la="$additional_libdir/lib$name.la"
4129 if test -f "$additional_libdir/lib$name.$libext"; then
4130 found_dir="$additional_libdir"
4131 found_a="$additional_libdir/lib$name.$libext"
4132 if test -f "$additional_libdir/lib$name.la"; then
4133 found_la="$additional_libdir/lib$name.la"
4138 if test "X$found_dir" = "X"; then
4139 for x in $LDFLAGS $LTLIBICONV; do
4141 acl_save_prefix="$prefix"
4142 prefix="$acl_final_prefix"
4143 acl_save_exec_prefix="$exec_prefix"
4144 exec_prefix="$acl_final_exec_prefix"
4146 exec_prefix="$acl_save_exec_prefix"
4147 prefix="$acl_save_prefix"
4151 dir=`echo "X$x" | sed -e 's/^X-L//'`
4152 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
4154 found_so="$dir/lib$name.$shlibext"
4155 if test -f "$dir/lib$name.la"; then
4156 found_la="$dir/lib$name.la"
4159 if test -f "$dir/lib$name.$libext"; then
4161 found_a="$dir/lib$name.$libext"
4162 if test -f "$dir/lib$name.la"; then
4163 found_la="$dir/lib$name.la"
4169 if test "X$found_dir" != "X"; then
4174 if test "X$found_dir" != "X"; then
4175 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
4176 if test "X$found_so" != "X"; then
4177 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
4178 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
4181 for x in $ltrpathdirs; do
4182 if test "X$x" = "X$found_dir"; then
4187 if test -z "$haveit"; then
4188 ltrpathdirs="$ltrpathdirs $found_dir"
4190 if test "$hardcode_direct" = yes; then
4191 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
4193 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
4194 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
4196 for x in $rpathdirs; do
4197 if test "X$x" = "X$found_dir"; then
4202 if test -z "$haveit"; then
4203 rpathdirs="$rpathdirs $found_dir"
4207 for x in $LDFLAGS $LIBICONV; do
4209 acl_save_prefix="$prefix"
4210 prefix="$acl_final_prefix"
4211 acl_save_exec_prefix="$exec_prefix"
4212 exec_prefix="$acl_final_exec_prefix"
4214 exec_prefix="$acl_save_exec_prefix"
4215 prefix="$acl_save_prefix"
4217 if test "X$x" = "X-L$found_dir"; then
4222 if test -z "$haveit"; then
4223 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
4225 if test "$hardcode_minus_L" != no; then
4226 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
4228 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
4234 if test "X$found_a" != "X"; then
4235 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
4237 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
4240 additional_includedir=
4241 case "$found_dir" in
4243 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
4244 additional_includedir="$basedir/include"
4247 if test "X$additional_includedir" != "X"; then
4248 if test "X$additional_includedir" != "X/usr/include"; then
4250 if test "X$additional_includedir" = "X/usr/local/include"; then
4251 if test -n "$GCC"; then
4253 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
4257 if test -z "$haveit"; then
4258 for x in $CPPFLAGS $INCICONV; do
4260 acl_save_prefix="$prefix"
4261 prefix="$acl_final_prefix"
4262 acl_save_exec_prefix="$exec_prefix"
4263 exec_prefix="$acl_final_exec_prefix"
4265 exec_prefix="$acl_save_exec_prefix"
4266 prefix="$acl_save_prefix"
4268 if test "X$x" = "X-I$additional_includedir"; then
4273 if test -z "$haveit"; then
4274 if test -d "$additional_includedir"; then
4275 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
4281 if test -n "$found_la"; then
4282 save_libdir="$libdir"
4284 */* | *\\*) . "$found_la" ;;
4285 *) . "./$found_la" ;;
4287 libdir="$save_libdir"
4288 for dep in $dependency_libs; do
4291 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
4292 if test "X$additional_libdir" != "X/usr/lib"; then
4294 if test "X$additional_libdir" = "X/usr/local/lib"; then
4295 if test -n "$GCC"; then
4297 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
4301 if test -z "$haveit"; then
4303 for x in $LDFLAGS $LIBICONV; do
4305 acl_save_prefix="$prefix"
4306 prefix="$acl_final_prefix"
4307 acl_save_exec_prefix="$exec_prefix"
4308 exec_prefix="$acl_final_exec_prefix"
4310 exec_prefix="$acl_save_exec_prefix"
4311 prefix="$acl_save_prefix"
4313 if test "X$x" = "X-L$additional_libdir"; then
4318 if test -z "$haveit"; then
4319 if test -d "$additional_libdir"; then
4320 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
4324 for x in $LDFLAGS $LTLIBICONV; do
4326 acl_save_prefix="$prefix"
4327 prefix="$acl_final_prefix"
4328 acl_save_exec_prefix="$exec_prefix"
4329 exec_prefix="$acl_final_exec_prefix"
4331 exec_prefix="$acl_save_exec_prefix"
4332 prefix="$acl_save_prefix"
4334 if test "X$x" = "X-L$additional_libdir"; then
4339 if test -z "$haveit"; then
4340 if test -d "$additional_libdir"; then
4341 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
4348 dir=`echo "X$dep" | sed -e 's/^X-R//'`
4349 if test "$enable_rpath" != no; then
4351 for x in $rpathdirs; do
4352 if test "X$x" = "X$dir"; then
4357 if test -z "$haveit"; then
4358 rpathdirs="$rpathdirs $dir"
4361 for x in $ltrpathdirs; do
4362 if test "X$x" = "X$dir"; then
4367 if test -z "$haveit"; then
4368 ltrpathdirs="$ltrpathdirs $dir"
4373 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
4376 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
4379 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
4380 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
4386 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
4387 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
4393 if test "X$rpathdirs" != "X"; then
4394 if test -n "$hardcode_libdir_separator"; then
4396 for found_dir in $rpathdirs; do
4397 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
4399 acl_save_libdir="$libdir"
4401 eval flag=\"$hardcode_libdir_flag_spec\"
4402 libdir="$acl_save_libdir"
4403 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
4405 for found_dir in $rpathdirs; do
4406 acl_save_libdir="$libdir"
4408 eval flag=\"$hardcode_libdir_flag_spec\"
4409 libdir="$acl_save_libdir"
4410 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
4414 if test "X$ltrpathdirs" != "X"; then
4415 for found_dir in $ltrpathdirs; do
4416 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
4426 am_save_CPPFLAGS="$CPPFLAGS"
4428 for element in $INCICONV; do
4430 for x in $CPPFLAGS; do
4432 acl_save_prefix="$prefix"
4433 prefix="$acl_final_prefix"
4434 acl_save_exec_prefix="$exec_prefix"
4435 exec_prefix="$acl_final_exec_prefix"
4437 exec_prefix="$acl_save_exec_prefix"
4438 prefix="$acl_save_prefix"
4440 if test "X$x" = "X$element"; then
4445 if test -z "$haveit"; then
4446 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
4451 { echo "$as_me:$LINENO: checking for iconv" >&5
4452 echo $ECHO_N "checking for iconv... $ECHO_C" >&6; }
4453 if test "${am_cv_func_iconv+set}" = set; then
4454 echo $ECHO_N "(cached) $ECHO_C" >&6
4457 am_cv_func_iconv="no, consider installing GNU libiconv"
4459 cat >conftest.$ac_ext <<_ACEOF
4462 cat confdefs.h >>conftest.$ac_ext
4463 cat >>conftest.$ac_ext <<_ACEOF
4464 /* end confdefs.h. */
4470 iconv_t cd = iconv_open("","");
4471 iconv(cd,NULL,NULL,NULL,NULL);
4477 rm -f conftest.$ac_objext conftest$ac_exeext
4478 if { (ac_try="$ac_link"
4480 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4481 *) ac_try_echo=$ac_try;;
4483 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4484 (eval "$ac_link") 2>conftest.er1
4486 grep -v '^ *+' conftest.er1 >conftest.err
4488 cat conftest.err >&5
4489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4490 (exit $ac_status); } && {
4491 test -z "$ac_c_werror_flag" ||
4492 test ! -s conftest.err
4493 } && test -s conftest$ac_exeext &&
4494 $as_test_x conftest$ac_exeext; then
4495 am_cv_func_iconv=yes
4497 echo "$as_me: failed program was:" >&5
4498 sed 's/^/| /' conftest.$ac_ext >&5
4503 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4504 conftest$ac_exeext conftest.$ac_ext
4505 if test "$am_cv_func_iconv" != yes; then
4506 am_save_LIBS="$LIBS"
4507 LIBS="$LIBS $LIBICONV"
4508 cat >conftest.$ac_ext <<_ACEOF
4511 cat confdefs.h >>conftest.$ac_ext
4512 cat >>conftest.$ac_ext <<_ACEOF
4513 /* end confdefs.h. */
4519 iconv_t cd = iconv_open("","");
4520 iconv(cd,NULL,NULL,NULL,NULL);
4526 rm -f conftest.$ac_objext conftest$ac_exeext
4527 if { (ac_try="$ac_link"
4529 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4530 *) ac_try_echo=$ac_try;;
4532 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4533 (eval "$ac_link") 2>conftest.er1
4535 grep -v '^ *+' conftest.er1 >conftest.err
4537 cat conftest.err >&5
4538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4539 (exit $ac_status); } && {
4540 test -z "$ac_c_werror_flag" ||
4541 test ! -s conftest.err
4542 } && test -s conftest$ac_exeext &&
4543 $as_test_x conftest$ac_exeext; then
4545 am_cv_func_iconv=yes
4547 echo "$as_me: failed program was:" >&5
4548 sed 's/^/| /' conftest.$ac_ext >&5
4553 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4554 conftest$ac_exeext conftest.$ac_ext
4555 LIBS="$am_save_LIBS"
4559 { echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
4560 echo "${ECHO_T}$am_cv_func_iconv" >&6; }
4561 if test "$am_cv_func_iconv" = yes; then
4563 cat >>confdefs.h <<\_ACEOF
4564 #define HAVE_ICONV 1
4568 if test "$am_cv_lib_iconv" = yes; then
4569 { echo "$as_me:$LINENO: checking how to link with libiconv" >&5
4570 echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6; }
4571 { echo "$as_me:$LINENO: result: $LIBICONV" >&5
4572 echo "${ECHO_T}$LIBICONV" >&6; }
4574 CPPFLAGS="$am_save_CPPFLAGS"
4581 if test "$am_cv_func_iconv" = yes; then
4582 { echo "$as_me:$LINENO: checking for iconv declaration" >&5
4583 echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6; }
4584 if test "${am_cv_proto_iconv+set}" = set; then
4585 echo $ECHO_N "(cached) $ECHO_C" >&6
4588 cat >conftest.$ac_ext <<_ACEOF
4591 cat confdefs.h >>conftest.$ac_ext
4592 cat >>conftest.$ac_ext <<_ACEOF
4593 /* end confdefs.h. */
4601 #if defined(__STDC__) || defined(__cplusplus)
4602 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
4615 rm -f conftest.$ac_objext
4616 if { (ac_try="$ac_compile"
4618 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4619 *) ac_try_echo=$ac_try;;
4621 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4622 (eval "$ac_compile") 2>conftest.er1
4624 grep -v '^ *+' conftest.er1 >conftest.err
4626 cat conftest.err >&5
4627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4628 (exit $ac_status); } && {
4629 test -z "$ac_c_werror_flag" ||
4630 test ! -s conftest.err
4631 } && test -s conftest.$ac_objext; then
4632 am_cv_proto_iconv_arg1=""
4634 echo "$as_me: failed program was:" >&5
4635 sed 's/^/| /' conftest.$ac_ext >&5
4637 am_cv_proto_iconv_arg1="const"
4640 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4641 am_cv_proto_iconv="extern size_t iconv (iconv_t cd, $am_cv_proto_iconv_arg1 char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);"
4644 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
4645 { echo "$as_me:$LINENO: result: ${ac_t:-
4646 }$am_cv_proto_iconv" >&5
4647 echo "${ECHO_T}${ac_t:-
4648 }$am_cv_proto_iconv" >&6; }
4650 cat >>confdefs.h <<_ACEOF
4651 #define ICONV_CONST $am_cv_proto_iconv_arg1
4657 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4658 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
4659 if test "${ac_cv_header_stdc+set}" = set; then
4660 echo $ECHO_N "(cached) $ECHO_C" >&6
4662 cat >conftest.$ac_ext <<_ACEOF
4665 cat confdefs.h >>conftest.$ac_ext
4666 cat >>conftest.$ac_ext <<_ACEOF
4667 /* end confdefs.h. */
4681 rm -f conftest.$ac_objext
4682 if { (ac_try="$ac_compile"
4684 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4685 *) ac_try_echo=$ac_try;;
4687 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4688 (eval "$ac_compile") 2>conftest.er1
4690 grep -v '^ *+' conftest.er1 >conftest.err
4692 cat conftest.err >&5
4693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4694 (exit $ac_status); } && {
4695 test -z "$ac_c_werror_flag" ||
4696 test ! -s conftest.err
4697 } && test -s conftest.$ac_objext; then
4698 ac_cv_header_stdc=yes
4700 echo "$as_me: failed program was:" >&5
4701 sed 's/^/| /' conftest.$ac_ext >&5
4703 ac_cv_header_stdc=no
4706 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4708 if test $ac_cv_header_stdc = yes; then
4709 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4710 cat >conftest.$ac_ext <<_ACEOF
4713 cat confdefs.h >>conftest.$ac_ext
4714 cat >>conftest.$ac_ext <<_ACEOF
4715 /* end confdefs.h. */
4719 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4720 $EGREP "memchr" >/dev/null 2>&1; then
4723 ac_cv_header_stdc=no
4729 if test $ac_cv_header_stdc = yes; then
4730 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4731 cat >conftest.$ac_ext <<_ACEOF
4734 cat confdefs.h >>conftest.$ac_ext
4735 cat >>conftest.$ac_ext <<_ACEOF
4736 /* end confdefs.h. */
4740 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4741 $EGREP "free" >/dev/null 2>&1; then
4744 ac_cv_header_stdc=no
4750 if test $ac_cv_header_stdc = yes; then
4751 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4752 if test "$cross_compiling" = yes; then
4755 cat >conftest.$ac_ext <<_ACEOF
4758 cat confdefs.h >>conftest.$ac_ext
4759 cat >>conftest.$ac_ext <<_ACEOF
4760 /* end confdefs.h. */
4763 #if ((' ' & 0x0FF) == 0x020)
4764 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4765 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4767 # define ISLOWER(c) \
4768 (('a' <= (c) && (c) <= 'i') \
4769 || ('j' <= (c) && (c) <= 'r') \
4770 || ('s' <= (c) && (c) <= 'z'))
4771 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4774 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4779 for (i = 0; i < 256; i++)
4780 if (XOR (islower (i), ISLOWER (i))
4781 || toupper (i) != TOUPPER (i))
4786 rm -f conftest$ac_exeext
4787 if { (ac_try="$ac_link"
4789 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4790 *) ac_try_echo=$ac_try;;
4792 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4793 (eval "$ac_link") 2>&5
4795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4796 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4797 { (case "(($ac_try" in
4798 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4799 *) ac_try_echo=$ac_try;;
4801 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4802 (eval "$ac_try") 2>&5
4804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4805 (exit $ac_status); }; }; then
4808 echo "$as_me: program exited with status $ac_status" >&5
4809 echo "$as_me: failed program was:" >&5
4810 sed 's/^/| /' conftest.$ac_ext >&5
4813 ac_cv_header_stdc=no
4815 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4821 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4822 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
4823 if test $ac_cv_header_stdc = yes; then
4825 cat >>confdefs.h <<\_ACEOF
4826 #define STDC_HEADERS 1
4831 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4841 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4842 inttypes.h stdint.h unistd.h
4844 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4845 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4846 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4847 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4848 echo $ECHO_N "(cached) $ECHO_C" >&6
4850 cat >conftest.$ac_ext <<_ACEOF
4853 cat confdefs.h >>conftest.$ac_ext
4854 cat >>conftest.$ac_ext <<_ACEOF
4855 /* end confdefs.h. */
4856 $ac_includes_default
4858 #include <$ac_header>
4860 rm -f conftest.$ac_objext
4861 if { (ac_try="$ac_compile"
4863 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4864 *) ac_try_echo=$ac_try;;
4866 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4867 (eval "$ac_compile") 2>conftest.er1
4869 grep -v '^ *+' conftest.er1 >conftest.err
4871 cat conftest.err >&5
4872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4873 (exit $ac_status); } && {
4874 test -z "$ac_c_werror_flag" ||
4875 test ! -s conftest.err
4876 } && test -s conftest.$ac_objext; then
4877 eval "$as_ac_Header=yes"
4879 echo "$as_me: failed program was:" >&5
4880 sed 's/^/| /' conftest.$ac_ext >&5
4882 eval "$as_ac_Header=no"
4885 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4887 ac_res=`eval echo '${'$as_ac_Header'}'`
4888 { echo "$as_me:$LINENO: result: $ac_res" >&5
4889 echo "${ECHO_T}$ac_res" >&6; }
4890 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4891 cat >>confdefs.h <<_ACEOF
4892 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4907 for ac_header in auth.h crypt.h inttypes.h shadow.h stdint.h utmp.h utmpx.h
4909 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4910 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4911 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4912 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4913 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4914 echo $ECHO_N "(cached) $ECHO_C" >&6
4916 ac_res=`eval echo '${'$as_ac_Header'}'`
4917 { echo "$as_me:$LINENO: result: $ac_res" >&5
4918 echo "${ECHO_T}$ac_res" >&6; }
4920 # Is the header compilable?
4921 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
4922 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
4923 cat >conftest.$ac_ext <<_ACEOF
4926 cat confdefs.h >>conftest.$ac_ext
4927 cat >>conftest.$ac_ext <<_ACEOF
4928 /* end confdefs.h. */
4929 $ac_includes_default
4930 #include <$ac_header>
4932 rm -f conftest.$ac_objext
4933 if { (ac_try="$ac_compile"
4935 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4936 *) ac_try_echo=$ac_try;;
4938 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4939 (eval "$ac_compile") 2>conftest.er1
4941 grep -v '^ *+' conftest.er1 >conftest.err
4943 cat conftest.err >&5
4944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4945 (exit $ac_status); } && {
4946 test -z "$ac_c_werror_flag" ||
4947 test ! -s conftest.err
4948 } && test -s conftest.$ac_objext; then
4949 ac_header_compiler=yes
4951 echo "$as_me: failed program was:" >&5
4952 sed 's/^/| /' conftest.$ac_ext >&5
4954 ac_header_compiler=no
4957 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4958 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4959 echo "${ECHO_T}$ac_header_compiler" >&6; }
4961 # Is the header present?
4962 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
4963 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
4964 cat >conftest.$ac_ext <<_ACEOF
4967 cat confdefs.h >>conftest.$ac_ext
4968 cat >>conftest.$ac_ext <<_ACEOF
4969 /* end confdefs.h. */
4970 #include <$ac_header>
4972 if { (ac_try="$ac_cpp conftest.$ac_ext"
4974 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4975 *) ac_try_echo=$ac_try;;
4977 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4978 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4980 grep -v '^ *+' conftest.er1 >conftest.err
4982 cat conftest.err >&5
4983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4984 (exit $ac_status); } >/dev/null && {
4985 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4986 test ! -s conftest.err
4988 ac_header_preproc=yes
4990 echo "$as_me: failed program was:" >&5
4991 sed 's/^/| /' conftest.$ac_ext >&5
4993 ac_header_preproc=no
4996 rm -f conftest.err conftest.$ac_ext
4997 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4998 echo "${ECHO_T}$ac_header_preproc" >&6; }
5000 # So? What about this header?
5001 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5003 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5004 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5005 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5006 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5007 ac_header_preproc=yes
5010 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5011 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5012 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5013 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5014 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5015 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5016 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5017 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5018 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5019 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5020 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5021 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5023 ## ---------------------------------- ##
5024 ## Report this to http://bugs.gw.com/ ##
5025 ## ---------------------------------- ##
5027 ) | sed "s/^/$as_me: WARNING: /" >&2
5030 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5031 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5032 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5033 echo $ECHO_N "(cached) $ECHO_C" >&6
5035 eval "$as_ac_Header=\$ac_header_preproc"
5037 ac_res=`eval echo '${'$as_ac_Header'}'`
5038 { echo "$as_me:$LINENO: result: $ac_res" >&5
5039 echo "${ECHO_T}$ac_res" >&6; }
5042 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5043 cat >>confdefs.h <<_ACEOF
5044 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5052 for ac_header in wchar.h
5054 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5055 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5056 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5057 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5058 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5059 echo $ECHO_N "(cached) $ECHO_C" >&6
5061 ac_res=`eval echo '${'$as_ac_Header'}'`
5062 { echo "$as_me:$LINENO: result: $ac_res" >&5
5063 echo "${ECHO_T}$ac_res" >&6; }
5065 # Is the header compilable?
5066 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
5067 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
5068 cat >conftest.$ac_ext <<_ACEOF
5071 cat confdefs.h >>conftest.$ac_ext
5072 cat >>conftest.$ac_ext <<_ACEOF
5073 /* end confdefs.h. */
5074 $ac_includes_default
5075 #include <$ac_header>
5077 rm -f conftest.$ac_objext
5078 if { (ac_try="$ac_compile"
5080 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5081 *) ac_try_echo=$ac_try;;
5083 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5084 (eval "$ac_compile") 2>conftest.er1
5086 grep -v '^ *+' conftest.er1 >conftest.err
5088 cat conftest.err >&5
5089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5090 (exit $ac_status); } && {
5091 test -z "$ac_c_werror_flag" ||
5092 test ! -s conftest.err
5093 } && test -s conftest.$ac_objext; then
5094 ac_header_compiler=yes
5096 echo "$as_me: failed program was:" >&5
5097 sed 's/^/| /' conftest.$ac_ext >&5
5099 ac_header_compiler=no
5102 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5103 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5104 echo "${ECHO_T}$ac_header_compiler" >&6; }
5106 # Is the header present?
5107 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
5108 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
5109 cat >conftest.$ac_ext <<_ACEOF
5112 cat confdefs.h >>conftest.$ac_ext
5113 cat >>conftest.$ac_ext <<_ACEOF
5114 /* end confdefs.h. */
5115 #include <$ac_header>
5117 if { (ac_try="$ac_cpp conftest.$ac_ext"
5119 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5120 *) ac_try_echo=$ac_try;;
5122 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5123 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5125 grep -v '^ *+' conftest.er1 >conftest.err
5127 cat conftest.err >&5
5128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5129 (exit $ac_status); } >/dev/null && {
5130 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5131 test ! -s conftest.err
5133 ac_header_preproc=yes
5135 echo "$as_me: failed program was:" >&5
5136 sed 's/^/| /' conftest.$ac_ext >&5
5138 ac_header_preproc=no
5141 rm -f conftest.err conftest.$ac_ext
5142 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5143 echo "${ECHO_T}$ac_header_preproc" >&6; }
5145 # So? What about this header?
5146 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5148 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5149 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5150 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5151 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5152 ac_header_preproc=yes
5155 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5156 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5157 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5158 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5159 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5160 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5161 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5162 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5163 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5164 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5165 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5166 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5168 ## ---------------------------------- ##
5169 ## Report this to http://bugs.gw.com/ ##
5170 ## ---------------------------------- ##
5172 ) | sed "s/^/$as_me: WARNING: /" >&2
5175 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5176 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5177 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5178 echo $ECHO_N "(cached) $ECHO_C" >&6
5180 eval "$as_ac_Header=\$ac_header_preproc"
5182 ac_res=`eval echo '${'$as_ac_Header'}'`
5183 { echo "$as_me:$LINENO: result: $ac_res" >&5
5184 echo "${ECHO_T}$ac_res" >&6; }
5187 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5188 cat >>confdefs.h <<_ACEOF
5189 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5191 { echo "$as_me:$LINENO: checking for wchar_t" >&5
5192 echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6; }
5193 if test "${ac_cv_type_wchar_t+set}" = set; then
5194 echo $ECHO_N "(cached) $ECHO_C" >&6
5196 cat >conftest.$ac_ext <<_ACEOF
5199 cat confdefs.h >>conftest.$ac_ext
5200 cat >>conftest.$ac_ext <<_ACEOF
5201 /* end confdefs.h. */
5205 typedef wchar_t ac__type_new_;
5209 if ((ac__type_new_ *) 0)
5211 if (sizeof (ac__type_new_))
5217 rm -f conftest.$ac_objext
5218 if { (ac_try="$ac_compile"
5220 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5221 *) ac_try_echo=$ac_try;;
5223 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5224 (eval "$ac_compile") 2>conftest.er1
5226 grep -v '^ *+' conftest.er1 >conftest.err
5228 cat conftest.err >&5
5229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5230 (exit $ac_status); } && {
5231 test -z "$ac_c_werror_flag" ||
5232 test ! -s conftest.err
5233 } && test -s conftest.$ac_objext; then
5234 ac_cv_type_wchar_t=yes
5236 echo "$as_me: failed program was:" >&5
5237 sed 's/^/| /' conftest.$ac_ext >&5
5239 ac_cv_type_wchar_t=no
5242 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5244 { echo "$as_me:$LINENO: result: $ac_cv_type_wchar_t" >&5
5245 echo "${ECHO_T}$ac_cv_type_wchar_t" >&6; }
5247 # The cast to long int works around a bug in the HP C Compiler
5248 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5249 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5250 # This bug is HP SR number 8606223364.
5251 { echo "$as_me:$LINENO: checking size of wchar_t" >&5
5252 echo $ECHO_N "checking size of wchar_t... $ECHO_C" >&6; }
5253 if test "${ac_cv_sizeof_wchar_t+set}" = set; then
5254 echo $ECHO_N "(cached) $ECHO_C" >&6
5256 if test "$cross_compiling" = yes; then
5257 # Depending upon the size, compute the lo and hi bounds.
5258 cat >conftest.$ac_ext <<_ACEOF
5261 cat confdefs.h >>conftest.$ac_ext
5262 cat >>conftest.$ac_ext <<_ACEOF
5263 /* end confdefs.h. */
5267 typedef wchar_t ac__type_sizeof_;
5271 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
5278 rm -f conftest.$ac_objext
5279 if { (ac_try="$ac_compile"
5281 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5282 *) ac_try_echo=$ac_try;;
5284 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5285 (eval "$ac_compile") 2>conftest.er1
5287 grep -v '^ *+' conftest.er1 >conftest.err
5289 cat conftest.err >&5
5290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5291 (exit $ac_status); } && {
5292 test -z "$ac_c_werror_flag" ||
5293 test ! -s conftest.err
5294 } && test -s conftest.$ac_objext; then
5297 cat >conftest.$ac_ext <<_ACEOF
5300 cat confdefs.h >>conftest.$ac_ext
5301 cat >>conftest.$ac_ext <<_ACEOF
5302 /* end confdefs.h. */
5306 typedef wchar_t ac__type_sizeof_;
5310 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
5317 rm -f conftest.$ac_objext
5318 if { (ac_try="$ac_compile"
5320 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5321 *) ac_try_echo=$ac_try;;
5323 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5324 (eval "$ac_compile") 2>conftest.er1
5326 grep -v '^ *+' conftest.er1 >conftest.err
5328 cat conftest.err >&5
5329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5330 (exit $ac_status); } && {
5331 test -z "$ac_c_werror_flag" ||
5332 test ! -s conftest.err
5333 } && test -s conftest.$ac_objext; then
5334 ac_hi=$ac_mid; break
5336 echo "$as_me: failed program was:" >&5
5337 sed 's/^/| /' conftest.$ac_ext >&5
5339 ac_lo=`expr $ac_mid + 1`
5340 if test $ac_lo -le $ac_mid; then
5344 ac_mid=`expr 2 '*' $ac_mid + 1`
5347 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5350 echo "$as_me: failed program was:" >&5
5351 sed 's/^/| /' conftest.$ac_ext >&5
5353 cat >conftest.$ac_ext <<_ACEOF
5356 cat confdefs.h >>conftest.$ac_ext
5357 cat >>conftest.$ac_ext <<_ACEOF
5358 /* end confdefs.h. */
5362 typedef wchar_t ac__type_sizeof_;
5366 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
5373 rm -f conftest.$ac_objext
5374 if { (ac_try="$ac_compile"
5376 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5377 *) ac_try_echo=$ac_try;;
5379 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5380 (eval "$ac_compile") 2>conftest.er1
5382 grep -v '^ *+' conftest.er1 >conftest.err
5384 cat conftest.err >&5
5385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5386 (exit $ac_status); } && {
5387 test -z "$ac_c_werror_flag" ||
5388 test ! -s conftest.err
5389 } && test -s conftest.$ac_objext; then
5392 cat >conftest.$ac_ext <<_ACEOF
5395 cat confdefs.h >>conftest.$ac_ext
5396 cat >>conftest.$ac_ext <<_ACEOF
5397 /* end confdefs.h. */
5401 typedef wchar_t ac__type_sizeof_;
5405 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
5412 rm -f conftest.$ac_objext
5413 if { (ac_try="$ac_compile"
5415 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5416 *) ac_try_echo=$ac_try;;
5418 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5419 (eval "$ac_compile") 2>conftest.er1
5421 grep -v '^ *+' conftest.er1 >conftest.err
5423 cat conftest.err >&5
5424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5425 (exit $ac_status); } && {
5426 test -z "$ac_c_werror_flag" ||
5427 test ! -s conftest.err
5428 } && test -s conftest.$ac_objext; then
5429 ac_lo=$ac_mid; break
5431 echo "$as_me: failed program was:" >&5
5432 sed 's/^/| /' conftest.$ac_ext >&5
5434 ac_hi=`expr '(' $ac_mid ')' - 1`
5435 if test $ac_mid -le $ac_hi; then
5439 ac_mid=`expr 2 '*' $ac_mid`
5442 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5445 echo "$as_me: failed program was:" >&5
5446 sed 's/^/| /' conftest.$ac_ext >&5
5451 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5454 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5455 # Binary search between lo and hi bounds.
5456 while test "x$ac_lo" != "x$ac_hi"; do
5457 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
5458 cat >conftest.$ac_ext <<_ACEOF
5461 cat confdefs.h >>conftest.$ac_ext
5462 cat >>conftest.$ac_ext <<_ACEOF
5463 /* end confdefs.h. */
5467 typedef wchar_t ac__type_sizeof_;
5471 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
5478 rm -f conftest.$ac_objext
5479 if { (ac_try="$ac_compile"
5481 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5482 *) ac_try_echo=$ac_try;;
5484 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5485 (eval "$ac_compile") 2>conftest.er1
5487 grep -v '^ *+' conftest.er1 >conftest.err
5489 cat conftest.err >&5
5490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5491 (exit $ac_status); } && {
5492 test -z "$ac_c_werror_flag" ||
5493 test ! -s conftest.err
5494 } && test -s conftest.$ac_objext; then
5497 echo "$as_me: failed program was:" >&5
5498 sed 's/^/| /' conftest.$ac_ext >&5
5500 ac_lo=`expr '(' $ac_mid ')' + 1`
5503 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5506 ?*) ac_cv_sizeof_wchar_t=$ac_lo;;
5507 '') if test "$ac_cv_type_wchar_t" = yes; then
5508 { { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t)
5509 See \`config.log' for more details." >&5
5510 echo "$as_me: error: cannot compute sizeof (wchar_t)
5511 See \`config.log' for more details." >&2;}
5512 { (exit 77); exit 77; }; }
5514 ac_cv_sizeof_wchar_t=0
5518 cat >conftest.$ac_ext <<_ACEOF
5521 cat confdefs.h >>conftest.$ac_ext
5522 cat >>conftest.$ac_ext <<_ACEOF
5523 /* end confdefs.h. */
5527 typedef wchar_t ac__type_sizeof_;
5528 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
5529 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
5536 FILE *f = fopen ("conftest.val", "w");
5539 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
5541 long int i = longval ();
5542 if (i != ((long int) (sizeof (ac__type_sizeof_))))
5544 fprintf (f, "%ld\n", i);
5548 unsigned long int i = ulongval ();
5549 if (i != ((long int) (sizeof (ac__type_sizeof_))))
5551 fprintf (f, "%lu\n", i);
5553 return ferror (f) || fclose (f) != 0;
5559 rm -f conftest$ac_exeext
5560 if { (ac_try="$ac_link"
5562 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5563 *) ac_try_echo=$ac_try;;
5565 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5566 (eval "$ac_link") 2>&5
5568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5569 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5570 { (case "(($ac_try" in
5571 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5572 *) ac_try_echo=$ac_try;;
5574 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5575 (eval "$ac_try") 2>&5
5577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5578 (exit $ac_status); }; }; then
5579 ac_cv_sizeof_wchar_t=`cat conftest.val`
5581 echo "$as_me: program exited with status $ac_status" >&5
5582 echo "$as_me: failed program was:" >&5
5583 sed 's/^/| /' conftest.$ac_ext >&5
5586 if test "$ac_cv_type_wchar_t" = yes; then
5587 { { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t)
5588 See \`config.log' for more details." >&5
5589 echo "$as_me: error: cannot compute sizeof (wchar_t)
5590 See \`config.log' for more details." >&2;}
5591 { (exit 77); exit 77; }; }
5593 ac_cv_sizeof_wchar_t=0
5596 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5600 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_wchar_t" >&5
5601 echo "${ECHO_T}$ac_cv_sizeof_wchar_t" >&6; }
5605 cat >>confdefs.h <<_ACEOF
5606 #define SIZEOF_WCHAR_T $ac_cv_sizeof_wchar_t
5611 for ac_header in wctype.h
5613 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5614 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5615 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5616 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5617 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5618 echo $ECHO_N "(cached) $ECHO_C" >&6
5620 ac_res=`eval echo '${'$as_ac_Header'}'`
5621 { echo "$as_me:$LINENO: result: $ac_res" >&5
5622 echo "${ECHO_T}$ac_res" >&6; }
5624 # Is the header compilable?
5625 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
5626 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
5627 cat >conftest.$ac_ext <<_ACEOF
5630 cat confdefs.h >>conftest.$ac_ext
5631 cat >>conftest.$ac_ext <<_ACEOF
5632 /* end confdefs.h. */
5633 $ac_includes_default
5634 #include <$ac_header>
5636 rm -f conftest.$ac_objext
5637 if { (ac_try="$ac_compile"
5639 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5640 *) ac_try_echo=$ac_try;;
5642 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5643 (eval "$ac_compile") 2>conftest.er1
5645 grep -v '^ *+' conftest.er1 >conftest.err
5647 cat conftest.err >&5
5648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5649 (exit $ac_status); } && {
5650 test -z "$ac_c_werror_flag" ||
5651 test ! -s conftest.err
5652 } && test -s conftest.$ac_objext; then
5653 ac_header_compiler=yes
5655 echo "$as_me: failed program was:" >&5
5656 sed 's/^/| /' conftest.$ac_ext >&5
5658 ac_header_compiler=no
5661 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5662 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5663 echo "${ECHO_T}$ac_header_compiler" >&6; }
5665 # Is the header present?
5666 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
5667 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
5668 cat >conftest.$ac_ext <<_ACEOF
5671 cat confdefs.h >>conftest.$ac_ext
5672 cat >>conftest.$ac_ext <<_ACEOF
5673 /* end confdefs.h. */
5674 #include <$ac_header>
5676 if { (ac_try="$ac_cpp conftest.$ac_ext"
5678 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5679 *) ac_try_echo=$ac_try;;
5681 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5682 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5684 grep -v '^ *+' conftest.er1 >conftest.err
5686 cat conftest.err >&5
5687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5688 (exit $ac_status); } >/dev/null && {
5689 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5690 test ! -s conftest.err
5692 ac_header_preproc=yes
5694 echo "$as_me: failed program was:" >&5
5695 sed 's/^/| /' conftest.$ac_ext >&5
5697 ac_header_preproc=no
5700 rm -f conftest.err conftest.$ac_ext
5701 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5702 echo "${ECHO_T}$ac_header_preproc" >&6; }
5704 # So? What about this header?
5705 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5707 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5708 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5709 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5710 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5711 ac_header_preproc=yes
5714 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5715 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5716 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5717 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5718 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5719 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5720 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5721 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5722 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5723 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5724 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5725 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5727 ## ---------------------------------- ##
5728 ## Report this to http://bugs.gw.com/ ##
5729 ## ---------------------------------- ##
5731 ) | sed "s/^/$as_me: WARNING: /" >&2
5734 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5735 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5736 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5737 echo $ECHO_N "(cached) $ECHO_C" >&6
5739 eval "$as_ac_Header=\$ac_header_preproc"
5741 ac_res=`eval echo '${'$as_ac_Header'}'`
5742 { echo "$as_me:$LINENO: result: $ac_res" >&5
5743 echo "${ECHO_T}$ac_res" >&6; }
5746 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5747 cat >>confdefs.h <<_ACEOF
5748 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5765 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
5766 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
5767 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
5768 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
5769 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5770 echo $ECHO_N "(cached) $ECHO_C" >&6
5772 cat >conftest.$ac_ext <<_ACEOF
5775 cat confdefs.h >>conftest.$ac_ext
5776 cat >>conftest.$ac_ext <<_ACEOF
5777 /* end confdefs.h. */
5778 #include <sys/types.h>
5790 rm -f conftest.$ac_objext
5791 if { (ac_try="$ac_compile"
5793 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5794 *) ac_try_echo=$ac_try;;
5796 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5797 (eval "$ac_compile") 2>conftest.er1
5799 grep -v '^ *+' conftest.er1 >conftest.err
5801 cat conftest.err >&5
5802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5803 (exit $ac_status); } && {
5804 test -z "$ac_c_werror_flag" ||
5805 test ! -s conftest.err
5806 } && test -s conftest.$ac_objext; then
5807 eval "$as_ac_Header=yes"
5809 echo "$as_me: failed program was:" >&5
5810 sed 's/^/| /' conftest.$ac_ext >&5
5812 eval "$as_ac_Header=no"
5815 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5817 ac_res=`eval echo '${'$as_ac_Header'}'`
5818 { echo "$as_me:$LINENO: result: $ac_res" >&5
5819 echo "${ECHO_T}$ac_res" >&6; }
5820 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5821 cat >>confdefs.h <<_ACEOF
5822 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
5825 ac_header_dirent=$ac_hdr; break
5829 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
5830 if test $ac_header_dirent = dirent.h; then
5831 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
5832 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
5833 if test "${ac_cv_search_opendir+set}" = set; then
5834 echo $ECHO_N "(cached) $ECHO_C" >&6
5836 ac_func_search_save_LIBS=$LIBS
5837 cat >conftest.$ac_ext <<_ACEOF
5840 cat confdefs.h >>conftest.$ac_ext
5841 cat >>conftest.$ac_ext <<_ACEOF
5842 /* end confdefs.h. */
5844 /* Override any GCC internal prototype to avoid an error.
5845 Use char because int might match the return type of a GCC
5846 builtin and then its argument prototype would still apply. */
5859 for ac_lib in '' dir; do
5860 if test -z "$ac_lib"; then
5861 ac_res="none required"
5864 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5866 rm -f conftest.$ac_objext conftest$ac_exeext
5867 if { (ac_try="$ac_link"
5869 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5870 *) ac_try_echo=$ac_try;;
5872 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5873 (eval "$ac_link") 2>conftest.er1
5875 grep -v '^ *+' conftest.er1 >conftest.err
5877 cat conftest.err >&5
5878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5879 (exit $ac_status); } && {
5880 test -z "$ac_c_werror_flag" ||
5881 test ! -s conftest.err
5882 } && test -s conftest$ac_exeext &&
5883 $as_test_x conftest$ac_exeext; then
5884 ac_cv_search_opendir=$ac_res
5886 echo "$as_me: failed program was:" >&5
5887 sed 's/^/| /' conftest.$ac_ext >&5
5892 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5894 if test "${ac_cv_search_opendir+set}" = set; then
5898 if test "${ac_cv_search_opendir+set}" = set; then
5901 ac_cv_search_opendir=no
5904 LIBS=$ac_func_search_save_LIBS
5906 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
5907 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
5908 ac_res=$ac_cv_search_opendir
5909 if test "$ac_res" != no; then
5910 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
5915 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
5916 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
5917 if test "${ac_cv_search_opendir+set}" = set; then
5918 echo $ECHO_N "(cached) $ECHO_C" >&6
5920 ac_func_search_save_LIBS=$LIBS
5921 cat >conftest.$ac_ext <<_ACEOF
5924 cat confdefs.h >>conftest.$ac_ext
5925 cat >>conftest.$ac_ext <<_ACEOF
5926 /* end confdefs.h. */
5928 /* Override any GCC internal prototype to avoid an error.
5929 Use char because int might match the return type of a GCC
5930 builtin and then its argument prototype would still apply. */
5943 for ac_lib in '' x; do
5944 if test -z "$ac_lib"; then
5945 ac_res="none required"
5948 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
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 ac_cv_search_opendir=$ac_res
5970 echo "$as_me: failed program was:" >&5
5971 sed 's/^/| /' conftest.$ac_ext >&5
5976 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5978 if test "${ac_cv_search_opendir+set}" = set; then
5982 if test "${ac_cv_search_opendir+set}" = set; then
5985 ac_cv_search_opendir=no
5988 LIBS=$ac_func_search_save_LIBS
5990 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
5991 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
5992 ac_res=$ac_cv_search_opendir
5993 if test "$ac_res" != no; then
5994 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
6000 { echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
6001 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
6002 if test "${ac_cv_header_stat_broken+set}" = set; then
6003 echo $ECHO_N "(cached) $ECHO_C" >&6
6005 cat >conftest.$ac_ext <<_ACEOF
6008 cat confdefs.h >>conftest.$ac_ext
6009 cat >>conftest.$ac_ext <<_ACEOF
6010 /* end confdefs.h. */
6011 #include <sys/types.h>
6012 #include <sys/stat.h>
6014 #if defined S_ISBLK && defined S_IFDIR
6015 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
6018 #if defined S_ISBLK && defined S_IFCHR
6019 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
6022 #if defined S_ISLNK && defined S_IFREG
6023 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
6026 #if defined S_ISSOCK && defined S_IFREG
6027 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
6031 rm -f conftest.$ac_objext
6032 if { (ac_try="$ac_compile"
6034 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6035 *) ac_try_echo=$ac_try;;
6037 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6038 (eval "$ac_compile") 2>conftest.er1
6040 grep -v '^ *+' conftest.er1 >conftest.err
6042 cat conftest.err >&5
6043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6044 (exit $ac_status); } && {
6045 test -z "$ac_c_werror_flag" ||
6046 test ! -s conftest.err
6047 } && test -s conftest.$ac_objext; then
6048 ac_cv_header_stat_broken=no
6050 echo "$as_me: failed program was:" >&5
6051 sed 's/^/| /' conftest.$ac_ext >&5
6053 ac_cv_header_stat_broken=yes
6056 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6058 { echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
6059 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
6060 if test $ac_cv_header_stat_broken = yes; then
6062 cat >>confdefs.h <<\_ACEOF
6063 #define STAT_MACROS_BROKEN 1
6068 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6069 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
6070 if test "${ac_cv_header_stdc+set}" = set; then
6071 echo $ECHO_N "(cached) $ECHO_C" >&6
6073 cat >conftest.$ac_ext <<_ACEOF
6076 cat confdefs.h >>conftest.$ac_ext
6077 cat >>conftest.$ac_ext <<_ACEOF
6078 /* end confdefs.h. */
6092 rm -f conftest.$ac_objext
6093 if { (ac_try="$ac_compile"
6095 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6096 *) ac_try_echo=$ac_try;;
6098 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6099 (eval "$ac_compile") 2>conftest.er1
6101 grep -v '^ *+' conftest.er1 >conftest.err
6103 cat conftest.err >&5
6104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6105 (exit $ac_status); } && {
6106 test -z "$ac_c_werror_flag" ||
6107 test ! -s conftest.err
6108 } && test -s conftest.$ac_objext; then
6109 ac_cv_header_stdc=yes
6111 echo "$as_me: failed program was:" >&5
6112 sed 's/^/| /' conftest.$ac_ext >&5
6114 ac_cv_header_stdc=no
6117 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6119 if test $ac_cv_header_stdc = yes; then
6120 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6121 cat >conftest.$ac_ext <<_ACEOF
6124 cat confdefs.h >>conftest.$ac_ext
6125 cat >>conftest.$ac_ext <<_ACEOF
6126 /* end confdefs.h. */
6130 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6131 $EGREP "memchr" >/dev/null 2>&1; then
6134 ac_cv_header_stdc=no
6140 if test $ac_cv_header_stdc = yes; then
6141 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6142 cat >conftest.$ac_ext <<_ACEOF
6145 cat confdefs.h >>conftest.$ac_ext
6146 cat >>conftest.$ac_ext <<_ACEOF
6147 /* end confdefs.h. */
6151 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6152 $EGREP "free" >/dev/null 2>&1; then
6155 ac_cv_header_stdc=no
6161 if test $ac_cv_header_stdc = yes; then
6162 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6163 if test "$cross_compiling" = yes; then
6166 cat >conftest.$ac_ext <<_ACEOF
6169 cat confdefs.h >>conftest.$ac_ext
6170 cat >>conftest.$ac_ext <<_ACEOF
6171 /* end confdefs.h. */
6174 #if ((' ' & 0x0FF) == 0x020)
6175 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6176 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6178 # define ISLOWER(c) \
6179 (('a' <= (c) && (c) <= 'i') \
6180 || ('j' <= (c) && (c) <= 'r') \
6181 || ('s' <= (c) && (c) <= 'z'))
6182 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6185 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6190 for (i = 0; i < 256; i++)
6191 if (XOR (islower (i), ISLOWER (i))
6192 || toupper (i) != TOUPPER (i))
6197 rm -f conftest$ac_exeext
6198 if { (ac_try="$ac_link"
6200 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6201 *) ac_try_echo=$ac_try;;
6203 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6204 (eval "$ac_link") 2>&5
6206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6207 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6208 { (case "(($ac_try" in
6209 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6210 *) ac_try_echo=$ac_try;;
6212 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6213 (eval "$ac_try") 2>&5
6215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6216 (exit $ac_status); }; }; then
6219 echo "$as_me: program exited with status $ac_status" >&5
6220 echo "$as_me: failed program was:" >&5
6221 sed 's/^/| /' conftest.$ac_ext >&5
6224 ac_cv_header_stdc=no
6226 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6232 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6233 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
6234 if test $ac_cv_header_stdc = yes; then
6236 cat >>confdefs.h <<\_ACEOF
6237 #define STDC_HEADERS 1
6243 { echo "$as_me:$LINENO: checking for long long" >&5
6244 echo $ECHO_N "checking for long long... $ECHO_C" >&6; }
6245 if test "${ac_cv_type_long_long+set}" = set; then
6246 echo $ECHO_N "(cached) $ECHO_C" >&6
6248 cat >conftest.$ac_ext <<_ACEOF
6251 cat confdefs.h >>conftest.$ac_ext
6252 cat >>conftest.$ac_ext <<_ACEOF
6253 /* end confdefs.h. */
6254 $ac_includes_default
6255 typedef long long ac__type_new_;
6259 if ((ac__type_new_ *) 0)
6261 if (sizeof (ac__type_new_))
6267 rm -f conftest.$ac_objext
6268 if { (ac_try="$ac_compile"
6270 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6271 *) ac_try_echo=$ac_try;;
6273 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6274 (eval "$ac_compile") 2>conftest.er1
6276 grep -v '^ *+' conftest.er1 >conftest.err
6278 cat conftest.err >&5
6279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6280 (exit $ac_status); } && {
6281 test -z "$ac_c_werror_flag" ||
6282 test ! -s conftest.err
6283 } && test -s conftest.$ac_objext; then
6284 ac_cv_type_long_long=yes
6286 echo "$as_me: failed program was:" >&5
6287 sed 's/^/| /' conftest.$ac_ext >&5
6289 ac_cv_type_long_long=no
6292 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6294 { echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
6295 echo "${ECHO_T}$ac_cv_type_long_long" >&6; }
6296 if test $ac_cv_type_long_long = yes; then
6298 cat >>confdefs.h <<_ACEOF
6299 #define HAVE_LONG_LONG 1
6305 { echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
6306 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6; }
6307 if test "${ac_cv_type_uid_t+set}" = set; then
6308 echo $ECHO_N "(cached) $ECHO_C" >&6
6310 cat >conftest.$ac_ext <<_ACEOF
6313 cat confdefs.h >>conftest.$ac_ext
6314 cat >>conftest.$ac_ext <<_ACEOF
6315 /* end confdefs.h. */
6316 #include <sys/types.h>
6319 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6320 $EGREP "uid_t" >/dev/null 2>&1; then
6321 ac_cv_type_uid_t=yes
6328 { echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
6329 echo "${ECHO_T}$ac_cv_type_uid_t" >&6; }
6330 if test $ac_cv_type_uid_t = no; then
6332 cat >>confdefs.h <<\_ACEOF
6337 cat >>confdefs.h <<\_ACEOF
6343 { echo "$as_me:$LINENO: checking type of array argument to getgroups" >&5
6344 echo $ECHO_N "checking type of array argument to getgroups... $ECHO_C" >&6; }
6345 if test "${ac_cv_type_getgroups+set}" = set; then
6346 echo $ECHO_N "(cached) $ECHO_C" >&6
6348 if test "$cross_compiling" = yes; then
6349 ac_cv_type_getgroups=cross
6351 cat >conftest.$ac_ext <<_ACEOF
6354 cat confdefs.h >>conftest.$ac_ext
6355 cat >>conftest.$ac_ext <<_ACEOF
6356 /* end confdefs.h. */
6357 /* Thanks to Mike Rendell for this test. */
6358 $ac_includes_default
6361 #define MAX(x, y) ((x) > (y) ? (x) : (y))
6368 union { gid_t gval; long int lval; } val;
6371 for (i = 0; i < NGID; i++)
6372 gidset[i] = val.gval;
6373 n = getgroups (sizeof (gidset) / MAX (sizeof (int), sizeof (gid_t)) - 1,
6375 /* Exit non-zero if getgroups seems to require an array of ints. This
6376 happens when gid_t is short int but getgroups modifies an array
6378 return n > 0 && gidset[n] != val.gval;
6381 rm -f conftest$ac_exeext
6382 if { (ac_try="$ac_link"
6384 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6385 *) ac_try_echo=$ac_try;;
6387 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6388 (eval "$ac_link") 2>&5
6390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6391 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6392 { (case "(($ac_try" in
6393 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6394 *) ac_try_echo=$ac_try;;
6396 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6397 (eval "$ac_try") 2>&5
6399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6400 (exit $ac_status); }; }; then
6401 ac_cv_type_getgroups=gid_t
6403 echo "$as_me: program exited with status $ac_status" >&5
6404 echo "$as_me: failed program was:" >&5
6405 sed 's/^/| /' conftest.$ac_ext >&5
6408 ac_cv_type_getgroups=int
6410 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6414 if test $ac_cv_type_getgroups = cross; then
6415 cat >conftest.$ac_ext <<_ACEOF
6418 cat confdefs.h >>conftest.$ac_ext
6419 cat >>conftest.$ac_ext <<_ACEOF
6420 /* end confdefs.h. */
6424 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6425 $EGREP "getgroups.*int.*gid_t" >/dev/null 2>&1; then
6426 ac_cv_type_getgroups=gid_t
6428 ac_cv_type_getgroups=int
6434 { echo "$as_me:$LINENO: result: $ac_cv_type_getgroups" >&5
6435 echo "${ECHO_T}$ac_cv_type_getgroups" >&6; }
6437 cat >>confdefs.h <<_ACEOF
6438 #define GETGROUPS_T $ac_cv_type_getgroups
6442 { echo "$as_me:$LINENO: checking for mode_t" >&5
6443 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6; }
6444 if test "${ac_cv_type_mode_t+set}" = set; then
6445 echo $ECHO_N "(cached) $ECHO_C" >&6
6447 cat >conftest.$ac_ext <<_ACEOF
6450 cat confdefs.h >>conftest.$ac_ext
6451 cat >>conftest.$ac_ext <<_ACEOF
6452 /* end confdefs.h. */
6453 $ac_includes_default
6454 typedef mode_t ac__type_new_;
6458 if ((ac__type_new_ *) 0)
6460 if (sizeof (ac__type_new_))
6466 rm -f conftest.$ac_objext
6467 if { (ac_try="$ac_compile"
6469 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6470 *) ac_try_echo=$ac_try;;
6472 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6473 (eval "$ac_compile") 2>conftest.er1
6475 grep -v '^ *+' conftest.er1 >conftest.err
6477 cat conftest.err >&5
6478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6479 (exit $ac_status); } && {
6480 test -z "$ac_c_werror_flag" ||
6481 test ! -s conftest.err
6482 } && test -s conftest.$ac_objext; then
6483 ac_cv_type_mode_t=yes
6485 echo "$as_me: failed program was:" >&5
6486 sed 's/^/| /' conftest.$ac_ext >&5
6488 ac_cv_type_mode_t=no
6491 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6493 { echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
6494 echo "${ECHO_T}$ac_cv_type_mode_t" >&6; }
6495 if test $ac_cv_type_mode_t = yes; then
6499 cat >>confdefs.h <<_ACEOF
6505 { echo "$as_me:$LINENO: checking for size_t" >&5
6506 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
6507 if test "${ac_cv_type_size_t+set}" = set; then
6508 echo $ECHO_N "(cached) $ECHO_C" >&6
6510 cat >conftest.$ac_ext <<_ACEOF
6513 cat confdefs.h >>conftest.$ac_ext
6514 cat >>conftest.$ac_ext <<_ACEOF
6515 /* end confdefs.h. */
6516 $ac_includes_default
6517 typedef size_t ac__type_new_;
6521 if ((ac__type_new_ *) 0)
6523 if (sizeof (ac__type_new_))
6529 rm -f conftest.$ac_objext
6530 if { (ac_try="$ac_compile"
6532 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6533 *) ac_try_echo=$ac_try;;
6535 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6536 (eval "$ac_compile") 2>conftest.er1
6538 grep -v '^ *+' conftest.er1 >conftest.err
6540 cat conftest.err >&5
6541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6542 (exit $ac_status); } && {
6543 test -z "$ac_c_werror_flag" ||
6544 test ! -s conftest.err
6545 } && test -s conftest.$ac_objext; then
6546 ac_cv_type_size_t=yes
6548 echo "$as_me: failed program was:" >&5
6549 sed 's/^/| /' conftest.$ac_ext >&5
6551 ac_cv_type_size_t=no
6554 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6556 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
6557 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
6558 if test $ac_cv_type_size_t = yes; then
6562 cat >>confdefs.h <<_ACEOF
6563 #define size_t unsigned int
6568 { echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
6569 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6; }
6570 if test "${ac_cv_type_uid_t+set}" = set; then
6571 echo $ECHO_N "(cached) $ECHO_C" >&6
6573 cat >conftest.$ac_ext <<_ACEOF
6576 cat confdefs.h >>conftest.$ac_ext
6577 cat >>conftest.$ac_ext <<_ACEOF
6578 /* end confdefs.h. */
6579 #include <sys/types.h>
6582 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6583 $EGREP "uid_t" >/dev/null 2>&1; then
6584 ac_cv_type_uid_t=yes
6591 { echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
6592 echo "${ECHO_T}$ac_cv_type_uid_t" >&6; }
6593 if test $ac_cv_type_uid_t = no; then
6595 cat >>confdefs.h <<\_ACEOF
6600 cat >>confdefs.h <<\_ACEOF
6609 { echo "$as_me:$LINENO: checking for ssize_t" >&5
6610 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6; }
6611 if test "${ac_cv_type_ssize_t+set}" = set; then
6612 echo $ECHO_N "(cached) $ECHO_C" >&6
6614 cat >conftest.$ac_ext <<_ACEOF
6617 cat confdefs.h >>conftest.$ac_ext
6618 cat >>conftest.$ac_ext <<_ACEOF
6619 /* end confdefs.h. */
6621 #include <sys/types.h>
6624 typedef ssize_t ac__type_new_;
6628 if ((ac__type_new_ *) 0)
6630 if (sizeof (ac__type_new_))
6636 rm -f conftest.$ac_objext
6637 if { (ac_try="$ac_compile"
6639 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6640 *) ac_try_echo=$ac_try;;
6642 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6643 (eval "$ac_compile") 2>conftest.er1
6645 grep -v '^ *+' conftest.er1 >conftest.err
6647 cat conftest.err >&5
6648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6649 (exit $ac_status); } && {
6650 test -z "$ac_c_werror_flag" ||
6651 test ! -s conftest.err
6652 } && test -s conftest.$ac_objext; then
6653 ac_cv_type_ssize_t=yes
6655 echo "$as_me: failed program was:" >&5
6656 sed 's/^/| /' conftest.$ac_ext >&5
6658 ac_cv_type_ssize_t=no
6661 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6663 { echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
6664 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6; }
6665 if test $ac_cv_type_ssize_t = yes; then
6669 cat >>confdefs.h <<\_ACEOF
6679 { echo "$as_me:$LINENO: checking for socklen_t" >&5
6680 echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6; }
6681 if test "${ac_cv_type_socklen_t+set}" = set; then
6682 echo $ECHO_N "(cached) $ECHO_C" >&6
6684 cat >conftest.$ac_ext <<_ACEOF
6687 cat confdefs.h >>conftest.$ac_ext
6688 cat >>conftest.$ac_ext <<_ACEOF
6689 /* end confdefs.h. */
6691 #include <sys/types.h>
6692 #include <sys/socket.h>
6695 typedef socklen_t ac__type_new_;
6699 if ((ac__type_new_ *) 0)
6701 if (sizeof (ac__type_new_))
6707 rm -f conftest.$ac_objext
6708 if { (ac_try="$ac_compile"
6710 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6711 *) ac_try_echo=$ac_try;;
6713 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6714 (eval "$ac_compile") 2>conftest.er1
6716 grep -v '^ *+' conftest.er1 >conftest.err
6718 cat conftest.err >&5
6719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6720 (exit $ac_status); } && {
6721 test -z "$ac_c_werror_flag" ||
6722 test ! -s conftest.err
6723 } && test -s conftest.$ac_objext; then
6724 ac_cv_type_socklen_t=yes
6726 echo "$as_me: failed program was:" >&5
6727 sed 's/^/| /' conftest.$ac_ext >&5
6729 ac_cv_type_socklen_t=no
6732 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6734 { echo "$as_me:$LINENO: result: $ac_cv_type_socklen_t" >&5
6735 echo "${ECHO_T}$ac_cv_type_socklen_t" >&6; }
6736 if test $ac_cv_type_socklen_t = yes; then
6740 cat >>confdefs.h <<\_ACEOF
6741 #define socklen_t int
6749 { echo "$as_me:$LINENO: checking for struct dirent.d_ino" >&5
6750 echo $ECHO_N "checking for struct dirent.d_ino... $ECHO_C" >&6; }
6751 if test "${ac_cv_member_struct_dirent_d_ino+set}" = set; then
6752 echo $ECHO_N "(cached) $ECHO_C" >&6
6754 cat >conftest.$ac_ext <<_ACEOF
6757 cat confdefs.h >>conftest.$ac_ext
6758 cat >>conftest.$ac_ext <<_ACEOF
6759 /* end confdefs.h. */
6760 #ifdef HAVE_DIRENT_H
6761 # include <dirent.h>
6766 # include <sys/dir.h>
6768 # define dirent direct
6774 static struct dirent ac_aggr;
6781 rm -f conftest.$ac_objext
6782 if { (ac_try="$ac_compile"
6784 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6785 *) ac_try_echo=$ac_try;;
6787 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6788 (eval "$ac_compile") 2>conftest.er1
6790 grep -v '^ *+' conftest.er1 >conftest.err
6792 cat conftest.err >&5
6793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6794 (exit $ac_status); } && {
6795 test -z "$ac_c_werror_flag" ||
6796 test ! -s conftest.err
6797 } && test -s conftest.$ac_objext; then
6798 ac_cv_member_struct_dirent_d_ino=yes
6800 echo "$as_me: failed program was:" >&5
6801 sed 's/^/| /' conftest.$ac_ext >&5
6803 cat >conftest.$ac_ext <<_ACEOF
6806 cat confdefs.h >>conftest.$ac_ext
6807 cat >>conftest.$ac_ext <<_ACEOF
6808 /* end confdefs.h. */
6809 #ifdef HAVE_DIRENT_H
6810 # include <dirent.h>
6815 # include <sys/dir.h>
6817 # define dirent direct
6823 static struct dirent ac_aggr;
6824 if (sizeof ac_aggr.d_ino)
6830 rm -f conftest.$ac_objext
6831 if { (ac_try="$ac_compile"
6833 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6834 *) ac_try_echo=$ac_try;;
6836 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6837 (eval "$ac_compile") 2>conftest.er1
6839 grep -v '^ *+' conftest.er1 >conftest.err
6841 cat conftest.err >&5
6842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6843 (exit $ac_status); } && {
6844 test -z "$ac_c_werror_flag" ||
6845 test ! -s conftest.err
6846 } && test -s conftest.$ac_objext; then
6847 ac_cv_member_struct_dirent_d_ino=yes
6849 echo "$as_me: failed program was:" >&5
6850 sed 's/^/| /' conftest.$ac_ext >&5
6852 ac_cv_member_struct_dirent_d_ino=no
6855 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6858 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6860 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_dirent_d_ino" >&5
6861 echo "${ECHO_T}$ac_cv_member_struct_dirent_d_ino" >&6; }
6862 if test $ac_cv_member_struct_dirent_d_ino = yes; then
6864 cat >>confdefs.h <<_ACEOF
6865 #define HAVE_STRUCT_DIRENT_D_INO 1
6871 { echo "$as_me:$LINENO: checking for struct utmp.ut_host" >&5
6872 echo $ECHO_N "checking for struct utmp.ut_host... $ECHO_C" >&6; }
6873 if test "${ac_cv_member_struct_utmp_ut_host+set}" = set; then
6874 echo $ECHO_N "(cached) $ECHO_C" >&6
6876 cat >conftest.$ac_ext <<_ACEOF
6879 cat confdefs.h >>conftest.$ac_ext
6880 cat >>conftest.$ac_ext <<_ACEOF
6881 /* end confdefs.h. */
6882 #include <sys/types.h>
6886 #elif defined HAVE_UTMP_H
6893 static struct utmp ac_aggr;
6894 if (ac_aggr.ut_host)
6900 rm -f conftest.$ac_objext
6901 if { (ac_try="$ac_compile"
6903 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6904 *) ac_try_echo=$ac_try;;
6906 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6907 (eval "$ac_compile") 2>conftest.er1
6909 grep -v '^ *+' conftest.er1 >conftest.err
6911 cat conftest.err >&5
6912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6913 (exit $ac_status); } && {
6914 test -z "$ac_c_werror_flag" ||
6915 test ! -s conftest.err
6916 } && test -s conftest.$ac_objext; then
6917 ac_cv_member_struct_utmp_ut_host=yes
6919 echo "$as_me: failed program was:" >&5
6920 sed 's/^/| /' conftest.$ac_ext >&5
6922 cat >conftest.$ac_ext <<_ACEOF
6925 cat confdefs.h >>conftest.$ac_ext
6926 cat >>conftest.$ac_ext <<_ACEOF
6927 /* end confdefs.h. */
6928 #include <sys/types.h>
6932 #elif defined HAVE_UTMP_H
6939 static struct utmp ac_aggr;
6940 if (sizeof ac_aggr.ut_host)
6946 rm -f conftest.$ac_objext
6947 if { (ac_try="$ac_compile"
6949 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6950 *) ac_try_echo=$ac_try;;
6952 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6953 (eval "$ac_compile") 2>conftest.er1
6955 grep -v '^ *+' conftest.er1 >conftest.err
6957 cat conftest.err >&5
6958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6959 (exit $ac_status); } && {
6960 test -z "$ac_c_werror_flag" ||
6961 test ! -s conftest.err
6962 } && test -s conftest.$ac_objext; then
6963 ac_cv_member_struct_utmp_ut_host=yes
6965 echo "$as_me: failed program was:" >&5
6966 sed 's/^/| /' conftest.$ac_ext >&5
6968 ac_cv_member_struct_utmp_ut_host=no
6971 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6974 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6976 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_utmp_ut_host" >&5
6977 echo "${ECHO_T}$ac_cv_member_struct_utmp_ut_host" >&6; }
6978 if test $ac_cv_member_struct_utmp_ut_host = yes; then
6980 cat >>confdefs.h <<_ACEOF
6981 #define HAVE_STRUCT_UTMP_UT_HOST 1
6986 { echo "$as_me:$LINENO: checking for struct utmp.ut_user" >&5
6987 echo $ECHO_N "checking for struct utmp.ut_user... $ECHO_C" >&6; }
6988 if test "${ac_cv_member_struct_utmp_ut_user+set}" = set; then
6989 echo $ECHO_N "(cached) $ECHO_C" >&6
6991 cat >conftest.$ac_ext <<_ACEOF
6994 cat confdefs.h >>conftest.$ac_ext
6995 cat >>conftest.$ac_ext <<_ACEOF
6996 /* end confdefs.h. */
6997 #include <sys/types.h>
7001 #elif defined HAVE_UTMP_H
7008 static struct utmp ac_aggr;
7009 if (ac_aggr.ut_user)
7015 rm -f conftest.$ac_objext
7016 if { (ac_try="$ac_compile"
7018 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7019 *) ac_try_echo=$ac_try;;
7021 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7022 (eval "$ac_compile") 2>conftest.er1
7024 grep -v '^ *+' conftest.er1 >conftest.err
7026 cat conftest.err >&5
7027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7028 (exit $ac_status); } && {
7029 test -z "$ac_c_werror_flag" ||
7030 test ! -s conftest.err
7031 } && test -s conftest.$ac_objext; then
7032 ac_cv_member_struct_utmp_ut_user=yes
7034 echo "$as_me: failed program was:" >&5
7035 sed 's/^/| /' conftest.$ac_ext >&5
7037 cat >conftest.$ac_ext <<_ACEOF
7040 cat confdefs.h >>conftest.$ac_ext
7041 cat >>conftest.$ac_ext <<_ACEOF
7042 /* end confdefs.h. */
7043 #include <sys/types.h>
7047 #elif defined HAVE_UTMP_H
7054 static struct utmp ac_aggr;
7055 if (sizeof ac_aggr.ut_user)
7061 rm -f conftest.$ac_objext
7062 if { (ac_try="$ac_compile"
7064 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7065 *) ac_try_echo=$ac_try;;
7067 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7068 (eval "$ac_compile") 2>conftest.er1
7070 grep -v '^ *+' conftest.er1 >conftest.err
7072 cat conftest.err >&5
7073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7074 (exit $ac_status); } && {
7075 test -z "$ac_c_werror_flag" ||
7076 test ! -s conftest.err
7077 } && test -s conftest.$ac_objext; then
7078 ac_cv_member_struct_utmp_ut_user=yes
7080 echo "$as_me: failed program was:" >&5
7081 sed 's/^/| /' conftest.$ac_ext >&5
7083 ac_cv_member_struct_utmp_ut_user=no
7086 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7089 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7091 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_utmp_ut_user" >&5
7092 echo "${ECHO_T}$ac_cv_member_struct_utmp_ut_user" >&6; }
7093 if test $ac_cv_member_struct_utmp_ut_user = yes; then
7095 cat >>confdefs.h <<_ACEOF
7096 #define HAVE_STRUCT_UTMP_UT_USER 1
7101 { echo "$as_me:$LINENO: checking for struct utmp.ut_tv" >&5
7102 echo $ECHO_N "checking for struct utmp.ut_tv... $ECHO_C" >&6; }
7103 if test "${ac_cv_member_struct_utmp_ut_tv+set}" = set; then
7104 echo $ECHO_N "(cached) $ECHO_C" >&6
7106 cat >conftest.$ac_ext <<_ACEOF
7109 cat confdefs.h >>conftest.$ac_ext
7110 cat >>conftest.$ac_ext <<_ACEOF
7111 /* end confdefs.h. */
7112 #include <sys/types.h>
7116 #elif defined HAVE_UTMP_H
7123 static struct utmp ac_aggr;
7130 rm -f conftest.$ac_objext
7131 if { (ac_try="$ac_compile"
7133 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7134 *) ac_try_echo=$ac_try;;
7136 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7137 (eval "$ac_compile") 2>conftest.er1
7139 grep -v '^ *+' conftest.er1 >conftest.err
7141 cat conftest.err >&5
7142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7143 (exit $ac_status); } && {
7144 test -z "$ac_c_werror_flag" ||
7145 test ! -s conftest.err
7146 } && test -s conftest.$ac_objext; then
7147 ac_cv_member_struct_utmp_ut_tv=yes
7149 echo "$as_me: failed program was:" >&5
7150 sed 's/^/| /' conftest.$ac_ext >&5
7152 cat >conftest.$ac_ext <<_ACEOF
7155 cat confdefs.h >>conftest.$ac_ext
7156 cat >>conftest.$ac_ext <<_ACEOF
7157 /* end confdefs.h. */
7158 #include <sys/types.h>
7162 #elif defined HAVE_UTMP_H
7169 static struct utmp ac_aggr;
7170 if (sizeof ac_aggr.ut_tv)
7176 rm -f conftest.$ac_objext
7177 if { (ac_try="$ac_compile"
7179 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7180 *) ac_try_echo=$ac_try;;
7182 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7183 (eval "$ac_compile") 2>conftest.er1
7185 grep -v '^ *+' conftest.er1 >conftest.err
7187 cat conftest.err >&5
7188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7189 (exit $ac_status); } && {
7190 test -z "$ac_c_werror_flag" ||
7191 test ! -s conftest.err
7192 } && test -s conftest.$ac_objext; then
7193 ac_cv_member_struct_utmp_ut_tv=yes
7195 echo "$as_me: failed program was:" >&5
7196 sed 's/^/| /' conftest.$ac_ext >&5
7198 ac_cv_member_struct_utmp_ut_tv=no
7201 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7204 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7206 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_utmp_ut_tv" >&5
7207 echo "${ECHO_T}$ac_cv_member_struct_utmp_ut_tv" >&6; }
7208 if test $ac_cv_member_struct_utmp_ut_tv = yes; then
7210 cat >>confdefs.h <<_ACEOF
7211 #define HAVE_STRUCT_UTMP_UT_TV 1
7216 { echo "$as_me:$LINENO: checking for struct utmp.ut_xtime" >&5
7217 echo $ECHO_N "checking for struct utmp.ut_xtime... $ECHO_C" >&6; }
7218 if test "${ac_cv_member_struct_utmp_ut_xtime+set}" = set; then
7219 echo $ECHO_N "(cached) $ECHO_C" >&6
7221 cat >conftest.$ac_ext <<_ACEOF
7224 cat confdefs.h >>conftest.$ac_ext
7225 cat >>conftest.$ac_ext <<_ACEOF
7226 /* end confdefs.h. */
7227 #include <sys/types.h>
7231 #elif defined HAVE_UTMP_H
7238 static struct utmp ac_aggr;
7239 if (ac_aggr.ut_xtime)
7245 rm -f conftest.$ac_objext
7246 if { (ac_try="$ac_compile"
7248 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7249 *) ac_try_echo=$ac_try;;
7251 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7252 (eval "$ac_compile") 2>conftest.er1
7254 grep -v '^ *+' conftest.er1 >conftest.err
7256 cat conftest.err >&5
7257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7258 (exit $ac_status); } && {
7259 test -z "$ac_c_werror_flag" ||
7260 test ! -s conftest.err
7261 } && test -s conftest.$ac_objext; then
7262 ac_cv_member_struct_utmp_ut_xtime=yes
7264 echo "$as_me: failed program was:" >&5
7265 sed 's/^/| /' conftest.$ac_ext >&5
7267 cat >conftest.$ac_ext <<_ACEOF
7270 cat confdefs.h >>conftest.$ac_ext
7271 cat >>conftest.$ac_ext <<_ACEOF
7272 /* end confdefs.h. */
7273 #include <sys/types.h>
7277 #elif defined HAVE_UTMP_H
7284 static struct utmp ac_aggr;
7285 if (sizeof ac_aggr.ut_xtime)
7291 rm -f conftest.$ac_objext
7292 if { (ac_try="$ac_compile"
7294 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7295 *) ac_try_echo=$ac_try;;
7297 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7298 (eval "$ac_compile") 2>conftest.er1
7300 grep -v '^ *+' conftest.er1 >conftest.err
7302 cat conftest.err >&5
7303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7304 (exit $ac_status); } && {
7305 test -z "$ac_c_werror_flag" ||
7306 test ! -s conftest.err
7307 } && test -s conftest.$ac_objext; then
7308 ac_cv_member_struct_utmp_ut_xtime=yes
7310 echo "$as_me: failed program was:" >&5
7311 sed 's/^/| /' conftest.$ac_ext >&5
7313 ac_cv_member_struct_utmp_ut_xtime=no
7316 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7319 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7321 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_utmp_ut_xtime" >&5
7322 echo "${ECHO_T}$ac_cv_member_struct_utmp_ut_xtime" >&6; }
7323 if test $ac_cv_member_struct_utmp_ut_xtime = yes; then
7325 cat >>confdefs.h <<_ACEOF
7326 #define HAVE_STRUCT_UTMP_UT_XTIME 1
7332 { echo "$as_me:$LINENO: checking for struct sockaddr_storage.ss_family" >&5
7333 echo $ECHO_N "checking for struct sockaddr_storage.ss_family... $ECHO_C" >&6; }
7334 if test "${ac_cv_member_struct_sockaddr_storage_ss_family+set}" = set; then
7335 echo $ECHO_N "(cached) $ECHO_C" >&6
7337 cat >conftest.$ac_ext <<_ACEOF
7340 cat confdefs.h >>conftest.$ac_ext
7341 cat >>conftest.$ac_ext <<_ACEOF
7342 /* end confdefs.h. */
7343 #include <sys/types.h>
7344 #include <sys/socket.h>
7349 static struct sockaddr_storage ac_aggr;
7350 if (ac_aggr.ss_family)
7356 rm -f conftest.$ac_objext
7357 if { (ac_try="$ac_compile"
7359 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7360 *) ac_try_echo=$ac_try;;
7362 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7363 (eval "$ac_compile") 2>conftest.er1
7365 grep -v '^ *+' conftest.er1 >conftest.err
7367 cat conftest.err >&5
7368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7369 (exit $ac_status); } && {
7370 test -z "$ac_c_werror_flag" ||
7371 test ! -s conftest.err
7372 } && test -s conftest.$ac_objext; then
7373 ac_cv_member_struct_sockaddr_storage_ss_family=yes
7375 echo "$as_me: failed program was:" >&5
7376 sed 's/^/| /' conftest.$ac_ext >&5
7378 cat >conftest.$ac_ext <<_ACEOF
7381 cat confdefs.h >>conftest.$ac_ext
7382 cat >>conftest.$ac_ext <<_ACEOF
7383 /* end confdefs.h. */
7384 #include <sys/types.h>
7385 #include <sys/socket.h>
7390 static struct sockaddr_storage ac_aggr;
7391 if (sizeof ac_aggr.ss_family)
7397 rm -f conftest.$ac_objext
7398 if { (ac_try="$ac_compile"
7400 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7401 *) ac_try_echo=$ac_try;;
7403 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7404 (eval "$ac_compile") 2>conftest.er1
7406 grep -v '^ *+' conftest.er1 >conftest.err
7408 cat conftest.err >&5
7409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7410 (exit $ac_status); } && {
7411 test -z "$ac_c_werror_flag" ||
7412 test ! -s conftest.err
7413 } && test -s conftest.$ac_objext; then
7414 ac_cv_member_struct_sockaddr_storage_ss_family=yes
7416 echo "$as_me: failed program was:" >&5
7417 sed 's/^/| /' conftest.$ac_ext >&5
7419 ac_cv_member_struct_sockaddr_storage_ss_family=no
7422 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7425 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7427 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_storage_ss_family" >&5
7428 echo "${ECHO_T}$ac_cv_member_struct_sockaddr_storage_ss_family" >&6; }
7429 if test $ac_cv_member_struct_sockaddr_storage_ss_family = yes; then
7431 cat >>confdefs.h <<_ACEOF
7432 #define HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY 1
7439 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
7440 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
7441 if test "${ac_cv_c_const+set}" = set; then
7442 echo $ECHO_N "(cached) $ECHO_C" >&6
7444 cat >conftest.$ac_ext <<_ACEOF
7447 cat confdefs.h >>conftest.$ac_ext
7448 cat >>conftest.$ac_ext <<_ACEOF
7449 /* end confdefs.h. */
7454 /* FIXME: Include the comments suggested by Paul. */
7456 /* Ultrix mips cc rejects this. */
7457 typedef int charset[2];
7459 /* SunOS 4.1.1 cc rejects this. */
7460 char const *const *pcpcc;
7462 /* NEC SVR4.0.2 mips cc rejects this. */
7463 struct point {int x, y;};
7464 static struct point const zero = {0,0};
7465 /* AIX XL C 1.02.0.0 rejects this.
7466 It does not let you subtract one const X* pointer from another in
7467 an arm of an if-expression whose if-part is not a constant
7469 const char *g = "string";
7470 pcpcc = &g + (g ? g-g : 0);
7471 /* HPUX 7.0 cc rejects these. */
7473 ppc = (char**) pcpcc;
7474 pcpcc = (char const *const *) ppc;
7475 { /* SCO 3.2v4 cc rejects this. */
7477 char const *s = 0 ? (char *) 0 : (char const *) 0;
7482 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
7484 const int *foo = &x[0];
7487 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
7488 typedef const int *iptr;
7492 { /* AIX XL C 1.02.0.0 rejects this saying
7493 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
7494 struct s { int j; const int *ap[3]; };
7495 struct s *b; b->j = 5;
7497 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
7501 return !cs[0] && !zero.x;
7508 rm -f conftest.$ac_objext
7509 if { (ac_try="$ac_compile"
7511 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7512 *) ac_try_echo=$ac_try;;
7514 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7515 (eval "$ac_compile") 2>conftest.er1
7517 grep -v '^ *+' conftest.er1 >conftest.err
7519 cat conftest.err >&5
7520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7521 (exit $ac_status); } && {
7522 test -z "$ac_c_werror_flag" ||
7523 test ! -s conftest.err
7524 } && test -s conftest.$ac_objext; then
7527 echo "$as_me: failed program was:" >&5
7528 sed 's/^/| /' conftest.$ac_ext >&5
7533 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7535 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
7536 echo "${ECHO_T}$ac_cv_c_const" >&6; }
7537 if test $ac_cv_c_const = no; then
7539 cat >>confdefs.h <<\_ACEOF
7545 { echo "$as_me:$LINENO: checking for working volatile" >&5
7546 echo $ECHO_N "checking for working volatile... $ECHO_C" >&6; }
7547 if test "${ac_cv_c_volatile+set}" = set; then
7548 echo $ECHO_N "(cached) $ECHO_C" >&6
7550 cat >conftest.$ac_ext <<_ACEOF
7553 cat confdefs.h >>conftest.$ac_ext
7554 cat >>conftest.$ac_ext <<_ACEOF
7555 /* end confdefs.h. */
7562 int * volatile y = (int *) 0;
7568 rm -f conftest.$ac_objext
7569 if { (ac_try="$ac_compile"
7571 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7572 *) ac_try_echo=$ac_try;;
7574 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7575 (eval "$ac_compile") 2>conftest.er1
7577 grep -v '^ *+' conftest.er1 >conftest.err
7579 cat conftest.err >&5
7580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7581 (exit $ac_status); } && {
7582 test -z "$ac_c_werror_flag" ||
7583 test ! -s conftest.err
7584 } && test -s conftest.$ac_objext; then
7585 ac_cv_c_volatile=yes
7587 echo "$as_me: failed program was:" >&5
7588 sed 's/^/| /' conftest.$ac_ext >&5
7593 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7595 { echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
7596 echo "${ECHO_T}$ac_cv_c_volatile" >&6; }
7597 if test $ac_cv_c_volatile = no; then
7599 cat >>confdefs.h <<\_ACEOF
7606 { echo "$as_me:$LINENO: checking whether crypt is declared" >&5
7607 echo $ECHO_N "checking whether crypt is declared... $ECHO_C" >&6; }
7608 if test "${ac_cv_have_decl_crypt+set}" = set; then
7609 echo $ECHO_N "(cached) $ECHO_C" >&6
7611 cat >conftest.$ac_ext <<_ACEOF
7614 cat confdefs.h >>conftest.$ac_ext
7615 cat >>conftest.$ac_ext <<_ACEOF
7616 /* end confdefs.h. */
7617 #include "config_p.h"
7618 $ac_includes_default
7635 rm -f conftest.$ac_objext
7636 if { (ac_try="$ac_compile"
7638 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7639 *) ac_try_echo=$ac_try;;
7641 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7642 (eval "$ac_compile") 2>conftest.er1
7644 grep -v '^ *+' conftest.er1 >conftest.err
7646 cat conftest.err >&5
7647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7648 (exit $ac_status); } && {
7649 test -z "$ac_c_werror_flag" ||
7650 test ! -s conftest.err
7651 } && test -s conftest.$ac_objext; then
7652 ac_cv_have_decl_crypt=yes
7654 echo "$as_me: failed program was:" >&5
7655 sed 's/^/| /' conftest.$ac_ext >&5
7657 ac_cv_have_decl_crypt=no
7660 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7662 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_crypt" >&5
7663 echo "${ECHO_T}$ac_cv_have_decl_crypt" >&6; }
7664 if test $ac_cv_have_decl_crypt = yes; then
7666 cat >>confdefs.h <<_ACEOF
7667 #define HAVE_DECL_CRYPT 1
7672 cat >>confdefs.h <<_ACEOF
7673 #define HAVE_DECL_CRYPT 0
7678 { echo "$as_me:$LINENO: checking whether environ is declared" >&5
7679 echo $ECHO_N "checking whether environ is declared... $ECHO_C" >&6; }
7680 if test "${ac_cv_have_decl_environ+set}" = set; then
7681 echo $ECHO_N "(cached) $ECHO_C" >&6
7683 cat >conftest.$ac_ext <<_ACEOF
7686 cat confdefs.h >>conftest.$ac_ext
7687 cat >>conftest.$ac_ext <<_ACEOF
7688 /* end confdefs.h. */
7689 #include "config_p.h"
7690 $ac_includes_default
7707 rm -f conftest.$ac_objext
7708 if { (ac_try="$ac_compile"
7710 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7711 *) ac_try_echo=$ac_try;;
7713 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7714 (eval "$ac_compile") 2>conftest.er1
7716 grep -v '^ *+' conftest.er1 >conftest.err
7718 cat conftest.err >&5
7719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7720 (exit $ac_status); } && {
7721 test -z "$ac_c_werror_flag" ||
7722 test ! -s conftest.err
7723 } && test -s conftest.$ac_objext; then
7724 ac_cv_have_decl_environ=yes
7726 echo "$as_me: failed program was:" >&5
7727 sed 's/^/| /' conftest.$ac_ext >&5
7729 ac_cv_have_decl_environ=no
7732 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7734 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_environ" >&5
7735 echo "${ECHO_T}$ac_cv_have_decl_environ" >&6; }
7736 if test $ac_cv_have_decl_environ = yes; then
7738 cat >>confdefs.h <<_ACEOF
7739 #define HAVE_DECL_ENVIRON 1
7744 cat >>confdefs.h <<_ACEOF
7745 #define HAVE_DECL_ENVIRON 0
7750 { echo "$as_me:$LINENO: checking whether gethostname is declared" >&5
7751 echo $ECHO_N "checking whether gethostname is declared... $ECHO_C" >&6; }
7752 if test "${ac_cv_have_decl_gethostname+set}" = set; then
7753 echo $ECHO_N "(cached) $ECHO_C" >&6
7755 cat >conftest.$ac_ext <<_ACEOF
7758 cat confdefs.h >>conftest.$ac_ext
7759 cat >>conftest.$ac_ext <<_ACEOF
7760 /* end confdefs.h. */
7761 #include "config_p.h"
7762 $ac_includes_default
7779 rm -f conftest.$ac_objext
7780 if { (ac_try="$ac_compile"
7782 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7783 *) ac_try_echo=$ac_try;;
7785 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7786 (eval "$ac_compile") 2>conftest.er1
7788 grep -v '^ *+' conftest.er1 >conftest.err
7790 cat conftest.err >&5
7791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7792 (exit $ac_status); } && {
7793 test -z "$ac_c_werror_flag" ||
7794 test ! -s conftest.err
7795 } && test -s conftest.$ac_objext; then
7796 ac_cv_have_decl_gethostname=yes
7798 echo "$as_me: failed program was:" >&5
7799 sed 's/^/| /' conftest.$ac_ext >&5
7801 ac_cv_have_decl_gethostname=no
7804 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7806 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_gethostname" >&5
7807 echo "${ECHO_T}$ac_cv_have_decl_gethostname" >&6; }
7808 if test $ac_cv_have_decl_gethostname = yes; then
7810 cat >>confdefs.h <<_ACEOF
7811 #define HAVE_DECL_GETHOSTNAME 1
7816 cat >>confdefs.h <<_ACEOF
7817 #define HAVE_DECL_GETHOSTNAME 0
7822 { echo "$as_me:$LINENO: checking whether getpgrp is declared" >&5
7823 echo $ECHO_N "checking whether getpgrp is declared... $ECHO_C" >&6; }
7824 if test "${ac_cv_have_decl_getpgrp+set}" = set; then
7825 echo $ECHO_N "(cached) $ECHO_C" >&6
7827 cat >conftest.$ac_ext <<_ACEOF
7830 cat confdefs.h >>conftest.$ac_ext
7831 cat >>conftest.$ac_ext <<_ACEOF
7832 /* end confdefs.h. */
7833 #include "config_p.h"
7834 $ac_includes_default
7851 rm -f conftest.$ac_objext
7852 if { (ac_try="$ac_compile"
7854 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7855 *) ac_try_echo=$ac_try;;
7857 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7858 (eval "$ac_compile") 2>conftest.er1
7860 grep -v '^ *+' conftest.er1 >conftest.err
7862 cat conftest.err >&5
7863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7864 (exit $ac_status); } && {
7865 test -z "$ac_c_werror_flag" ||
7866 test ! -s conftest.err
7867 } && test -s conftest.$ac_objext; then
7868 ac_cv_have_decl_getpgrp=yes
7870 echo "$as_me: failed program was:" >&5
7871 sed 's/^/| /' conftest.$ac_ext >&5
7873 ac_cv_have_decl_getpgrp=no
7876 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7878 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_getpgrp" >&5
7879 echo "${ECHO_T}$ac_cv_have_decl_getpgrp" >&6; }
7880 if test $ac_cv_have_decl_getpgrp = yes; then
7882 cat >>confdefs.h <<_ACEOF
7883 #define HAVE_DECL_GETPGRP 1
7888 cat >>confdefs.h <<_ACEOF
7889 #define HAVE_DECL_GETPGRP 0
7896 { echo "$as_me:$LINENO: checking for setlocale" >&5
7897 echo $ECHO_N "checking for setlocale... $ECHO_C" >&6; }
7898 if test "${ac_cv_func_setlocale+set}" = set; then
7899 echo $ECHO_N "(cached) $ECHO_C" >&6
7901 cat >conftest.$ac_ext <<_ACEOF
7904 cat confdefs.h >>conftest.$ac_ext
7905 cat >>conftest.$ac_ext <<_ACEOF
7906 /* end confdefs.h. */
7907 /* Define setlocale to an innocuous variant, in case <limits.h> declares setlocale.
7908 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7909 #define setlocale innocuous_setlocale
7911 /* System header to define __stub macros and hopefully few prototypes,
7912 which can conflict with char setlocale (); below.
7913 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7914 <limits.h> exists even on freestanding compilers. */
7917 # include <limits.h>
7919 # include <assert.h>
7924 /* Override any GCC internal prototype to avoid an error.
7925 Use char because int might match the return type of a GCC
7926 builtin and then its argument prototype would still apply. */
7931 /* The GNU C library defines this for functions which it implements
7932 to always fail with ENOSYS. Some functions are actually named
7933 something starting with __ and the normal name is an alias. */
7934 #if defined __stub_setlocale || defined __stub___setlocale
7941 return setlocale ();
7946 rm -f conftest.$ac_objext conftest$ac_exeext
7947 if { (ac_try="$ac_link"
7949 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7950 *) ac_try_echo=$ac_try;;
7952 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7953 (eval "$ac_link") 2>conftest.er1
7955 grep -v '^ *+' conftest.er1 >conftest.err
7957 cat conftest.err >&5
7958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7959 (exit $ac_status); } && {
7960 test -z "$ac_c_werror_flag" ||
7961 test ! -s conftest.err
7962 } && test -s conftest$ac_exeext &&
7963 $as_test_x conftest$ac_exeext; then
7964 ac_cv_func_setlocale=yes
7966 echo "$as_me: failed program was:" >&5
7967 sed 's/^/| /' conftest.$ac_ext >&5
7969 ac_cv_func_setlocale=no
7972 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7973 conftest$ac_exeext conftest.$ac_ext
7975 { echo "$as_me:$LINENO: result: $ac_cv_func_setlocale" >&5
7976 echo "${ECHO_T}$ac_cv_func_setlocale" >&6; }
7977 if test $ac_cv_func_setlocale = yes; then
8001 for ac_func in catgets dup2 getauthid getcwd gethostname getpwent getutent memmove memset nice nl_langinfo sbrk setpgid setpriority strerror strstr sysconf wcwidth
8003 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8004 { echo "$as_me:$LINENO: checking for $ac_func" >&5
8005 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
8006 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
8007 echo $ECHO_N "(cached) $ECHO_C" >&6
8009 cat >conftest.$ac_ext <<_ACEOF
8012 cat confdefs.h >>conftest.$ac_ext
8013 cat >>conftest.$ac_ext <<_ACEOF
8014 /* end confdefs.h. */
8015 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8016 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8017 #define $ac_func innocuous_$ac_func
8019 /* System header to define __stub macros and hopefully few prototypes,
8020 which can conflict with char $ac_func (); below.
8021 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8022 <limits.h> exists even on freestanding compilers. */
8025 # include <limits.h>
8027 # include <assert.h>
8032 /* Override any GCC internal prototype to avoid an error.
8033 Use char because int might match the return type of a GCC
8034 builtin and then its argument prototype would still apply. */
8039 /* The GNU C library defines this for functions which it implements
8040 to always fail with ENOSYS. Some functions are actually named
8041 something starting with __ and the normal name is an alias. */
8042 #if defined __stub_$ac_func || defined __stub___$ac_func
8054 rm -f conftest.$ac_objext conftest$ac_exeext
8055 if { (ac_try="$ac_link"
8057 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8058 *) ac_try_echo=$ac_try;;
8060 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8061 (eval "$ac_link") 2>conftest.er1
8063 grep -v '^ *+' conftest.er1 >conftest.err
8065 cat conftest.err >&5
8066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8067 (exit $ac_status); } && {
8068 test -z "$ac_c_werror_flag" ||
8069 test ! -s conftest.err
8070 } && test -s conftest$ac_exeext &&
8071 $as_test_x conftest$ac_exeext; then
8072 eval "$as_ac_var=yes"
8074 echo "$as_me: failed program was:" >&5
8075 sed 's/^/| /' conftest.$ac_ext >&5
8077 eval "$as_ac_var=no"
8080 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8081 conftest$ac_exeext conftest.$ac_ext
8083 ac_res=`eval echo '${'$as_ac_var'}'`
8084 { echo "$as_me:$LINENO: result: $ac_res" >&5
8085 echo "${ECHO_T}$ac_res" >&6; }
8086 if test `eval echo '${'$as_ac_var'}'` = yes; then
8087 cat >>confdefs.h <<_ACEOF
8088 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8094 { echo "$as_me:$LINENO: checking whether getpgrp requires zero arguments" >&5
8095 echo $ECHO_N "checking whether getpgrp requires zero arguments... $ECHO_C" >&6; }
8096 if test "${ac_cv_func_getpgrp_void+set}" = set; then
8097 echo $ECHO_N "(cached) $ECHO_C" >&6
8099 # Use it with a single arg.
8100 cat >conftest.$ac_ext <<_ACEOF
8103 cat confdefs.h >>conftest.$ac_ext
8104 cat >>conftest.$ac_ext <<_ACEOF
8105 /* end confdefs.h. */
8106 $ac_includes_default
8115 rm -f conftest.$ac_objext
8116 if { (ac_try="$ac_compile"
8118 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8119 *) ac_try_echo=$ac_try;;
8121 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8122 (eval "$ac_compile") 2>conftest.er1
8124 grep -v '^ *+' conftest.er1 >conftest.err
8126 cat conftest.err >&5
8127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8128 (exit $ac_status); } && {
8129 test -z "$ac_c_werror_flag" ||
8130 test ! -s conftest.err
8131 } && test -s conftest.$ac_objext; then
8132 ac_cv_func_getpgrp_void=no
8134 echo "$as_me: failed program was:" >&5
8135 sed 's/^/| /' conftest.$ac_ext >&5
8137 ac_cv_func_getpgrp_void=yes
8140 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8143 { echo "$as_me:$LINENO: result: $ac_cv_func_getpgrp_void" >&5
8144 echo "${ECHO_T}$ac_cv_func_getpgrp_void" >&6; }
8145 if test $ac_cv_func_getpgrp_void = yes; then
8147 cat >>confdefs.h <<\_ACEOF
8148 #define GETPGRP_VOID 1
8154 { echo "$as_me:$LINENO: checking whether mbrtowc and mbstate_t are properly declared" >&5
8155 echo $ECHO_N "checking whether mbrtowc and mbstate_t are properly declared... $ECHO_C" >&6; }
8156 if test "${ac_cv_func_mbrtowc+set}" = set; then
8157 echo $ECHO_N "(cached) $ECHO_C" >&6
8159 cat >conftest.$ac_ext <<_ACEOF
8162 cat confdefs.h >>conftest.$ac_ext
8163 cat >>conftest.$ac_ext <<_ACEOF
8164 /* end confdefs.h. */
8170 char const s[] = "";
8173 return ! (sizeof state && (mbrtowc) (&wc, s, n, &state));
8178 rm -f conftest.$ac_objext conftest$ac_exeext
8179 if { (ac_try="$ac_link"
8181 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8182 *) ac_try_echo=$ac_try;;
8184 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8185 (eval "$ac_link") 2>conftest.er1
8187 grep -v '^ *+' conftest.er1 >conftest.err
8189 cat conftest.err >&5
8190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8191 (exit $ac_status); } && {
8192 test -z "$ac_c_werror_flag" ||
8193 test ! -s conftest.err
8194 } && test -s conftest$ac_exeext &&
8195 $as_test_x conftest$ac_exeext; then
8196 ac_cv_func_mbrtowc=yes
8198 echo "$as_me: failed program was:" >&5
8199 sed 's/^/| /' conftest.$ac_ext >&5
8201 ac_cv_func_mbrtowc=no
8204 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8205 conftest$ac_exeext conftest.$ac_ext
8207 { echo "$as_me:$LINENO: result: $ac_cv_func_mbrtowc" >&5
8208 echo "${ECHO_T}$ac_cv_func_mbrtowc" >&6; }
8209 if test $ac_cv_func_mbrtowc = yes; then
8211 cat >>confdefs.h <<\_ACEOF
8212 #define HAVE_MBRTOWC 1
8217 { echo "$as_me:$LINENO: checking whether setpgrp takes no argument" >&5
8218 echo $ECHO_N "checking whether setpgrp takes no argument... $ECHO_C" >&6; }
8219 if test "${ac_cv_func_setpgrp_void+set}" = set; then
8220 echo $ECHO_N "(cached) $ECHO_C" >&6
8222 if test "$cross_compiling" = yes; then
8223 { { echo "$as_me:$LINENO: error: cannot check setpgrp when cross compiling" >&5
8224 echo "$as_me: error: cannot check setpgrp when cross compiling" >&2;}
8225 { (exit 1); exit 1; }; }
8227 cat >conftest.$ac_ext <<_ACEOF
8230 cat confdefs.h >>conftest.$ac_ext
8231 cat >>conftest.$ac_ext <<_ACEOF
8232 /* end confdefs.h. */
8233 $ac_includes_default
8237 /* If this system has a BSD-style setpgrp which takes arguments,
8238 setpgrp(1, 1) will fail with ESRCH and return -1, in that case
8239 exit successfully. */
8240 return setpgrp (1,1) != -1;
8245 rm -f conftest$ac_exeext
8246 if { (ac_try="$ac_link"
8248 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8249 *) ac_try_echo=$ac_try;;
8251 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8252 (eval "$ac_link") 2>&5
8254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8255 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8256 { (case "(($ac_try" in
8257 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8258 *) ac_try_echo=$ac_try;;
8260 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8261 (eval "$ac_try") 2>&5
8263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8264 (exit $ac_status); }; }; then
8265 ac_cv_func_setpgrp_void=no
8267 echo "$as_me: program exited with status $ac_status" >&5
8268 echo "$as_me: failed program was:" >&5
8269 sed 's/^/| /' conftest.$ac_ext >&5
8272 ac_cv_func_setpgrp_void=yes
8274 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8279 { echo "$as_me:$LINENO: result: $ac_cv_func_setpgrp_void" >&5
8280 echo "${ECHO_T}$ac_cv_func_setpgrp_void" >&6; }
8281 if test $ac_cv_func_setpgrp_void = yes; then
8283 cat >>confdefs.h <<\_ACEOF
8284 #define SETPGRP_VOID 1
8289 { echo "$as_me:$LINENO: checking for working strcoll" >&5
8290 echo $ECHO_N "checking for working strcoll... $ECHO_C" >&6; }
8291 if test "${ac_cv_func_strcoll_works+set}" = set; then
8292 echo $ECHO_N "(cached) $ECHO_C" >&6
8294 if test "$cross_compiling" = yes; then
8295 ac_cv_func_strcoll_works=no
8297 cat >conftest.$ac_ext <<_ACEOF
8300 cat confdefs.h >>conftest.$ac_ext
8301 cat >>conftest.$ac_ext <<_ACEOF
8302 /* end confdefs.h. */
8303 $ac_includes_default
8307 return (strcoll ("abc", "def") >= 0 ||
8308 strcoll ("ABC", "DEF") >= 0 ||
8309 strcoll ("123", "456") >= 0)
8314 rm -f conftest$ac_exeext
8315 if { (ac_try="$ac_link"
8317 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8318 *) ac_try_echo=$ac_try;;
8320 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8321 (eval "$ac_link") 2>&5
8323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8324 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8325 { (case "(($ac_try" in
8326 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8327 *) ac_try_echo=$ac_try;;
8329 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8330 (eval "$ac_try") 2>&5
8332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8333 (exit $ac_status); }; }; then
8334 ac_cv_func_strcoll_works=yes
8336 echo "$as_me: program exited with status $ac_status" >&5
8337 echo "$as_me: failed program was:" >&5
8338 sed 's/^/| /' conftest.$ac_ext >&5
8341 ac_cv_func_strcoll_works=no
8343 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8348 { echo "$as_me:$LINENO: result: $ac_cv_func_strcoll_works" >&5
8349 echo "${ECHO_T}$ac_cv_func_strcoll_works" >&6; }
8350 if test $ac_cv_func_strcoll_works = yes; then
8352 cat >>confdefs.h <<\_ACEOF
8353 #define HAVE_STRCOLL 1
8362 if test "$have_setlocale" != no; then
8363 # Check whether --enable-nls was given.
8364 if test "${enable_nls+set}" = set; then
8365 enableval=$enable_nls;
8370 if test "x$enable_nls" != xno; then
8372 cat >>confdefs.h <<\_ACEOF
8380 # Check whether --with-hesiod was given.
8381 if test "${with_hesiod+set}" = set; then
8382 withval=$with_hesiod; hesiod="$withval"
8387 if test "$hesiod" != no; then
8389 { echo "$as_me:$LINENO: checking for res_send" >&5
8390 echo $ECHO_N "checking for res_send... $ECHO_C" >&6; }
8391 if test "${ac_cv_func_res_send+set}" = set; then
8392 echo $ECHO_N "(cached) $ECHO_C" >&6
8394 cat >conftest.$ac_ext <<_ACEOF
8397 cat confdefs.h >>conftest.$ac_ext
8398 cat >>conftest.$ac_ext <<_ACEOF
8399 /* end confdefs.h. */
8400 /* Define res_send to an innocuous variant, in case <limits.h> declares res_send.
8401 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8402 #define res_send innocuous_res_send
8404 /* System header to define __stub macros and hopefully few prototypes,
8405 which can conflict with char res_send (); below.
8406 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8407 <limits.h> exists even on freestanding compilers. */
8410 # include <limits.h>
8412 # include <assert.h>
8417 /* Override any GCC internal prototype to avoid an error.
8418 Use char because int might match the return type of a GCC
8419 builtin and then its argument prototype would still apply. */
8424 /* The GNU C library defines this for functions which it implements
8425 to always fail with ENOSYS. Some functions are actually named
8426 something starting with __ and the normal name is an alias. */
8427 #if defined __stub_res_send || defined __stub___res_send
8439 rm -f conftest.$ac_objext conftest$ac_exeext
8440 if { (ac_try="$ac_link"
8442 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8443 *) ac_try_echo=$ac_try;;
8445 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8446 (eval "$ac_link") 2>conftest.er1
8448 grep -v '^ *+' conftest.er1 >conftest.err
8450 cat conftest.err >&5
8451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8452 (exit $ac_status); } && {
8453 test -z "$ac_c_werror_flag" ||
8454 test ! -s conftest.err
8455 } && test -s conftest$ac_exeext &&
8456 $as_test_x conftest$ac_exeext; then
8457 ac_cv_func_res_send=yes
8459 echo "$as_me: failed program was:" >&5
8460 sed 's/^/| /' conftest.$ac_ext >&5
8462 ac_cv_func_res_send=no
8465 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8466 conftest$ac_exeext conftest.$ac_ext
8468 { echo "$as_me:$LINENO: result: $ac_cv_func_res_send" >&5
8469 echo "${ECHO_T}$ac_cv_func_res_send" >&6; }
8470 if test $ac_cv_func_res_send = yes; then
8473 { echo "$as_me:$LINENO: checking for res_send in -lresolv" >&5
8474 echo $ECHO_N "checking for res_send in -lresolv... $ECHO_C" >&6; }
8475 if test "${ac_cv_lib_resolv_res_send+set}" = set; then
8476 echo $ECHO_N "(cached) $ECHO_C" >&6
8478 ac_check_lib_save_LIBS=$LIBS
8479 LIBS="-lresolv $LIBS"
8480 cat >conftest.$ac_ext <<_ACEOF
8483 cat confdefs.h >>conftest.$ac_ext
8484 cat >>conftest.$ac_ext <<_ACEOF
8485 /* end confdefs.h. */
8487 /* Override any GCC internal prototype to avoid an error.
8488 Use char because int might match the return type of a GCC
8489 builtin and then its argument prototype would still apply. */
8502 rm -f conftest.$ac_objext conftest$ac_exeext
8503 if { (ac_try="$ac_link"
8505 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8506 *) ac_try_echo=$ac_try;;
8508 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8509 (eval "$ac_link") 2>conftest.er1
8511 grep -v '^ *+' conftest.er1 >conftest.err
8513 cat conftest.err >&5
8514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8515 (exit $ac_status); } && {
8516 test -z "$ac_c_werror_flag" ||
8517 test ! -s conftest.err
8518 } && test -s conftest$ac_exeext &&
8519 $as_test_x conftest$ac_exeext; then
8520 ac_cv_lib_resolv_res_send=yes
8522 echo "$as_me: failed program was:" >&5
8523 sed 's/^/| /' conftest.$ac_ext >&5
8525 ac_cv_lib_resolv_res_send=no
8528 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8529 conftest$ac_exeext conftest.$ac_ext
8530 LIBS=$ac_check_lib_save_LIBS
8532 { echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_res_send" >&5
8533 echo "${ECHO_T}$ac_cv_lib_resolv_res_send" >&6; }
8534 if test $ac_cv_lib_resolv_res_send = yes; then
8535 HESLIB="$HESLIB -lresolv"
8541 if test "$hesiod" != yes; then
8542 HESDEF="$HESDEF -I$hesiod/include"
8543 HESLIB="-L$hesiod/lib $HESLIB"
8549 ac_config_files="$ac_config_files Makefile"
8551 cat >confcache <<\_ACEOF
8552 # This file is a shell script that caches the results of configure
8553 # tests run on this system so they can be shared between configure
8554 # scripts and configure runs, see configure's option --config-cache.
8555 # It is not useful on other systems. If it contains results you don't
8556 # want to keep, you may remove or edit it.
8558 # config.status only pays attention to the cache file if you give it
8559 # the --recheck option to rerun configure.
8561 # `ac_cv_env_foo' variables (set or unset) will be overridden when
8562 # loading this file, other *unset* `ac_cv_foo' will be assigned the
8567 # The following way of writing the cache mishandles newlines in values,
8568 # but we know of no workaround that is simple, portable, and efficient.
8569 # So, we kill variables containing newlines.
8570 # Ultrix sh set writes to stderr and can't be redirected directly,
8571 # and sets the high bit in the cache file unless we assign to the vars.
8573 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
8574 eval ac_val=\$$ac_var
8578 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
8579 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
8582 _ | IFS | as_nl) ;; #(
8583 *) $as_unset $ac_var ;;
8589 case $as_nl`(ac_space=' '; set) 2>&1` in #(
8590 *${as_nl}ac_space=\ *)
8591 # `set' does not quote correctly, so add quotes (double-quote
8592 # substitution turns \\\\ into \\, and sed turns \\ into \).
8595 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
8598 # `set' quotes correctly as required by POSIX, so do not add quotes.
8599 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
8608 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
8610 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
8612 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
8613 if test -w "$cache_file"; then
8614 test "x$cache_file" != "x/dev/null" &&
8615 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
8616 echo "$as_me: updating cache $cache_file" >&6;}
8617 cat confcache >$cache_file
8619 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
8620 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
8625 test "x$prefix" = xNONE && prefix=$ac_default_prefix
8626 # Let make expand exec_prefix.
8627 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
8629 DEFS=-DHAVE_CONFIG_H
8633 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
8634 # 1. Remove the extension, and $U if already installed.
8635 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
8636 ac_i=`echo "$ac_i" | sed "$ac_script"`
8637 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
8638 # will be set to the directory where LIBOBJS objects are built.
8639 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
8640 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
8644 LTLIBOBJS=$ac_ltlibobjs
8648 : ${CONFIG_STATUS=./config.status}
8649 ac_clean_files_save=$ac_clean_files
8650 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
8651 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
8652 echo "$as_me: creating $CONFIG_STATUS" >&6;}
8653 cat >$CONFIG_STATUS <<_ACEOF
8655 # Generated by $as_me.
8656 # Run this file to recreate the current configuration.
8657 # Compiler output produced by configure, useful for debugging
8658 # configure, is in config.log if it exists.
8663 SHELL=\${CONFIG_SHELL-$SHELL}
8666 cat >>$CONFIG_STATUS <<\_ACEOF
8667 ## --------------------- ##
8668 ## M4sh Initialization. ##
8669 ## --------------------- ##
8671 # Be more Bourne compatible
8672 DUALCASE=1; export DUALCASE # for MKS sh
8673 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
8676 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
8677 # is contrary to our usage. Disable this feature.
8678 alias -g '${1+"$@"}'='"$@"'
8679 setopt NO_GLOB_SUBST
8681 case `(set -o) 2>/dev/null` in
8682 *posix*) set -o posix ;;
8691 # Avoid depending upon Character Ranges.
8692 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
8693 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
8694 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
8695 as_cr_digits='0123456789'
8696 as_cr_alnum=$as_cr_Letters$as_cr_digits
8698 # The user is always right.
8699 if test "${PATH_SEPARATOR+set}" != set; then
8700 echo "#! /bin/sh" >conf$$.sh
8701 echo "exit 0" >>conf$$.sh
8703 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
8711 # Support unset when possible.
8712 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
8720 # We need space, tab and new line, in precisely that order. Quoting is
8721 # there to prevent editors from complaining about space-tab.
8722 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
8723 # splitting by setting IFS to empty value.)
8728 # Find who we are. Look in the path if we contain no directory separator.
8730 *[\\/]* ) as_myself=$0 ;;
8731 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8735 test -z "$as_dir" && as_dir=.
8736 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
8742 # We did not find ourselves, most probably we were run as `sh COMMAND'
8743 # in which case we are not to be found in the path.
8744 if test "x$as_myself" = x; then
8747 if test ! -f "$as_myself"; then
8748 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
8749 { (exit 1); exit 1; }
8752 # Work around bugs in pre-3.0 UWIN ksh.
8753 for as_var in ENV MAIL MAILPATH
8754 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
8762 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
8763 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
8764 LC_TELEPHONE LC_TIME
8766 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
8767 eval $as_var=C; export $as_var
8769 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
8773 # Required to use basename.
8774 if expr a : '\(a\)' >/dev/null 2>&1 &&
8775 test "X`expr 00001 : '.*\(...\)'`" = X001; then
8781 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
8782 as_basename=basename
8788 # Name of the executable.
8789 as_me=`$as_basename -- "$0" ||
8790 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
8791 X"$0" : 'X\(//\)$' \| \
8792 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
8794 sed '/^.*\/\([^/][^/]*\)\/*$/{
8815 test "x$as_lineno_1" != "x$as_lineno_2" &&
8816 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
8818 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
8819 # uniformly replaced by the line number. The first 'sed' inserts a
8820 # line-number line after each line using $LINENO; the second 'sed'
8821 # does the real work. The second script uses 'N' to pair each
8822 # line-number line with the line containing $LINENO, and appends
8823 # trailing '-' during substitution so that $LINENO is not a special
8825 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
8826 # scripts with optimization help from Paolo Bonzini. Blame Lee
8827 # E. McMahon (1931-1989) for sed's syntax. :-)
8839 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
8843 chmod +x "$as_me.lineno" ||
8844 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
8845 { (exit 1); exit 1; }; }
8847 # Don't try to exec as it changes $[0], causing all sort of problems
8848 # (the dirname of $[0] is not the place where we might find the
8849 # original and so on. Autoconf is especially sensitive to this).
8851 # Exit status is that of the last command.
8856 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
8862 ECHO_C= ECHO_N= ECHO_T=
8865 case `echo 'x\c'` in
8866 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
8873 if expr a : '\(a\)' >/dev/null 2>&1 &&
8874 test "X`expr 00001 : '.*\(...\)'`" = X001; then
8880 rm -f conf$$ conf$$.exe conf$$.file
8881 if test -d conf$$.dir; then
8882 rm -f conf$$.dir/conf$$.file
8888 if ln -s conf$$.file conf$$ 2>/dev/null; then
8890 # ... but there are two gotchas:
8891 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
8892 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
8893 # In both cases, we have to default to `cp -p'.
8894 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
8896 elif ln conf$$.file conf$$ 2>/dev/null; then
8901 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
8902 rmdir conf$$.dir 2>/dev/null
8904 if mkdir -p . 2>/dev/null; then
8907 test -d ./-p && rmdir ./-p
8911 if test -x / >/dev/null 2>&1; then
8914 if ls -dL / >/dev/null 2>&1; then
8921 if test -d "$1"; then
8927 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
8928 ???[sx]*):;;*)false;;esac;fi
8932 as_executable_p=$as_test_x
8934 # Sed expression to map a string onto a valid CPP name.
8935 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
8937 # Sed expression to map a string onto a valid variable name.
8938 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
8943 # Save the log message, to keep $[0] and so on meaningful, and to
8944 # report actual input values of CONFIG_FILES etc. instead of their
8945 # values after options handling.
8947 This file was extended by tcsh $as_me 6.17.00, which was
8948 generated by GNU Autoconf 2.61. Invocation command line was
8950 CONFIG_FILES = $CONFIG_FILES
8951 CONFIG_HEADERS = $CONFIG_HEADERS
8952 CONFIG_LINKS = $CONFIG_LINKS
8953 CONFIG_COMMANDS = $CONFIG_COMMANDS
8956 on `(hostname || uname -n) 2>/dev/null | sed 1q`
8961 cat >>$CONFIG_STATUS <<_ACEOF
8962 # Files that config.status was made for.
8963 config_files="$ac_config_files"
8964 config_headers="$ac_config_headers"
8965 config_commands="$ac_config_commands"
8969 cat >>$CONFIG_STATUS <<\_ACEOF
8971 \`$as_me' instantiates files from templates according to the
8972 current configuration.
8974 Usage: $0 [OPTIONS] [FILE]...
8976 -h, --help print this help, then exit
8977 -V, --version print version number and configuration settings, then exit
8978 -q, --quiet do not print progress messages
8979 -d, --debug don't remove temporary files
8980 --recheck update $as_me by reconfiguring in the same conditions
8981 --file=FILE[:TEMPLATE]
8982 instantiate the configuration file FILE
8983 --header=FILE[:TEMPLATE]
8984 instantiate the configuration header FILE
8986 Configuration files:
8989 Configuration headers:
8992 Configuration commands:
8995 Report bugs to <bug-autoconf@gnu.org>."
8998 cat >>$CONFIG_STATUS <<_ACEOF
9000 tcsh config.status 6.17.00
9001 configured by $0, generated by GNU Autoconf 2.61,
9002 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
9004 Copyright (C) 2006 Free Software Foundation, Inc.
9005 This config.status script is free software; the Free Software Foundation
9006 gives unlimited permission to copy, distribute and modify it."
9012 cat >>$CONFIG_STATUS <<\_ACEOF
9013 # If no file are specified by the user, then we need to provide default
9014 # value. By we need to know if files were specified by the user.
9020 ac_option=`expr "X$1" : 'X\([^=]*\)='`
9021 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
9032 # Handling of the options.
9033 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
9035 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
9036 echo "$ac_cs_version"; exit ;;
9037 --debug | --debu | --deb | --de | --d | -d )
9039 --file | --fil | --fi | --f )
9041 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
9042 ac_need_defaults=false;;
9043 --header | --heade | --head | --hea )
9045 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
9046 ac_need_defaults=false;;
9048 # Conflict between --help and --header
9049 { echo "$as_me: error: ambiguous option: $1
9050 Try \`$0 --help' for more information." >&2
9051 { (exit 1); exit 1; }; };;
9052 --help | --hel | -h )
9053 echo "$ac_cs_usage"; exit ;;
9054 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
9055 | -silent | --silent | --silen | --sile | --sil | --si | --s)
9059 -*) { echo "$as_me: error: unrecognized option: $1
9060 Try \`$0 --help' for more information." >&2
9061 { (exit 1); exit 1; }; } ;;
9063 *) ac_config_targets="$ac_config_targets $1"
9064 ac_need_defaults=false ;;
9070 ac_configure_extra_args=
9072 if $ac_cs_silent; then
9074 ac_configure_extra_args="$ac_configure_extra_args --silent"
9078 cat >>$CONFIG_STATUS <<_ACEOF
9079 if \$ac_cs_recheck; then
9080 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
9083 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
9087 cat >>$CONFIG_STATUS <<\_ACEOF
9091 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
9092 ## Running $as_me. ##
9098 cat >>$CONFIG_STATUS <<_ACEOF
9101 cat >>$CONFIG_STATUS <<\_ACEOF
9103 # Handling of arguments.
9104 for ac_config_target in $ac_config_targets
9106 case $ac_config_target in
9107 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
9108 "./atconfig") CONFIG_COMMANDS="$CONFIG_COMMANDS ./atconfig" ;;
9109 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
9111 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
9112 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
9113 { (exit 1); exit 1; }; };;
9118 # If the user did not use the arguments to specify the items to instantiate,
9119 # then the envvar interface is used. Set only those that are not.
9120 # We use the long form for the default assignment because of an extremely
9121 # bizarre bug on SunOS 4.1.3.
9122 if $ac_need_defaults; then
9123 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
9124 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
9125 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
9128 # Have a temporary directory for convenience. Make it in the build tree
9129 # simply because there is no reason against having it here, and in addition,
9130 # creating and moving files from /tmp can sometimes cause problems.
9131 # Hook for its removal unless debugging.
9132 # Note that there is a small window in which the directory will not be cleaned:
9133 # after its creation but before its name has been assigned to `$tmp'.
9137 trap 'exit_status=$?
9138 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
9140 trap '{ (exit 1); exit 1; }' 1 2 13 15
9142 # Create a (secure) tmp directory for tmp files.
9145 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
9146 test -n "$tmp" && test -d "$tmp"
9149 tmp=./conf$$-$RANDOM
9150 (umask 077 && mkdir "$tmp")
9153 echo "$me: cannot create a temporary directory in ." >&2
9154 { (exit 1); exit 1; }
9158 # Set up the sed scripts for CONFIG_FILES section.
9161 # No need to generate the scripts if there are no CONFIG_FILES.
9162 # This happens for instance when ./config.status config.h
9163 if test -n "$CONFIG_FILES"; then
9170 for ac_last_try in false false false false false :; do
9171 cat >conf$$subs.sed <<_ACEOF
9172 SHELL!$SHELL$ac_delim
9173 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
9174 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
9175 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
9176 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
9177 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
9178 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
9179 exec_prefix!$exec_prefix$ac_delim
9180 prefix!$prefix$ac_delim
9181 program_transform_name!$program_transform_name$ac_delim
9182 bindir!$bindir$ac_delim
9183 sbindir!$sbindir$ac_delim
9184 libexecdir!$libexecdir$ac_delim
9185 datarootdir!$datarootdir$ac_delim
9186 datadir!$datadir$ac_delim
9187 sysconfdir!$sysconfdir$ac_delim
9188 sharedstatedir!$sharedstatedir$ac_delim
9189 localstatedir!$localstatedir$ac_delim
9190 includedir!$includedir$ac_delim
9191 oldincludedir!$oldincludedir$ac_delim
9192 docdir!$docdir$ac_delim
9193 infodir!$infodir$ac_delim
9194 htmldir!$htmldir$ac_delim
9195 dvidir!$dvidir$ac_delim
9196 pdfdir!$pdfdir$ac_delim
9197 psdir!$psdir$ac_delim
9198 libdir!$libdir$ac_delim
9199 localedir!$localedir$ac_delim
9200 mandir!$mandir$ac_delim
9202 ECHO_C!$ECHO_C$ac_delim
9203 ECHO_N!$ECHO_N$ac_delim
9204 ECHO_T!$ECHO_T$ac_delim
9206 build_alias!$build_alias$ac_delim
9207 host_alias!$host_alias$ac_delim
9208 target_alias!$target_alias$ac_delim
9209 build!$build$ac_delim
9210 build_cpu!$build_cpu$ac_delim
9211 build_vendor!$build_vendor$ac_delim
9212 build_os!$build_os$ac_delim
9214 host_cpu!$host_cpu$ac_delim
9215 host_vendor!$host_vendor$ac_delim
9216 host_os!$host_os$ac_delim
9218 CFLAGS!$CFLAGS$ac_delim
9219 LDFLAGS!$LDFLAGS$ac_delim
9220 CPPFLAGS!$CPPFLAGS$ac_delim
9221 ac_ct_CC!$ac_ct_CC$ac_delim
9222 EXEEXT!$EXEEXT$ac_delim
9223 OBJEXT!$OBJEXT$ac_delim
9226 EGREP!$EGREP$ac_delim
9227 LIBICONV!$LIBICONV$ac_delim
9228 LTLIBICONV!$LTLIBICONV$ac_delim
9229 DFLAGS!$DFLAGS$ac_delim
9230 HESDEF!$HESDEF$ac_delim
9231 HESLIB!$HESLIB$ac_delim
9232 LIBOBJS!$LIBOBJS$ac_delim
9233 LTLIBOBJS!$LTLIBOBJS$ac_delim
9236 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 62; then
9238 elif $ac_last_try; then
9239 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
9240 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
9241 { (exit 1); exit 1; }; }
9243 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
9247 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
9248 if test -n "$ac_eof"; then
9249 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
9250 ac_eof=`expr $ac_eof + 1`
9253 cat >>$CONFIG_STATUS <<_ACEOF
9254 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
9255 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
9258 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
9259 s/^/s,@/; s/!/@,|#_!!_#|/
9262 s/'"$ac_delim"'$/,g/; t
9264 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
9265 ' >>$CONFIG_STATUS <conf$$subs.sed
9266 rm -f conf$$subs.sed
9267 cat >>$CONFIG_STATUS <<_ACEOF
9274 # VPATH may cause trouble with some makes, so we remove $(srcdir),
9275 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
9276 # trailing colons and then remove the whole line if VPATH becomes empty
9277 # (actually we leave an empty line to preserve line numbers).
9278 if test "x$srcdir" = x.; then
9279 ac_vpsub='/^[ ]*VPATH[ ]*=/{
9283 s/^\([^=]*=[ ]*\):*/\1/
9289 cat >>$CONFIG_STATUS <<\_ACEOF
9290 fi # test -n "$CONFIG_FILES"
9293 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
9296 :[FHLC]) ac_mode=$ac_tag; continue;;
9298 case $ac_mode$ac_tag in
9300 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
9301 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
9302 { (exit 1); exit 1; }; };;
9303 :[FH]-) ac_tag=-:-;;
9304 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
9321 -) ac_f="$tmp/stdin";;
9322 *) # Look for the file first in the build tree, then in the source tree
9323 # (if the path is not absolute). The absolute path cannot be DOS-style,
9324 # because $ac_f cannot contain `:'.
9328 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
9330 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
9331 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
9332 { (exit 1); exit 1; }; };;
9334 ac_file_inputs="$ac_file_inputs $ac_f"
9337 # Let's still pretend it is `configure' which instantiates (i.e., don't
9338 # use $as_me), people would be surprised to read:
9339 # /* config.h. Generated by config.status. */
9340 configure_input="Generated from "`IFS=:
9341 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
9342 if test x"$ac_file" != x-; then
9343 configure_input="$ac_file. $configure_input"
9344 { echo "$as_me:$LINENO: creating $ac_file" >&5
9345 echo "$as_me: creating $ac_file" >&6;}
9349 *:-:* | *:-) cat >"$tmp/stdin";;
9354 ac_dir=`$as_dirname -- "$ac_file" ||
9355 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9356 X"$ac_file" : 'X\(//\)[^/]' \| \
9357 X"$ac_file" : 'X\(//\)$' \| \
9358 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
9360 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
9379 -*) as_dir=./$as_dir;;
9381 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
9385 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
9386 *) as_qdir=$as_dir;;
9388 as_dirs="'$as_qdir' $as_dirs"
9389 as_dir=`$as_dirname -- "$as_dir" ||
9390 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9391 X"$as_dir" : 'X\(//\)[^/]' \| \
9392 X"$as_dir" : 'X\(//\)$' \| \
9393 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
9395 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
9412 test -d "$as_dir" && break
9414 test -z "$as_dirs" || eval "mkdir $as_dirs"
9415 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
9416 echo "$as_me: error: cannot create directory $as_dir" >&2;}
9417 { (exit 1); exit 1; }; }; }
9421 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
9423 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
9424 # A ".." for each directory in $ac_dir_suffix.
9425 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
9426 case $ac_top_builddir_sub in
9427 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
9428 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
9431 ac_abs_top_builddir=$ac_pwd
9432 ac_abs_builddir=$ac_pwd$ac_dir_suffix
9433 # for backward compatibility:
9434 ac_top_builddir=$ac_top_build_prefix
9437 .) # We are building in place.
9439 ac_top_srcdir=$ac_top_builddir_sub
9440 ac_abs_top_srcdir=$ac_pwd ;;
9441 [\\/]* | ?:[\\/]* ) # Absolute name.
9442 ac_srcdir=$srcdir$ac_dir_suffix;
9443 ac_top_srcdir=$srcdir
9444 ac_abs_top_srcdir=$srcdir ;;
9446 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
9447 ac_top_srcdir=$ac_top_build_prefix$srcdir
9448 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
9450 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
9461 cat >>$CONFIG_STATUS <<\_ACEOF
9462 # If the template does not know about datarootdir, expand it.
9463 # FIXME: This hack should be removed a few years after 2.60.
9464 ac_datarootdir_hack=; ac_datarootdir_seen=
9466 case `sed -n '/datarootdir/ {
9475 ' $ac_file_inputs` in
9476 *datarootdir*) ac_datarootdir_seen=yes;;
9477 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
9478 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
9479 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
9481 cat >>$CONFIG_STATUS <<_ACEOF
9482 ac_datarootdir_hack='
9483 s&@datadir@&$datadir&g
9484 s&@docdir@&$docdir&g
9485 s&@infodir@&$infodir&g
9486 s&@localedir@&$localedir&g
9487 s&@mandir@&$mandir&g
9488 s&\\\${datarootdir}&$datarootdir&g' ;;
9492 # Neutralize VPATH when `$srcdir' = `.'.
9493 # Shell code in configure.ac might set extrasub.
9494 # FIXME: do we really want to maintain this feature?
9495 cat >>$CONFIG_STATUS <<_ACEOF
9499 cat >>$CONFIG_STATUS <<\_ACEOF
9501 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
9502 s&@configure_input@&$configure_input&;t t
9503 s&@top_builddir@&$ac_top_builddir_sub&;t t
9504 s&@srcdir@&$ac_srcdir&;t t
9505 s&@abs_srcdir@&$ac_abs_srcdir&;t t
9506 s&@top_srcdir@&$ac_top_srcdir&;t t
9507 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
9508 s&@builddir@&$ac_builddir&;t t
9509 s&@abs_builddir@&$ac_abs_builddir&;t t
9510 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
9511 $ac_datarootdir_hack
9512 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" >$tmp/out
9514 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
9515 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
9516 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
9517 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
9518 which seems to be undefined. Please make sure it is defined." >&5
9519 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
9520 which seems to be undefined. Please make sure it is defined." >&2;}
9524 -) cat "$tmp/out"; rm -f "$tmp/out";;
9525 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
9534 # Transform confdefs.h into a sed script `conftest.defines', that
9535 # substitutes the proper values into config.h.in to produce config.h.
9536 rm -f conftest.defines conftest.tail
9537 # First, append a space to every undef/define line, to ease matching.
9538 echo 's/$/ /' >conftest.defines
9539 # Then, protect against being on the right side of a sed subst, or in
9540 # an unquoted here document, in config.status. If some macros were
9541 # called several times there might be several #defines for the same
9542 # symbol, which is useless. But do not sort them, since the last
9543 # AC_DEFINE must be honored.
9544 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
9545 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
9546 # NAME is the cpp macro being defined, VALUE is the value it is being given.
9547 # PARAMS is the parameter list in the macro definition--in most cases, it's
9548 # just an empty string.
9549 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
9550 ac_dB='\\)[ (].*,\\1define\\2'
9558 s/^[ ]*#[ ]*define[ ][ ]*//
9563 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
9564 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
9565 ' >>conftest.defines
9567 # Remove the space that was appended to ease matching.
9568 # Then replace #undef with comments. This is necessary, for
9569 # example, in the case of _POSIX_SOURCE, which is predefined and required
9570 # on some systems where configure will not decide to define it.
9571 # (The regexp can be short, since the line contains either #define or #undef.)
9573 s,^[ #]*u.*,/* & */,' >>conftest.defines
9575 # Break up conftest.defines:
9578 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
9579 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
9580 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
9582 ac_in='$ac_file_inputs'
9583 ac_out='"$tmp/out1"'
9584 ac_nxt='"$tmp/out2"'
9588 # Write a here document:
9589 cat >>$CONFIG_STATUS <<_ACEOF
9590 # First, check the format of the line:
9591 cat >"\$tmp/defines.sed" <<\\CEOF
9592 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
9593 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
9597 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
9599 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
9600 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
9601 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
9602 grep . conftest.tail >/dev/null || break
9603 rm -f conftest.defines
9604 mv conftest.tail conftest.defines
9606 rm -f conftest.defines conftest.tail
9608 echo "ac_result=$ac_in" >>$CONFIG_STATUS
9609 cat >>$CONFIG_STATUS <<\_ACEOF
9610 if test x"$ac_file" != x-; then
9611 echo "/* $configure_input */" >"$tmp/config.h"
9612 cat "$ac_result" >>"$tmp/config.h"
9613 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
9614 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
9615 echo "$as_me: $ac_file is unchanged" >&6;}
9618 mv "$tmp/config.h" $ac_file
9621 echo "/* $configure_input */"
9627 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
9628 echo "$as_me: executing $ac_file commands" >&6;}
9633 case $ac_file$ac_mode in
9634 "./atconfig":C) cat >./atconfig <<ATEOF
9635 # Configurable variable values for building test suites.
9637 # Copyright (C) 2000, 2001, 2003, 2004 Free Software Foundation, Inc.
9639 # The test suite will define top_srcdir=$at_top_srcdir/../.. etc.
9641 abs_builddir='$ac_abs_builddir'
9642 at_srcdir='$ac_srcdir'
9643 abs_srcdir='$ac_abs_srcdir'
9644 at_top_srcdir='$ac_top_srcdir'
9645 abs_top_srcdir='$ac_abs_top_srcdir'
9646 at_top_build_prefix='$ac_top_build_prefix'
9647 abs_top_builddir='$ac_abs_top_builddir'
9649 # Backward compatibility with Autotest <= 2.59b:
9650 at_top_builddir=\$at_top_build_prefix
9654 SHELL=\${CONFIG_SHELL-'$SHELL'}
9662 { (exit 0); exit 0; }
9664 chmod +x $CONFIG_STATUS
9665 ac_clean_files=$ac_clean_files_save
9668 # configure is writing to config.log, and then calls config.status.
9669 # config.status does its own redirection, appending to config.log.
9670 # Unfortunately, on DOS this fails, as config.log is still kept open
9671 # by configure, so config.status won't be able to write to it; its
9672 # output is simply discarded. So we exec the FD to /dev/null,
9673 # effectively closing config.log, so it can be properly (re)opened and
9674 # appended to by config.status. When coming back to configure, we
9675 # need to make the FD available again.
9676 if test "$no_create" != yes; then
9678 ac_config_status_args=
9679 test "$silent" = yes &&
9680 ac_config_status_args="$ac_config_status_args --quiet"
9682 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
9684 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
9685 # would make configure fail if this is the last instruction.
9686 $ac_cs_success || { (exit 1); exit 1; }