2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.63 for libnbcompat 20080519.
5 # Report bugs to <grant@NetBSD.org>.
7 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
8 # 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## --------------------- ##
12 ## M4sh Initialization. ##
13 ## --------------------- ##
15 # Be more Bourne compatible
16 DUALCASE=1; export DUALCASE # for MKS sh
17 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
25 case `(set -o) 2>/dev/null` in
26 *posix*) set -o posix ;;
35 # Avoid depending upon Character Ranges.
36 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
37 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
38 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
39 as_cr_digits='0123456789'
40 as_cr_alnum=$as_cr_Letters$as_cr_digits
45 # Printing a long string crashes Solaris 7 /usr/bin/printf.
46 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
47 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
48 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
49 if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55 as_echo_n='/usr/ucb/echo -n'
57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
62 expr "X$arg" : "X\\(.*\\)$as_nl";
63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
68 as_echo_n='sh -c $as_echo_n_body as_echo'
71 as_echo='sh -c $as_echo_body as_echo'
74 # The user is always right.
75 if test "${PATH_SEPARATOR+set}" != set; then
77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
83 # Support unset when possible.
84 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
92 # We need space, tab and new line, in precisely that order. Quoting is
93 # there to prevent editors from complaining about space-tab.
94 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
95 # splitting by setting IFS to empty value.)
98 # Find who we are. Look in the path if we contain no directory separator.
100 *[\\/]* ) as_myself=$0 ;;
101 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
105 test -z "$as_dir" && as_dir=.
106 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
112 # We did not find ourselves, most probably we were run as `sh COMMAND'
113 # in which case we are not to be found in the path.
114 if test "x$as_myself" = x; then
117 if test ! -f "$as_myself"; then
118 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
119 { (exit 1); exit 1; }
122 # Work around bugs in pre-3.0 UWIN ksh.
123 for as_var in ENV MAIL MAILPATH
124 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
136 # Required to use basename.
137 if expr a : '\(a\)' >/dev/null 2>&1 &&
138 test "X`expr 00001 : '.*\(...\)'`" = X001; then
144 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
151 # Name of the executable.
152 as_me=`$as_basename -- "$0" ||
153 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
154 X"$0" : 'X\(//\)$' \| \
155 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
157 sed '/^.*\/\([^/][^/]*\)\/*$/{
175 if test "x$CONFIG_SHELL" = x; then
176 if (eval ":") 2>/dev/null; then
182 if test $as_have_required = yes && (eval ":
192 as_func_ret_success () {
195 as_func_ret_failure () {
200 if as_func_success; then
204 echo as_func_success failed.
207 if as_func_failure; then
209 echo as_func_failure succeeded.
212 if as_func_ret_success; then
216 echo as_func_ret_success failed.
219 if as_func_ret_failure; then
221 echo as_func_ret_failure succeeded.
224 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
228 echo positional parameters were not saved.
231 test \$exitcode = 0) || { (exit 1); exit 1; }
236 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
237 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
238 ") 2> /dev/null; then
242 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
243 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
246 test -z "$as_dir" && as_dir=.
249 for as_base in sh bash ksh sh5; do
250 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
257 for as_shell in $as_candidate_shells $SHELL; do
258 # Try only shells that exist, to save several forks.
259 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
260 { ("$as_shell") 2> /dev/null <<\_ASEOF
261 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
264 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
265 # is contrary to our usage. Disable this feature.
266 alias -g '${1+"$@"}'='"$@"'
269 case `(set -o) 2>/dev/null` in
270 *posix*) set -o posix ;;
279 CONFIG_SHELL=$as_shell
281 if { "$as_shell" 2> /dev/null <<\_ASEOF
282 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
285 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
286 # is contrary to our usage. Disable this feature.
287 alias -g '${1+"$@"}'='"$@"'
290 case `(set -o) 2>/dev/null` in
291 *posix*) set -o posix ;;
307 as_func_ret_success () {
310 as_func_ret_failure () {
315 if as_func_success; then
319 echo as_func_success failed.
322 if as_func_failure; then
324 echo as_func_failure succeeded.
327 if as_func_ret_success; then
331 echo as_func_ret_success failed.
334 if as_func_ret_failure; then
336 echo as_func_ret_failure succeeded.
339 if ( set x; as_func_ret_success y && test x = "$1" ); then
343 echo positional parameters were not saved.
346 test $exitcode = 0) || { (exit 1); exit 1; }
351 test "x$as_lineno_1" != "x$as_lineno_2" &&
352 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
363 if test "x$CONFIG_SHELL" != x; then
364 for as_var in BASH_ENV ENV
365 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
368 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
372 if test $as_have_required = no; then
373 echo This script requires a shell more modern than all the
374 echo shells that I found on your system. Please install a
375 echo modern shell, or manually run the script under such a
376 echo shell if you do have one.
377 { (exit 1); exit 1; }
387 (eval "as_func_return () {
396 as_func_ret_success () {
399 as_func_ret_failure () {
404 if as_func_success; then
408 echo as_func_success failed.
411 if as_func_failure; then
413 echo as_func_failure succeeded.
416 if as_func_ret_success; then
420 echo as_func_ret_success failed.
423 if as_func_ret_failure; then
425 echo as_func_ret_failure succeeded.
428 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
432 echo positional parameters were not saved.
435 test \$exitcode = 0") || {
436 echo No shell found that supports shell functions.
437 echo Please tell bug-autoconf@gnu.org about your system,
438 echo including any error possibly output before this message.
439 echo This can help us improve future autoconf versions.
440 echo Configuration will now proceed without shell functions.
447 test "x$as_lineno_1" != "x$as_lineno_2" &&
448 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
450 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
451 # uniformly replaced by the line number. The first 'sed' inserts a
452 # line-number line after each line using $LINENO; the second 'sed'
453 # does the real work. The second script uses 'N' to pair each
454 # line-number line with the line containing $LINENO, and appends
455 # trailing '-' during substitution so that $LINENO is not a special
457 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
458 # scripts with optimization help from Paolo Bonzini. Blame Lee
459 # E. McMahon (1931-1989) for sed's syntax. :-)
471 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
475 chmod +x "$as_me.lineno" ||
476 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
477 { (exit 1); exit 1; }; }
479 # Don't try to exec as it changes $[0], causing all sort of problems
480 # (the dirname of $[0] is not the place where we might find the
481 # original and so on. Autoconf is especially sensitive to this).
483 # Exit status is that of the last command.
488 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
494 ECHO_C= ECHO_N= ECHO_T=
498 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
504 if expr a : '\(a\)' >/dev/null 2>&1 &&
505 test "X`expr 00001 : '.*\(...\)'`" = X001; then
511 rm -f conf$$ conf$$.exe conf$$.file
512 if test -d conf$$.dir; then
513 rm -f conf$$.dir/conf$$.file
516 mkdir conf$$.dir 2>/dev/null
518 if (echo >conf$$.file) 2>/dev/null; then
519 if ln -s conf$$.file conf$$ 2>/dev/null; then
521 # ... but there are two gotchas:
522 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
523 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
524 # In both cases, we have to default to `cp -p'.
525 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
527 elif ln conf$$.file conf$$ 2>/dev/null; then
535 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
536 rmdir conf$$.dir 2>/dev/null
538 if mkdir -p . 2>/dev/null; then
541 test -d ./-p && rmdir ./-p
545 if test -x / >/dev/null 2>&1; then
548 if ls -dL / >/dev/null 2>&1; then
555 if test -d "$1"; then
561 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
562 ???[sx]*):;;*)false;;esac;fi
566 as_executable_p=$as_test_x
568 # Sed expression to map a string onto a valid CPP name.
569 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
571 # Sed expression to map a string onto a valid variable name.
572 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
576 exec 7<&0 </dev/null 6>&1
579 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
580 # so uname gets run too.
581 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
586 ac_default_prefix=/usr/local
588 ac_config_libobj_dir=.
594 SHELL=${CONFIG_SHELL-/bin/sh}
596 # Identity of this package.
597 PACKAGE_NAME='libnbcompat'
598 PACKAGE_TARNAME='libnbcompat'
599 PACKAGE_VERSION='20080519'
600 PACKAGE_STRING='libnbcompat 20080519'
601 PACKAGE_BUGREPORT='grant@NetBSD.org'
603 # Factoring default headers for most tests.
604 ac_includes_default="\
606 #ifdef HAVE_SYS_TYPES_H
607 # include <sys/types.h>
609 #ifdef HAVE_SYS_STAT_H
610 # include <sys/stat.h>
616 # ifdef HAVE_STDLIB_H
621 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
626 #ifdef HAVE_STRINGS_H
627 # include <strings.h>
629 #ifdef HAVE_INTTYPES_H
630 # include <inttypes.h>
639 ac_subst_vars='LTLIBOBJS
699 program_transform_name
711 enable_option_checking
715 ac_precious_vars='build_alias
726 # Initialize some variables set by options.
728 ac_init_version=false
729 ac_unrecognized_opts=
731 # The variables have the same names as the options, with
732 # dashes changed to underlines.
740 program_transform_name=s,x,x,
748 # Installation directory options.
749 # These are left unexpanded so users can "make install exec_prefix=/foo"
750 # and all the variables that are supposed to be based on exec_prefix
751 # by default will actually change.
752 # Use braces instead of parens because sh, perl, etc. also accept them.
753 # (The list follows the same order as the GNU Coding Standards.)
754 bindir='${exec_prefix}/bin'
755 sbindir='${exec_prefix}/sbin'
756 libexecdir='${exec_prefix}/libexec'
757 datarootdir='${prefix}/share'
758 datadir='${datarootdir}'
759 sysconfdir='${prefix}/etc'
760 sharedstatedir='${prefix}/com'
761 localstatedir='${prefix}/var'
762 includedir='${prefix}/include'
763 oldincludedir='/usr/include'
764 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
765 infodir='${datarootdir}/info'
770 libdir='${exec_prefix}/lib'
771 localedir='${datarootdir}/locale'
772 mandir='${datarootdir}/man'
778 # If the previous option needs an argument, assign it.
779 if test -n "$ac_prev"; then
780 eval $ac_prev=\$ac_option
786 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
790 # Accept the important Cygnus configure options, so we can diagnose typos.
792 case $ac_dashdash$ac_option in
796 -bindir | --bindir | --bindi | --bind | --bin | --bi)
798 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
801 -build | --build | --buil | --bui | --bu)
802 ac_prev=build_alias ;;
803 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
804 build_alias=$ac_optarg ;;
806 -cache-file | --cache-file | --cache-fil | --cache-fi \
807 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
808 ac_prev=cache_file ;;
809 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
810 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
811 cache_file=$ac_optarg ;;
814 cache_file=config.cache ;;
816 -datadir | --datadir | --datadi | --datad)
818 -datadir=* | --datadir=* | --datadi=* | --datad=*)
819 datadir=$ac_optarg ;;
821 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
822 | --dataroo | --dataro | --datar)
823 ac_prev=datarootdir ;;
824 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
825 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
826 datarootdir=$ac_optarg ;;
828 -disable-* | --disable-*)
829 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
830 # Reject names that are not valid shell variable names.
831 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
832 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
833 { (exit 1); exit 1; }; }
834 ac_useropt_orig=$ac_useropt
835 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
836 case $ac_user_opts in
840 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
841 ac_unrecognized_sep=', ';;
843 eval enable_$ac_useropt=no ;;
845 -docdir | --docdir | --docdi | --doc | --do)
847 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
850 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
852 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
855 -enable-* | --enable-*)
856 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
857 # Reject names that are not valid shell variable names.
858 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
859 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
860 { (exit 1); exit 1; }; }
861 ac_useropt_orig=$ac_useropt
862 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
863 case $ac_user_opts in
867 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
868 ac_unrecognized_sep=', ';;
870 eval enable_$ac_useropt=\$ac_optarg ;;
872 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
873 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
874 | --exec | --exe | --ex)
875 ac_prev=exec_prefix ;;
876 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
877 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
878 | --exec=* | --exe=* | --ex=*)
879 exec_prefix=$ac_optarg ;;
881 -gas | --gas | --ga | --g)
882 # Obsolete; use --with-gas.
885 -help | --help | --hel | --he | -h)
887 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
888 ac_init_help=recursive ;;
889 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
890 ac_init_help=short ;;
892 -host | --host | --hos | --ho)
893 ac_prev=host_alias ;;
894 -host=* | --host=* | --hos=* | --ho=*)
895 host_alias=$ac_optarg ;;
897 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
899 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
901 htmldir=$ac_optarg ;;
903 -includedir | --includedir | --includedi | --included | --include \
904 | --includ | --inclu | --incl | --inc)
905 ac_prev=includedir ;;
906 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
907 | --includ=* | --inclu=* | --incl=* | --inc=*)
908 includedir=$ac_optarg ;;
910 -infodir | --infodir | --infodi | --infod | --info | --inf)
912 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
913 infodir=$ac_optarg ;;
915 -libdir | --libdir | --libdi | --libd)
917 -libdir=* | --libdir=* | --libdi=* | --libd=*)
920 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
921 | --libexe | --libex | --libe)
922 ac_prev=libexecdir ;;
923 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
924 | --libexe=* | --libex=* | --libe=*)
925 libexecdir=$ac_optarg ;;
927 -localedir | --localedir | --localedi | --localed | --locale)
929 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
930 localedir=$ac_optarg ;;
932 -localstatedir | --localstatedir | --localstatedi | --localstated \
933 | --localstate | --localstat | --localsta | --localst | --locals)
934 ac_prev=localstatedir ;;
935 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
936 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
937 localstatedir=$ac_optarg ;;
939 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
941 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
945 # Obsolete; use --without-fp.
948 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
949 | --no-cr | --no-c | -n)
952 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
953 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
956 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
957 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
958 | --oldin | --oldi | --old | --ol | --o)
959 ac_prev=oldincludedir ;;
960 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
961 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
962 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
963 oldincludedir=$ac_optarg ;;
965 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
967 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
970 -program-prefix | --program-prefix | --program-prefi | --program-pref \
971 | --program-pre | --program-pr | --program-p)
972 ac_prev=program_prefix ;;
973 -program-prefix=* | --program-prefix=* | --program-prefi=* \
974 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
975 program_prefix=$ac_optarg ;;
977 -program-suffix | --program-suffix | --program-suffi | --program-suff \
978 | --program-suf | --program-su | --program-s)
979 ac_prev=program_suffix ;;
980 -program-suffix=* | --program-suffix=* | --program-suffi=* \
981 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
982 program_suffix=$ac_optarg ;;
984 -program-transform-name | --program-transform-name \
985 | --program-transform-nam | --program-transform-na \
986 | --program-transform-n | --program-transform- \
987 | --program-transform | --program-transfor \
988 | --program-transfo | --program-transf \
989 | --program-trans | --program-tran \
990 | --progr-tra | --program-tr | --program-t)
991 ac_prev=program_transform_name ;;
992 -program-transform-name=* | --program-transform-name=* \
993 | --program-transform-nam=* | --program-transform-na=* \
994 | --program-transform-n=* | --program-transform-=* \
995 | --program-transform=* | --program-transfor=* \
996 | --program-transfo=* | --program-transf=* \
997 | --program-trans=* | --program-tran=* \
998 | --progr-tra=* | --program-tr=* | --program-t=*)
999 program_transform_name=$ac_optarg ;;
1001 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1003 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1004 pdfdir=$ac_optarg ;;
1006 -psdir | --psdir | --psdi | --psd | --ps)
1008 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1011 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1012 | -silent | --silent | --silen | --sile | --sil)
1015 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1017 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1019 sbindir=$ac_optarg ;;
1021 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1022 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1023 | --sharedst | --shareds | --shared | --share | --shar \
1025 ac_prev=sharedstatedir ;;
1026 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1027 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1028 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1030 sharedstatedir=$ac_optarg ;;
1032 -site | --site | --sit)
1034 -site=* | --site=* | --sit=*)
1037 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1039 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1040 srcdir=$ac_optarg ;;
1042 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1043 | --syscon | --sysco | --sysc | --sys | --sy)
1044 ac_prev=sysconfdir ;;
1045 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1046 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1047 sysconfdir=$ac_optarg ;;
1049 -target | --target | --targe | --targ | --tar | --ta | --t)
1050 ac_prev=target_alias ;;
1051 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1052 target_alias=$ac_optarg ;;
1054 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1057 -version | --version | --versio | --versi | --vers | -V)
1058 ac_init_version=: ;;
1061 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1062 # Reject names that are not valid shell variable names.
1063 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1064 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1065 { (exit 1); exit 1; }; }
1066 ac_useropt_orig=$ac_useropt
1067 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1068 case $ac_user_opts in
1072 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1073 ac_unrecognized_sep=', ';;
1075 eval with_$ac_useropt=\$ac_optarg ;;
1077 -without-* | --without-*)
1078 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1079 # Reject names that are not valid shell variable names.
1080 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1081 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1082 { (exit 1); exit 1; }; }
1083 ac_useropt_orig=$ac_useropt
1084 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1085 case $ac_user_opts in
1089 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1090 ac_unrecognized_sep=', ';;
1092 eval with_$ac_useropt=no ;;
1095 # Obsolete; use --with-x.
1098 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1099 | --x-incl | --x-inc | --x-in | --x-i)
1100 ac_prev=x_includes ;;
1101 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1102 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1103 x_includes=$ac_optarg ;;
1105 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1106 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1107 ac_prev=x_libraries ;;
1108 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1109 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1110 x_libraries=$ac_optarg ;;
1112 -*) { $as_echo "$as_me: error: unrecognized option: $ac_option
1113 Try \`$0 --help' for more information." >&2
1114 { (exit 1); exit 1; }; }
1118 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1119 # Reject names that are not valid shell variable names.
1120 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1121 { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1122 { (exit 1); exit 1; }; }
1123 eval $ac_envvar=\$ac_optarg
1124 export $ac_envvar ;;
1127 # FIXME: should be removed in autoconf 3.0.
1128 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1129 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1130 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1131 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1137 if test -n "$ac_prev"; then
1138 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1139 { $as_echo "$as_me: error: missing argument to $ac_option" >&2
1140 { (exit 1); exit 1; }; }
1143 if test -n "$ac_unrecognized_opts"; then
1144 case $enable_option_checking in
1146 fatal) { $as_echo "$as_me: error: unrecognized options: $ac_unrecognized_opts" >&2
1147 { (exit 1); exit 1; }; } ;;
1148 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1152 # Check all directory arguments for consistency.
1153 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1154 datadir sysconfdir sharedstatedir localstatedir includedir \
1155 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1156 libdir localedir mandir
1158 eval ac_val=\$$ac_var
1159 # Remove trailing slashes.
1162 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1163 eval $ac_var=\$ac_val;;
1165 # Be sure to have absolute directory names.
1167 [\\/$]* | ?:[\\/]* ) continue;;
1168 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1170 { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1171 { (exit 1); exit 1; }; }
1174 # There might be people who depend on the old broken behavior: `$host'
1175 # used to hold the argument of --host etc.
1176 # FIXME: To remove some day.
1179 target=$target_alias
1181 # FIXME: To remove some day.
1182 if test "x$host_alias" != x; then
1183 if test "x$build_alias" = x; then
1184 cross_compiling=maybe
1185 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1186 If a cross compiler is detected then cross compile mode will be used." >&2
1187 elif test "x$build_alias" != "x$host_alias"; then
1193 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1195 test "$silent" = yes && exec 6>/dev/null
1198 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1199 ac_ls_di=`ls -di .` &&
1200 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1201 { $as_echo "$as_me: error: working directory cannot be determined" >&2
1202 { (exit 1); exit 1; }; }
1203 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1204 { $as_echo "$as_me: error: pwd does not report name of working directory" >&2
1205 { (exit 1); exit 1; }; }
1208 # Find the source files, if location was not specified.
1209 if test -z "$srcdir"; then
1210 ac_srcdir_defaulted=yes
1211 # Try the directory containing this script, then the parent directory.
1212 ac_confdir=`$as_dirname -- "$as_myself" ||
1213 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1214 X"$as_myself" : 'X\(//\)[^/]' \| \
1215 X"$as_myself" : 'X\(//\)$' \| \
1216 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1217 $as_echo X"$as_myself" |
1218 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1236 if test ! -r "$srcdir/$ac_unique_file"; then
1240 ac_srcdir_defaulted=no
1242 if test ! -r "$srcdir/$ac_unique_file"; then
1243 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1244 { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1245 { (exit 1); exit 1; }; }
1247 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1249 cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2
1250 { (exit 1); exit 1; }; }
1252 # When building in place, set srcdir=.
1253 if test "$ac_abs_confdir" = "$ac_pwd"; then
1256 # Remove unnecessary trailing slashes from srcdir.
1257 # Double slashes in file names in object file debugging info
1258 # mess up M-x gdb in Emacs.
1260 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1262 for ac_var in $ac_precious_vars; do
1263 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1264 eval ac_env_${ac_var}_value=\$${ac_var}
1265 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1266 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1270 # Report the --help message.
1272 if test "$ac_init_help" = "long"; then
1273 # Omit some internal or obsolete options to make the list less imposing.
1274 # This message is too long to be a string in the A/UX 3.1 sh.
1276 \`configure' configures libnbcompat 20080519 to adapt to many kinds of systems.
1278 Usage: $0 [OPTION]... [VAR=VALUE]...
1280 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1281 VAR=VALUE. See below for descriptions of some of the useful variables.
1283 Defaults for the options are specified in brackets.
1286 -h, --help display this help and exit
1287 --help=short display options specific to this package
1288 --help=recursive display the short help of all the included packages
1289 -V, --version display version information and exit
1290 -q, --quiet, --silent do not print \`checking...' messages
1291 --cache-file=FILE cache test results in FILE [disabled]
1292 -C, --config-cache alias for \`--cache-file=config.cache'
1293 -n, --no-create do not create output files
1294 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1296 Installation directories:
1297 --prefix=PREFIX install architecture-independent files in PREFIX
1298 [$ac_default_prefix]
1299 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1302 By default, \`make install' will install all the files in
1303 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1304 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1305 for instance \`--prefix=\$HOME'.
1307 For better control, use the options below.
1309 Fine tuning of the installation directories:
1310 --bindir=DIR user executables [EPREFIX/bin]
1311 --sbindir=DIR system admin executables [EPREFIX/sbin]
1312 --libexecdir=DIR program executables [EPREFIX/libexec]
1313 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1314 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1315 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1316 --libdir=DIR object code libraries [EPREFIX/lib]
1317 --includedir=DIR C header files [PREFIX/include]
1318 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1319 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1320 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1321 --infodir=DIR info documentation [DATAROOTDIR/info]
1322 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1323 --mandir=DIR man documentation [DATAROOTDIR/man]
1324 --docdir=DIR documentation root [DATAROOTDIR/doc/libnbcompat]
1325 --htmldir=DIR html documentation [DOCDIR]
1326 --dvidir=DIR dvi documentation [DOCDIR]
1327 --pdfdir=DIR pdf documentation [DOCDIR]
1328 --psdir=DIR ps documentation [DOCDIR]
1334 --program-prefix=PREFIX prepend PREFIX to installed program names
1335 --program-suffix=SUFFIX append SUFFIX to installed program names
1336 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1339 --build=BUILD configure for building on BUILD [guessed]
1340 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1344 if test -n "$ac_init_help"; then
1345 case $ac_init_help in
1346 short | recursive ) echo "Configuration of libnbcompat 20080519:";;
1351 --disable-option-checking ignore unrecognized --enable/--with options
1352 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1353 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1354 --enable-db include DB implementation
1355 --enable-bsd-getopt force use of BSDish getopt implementation
1357 Some influential environment variables:
1358 CC C compiler command
1359 CFLAGS C compiler flags
1360 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1361 nonstandard directory <lib dir>
1362 LIBS libraries to pass to the linker, e.g. -l<library>
1363 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1364 you have headers in a nonstandard directory <include dir>
1367 Use these variables to override the choices made by `configure' or to help
1368 it to find libraries and programs with nonstandard names/locations.
1370 Report bugs to <grant@NetBSD.org>.
1375 if test "$ac_init_help" = "recursive"; then
1376 # If there are subdirs, report their specific --help.
1377 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1378 test -d "$ac_dir" ||
1379 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1384 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1386 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1387 # A ".." for each directory in $ac_dir_suffix.
1388 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1389 case $ac_top_builddir_sub in
1390 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1391 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1394 ac_abs_top_builddir=$ac_pwd
1395 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1396 # for backward compatibility:
1397 ac_top_builddir=$ac_top_build_prefix
1400 .) # We are building in place.
1402 ac_top_srcdir=$ac_top_builddir_sub
1403 ac_abs_top_srcdir=$ac_pwd ;;
1404 [\\/]* | ?:[\\/]* ) # Absolute name.
1405 ac_srcdir=$srcdir$ac_dir_suffix;
1406 ac_top_srcdir=$srcdir
1407 ac_abs_top_srcdir=$srcdir ;;
1409 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1410 ac_top_srcdir=$ac_top_build_prefix$srcdir
1411 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1413 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1415 cd "$ac_dir" || { ac_status=$?; continue; }
1416 # Check for guested configure.
1417 if test -f "$ac_srcdir/configure.gnu"; then
1419 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1420 elif test -f "$ac_srcdir/configure"; then
1422 $SHELL "$ac_srcdir/configure" --help=recursive
1424 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1426 cd "$ac_pwd" || { ac_status=$?; break; }
1430 test -n "$ac_init_help" && exit $ac_status
1431 if $ac_init_version; then
1433 libnbcompat configure 20080519
1434 generated by GNU Autoconf 2.63
1436 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1437 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
1438 This configure script is free software; the Free Software Foundation
1439 gives unlimited permission to copy, distribute and modify it.
1443 cat >config.log <<_ACEOF
1444 This file contains any messages produced by compilers while
1445 running configure, to aid debugging if configure makes a mistake.
1447 It was created by libnbcompat $as_me 20080519, which was
1448 generated by GNU Autoconf 2.63. Invocation command line was
1460 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1461 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1462 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1463 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1464 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1466 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1467 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1469 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1470 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1471 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1472 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1473 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1474 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1475 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1479 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1483 test -z "$as_dir" && as_dir=.
1484 $as_echo "PATH: $as_dir"
1500 # Keep a trace of the command line.
1501 # Strip out --no-create and --no-recursion so they do not pile up.
1502 # Strip out --silent because we don't want to record it for future runs.
1503 # Also quote any args containing shell meta-characters.
1504 # Make two passes to allow for proper duplicate-argument suppression.
1508 ac_must_keep_next=false
1514 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1515 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1516 | -silent | --silent | --silen | --sile | --sil)
1519 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1522 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1524 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1525 if test $ac_must_keep_next = true; then
1526 ac_must_keep_next=false # Got value, back to normal.
1529 *=* | --config-cache | -C | -disable-* | --disable-* \
1530 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1531 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1532 | -with-* | --with-* | -without-* | --without-* | --x)
1533 case "$ac_configure_args0 " in
1534 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1537 -* ) ac_must_keep_next=true ;;
1540 ac_configure_args="$ac_configure_args '$ac_arg'"
1545 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1546 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1548 # When interrupted or exit'd, cleanup temporary files, and complete
1549 # config.log. We remove comments because anyway the quotes in there
1550 # would cause problems or look ugly.
1551 # WARNING: Use '\'' to represent an apostrophe within the trap.
1552 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1553 trap 'exit_status=$?
1554 # Save into config.log some information that might help in debugging.
1559 ## ---------------- ##
1560 ## Cache variables. ##
1561 ## ---------------- ##
1564 # The following way of writing the cache mishandles newlines in values,
1566 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1567 eval ac_val=\$$ac_var
1571 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
1572 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1575 _ | IFS | as_nl) ;; #(
1576 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1577 *) $as_unset $ac_var ;;
1582 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1583 *${as_nl}ac_space=\ *)
1585 "s/'\''/'\''\\\\'\'''\''/g;
1586 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1589 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1597 ## ----------------- ##
1598 ## Output variables. ##
1599 ## ----------------- ##
1602 for ac_var in $ac_subst_vars
1604 eval ac_val=\$$ac_var
1606 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1608 $as_echo "$ac_var='\''$ac_val'\''"
1612 if test -n "$ac_subst_files"; then
1614 ## ------------------- ##
1615 ## File substitutions. ##
1616 ## ------------------- ##
1619 for ac_var in $ac_subst_files
1621 eval ac_val=\$$ac_var
1623 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1625 $as_echo "$ac_var='\''$ac_val'\''"
1630 if test -s confdefs.h; then
1640 test "$ac_signal" != 0 &&
1641 $as_echo "$as_me: caught signal $ac_signal"
1642 $as_echo "$as_me: exit $exit_status"
1644 rm -f core *.core core.conftest.* &&
1645 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1648 for ac_signal in 1 2 13 15; do
1649 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1653 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1654 rm -f -r conftest* confdefs.h
1656 # Predefined preprocessor variables.
1658 cat >>confdefs.h <<_ACEOF
1659 #define PACKAGE_NAME "$PACKAGE_NAME"
1663 cat >>confdefs.h <<_ACEOF
1664 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1668 cat >>confdefs.h <<_ACEOF
1669 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1673 cat >>confdefs.h <<_ACEOF
1674 #define PACKAGE_STRING "$PACKAGE_STRING"
1678 cat >>confdefs.h <<_ACEOF
1679 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1683 # Let the site file select an alternate cache file if it wants to.
1684 # Prefer an explicitly selected file to automatically selected ones.
1687 if test -n "$CONFIG_SITE"; then
1688 ac_site_file1=$CONFIG_SITE
1689 elif test "x$prefix" != xNONE; then
1690 ac_site_file1=$prefix/share/config.site
1691 ac_site_file2=$prefix/etc/config.site
1693 ac_site_file1=$ac_default_prefix/share/config.site
1694 ac_site_file2=$ac_default_prefix/etc/config.site
1696 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
1698 test "x$ac_site_file" = xNONE && continue
1699 if test -r "$ac_site_file"; then
1700 { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1701 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
1702 sed 's/^/| /' "$ac_site_file" >&5
1707 if test -r "$cache_file"; then
1708 # Some versions of bash will fail to source /dev/null (special
1709 # files actually), so we avoid doing that.
1710 if test -f "$cache_file"; then
1711 { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5
1712 $as_echo "$as_me: loading cache $cache_file" >&6;}
1714 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1715 *) . "./$cache_file";;
1719 { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5
1720 $as_echo "$as_me: creating cache $cache_file" >&6;}
1724 # Check that the precious variables saved in the cache have kept the same
1726 ac_cache_corrupted=false
1727 for ac_var in $ac_precious_vars; do
1728 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1729 eval ac_new_set=\$ac_env_${ac_var}_set
1730 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1731 eval ac_new_val=\$ac_env_${ac_var}_value
1732 case $ac_old_set,$ac_new_set in
1734 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1735 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1736 ac_cache_corrupted=: ;;
1738 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1739 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1740 ac_cache_corrupted=: ;;
1743 if test "x$ac_old_val" != "x$ac_new_val"; then
1744 # differences in whitespace do not lead to failure.
1745 ac_old_val_w=`echo x $ac_old_val`
1746 ac_new_val_w=`echo x $ac_new_val`
1747 if test "$ac_old_val_w" != "$ac_new_val_w"; then
1748 { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1749 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1750 ac_cache_corrupted=:
1752 { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
1753 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
1754 eval $ac_var=\$ac_old_val
1756 { $as_echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5
1757 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
1758 { $as_echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5
1759 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
1762 # Pass precious variables to config.status.
1763 if test "$ac_new_set" = set; then
1765 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1766 *) ac_arg=$ac_var=$ac_new_val ;;
1768 case " $ac_configure_args " in
1769 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1770 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1774 if $ac_cache_corrupted; then
1775 { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
1776 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1777 { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1778 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1779 { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1780 $as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1781 { (exit 1); exit 1; }; }
1809 ac_cpp='$CPP $CPPFLAGS'
1810 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1811 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1812 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1815 ac_config_headers="$ac_config_headers nbcompat/config.h"
1817 test "$program_prefix" != NONE &&
1818 program_transform_name="s&^&$program_prefix&;$program_transform_name"
1819 # Use a double $ so make ignores it.
1820 test "$program_suffix" != NONE &&
1821 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
1822 # Double any \ or $.
1823 # By default was `s,x,x', remove it if useless.
1824 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
1825 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
1829 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
1830 if test -f "$ac_dir/install-sh"; then
1832 ac_install_sh="$ac_aux_dir/install-sh -c"
1834 elif test -f "$ac_dir/install.sh"; then
1836 ac_install_sh="$ac_aux_dir/install.sh -c"
1838 elif test -f "$ac_dir/shtool"; then
1840 ac_install_sh="$ac_aux_dir/shtool install -c"
1844 if test -z "$ac_aux_dir"; then
1845 { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
1846 $as_echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
1847 { (exit 1); exit 1; }; }
1850 # These three variables are undocumented and unsupported,
1851 # and are intended to be withdrawn in a future Autoconf release.
1852 # They can cause serious problems if a builder's source tree is in a directory
1853 # whose full name contains unusual characters.
1854 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1855 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1856 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1859 # Make sure we can run config.sub.
1860 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
1861 { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
1862 $as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
1863 { (exit 1); exit 1; }; }
1865 { $as_echo "$as_me:$LINENO: checking build system type" >&5
1866 $as_echo_n "checking build system type... " >&6; }
1867 if test "${ac_cv_build+set}" = set; then
1868 $as_echo_n "(cached) " >&6
1870 ac_build_alias=$build_alias
1871 test "x$ac_build_alias" = x &&
1872 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
1873 test "x$ac_build_alias" = x &&
1874 { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1875 $as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1876 { (exit 1); exit 1; }; }
1877 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
1878 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
1879 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
1880 { (exit 1); exit 1; }; }
1883 { $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1884 $as_echo "$ac_cv_build" >&6; }
1885 case $ac_cv_build in
1887 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
1888 $as_echo "$as_me: error: invalid value of canonical build" >&2;}
1889 { (exit 1); exit 1; }; };;
1892 ac_save_IFS=$IFS; IFS='-'
1898 # Remember, the first character of IFS is used to create $*,
1899 # except with old shells:
1902 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
1905 { $as_echo "$as_me:$LINENO: checking host system type" >&5
1906 $as_echo_n "checking host system type... " >&6; }
1907 if test "${ac_cv_host+set}" = set; then
1908 $as_echo_n "(cached) " >&6
1910 if test "x$host_alias" = x; then
1911 ac_cv_host=$ac_cv_build
1913 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
1914 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
1915 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
1916 { (exit 1); exit 1; }; }
1920 { $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1921 $as_echo "$ac_cv_host" >&6; }
1924 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
1925 $as_echo "$as_me: error: invalid value of canonical host" >&2;}
1926 { (exit 1); exit 1; }; };;
1929 ac_save_IFS=$IFS; IFS='-'
1935 # Remember, the first character of IFS is used to create $*,
1936 # except with old shells:
1939 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
1942 CANONICAL_HOST=$host
1946 # Checks for programs.
1947 { $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1948 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
1950 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
1951 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
1952 $as_echo_n "(cached) " >&6
1954 cat >conftest.make <<\_ACEOF
1957 @echo '@@@%%%=$(MAKE)=@@@%%%'
1959 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1960 case `${MAKE-make} -f conftest.make 2>/dev/null` in
1962 eval ac_cv_prog_make_${ac_make}_set=yes;;
1964 eval ac_cv_prog_make_${ac_make}_set=no;;
1968 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
1969 { $as_echo "$as_me:$LINENO: result: yes" >&5
1970 $as_echo "yes" >&6; }
1973 { $as_echo "$as_me:$LINENO: result: no" >&5
1974 $as_echo "no" >&6; }
1975 SET_MAKE="MAKE=${MAKE-make}"
1979 ac_cpp='$CPP $CPPFLAGS'
1980 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1981 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1982 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1983 if test -n "$ac_tool_prefix"; then
1984 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1985 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1986 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
1987 $as_echo_n "checking for $ac_word... " >&6; }
1988 if test "${ac_cv_prog_CC+set}" = set; then
1989 $as_echo_n "(cached) " >&6
1991 if test -n "$CC"; then
1992 ac_cv_prog_CC="$CC" # Let the user override the test.
1994 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1998 test -z "$as_dir" && as_dir=.
1999 for ac_exec_ext in '' $ac_executable_extensions; do
2000 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2001 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2002 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2012 if test -n "$CC"; then
2013 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2014 $as_echo "$CC" >&6; }
2016 { $as_echo "$as_me:$LINENO: result: no" >&5
2017 $as_echo "no" >&6; }
2022 if test -z "$ac_cv_prog_CC"; then
2024 # Extract the first word of "gcc", so it can be a program name with args.
2025 set dummy gcc; ac_word=$2
2026 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2027 $as_echo_n "checking for $ac_word... " >&6; }
2028 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2029 $as_echo_n "(cached) " >&6
2031 if test -n "$ac_ct_CC"; then
2032 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2034 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2038 test -z "$as_dir" && as_dir=.
2039 for ac_exec_ext in '' $ac_executable_extensions; do
2040 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2041 ac_cv_prog_ac_ct_CC="gcc"
2042 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2051 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2052 if test -n "$ac_ct_CC"; then
2053 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2054 $as_echo "$ac_ct_CC" >&6; }
2056 { $as_echo "$as_me:$LINENO: result: no" >&5
2057 $as_echo "no" >&6; }
2060 if test "x$ac_ct_CC" = x; then
2063 case $cross_compiling:$ac_tool_warned in
2065 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2066 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2067 ac_tool_warned=yes ;;
2075 if test -z "$CC"; then
2076 if test -n "$ac_tool_prefix"; then
2077 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2078 set dummy ${ac_tool_prefix}cc; ac_word=$2
2079 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2080 $as_echo_n "checking for $ac_word... " >&6; }
2081 if test "${ac_cv_prog_CC+set}" = set; then
2082 $as_echo_n "(cached) " >&6
2084 if test -n "$CC"; then
2085 ac_cv_prog_CC="$CC" # Let the user override the test.
2087 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2091 test -z "$as_dir" && as_dir=.
2092 for ac_exec_ext in '' $ac_executable_extensions; do
2093 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2094 ac_cv_prog_CC="${ac_tool_prefix}cc"
2095 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2105 if test -n "$CC"; then
2106 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2107 $as_echo "$CC" >&6; }
2109 { $as_echo "$as_me:$LINENO: result: no" >&5
2110 $as_echo "no" >&6; }
2116 if test -z "$CC"; then
2117 # Extract the first word of "cc", so it can be a program name with args.
2118 set dummy cc; ac_word=$2
2119 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2120 $as_echo_n "checking for $ac_word... " >&6; }
2121 if test "${ac_cv_prog_CC+set}" = set; then
2122 $as_echo_n "(cached) " >&6
2124 if test -n "$CC"; then
2125 ac_cv_prog_CC="$CC" # Let the user override the test.
2128 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2132 test -z "$as_dir" && as_dir=.
2133 for ac_exec_ext in '' $ac_executable_extensions; do
2134 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2135 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2136 ac_prog_rejected=yes
2140 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2147 if test $ac_prog_rejected = yes; then
2148 # We found a bogon in the path, so make sure we never use it.
2149 set dummy $ac_cv_prog_CC
2151 if test $# != 0; then
2152 # We chose a different compiler from the bogus one.
2153 # However, it has the same basename, so the bogon will be chosen
2154 # first if we set CC to just the basename; use the full file name.
2156 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2162 if test -n "$CC"; then
2163 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2164 $as_echo "$CC" >&6; }
2166 { $as_echo "$as_me:$LINENO: result: no" >&5
2167 $as_echo "no" >&6; }
2172 if test -z "$CC"; then
2173 if test -n "$ac_tool_prefix"; then
2174 for ac_prog in cl.exe
2176 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2177 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2178 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2179 $as_echo_n "checking for $ac_word... " >&6; }
2180 if test "${ac_cv_prog_CC+set}" = set; then
2181 $as_echo_n "(cached) " >&6
2183 if test -n "$CC"; then
2184 ac_cv_prog_CC="$CC" # Let the user override the test.
2186 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2190 test -z "$as_dir" && as_dir=.
2191 for ac_exec_ext in '' $ac_executable_extensions; do
2192 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2193 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2194 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2204 if test -n "$CC"; then
2205 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2206 $as_echo "$CC" >&6; }
2208 { $as_echo "$as_me:$LINENO: result: no" >&5
2209 $as_echo "no" >&6; }
2213 test -n "$CC" && break
2216 if test -z "$CC"; then
2218 for ac_prog in cl.exe
2220 # Extract the first word of "$ac_prog", so it can be a program name with args.
2221 set dummy $ac_prog; ac_word=$2
2222 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2223 $as_echo_n "checking for $ac_word... " >&6; }
2224 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2225 $as_echo_n "(cached) " >&6
2227 if test -n "$ac_ct_CC"; then
2228 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2230 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2234 test -z "$as_dir" && as_dir=.
2235 for ac_exec_ext in '' $ac_executable_extensions; do
2236 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2237 ac_cv_prog_ac_ct_CC="$ac_prog"
2238 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2247 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2248 if test -n "$ac_ct_CC"; then
2249 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2250 $as_echo "$ac_ct_CC" >&6; }
2252 { $as_echo "$as_me:$LINENO: result: no" >&5
2253 $as_echo "no" >&6; }
2257 test -n "$ac_ct_CC" && break
2260 if test "x$ac_ct_CC" = x; then
2263 case $cross_compiling:$ac_tool_warned in
2265 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2266 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2267 ac_tool_warned=yes ;;
2276 test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2277 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2278 { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2279 See \`config.log' for more details." >&5
2280 $as_echo "$as_me: error: no acceptable C compiler found in \$PATH
2281 See \`config.log' for more details." >&2;}
2282 { (exit 1); exit 1; }; }; }
2284 # Provide some information about the compiler.
2285 $as_echo "$as_me:$LINENO: checking for C compiler version" >&5
2288 { (ac_try="$ac_compiler --version >&5"
2290 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2291 *) ac_try_echo=$ac_try;;
2293 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2294 $as_echo "$ac_try_echo") >&5
2295 (eval "$ac_compiler --version >&5") 2>&5
2297 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2298 (exit $ac_status); }
2299 { (ac_try="$ac_compiler -v >&5"
2301 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2302 *) ac_try_echo=$ac_try;;
2304 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2305 $as_echo "$ac_try_echo") >&5
2306 (eval "$ac_compiler -v >&5") 2>&5
2308 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2309 (exit $ac_status); }
2310 { (ac_try="$ac_compiler -V >&5"
2312 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2313 *) ac_try_echo=$ac_try;;
2315 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2316 $as_echo "$ac_try_echo") >&5
2317 (eval "$ac_compiler -V >&5") 2>&5
2319 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2320 (exit $ac_status); }
2322 cat >conftest.$ac_ext <<_ACEOF
2325 cat confdefs.h >>conftest.$ac_ext
2326 cat >>conftest.$ac_ext <<_ACEOF
2327 /* end confdefs.h. */
2337 ac_clean_files_save=$ac_clean_files
2338 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2339 # Try to create an executable without -o first, disregard a.out.
2340 # It will help us diagnose broken compilers, and finding out an intuition
2342 { $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2343 $as_echo_n "checking for C compiler default output file name... " >&6; }
2344 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2346 # The possible output files:
2347 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2350 for ac_file in $ac_files
2353 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2354 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2359 if { (ac_try="$ac_link_default"
2361 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2362 *) ac_try_echo=$ac_try;;
2364 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2365 $as_echo "$ac_try_echo") >&5
2366 (eval "$ac_link_default") 2>&5
2368 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2369 (exit $ac_status); }; then
2370 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2371 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2372 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2373 # so that the user can short-circuit this test for compilers unknown to
2375 for ac_file in $ac_files ''
2377 test -f "$ac_file" || continue
2379 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2382 # We found the default executable, but exeext='' is most
2386 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2388 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2390 # We set ac_cv_exeext here because the later test for it is not
2391 # safe: cross compilers may not add the suffix if given an `-o'
2392 # argument, so we may need to know it at that point already.
2393 # Even if this section looks crufty: it has the advantage of
2400 test "$ac_cv_exeext" = no && ac_cv_exeext=
2406 { $as_echo "$as_me:$LINENO: result: $ac_file" >&5
2407 $as_echo "$ac_file" >&6; }
2408 if test -z "$ac_file"; then
2409 $as_echo "$as_me: failed program was:" >&5
2410 sed 's/^/| /' conftest.$ac_ext >&5
2412 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2413 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2414 { { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables
2415 See \`config.log' for more details." >&5
2416 $as_echo "$as_me: error: C compiler cannot create executables
2417 See \`config.log' for more details." >&2;}
2418 { (exit 77); exit 77; }; }; }
2421 ac_exeext=$ac_cv_exeext
2423 # Check that the compiler produces executables we can run. If not, either
2424 # the compiler is broken, or we cross compile.
2425 { $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2426 $as_echo_n "checking whether the C compiler works... " >&6; }
2427 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2428 # If not cross compiling, check that we can run a simple program.
2429 if test "$cross_compiling" != yes; then
2430 if { ac_try='./$ac_file'
2431 { (case "(($ac_try" in
2432 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2433 *) ac_try_echo=$ac_try;;
2435 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2436 $as_echo "$ac_try_echo") >&5
2437 (eval "$ac_try") 2>&5
2439 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2440 (exit $ac_status); }; }; then
2443 if test "$cross_compiling" = maybe; then
2446 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2447 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2448 { { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs.
2449 If you meant to cross compile, use \`--host'.
2450 See \`config.log' for more details." >&5
2451 $as_echo "$as_me: error: cannot run C compiled programs.
2452 If you meant to cross compile, use \`--host'.
2453 See \`config.log' for more details." >&2;}
2454 { (exit 1); exit 1; }; }; }
2458 { $as_echo "$as_me:$LINENO: result: yes" >&5
2459 $as_echo "yes" >&6; }
2461 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
2462 ac_clean_files=$ac_clean_files_save
2463 # Check that the compiler produces executables we can run. If not, either
2464 # the compiler is broken, or we cross compile.
2465 { $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2466 $as_echo_n "checking whether we are cross compiling... " >&6; }
2467 { $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5
2468 $as_echo "$cross_compiling" >&6; }
2470 { $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5
2471 $as_echo_n "checking for suffix of executables... " >&6; }
2472 if { (ac_try="$ac_link"
2474 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2475 *) ac_try_echo=$ac_try;;
2477 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2478 $as_echo "$ac_try_echo") >&5
2479 (eval "$ac_link") 2>&5
2481 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2482 (exit $ac_status); }; then
2483 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2484 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2485 # work properly (i.e., refer to `conftest.exe'), while it won't with
2487 for ac_file in conftest.exe conftest conftest.*; do
2488 test -f "$ac_file" || continue
2490 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2491 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2497 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2498 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2499 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2500 See \`config.log' for more details." >&5
2501 $as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2502 See \`config.log' for more details." >&2;}
2503 { (exit 1); exit 1; }; }; }
2506 rm -f conftest$ac_cv_exeext
2507 { $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2508 $as_echo "$ac_cv_exeext" >&6; }
2510 rm -f conftest.$ac_ext
2511 EXEEXT=$ac_cv_exeext
2513 { $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5
2514 $as_echo_n "checking for suffix of object files... " >&6; }
2515 if test "${ac_cv_objext+set}" = set; then
2516 $as_echo_n "(cached) " >&6
2518 cat >conftest.$ac_ext <<_ACEOF
2521 cat confdefs.h >>conftest.$ac_ext
2522 cat >>conftest.$ac_ext <<_ACEOF
2523 /* end confdefs.h. */
2533 rm -f conftest.o conftest.obj
2534 if { (ac_try="$ac_compile"
2536 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2537 *) ac_try_echo=$ac_try;;
2539 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2540 $as_echo "$ac_try_echo") >&5
2541 (eval "$ac_compile") 2>&5
2543 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2544 (exit $ac_status); }; then
2545 for ac_file in conftest.o conftest.obj conftest.*; do
2546 test -f "$ac_file" || continue;
2548 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
2549 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2554 $as_echo "$as_me: failed program was:" >&5
2555 sed 's/^/| /' conftest.$ac_ext >&5
2557 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2558 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2559 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2560 See \`config.log' for more details." >&5
2561 $as_echo "$as_me: error: cannot compute suffix of object files: cannot compile
2562 See \`config.log' for more details." >&2;}
2563 { (exit 1); exit 1; }; }; }
2566 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2568 { $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2569 $as_echo "$ac_cv_objext" >&6; }
2570 OBJEXT=$ac_cv_objext
2572 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2573 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
2574 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2575 $as_echo_n "(cached) " >&6
2577 cat >conftest.$ac_ext <<_ACEOF
2580 cat confdefs.h >>conftest.$ac_ext
2581 cat >>conftest.$ac_ext <<_ACEOF
2582 /* end confdefs.h. */
2595 rm -f conftest.$ac_objext
2596 if { (ac_try="$ac_compile"
2598 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2599 *) ac_try_echo=$ac_try;;
2601 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2602 $as_echo "$ac_try_echo") >&5
2603 (eval "$ac_compile") 2>conftest.er1
2605 grep -v '^ *+' conftest.er1 >conftest.err
2607 cat conftest.err >&5
2608 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2609 (exit $ac_status); } && {
2610 test -z "$ac_c_werror_flag" ||
2611 test ! -s conftest.err
2612 } && test -s conftest.$ac_objext; then
2615 $as_echo "$as_me: failed program was:" >&5
2616 sed 's/^/| /' conftest.$ac_ext >&5
2621 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2622 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2625 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2626 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
2627 if test $ac_compiler_gnu = yes; then
2632 ac_test_CFLAGS=${CFLAGS+set}
2633 ac_save_CFLAGS=$CFLAGS
2634 { $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2635 $as_echo_n "checking whether $CC accepts -g... " >&6; }
2636 if test "${ac_cv_prog_cc_g+set}" = set; then
2637 $as_echo_n "(cached) " >&6
2639 ac_save_c_werror_flag=$ac_c_werror_flag
2640 ac_c_werror_flag=yes
2643 cat >conftest.$ac_ext <<_ACEOF
2646 cat confdefs.h >>conftest.$ac_ext
2647 cat >>conftest.$ac_ext <<_ACEOF
2648 /* end confdefs.h. */
2658 rm -f conftest.$ac_objext
2659 if { (ac_try="$ac_compile"
2661 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2662 *) ac_try_echo=$ac_try;;
2664 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2665 $as_echo "$ac_try_echo") >&5
2666 (eval "$ac_compile") 2>conftest.er1
2668 grep -v '^ *+' conftest.er1 >conftest.err
2670 cat conftest.err >&5
2671 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2672 (exit $ac_status); } && {
2673 test -z "$ac_c_werror_flag" ||
2674 test ! -s conftest.err
2675 } && test -s conftest.$ac_objext; then
2678 $as_echo "$as_me: failed program was:" >&5
2679 sed 's/^/| /' conftest.$ac_ext >&5
2682 cat >conftest.$ac_ext <<_ACEOF
2685 cat confdefs.h >>conftest.$ac_ext
2686 cat >>conftest.$ac_ext <<_ACEOF
2687 /* end confdefs.h. */
2697 rm -f conftest.$ac_objext
2698 if { (ac_try="$ac_compile"
2700 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2701 *) ac_try_echo=$ac_try;;
2703 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2704 $as_echo "$ac_try_echo") >&5
2705 (eval "$ac_compile") 2>conftest.er1
2707 grep -v '^ *+' conftest.er1 >conftest.err
2709 cat conftest.err >&5
2710 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2711 (exit $ac_status); } && {
2712 test -z "$ac_c_werror_flag" ||
2713 test ! -s conftest.err
2714 } && test -s conftest.$ac_objext; then
2717 $as_echo "$as_me: failed program was:" >&5
2718 sed 's/^/| /' conftest.$ac_ext >&5
2720 ac_c_werror_flag=$ac_save_c_werror_flag
2722 cat >conftest.$ac_ext <<_ACEOF
2725 cat confdefs.h >>conftest.$ac_ext
2726 cat >>conftest.$ac_ext <<_ACEOF
2727 /* end confdefs.h. */
2737 rm -f conftest.$ac_objext
2738 if { (ac_try="$ac_compile"
2740 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2741 *) ac_try_echo=$ac_try;;
2743 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2744 $as_echo "$ac_try_echo") >&5
2745 (eval "$ac_compile") 2>conftest.er1
2747 grep -v '^ *+' conftest.er1 >conftest.err
2749 cat conftest.err >&5
2750 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2751 (exit $ac_status); } && {
2752 test -z "$ac_c_werror_flag" ||
2753 test ! -s conftest.err
2754 } && test -s conftest.$ac_objext; then
2757 $as_echo "$as_me: failed program was:" >&5
2758 sed 's/^/| /' conftest.$ac_ext >&5
2763 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2766 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2769 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2770 ac_c_werror_flag=$ac_save_c_werror_flag
2772 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2773 $as_echo "$ac_cv_prog_cc_g" >&6; }
2774 if test "$ac_test_CFLAGS" = set; then
2775 CFLAGS=$ac_save_CFLAGS
2776 elif test $ac_cv_prog_cc_g = yes; then
2777 if test "$GCC" = yes; then
2783 if test "$GCC" = yes; then
2789 { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2790 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
2791 if test "${ac_cv_prog_cc_c89+set}" = set; then
2792 $as_echo_n "(cached) " >&6
2794 ac_cv_prog_cc_c89=no
2796 cat >conftest.$ac_ext <<_ACEOF
2799 cat confdefs.h >>conftest.$ac_ext
2800 cat >>conftest.$ac_ext <<_ACEOF
2801 /* end confdefs.h. */
2804 #include <sys/types.h>
2805 #include <sys/stat.h>
2806 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2807 struct buf { int x; };
2808 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2809 static char *e (p, i)
2815 static char *f (char * (*g) (char **, int), char **p, ...)
2820 s = g (p, va_arg (v,int));
2825 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2826 function prototypes and stuff, but not '\xHH' hex character constants.
2827 These don't provoke an error unfortunately, instead are silently treated
2828 as 'x'. The following induces an error, until -std is added to get
2829 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2830 array size at least. It's necessary to write '\x00'==0 to get something
2831 that's true only with -std. */
2832 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2834 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2835 inside strings and character constants. */
2837 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2839 int test (int i, double x);
2840 struct s1 {int (*f) (int a);};
2841 struct s2 {int (*f) (double a);};
2842 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2848 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2853 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2854 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2856 CC="$ac_save_CC $ac_arg"
2857 rm -f conftest.$ac_objext
2858 if { (ac_try="$ac_compile"
2860 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2861 *) ac_try_echo=$ac_try;;
2863 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2864 $as_echo "$ac_try_echo") >&5
2865 (eval "$ac_compile") 2>conftest.er1
2867 grep -v '^ *+' conftest.er1 >conftest.err
2869 cat conftest.err >&5
2870 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2871 (exit $ac_status); } && {
2872 test -z "$ac_c_werror_flag" ||
2873 test ! -s conftest.err
2874 } && test -s conftest.$ac_objext; then
2875 ac_cv_prog_cc_c89=$ac_arg
2877 $as_echo "$as_me: failed program was:" >&5
2878 sed 's/^/| /' conftest.$ac_ext >&5
2883 rm -f core conftest.err conftest.$ac_objext
2884 test "x$ac_cv_prog_cc_c89" != "xno" && break
2886 rm -f conftest.$ac_ext
2891 case "x$ac_cv_prog_cc_c89" in
2893 { $as_echo "$as_me:$LINENO: result: none needed" >&5
2894 $as_echo "none needed" >&6; } ;;
2896 { $as_echo "$as_me:$LINENO: result: unsupported" >&5
2897 $as_echo "unsupported" >&6; } ;;
2899 CC="$CC $ac_cv_prog_cc_c89"
2900 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
2901 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
2906 ac_cpp='$CPP $CPPFLAGS'
2907 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2908 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2909 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2911 # Find a good install program. We prefer a C program (faster),
2912 # so one script is as good as another. But avoid the broken or
2913 # incompatible versions:
2914 # SysV /etc/install, /usr/sbin/install
2915 # SunOS /usr/etc/install
2916 # IRIX /sbin/install
2918 # AmigaOS /C/install, which installs bootblocks on floppy discs
2919 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2920 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2921 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2922 # OS/2's system install, which has a completely different semantic
2923 # ./install, which can be erroneously created by make from ./install.sh.
2924 # Reject install programs that cannot install multiple files.
2925 { $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2926 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2927 if test -z "$INSTALL"; then
2928 if test "${ac_cv_path_install+set}" = set; then
2929 $as_echo_n "(cached) " >&6
2931 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2935 test -z "$as_dir" && as_dir=.
2936 # Account for people who put trailing slashes in PATH elements.
2938 ./ | .// | /cC/* | \
2939 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2940 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2943 # OSF1 and SCO ODT 3.0 have their own names for install.
2944 # Don't use installbsd from OSF since it installs stuff as root
2946 for ac_prog in ginstall scoinst install; do
2947 for ac_exec_ext in '' $ac_executable_extensions; do
2948 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2949 if test $ac_prog = install &&
2950 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2951 # AIX install. It has an incompatible calling convention.
2953 elif test $ac_prog = install &&
2954 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2955 # program-specific install script used by HP pwplus--don't use.
2958 rm -rf conftest.one conftest.two conftest.dir
2959 echo one > conftest.one
2960 echo two > conftest.two
2962 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2963 test -s conftest.one && test -s conftest.two &&
2964 test -s conftest.dir/conftest.one &&
2965 test -s conftest.dir/conftest.two
2967 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2980 rm -rf conftest.one conftest.two conftest.dir
2983 if test "${ac_cv_path_install+set}" = set; then
2984 INSTALL=$ac_cv_path_install
2986 # As a last resort, use the slow shell script. Don't cache a
2987 # value for INSTALL within a source directory, because that will
2988 # break other packages using the cache if that directory is
2989 # removed, or if the value is a relative name.
2990 INSTALL=$ac_install_sh
2993 { $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
2994 $as_echo "$INSTALL" >&6; }
2996 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2997 # It thinks the first close brace ends the variable substitution.
2998 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3000 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3002 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3004 { $as_echo "$as_me:$LINENO: checking whether ln -s works" >&5
3005 $as_echo_n "checking whether ln -s works... " >&6; }
3007 if test "$LN_S" = "ln -s"; then
3008 { $as_echo "$as_me:$LINENO: result: yes" >&5
3009 $as_echo "yes" >&6; }
3011 { $as_echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3012 $as_echo "no, using $LN_S" >&6; }
3015 if test -n "$ac_tool_prefix"; then
3016 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3017 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3018 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3019 $as_echo_n "checking for $ac_word... " >&6; }
3020 if test "${ac_cv_prog_RANLIB+set}" = set; then
3021 $as_echo_n "(cached) " >&6
3023 if test -n "$RANLIB"; then
3024 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3026 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3030 test -z "$as_dir" && as_dir=.
3031 for ac_exec_ext in '' $ac_executable_extensions; do
3032 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3033 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3034 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3043 RANLIB=$ac_cv_prog_RANLIB
3044 if test -n "$RANLIB"; then
3045 { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5
3046 $as_echo "$RANLIB" >&6; }
3048 { $as_echo "$as_me:$LINENO: result: no" >&5
3049 $as_echo "no" >&6; }
3054 if test -z "$ac_cv_prog_RANLIB"; then
3055 ac_ct_RANLIB=$RANLIB
3056 # Extract the first word of "ranlib", so it can be a program name with args.
3057 set dummy ranlib; ac_word=$2
3058 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3059 $as_echo_n "checking for $ac_word... " >&6; }
3060 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3061 $as_echo_n "(cached) " >&6
3063 if test -n "$ac_ct_RANLIB"; then
3064 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3066 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3070 test -z "$as_dir" && as_dir=.
3071 for ac_exec_ext in '' $ac_executable_extensions; do
3072 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3073 ac_cv_prog_ac_ct_RANLIB="ranlib"
3074 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3083 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3084 if test -n "$ac_ct_RANLIB"; then
3085 { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3086 $as_echo "$ac_ct_RANLIB" >&6; }
3088 { $as_echo "$as_me:$LINENO: result: no" >&5
3089 $as_echo "no" >&6; }
3092 if test "x$ac_ct_RANLIB" = x; then
3095 case $cross_compiling:$ac_tool_warned in
3097 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
3098 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3099 ac_tool_warned=yes ;;
3101 RANLIB=$ac_ct_RANLIB
3104 RANLIB="$ac_cv_prog_RANLIB"
3107 for ac_prog in gawk mawk nawk awk
3109 # Extract the first word of "$ac_prog", so it can be a program name with args.
3110 set dummy $ac_prog; ac_word=$2
3111 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3112 $as_echo_n "checking for $ac_word... " >&6; }
3113 if test "${ac_cv_prog_AWK+set}" = set; then
3114 $as_echo_n "(cached) " >&6
3116 if test -n "$AWK"; then
3117 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3119 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3123 test -z "$as_dir" && as_dir=.
3124 for ac_exec_ext in '' $ac_executable_extensions; do
3125 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3126 ac_cv_prog_AWK="$ac_prog"
3127 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3137 if test -n "$AWK"; then
3138 { $as_echo "$as_me:$LINENO: result: $AWK" >&5
3139 $as_echo "$AWK" >&6; }
3141 { $as_echo "$as_me:$LINENO: result: no" >&5
3142 $as_echo "no" >&6; }
3146 test -n "$AWK" && break
3149 # Extract the first word of "ar", so it can be a program name with args.
3150 set dummy ar; ac_word=$2
3151 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3152 $as_echo_n "checking for $ac_word... " >&6; }
3153 if test "${ac_cv_prog_AR+set}" = set; then
3154 $as_echo_n "(cached) " >&6
3156 if test -n "$AR"; then
3157 ac_cv_prog_AR="$AR" # Let the user override the test.
3159 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3163 test -z "$as_dir" && as_dir=.
3164 for ac_exec_ext in '' $ac_executable_extensions; do
3165 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3167 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3177 if test -n "$AR"; then
3178 { $as_echo "$as_me:$LINENO: result: $AR" >&5
3179 $as_echo "$AR" >&6; }
3181 { $as_echo "$as_me:$LINENO: result: no" >&5
3182 $as_echo "no" >&6; }
3187 AUTOCONF=${AUTOCONF-"$srcdir/missing --run autoconf"}
3189 AUTOHEADER=${AUTOHEADER-"$srcdir/missing --run autoheader"}
3194 { $as_echo "$as_me:$LINENO: checking for fparseln in -lutil" >&5
3195 $as_echo_n "checking for fparseln in -lutil... " >&6; }
3196 if test "${ac_cv_lib_util_fparseln+set}" = set; then
3197 $as_echo_n "(cached) " >&6
3199 ac_check_lib_save_LIBS=$LIBS
3201 cat >conftest.$ac_ext <<_ACEOF
3204 cat confdefs.h >>conftest.$ac_ext
3205 cat >>conftest.$ac_ext <<_ACEOF
3206 /* end confdefs.h. */
3208 /* Override any GCC internal prototype to avoid an error.
3209 Use char because int might match the return type of a GCC
3210 builtin and then its argument prototype would still apply. */
3223 rm -f conftest.$ac_objext conftest$ac_exeext
3224 if { (ac_try="$ac_link"
3226 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3227 *) ac_try_echo=$ac_try;;
3229 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3230 $as_echo "$ac_try_echo") >&5
3231 (eval "$ac_link") 2>conftest.er1
3233 grep -v '^ *+' conftest.er1 >conftest.err
3235 cat conftest.err >&5
3236 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3237 (exit $ac_status); } && {
3238 test -z "$ac_c_werror_flag" ||
3239 test ! -s conftest.err
3240 } && test -s conftest$ac_exeext && {
3241 test "$cross_compiling" = yes ||
3242 $as_test_x conftest$ac_exeext
3244 ac_cv_lib_util_fparseln=yes
3246 $as_echo "$as_me: failed program was:" >&5
3247 sed 's/^/| /' conftest.$ac_ext >&5
3249 ac_cv_lib_util_fparseln=no
3252 rm -rf conftest.dSYM
3253 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
3254 conftest$ac_exeext conftest.$ac_ext
3255 LIBS=$ac_check_lib_save_LIBS
3257 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_util_fparseln" >&5
3258 $as_echo "$ac_cv_lib_util_fparseln" >&6; }
3259 if test "x$ac_cv_lib_util_fparseln" = x""yes; then
3260 cat >>confdefs.h <<_ACEOF
3261 #define HAVE_LIBUTIL 1
3270 ac_cpp='$CPP $CPPFLAGS'
3271 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3272 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3273 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3274 { $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3275 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3276 # On Suns, sometimes $CPP names a directory.
3277 if test -n "$CPP" && test -d "$CPP"; then
3280 if test -z "$CPP"; then
3281 if test "${ac_cv_prog_CPP+set}" = set; then
3282 $as_echo_n "(cached) " >&6
3284 # Double quotes because CPP needs to be expanded
3285 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3288 for ac_c_preproc_warn_flag in '' yes
3290 # Use a header file that comes with gcc, so configuring glibc
3291 # with a fresh cross-compiler works.
3292 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3293 # <limits.h> exists even on freestanding compilers.
3294 # On the NeXT, cc -E runs the code through the compiler's parser,
3295 # not just through cpp. "Syntax error" is here to catch this case.
3296 cat >conftest.$ac_ext <<_ACEOF
3299 cat confdefs.h >>conftest.$ac_ext
3300 cat >>conftest.$ac_ext <<_ACEOF
3301 /* end confdefs.h. */
3303 # include <limits.h>
3305 # include <assert.h>
3309 if { (ac_try="$ac_cpp conftest.$ac_ext"
3311 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3312 *) ac_try_echo=$ac_try;;
3314 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3315 $as_echo "$ac_try_echo") >&5
3316 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3318 grep -v '^ *+' conftest.er1 >conftest.err
3320 cat conftest.err >&5
3321 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3322 (exit $ac_status); } >/dev/null && {
3323 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3324 test ! -s conftest.err
3328 $as_echo "$as_me: failed program was:" >&5
3329 sed 's/^/| /' conftest.$ac_ext >&5
3331 # Broken: fails on valid input.
3335 rm -f conftest.err conftest.$ac_ext
3337 # OK, works on sane cases. Now check whether nonexistent headers
3338 # can be detected and how.
3339 cat >conftest.$ac_ext <<_ACEOF
3342 cat confdefs.h >>conftest.$ac_ext
3343 cat >>conftest.$ac_ext <<_ACEOF
3344 /* end confdefs.h. */
3345 #include <ac_nonexistent.h>
3347 if { (ac_try="$ac_cpp conftest.$ac_ext"
3349 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3350 *) ac_try_echo=$ac_try;;
3352 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3353 $as_echo "$ac_try_echo") >&5
3354 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3356 grep -v '^ *+' conftest.er1 >conftest.err
3358 cat conftest.err >&5
3359 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3360 (exit $ac_status); } >/dev/null && {
3361 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3362 test ! -s conftest.err
3364 # Broken: success on invalid input.
3367 $as_echo "$as_me: failed program was:" >&5
3368 sed 's/^/| /' conftest.$ac_ext >&5
3370 # Passes both tests.
3375 rm -f conftest.err conftest.$ac_ext
3378 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3379 rm -f conftest.err conftest.$ac_ext
3380 if $ac_preproc_ok; then
3392 { $as_echo "$as_me:$LINENO: result: $CPP" >&5
3393 $as_echo "$CPP" >&6; }
3395 for ac_c_preproc_warn_flag in '' yes
3397 # Use a header file that comes with gcc, so configuring glibc
3398 # with a fresh cross-compiler works.
3399 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3400 # <limits.h> exists even on freestanding compilers.
3401 # On the NeXT, cc -E runs the code through the compiler's parser,
3402 # not just through cpp. "Syntax error" is here to catch this case.
3403 cat >conftest.$ac_ext <<_ACEOF
3406 cat confdefs.h >>conftest.$ac_ext
3407 cat >>conftest.$ac_ext <<_ACEOF
3408 /* end confdefs.h. */
3410 # include <limits.h>
3412 # include <assert.h>
3416 if { (ac_try="$ac_cpp conftest.$ac_ext"
3418 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3419 *) ac_try_echo=$ac_try;;
3421 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3422 $as_echo "$ac_try_echo") >&5
3423 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3425 grep -v '^ *+' conftest.er1 >conftest.err
3427 cat conftest.err >&5
3428 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3429 (exit $ac_status); } >/dev/null && {
3430 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3431 test ! -s conftest.err
3435 $as_echo "$as_me: failed program was:" >&5
3436 sed 's/^/| /' conftest.$ac_ext >&5
3438 # Broken: fails on valid input.
3442 rm -f conftest.err conftest.$ac_ext
3444 # OK, works on sane cases. Now check whether nonexistent headers
3445 # can be detected and how.
3446 cat >conftest.$ac_ext <<_ACEOF
3449 cat confdefs.h >>conftest.$ac_ext
3450 cat >>conftest.$ac_ext <<_ACEOF
3451 /* end confdefs.h. */
3452 #include <ac_nonexistent.h>
3454 if { (ac_try="$ac_cpp conftest.$ac_ext"
3456 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3457 *) ac_try_echo=$ac_try;;
3459 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3460 $as_echo "$ac_try_echo") >&5
3461 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3463 grep -v '^ *+' conftest.er1 >conftest.err
3465 cat conftest.err >&5
3466 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3467 (exit $ac_status); } >/dev/null && {
3468 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3469 test ! -s conftest.err
3471 # Broken: success on invalid input.
3474 $as_echo "$as_me: failed program was:" >&5
3475 sed 's/^/| /' conftest.$ac_ext >&5
3477 # Passes both tests.
3482 rm -f conftest.err conftest.$ac_ext
3485 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3486 rm -f conftest.err conftest.$ac_ext
3487 if $ac_preproc_ok; then
3490 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3491 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3492 { { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3493 See \`config.log' for more details." >&5
3494 $as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3495 See \`config.log' for more details." >&2;}
3496 { (exit 1); exit 1; }; }; }
3500 ac_cpp='$CPP $CPPFLAGS'
3501 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3502 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3503 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3506 { $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3507 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3508 if test "${ac_cv_path_GREP+set}" = set; then
3509 $as_echo_n "(cached) " >&6
3511 if test -z "$GREP"; then
3512 ac_path_GREP_found=false
3513 # Loop through the user's path and test for each of PROGNAME-LIST
3514 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3515 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3518 test -z "$as_dir" && as_dir=.
3519 for ac_prog in grep ggrep; do
3520 for ac_exec_ext in '' $ac_executable_extensions; do
3521 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3522 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3523 # Check for GNU ac_path_GREP and select it if it is found.
3524 # Check for GNU $ac_path_GREP
3525 case `"$ac_path_GREP" --version 2>&1` in
3527 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3530 $as_echo_n 0123456789 >"conftest.in"
3533 cat "conftest.in" "conftest.in" >"conftest.tmp"
3534 mv "conftest.tmp" "conftest.in"
3535 cp "conftest.in" "conftest.nl"
3536 $as_echo 'GREP' >> "conftest.nl"
3537 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3538 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3539 ac_count=`expr $ac_count + 1`
3540 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3541 # Best one so far, save it but keep looking for a better one
3542 ac_cv_path_GREP="$ac_path_GREP"
3543 ac_path_GREP_max=$ac_count
3545 # 10*(2^10) chars as input seems more than enough
3546 test $ac_count -gt 10 && break
3548 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3551 $ac_path_GREP_found && break 3
3556 if test -z "$ac_cv_path_GREP"; then
3557 { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3558 $as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3559 { (exit 1); exit 1; }; }
3562 ac_cv_path_GREP=$GREP
3566 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3567 $as_echo "$ac_cv_path_GREP" >&6; }
3568 GREP="$ac_cv_path_GREP"
3571 { $as_echo "$as_me:$LINENO: checking for egrep" >&5
3572 $as_echo_n "checking for egrep... " >&6; }
3573 if test "${ac_cv_path_EGREP+set}" = set; then
3574 $as_echo_n "(cached) " >&6
3576 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3577 then ac_cv_path_EGREP="$GREP -E"
3579 if test -z "$EGREP"; then
3580 ac_path_EGREP_found=false
3581 # Loop through the user's path and test for each of PROGNAME-LIST
3582 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3583 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3586 test -z "$as_dir" && as_dir=.
3587 for ac_prog in egrep; do
3588 for ac_exec_ext in '' $ac_executable_extensions; do
3589 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3590 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3591 # Check for GNU ac_path_EGREP and select it if it is found.
3592 # Check for GNU $ac_path_EGREP
3593 case `"$ac_path_EGREP" --version 2>&1` in
3595 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3598 $as_echo_n 0123456789 >"conftest.in"
3601 cat "conftest.in" "conftest.in" >"conftest.tmp"
3602 mv "conftest.tmp" "conftest.in"
3603 cp "conftest.in" "conftest.nl"
3604 $as_echo 'EGREP' >> "conftest.nl"
3605 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3606 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3607 ac_count=`expr $ac_count + 1`
3608 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3609 # Best one so far, save it but keep looking for a better one
3610 ac_cv_path_EGREP="$ac_path_EGREP"
3611 ac_path_EGREP_max=$ac_count
3613 # 10*(2^10) chars as input seems more than enough
3614 test $ac_count -gt 10 && break
3616 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3619 $ac_path_EGREP_found && break 3
3624 if test -z "$ac_cv_path_EGREP"; then
3625 { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3626 $as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3627 { (exit 1); exit 1; }; }
3630 ac_cv_path_EGREP=$EGREP
3635 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3636 $as_echo "$ac_cv_path_EGREP" >&6; }
3637 EGREP="$ac_cv_path_EGREP"
3640 { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3641 $as_echo_n "checking for ANSI C header files... " >&6; }
3642 if test "${ac_cv_header_stdc+set}" = set; then
3643 $as_echo_n "(cached) " >&6
3645 cat >conftest.$ac_ext <<_ACEOF
3648 cat confdefs.h >>conftest.$ac_ext
3649 cat >>conftest.$ac_ext <<_ACEOF
3650 /* end confdefs.h. */
3664 rm -f conftest.$ac_objext
3665 if { (ac_try="$ac_compile"
3667 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3668 *) ac_try_echo=$ac_try;;
3670 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3671 $as_echo "$ac_try_echo") >&5
3672 (eval "$ac_compile") 2>conftest.er1
3674 grep -v '^ *+' conftest.er1 >conftest.err
3676 cat conftest.err >&5
3677 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3678 (exit $ac_status); } && {
3679 test -z "$ac_c_werror_flag" ||
3680 test ! -s conftest.err
3681 } && test -s conftest.$ac_objext; then
3682 ac_cv_header_stdc=yes
3684 $as_echo "$as_me: failed program was:" >&5
3685 sed 's/^/| /' conftest.$ac_ext >&5
3687 ac_cv_header_stdc=no
3690 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3692 if test $ac_cv_header_stdc = yes; then
3693 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3694 cat >conftest.$ac_ext <<_ACEOF
3697 cat confdefs.h >>conftest.$ac_ext
3698 cat >>conftest.$ac_ext <<_ACEOF
3699 /* end confdefs.h. */
3703 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3704 $EGREP "memchr" >/dev/null 2>&1; then
3707 ac_cv_header_stdc=no
3713 if test $ac_cv_header_stdc = yes; then
3714 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3715 cat >conftest.$ac_ext <<_ACEOF
3718 cat confdefs.h >>conftest.$ac_ext
3719 cat >>conftest.$ac_ext <<_ACEOF
3720 /* end confdefs.h. */
3724 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3725 $EGREP "free" >/dev/null 2>&1; then
3728 ac_cv_header_stdc=no
3734 if test $ac_cv_header_stdc = yes; then
3735 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3736 if test "$cross_compiling" = yes; then
3739 cat >conftest.$ac_ext <<_ACEOF
3742 cat confdefs.h >>conftest.$ac_ext
3743 cat >>conftest.$ac_ext <<_ACEOF
3744 /* end confdefs.h. */
3747 #if ((' ' & 0x0FF) == 0x020)
3748 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3749 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3751 # define ISLOWER(c) \
3752 (('a' <= (c) && (c) <= 'i') \
3753 || ('j' <= (c) && (c) <= 'r') \
3754 || ('s' <= (c) && (c) <= 'z'))
3755 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3758 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3763 for (i = 0; i < 256; i++)
3764 if (XOR (islower (i), ISLOWER (i))
3765 || toupper (i) != TOUPPER (i))
3770 rm -f conftest$ac_exeext
3771 if { (ac_try="$ac_link"
3773 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3774 *) ac_try_echo=$ac_try;;
3776 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3777 $as_echo "$ac_try_echo") >&5
3778 (eval "$ac_link") 2>&5
3780 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3781 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3782 { (case "(($ac_try" in
3783 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3784 *) ac_try_echo=$ac_try;;
3786 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3787 $as_echo "$ac_try_echo") >&5
3788 (eval "$ac_try") 2>&5
3790 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3791 (exit $ac_status); }; }; then
3794 $as_echo "$as_me: program exited with status $ac_status" >&5
3795 $as_echo "$as_me: failed program was:" >&5
3796 sed 's/^/| /' conftest.$ac_ext >&5
3799 ac_cv_header_stdc=no
3801 rm -rf conftest.dSYM
3802 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3808 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3809 $as_echo "$ac_cv_header_stdc" >&6; }
3810 if test $ac_cv_header_stdc = yes; then
3812 cat >>confdefs.h <<\_ACEOF
3813 #define STDC_HEADERS 1
3818 { $as_echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
3819 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
3820 if test "${ac_cv_header_time+set}" = set; then
3821 $as_echo_n "(cached) " >&6
3823 cat >conftest.$ac_ext <<_ACEOF
3826 cat confdefs.h >>conftest.$ac_ext
3827 cat >>conftest.$ac_ext <<_ACEOF
3828 /* end confdefs.h. */
3829 #include <sys/types.h>
3830 #include <sys/time.h>
3836 if ((struct tm *) 0)
3842 rm -f conftest.$ac_objext
3843 if { (ac_try="$ac_compile"
3845 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3846 *) ac_try_echo=$ac_try;;
3848 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3849 $as_echo "$ac_try_echo") >&5
3850 (eval "$ac_compile") 2>conftest.er1
3852 grep -v '^ *+' conftest.er1 >conftest.err
3854 cat conftest.err >&5
3855 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3856 (exit $ac_status); } && {
3857 test -z "$ac_c_werror_flag" ||
3858 test ! -s conftest.err
3859 } && test -s conftest.$ac_objext; then
3860 ac_cv_header_time=yes
3862 $as_echo "$as_me: failed program was:" >&5
3863 sed 's/^/| /' conftest.$ac_ext >&5
3865 ac_cv_header_time=no
3868 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3870 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
3871 $as_echo "$ac_cv_header_time" >&6; }
3872 if test $ac_cv_header_time = yes; then
3874 cat >>confdefs.h <<\_ACEOF
3875 #define TIME_WITH_SYS_TIME 1
3881 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3891 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3892 inttypes.h stdint.h unistd.h
3894 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
3895 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
3896 $as_echo_n "checking for $ac_header... " >&6; }
3897 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
3898 $as_echo_n "(cached) " >&6
3900 cat >conftest.$ac_ext <<_ACEOF
3903 cat confdefs.h >>conftest.$ac_ext
3904 cat >>conftest.$ac_ext <<_ACEOF
3905 /* end confdefs.h. */
3906 $ac_includes_default
3908 #include <$ac_header>
3910 rm -f conftest.$ac_objext
3911 if { (ac_try="$ac_compile"
3913 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3914 *) ac_try_echo=$ac_try;;
3916 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3917 $as_echo "$ac_try_echo") >&5
3918 (eval "$ac_compile") 2>conftest.er1
3920 grep -v '^ *+' conftest.er1 >conftest.err
3922 cat conftest.err >&5
3923 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3924 (exit $ac_status); } && {
3925 test -z "$ac_c_werror_flag" ||
3926 test ! -s conftest.err
3927 } && test -s conftest.$ac_objext; then
3928 eval "$as_ac_Header=yes"
3930 $as_echo "$as_me: failed program was:" >&5
3931 sed 's/^/| /' conftest.$ac_ext >&5
3933 eval "$as_ac_Header=no"
3936 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3938 ac_res=`eval 'as_val=${'$as_ac_Header'}
3939 $as_echo "$as_val"'`
3940 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
3941 $as_echo "$ac_res" >&6; }
3942 as_val=`eval 'as_val=${'$as_ac_Header'}
3943 $as_echo "$as_val"'`
3944 if test "x$as_val" = x""yes; then
3945 cat >>confdefs.h <<_ACEOF
3946 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4003 for ac_header in alloca.h assert.h ctype.h dirent.h err.h errno.h fcntl.h \
4004 fnmatch.h fts.h grp.h inttypes.h libutil.h limits.h \
4005 machine/endian.h ndir.h netdb.h paths.h pwd.h signal.h \
4006 stdarg.h stddef.h stdint.h stdio.h \
4007 stdlib.h string.h sys/byteorder.h sys/cdefs.h sys/dir.h sys/endian.h \
4008 sys/file.h sys/mkdev.h sys/ndir.h sys/param.h sys/socket.h sys/stat.h \
4009 sys/statfs.h sys/statvfs.h sys/time.h sys/ttycom.h sys/types.h \
4010 sys/uio.h sys/vfs.h sysexits.h termcap.h time.h tzfile.h unistd.h \
4014 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4015 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4016 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
4017 $as_echo_n "checking for $ac_header... " >&6; }
4018 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4019 $as_echo_n "(cached) " >&6
4021 ac_res=`eval 'as_val=${'$as_ac_Header'}
4022 $as_echo "$as_val"'`
4023 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
4024 $as_echo "$ac_res" >&6; }
4026 # Is the header compilable?
4027 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
4028 $as_echo_n "checking $ac_header usability... " >&6; }
4029 cat >conftest.$ac_ext <<_ACEOF
4032 cat confdefs.h >>conftest.$ac_ext
4033 cat >>conftest.$ac_ext <<_ACEOF
4034 /* end confdefs.h. */
4035 $ac_includes_default
4036 #include <$ac_header>
4038 rm -f conftest.$ac_objext
4039 if { (ac_try="$ac_compile"
4041 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4042 *) ac_try_echo=$ac_try;;
4044 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4045 $as_echo "$ac_try_echo") >&5
4046 (eval "$ac_compile") 2>conftest.er1
4048 grep -v '^ *+' conftest.er1 >conftest.err
4050 cat conftest.err >&5
4051 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4052 (exit $ac_status); } && {
4053 test -z "$ac_c_werror_flag" ||
4054 test ! -s conftest.err
4055 } && test -s conftest.$ac_objext; then
4056 ac_header_compiler=yes
4058 $as_echo "$as_me: failed program was:" >&5
4059 sed 's/^/| /' conftest.$ac_ext >&5
4061 ac_header_compiler=no
4064 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4065 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4066 $as_echo "$ac_header_compiler" >&6; }
4068 # Is the header present?
4069 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
4070 $as_echo_n "checking $ac_header presence... " >&6; }
4071 cat >conftest.$ac_ext <<_ACEOF
4074 cat confdefs.h >>conftest.$ac_ext
4075 cat >>conftest.$ac_ext <<_ACEOF
4076 /* end confdefs.h. */
4077 #include <$ac_header>
4079 if { (ac_try="$ac_cpp conftest.$ac_ext"
4081 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4082 *) ac_try_echo=$ac_try;;
4084 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4085 $as_echo "$ac_try_echo") >&5
4086 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4088 grep -v '^ *+' conftest.er1 >conftest.err
4090 cat conftest.err >&5
4091 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4092 (exit $ac_status); } >/dev/null && {
4093 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4094 test ! -s conftest.err
4096 ac_header_preproc=yes
4098 $as_echo "$as_me: failed program was:" >&5
4099 sed 's/^/| /' conftest.$ac_ext >&5
4101 ac_header_preproc=no
4104 rm -f conftest.err conftest.$ac_ext
4105 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4106 $as_echo "$ac_header_preproc" >&6; }
4108 # So? What about this header?
4109 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4111 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4112 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4113 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4114 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4115 ac_header_preproc=yes
4118 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4119 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4120 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4121 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4122 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4123 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4124 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4125 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4126 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4127 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4128 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4129 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4131 ## ------------------------------- ##
4132 ## Report this to grant@NetBSD.org ##
4133 ## ------------------------------- ##
4135 ) | sed "s/^/$as_me: WARNING: /" >&2
4138 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
4139 $as_echo_n "checking for $ac_header... " >&6; }
4140 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4141 $as_echo_n "(cached) " >&6
4143 eval "$as_ac_Header=\$ac_header_preproc"
4145 ac_res=`eval 'as_val=${'$as_ac_Header'}
4146 $as_echo "$as_val"'`
4147 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
4148 $as_echo "$ac_res" >&6; }
4151 as_val=`eval 'as_val=${'$as_ac_Header'}
4152 $as_echo "$as_val"'`
4153 if test "x$as_val" = x""yes; then
4154 cat >>confdefs.h <<_ACEOF
4155 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4163 for ac_header in sys/mount.h
4165 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4166 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
4167 $as_echo_n "checking for $ac_header... " >&6; }
4168 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4169 $as_echo_n "(cached) " >&6
4171 cat >conftest.$ac_ext <<_ACEOF
4174 cat confdefs.h >>conftest.$ac_ext
4175 cat >>conftest.$ac_ext <<_ACEOF
4176 /* end confdefs.h. */
4178 $ac_includes_default
4179 #ifdef HAVE_SYS_PARAM_H
4180 #include <sys/param.h>
4184 #include <$ac_header>
4186 rm -f conftest.$ac_objext
4187 if { (ac_try="$ac_compile"
4189 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4190 *) ac_try_echo=$ac_try;;
4192 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4193 $as_echo "$ac_try_echo") >&5
4194 (eval "$ac_compile") 2>conftest.er1
4196 grep -v '^ *+' conftest.er1 >conftest.err
4198 cat conftest.err >&5
4199 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4200 (exit $ac_status); } && {
4201 test -z "$ac_c_werror_flag" ||
4202 test ! -s conftest.err
4203 } && test -s conftest.$ac_objext; then
4204 eval "$as_ac_Header=yes"
4206 $as_echo "$as_me: failed program was:" >&5
4207 sed 's/^/| /' conftest.$ac_ext >&5
4209 eval "$as_ac_Header=no"
4212 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4214 ac_res=`eval 'as_val=${'$as_ac_Header'}
4215 $as_echo "$as_val"'`
4216 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
4217 $as_echo "$ac_res" >&6; }
4218 as_val=`eval 'as_val=${'$as_ac_Header'}
4219 $as_echo "$as_val"'`
4220 if test "x$as_val" = x""yes; then
4221 cat >>confdefs.h <<_ACEOF
4222 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4233 for ac_header in glob.h
4235 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4236 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4237 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
4238 $as_echo_n "checking for $ac_header... " >&6; }
4239 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4240 $as_echo_n "(cached) " >&6
4242 ac_res=`eval 'as_val=${'$as_ac_Header'}
4243 $as_echo "$as_val"'`
4244 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
4245 $as_echo "$ac_res" >&6; }
4247 # Is the header compilable?
4248 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
4249 $as_echo_n "checking $ac_header usability... " >&6; }
4250 cat >conftest.$ac_ext <<_ACEOF
4253 cat confdefs.h >>conftest.$ac_ext
4254 cat >>conftest.$ac_ext <<_ACEOF
4255 /* end confdefs.h. */
4256 $ac_includes_default
4257 #include <$ac_header>
4259 rm -f conftest.$ac_objext
4260 if { (ac_try="$ac_compile"
4262 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4263 *) ac_try_echo=$ac_try;;
4265 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4266 $as_echo "$ac_try_echo") >&5
4267 (eval "$ac_compile") 2>conftest.er1
4269 grep -v '^ *+' conftest.er1 >conftest.err
4271 cat conftest.err >&5
4272 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4273 (exit $ac_status); } && {
4274 test -z "$ac_c_werror_flag" ||
4275 test ! -s conftest.err
4276 } && test -s conftest.$ac_objext; then
4277 ac_header_compiler=yes
4279 $as_echo "$as_me: failed program was:" >&5
4280 sed 's/^/| /' conftest.$ac_ext >&5
4282 ac_header_compiler=no
4285 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4286 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4287 $as_echo "$ac_header_compiler" >&6; }
4289 # Is the header present?
4290 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
4291 $as_echo_n "checking $ac_header presence... " >&6; }
4292 cat >conftest.$ac_ext <<_ACEOF
4295 cat confdefs.h >>conftest.$ac_ext
4296 cat >>conftest.$ac_ext <<_ACEOF
4297 /* end confdefs.h. */
4298 #include <$ac_header>
4300 if { (ac_try="$ac_cpp conftest.$ac_ext"
4302 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4303 *) ac_try_echo=$ac_try;;
4305 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4306 $as_echo "$ac_try_echo") >&5
4307 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4309 grep -v '^ *+' conftest.er1 >conftest.err
4311 cat conftest.err >&5
4312 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4313 (exit $ac_status); } >/dev/null && {
4314 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4315 test ! -s conftest.err
4317 ac_header_preproc=yes
4319 $as_echo "$as_me: failed program was:" >&5
4320 sed 's/^/| /' conftest.$ac_ext >&5
4322 ac_header_preproc=no
4325 rm -f conftest.err conftest.$ac_ext
4326 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4327 $as_echo "$ac_header_preproc" >&6; }
4329 # So? What about this header?
4330 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4332 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4333 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4334 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4335 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4336 ac_header_preproc=yes
4339 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4340 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4341 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4342 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4343 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4344 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4345 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4346 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4347 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4348 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4349 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4350 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4352 ## ------------------------------- ##
4353 ## Report this to grant@NetBSD.org ##
4354 ## ------------------------------- ##
4356 ) | sed "s/^/$as_me: WARNING: /" >&2
4359 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
4360 $as_echo_n "checking for $ac_header... " >&6; }
4361 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4362 $as_echo_n "(cached) " >&6
4364 eval "$as_ac_Header=\$ac_header_preproc"
4366 ac_res=`eval 'as_val=${'$as_ac_Header'}
4367 $as_echo "$as_val"'`
4368 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
4369 $as_echo "$ac_res" >&6; }
4372 as_val=`eval 'as_val=${'$as_ac_Header'}
4373 $as_echo "$as_val"'`
4374 if test "x$as_val" = x""yes; then
4375 cat >>confdefs.h <<_ACEOF
4376 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4383 cat >>confdefs.h <<\_ACEOF
4384 #define HAVE_NBCOMPAT_GLOB 1
4389 case " $LIBOBJS " in
4390 *" glob.$ac_objext "* ) ;;
4391 *) LIBOBJS="$LIBOBJS glob.$ac_objext"
4397 for ac_header in sys/queue.h
4399 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4400 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4401 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
4402 $as_echo_n "checking for $ac_header... " >&6; }
4403 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4404 $as_echo_n "(cached) " >&6
4406 ac_res=`eval 'as_val=${'$as_ac_Header'}
4407 $as_echo "$as_val"'`
4408 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
4409 $as_echo "$ac_res" >&6; }
4411 # Is the header compilable?
4412 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
4413 $as_echo_n "checking $ac_header usability... " >&6; }
4414 cat >conftest.$ac_ext <<_ACEOF
4417 cat confdefs.h >>conftest.$ac_ext
4418 cat >>conftest.$ac_ext <<_ACEOF
4419 /* end confdefs.h. */
4420 $ac_includes_default
4421 #include <$ac_header>
4423 rm -f conftest.$ac_objext
4424 if { (ac_try="$ac_compile"
4426 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4427 *) ac_try_echo=$ac_try;;
4429 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4430 $as_echo "$ac_try_echo") >&5
4431 (eval "$ac_compile") 2>conftest.er1
4433 grep -v '^ *+' conftest.er1 >conftest.err
4435 cat conftest.err >&5
4436 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4437 (exit $ac_status); } && {
4438 test -z "$ac_c_werror_flag" ||
4439 test ! -s conftest.err
4440 } && test -s conftest.$ac_objext; then
4441 ac_header_compiler=yes
4443 $as_echo "$as_me: failed program was:" >&5
4444 sed 's/^/| /' conftest.$ac_ext >&5
4446 ac_header_compiler=no
4449 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4450 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4451 $as_echo "$ac_header_compiler" >&6; }
4453 # Is the header present?
4454 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
4455 $as_echo_n "checking $ac_header presence... " >&6; }
4456 cat >conftest.$ac_ext <<_ACEOF
4459 cat confdefs.h >>conftest.$ac_ext
4460 cat >>conftest.$ac_ext <<_ACEOF
4461 /* end confdefs.h. */
4462 #include <$ac_header>
4464 if { (ac_try="$ac_cpp conftest.$ac_ext"
4466 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4467 *) ac_try_echo=$ac_try;;
4469 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4470 $as_echo "$ac_try_echo") >&5
4471 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4473 grep -v '^ *+' conftest.er1 >conftest.err
4475 cat conftest.err >&5
4476 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4477 (exit $ac_status); } >/dev/null && {
4478 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4479 test ! -s conftest.err
4481 ac_header_preproc=yes
4483 $as_echo "$as_me: failed program was:" >&5
4484 sed 's/^/| /' conftest.$ac_ext >&5
4486 ac_header_preproc=no
4489 rm -f conftest.err conftest.$ac_ext
4490 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4491 $as_echo "$ac_header_preproc" >&6; }
4493 # So? What about this header?
4494 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4496 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4497 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4498 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4499 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4500 ac_header_preproc=yes
4503 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4504 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4505 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4506 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4507 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4508 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4509 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4510 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4511 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4512 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4513 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4514 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4516 ## ------------------------------- ##
4517 ## Report this to grant@NetBSD.org ##
4518 ## ------------------------------- ##
4520 ) | sed "s/^/$as_me: WARNING: /" >&2
4523 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
4524 $as_echo_n "checking for $ac_header... " >&6; }
4525 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4526 $as_echo_n "(cached) " >&6
4528 eval "$as_ac_Header=\$ac_header_preproc"
4530 ac_res=`eval 'as_val=${'$as_ac_Header'}
4531 $as_echo "$as_val"'`
4532 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
4533 $as_echo "$ac_res" >&6; }
4536 as_val=`eval 'as_val=${'$as_ac_Header'}
4537 $as_echo "$as_val"'`
4538 if test "x$as_val" = x""yes; then
4539 cat >>confdefs.h <<_ACEOF
4540 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4547 cat >>confdefs.h <<\_ACEOF
4548 #define HAVE_NBCOMPAT_QUEUE 1
4555 for ac_header in regex.h
4557 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4558 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4559 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
4560 $as_echo_n "checking for $ac_header... " >&6; }
4561 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4562 $as_echo_n "(cached) " >&6
4564 ac_res=`eval 'as_val=${'$as_ac_Header'}
4565 $as_echo "$as_val"'`
4566 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
4567 $as_echo "$ac_res" >&6; }
4569 # Is the header compilable?
4570 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
4571 $as_echo_n "checking $ac_header usability... " >&6; }
4572 cat >conftest.$ac_ext <<_ACEOF
4575 cat confdefs.h >>conftest.$ac_ext
4576 cat >>conftest.$ac_ext <<_ACEOF
4577 /* end confdefs.h. */
4578 $ac_includes_default
4579 #include <$ac_header>
4581 rm -f conftest.$ac_objext
4582 if { (ac_try="$ac_compile"
4584 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4585 *) ac_try_echo=$ac_try;;
4587 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4588 $as_echo "$ac_try_echo") >&5
4589 (eval "$ac_compile") 2>conftest.er1
4591 grep -v '^ *+' conftest.er1 >conftest.err
4593 cat conftest.err >&5
4594 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4595 (exit $ac_status); } && {
4596 test -z "$ac_c_werror_flag" ||
4597 test ! -s conftest.err
4598 } && test -s conftest.$ac_objext; then
4599 ac_header_compiler=yes
4601 $as_echo "$as_me: failed program was:" >&5
4602 sed 's/^/| /' conftest.$ac_ext >&5
4604 ac_header_compiler=no
4607 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4608 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4609 $as_echo "$ac_header_compiler" >&6; }
4611 # Is the header present?
4612 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
4613 $as_echo_n "checking $ac_header presence... " >&6; }
4614 cat >conftest.$ac_ext <<_ACEOF
4617 cat confdefs.h >>conftest.$ac_ext
4618 cat >>conftest.$ac_ext <<_ACEOF
4619 /* end confdefs.h. */
4620 #include <$ac_header>
4622 if { (ac_try="$ac_cpp conftest.$ac_ext"
4624 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4625 *) ac_try_echo=$ac_try;;
4627 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4628 $as_echo "$ac_try_echo") >&5
4629 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4631 grep -v '^ *+' conftest.er1 >conftest.err
4633 cat conftest.err >&5
4634 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4635 (exit $ac_status); } >/dev/null && {
4636 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4637 test ! -s conftest.err
4639 ac_header_preproc=yes
4641 $as_echo "$as_me: failed program was:" >&5
4642 sed 's/^/| /' conftest.$ac_ext >&5
4644 ac_header_preproc=no
4647 rm -f conftest.err conftest.$ac_ext
4648 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4649 $as_echo "$ac_header_preproc" >&6; }
4651 # So? What about this header?
4652 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4654 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4655 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4656 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4657 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4658 ac_header_preproc=yes
4661 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4662 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4663 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4664 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4665 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4666 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4667 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4668 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4669 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4670 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4671 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4672 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4674 ## ------------------------------- ##
4675 ## Report this to grant@NetBSD.org ##
4676 ## ------------------------------- ##
4678 ) | sed "s/^/$as_me: WARNING: /" >&2
4681 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
4682 $as_echo_n "checking for $ac_header... " >&6; }
4683 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4684 $as_echo_n "(cached) " >&6
4686 eval "$as_ac_Header=\$ac_header_preproc"
4688 ac_res=`eval 'as_val=${'$as_ac_Header'}
4689 $as_echo "$as_val"'`
4690 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
4691 $as_echo "$ac_res" >&6; }
4694 as_val=`eval 'as_val=${'$as_ac_Header'}
4695 $as_echo "$as_val"'`
4696 if test "x$as_val" = x""yes; then
4697 cat >>confdefs.h <<_ACEOF
4698 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4705 { $as_echo "$as_me:$LINENO: checking for regexec" >&5
4706 $as_echo_n "checking for regexec... " >&6; }
4707 if test "${ac_cv_func_regexec+set}" = set; then
4708 $as_echo_n "(cached) " >&6
4710 cat >conftest.$ac_ext <<_ACEOF
4713 cat confdefs.h >>conftest.$ac_ext
4714 cat >>conftest.$ac_ext <<_ACEOF
4715 /* end confdefs.h. */
4716 /* Define regexec to an innocuous variant, in case <limits.h> declares regexec.
4717 For example, HP-UX 11i <limits.h> declares gettimeofday. */
4718 #define regexec innocuous_regexec
4720 /* System header to define __stub macros and hopefully few prototypes,
4721 which can conflict with char regexec (); below.
4722 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4723 <limits.h> exists even on freestanding compilers. */
4726 # include <limits.h>
4728 # include <assert.h>
4733 /* Override any GCC internal prototype to avoid an error.
4734 Use char because int might match the return type of a GCC
4735 builtin and then its argument prototype would still apply. */
4740 /* The GNU C library defines this for functions which it implements
4741 to always fail with ENOSYS. Some functions are actually named
4742 something starting with __ and the normal name is an alias. */
4743 #if defined __stub_regexec || defined __stub___regexec
4755 rm -f conftest.$ac_objext conftest$ac_exeext
4756 if { (ac_try="$ac_link"
4758 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4759 *) ac_try_echo=$ac_try;;
4761 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4762 $as_echo "$ac_try_echo") >&5
4763 (eval "$ac_link") 2>conftest.er1
4765 grep -v '^ *+' conftest.er1 >conftest.err
4767 cat conftest.err >&5
4768 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4769 (exit $ac_status); } && {
4770 test -z "$ac_c_werror_flag" ||
4771 test ! -s conftest.err
4772 } && test -s conftest$ac_exeext && {
4773 test "$cross_compiling" = yes ||
4774 $as_test_x conftest$ac_exeext
4776 ac_cv_func_regexec=yes
4778 $as_echo "$as_me: failed program was:" >&5
4779 sed 's/^/| /' conftest.$ac_ext >&5
4781 ac_cv_func_regexec=no
4784 rm -rf conftest.dSYM
4785 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4786 conftest$ac_exeext conftest.$ac_ext
4788 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_regexec" >&5
4789 $as_echo "$ac_cv_func_regexec" >&6; }
4790 if test "x$ac_cv_func_regexec" = x""yes; then
4794 cat >>confdefs.h <<\_ACEOF
4795 #define HAVE_NBCOMPAT_REGEX 1
4800 case " $LIBOBJS " in
4801 *" regcomp.$ac_objext "* ) ;;
4802 *) LIBOBJS="$LIBOBJS regcomp.$ac_objext"
4806 case " $LIBOBJS " in
4807 *" regerror.$ac_objext "* ) ;;
4808 *) LIBOBJS="$LIBOBJS regerror.$ac_objext"
4812 case " $LIBOBJS " in
4813 *" regexec.$ac_objext "* ) ;;
4814 *) LIBOBJS="$LIBOBJS regexec.$ac_objext"
4818 case " $LIBOBJS " in
4819 *" regfree.$ac_objext "* ) ;;
4820 *) LIBOBJS="$LIBOBJS regfree.$ac_objext"
4829 for ac_header in md5.h
4831 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4832 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4833 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
4834 $as_echo_n "checking for $ac_header... " >&6; }
4835 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4836 $as_echo_n "(cached) " >&6
4838 ac_res=`eval 'as_val=${'$as_ac_Header'}
4839 $as_echo "$as_val"'`
4840 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
4841 $as_echo "$ac_res" >&6; }
4843 # Is the header compilable?
4844 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
4845 $as_echo_n "checking $ac_header usability... " >&6; }
4846 cat >conftest.$ac_ext <<_ACEOF
4849 cat confdefs.h >>conftest.$ac_ext
4850 cat >>conftest.$ac_ext <<_ACEOF
4851 /* end confdefs.h. */
4852 $ac_includes_default
4853 #include <$ac_header>
4855 rm -f conftest.$ac_objext
4856 if { (ac_try="$ac_compile"
4858 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4859 *) ac_try_echo=$ac_try;;
4861 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4862 $as_echo "$ac_try_echo") >&5
4863 (eval "$ac_compile") 2>conftest.er1
4865 grep -v '^ *+' conftest.er1 >conftest.err
4867 cat conftest.err >&5
4868 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4869 (exit $ac_status); } && {
4870 test -z "$ac_c_werror_flag" ||
4871 test ! -s conftest.err
4872 } && test -s conftest.$ac_objext; then
4873 ac_header_compiler=yes
4875 $as_echo "$as_me: failed program was:" >&5
4876 sed 's/^/| /' conftest.$ac_ext >&5
4878 ac_header_compiler=no
4881 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4882 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4883 $as_echo "$ac_header_compiler" >&6; }
4885 # Is the header present?
4886 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
4887 $as_echo_n "checking $ac_header presence... " >&6; }
4888 cat >conftest.$ac_ext <<_ACEOF
4891 cat confdefs.h >>conftest.$ac_ext
4892 cat >>conftest.$ac_ext <<_ACEOF
4893 /* end confdefs.h. */
4894 #include <$ac_header>
4896 if { (ac_try="$ac_cpp conftest.$ac_ext"
4898 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4899 *) ac_try_echo=$ac_try;;
4901 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4902 $as_echo "$ac_try_echo") >&5
4903 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4905 grep -v '^ *+' conftest.er1 >conftest.err
4907 cat conftest.err >&5
4908 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4909 (exit $ac_status); } >/dev/null && {
4910 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4911 test ! -s conftest.err
4913 ac_header_preproc=yes
4915 $as_echo "$as_me: failed program was:" >&5
4916 sed 's/^/| /' conftest.$ac_ext >&5
4918 ac_header_preproc=no
4921 rm -f conftest.err conftest.$ac_ext
4922 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4923 $as_echo "$ac_header_preproc" >&6; }
4925 # So? What about this header?
4926 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4928 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4929 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4930 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4931 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4932 ac_header_preproc=yes
4935 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4936 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4937 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4938 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4939 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4940 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4941 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4942 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4943 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4944 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4945 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4946 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4948 ## ------------------------------- ##
4949 ## Report this to grant@NetBSD.org ##
4950 ## ------------------------------- ##
4952 ) | sed "s/^/$as_me: WARNING: /" >&2
4955 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
4956 $as_echo_n "checking for $ac_header... " >&6; }
4957 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4958 $as_echo_n "(cached) " >&6
4960 eval "$as_ac_Header=\$ac_header_preproc"
4962 ac_res=`eval 'as_val=${'$as_ac_Header'}
4963 $as_echo "$as_val"'`
4964 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
4965 $as_echo "$ac_res" >&6; }
4968 as_val=`eval 'as_val=${'$as_ac_Header'}
4969 $as_echo "$as_val"'`
4970 if test "x$as_val" = x""yes; then
4971 cat >>confdefs.h <<_ACEOF
4972 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4976 { $as_echo "$as_me:$LINENO: checking for MD5Init in md5.h" >&5
4977 $as_echo_n "checking for MD5Init in md5.h... " >&6; }
4978 if test "${pkg_cv_have_md5init+set}" = set; then
4979 $as_echo_n "(cached) " >&6
4982 cat >conftest.$ac_ext <<_ACEOF
4985 cat confdefs.h >>conftest.$ac_ext
4986 cat >>conftest.$ac_ext <<_ACEOF
4987 /* end confdefs.h. */
4989 #include <sys/types.h>
5003 rm -f conftest.$ac_objext
5004 if { (ac_try="$ac_compile"
5006 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5007 *) ac_try_echo=$ac_try;;
5009 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5010 $as_echo "$ac_try_echo") >&5
5011 (eval "$ac_compile") 2>conftest.er1
5013 grep -v '^ *+' conftest.er1 >conftest.err
5015 cat conftest.err >&5
5016 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5017 (exit $ac_status); } && {
5018 test -z "$ac_c_werror_flag" ||
5019 test ! -s conftest.err
5020 } && test -s conftest.$ac_objext; then
5021 pkg_cv_have_md5init=yes
5023 $as_echo "$as_me: failed program was:" >&5
5024 sed 's/^/| /' conftest.$ac_ext >&5
5026 pkg_cv_have_md5init=no
5029 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5032 { $as_echo "$as_me:$LINENO: result: $pkg_cv_have_md5init" >&5
5033 $as_echo "$pkg_cv_have_md5init" >&6; }
5034 if test "x$pkg_cv_have_md5init" = "xyes"; then
5038 cat >>confdefs.h <<\_ACEOF
5039 #define HAVE_NBCOMPAT_MD5INIT 1
5058 for ac_header in md5.h rmd160.h sha1.h sha2.h
5060 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5061 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5062 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
5063 $as_echo_n "checking for $ac_header... " >&6; }
5064 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5065 $as_echo_n "(cached) " >&6
5067 ac_res=`eval 'as_val=${'$as_ac_Header'}
5068 $as_echo "$as_val"'`
5069 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
5070 $as_echo "$ac_res" >&6; }
5072 # Is the header compilable?
5073 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
5074 $as_echo_n "checking $ac_header usability... " >&6; }
5075 cat >conftest.$ac_ext <<_ACEOF
5078 cat confdefs.h >>conftest.$ac_ext
5079 cat >>conftest.$ac_ext <<_ACEOF
5080 /* end confdefs.h. */
5081 $ac_includes_default
5082 #include <$ac_header>
5084 rm -f conftest.$ac_objext
5085 if { (ac_try="$ac_compile"
5087 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5088 *) ac_try_echo=$ac_try;;
5090 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5091 $as_echo "$ac_try_echo") >&5
5092 (eval "$ac_compile") 2>conftest.er1
5094 grep -v '^ *+' conftest.er1 >conftest.err
5096 cat conftest.err >&5
5097 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5098 (exit $ac_status); } && {
5099 test -z "$ac_c_werror_flag" ||
5100 test ! -s conftest.err
5101 } && test -s conftest.$ac_objext; then
5102 ac_header_compiler=yes
5104 $as_echo "$as_me: failed program was:" >&5
5105 sed 's/^/| /' conftest.$ac_ext >&5
5107 ac_header_compiler=no
5110 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5111 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5112 $as_echo "$ac_header_compiler" >&6; }
5114 # Is the header present?
5115 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
5116 $as_echo_n "checking $ac_header presence... " >&6; }
5117 cat >conftest.$ac_ext <<_ACEOF
5120 cat confdefs.h >>conftest.$ac_ext
5121 cat >>conftest.$ac_ext <<_ACEOF
5122 /* end confdefs.h. */
5123 #include <$ac_header>
5125 if { (ac_try="$ac_cpp conftest.$ac_ext"
5127 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5128 *) ac_try_echo=$ac_try;;
5130 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5131 $as_echo "$ac_try_echo") >&5
5132 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5134 grep -v '^ *+' conftest.er1 >conftest.err
5136 cat conftest.err >&5
5137 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5138 (exit $ac_status); } >/dev/null && {
5139 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5140 test ! -s conftest.err
5142 ac_header_preproc=yes
5144 $as_echo "$as_me: failed program was:" >&5
5145 sed 's/^/| /' conftest.$ac_ext >&5
5147 ac_header_preproc=no
5150 rm -f conftest.err conftest.$ac_ext
5151 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5152 $as_echo "$ac_header_preproc" >&6; }
5154 # So? What about this header?
5155 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5157 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5158 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5159 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5160 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5161 ac_header_preproc=yes
5164 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5165 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5166 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5167 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5168 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5169 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5170 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5171 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5172 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5173 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5174 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5175 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5177 ## ------------------------------- ##
5178 ## Report this to grant@NetBSD.org ##
5179 ## ------------------------------- ##
5181 ) | sed "s/^/$as_me: WARNING: /" >&2
5184 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
5185 $as_echo_n "checking for $ac_header... " >&6; }
5186 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5187 $as_echo_n "(cached) " >&6
5189 eval "$as_ac_Header=\$ac_header_preproc"
5191 ac_res=`eval 'as_val=${'$as_ac_Header'}
5192 $as_echo "$as_val"'`
5193 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
5194 $as_echo "$ac_res" >&6; }
5197 as_val=`eval 'as_val=${'$as_ac_Header'}
5198 $as_echo "$as_val"'`
5199 if test "x$as_val" = x""yes; then
5200 cat >>confdefs.h <<_ACEOF
5201 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5208 { $as_echo "$as_me:$LINENO: checking for MD5File" >&5
5209 $as_echo_n "checking for MD5File... " >&6; }
5210 if test "${ac_cv_func_MD5File+set}" = set; then
5211 $as_echo_n "(cached) " >&6
5213 cat >conftest.$ac_ext <<_ACEOF
5216 cat confdefs.h >>conftest.$ac_ext
5217 cat >>conftest.$ac_ext <<_ACEOF
5218 /* end confdefs.h. */
5219 /* Define MD5File to an innocuous variant, in case <limits.h> declares MD5File.
5220 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5221 #define MD5File innocuous_MD5File
5223 /* System header to define __stub macros and hopefully few prototypes,
5224 which can conflict with char MD5File (); below.
5225 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5226 <limits.h> exists even on freestanding compilers. */
5229 # include <limits.h>
5231 # include <assert.h>
5236 /* Override any GCC internal prototype to avoid an error.
5237 Use char because int might match the return type of a GCC
5238 builtin and then its argument prototype would still apply. */
5243 /* The GNU C library defines this for functions which it implements
5244 to always fail with ENOSYS. Some functions are actually named
5245 something starting with __ and the normal name is an alias. */
5246 #if defined __stub_MD5File || defined __stub___MD5File
5258 rm -f conftest.$ac_objext conftest$ac_exeext
5259 if { (ac_try="$ac_link"
5261 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5262 *) ac_try_echo=$ac_try;;
5264 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5265 $as_echo "$ac_try_echo") >&5
5266 (eval "$ac_link") 2>conftest.er1
5268 grep -v '^ *+' conftest.er1 >conftest.err
5270 cat conftest.err >&5
5271 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5272 (exit $ac_status); } && {
5273 test -z "$ac_c_werror_flag" ||
5274 test ! -s conftest.err
5275 } && test -s conftest$ac_exeext && {
5276 test "$cross_compiling" = yes ||
5277 $as_test_x conftest$ac_exeext
5279 ac_cv_func_MD5File=yes
5281 $as_echo "$as_me: failed program was:" >&5
5282 sed 's/^/| /' conftest.$ac_ext >&5
5284 ac_cv_func_MD5File=no
5287 rm -rf conftest.dSYM
5288 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5289 conftest$ac_exeext conftest.$ac_ext
5291 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_MD5File" >&5
5292 $as_echo "$ac_cv_func_MD5File" >&6; }
5293 if test "x$ac_cv_func_MD5File" = x""yes; then
5297 cat >>confdefs.h <<\_ACEOF
5298 #define HAVE_NBCOMPAT_MD5 1
5303 case " $LIBOBJS " in
5304 *" md5c.$ac_objext "* ) ;;
5305 *) LIBOBJS="$LIBOBJS md5c.$ac_objext"
5309 case " $LIBOBJS " in
5310 *" md5hl.$ac_objext "* ) ;;
5311 *) LIBOBJS="$LIBOBJS md5hl.$ac_objext"
5318 { $as_echo "$as_me:$LINENO: checking for RMD160File" >&5
5319 $as_echo_n "checking for RMD160File... " >&6; }
5320 if test "${ac_cv_func_RMD160File+set}" = set; then
5321 $as_echo_n "(cached) " >&6
5323 cat >conftest.$ac_ext <<_ACEOF
5326 cat confdefs.h >>conftest.$ac_ext
5327 cat >>conftest.$ac_ext <<_ACEOF
5328 /* end confdefs.h. */
5329 /* Define RMD160File to an innocuous variant, in case <limits.h> declares RMD160File.
5330 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5331 #define RMD160File innocuous_RMD160File
5333 /* System header to define __stub macros and hopefully few prototypes,
5334 which can conflict with char RMD160File (); below.
5335 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5336 <limits.h> exists even on freestanding compilers. */
5339 # include <limits.h>
5341 # include <assert.h>
5346 /* Override any GCC internal prototype to avoid an error.
5347 Use char because int might match the return type of a GCC
5348 builtin and then its argument prototype would still apply. */
5353 /* The GNU C library defines this for functions which it implements
5354 to always fail with ENOSYS. Some functions are actually named
5355 something starting with __ and the normal name is an alias. */
5356 #if defined __stub_RMD160File || defined __stub___RMD160File
5363 return RMD160File ();
5368 rm -f conftest.$ac_objext conftest$ac_exeext
5369 if { (ac_try="$ac_link"
5371 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5372 *) ac_try_echo=$ac_try;;
5374 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5375 $as_echo "$ac_try_echo") >&5
5376 (eval "$ac_link") 2>conftest.er1
5378 grep -v '^ *+' conftest.er1 >conftest.err
5380 cat conftest.err >&5
5381 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5382 (exit $ac_status); } && {
5383 test -z "$ac_c_werror_flag" ||
5384 test ! -s conftest.err
5385 } && test -s conftest$ac_exeext && {
5386 test "$cross_compiling" = yes ||
5387 $as_test_x conftest$ac_exeext
5389 ac_cv_func_RMD160File=yes
5391 $as_echo "$as_me: failed program was:" >&5
5392 sed 's/^/| /' conftest.$ac_ext >&5
5394 ac_cv_func_RMD160File=no
5397 rm -rf conftest.dSYM
5398 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5399 conftest$ac_exeext conftest.$ac_ext
5401 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_RMD160File" >&5
5402 $as_echo "$ac_cv_func_RMD160File" >&6; }
5403 if test "x$ac_cv_func_RMD160File" = x""yes; then
5407 cat >>confdefs.h <<\_ACEOF
5408 #define HAVE_NBCOMPAT_RMD160 1
5413 case " $LIBOBJS " in
5414 *" rmd160.$ac_objext "* ) ;;
5415 *) LIBOBJS="$LIBOBJS rmd160.$ac_objext"
5419 case " $LIBOBJS " in
5420 *" rmd160hl.$ac_objext "* ) ;;
5421 *) LIBOBJS="$LIBOBJS rmd160hl.$ac_objext"
5428 { $as_echo "$as_me:$LINENO: checking for SHA1File" >&5
5429 $as_echo_n "checking for SHA1File... " >&6; }
5430 if test "${ac_cv_func_SHA1File+set}" = set; then
5431 $as_echo_n "(cached) " >&6
5433 cat >conftest.$ac_ext <<_ACEOF
5436 cat confdefs.h >>conftest.$ac_ext
5437 cat >>conftest.$ac_ext <<_ACEOF
5438 /* end confdefs.h. */
5439 /* Define SHA1File to an innocuous variant, in case <limits.h> declares SHA1File.
5440 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5441 #define SHA1File innocuous_SHA1File
5443 /* System header to define __stub macros and hopefully few prototypes,
5444 which can conflict with char SHA1File (); below.
5445 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5446 <limits.h> exists even on freestanding compilers. */
5449 # include <limits.h>
5451 # include <assert.h>
5456 /* Override any GCC internal prototype to avoid an error.
5457 Use char because int might match the return type of a GCC
5458 builtin and then its argument prototype would still apply. */
5463 /* The GNU C library defines this for functions which it implements
5464 to always fail with ENOSYS. Some functions are actually named
5465 something starting with __ and the normal name is an alias. */
5466 #if defined __stub_SHA1File || defined __stub___SHA1File
5478 rm -f conftest.$ac_objext conftest$ac_exeext
5479 if { (ac_try="$ac_link"
5481 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5482 *) ac_try_echo=$ac_try;;
5484 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5485 $as_echo "$ac_try_echo") >&5
5486 (eval "$ac_link") 2>conftest.er1
5488 grep -v '^ *+' conftest.er1 >conftest.err
5490 cat conftest.err >&5
5491 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5492 (exit $ac_status); } && {
5493 test -z "$ac_c_werror_flag" ||
5494 test ! -s conftest.err
5495 } && test -s conftest$ac_exeext && {
5496 test "$cross_compiling" = yes ||
5497 $as_test_x conftest$ac_exeext
5499 ac_cv_func_SHA1File=yes
5501 $as_echo "$as_me: failed program was:" >&5
5502 sed 's/^/| /' conftest.$ac_ext >&5
5504 ac_cv_func_SHA1File=no
5507 rm -rf conftest.dSYM
5508 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5509 conftest$ac_exeext conftest.$ac_ext
5511 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_SHA1File" >&5
5512 $as_echo "$ac_cv_func_SHA1File" >&6; }
5513 if test "x$ac_cv_func_SHA1File" = x""yes; then
5517 cat >>confdefs.h <<\_ACEOF
5518 #define HAVE_NBCOMPAT_SHA1 1
5523 case " $LIBOBJS " in
5524 *" sha1.$ac_objext "* ) ;;
5525 *) LIBOBJS="$LIBOBJS sha1.$ac_objext"
5529 case " $LIBOBJS " in
5530 *" sha1hl.$ac_objext "* ) ;;
5531 *) LIBOBJS="$LIBOBJS sha1hl.$ac_objext"
5539 { $as_echo "$as_me:$LINENO: checking for SHA512_File" >&5
5540 $as_echo_n "checking for SHA512_File... " >&6; }
5541 if test "${ac_cv_func_SHA512_File+set}" = set; then
5542 $as_echo_n "(cached) " >&6
5544 cat >conftest.$ac_ext <<_ACEOF
5547 cat confdefs.h >>conftest.$ac_ext
5548 cat >>conftest.$ac_ext <<_ACEOF
5549 /* end confdefs.h. */
5550 /* Define SHA512_File to an innocuous variant, in case <limits.h> declares SHA512_File.
5551 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5552 #define SHA512_File innocuous_SHA512_File
5554 /* System header to define __stub macros and hopefully few prototypes,
5555 which can conflict with char SHA512_File (); below.
5556 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5557 <limits.h> exists even on freestanding compilers. */
5560 # include <limits.h>
5562 # include <assert.h>
5567 /* Override any GCC internal prototype to avoid an error.
5568 Use char because int might match the return type of a GCC
5569 builtin and then its argument prototype would still apply. */
5573 char SHA512_File ();
5574 /* The GNU C library defines this for functions which it implements
5575 to always fail with ENOSYS. Some functions are actually named
5576 something starting with __ and the normal name is an alias. */
5577 #if defined __stub_SHA512_File || defined __stub___SHA512_File
5584 return SHA512_File ();
5589 rm -f conftest.$ac_objext conftest$ac_exeext
5590 if { (ac_try="$ac_link"
5592 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5593 *) ac_try_echo=$ac_try;;
5595 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5596 $as_echo "$ac_try_echo") >&5
5597 (eval "$ac_link") 2>conftest.er1
5599 grep -v '^ *+' conftest.er1 >conftest.err
5601 cat conftest.err >&5
5602 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5603 (exit $ac_status); } && {
5604 test -z "$ac_c_werror_flag" ||
5605 test ! -s conftest.err
5606 } && test -s conftest$ac_exeext && {
5607 test "$cross_compiling" = yes ||
5608 $as_test_x conftest$ac_exeext
5610 ac_cv_func_SHA512_File=yes
5612 $as_echo "$as_me: failed program was:" >&5
5613 sed 's/^/| /' conftest.$ac_ext >&5
5615 ac_cv_func_SHA512_File=no
5618 rm -rf conftest.dSYM
5619 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5620 conftest$ac_exeext conftest.$ac_ext
5622 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_SHA512_File" >&5
5623 $as_echo "$ac_cv_func_SHA512_File" >&6; }
5624 if test "x$ac_cv_func_SHA512_File" = x""yes; then
5628 cat >>confdefs.h <<\_ACEOF
5629 #define HAVE_NBCOMPAT_SHA2 1
5634 case " $LIBOBJS " in
5635 *" sha2.$ac_objext "* ) ;;
5636 *) LIBOBJS="$LIBOBJS sha2.$ac_objext"
5640 case " $LIBOBJS " in
5641 *" sha2hl.$ac_objext "* ) ;;
5642 *) LIBOBJS="$LIBOBJS sha2hl.$ac_objext"
5650 # Check whether --enable-db was given.
5651 if test "${enable_db+set}" = set; then
5652 enableval=$enable_db;
5658 for ac_func in issetugid
5660 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
5661 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
5662 $as_echo_n "checking for $ac_func... " >&6; }
5663 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
5664 $as_echo_n "(cached) " >&6
5666 cat >conftest.$ac_ext <<_ACEOF
5669 cat confdefs.h >>conftest.$ac_ext
5670 cat >>conftest.$ac_ext <<_ACEOF
5671 /* end confdefs.h. */
5672 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
5673 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5674 #define $ac_func innocuous_$ac_func
5676 /* System header to define __stub macros and hopefully few prototypes,
5677 which can conflict with char $ac_func (); below.
5678 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5679 <limits.h> exists even on freestanding compilers. */
5682 # include <limits.h>
5684 # include <assert.h>
5689 /* Override any GCC internal prototype to avoid an error.
5690 Use char because int might match the return type of a GCC
5691 builtin and then its argument prototype would still apply. */
5696 /* The GNU C library defines this for functions which it implements
5697 to always fail with ENOSYS. Some functions are actually named
5698 something starting with __ and the normal name is an alias. */
5699 #if defined __stub_$ac_func || defined __stub___$ac_func
5711 rm -f conftest.$ac_objext conftest$ac_exeext
5712 if { (ac_try="$ac_link"
5714 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5715 *) ac_try_echo=$ac_try;;
5717 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5718 $as_echo "$ac_try_echo") >&5
5719 (eval "$ac_link") 2>conftest.er1
5721 grep -v '^ *+' conftest.er1 >conftest.err
5723 cat conftest.err >&5
5724 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5725 (exit $ac_status); } && {
5726 test -z "$ac_c_werror_flag" ||
5727 test ! -s conftest.err
5728 } && test -s conftest$ac_exeext && {
5729 test "$cross_compiling" = yes ||
5730 $as_test_x conftest$ac_exeext
5732 eval "$as_ac_var=yes"
5734 $as_echo "$as_me: failed program was:" >&5
5735 sed 's/^/| /' conftest.$ac_ext >&5
5737 eval "$as_ac_var=no"
5740 rm -rf conftest.dSYM
5741 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5742 conftest$ac_exeext conftest.$ac_ext
5744 ac_res=`eval 'as_val=${'$as_ac_var'}
5745 $as_echo "$as_val"'`
5746 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
5747 $as_echo "$ac_res" >&6; }
5748 as_val=`eval 'as_val=${'$as_ac_var'}
5749 $as_echo "$as_val"'`
5750 if test "x$as_val" = x""yes; then
5751 cat >>confdefs.h <<_ACEOF
5752 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
5759 # Check whether --enable-bsd-getopt was given.
5760 if test "${enable_bsd_getopt+set}" = set; then
5761 enableval=$enable_bsd_getopt;
5765 { $as_echo "$as_me:$LINENO: checking whether optind is declared" >&5
5766 $as_echo_n "checking whether optind is declared... " >&6; }
5767 if test "${ac_cv_have_decl_optind+set}" = set; then
5768 $as_echo_n "(cached) " >&6
5770 cat >conftest.$ac_ext <<_ACEOF
5773 cat confdefs.h >>conftest.$ac_ext
5774 cat >>conftest.$ac_ext <<_ACEOF
5775 /* end confdefs.h. */
5793 rm -f conftest.$ac_objext
5794 if { (ac_try="$ac_compile"
5796 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5797 *) ac_try_echo=$ac_try;;
5799 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5800 $as_echo "$ac_try_echo") >&5
5801 (eval "$ac_compile") 2>conftest.er1
5803 grep -v '^ *+' conftest.er1 >conftest.err
5805 cat conftest.err >&5
5806 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5807 (exit $ac_status); } && {
5808 test -z "$ac_c_werror_flag" ||
5809 test ! -s conftest.err
5810 } && test -s conftest.$ac_objext; then
5811 ac_cv_have_decl_optind=yes
5813 $as_echo "$as_me: failed program was:" >&5
5814 sed 's/^/| /' conftest.$ac_ext >&5
5816 ac_cv_have_decl_optind=no
5819 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5821 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_optind" >&5
5822 $as_echo "$ac_cv_have_decl_optind" >&6; }
5823 if test "x$ac_cv_have_decl_optind" = x""yes; then
5825 cat >>confdefs.h <<_ACEOF
5826 #define HAVE_DECL_OPTIND 1
5831 cat >>confdefs.h <<_ACEOF
5832 #define HAVE_DECL_OPTIND 0
5837 { $as_echo "$as_me:$LINENO: checking whether optreset is declared" >&5
5838 $as_echo_n "checking whether optreset is declared... " >&6; }
5839 if test "${ac_cv_have_decl_optreset+set}" = set; then
5840 $as_echo_n "(cached) " >&6
5842 cat >conftest.$ac_ext <<_ACEOF
5845 cat confdefs.h >>conftest.$ac_ext
5846 cat >>conftest.$ac_ext <<_ACEOF
5847 /* end confdefs.h. */
5865 rm -f conftest.$ac_objext
5866 if { (ac_try="$ac_compile"
5868 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5869 *) ac_try_echo=$ac_try;;
5871 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5872 $as_echo "$ac_try_echo") >&5
5873 (eval "$ac_compile") 2>conftest.er1
5875 grep -v '^ *+' conftest.er1 >conftest.err
5877 cat conftest.err >&5
5878 $as_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_objext; then
5883 ac_cv_have_decl_optreset=yes
5885 $as_echo "$as_me: failed program was:" >&5
5886 sed 's/^/| /' conftest.$ac_ext >&5
5888 ac_cv_have_decl_optreset=no
5891 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5893 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_optreset" >&5
5894 $as_echo "$ac_cv_have_decl_optreset" >&6; }
5895 if test "x$ac_cv_have_decl_optreset" = x""yes; then
5897 cat >>confdefs.h <<_ACEOF
5898 #define HAVE_DECL_OPTRESET 1
5903 cat >>confdefs.h <<_ACEOF
5904 #define HAVE_DECL_OPTRESET 0
5914 for ac_header in getopt.h
5916 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5917 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5918 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
5919 $as_echo_n "checking for $ac_header... " >&6; }
5920 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5921 $as_echo_n "(cached) " >&6
5923 ac_res=`eval 'as_val=${'$as_ac_Header'}
5924 $as_echo "$as_val"'`
5925 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
5926 $as_echo "$ac_res" >&6; }
5928 # Is the header compilable?
5929 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
5930 $as_echo_n "checking $ac_header usability... " >&6; }
5931 cat >conftest.$ac_ext <<_ACEOF
5934 cat confdefs.h >>conftest.$ac_ext
5935 cat >>conftest.$ac_ext <<_ACEOF
5936 /* end confdefs.h. */
5937 $ac_includes_default
5938 #include <$ac_header>
5940 rm -f conftest.$ac_objext
5941 if { (ac_try="$ac_compile"
5943 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5944 *) ac_try_echo=$ac_try;;
5946 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5947 $as_echo "$ac_try_echo") >&5
5948 (eval "$ac_compile") 2>conftest.er1
5950 grep -v '^ *+' conftest.er1 >conftest.err
5952 cat conftest.err >&5
5953 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5954 (exit $ac_status); } && {
5955 test -z "$ac_c_werror_flag" ||
5956 test ! -s conftest.err
5957 } && test -s conftest.$ac_objext; then
5958 ac_header_compiler=yes
5960 $as_echo "$as_me: failed program was:" >&5
5961 sed 's/^/| /' conftest.$ac_ext >&5
5963 ac_header_compiler=no
5966 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5967 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5968 $as_echo "$ac_header_compiler" >&6; }
5970 # Is the header present?
5971 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
5972 $as_echo_n "checking $ac_header presence... " >&6; }
5973 cat >conftest.$ac_ext <<_ACEOF
5976 cat confdefs.h >>conftest.$ac_ext
5977 cat >>conftest.$ac_ext <<_ACEOF
5978 /* end confdefs.h. */
5979 #include <$ac_header>
5981 if { (ac_try="$ac_cpp conftest.$ac_ext"
5983 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5984 *) ac_try_echo=$ac_try;;
5986 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5987 $as_echo "$ac_try_echo") >&5
5988 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5990 grep -v '^ *+' conftest.er1 >conftest.err
5992 cat conftest.err >&5
5993 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5994 (exit $ac_status); } >/dev/null && {
5995 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5996 test ! -s conftest.err
5998 ac_header_preproc=yes
6000 $as_echo "$as_me: failed program was:" >&5
6001 sed 's/^/| /' conftest.$ac_ext >&5
6003 ac_header_preproc=no
6006 rm -f conftest.err conftest.$ac_ext
6007 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6008 $as_echo "$ac_header_preproc" >&6; }
6010 # So? What about this header?
6011 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6013 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6014 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6015 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6016 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6017 ac_header_preproc=yes
6020 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6021 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6022 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6023 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6024 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6025 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6026 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6027 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6028 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6029 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6030 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6031 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6033 ## ------------------------------- ##
6034 ## Report this to grant@NetBSD.org ##
6035 ## ------------------------------- ##
6037 ) | sed "s/^/$as_me: WARNING: /" >&2
6040 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
6041 $as_echo_n "checking for $ac_header... " >&6; }
6042 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6043 $as_echo_n "(cached) " >&6
6045 eval "$as_ac_Header=\$ac_header_preproc"
6047 ac_res=`eval 'as_val=${'$as_ac_Header'}
6048 $as_echo "$as_val"'`
6049 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6050 $as_echo "$ac_res" >&6; }
6053 as_val=`eval 'as_val=${'$as_ac_Header'}
6054 $as_echo "$as_val"'`
6055 if test "x$as_val" = x""yes; then
6056 cat >>confdefs.h <<_ACEOF
6057 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6059 { $as_echo "$as_me:$LINENO: checking for struct option" >&5
6060 $as_echo_n "checking for struct option... " >&6; }
6061 if test "${ac_cv_type_struct_option+set}" = set; then
6062 $as_echo_n "(cached) " >&6
6064 ac_cv_type_struct_option=no
6065 cat >conftest.$ac_ext <<_ACEOF
6068 cat confdefs.h >>conftest.$ac_ext
6069 cat >>conftest.$ac_ext <<_ACEOF
6070 /* end confdefs.h. */
6076 if (sizeof (struct option))
6082 rm -f conftest.$ac_objext
6083 if { (ac_try="$ac_compile"
6085 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6086 *) ac_try_echo=$ac_try;;
6088 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6089 $as_echo "$ac_try_echo") >&5
6090 (eval "$ac_compile") 2>conftest.er1
6092 grep -v '^ *+' conftest.er1 >conftest.err
6094 cat conftest.err >&5
6095 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6096 (exit $ac_status); } && {
6097 test -z "$ac_c_werror_flag" ||
6098 test ! -s conftest.err
6099 } && test -s conftest.$ac_objext; then
6100 cat >conftest.$ac_ext <<_ACEOF
6103 cat confdefs.h >>conftest.$ac_ext
6104 cat >>conftest.$ac_ext <<_ACEOF
6105 /* end confdefs.h. */
6111 if (sizeof ((struct option)))
6117 rm -f conftest.$ac_objext
6118 if { (ac_try="$ac_compile"
6120 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6121 *) ac_try_echo=$ac_try;;
6123 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6124 $as_echo "$ac_try_echo") >&5
6125 (eval "$ac_compile") 2>conftest.er1
6127 grep -v '^ *+' conftest.er1 >conftest.err
6129 cat conftest.err >&5
6130 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6131 (exit $ac_status); } && {
6132 test -z "$ac_c_werror_flag" ||
6133 test ! -s conftest.err
6134 } && test -s conftest.$ac_objext; then
6137 $as_echo "$as_me: failed program was:" >&5
6138 sed 's/^/| /' conftest.$ac_ext >&5
6140 ac_cv_type_struct_option=yes
6143 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6145 $as_echo "$as_me: failed program was:" >&5
6146 sed 's/^/| /' conftest.$ac_ext >&5
6151 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6153 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_struct_option" >&5
6154 $as_echo "$ac_cv_type_struct_option" >&6; }
6155 if test "x$ac_cv_type_struct_option" = x""yes; then
6157 cat >>confdefs.h <<_ACEOF
6158 #define HAVE_STRUCT_OPTION 1
6163 case " $LIBOBJS " in
6164 *" getopt_long.$ac_objext "* ) ;;
6165 *) LIBOBJS="$LIBOBJS getopt_long.$ac_objext"
6172 case " $LIBOBJS " in
6173 *" getopt_long.$ac_objext "* ) ;;
6174 *) LIBOBJS="$LIBOBJS getopt_long.$ac_objext"
6184 if test "$enable_bsd_getopt" = yes; then
6185 if test "$ac_cv_have_decl_optreset" = no; then
6186 case " $LIBOBJS " in
6187 *" getopt.$ac_objext "* ) ;;
6188 *) LIBOBJS="$LIBOBJS getopt.$ac_objext"
6195 pkg_use_nbcompat_vis=yes
6197 for ac_header in vis.h
6199 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6200 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6201 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
6202 $as_echo_n "checking for $ac_header... " >&6; }
6203 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6204 $as_echo_n "(cached) " >&6
6206 ac_res=`eval 'as_val=${'$as_ac_Header'}
6207 $as_echo "$as_val"'`
6208 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6209 $as_echo "$ac_res" >&6; }
6211 # Is the header compilable?
6212 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
6213 $as_echo_n "checking $ac_header usability... " >&6; }
6214 cat >conftest.$ac_ext <<_ACEOF
6217 cat confdefs.h >>conftest.$ac_ext
6218 cat >>conftest.$ac_ext <<_ACEOF
6219 /* end confdefs.h. */
6220 $ac_includes_default
6221 #include <$ac_header>
6223 rm -f conftest.$ac_objext
6224 if { (ac_try="$ac_compile"
6226 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6227 *) ac_try_echo=$ac_try;;
6229 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6230 $as_echo "$ac_try_echo") >&5
6231 (eval "$ac_compile") 2>conftest.er1
6233 grep -v '^ *+' conftest.er1 >conftest.err
6235 cat conftest.err >&5
6236 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6237 (exit $ac_status); } && {
6238 test -z "$ac_c_werror_flag" ||
6239 test ! -s conftest.err
6240 } && test -s conftest.$ac_objext; then
6241 ac_header_compiler=yes
6243 $as_echo "$as_me: failed program was:" >&5
6244 sed 's/^/| /' conftest.$ac_ext >&5
6246 ac_header_compiler=no
6249 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6250 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6251 $as_echo "$ac_header_compiler" >&6; }
6253 # Is the header present?
6254 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
6255 $as_echo_n "checking $ac_header presence... " >&6; }
6256 cat >conftest.$ac_ext <<_ACEOF
6259 cat confdefs.h >>conftest.$ac_ext
6260 cat >>conftest.$ac_ext <<_ACEOF
6261 /* end confdefs.h. */
6262 #include <$ac_header>
6264 if { (ac_try="$ac_cpp conftest.$ac_ext"
6266 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6267 *) ac_try_echo=$ac_try;;
6269 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6270 $as_echo "$ac_try_echo") >&5
6271 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6273 grep -v '^ *+' conftest.er1 >conftest.err
6275 cat conftest.err >&5
6276 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6277 (exit $ac_status); } >/dev/null && {
6278 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6279 test ! -s conftest.err
6281 ac_header_preproc=yes
6283 $as_echo "$as_me: failed program was:" >&5
6284 sed 's/^/| /' conftest.$ac_ext >&5
6286 ac_header_preproc=no
6289 rm -f conftest.err conftest.$ac_ext
6290 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6291 $as_echo "$ac_header_preproc" >&6; }
6293 # So? What about this header?
6294 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6296 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6297 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6298 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6299 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6300 ac_header_preproc=yes
6303 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6304 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6305 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6306 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6307 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6308 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6309 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6310 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6311 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6312 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6313 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6314 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6316 ## ------------------------------- ##
6317 ## Report this to grant@NetBSD.org ##
6318 ## ------------------------------- ##
6320 ) | sed "s/^/$as_me: WARNING: /" >&2
6323 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
6324 $as_echo_n "checking for $ac_header... " >&6; }
6325 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6326 $as_echo_n "(cached) " >&6
6328 eval "$as_ac_Header=\$ac_header_preproc"
6330 ac_res=`eval 'as_val=${'$as_ac_Header'}
6331 $as_echo "$as_val"'`
6332 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6333 $as_echo "$ac_res" >&6; }
6336 as_val=`eval 'as_val=${'$as_ac_Header'}
6337 $as_echo "$as_val"'`
6338 if test "x$as_val" = x""yes; then
6339 cat >>confdefs.h <<_ACEOF
6340 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6344 { $as_echo "$as_me:$LINENO: checking for VIS_WHITE in vis.h" >&5
6345 $as_echo_n "checking for VIS_WHITE in vis.h... " >&6; }
6346 if test "${pkg_cv_have_vis_white+set}" = set; then
6347 $as_echo_n "(cached) " >&6
6350 cat >conftest.$ac_ext <<_ACEOF
6353 cat confdefs.h >>conftest.$ac_ext
6354 cat >>conftest.$ac_ext <<_ACEOF
6355 /* end confdefs.h. */
6357 #include <sys/types.h>
6363 int X = VIS_WHITE; ;
6368 rm -f conftest.$ac_objext
6369 if { (ac_try="$ac_compile"
6371 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6372 *) ac_try_echo=$ac_try;;
6374 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6375 $as_echo "$ac_try_echo") >&5
6376 (eval "$ac_compile") 2>conftest.er1
6378 grep -v '^ *+' conftest.er1 >conftest.err
6380 cat conftest.err >&5
6381 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6382 (exit $ac_status); } && {
6383 test -z "$ac_c_werror_flag" ||
6384 test ! -s conftest.err
6385 } && test -s conftest.$ac_objext; then
6386 pkg_cv_have_vis_white=yes
6388 $as_echo "$as_me: failed program was:" >&5
6389 sed 's/^/| /' conftest.$ac_ext >&5
6391 pkg_cv_have_vis_white=no
6394 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6397 { $as_echo "$as_me:$LINENO: result: $pkg_cv_have_vis_white" >&5
6398 $as_echo "$pkg_cv_have_vis_white" >&6; }
6399 if test "x$pkg_cv_have_vis_white" = "xyes"; then
6407 for ac_func in strunvis strvis strsvis svis unvis vis
6409 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
6410 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
6411 $as_echo_n "checking for $ac_func... " >&6; }
6412 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
6413 $as_echo_n "(cached) " >&6
6415 cat >conftest.$ac_ext <<_ACEOF
6418 cat confdefs.h >>conftest.$ac_ext
6419 cat >>conftest.$ac_ext <<_ACEOF
6420 /* end confdefs.h. */
6421 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6422 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6423 #define $ac_func innocuous_$ac_func
6425 /* System header to define __stub macros and hopefully few prototypes,
6426 which can conflict with char $ac_func (); below.
6427 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6428 <limits.h> exists even on freestanding compilers. */
6431 # include <limits.h>
6433 # include <assert.h>
6438 /* Override any GCC internal prototype to avoid an error.
6439 Use char because int might match the return type of a GCC
6440 builtin and then its argument prototype would still apply. */
6445 /* The GNU C library defines this for functions which it implements
6446 to always fail with ENOSYS. Some functions are actually named
6447 something starting with __ and the normal name is an alias. */
6448 #if defined __stub_$ac_func || defined __stub___$ac_func
6460 rm -f conftest.$ac_objext conftest$ac_exeext
6461 if { (ac_try="$ac_link"
6463 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6464 *) ac_try_echo=$ac_try;;
6466 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6467 $as_echo "$ac_try_echo") >&5
6468 (eval "$ac_link") 2>conftest.er1
6470 grep -v '^ *+' conftest.er1 >conftest.err
6472 cat conftest.err >&5
6473 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6474 (exit $ac_status); } && {
6475 test -z "$ac_c_werror_flag" ||
6476 test ! -s conftest.err
6477 } && test -s conftest$ac_exeext && {
6478 test "$cross_compiling" = yes ||
6479 $as_test_x conftest$ac_exeext
6481 eval "$as_ac_var=yes"
6483 $as_echo "$as_me: failed program was:" >&5
6484 sed 's/^/| /' conftest.$ac_ext >&5
6486 eval "$as_ac_var=no"
6489 rm -rf conftest.dSYM
6490 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6491 conftest$ac_exeext conftest.$ac_ext
6493 ac_res=`eval 'as_val=${'$as_ac_var'}
6494 $as_echo "$as_val"'`
6495 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6496 $as_echo "$ac_res" >&6; }
6497 as_val=`eval 'as_val=${'$as_ac_var'}
6498 $as_echo "$as_val"'`
6499 if test "x$as_val" = x""yes; then
6500 cat >>confdefs.h <<_ACEOF
6501 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
6513 for ac_func in strunvis strvis strsvis svis unvis vis
6515 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
6516 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
6517 $as_echo_n "checking for $ac_func... " >&6; }
6518 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
6519 $as_echo_n "(cached) " >&6
6521 cat >conftest.$ac_ext <<_ACEOF
6524 cat confdefs.h >>conftest.$ac_ext
6525 cat >>conftest.$ac_ext <<_ACEOF
6526 /* end confdefs.h. */
6527 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6528 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6529 #define $ac_func innocuous_$ac_func
6531 /* System header to define __stub macros and hopefully few prototypes,
6532 which can conflict with char $ac_func (); below.
6533 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6534 <limits.h> exists even on freestanding compilers. */
6537 # include <limits.h>
6539 # include <assert.h>
6544 /* Override any GCC internal prototype to avoid an error.
6545 Use char because int might match the return type of a GCC
6546 builtin and then its argument prototype would still apply. */
6551 /* The GNU C library defines this for functions which it implements
6552 to always fail with ENOSYS. Some functions are actually named
6553 something starting with __ and the normal name is an alias. */
6554 #if defined __stub_$ac_func || defined __stub___$ac_func
6566 rm -f conftest.$ac_objext conftest$ac_exeext
6567 if { (ac_try="$ac_link"
6569 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6570 *) ac_try_echo=$ac_try;;
6572 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6573 $as_echo "$ac_try_echo") >&5
6574 (eval "$ac_link") 2>conftest.er1
6576 grep -v '^ *+' conftest.er1 >conftest.err
6578 cat conftest.err >&5
6579 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6580 (exit $ac_status); } && {
6581 test -z "$ac_c_werror_flag" ||
6582 test ! -s conftest.err
6583 } && test -s conftest$ac_exeext && {
6584 test "$cross_compiling" = yes ||
6585 $as_test_x conftest$ac_exeext
6587 eval "$as_ac_var=yes"
6589 $as_echo "$as_me: failed program was:" >&5
6590 sed 's/^/| /' conftest.$ac_ext >&5
6592 eval "$as_ac_var=no"
6595 rm -rf conftest.dSYM
6596 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6597 conftest$ac_exeext conftest.$ac_ext
6599 ac_res=`eval 'as_val=${'$as_ac_var'}
6600 $as_echo "$as_val"'`
6601 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6602 $as_echo "$ac_res" >&6; }
6603 as_val=`eval 'as_val=${'$as_ac_var'}
6604 $as_echo "$as_val"'`
6605 if test "x$as_val" = x""yes; then
6606 cat >>confdefs.h <<_ACEOF
6607 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
6609 pkg_use_nbcompat_vis=no
6611 pkg_use_nbcompat_vis=yes; break
6627 if test $pkg_use_nbcompat_vis = yes; then
6628 cat >>confdefs.h <<\_ACEOF
6629 #define HAVE_NBCOMPAT_VIS 1
6634 case " $LIBOBJS " in
6635 *" vis.$ac_objext "* ) ;;
6636 *) LIBOBJS="$LIBOBJS vis.$ac_objext"
6640 case " $LIBOBJS " in
6641 *" unvis.$ac_objext "* ) ;;
6642 *) LIBOBJS="$LIBOBJS unvis.$ac_objext"
6649 { $as_echo "$as_me:$LINENO: checking for __attribute__" >&5
6650 $as_echo_n "checking for __attribute__... " >&6; }
6651 if test "${ac_cv___attribute__+set}" = set; then
6652 $as_echo_n "(cached) " >&6
6655 cat >conftest.$ac_ext <<_ACEOF
6658 cat confdefs.h >>conftest.$ac_ext
6659 cat >>conftest.$ac_ext <<_ACEOF
6660 /* end confdefs.h. */
6662 static void foo(void) __attribute__ ((noreturn));
6671 rm -f conftest.$ac_objext
6672 if { (ac_try="$ac_compile"
6674 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6675 *) ac_try_echo=$ac_try;;
6677 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6678 $as_echo "$ac_try_echo") >&5
6679 (eval "$ac_compile") 2>conftest.er1
6681 grep -v '^ *+' conftest.er1 >conftest.err
6683 cat conftest.err >&5
6684 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6685 (exit $ac_status); } && {
6686 test -z "$ac_c_werror_flag" ||
6687 test ! -s conftest.err
6688 } && test -s conftest.$ac_objext; then
6689 ac_cv___attribute__=yes
6691 $as_echo "$as_me: failed program was:" >&5
6692 sed 's/^/| /' conftest.$ac_ext >&5
6694 ac_cv___attribute__=no
6697 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6700 if test "$ac_cv___attribute__" = "yes"; then
6702 cat >>confdefs.h <<\_ACEOF
6703 #define HAVE___ATTRIBUTE__ 1
6707 { $as_echo "$as_me:$LINENO: result: $ac_cv___attribute__" >&5
6708 $as_echo "$ac_cv___attribute__" >&6; }
6710 { $as_echo "$as_me:$LINENO: checking for size_t" >&5
6711 $as_echo_n "checking for size_t... " >&6; }
6712 if test "${ac_cv_type_size_t+set}" = set; then
6713 $as_echo_n "(cached) " >&6
6715 ac_cv_type_size_t=no
6716 cat >conftest.$ac_ext <<_ACEOF
6719 cat confdefs.h >>conftest.$ac_ext
6720 cat >>conftest.$ac_ext <<_ACEOF
6721 /* end confdefs.h. */
6722 $ac_includes_default
6726 if (sizeof (size_t))
6732 rm -f conftest.$ac_objext
6733 if { (ac_try="$ac_compile"
6735 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6736 *) ac_try_echo=$ac_try;;
6738 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6739 $as_echo "$ac_try_echo") >&5
6740 (eval "$ac_compile") 2>conftest.er1
6742 grep -v '^ *+' conftest.er1 >conftest.err
6744 cat conftest.err >&5
6745 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6746 (exit $ac_status); } && {
6747 test -z "$ac_c_werror_flag" ||
6748 test ! -s conftest.err
6749 } && test -s conftest.$ac_objext; then
6750 cat >conftest.$ac_ext <<_ACEOF
6753 cat confdefs.h >>conftest.$ac_ext
6754 cat >>conftest.$ac_ext <<_ACEOF
6755 /* end confdefs.h. */
6756 $ac_includes_default
6760 if (sizeof ((size_t)))
6766 rm -f conftest.$ac_objext
6767 if { (ac_try="$ac_compile"
6769 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6770 *) ac_try_echo=$ac_try;;
6772 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6773 $as_echo "$ac_try_echo") >&5
6774 (eval "$ac_compile") 2>conftest.er1
6776 grep -v '^ *+' conftest.er1 >conftest.err
6778 cat conftest.err >&5
6779 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6780 (exit $ac_status); } && {
6781 test -z "$ac_c_werror_flag" ||
6782 test ! -s conftest.err
6783 } && test -s conftest.$ac_objext; then
6786 $as_echo "$as_me: failed program was:" >&5
6787 sed 's/^/| /' conftest.$ac_ext >&5
6789 ac_cv_type_size_t=yes
6792 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6794 $as_echo "$as_me: failed program was:" >&5
6795 sed 's/^/| /' conftest.$ac_ext >&5
6800 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6802 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
6803 $as_echo "$ac_cv_type_size_t" >&6; }
6804 if test "x$ac_cv_type_size_t" = x""yes; then
6808 cat >>confdefs.h <<_ACEOF
6809 #define size_t unsigned int
6815 { $as_echo "$as_me:$LINENO: checking for uintptr_t" >&5
6816 $as_echo_n "checking for uintptr_t... " >&6; }
6817 if test "${ac_cv_type_uintptr_t+set}" = set; then
6818 $as_echo_n "(cached) " >&6
6820 ac_cv_type_uintptr_t=no
6821 cat >conftest.$ac_ext <<_ACEOF
6824 cat confdefs.h >>conftest.$ac_ext
6825 cat >>conftest.$ac_ext <<_ACEOF
6826 /* end confdefs.h. */
6827 $ac_includes_default
6831 if (sizeof (uintptr_t))
6837 rm -f conftest.$ac_objext
6838 if { (ac_try="$ac_compile"
6840 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6841 *) ac_try_echo=$ac_try;;
6843 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6844 $as_echo "$ac_try_echo") >&5
6845 (eval "$ac_compile") 2>conftest.er1
6847 grep -v '^ *+' conftest.er1 >conftest.err
6849 cat conftest.err >&5
6850 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6851 (exit $ac_status); } && {
6852 test -z "$ac_c_werror_flag" ||
6853 test ! -s conftest.err
6854 } && test -s conftest.$ac_objext; then
6855 cat >conftest.$ac_ext <<_ACEOF
6858 cat confdefs.h >>conftest.$ac_ext
6859 cat >>conftest.$ac_ext <<_ACEOF
6860 /* end confdefs.h. */
6861 $ac_includes_default
6865 if (sizeof ((uintptr_t)))
6871 rm -f conftest.$ac_objext
6872 if { (ac_try="$ac_compile"
6874 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6875 *) ac_try_echo=$ac_try;;
6877 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6878 $as_echo "$ac_try_echo") >&5
6879 (eval "$ac_compile") 2>conftest.er1
6881 grep -v '^ *+' conftest.er1 >conftest.err
6883 cat conftest.err >&5
6884 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6885 (exit $ac_status); } && {
6886 test -z "$ac_c_werror_flag" ||
6887 test ! -s conftest.err
6888 } && test -s conftest.$ac_objext; then
6891 $as_echo "$as_me: failed program was:" >&5
6892 sed 's/^/| /' conftest.$ac_ext >&5
6894 ac_cv_type_uintptr_t=yes
6897 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6899 $as_echo "$as_me: failed program was:" >&5
6900 sed 's/^/| /' conftest.$ac_ext >&5
6905 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6907 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5
6908 $as_echo "$ac_cv_type_uintptr_t" >&6; }
6909 if test "x$ac_cv_type_uintptr_t" = x""yes; then
6911 cat >>confdefs.h <<\_ACEOF
6912 #define HAVE_UINTPTR_T 1
6916 for ac_type in 'unsigned int' 'unsigned long int' \
6917 'unsigned long long int'; do
6918 cat >conftest.$ac_ext <<_ACEOF
6921 cat confdefs.h >>conftest.$ac_ext
6922 cat >>conftest.$ac_ext <<_ACEOF
6923 /* end confdefs.h. */
6924 $ac_includes_default
6928 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
6935 rm -f conftest.$ac_objext
6936 if { (ac_try="$ac_compile"
6938 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6939 *) ac_try_echo=$ac_try;;
6941 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6942 $as_echo "$ac_try_echo") >&5
6943 (eval "$ac_compile") 2>conftest.er1
6945 grep -v '^ *+' conftest.er1 >conftest.err
6947 cat conftest.err >&5
6948 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6949 (exit $ac_status); } && {
6950 test -z "$ac_c_werror_flag" ||
6951 test ! -s conftest.err
6952 } && test -s conftest.$ac_objext; then
6954 cat >>confdefs.h <<_ACEOF
6955 #define uintptr_t $ac_type
6960 $as_echo "$as_me: failed program was:" >&5
6961 sed 's/^/| /' conftest.$ac_ext >&5
6966 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6967 test -z "$ac_type" && break
6973 { $as_echo "$as_me:$LINENO: checking for int8_t" >&5
6974 $as_echo_n "checking for int8_t... " >&6; }
6975 if test "${ac_cv_c_int8_t+set}" = set; then
6976 $as_echo_n "(cached) " >&6
6979 for ac_type in 'int8_t' 'int' 'long int' \
6980 'long long int' 'short int' 'signed char'; do
6981 cat >conftest.$ac_ext <<_ACEOF
6984 cat confdefs.h >>conftest.$ac_ext
6985 cat >>conftest.$ac_ext <<_ACEOF
6986 /* end confdefs.h. */
6987 $ac_includes_default
6991 static int test_array [1 - 2 * !(0 < ($ac_type) (((($ac_type) 1 << (8 - 2)) - 1) * 2 + 1))];
6998 rm -f conftest.$ac_objext
6999 if { (ac_try="$ac_compile"
7001 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7002 *) ac_try_echo=$ac_try;;
7004 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7005 $as_echo "$ac_try_echo") >&5
7006 (eval "$ac_compile") 2>conftest.er1
7008 grep -v '^ *+' conftest.er1 >conftest.err
7010 cat conftest.err >&5
7011 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7012 (exit $ac_status); } && {
7013 test -z "$ac_c_werror_flag" ||
7014 test ! -s conftest.err
7015 } && test -s conftest.$ac_objext; then
7016 cat >conftest.$ac_ext <<_ACEOF
7019 cat confdefs.h >>conftest.$ac_ext
7020 cat >>conftest.$ac_ext <<_ACEOF
7021 /* end confdefs.h. */
7022 $ac_includes_default
7026 static int test_array [1 - 2 * !(($ac_type) (((($ac_type) 1 << (8 - 2)) - 1) * 2 + 1)
7027 < ($ac_type) (((($ac_type) 1 << (8 - 2)) - 1) * 2 + 2))];
7034 rm -f conftest.$ac_objext
7035 if { (ac_try="$ac_compile"
7037 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7038 *) ac_try_echo=$ac_try;;
7040 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7041 $as_echo "$ac_try_echo") >&5
7042 (eval "$ac_compile") 2>conftest.er1
7044 grep -v '^ *+' conftest.er1 >conftest.err
7046 cat conftest.err >&5
7047 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7048 (exit $ac_status); } && {
7049 test -z "$ac_c_werror_flag" ||
7050 test ! -s conftest.err
7051 } && test -s conftest.$ac_objext; then
7054 $as_echo "$as_me: failed program was:" >&5
7055 sed 's/^/| /' conftest.$ac_ext >&5
7058 int8_t) ac_cv_c_int8_t=yes ;;
7059 *) ac_cv_c_int8_t=$ac_type ;;
7064 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7066 $as_echo "$as_me: failed program was:" >&5
7067 sed 's/^/| /' conftest.$ac_ext >&5
7072 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7073 test "$ac_cv_c_int8_t" != no && break
7076 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_int8_t" >&5
7077 $as_echo "$ac_cv_c_int8_t" >&6; }
7078 case $ac_cv_c_int8_t in #(
7082 cat >>confdefs.h <<_ACEOF
7083 #define int8_t $ac_cv_c_int8_t
7089 { $as_echo "$as_me:$LINENO: checking for int16_t" >&5
7090 $as_echo_n "checking for int16_t... " >&6; }
7091 if test "${ac_cv_c_int16_t+set}" = set; then
7092 $as_echo_n "(cached) " >&6
7095 for ac_type in 'int16_t' 'int' 'long int' \
7096 'long long int' 'short int' 'signed char'; do
7097 cat >conftest.$ac_ext <<_ACEOF
7100 cat confdefs.h >>conftest.$ac_ext
7101 cat >>conftest.$ac_ext <<_ACEOF
7102 /* end confdefs.h. */
7103 $ac_includes_default
7107 static int test_array [1 - 2 * !(0 < ($ac_type) (((($ac_type) 1 << (16 - 2)) - 1) * 2 + 1))];
7114 rm -f conftest.$ac_objext
7115 if { (ac_try="$ac_compile"
7117 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7118 *) ac_try_echo=$ac_try;;
7120 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7121 $as_echo "$ac_try_echo") >&5
7122 (eval "$ac_compile") 2>conftest.er1
7124 grep -v '^ *+' conftest.er1 >conftest.err
7126 cat conftest.err >&5
7127 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7128 (exit $ac_status); } && {
7129 test -z "$ac_c_werror_flag" ||
7130 test ! -s conftest.err
7131 } && test -s conftest.$ac_objext; then
7132 cat >conftest.$ac_ext <<_ACEOF
7135 cat confdefs.h >>conftest.$ac_ext
7136 cat >>conftest.$ac_ext <<_ACEOF
7137 /* end confdefs.h. */
7138 $ac_includes_default
7142 static int test_array [1 - 2 * !(($ac_type) (((($ac_type) 1 << (16 - 2)) - 1) * 2 + 1)
7143 < ($ac_type) (((($ac_type) 1 << (16 - 2)) - 1) * 2 + 2))];
7150 rm -f conftest.$ac_objext
7151 if { (ac_try="$ac_compile"
7153 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7154 *) ac_try_echo=$ac_try;;
7156 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7157 $as_echo "$ac_try_echo") >&5
7158 (eval "$ac_compile") 2>conftest.er1
7160 grep -v '^ *+' conftest.er1 >conftest.err
7162 cat conftest.err >&5
7163 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7164 (exit $ac_status); } && {
7165 test -z "$ac_c_werror_flag" ||
7166 test ! -s conftest.err
7167 } && test -s conftest.$ac_objext; then
7170 $as_echo "$as_me: failed program was:" >&5
7171 sed 's/^/| /' conftest.$ac_ext >&5
7174 int16_t) ac_cv_c_int16_t=yes ;;
7175 *) ac_cv_c_int16_t=$ac_type ;;
7180 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7182 $as_echo "$as_me: failed program was:" >&5
7183 sed 's/^/| /' conftest.$ac_ext >&5
7188 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7189 test "$ac_cv_c_int16_t" != no && break
7192 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_int16_t" >&5
7193 $as_echo "$ac_cv_c_int16_t" >&6; }
7194 case $ac_cv_c_int16_t in #(
7198 cat >>confdefs.h <<_ACEOF
7199 #define int16_t $ac_cv_c_int16_t
7205 { $as_echo "$as_me:$LINENO: checking for int32_t" >&5
7206 $as_echo_n "checking for int32_t... " >&6; }
7207 if test "${ac_cv_c_int32_t+set}" = set; then
7208 $as_echo_n "(cached) " >&6
7211 for ac_type in 'int32_t' 'int' 'long int' \
7212 'long long int' 'short int' 'signed char'; do
7213 cat >conftest.$ac_ext <<_ACEOF
7216 cat confdefs.h >>conftest.$ac_ext
7217 cat >>conftest.$ac_ext <<_ACEOF
7218 /* end confdefs.h. */
7219 $ac_includes_default
7223 static int test_array [1 - 2 * !(0 < ($ac_type) (((($ac_type) 1 << (32 - 2)) - 1) * 2 + 1))];
7230 rm -f conftest.$ac_objext
7231 if { (ac_try="$ac_compile"
7233 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7234 *) ac_try_echo=$ac_try;;
7236 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7237 $as_echo "$ac_try_echo") >&5
7238 (eval "$ac_compile") 2>conftest.er1
7240 grep -v '^ *+' conftest.er1 >conftest.err
7242 cat conftest.err >&5
7243 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7244 (exit $ac_status); } && {
7245 test -z "$ac_c_werror_flag" ||
7246 test ! -s conftest.err
7247 } && test -s conftest.$ac_objext; then
7248 cat >conftest.$ac_ext <<_ACEOF
7251 cat confdefs.h >>conftest.$ac_ext
7252 cat >>conftest.$ac_ext <<_ACEOF
7253 /* end confdefs.h. */
7254 $ac_includes_default
7258 static int test_array [1 - 2 * !(($ac_type) (((($ac_type) 1 << (32 - 2)) - 1) * 2 + 1)
7259 < ($ac_type) (((($ac_type) 1 << (32 - 2)) - 1) * 2 + 2))];
7266 rm -f conftest.$ac_objext
7267 if { (ac_try="$ac_compile"
7269 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7270 *) ac_try_echo=$ac_try;;
7272 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7273 $as_echo "$ac_try_echo") >&5
7274 (eval "$ac_compile") 2>conftest.er1
7276 grep -v '^ *+' conftest.er1 >conftest.err
7278 cat conftest.err >&5
7279 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7280 (exit $ac_status); } && {
7281 test -z "$ac_c_werror_flag" ||
7282 test ! -s conftest.err
7283 } && test -s conftest.$ac_objext; then
7286 $as_echo "$as_me: failed program was:" >&5
7287 sed 's/^/| /' conftest.$ac_ext >&5
7290 int32_t) ac_cv_c_int32_t=yes ;;
7291 *) ac_cv_c_int32_t=$ac_type ;;
7296 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7298 $as_echo "$as_me: failed program was:" >&5
7299 sed 's/^/| /' conftest.$ac_ext >&5
7304 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7305 test "$ac_cv_c_int32_t" != no && break
7308 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_int32_t" >&5
7309 $as_echo "$ac_cv_c_int32_t" >&6; }
7310 case $ac_cv_c_int32_t in #(
7314 cat >>confdefs.h <<_ACEOF
7315 #define int32_t $ac_cv_c_int32_t
7321 { $as_echo "$as_me:$LINENO: checking for int64_t" >&5
7322 $as_echo_n "checking for int64_t... " >&6; }
7323 if test "${ac_cv_c_int64_t+set}" = set; then
7324 $as_echo_n "(cached) " >&6
7327 for ac_type in 'int64_t' 'int' 'long int' \
7328 'long long int' 'short int' 'signed char'; do
7329 cat >conftest.$ac_ext <<_ACEOF
7332 cat confdefs.h >>conftest.$ac_ext
7333 cat >>conftest.$ac_ext <<_ACEOF
7334 /* end confdefs.h. */
7335 $ac_includes_default
7339 static int test_array [1 - 2 * !(0 < ($ac_type) (((($ac_type) 1 << (64 - 2)) - 1) * 2 + 1))];
7346 rm -f conftest.$ac_objext
7347 if { (ac_try="$ac_compile"
7349 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7350 *) ac_try_echo=$ac_try;;
7352 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7353 $as_echo "$ac_try_echo") >&5
7354 (eval "$ac_compile") 2>conftest.er1
7356 grep -v '^ *+' conftest.er1 >conftest.err
7358 cat conftest.err >&5
7359 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7360 (exit $ac_status); } && {
7361 test -z "$ac_c_werror_flag" ||
7362 test ! -s conftest.err
7363 } && test -s conftest.$ac_objext; then
7364 cat >conftest.$ac_ext <<_ACEOF
7367 cat confdefs.h >>conftest.$ac_ext
7368 cat >>conftest.$ac_ext <<_ACEOF
7369 /* end confdefs.h. */
7370 $ac_includes_default
7374 static int test_array [1 - 2 * !(($ac_type) (((($ac_type) 1 << (64 - 2)) - 1) * 2 + 1)
7375 < ($ac_type) (((($ac_type) 1 << (64 - 2)) - 1) * 2 + 2))];
7382 rm -f conftest.$ac_objext
7383 if { (ac_try="$ac_compile"
7385 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7386 *) ac_try_echo=$ac_try;;
7388 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7389 $as_echo "$ac_try_echo") >&5
7390 (eval "$ac_compile") 2>conftest.er1
7392 grep -v '^ *+' conftest.er1 >conftest.err
7394 cat conftest.err >&5
7395 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7396 (exit $ac_status); } && {
7397 test -z "$ac_c_werror_flag" ||
7398 test ! -s conftest.err
7399 } && test -s conftest.$ac_objext; then
7402 $as_echo "$as_me: failed program was:" >&5
7403 sed 's/^/| /' conftest.$ac_ext >&5
7406 int64_t) ac_cv_c_int64_t=yes ;;
7407 *) ac_cv_c_int64_t=$ac_type ;;
7412 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7414 $as_echo "$as_me: failed program was:" >&5
7415 sed 's/^/| /' conftest.$ac_ext >&5
7420 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7421 test "$ac_cv_c_int64_t" != no && break
7424 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_int64_t" >&5
7425 $as_echo "$ac_cv_c_int64_t" >&6; }
7426 case $ac_cv_c_int64_t in #(
7430 cat >>confdefs.h <<_ACEOF
7431 #define int64_t $ac_cv_c_int64_t
7437 { $as_echo "$as_me:$LINENO: checking for uint8_t" >&5
7438 $as_echo_n "checking for uint8_t... " >&6; }
7439 if test "${ac_cv_c_uint8_t+set}" = set; then
7440 $as_echo_n "(cached) " >&6
7443 for ac_type in 'uint8_t' 'unsigned int' 'unsigned long int' \
7444 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
7445 cat >conftest.$ac_ext <<_ACEOF
7448 cat confdefs.h >>conftest.$ac_ext
7449 cat >>conftest.$ac_ext <<_ACEOF
7450 /* end confdefs.h. */
7451 $ac_includes_default
7455 static int test_array [1 - 2 * !(($ac_type) -1 >> (8 - 1) == 1)];
7462 rm -f conftest.$ac_objext
7463 if { (ac_try="$ac_compile"
7465 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7466 *) ac_try_echo=$ac_try;;
7468 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7469 $as_echo "$ac_try_echo") >&5
7470 (eval "$ac_compile") 2>conftest.er1
7472 grep -v '^ *+' conftest.er1 >conftest.err
7474 cat conftest.err >&5
7475 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7476 (exit $ac_status); } && {
7477 test -z "$ac_c_werror_flag" ||
7478 test ! -s conftest.err
7479 } && test -s conftest.$ac_objext; then
7481 uint8_t) ac_cv_c_uint8_t=yes ;;
7482 *) ac_cv_c_uint8_t=$ac_type ;;
7486 $as_echo "$as_me: failed program was:" >&5
7487 sed 's/^/| /' conftest.$ac_ext >&5
7492 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7493 test "$ac_cv_c_uint8_t" != no && break
7496 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_uint8_t" >&5
7497 $as_echo "$ac_cv_c_uint8_t" >&6; }
7498 case $ac_cv_c_uint8_t in #(
7502 cat >>confdefs.h <<\_ACEOF
7507 cat >>confdefs.h <<_ACEOF
7508 #define uint8_t $ac_cv_c_uint8_t
7514 { $as_echo "$as_me:$LINENO: checking for uint16_t" >&5
7515 $as_echo_n "checking for uint16_t... " >&6; }
7516 if test "${ac_cv_c_uint16_t+set}" = set; then
7517 $as_echo_n "(cached) " >&6
7520 for ac_type in 'uint16_t' 'unsigned int' 'unsigned long int' \
7521 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
7522 cat >conftest.$ac_ext <<_ACEOF
7525 cat confdefs.h >>conftest.$ac_ext
7526 cat >>conftest.$ac_ext <<_ACEOF
7527 /* end confdefs.h. */
7528 $ac_includes_default
7532 static int test_array [1 - 2 * !(($ac_type) -1 >> (16 - 1) == 1)];
7539 rm -f conftest.$ac_objext
7540 if { (ac_try="$ac_compile"
7542 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7543 *) ac_try_echo=$ac_try;;
7545 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7546 $as_echo "$ac_try_echo") >&5
7547 (eval "$ac_compile") 2>conftest.er1
7549 grep -v '^ *+' conftest.er1 >conftest.err
7551 cat conftest.err >&5
7552 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7553 (exit $ac_status); } && {
7554 test -z "$ac_c_werror_flag" ||
7555 test ! -s conftest.err
7556 } && test -s conftest.$ac_objext; then
7558 uint16_t) ac_cv_c_uint16_t=yes ;;
7559 *) ac_cv_c_uint16_t=$ac_type ;;
7563 $as_echo "$as_me: failed program was:" >&5
7564 sed 's/^/| /' conftest.$ac_ext >&5
7569 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7570 test "$ac_cv_c_uint16_t" != no && break
7573 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_uint16_t" >&5
7574 $as_echo "$ac_cv_c_uint16_t" >&6; }
7575 case $ac_cv_c_uint16_t in #(
7580 cat >>confdefs.h <<_ACEOF
7581 #define uint16_t $ac_cv_c_uint16_t
7587 { $as_echo "$as_me:$LINENO: checking for uint32_t" >&5
7588 $as_echo_n "checking for uint32_t... " >&6; }
7589 if test "${ac_cv_c_uint32_t+set}" = set; then
7590 $as_echo_n "(cached) " >&6
7593 for ac_type in 'uint32_t' 'unsigned int' 'unsigned long int' \
7594 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
7595 cat >conftest.$ac_ext <<_ACEOF
7598 cat confdefs.h >>conftest.$ac_ext
7599 cat >>conftest.$ac_ext <<_ACEOF
7600 /* end confdefs.h. */
7601 $ac_includes_default
7605 static int test_array [1 - 2 * !(($ac_type) -1 >> (32 - 1) == 1)];
7612 rm -f conftest.$ac_objext
7613 if { (ac_try="$ac_compile"
7615 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7616 *) ac_try_echo=$ac_try;;
7618 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7619 $as_echo "$ac_try_echo") >&5
7620 (eval "$ac_compile") 2>conftest.er1
7622 grep -v '^ *+' conftest.er1 >conftest.err
7624 cat conftest.err >&5
7625 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7626 (exit $ac_status); } && {
7627 test -z "$ac_c_werror_flag" ||
7628 test ! -s conftest.err
7629 } && test -s conftest.$ac_objext; then
7631 uint32_t) ac_cv_c_uint32_t=yes ;;
7632 *) ac_cv_c_uint32_t=$ac_type ;;
7636 $as_echo "$as_me: failed program was:" >&5
7637 sed 's/^/| /' conftest.$ac_ext >&5
7642 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7643 test "$ac_cv_c_uint32_t" != no && break
7646 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_uint32_t" >&5
7647 $as_echo "$ac_cv_c_uint32_t" >&6; }
7648 case $ac_cv_c_uint32_t in #(
7652 cat >>confdefs.h <<\_ACEOF
7657 cat >>confdefs.h <<_ACEOF
7658 #define uint32_t $ac_cv_c_uint32_t
7664 { $as_echo "$as_me:$LINENO: checking for uint64_t" >&5
7665 $as_echo_n "checking for uint64_t... " >&6; }
7666 if test "${ac_cv_c_uint64_t+set}" = set; then
7667 $as_echo_n "(cached) " >&6
7670 for ac_type in 'uint64_t' 'unsigned int' 'unsigned long int' \
7671 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
7672 cat >conftest.$ac_ext <<_ACEOF
7675 cat confdefs.h >>conftest.$ac_ext
7676 cat >>conftest.$ac_ext <<_ACEOF
7677 /* end confdefs.h. */
7678 $ac_includes_default
7682 static int test_array [1 - 2 * !(($ac_type) -1 >> (64 - 1) == 1)];
7689 rm -f conftest.$ac_objext
7690 if { (ac_try="$ac_compile"
7692 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7693 *) ac_try_echo=$ac_try;;
7695 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7696 $as_echo "$ac_try_echo") >&5
7697 (eval "$ac_compile") 2>conftest.er1
7699 grep -v '^ *+' conftest.er1 >conftest.err
7701 cat conftest.err >&5
7702 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7703 (exit $ac_status); } && {
7704 test -z "$ac_c_werror_flag" ||
7705 test ! -s conftest.err
7706 } && test -s conftest.$ac_objext; then
7708 uint64_t) ac_cv_c_uint64_t=yes ;;
7709 *) ac_cv_c_uint64_t=$ac_type ;;
7713 $as_echo "$as_me: failed program was:" >&5
7714 sed 's/^/| /' conftest.$ac_ext >&5
7719 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7720 test "$ac_cv_c_uint64_t" != no && break
7723 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_uint64_t" >&5
7724 $as_echo "$ac_cv_c_uint64_t" >&6; }
7725 case $ac_cv_c_uint64_t in #(
7729 cat >>confdefs.h <<\_ACEOF
7734 cat >>confdefs.h <<_ACEOF
7735 #define uint64_t $ac_cv_c_uint64_t
7740 { $as_echo "$as_me:$LINENO: checking for long long" >&5
7741 $as_echo_n "checking for long long... " >&6; }
7742 if test "${ac_cv_type_long_long+set}" = set; then
7743 $as_echo_n "(cached) " >&6
7745 ac_cv_type_long_long=no
7746 cat >conftest.$ac_ext <<_ACEOF
7749 cat confdefs.h >>conftest.$ac_ext
7750 cat >>conftest.$ac_ext <<_ACEOF
7751 /* end confdefs.h. */
7757 #include <inttypes.h>
7759 #if HAVE_SYS_TYPES_H
7760 #include <sys/types.h>
7762 #if HAVE_SYS_BITYPES_H
7763 #include <sys/bitypes.h>
7769 if (sizeof (long long))
7775 rm -f conftest.$ac_objext
7776 if { (ac_try="$ac_compile"
7778 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7779 *) ac_try_echo=$ac_try;;
7781 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7782 $as_echo "$ac_try_echo") >&5
7783 (eval "$ac_compile") 2>conftest.er1
7785 grep -v '^ *+' conftest.er1 >conftest.err
7787 cat conftest.err >&5
7788 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7789 (exit $ac_status); } && {
7790 test -z "$ac_c_werror_flag" ||
7791 test ! -s conftest.err
7792 } && test -s conftest.$ac_objext; then
7793 cat >conftest.$ac_ext <<_ACEOF
7796 cat confdefs.h >>conftest.$ac_ext
7797 cat >>conftest.$ac_ext <<_ACEOF
7798 /* end confdefs.h. */
7804 #include <inttypes.h>
7806 #if HAVE_SYS_TYPES_H
7807 #include <sys/types.h>
7809 #if HAVE_SYS_BITYPES_H
7810 #include <sys/bitypes.h>
7816 if (sizeof ((long long)))
7822 rm -f conftest.$ac_objext
7823 if { (ac_try="$ac_compile"
7825 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7826 *) ac_try_echo=$ac_try;;
7828 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7829 $as_echo "$ac_try_echo") >&5
7830 (eval "$ac_compile") 2>conftest.er1
7832 grep -v '^ *+' conftest.er1 >conftest.err
7834 cat conftest.err >&5
7835 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7836 (exit $ac_status); } && {
7837 test -z "$ac_c_werror_flag" ||
7838 test ! -s conftest.err
7839 } && test -s conftest.$ac_objext; then
7842 $as_echo "$as_me: failed program was:" >&5
7843 sed 's/^/| /' conftest.$ac_ext >&5
7845 ac_cv_type_long_long=yes
7848 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7850 $as_echo "$as_me: failed program was:" >&5
7851 sed 's/^/| /' conftest.$ac_ext >&5
7856 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7858 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
7859 $as_echo "$ac_cv_type_long_long" >&6; }
7860 if test "x$ac_cv_type_long_long" = x""yes; then
7862 cat >>confdefs.h <<_ACEOF
7863 #define HAVE_LONG_LONG 1
7868 { $as_echo "$as_me:$LINENO: checking for long double" >&5
7869 $as_echo_n "checking for long double... " >&6; }
7870 if test "${ac_cv_type_long_double+set}" = set; then
7871 $as_echo_n "(cached) " >&6
7873 ac_cv_type_long_double=no
7874 cat >conftest.$ac_ext <<_ACEOF
7877 cat confdefs.h >>conftest.$ac_ext
7878 cat >>conftest.$ac_ext <<_ACEOF
7879 /* end confdefs.h. */
7885 #include <inttypes.h>
7887 #if HAVE_SYS_TYPES_H
7888 #include <sys/types.h>
7890 #if HAVE_SYS_BITYPES_H
7891 #include <sys/bitypes.h>
7897 if (sizeof (long double))
7903 rm -f conftest.$ac_objext
7904 if { (ac_try="$ac_compile"
7906 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7907 *) ac_try_echo=$ac_try;;
7909 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7910 $as_echo "$ac_try_echo") >&5
7911 (eval "$ac_compile") 2>conftest.er1
7913 grep -v '^ *+' conftest.er1 >conftest.err
7915 cat conftest.err >&5
7916 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7917 (exit $ac_status); } && {
7918 test -z "$ac_c_werror_flag" ||
7919 test ! -s conftest.err
7920 } && test -s conftest.$ac_objext; then
7921 cat >conftest.$ac_ext <<_ACEOF
7924 cat confdefs.h >>conftest.$ac_ext
7925 cat >>conftest.$ac_ext <<_ACEOF
7926 /* end confdefs.h. */
7932 #include <inttypes.h>
7934 #if HAVE_SYS_TYPES_H
7935 #include <sys/types.h>
7937 #if HAVE_SYS_BITYPES_H
7938 #include <sys/bitypes.h>
7944 if (sizeof ((long double)))
7950 rm -f conftest.$ac_objext
7951 if { (ac_try="$ac_compile"
7953 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7954 *) ac_try_echo=$ac_try;;
7956 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7957 $as_echo "$ac_try_echo") >&5
7958 (eval "$ac_compile") 2>conftest.er1
7960 grep -v '^ *+' conftest.er1 >conftest.err
7962 cat conftest.err >&5
7963 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7964 (exit $ac_status); } && {
7965 test -z "$ac_c_werror_flag" ||
7966 test ! -s conftest.err
7967 } && test -s conftest.$ac_objext; then
7970 $as_echo "$as_me: failed program was:" >&5
7971 sed 's/^/| /' conftest.$ac_ext >&5
7973 ac_cv_type_long_double=yes
7976 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7978 $as_echo "$as_me: failed program was:" >&5
7979 sed 's/^/| /' conftest.$ac_ext >&5
7984 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7986 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_long_double" >&5
7987 $as_echo "$ac_cv_type_long_double" >&6; }
7988 if test "x$ac_cv_type_long_double" = x""yes; then
7990 cat >>confdefs.h <<_ACEOF
7991 #define HAVE_LONG_DOUBLE 1
7997 { $as_echo "$as_me:$LINENO: checking for fsid_t" >&5
7998 $as_echo_n "checking for fsid_t... " >&6; }
7999 if test "${ac_cv_type_fsid_t+set}" = set; then
8000 $as_echo_n "(cached) " >&6
8002 ac_cv_type_fsid_t=no
8003 cat >conftest.$ac_ext <<_ACEOF
8006 cat confdefs.h >>conftest.$ac_ext
8007 cat >>conftest.$ac_ext <<_ACEOF
8008 /* end confdefs.h. */
8009 #if HAVE_SYS_TYPES_H
8010 #include <sys/types.h>
8012 #if HAVE_SYS_PARAM_H
8013 #include <sys/param.h>
8015 #if HAVE_SYS_MOUNT_H
8016 #include <sys/mount.h>
8019 #include <sys/vfs.h>
8025 if (sizeof (fsid_t))
8031 rm -f conftest.$ac_objext
8032 if { (ac_try="$ac_compile"
8034 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8035 *) ac_try_echo=$ac_try;;
8037 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8038 $as_echo "$ac_try_echo") >&5
8039 (eval "$ac_compile") 2>conftest.er1
8041 grep -v '^ *+' conftest.er1 >conftest.err
8043 cat conftest.err >&5
8044 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8045 (exit $ac_status); } && {
8046 test -z "$ac_c_werror_flag" ||
8047 test ! -s conftest.err
8048 } && test -s conftest.$ac_objext; then
8049 cat >conftest.$ac_ext <<_ACEOF
8052 cat confdefs.h >>conftest.$ac_ext
8053 cat >>conftest.$ac_ext <<_ACEOF
8054 /* end confdefs.h. */
8055 #if HAVE_SYS_TYPES_H
8056 #include <sys/types.h>
8058 #if HAVE_SYS_PARAM_H
8059 #include <sys/param.h>
8061 #if HAVE_SYS_MOUNT_H
8062 #include <sys/mount.h>
8065 #include <sys/vfs.h>
8071 if (sizeof ((fsid_t)))
8077 rm -f conftest.$ac_objext
8078 if { (ac_try="$ac_compile"
8080 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8081 *) ac_try_echo=$ac_try;;
8083 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8084 $as_echo "$ac_try_echo") >&5
8085 (eval "$ac_compile") 2>conftest.er1
8087 grep -v '^ *+' conftest.er1 >conftest.err
8089 cat conftest.err >&5
8090 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8091 (exit $ac_status); } && {
8092 test -z "$ac_c_werror_flag" ||
8093 test ! -s conftest.err
8094 } && test -s conftest.$ac_objext; then
8097 $as_echo "$as_me: failed program was:" >&5
8098 sed 's/^/| /' conftest.$ac_ext >&5
8100 ac_cv_type_fsid_t=yes
8103 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8105 $as_echo "$as_me: failed program was:" >&5
8106 sed 's/^/| /' conftest.$ac_ext >&5
8111 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8113 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_fsid_t" >&5
8114 $as_echo "$ac_cv_type_fsid_t" >&6; }
8115 if test "x$ac_cv_type_fsid_t" = x""yes; then
8117 cat >>confdefs.h <<_ACEOF
8118 #define HAVE_FSID_T 1
8125 { $as_echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
8126 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
8127 if test "${ac_cv_c_bigendian+set}" = set; then
8128 $as_echo_n "(cached) " >&6
8130 ac_cv_c_bigendian=unknown
8131 # See if we're dealing with a universal compiler.
8132 cat >conftest.$ac_ext <<_ACEOF
8135 cat confdefs.h >>conftest.$ac_ext
8136 cat >>conftest.$ac_ext <<_ACEOF
8137 /* end confdefs.h. */
8138 #ifndef __APPLE_CC__
8139 not a universal capable compiler
8144 rm -f conftest.$ac_objext
8145 if { (ac_try="$ac_compile"
8147 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8148 *) ac_try_echo=$ac_try;;
8150 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8151 $as_echo "$ac_try_echo") >&5
8152 (eval "$ac_compile") 2>conftest.er1
8154 grep -v '^ *+' conftest.er1 >conftest.err
8156 cat conftest.err >&5
8157 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8158 (exit $ac_status); } && {
8159 test -z "$ac_c_werror_flag" ||
8160 test ! -s conftest.err
8161 } && test -s conftest.$ac_objext; then
8163 # Check for potential -arch flags. It is not universal unless
8164 # there are some -arch flags. Note that *ppc* also matches
8165 # ppc64. This check is also rather less than ideal.
8166 case "${CC} ${CFLAGS} ${CPPFLAGS} ${LDFLAGS}" in #(
8167 *-arch*ppc*|*-arch*i386*|*-arch*x86_64*) ac_cv_c_bigendian=universal;;
8170 $as_echo "$as_me: failed program was:" >&5
8171 sed 's/^/| /' conftest.$ac_ext >&5
8176 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8177 if test $ac_cv_c_bigendian = unknown; then
8178 # See if sys/param.h defines the BYTE_ORDER macro.
8179 cat >conftest.$ac_ext <<_ACEOF
8182 cat confdefs.h >>conftest.$ac_ext
8183 cat >>conftest.$ac_ext <<_ACEOF
8184 /* end confdefs.h. */
8185 #include <sys/types.h>
8186 #include <sys/param.h>
8191 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
8192 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
8201 rm -f conftest.$ac_objext
8202 if { (ac_try="$ac_compile"
8204 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8205 *) ac_try_echo=$ac_try;;
8207 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8208 $as_echo "$ac_try_echo") >&5
8209 (eval "$ac_compile") 2>conftest.er1
8211 grep -v '^ *+' conftest.er1 >conftest.err
8213 cat conftest.err >&5
8214 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8215 (exit $ac_status); } && {
8216 test -z "$ac_c_werror_flag" ||
8217 test ! -s conftest.err
8218 } && test -s conftest.$ac_objext; then
8219 # It does; now see whether it defined to BIG_ENDIAN or not.
8220 cat >conftest.$ac_ext <<_ACEOF
8223 cat confdefs.h >>conftest.$ac_ext
8224 cat >>conftest.$ac_ext <<_ACEOF
8225 /* end confdefs.h. */
8226 #include <sys/types.h>
8227 #include <sys/param.h>
8232 #if BYTE_ORDER != BIG_ENDIAN
8240 rm -f conftest.$ac_objext
8241 if { (ac_try="$ac_compile"
8243 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8244 *) ac_try_echo=$ac_try;;
8246 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8247 $as_echo "$ac_try_echo") >&5
8248 (eval "$ac_compile") 2>conftest.er1
8250 grep -v '^ *+' conftest.er1 >conftest.err
8252 cat conftest.err >&5
8253 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8254 (exit $ac_status); } && {
8255 test -z "$ac_c_werror_flag" ||
8256 test ! -s conftest.err
8257 } && test -s conftest.$ac_objext; then
8258 ac_cv_c_bigendian=yes
8260 $as_echo "$as_me: failed program was:" >&5
8261 sed 's/^/| /' conftest.$ac_ext >&5
8263 ac_cv_c_bigendian=no
8266 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8268 $as_echo "$as_me: failed program was:" >&5
8269 sed 's/^/| /' conftest.$ac_ext >&5
8274 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8276 if test $ac_cv_c_bigendian = unknown; then
8277 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
8278 cat >conftest.$ac_ext <<_ACEOF
8281 cat confdefs.h >>conftest.$ac_ext
8282 cat >>conftest.$ac_ext <<_ACEOF
8283 /* end confdefs.h. */
8289 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
8297 rm -f conftest.$ac_objext
8298 if { (ac_try="$ac_compile"
8300 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8301 *) ac_try_echo=$ac_try;;
8303 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8304 $as_echo "$ac_try_echo") >&5
8305 (eval "$ac_compile") 2>conftest.er1
8307 grep -v '^ *+' conftest.er1 >conftest.err
8309 cat conftest.err >&5
8310 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8311 (exit $ac_status); } && {
8312 test -z "$ac_c_werror_flag" ||
8313 test ! -s conftest.err
8314 } && test -s conftest.$ac_objext; then
8315 # It does; now see whether it defined to _BIG_ENDIAN or not.
8316 cat >conftest.$ac_ext <<_ACEOF
8319 cat confdefs.h >>conftest.$ac_ext
8320 cat >>conftest.$ac_ext <<_ACEOF
8321 /* end confdefs.h. */
8335 rm -f conftest.$ac_objext
8336 if { (ac_try="$ac_compile"
8338 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8339 *) ac_try_echo=$ac_try;;
8341 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8342 $as_echo "$ac_try_echo") >&5
8343 (eval "$ac_compile") 2>conftest.er1
8345 grep -v '^ *+' conftest.er1 >conftest.err
8347 cat conftest.err >&5
8348 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8349 (exit $ac_status); } && {
8350 test -z "$ac_c_werror_flag" ||
8351 test ! -s conftest.err
8352 } && test -s conftest.$ac_objext; then
8353 ac_cv_c_bigendian=yes
8355 $as_echo "$as_me: failed program was:" >&5
8356 sed 's/^/| /' conftest.$ac_ext >&5
8358 ac_cv_c_bigendian=no
8361 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8363 $as_echo "$as_me: failed program was:" >&5
8364 sed 's/^/| /' conftest.$ac_ext >&5
8369 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8371 if test $ac_cv_c_bigendian = unknown; then
8372 # Compile a test program.
8373 if test "$cross_compiling" = yes; then
8374 # Try to guess by grepping values from an object file.
8375 cat >conftest.$ac_ext <<_ACEOF
8378 cat confdefs.h >>conftest.$ac_ext
8379 cat >>conftest.$ac_ext <<_ACEOF
8380 /* end confdefs.h. */
8381 short int ascii_mm[] =
8382 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
8383 short int ascii_ii[] =
8384 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
8385 int use_ascii (int i) {
8386 return ascii_mm[i] + ascii_ii[i];
8388 short int ebcdic_ii[] =
8389 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
8390 short int ebcdic_mm[] =
8391 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
8392 int use_ebcdic (int i) {
8393 return ebcdic_mm[i] + ebcdic_ii[i];
8400 return use_ascii (foo) == use_ebcdic (foo);
8405 rm -f conftest.$ac_objext
8406 if { (ac_try="$ac_compile"
8408 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8409 *) ac_try_echo=$ac_try;;
8411 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8412 $as_echo "$ac_try_echo") >&5
8413 (eval "$ac_compile") 2>conftest.er1
8415 grep -v '^ *+' conftest.er1 >conftest.err
8417 cat conftest.err >&5
8418 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8419 (exit $ac_status); } && {
8420 test -z "$ac_c_werror_flag" ||
8421 test ! -s conftest.err
8422 } && test -s conftest.$ac_objext; then
8423 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
8424 ac_cv_c_bigendian=yes
8426 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
8427 if test "$ac_cv_c_bigendian" = unknown; then
8428 ac_cv_c_bigendian=no
8430 # finding both strings is unlikely to happen, but who knows?
8431 ac_cv_c_bigendian=unknown
8435 $as_echo "$as_me: failed program was:" >&5
8436 sed 's/^/| /' conftest.$ac_ext >&5
8441 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8443 cat >conftest.$ac_ext <<_ACEOF
8446 cat confdefs.h >>conftest.$ac_ext
8447 cat >>conftest.$ac_ext <<_ACEOF
8448 /* end confdefs.h. */
8449 $ac_includes_default
8454 /* Are we little or big endian? From Harbison&Steele. */
8458 char c[sizeof (long int)];
8461 return u.c[sizeof (long int) - 1] == 1;
8467 rm -f conftest$ac_exeext
8468 if { (ac_try="$ac_link"
8470 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8471 *) ac_try_echo=$ac_try;;
8473 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8474 $as_echo "$ac_try_echo") >&5
8475 (eval "$ac_link") 2>&5
8477 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8478 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8479 { (case "(($ac_try" in
8480 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8481 *) ac_try_echo=$ac_try;;
8483 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8484 $as_echo "$ac_try_echo") >&5
8485 (eval "$ac_try") 2>&5
8487 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8488 (exit $ac_status); }; }; then
8489 ac_cv_c_bigendian=no
8491 $as_echo "$as_me: program exited with status $ac_status" >&5
8492 $as_echo "$as_me: failed program was:" >&5
8493 sed 's/^/| /' conftest.$ac_ext >&5
8496 ac_cv_c_bigendian=yes
8498 rm -rf conftest.dSYM
8499 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8505 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
8506 $as_echo "$ac_cv_c_bigendian" >&6; }
8507 case $ac_cv_c_bigendian in #(
8509 cat >>confdefs.h <<\_ACEOF
8510 #define WORDS_BIGENDIAN 1
8517 cat >>confdefs.h <<\_ACEOF
8518 #define AC_APPLE_UNIVERSAL_BUILD 1
8523 { { $as_echo "$as_me:$LINENO: error: unknown endianness
8524 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
8525 $as_echo "$as_me: error: unknown endianness
8526 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
8527 { (exit 1); exit 1; }; } ;;
8530 # The cast to long int works around a bug in the HP C Compiler
8531 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8532 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
8533 # This bug is HP SR number 8606223364.
8534 { $as_echo "$as_me:$LINENO: checking size of off_t" >&5
8535 $as_echo_n "checking size of off_t... " >&6; }
8536 if test "${ac_cv_sizeof_off_t+set}" = set; then
8537 $as_echo_n "(cached) " >&6
8539 if test "$cross_compiling" = yes; then
8540 # Depending upon the size, compute the lo and hi bounds.
8541 cat >conftest.$ac_ext <<_ACEOF
8544 cat confdefs.h >>conftest.$ac_ext
8545 cat >>conftest.$ac_ext <<_ACEOF
8546 /* end confdefs.h. */
8547 $ac_includes_default
8551 static int test_array [1 - 2 * !(((long int) (sizeof (off_t))) >= 0)];
8558 rm -f conftest.$ac_objext
8559 if { (ac_try="$ac_compile"
8561 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8562 *) ac_try_echo=$ac_try;;
8564 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8565 $as_echo "$ac_try_echo") >&5
8566 (eval "$ac_compile") 2>conftest.er1
8568 grep -v '^ *+' conftest.er1 >conftest.err
8570 cat conftest.err >&5
8571 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8572 (exit $ac_status); } && {
8573 test -z "$ac_c_werror_flag" ||
8574 test ! -s conftest.err
8575 } && test -s conftest.$ac_objext; then
8578 cat >conftest.$ac_ext <<_ACEOF
8581 cat confdefs.h >>conftest.$ac_ext
8582 cat >>conftest.$ac_ext <<_ACEOF
8583 /* end confdefs.h. */
8584 $ac_includes_default
8588 static int test_array [1 - 2 * !(((long int) (sizeof (off_t))) <= $ac_mid)];
8595 rm -f conftest.$ac_objext
8596 if { (ac_try="$ac_compile"
8598 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8599 *) ac_try_echo=$ac_try;;
8601 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8602 $as_echo "$ac_try_echo") >&5
8603 (eval "$ac_compile") 2>conftest.er1
8605 grep -v '^ *+' conftest.er1 >conftest.err
8607 cat conftest.err >&5
8608 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8609 (exit $ac_status); } && {
8610 test -z "$ac_c_werror_flag" ||
8611 test ! -s conftest.err
8612 } && test -s conftest.$ac_objext; then
8613 ac_hi=$ac_mid; break
8615 $as_echo "$as_me: failed program was:" >&5
8616 sed 's/^/| /' conftest.$ac_ext >&5
8618 ac_lo=`expr $ac_mid + 1`
8619 if test $ac_lo -le $ac_mid; then
8623 ac_mid=`expr 2 '*' $ac_mid + 1`
8626 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8629 $as_echo "$as_me: failed program was:" >&5
8630 sed 's/^/| /' conftest.$ac_ext >&5
8632 cat >conftest.$ac_ext <<_ACEOF
8635 cat confdefs.h >>conftest.$ac_ext
8636 cat >>conftest.$ac_ext <<_ACEOF
8637 /* end confdefs.h. */
8638 $ac_includes_default
8642 static int test_array [1 - 2 * !(((long int) (sizeof (off_t))) < 0)];
8649 rm -f conftest.$ac_objext
8650 if { (ac_try="$ac_compile"
8652 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8653 *) ac_try_echo=$ac_try;;
8655 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8656 $as_echo "$ac_try_echo") >&5
8657 (eval "$ac_compile") 2>conftest.er1
8659 grep -v '^ *+' conftest.er1 >conftest.err
8661 cat conftest.err >&5
8662 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8663 (exit $ac_status); } && {
8664 test -z "$ac_c_werror_flag" ||
8665 test ! -s conftest.err
8666 } && test -s conftest.$ac_objext; then
8669 cat >conftest.$ac_ext <<_ACEOF
8672 cat confdefs.h >>conftest.$ac_ext
8673 cat >>conftest.$ac_ext <<_ACEOF
8674 /* end confdefs.h. */
8675 $ac_includes_default
8679 static int test_array [1 - 2 * !(((long int) (sizeof (off_t))) >= $ac_mid)];
8686 rm -f conftest.$ac_objext
8687 if { (ac_try="$ac_compile"
8689 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8690 *) ac_try_echo=$ac_try;;
8692 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8693 $as_echo "$ac_try_echo") >&5
8694 (eval "$ac_compile") 2>conftest.er1
8696 grep -v '^ *+' conftest.er1 >conftest.err
8698 cat conftest.err >&5
8699 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8700 (exit $ac_status); } && {
8701 test -z "$ac_c_werror_flag" ||
8702 test ! -s conftest.err
8703 } && test -s conftest.$ac_objext; then
8704 ac_lo=$ac_mid; break
8706 $as_echo "$as_me: failed program was:" >&5
8707 sed 's/^/| /' conftest.$ac_ext >&5
8709 ac_hi=`expr '(' $ac_mid ')' - 1`
8710 if test $ac_mid -le $ac_hi; then
8714 ac_mid=`expr 2 '*' $ac_mid`
8717 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8720 $as_echo "$as_me: failed program was:" >&5
8721 sed 's/^/| /' conftest.$ac_ext >&5
8726 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8729 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8730 # Binary search between lo and hi bounds.
8731 while test "x$ac_lo" != "x$ac_hi"; do
8732 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
8733 cat >conftest.$ac_ext <<_ACEOF
8736 cat confdefs.h >>conftest.$ac_ext
8737 cat >>conftest.$ac_ext <<_ACEOF
8738 /* end confdefs.h. */
8739 $ac_includes_default
8743 static int test_array [1 - 2 * !(((long int) (sizeof (off_t))) <= $ac_mid)];
8750 rm -f conftest.$ac_objext
8751 if { (ac_try="$ac_compile"
8753 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8754 *) ac_try_echo=$ac_try;;
8756 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8757 $as_echo "$ac_try_echo") >&5
8758 (eval "$ac_compile") 2>conftest.er1
8760 grep -v '^ *+' conftest.er1 >conftest.err
8762 cat conftest.err >&5
8763 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8764 (exit $ac_status); } && {
8765 test -z "$ac_c_werror_flag" ||
8766 test ! -s conftest.err
8767 } && test -s conftest.$ac_objext; then
8770 $as_echo "$as_me: failed program was:" >&5
8771 sed 's/^/| /' conftest.$ac_ext >&5
8773 ac_lo=`expr '(' $ac_mid ')' + 1`
8776 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8779 ?*) ac_cv_sizeof_off_t=$ac_lo;;
8780 '') if test "$ac_cv_type_off_t" = yes; then
8781 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
8782 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8783 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (off_t)
8784 See \`config.log' for more details." >&5
8785 $as_echo "$as_me: error: cannot compute sizeof (off_t)
8786 See \`config.log' for more details." >&2;}
8787 { (exit 77); exit 77; }; }; }
8789 ac_cv_sizeof_off_t=0
8793 cat >conftest.$ac_ext <<_ACEOF
8796 cat confdefs.h >>conftest.$ac_ext
8797 cat >>conftest.$ac_ext <<_ACEOF
8798 /* end confdefs.h. */
8799 $ac_includes_default
8800 static long int longval () { return (long int) (sizeof (off_t)); }
8801 static unsigned long int ulongval () { return (long int) (sizeof (off_t)); }
8808 FILE *f = fopen ("conftest.val", "w");
8811 if (((long int) (sizeof (off_t))) < 0)
8813 long int i = longval ();
8814 if (i != ((long int) (sizeof (off_t))))
8816 fprintf (f, "%ld", i);
8820 unsigned long int i = ulongval ();
8821 if (i != ((long int) (sizeof (off_t))))
8823 fprintf (f, "%lu", i);
8825 /* Do not output a trailing newline, as this causes \r\n confusion
8826 on some platforms. */
8827 return ferror (f) || fclose (f) != 0;
8833 rm -f conftest$ac_exeext
8834 if { (ac_try="$ac_link"
8836 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8837 *) ac_try_echo=$ac_try;;
8839 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8840 $as_echo "$ac_try_echo") >&5
8841 (eval "$ac_link") 2>&5
8843 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8844 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8845 { (case "(($ac_try" in
8846 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8847 *) ac_try_echo=$ac_try;;
8849 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8850 $as_echo "$ac_try_echo") >&5
8851 (eval "$ac_try") 2>&5
8853 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8854 (exit $ac_status); }; }; then
8855 ac_cv_sizeof_off_t=`cat conftest.val`
8857 $as_echo "$as_me: program exited with status $ac_status" >&5
8858 $as_echo "$as_me: failed program was:" >&5
8859 sed 's/^/| /' conftest.$ac_ext >&5
8862 if test "$ac_cv_type_off_t" = yes; then
8863 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
8864 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8865 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (off_t)
8866 See \`config.log' for more details." >&5
8867 $as_echo "$as_me: error: cannot compute sizeof (off_t)
8868 See \`config.log' for more details." >&2;}
8869 { (exit 77); exit 77; }; }; }
8871 ac_cv_sizeof_off_t=0
8874 rm -rf conftest.dSYM
8875 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8879 { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_off_t" >&5
8880 $as_echo "$ac_cv_sizeof_off_t" >&6; }
8884 cat >>confdefs.h <<_ACEOF
8885 #define SIZEOF_OFF_T $ac_cv_sizeof_off_t
8890 # Checks for library functions.
8892 for ac_header in stdlib.h
8894 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8895 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8896 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
8897 $as_echo_n "checking for $ac_header... " >&6; }
8898 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8899 $as_echo_n "(cached) " >&6
8901 ac_res=`eval 'as_val=${'$as_ac_Header'}
8902 $as_echo "$as_val"'`
8903 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
8904 $as_echo "$ac_res" >&6; }
8906 # Is the header compilable?
8907 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
8908 $as_echo_n "checking $ac_header usability... " >&6; }
8909 cat >conftest.$ac_ext <<_ACEOF
8912 cat confdefs.h >>conftest.$ac_ext
8913 cat >>conftest.$ac_ext <<_ACEOF
8914 /* end confdefs.h. */
8915 $ac_includes_default
8916 #include <$ac_header>
8918 rm -f conftest.$ac_objext
8919 if { (ac_try="$ac_compile"
8921 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8922 *) ac_try_echo=$ac_try;;
8924 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8925 $as_echo "$ac_try_echo") >&5
8926 (eval "$ac_compile") 2>conftest.er1
8928 grep -v '^ *+' conftest.er1 >conftest.err
8930 cat conftest.err >&5
8931 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8932 (exit $ac_status); } && {
8933 test -z "$ac_c_werror_flag" ||
8934 test ! -s conftest.err
8935 } && test -s conftest.$ac_objext; then
8936 ac_header_compiler=yes
8938 $as_echo "$as_me: failed program was:" >&5
8939 sed 's/^/| /' conftest.$ac_ext >&5
8941 ac_header_compiler=no
8944 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8945 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8946 $as_echo "$ac_header_compiler" >&6; }
8948 # Is the header present?
8949 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
8950 $as_echo_n "checking $ac_header presence... " >&6; }
8951 cat >conftest.$ac_ext <<_ACEOF
8954 cat confdefs.h >>conftest.$ac_ext
8955 cat >>conftest.$ac_ext <<_ACEOF
8956 /* end confdefs.h. */
8957 #include <$ac_header>
8959 if { (ac_try="$ac_cpp conftest.$ac_ext"
8961 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8962 *) ac_try_echo=$ac_try;;
8964 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8965 $as_echo "$ac_try_echo") >&5
8966 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8968 grep -v '^ *+' conftest.er1 >conftest.err
8970 cat conftest.err >&5
8971 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8972 (exit $ac_status); } >/dev/null && {
8973 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
8974 test ! -s conftest.err
8976 ac_header_preproc=yes
8978 $as_echo "$as_me: failed program was:" >&5
8979 sed 's/^/| /' conftest.$ac_ext >&5
8981 ac_header_preproc=no
8984 rm -f conftest.err conftest.$ac_ext
8985 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8986 $as_echo "$ac_header_preproc" >&6; }
8988 # So? What about this header?
8989 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8991 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8992 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8993 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8994 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8995 ac_header_preproc=yes
8998 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8999 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9000 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9001 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9002 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9003 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9004 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9005 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9006 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9007 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9008 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9009 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9011 ## ------------------------------- ##
9012 ## Report this to grant@NetBSD.org ##
9013 ## ------------------------------- ##
9015 ) | sed "s/^/$as_me: WARNING: /" >&2
9018 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
9019 $as_echo_n "checking for $ac_header... " >&6; }
9020 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9021 $as_echo_n "(cached) " >&6
9023 eval "$as_ac_Header=\$ac_header_preproc"
9025 ac_res=`eval 'as_val=${'$as_ac_Header'}
9026 $as_echo "$as_val"'`
9027 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
9028 $as_echo "$ac_res" >&6; }
9031 as_val=`eval 'as_val=${'$as_ac_Header'}
9032 $as_echo "$as_val"'`
9033 if test "x$as_val" = x""yes; then
9034 cat >>confdefs.h <<_ACEOF
9035 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9042 { $as_echo "$as_me:$LINENO: checking for GNU libc compatible malloc" >&5
9043 $as_echo_n "checking for GNU libc compatible malloc... " >&6; }
9044 if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then
9045 $as_echo_n "(cached) " >&6
9047 if test "$cross_compiling" = yes; then
9048 ac_cv_func_malloc_0_nonnull=no
9050 cat >conftest.$ac_ext <<_ACEOF
9053 cat confdefs.h >>conftest.$ac_ext
9054 cat >>conftest.$ac_ext <<_ACEOF
9055 /* end confdefs.h. */
9056 #if defined STDC_HEADERS || defined HAVE_STDLIB_H
9057 # include <stdlib.h>
9065 return ! malloc (0);
9070 rm -f conftest$ac_exeext
9071 if { (ac_try="$ac_link"
9073 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9074 *) ac_try_echo=$ac_try;;
9076 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9077 $as_echo "$ac_try_echo") >&5
9078 (eval "$ac_link") 2>&5
9080 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9081 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9082 { (case "(($ac_try" in
9083 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9084 *) ac_try_echo=$ac_try;;
9086 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9087 $as_echo "$ac_try_echo") >&5
9088 (eval "$ac_try") 2>&5
9090 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9091 (exit $ac_status); }; }; then
9092 ac_cv_func_malloc_0_nonnull=yes
9094 $as_echo "$as_me: program exited with status $ac_status" >&5
9095 $as_echo "$as_me: failed program was:" >&5
9096 sed 's/^/| /' conftest.$ac_ext >&5
9099 ac_cv_func_malloc_0_nonnull=no
9101 rm -rf conftest.dSYM
9102 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9107 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_malloc_0_nonnull" >&5
9108 $as_echo "$ac_cv_func_malloc_0_nonnull" >&6; }
9109 if test $ac_cv_func_malloc_0_nonnull = yes; then
9111 cat >>confdefs.h <<\_ACEOF
9112 #define HAVE_MALLOC 1
9116 cat >>confdefs.h <<\_ACEOF
9117 #define HAVE_MALLOC 0
9120 case " $LIBOBJS " in
9121 *" malloc.$ac_objext "* ) ;;
9122 *) LIBOBJS="$LIBOBJS malloc.$ac_objext"
9127 cat >>confdefs.h <<\_ACEOF
9128 #define malloc rpl_malloc
9135 { $as_echo "$as_me:$LINENO: checking whether strerror_r is declared" >&5
9136 $as_echo_n "checking whether strerror_r is declared... " >&6; }
9137 if test "${ac_cv_have_decl_strerror_r+set}" = set; then
9138 $as_echo_n "(cached) " >&6
9140 cat >conftest.$ac_ext <<_ACEOF
9143 cat confdefs.h >>conftest.$ac_ext
9144 cat >>conftest.$ac_ext <<_ACEOF
9145 /* end confdefs.h. */
9146 $ac_includes_default
9158 rm -f conftest.$ac_objext
9159 if { (ac_try="$ac_compile"
9161 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9162 *) ac_try_echo=$ac_try;;
9164 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9165 $as_echo "$ac_try_echo") >&5
9166 (eval "$ac_compile") 2>conftest.er1
9168 grep -v '^ *+' conftest.er1 >conftest.err
9170 cat conftest.err >&5
9171 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9172 (exit $ac_status); } && {
9173 test -z "$ac_c_werror_flag" ||
9174 test ! -s conftest.err
9175 } && test -s conftest.$ac_objext; then
9176 ac_cv_have_decl_strerror_r=yes
9178 $as_echo "$as_me: failed program was:" >&5
9179 sed 's/^/| /' conftest.$ac_ext >&5
9181 ac_cv_have_decl_strerror_r=no
9184 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9186 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_strerror_r" >&5
9187 $as_echo "$ac_cv_have_decl_strerror_r" >&6; }
9188 if test "x$ac_cv_have_decl_strerror_r" = x""yes; then
9190 cat >>confdefs.h <<_ACEOF
9191 #define HAVE_DECL_STRERROR_R 1
9196 cat >>confdefs.h <<_ACEOF
9197 #define HAVE_DECL_STRERROR_R 0
9205 for ac_func in strerror_r
9207 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9208 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
9209 $as_echo_n "checking for $ac_func... " >&6; }
9210 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
9211 $as_echo_n "(cached) " >&6
9213 cat >conftest.$ac_ext <<_ACEOF
9216 cat confdefs.h >>conftest.$ac_ext
9217 cat >>conftest.$ac_ext <<_ACEOF
9218 /* end confdefs.h. */
9219 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9220 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9221 #define $ac_func innocuous_$ac_func
9223 /* System header to define __stub macros and hopefully few prototypes,
9224 which can conflict with char $ac_func (); below.
9225 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9226 <limits.h> exists even on freestanding compilers. */
9229 # include <limits.h>
9231 # include <assert.h>
9236 /* Override any GCC internal prototype to avoid an error.
9237 Use char because int might match the return type of a GCC
9238 builtin and then its argument prototype would still apply. */
9243 /* The GNU C library defines this for functions which it implements
9244 to always fail with ENOSYS. Some functions are actually named
9245 something starting with __ and the normal name is an alias. */
9246 #if defined __stub_$ac_func || defined __stub___$ac_func
9258 rm -f conftest.$ac_objext conftest$ac_exeext
9259 if { (ac_try="$ac_link"
9261 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9262 *) ac_try_echo=$ac_try;;
9264 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9265 $as_echo "$ac_try_echo") >&5
9266 (eval "$ac_link") 2>conftest.er1
9268 grep -v '^ *+' conftest.er1 >conftest.err
9270 cat conftest.err >&5
9271 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9272 (exit $ac_status); } && {
9273 test -z "$ac_c_werror_flag" ||
9274 test ! -s conftest.err
9275 } && test -s conftest$ac_exeext && {
9276 test "$cross_compiling" = yes ||
9277 $as_test_x conftest$ac_exeext
9279 eval "$as_ac_var=yes"
9281 $as_echo "$as_me: failed program was:" >&5
9282 sed 's/^/| /' conftest.$ac_ext >&5
9284 eval "$as_ac_var=no"
9287 rm -rf conftest.dSYM
9288 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9289 conftest$ac_exeext conftest.$ac_ext
9291 ac_res=`eval 'as_val=${'$as_ac_var'}
9292 $as_echo "$as_val"'`
9293 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
9294 $as_echo "$ac_res" >&6; }
9295 as_val=`eval 'as_val=${'$as_ac_var'}
9296 $as_echo "$as_val"'`
9297 if test "x$as_val" = x""yes; then
9298 cat >>confdefs.h <<_ACEOF
9299 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9305 { $as_echo "$as_me:$LINENO: checking whether strerror_r returns char *" >&5
9306 $as_echo_n "checking whether strerror_r returns char *... " >&6; }
9307 if test "${ac_cv_func_strerror_r_char_p+set}" = set; then
9308 $as_echo_n "(cached) " >&6
9311 ac_cv_func_strerror_r_char_p=no
9312 if test $ac_cv_have_decl_strerror_r = yes; then
9313 cat >conftest.$ac_ext <<_ACEOF
9316 cat confdefs.h >>conftest.$ac_ext
9317 cat >>conftest.$ac_ext <<_ACEOF
9318 /* end confdefs.h. */
9319 $ac_includes_default
9325 char x = *strerror_r (0, buf, sizeof buf);
9326 char *p = strerror_r (0, buf, sizeof buf);
9333 rm -f conftest.$ac_objext
9334 if { (ac_try="$ac_compile"
9336 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9337 *) ac_try_echo=$ac_try;;
9339 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9340 $as_echo "$ac_try_echo") >&5
9341 (eval "$ac_compile") 2>conftest.er1
9343 grep -v '^ *+' conftest.er1 >conftest.err
9345 cat conftest.err >&5
9346 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9347 (exit $ac_status); } && {
9348 test -z "$ac_c_werror_flag" ||
9349 test ! -s conftest.err
9350 } && test -s conftest.$ac_objext; then
9351 ac_cv_func_strerror_r_char_p=yes
9353 $as_echo "$as_me: failed program was:" >&5
9354 sed 's/^/| /' conftest.$ac_ext >&5
9359 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9361 # strerror_r is not declared. Choose between
9362 # systems that have relatively inaccessible declarations for the
9363 # function. BeOS and DEC UNIX 4.0 fall in this category, but the
9364 # former has a strerror_r that returns char*, while the latter
9365 # has a strerror_r that returns `int'.
9366 # This test should segfault on the DEC system.
9367 if test "$cross_compiling" = yes; then
9370 cat >conftest.$ac_ext <<_ACEOF
9373 cat confdefs.h >>conftest.$ac_ext
9374 cat >>conftest.$ac_ext <<_ACEOF
9375 /* end confdefs.h. */
9376 $ac_includes_default
9377 extern char *strerror_r ();
9382 char x = *strerror_r (0, buf, sizeof buf);
9383 return ! isalpha (x);
9388 rm -f conftest$ac_exeext
9389 if { (ac_try="$ac_link"
9391 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9392 *) ac_try_echo=$ac_try;;
9394 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9395 $as_echo "$ac_try_echo") >&5
9396 (eval "$ac_link") 2>&5
9398 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9399 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9400 { (case "(($ac_try" in
9401 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9402 *) ac_try_echo=$ac_try;;
9404 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9405 $as_echo "$ac_try_echo") >&5
9406 (eval "$ac_try") 2>&5
9408 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9409 (exit $ac_status); }; }; then
9410 ac_cv_func_strerror_r_char_p=yes
9412 $as_echo "$as_me: program exited with status $ac_status" >&5
9413 $as_echo "$as_me: failed program was:" >&5
9414 sed 's/^/| /' conftest.$ac_ext >&5
9417 rm -rf conftest.dSYM
9418 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9425 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_strerror_r_char_p" >&5
9426 $as_echo "$ac_cv_func_strerror_r_char_p" >&6; }
9427 if test $ac_cv_func_strerror_r_char_p = yes; then
9429 cat >>confdefs.h <<\_ACEOF
9430 #define STRERROR_R_CHAR_P 1
9435 { $as_echo "$as_me:$LINENO: checking for pid_t" >&5
9436 $as_echo_n "checking for pid_t... " >&6; }
9437 if test "${ac_cv_type_pid_t+set}" = set; then
9438 $as_echo_n "(cached) " >&6
9441 cat >conftest.$ac_ext <<_ACEOF
9444 cat confdefs.h >>conftest.$ac_ext
9445 cat >>conftest.$ac_ext <<_ACEOF
9446 /* end confdefs.h. */
9447 $ac_includes_default
9457 rm -f conftest.$ac_objext
9458 if { (ac_try="$ac_compile"
9460 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9461 *) ac_try_echo=$ac_try;;
9463 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9464 $as_echo "$ac_try_echo") >&5
9465 (eval "$ac_compile") 2>conftest.er1
9467 grep -v '^ *+' conftest.er1 >conftest.err
9469 cat conftest.err >&5
9470 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9471 (exit $ac_status); } && {
9472 test -z "$ac_c_werror_flag" ||
9473 test ! -s conftest.err
9474 } && test -s conftest.$ac_objext; then
9475 cat >conftest.$ac_ext <<_ACEOF
9478 cat confdefs.h >>conftest.$ac_ext
9479 cat >>conftest.$ac_ext <<_ACEOF
9480 /* end confdefs.h. */
9481 $ac_includes_default
9485 if (sizeof ((pid_t)))
9491 rm -f conftest.$ac_objext
9492 if { (ac_try="$ac_compile"
9494 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9495 *) ac_try_echo=$ac_try;;
9497 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9498 $as_echo "$ac_try_echo") >&5
9499 (eval "$ac_compile") 2>conftest.er1
9501 grep -v '^ *+' conftest.er1 >conftest.err
9503 cat conftest.err >&5
9504 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9505 (exit $ac_status); } && {
9506 test -z "$ac_c_werror_flag" ||
9507 test ! -s conftest.err
9508 } && test -s conftest.$ac_objext; then
9511 $as_echo "$as_me: failed program was:" >&5
9512 sed 's/^/| /' conftest.$ac_ext >&5
9514 ac_cv_type_pid_t=yes
9517 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9519 $as_echo "$as_me: failed program was:" >&5
9520 sed 's/^/| /' conftest.$ac_ext >&5
9525 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9527 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
9528 $as_echo "$ac_cv_type_pid_t" >&6; }
9529 if test "x$ac_cv_type_pid_t" = x""yes; then
9533 cat >>confdefs.h <<_ACEOF
9540 for ac_header in vfork.h
9542 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9543 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9544 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
9545 $as_echo_n "checking for $ac_header... " >&6; }
9546 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9547 $as_echo_n "(cached) " >&6
9549 ac_res=`eval 'as_val=${'$as_ac_Header'}
9550 $as_echo "$as_val"'`
9551 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
9552 $as_echo "$ac_res" >&6; }
9554 # Is the header compilable?
9555 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
9556 $as_echo_n "checking $ac_header usability... " >&6; }
9557 cat >conftest.$ac_ext <<_ACEOF
9560 cat confdefs.h >>conftest.$ac_ext
9561 cat >>conftest.$ac_ext <<_ACEOF
9562 /* end confdefs.h. */
9563 $ac_includes_default
9564 #include <$ac_header>
9566 rm -f conftest.$ac_objext
9567 if { (ac_try="$ac_compile"
9569 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9570 *) ac_try_echo=$ac_try;;
9572 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9573 $as_echo "$ac_try_echo") >&5
9574 (eval "$ac_compile") 2>conftest.er1
9576 grep -v '^ *+' conftest.er1 >conftest.err
9578 cat conftest.err >&5
9579 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9580 (exit $ac_status); } && {
9581 test -z "$ac_c_werror_flag" ||
9582 test ! -s conftest.err
9583 } && test -s conftest.$ac_objext; then
9584 ac_header_compiler=yes
9586 $as_echo "$as_me: failed program was:" >&5
9587 sed 's/^/| /' conftest.$ac_ext >&5
9589 ac_header_compiler=no
9592 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9593 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9594 $as_echo "$ac_header_compiler" >&6; }
9596 # Is the header present?
9597 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
9598 $as_echo_n "checking $ac_header presence... " >&6; }
9599 cat >conftest.$ac_ext <<_ACEOF
9602 cat confdefs.h >>conftest.$ac_ext
9603 cat >>conftest.$ac_ext <<_ACEOF
9604 /* end confdefs.h. */
9605 #include <$ac_header>
9607 if { (ac_try="$ac_cpp conftest.$ac_ext"
9609 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9610 *) ac_try_echo=$ac_try;;
9612 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9613 $as_echo "$ac_try_echo") >&5
9614 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9616 grep -v '^ *+' conftest.er1 >conftest.err
9618 cat conftest.err >&5
9619 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9620 (exit $ac_status); } >/dev/null && {
9621 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9622 test ! -s conftest.err
9624 ac_header_preproc=yes
9626 $as_echo "$as_me: failed program was:" >&5
9627 sed 's/^/| /' conftest.$ac_ext >&5
9629 ac_header_preproc=no
9632 rm -f conftest.err conftest.$ac_ext
9633 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9634 $as_echo "$ac_header_preproc" >&6; }
9636 # So? What about this header?
9637 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9639 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9640 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9641 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9642 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9643 ac_header_preproc=yes
9646 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9647 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9648 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9649 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9650 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9651 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9652 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9653 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9654 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9655 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9656 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9657 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9659 ## ------------------------------- ##
9660 ## Report this to grant@NetBSD.org ##
9661 ## ------------------------------- ##
9663 ) | sed "s/^/$as_me: WARNING: /" >&2
9666 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
9667 $as_echo_n "checking for $ac_header... " >&6; }
9668 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9669 $as_echo_n "(cached) " >&6
9671 eval "$as_ac_Header=\$ac_header_preproc"
9673 ac_res=`eval 'as_val=${'$as_ac_Header'}
9674 $as_echo "$as_val"'`
9675 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
9676 $as_echo "$ac_res" >&6; }
9679 as_val=`eval 'as_val=${'$as_ac_Header'}
9680 $as_echo "$as_val"'`
9681 if test "x$as_val" = x""yes; then
9682 cat >>confdefs.h <<_ACEOF
9683 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9692 for ac_func in fork vfork
9694 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9695 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
9696 $as_echo_n "checking for $ac_func... " >&6; }
9697 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
9698 $as_echo_n "(cached) " >&6
9700 cat >conftest.$ac_ext <<_ACEOF
9703 cat confdefs.h >>conftest.$ac_ext
9704 cat >>conftest.$ac_ext <<_ACEOF
9705 /* end confdefs.h. */
9706 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9707 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9708 #define $ac_func innocuous_$ac_func
9710 /* System header to define __stub macros and hopefully few prototypes,
9711 which can conflict with char $ac_func (); below.
9712 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9713 <limits.h> exists even on freestanding compilers. */
9716 # include <limits.h>
9718 # include <assert.h>
9723 /* Override any GCC internal prototype to avoid an error.
9724 Use char because int might match the return type of a GCC
9725 builtin and then its argument prototype would still apply. */
9730 /* The GNU C library defines this for functions which it implements
9731 to always fail with ENOSYS. Some functions are actually named
9732 something starting with __ and the normal name is an alias. */
9733 #if defined __stub_$ac_func || defined __stub___$ac_func
9745 rm -f conftest.$ac_objext conftest$ac_exeext
9746 if { (ac_try="$ac_link"
9748 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9749 *) ac_try_echo=$ac_try;;
9751 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9752 $as_echo "$ac_try_echo") >&5
9753 (eval "$ac_link") 2>conftest.er1
9755 grep -v '^ *+' conftest.er1 >conftest.err
9757 cat conftest.err >&5
9758 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9759 (exit $ac_status); } && {
9760 test -z "$ac_c_werror_flag" ||
9761 test ! -s conftest.err
9762 } && test -s conftest$ac_exeext && {
9763 test "$cross_compiling" = yes ||
9764 $as_test_x conftest$ac_exeext
9766 eval "$as_ac_var=yes"
9768 $as_echo "$as_me: failed program was:" >&5
9769 sed 's/^/| /' conftest.$ac_ext >&5
9771 eval "$as_ac_var=no"
9774 rm -rf conftest.dSYM
9775 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9776 conftest$ac_exeext conftest.$ac_ext
9778 ac_res=`eval 'as_val=${'$as_ac_var'}
9779 $as_echo "$as_val"'`
9780 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
9781 $as_echo "$ac_res" >&6; }
9782 as_val=`eval 'as_val=${'$as_ac_var'}
9783 $as_echo "$as_val"'`
9784 if test "x$as_val" = x""yes; then
9785 cat >>confdefs.h <<_ACEOF
9786 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9792 if test "x$ac_cv_func_fork" = xyes; then
9793 { $as_echo "$as_me:$LINENO: checking for working fork" >&5
9794 $as_echo_n "checking for working fork... " >&6; }
9795 if test "${ac_cv_func_fork_works+set}" = set; then
9796 $as_echo_n "(cached) " >&6
9798 if test "$cross_compiling" = yes; then
9799 ac_cv_func_fork_works=cross
9801 cat >conftest.$ac_ext <<_ACEOF
9804 cat confdefs.h >>conftest.$ac_ext
9805 cat >>conftest.$ac_ext <<_ACEOF
9806 /* end confdefs.h. */
9807 $ac_includes_default
9812 /* By Ruediger Kuhlmann. */
9819 rm -f conftest$ac_exeext
9820 if { (ac_try="$ac_link"
9822 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9823 *) ac_try_echo=$ac_try;;
9825 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9826 $as_echo "$ac_try_echo") >&5
9827 (eval "$ac_link") 2>&5
9829 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9830 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9831 { (case "(($ac_try" in
9832 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9833 *) ac_try_echo=$ac_try;;
9835 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9836 $as_echo "$ac_try_echo") >&5
9837 (eval "$ac_try") 2>&5
9839 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9840 (exit $ac_status); }; }; then
9841 ac_cv_func_fork_works=yes
9843 $as_echo "$as_me: program exited with status $ac_status" >&5
9844 $as_echo "$as_me: failed program was:" >&5
9845 sed 's/^/| /' conftest.$ac_ext >&5
9848 ac_cv_func_fork_works=no
9850 rm -rf conftest.dSYM
9851 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9856 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
9857 $as_echo "$ac_cv_func_fork_works" >&6; }
9860 ac_cv_func_fork_works=$ac_cv_func_fork
9862 if test "x$ac_cv_func_fork_works" = xcross; then
9864 *-*-amigaos* | *-*-msdosdjgpp*)
9865 # Override, as these systems have only a dummy fork() stub
9866 ac_cv_func_fork_works=no
9869 ac_cv_func_fork_works=yes
9872 { $as_echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
9873 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
9875 ac_cv_func_vfork_works=$ac_cv_func_vfork
9876 if test "x$ac_cv_func_vfork" = xyes; then
9877 { $as_echo "$as_me:$LINENO: checking for working vfork" >&5
9878 $as_echo_n "checking for working vfork... " >&6; }
9879 if test "${ac_cv_func_vfork_works+set}" = set; then
9880 $as_echo_n "(cached) " >&6
9882 if test "$cross_compiling" = yes; then
9883 ac_cv_func_vfork_works=cross
9885 cat >conftest.$ac_ext <<_ACEOF
9888 cat confdefs.h >>conftest.$ac_ext
9889 cat >>conftest.$ac_ext <<_ACEOF
9890 /* end confdefs.h. */
9891 /* Thanks to Paul Eggert for this test. */
9892 $ac_includes_default
9893 #include <sys/wait.h>
9897 /* On some sparc systems, changes by the child to local and incoming
9898 argument registers are propagated back to the parent. The compiler
9899 is told about this with #include <vfork.h>, but some compilers
9900 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
9901 static variable whose address is put into a register that is
9902 clobbered by the vfork. */
9905 sparc_address_test (int arg)
9907 sparc_address_test (arg) int arg;
9928 pid_t parent = getpid ();
9931 sparc_address_test (0);
9936 /* Here is another test for sparc vfork register problems. This
9937 test uses lots of local variables, at least as many local
9938 variables as main has allocated so far including compiler
9939 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
9940 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
9941 reuse the register of parent for one of the local variables,
9942 since it will think that parent can't possibly be used any more
9943 in this routine. Assigning to the local variable will thus
9944 munge parent in the parent process. */
9946 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
9947 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
9948 /* Convince the compiler that p..p7 are live; otherwise, it might
9949 use the same hardware register for all 8 local variables. */
9950 if (p != p1 || p != p2 || p != p3 || p != p4
9951 || p != p5 || p != p6 || p != p7)
9954 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
9955 from child file descriptors. If the child closes a descriptor
9956 before it execs or exits, this munges the parent's descriptor
9957 as well. Test for this by closing stdout in the child. */
9958 _exit(close(fileno(stdout)) != 0);
9963 while (wait(&status) != child)
9966 /* Was there some problem with vforking? */
9969 /* Did the child fail? (This shouldn't happen.) */
9972 /* Did the vfork/compiler bug occur? */
9973 || parent != getpid()
9975 /* Did the file descriptor bug occur? */
9976 || fstat(fileno(stdout), &st) != 0
9981 rm -f conftest$ac_exeext
9982 if { (ac_try="$ac_link"
9984 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9985 *) ac_try_echo=$ac_try;;
9987 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9988 $as_echo "$ac_try_echo") >&5
9989 (eval "$ac_link") 2>&5
9991 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9992 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9993 { (case "(($ac_try" in
9994 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9995 *) ac_try_echo=$ac_try;;
9997 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9998 $as_echo "$ac_try_echo") >&5
9999 (eval "$ac_try") 2>&5
10001 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10002 (exit $ac_status); }; }; then
10003 ac_cv_func_vfork_works=yes
10005 $as_echo "$as_me: program exited with status $ac_status" >&5
10006 $as_echo "$as_me: failed program was:" >&5
10007 sed 's/^/| /' conftest.$ac_ext >&5
10009 ( exit $ac_status )
10010 ac_cv_func_vfork_works=no
10012 rm -rf conftest.dSYM
10013 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10018 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
10019 $as_echo "$ac_cv_func_vfork_works" >&6; }
10022 if test "x$ac_cv_func_fork_works" = xcross; then
10023 ac_cv_func_vfork_works=$ac_cv_func_vfork
10024 { $as_echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
10025 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
10028 if test "x$ac_cv_func_vfork_works" = xyes; then
10030 cat >>confdefs.h <<\_ACEOF
10031 #define HAVE_WORKING_VFORK 1
10036 cat >>confdefs.h <<\_ACEOF
10041 if test "x$ac_cv_func_fork_works" = xyes; then
10043 cat >>confdefs.h <<\_ACEOF
10044 #define HAVE_WORKING_FORK 1
10050 for ac_func in vprintf
10052 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10053 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
10054 $as_echo_n "checking for $ac_func... " >&6; }
10055 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10056 $as_echo_n "(cached) " >&6
10058 cat >conftest.$ac_ext <<_ACEOF
10061 cat confdefs.h >>conftest.$ac_ext
10062 cat >>conftest.$ac_ext <<_ACEOF
10063 /* end confdefs.h. */
10064 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10065 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10066 #define $ac_func innocuous_$ac_func
10068 /* System header to define __stub macros and hopefully few prototypes,
10069 which can conflict with char $ac_func (); below.
10070 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10071 <limits.h> exists even on freestanding compilers. */
10074 # include <limits.h>
10076 # include <assert.h>
10081 /* Override any GCC internal prototype to avoid an error.
10082 Use char because int might match the return type of a GCC
10083 builtin and then its argument prototype would still apply. */
10088 /* The GNU C library defines this for functions which it implements
10089 to always fail with ENOSYS. Some functions are actually named
10090 something starting with __ and the normal name is an alias. */
10091 #if defined __stub_$ac_func || defined __stub___$ac_func
10098 return $ac_func ();
10103 rm -f conftest.$ac_objext conftest$ac_exeext
10104 if { (ac_try="$ac_link"
10105 case "(($ac_try" in
10106 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10107 *) ac_try_echo=$ac_try;;
10109 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10110 $as_echo "$ac_try_echo") >&5
10111 (eval "$ac_link") 2>conftest.er1
10113 grep -v '^ *+' conftest.er1 >conftest.err
10115 cat conftest.err >&5
10116 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10117 (exit $ac_status); } && {
10118 test -z "$ac_c_werror_flag" ||
10119 test ! -s conftest.err
10120 } && test -s conftest$ac_exeext && {
10121 test "$cross_compiling" = yes ||
10122 $as_test_x conftest$ac_exeext
10124 eval "$as_ac_var=yes"
10126 $as_echo "$as_me: failed program was:" >&5
10127 sed 's/^/| /' conftest.$ac_ext >&5
10129 eval "$as_ac_var=no"
10132 rm -rf conftest.dSYM
10133 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10134 conftest$ac_exeext conftest.$ac_ext
10136 ac_res=`eval 'as_val=${'$as_ac_var'}
10137 $as_echo "$as_val"'`
10138 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10139 $as_echo "$ac_res" >&6; }
10140 as_val=`eval 'as_val=${'$as_ac_var'}
10141 $as_echo "$as_val"'`
10142 if test "x$as_val" = x""yes; then
10143 cat >>confdefs.h <<_ACEOF
10144 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10147 { $as_echo "$as_me:$LINENO: checking for _doprnt" >&5
10148 $as_echo_n "checking for _doprnt... " >&6; }
10149 if test "${ac_cv_func__doprnt+set}" = set; then
10150 $as_echo_n "(cached) " >&6
10152 cat >conftest.$ac_ext <<_ACEOF
10155 cat confdefs.h >>conftest.$ac_ext
10156 cat >>conftest.$ac_ext <<_ACEOF
10157 /* end confdefs.h. */
10158 /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
10159 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10160 #define _doprnt innocuous__doprnt
10162 /* System header to define __stub macros and hopefully few prototypes,
10163 which can conflict with char _doprnt (); below.
10164 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10165 <limits.h> exists even on freestanding compilers. */
10168 # include <limits.h>
10170 # include <assert.h>
10175 /* Override any GCC internal prototype to avoid an error.
10176 Use char because int might match the return type of a GCC
10177 builtin and then its argument prototype would still apply. */
10182 /* The GNU C library defines this for functions which it implements
10183 to always fail with ENOSYS. Some functions are actually named
10184 something starting with __ and the normal name is an alias. */
10185 #if defined __stub__doprnt || defined __stub____doprnt
10197 rm -f conftest.$ac_objext conftest$ac_exeext
10198 if { (ac_try="$ac_link"
10199 case "(($ac_try" in
10200 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10201 *) ac_try_echo=$ac_try;;
10203 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10204 $as_echo "$ac_try_echo") >&5
10205 (eval "$ac_link") 2>conftest.er1
10207 grep -v '^ *+' conftest.er1 >conftest.err
10209 cat conftest.err >&5
10210 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10211 (exit $ac_status); } && {
10212 test -z "$ac_c_werror_flag" ||
10213 test ! -s conftest.err
10214 } && test -s conftest$ac_exeext && {
10215 test "$cross_compiling" = yes ||
10216 $as_test_x conftest$ac_exeext
10218 ac_cv_func__doprnt=yes
10220 $as_echo "$as_me: failed program was:" >&5
10221 sed 's/^/| /' conftest.$ac_ext >&5
10223 ac_cv_func__doprnt=no
10226 rm -rf conftest.dSYM
10227 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10228 conftest$ac_exeext conftest.$ac_ext
10230 { $as_echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
10231 $as_echo "$ac_cv_func__doprnt" >&6; }
10232 if test "x$ac_cv_func__doprnt" = x""yes; then
10234 cat >>confdefs.h <<\_ACEOF
10235 #define HAVE_DOPRNT 1
10245 { $as_echo "$as_me:$LINENO: checking whether snprintf is declared" >&5
10246 $as_echo_n "checking whether snprintf is declared... " >&6; }
10247 if test "${ac_cv_have_decl_snprintf+set}" = set; then
10248 $as_echo_n "(cached) " >&6
10250 cat >conftest.$ac_ext <<_ACEOF
10253 cat confdefs.h >>conftest.$ac_ext
10254 cat >>conftest.$ac_ext <<_ACEOF
10255 /* end confdefs.h. */
10269 rm -f conftest.$ac_objext
10270 if { (ac_try="$ac_compile"
10271 case "(($ac_try" in
10272 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10273 *) ac_try_echo=$ac_try;;
10275 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10276 $as_echo "$ac_try_echo") >&5
10277 (eval "$ac_compile") 2>conftest.er1
10279 grep -v '^ *+' conftest.er1 >conftest.err
10281 cat conftest.err >&5
10282 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10283 (exit $ac_status); } && {
10284 test -z "$ac_c_werror_flag" ||
10285 test ! -s conftest.err
10286 } && test -s conftest.$ac_objext; then
10287 ac_cv_have_decl_snprintf=yes
10289 $as_echo "$as_me: failed program was:" >&5
10290 sed 's/^/| /' conftest.$ac_ext >&5
10292 ac_cv_have_decl_snprintf=no
10295 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10297 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_snprintf" >&5
10298 $as_echo "$ac_cv_have_decl_snprintf" >&6; }
10299 if test "x$ac_cv_have_decl_snprintf" = x""yes; then
10301 cat >>confdefs.h <<_ACEOF
10302 #define HAVE_DECL_SNPRINTF 1
10307 cat >>confdefs.h <<_ACEOF
10308 #define HAVE_DECL_SNPRINTF 0
10313 { $as_echo "$as_me:$LINENO: checking whether vasprintf is declared" >&5
10314 $as_echo_n "checking whether vasprintf is declared... " >&6; }
10315 if test "${ac_cv_have_decl_vasprintf+set}" = set; then
10316 $as_echo_n "(cached) " >&6
10318 cat >conftest.$ac_ext <<_ACEOF
10321 cat confdefs.h >>conftest.$ac_ext
10322 cat >>conftest.$ac_ext <<_ACEOF
10323 /* end confdefs.h. */
10337 rm -f conftest.$ac_objext
10338 if { (ac_try="$ac_compile"
10339 case "(($ac_try" in
10340 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10341 *) ac_try_echo=$ac_try;;
10343 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10344 $as_echo "$ac_try_echo") >&5
10345 (eval "$ac_compile") 2>conftest.er1
10347 grep -v '^ *+' conftest.er1 >conftest.err
10349 cat conftest.err >&5
10350 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10351 (exit $ac_status); } && {
10352 test -z "$ac_c_werror_flag" ||
10353 test ! -s conftest.err
10354 } && test -s conftest.$ac_objext; then
10355 ac_cv_have_decl_vasprintf=yes
10357 $as_echo "$as_me: failed program was:" >&5
10358 sed 's/^/| /' conftest.$ac_ext >&5
10360 ac_cv_have_decl_vasprintf=no
10363 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10365 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_vasprintf" >&5
10366 $as_echo "$ac_cv_have_decl_vasprintf" >&6; }
10367 if test "x$ac_cv_have_decl_vasprintf" = x""yes; then
10369 cat >>confdefs.h <<_ACEOF
10370 #define HAVE_DECL_VASPRINTF 1
10375 cat >>confdefs.h <<_ACEOF
10376 #define HAVE_DECL_VASPRINTF 0
10415 for ac_func in asprintf err fgetln fnmatch fparseln getenv isblank \
10416 lchflags lchmod lchown lutimes mkdtemp mkstemp setenv setgroupent \
10417 setpassent setprogname shquote snprintf statvfs strdup strerror \
10418 strlcat strlcpy strmode strsep strtoll unsetenv usleep utimes warn
10421 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10422 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
10423 $as_echo_n "checking for $ac_func... " >&6; }
10424 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10425 $as_echo_n "(cached) " >&6
10427 cat >conftest.$ac_ext <<_ACEOF
10430 cat confdefs.h >>conftest.$ac_ext
10431 cat >>conftest.$ac_ext <<_ACEOF
10432 /* end confdefs.h. */
10433 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10434 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10435 #define $ac_func innocuous_$ac_func
10437 /* System header to define __stub macros and hopefully few prototypes,
10438 which can conflict with char $ac_func (); below.
10439 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10440 <limits.h> exists even on freestanding compilers. */
10443 # include <limits.h>
10445 # include <assert.h>
10450 /* Override any GCC internal prototype to avoid an error.
10451 Use char because int might match the return type of a GCC
10452 builtin and then its argument prototype would still apply. */
10457 /* The GNU C library defines this for functions which it implements
10458 to always fail with ENOSYS. Some functions are actually named
10459 something starting with __ and the normal name is an alias. */
10460 #if defined __stub_$ac_func || defined __stub___$ac_func
10467 return $ac_func ();
10472 rm -f conftest.$ac_objext conftest$ac_exeext
10473 if { (ac_try="$ac_link"
10474 case "(($ac_try" in
10475 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10476 *) ac_try_echo=$ac_try;;
10478 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10479 $as_echo "$ac_try_echo") >&5
10480 (eval "$ac_link") 2>conftest.er1
10482 grep -v '^ *+' conftest.er1 >conftest.err
10484 cat conftest.err >&5
10485 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10486 (exit $ac_status); } && {
10487 test -z "$ac_c_werror_flag" ||
10488 test ! -s conftest.err
10489 } && test -s conftest$ac_exeext && {
10490 test "$cross_compiling" = yes ||
10491 $as_test_x conftest$ac_exeext
10493 eval "$as_ac_var=yes"
10495 $as_echo "$as_me: failed program was:" >&5
10496 sed 's/^/| /' conftest.$ac_ext >&5
10498 eval "$as_ac_var=no"
10501 rm -rf conftest.dSYM
10502 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10503 conftest$ac_exeext conftest.$ac_ext
10505 ac_res=`eval 'as_val=${'$as_ac_var'}
10506 $as_echo "$as_val"'`
10507 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10508 $as_echo "$ac_res" >&6; }
10509 as_val=`eval 'as_val=${'$as_ac_var'}
10510 $as_echo "$as_val"'`
10511 if test "x$as_val" = x""yes; then
10512 cat >>confdefs.h <<_ACEOF
10513 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10517 case " $LIBOBJS " in
10518 *" $ac_func.$ac_objext "* ) ;;
10519 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
10529 { $as_echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
10530 $as_echo_n "checking for socket in -lsocket... " >&6; }
10531 if test "${ac_cv_lib_socket_socket+set}" = set; then
10532 $as_echo_n "(cached) " >&6
10534 ac_check_lib_save_LIBS=$LIBS
10535 LIBS="-lsocket $LIBS"
10536 cat >conftest.$ac_ext <<_ACEOF
10539 cat confdefs.h >>conftest.$ac_ext
10540 cat >>conftest.$ac_ext <<_ACEOF
10541 /* end confdefs.h. */
10543 /* Override any GCC internal prototype to avoid an error.
10544 Use char because int might match the return type of a GCC
10545 builtin and then its argument prototype would still apply. */
10558 rm -f conftest.$ac_objext conftest$ac_exeext
10559 if { (ac_try="$ac_link"
10560 case "(($ac_try" in
10561 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10562 *) ac_try_echo=$ac_try;;
10564 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10565 $as_echo "$ac_try_echo") >&5
10566 (eval "$ac_link") 2>conftest.er1
10568 grep -v '^ *+' conftest.er1 >conftest.err
10570 cat conftest.err >&5
10571 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10572 (exit $ac_status); } && {
10573 test -z "$ac_c_werror_flag" ||
10574 test ! -s conftest.err
10575 } && test -s conftest$ac_exeext && {
10576 test "$cross_compiling" = yes ||
10577 $as_test_x conftest$ac_exeext
10579 ac_cv_lib_socket_socket=yes
10581 $as_echo "$as_me: failed program was:" >&5
10582 sed 's/^/| /' conftest.$ac_ext >&5
10584 ac_cv_lib_socket_socket=no
10587 rm -rf conftest.dSYM
10588 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10589 conftest$ac_exeext conftest.$ac_ext
10590 LIBS=$ac_check_lib_save_LIBS
10592 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
10593 $as_echo "$ac_cv_lib_socket_socket" >&6; }
10594 if test "x$ac_cv_lib_socket_socket" = x""yes; then
10595 cat >>confdefs.h <<_ACEOF
10596 #define HAVE_LIBSOCKET 1
10599 LIBS="-lsocket $LIBS"
10604 { $as_echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
10605 $as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
10606 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
10607 $as_echo_n "(cached) " >&6
10609 ac_check_lib_save_LIBS=$LIBS
10611 cat >conftest.$ac_ext <<_ACEOF
10614 cat confdefs.h >>conftest.$ac_ext
10615 cat >>conftest.$ac_ext <<_ACEOF
10616 /* end confdefs.h. */
10618 /* Override any GCC internal prototype to avoid an error.
10619 Use char because int might match the return type of a GCC
10620 builtin and then its argument prototype would still apply. */
10624 char gethostbyname ();
10628 return gethostbyname ();
10633 rm -f conftest.$ac_objext conftest$ac_exeext
10634 if { (ac_try="$ac_link"
10635 case "(($ac_try" in
10636 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10637 *) ac_try_echo=$ac_try;;
10639 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10640 $as_echo "$ac_try_echo") >&5
10641 (eval "$ac_link") 2>conftest.er1
10643 grep -v '^ *+' conftest.er1 >conftest.err
10645 cat conftest.err >&5
10646 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10647 (exit $ac_status); } && {
10648 test -z "$ac_c_werror_flag" ||
10649 test ! -s conftest.err
10650 } && test -s conftest$ac_exeext && {
10651 test "$cross_compiling" = yes ||
10652 $as_test_x conftest$ac_exeext
10654 ac_cv_lib_nsl_gethostbyname=yes
10656 $as_echo "$as_me: failed program was:" >&5
10657 sed 's/^/| /' conftest.$ac_ext >&5
10659 ac_cv_lib_nsl_gethostbyname=no
10662 rm -rf conftest.dSYM
10663 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10664 conftest$ac_exeext conftest.$ac_ext
10665 LIBS=$ac_check_lib_save_LIBS
10667 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
10668 $as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
10669 if test "x$ac_cv_lib_nsl_gethostbyname" = x""yes; then
10670 cat >>confdefs.h <<_ACEOF
10671 #define HAVE_LIBNSL 1
10679 need_getaddrinfo=no
10680 { $as_echo "$as_me:$LINENO: checking for socklen_t" >&5
10681 $as_echo_n "checking for socklen_t... " >&6; }
10682 if test "${ac_cv_type_socklen_t+set}" = set; then
10683 $as_echo_n "(cached) " >&6
10685 ac_cv_type_socklen_t=no
10686 cat >conftest.$ac_ext <<_ACEOF
10689 cat confdefs.h >>conftest.$ac_ext
10690 cat >>conftest.$ac_ext <<_ACEOF
10691 /* end confdefs.h. */
10692 #ifdef HAVE_SYS_TYPES_H
10693 # include <sys/types.h>
10696 #include <sys/socket.h>
10702 if (sizeof (socklen_t))
10708 rm -f conftest.$ac_objext
10709 if { (ac_try="$ac_compile"
10710 case "(($ac_try" in
10711 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10712 *) ac_try_echo=$ac_try;;
10714 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10715 $as_echo "$ac_try_echo") >&5
10716 (eval "$ac_compile") 2>conftest.er1
10718 grep -v '^ *+' conftest.er1 >conftest.err
10720 cat conftest.err >&5
10721 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10722 (exit $ac_status); } && {
10723 test -z "$ac_c_werror_flag" ||
10724 test ! -s conftest.err
10725 } && test -s conftest.$ac_objext; then
10726 cat >conftest.$ac_ext <<_ACEOF
10729 cat confdefs.h >>conftest.$ac_ext
10730 cat >>conftest.$ac_ext <<_ACEOF
10731 /* end confdefs.h. */
10732 #ifdef HAVE_SYS_TYPES_H
10733 # include <sys/types.h>
10736 #include <sys/socket.h>
10742 if (sizeof ((socklen_t)))
10748 rm -f conftest.$ac_objext
10749 if { (ac_try="$ac_compile"
10750 case "(($ac_try" in
10751 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10752 *) ac_try_echo=$ac_try;;
10754 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10755 $as_echo "$ac_try_echo") >&5
10756 (eval "$ac_compile") 2>conftest.er1
10758 grep -v '^ *+' conftest.er1 >conftest.err
10760 cat conftest.err >&5
10761 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10762 (exit $ac_status); } && {
10763 test -z "$ac_c_werror_flag" ||
10764 test ! -s conftest.err
10765 } && test -s conftest.$ac_objext; then
10768 $as_echo "$as_me: failed program was:" >&5
10769 sed 's/^/| /' conftest.$ac_ext >&5
10771 ac_cv_type_socklen_t=yes
10774 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10776 $as_echo "$as_me: failed program was:" >&5
10777 sed 's/^/| /' conftest.$ac_ext >&5
10782 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10784 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_socklen_t" >&5
10785 $as_echo "$ac_cv_type_socklen_t" >&6; }
10786 if test "x$ac_cv_type_socklen_t" = x""yes; then
10788 cat >>confdefs.h <<_ACEOF
10789 #define HAVE_SOCKLEN_T 1
10795 { $as_echo "$as_me:$LINENO: checking for struct addrinfo" >&5
10796 $as_echo_n "checking for struct addrinfo... " >&6; }
10797 if test "${ac_cv_type_struct_addrinfo+set}" = set; then
10798 $as_echo_n "(cached) " >&6
10800 ac_cv_type_struct_addrinfo=no
10801 cat >conftest.$ac_ext <<_ACEOF
10804 cat confdefs.h >>conftest.$ac_ext
10805 cat >>conftest.$ac_ext <<_ACEOF
10806 /* end confdefs.h. */
10812 if (sizeof (struct addrinfo))
10818 rm -f conftest.$ac_objext
10819 if { (ac_try="$ac_compile"
10820 case "(($ac_try" in
10821 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10822 *) ac_try_echo=$ac_try;;
10824 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10825 $as_echo "$ac_try_echo") >&5
10826 (eval "$ac_compile") 2>conftest.er1
10828 grep -v '^ *+' conftest.er1 >conftest.err
10830 cat conftest.err >&5
10831 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10832 (exit $ac_status); } && {
10833 test -z "$ac_c_werror_flag" ||
10834 test ! -s conftest.err
10835 } && test -s conftest.$ac_objext; then
10836 cat >conftest.$ac_ext <<_ACEOF
10839 cat confdefs.h >>conftest.$ac_ext
10840 cat >>conftest.$ac_ext <<_ACEOF
10841 /* end confdefs.h. */
10847 if (sizeof ((struct addrinfo)))
10853 rm -f conftest.$ac_objext
10854 if { (ac_try="$ac_compile"
10855 case "(($ac_try" in
10856 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10857 *) ac_try_echo=$ac_try;;
10859 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10860 $as_echo "$ac_try_echo") >&5
10861 (eval "$ac_compile") 2>conftest.er1
10863 grep -v '^ *+' conftest.er1 >conftest.err
10865 cat conftest.err >&5
10866 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10867 (exit $ac_status); } && {
10868 test -z "$ac_c_werror_flag" ||
10869 test ! -s conftest.err
10870 } && test -s conftest.$ac_objext; then
10873 $as_echo "$as_me: failed program was:" >&5
10874 sed 's/^/| /' conftest.$ac_ext >&5
10876 ac_cv_type_struct_addrinfo=yes
10879 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10881 $as_echo "$as_me: failed program was:" >&5
10882 sed 's/^/| /' conftest.$ac_ext >&5
10887 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10889 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_struct_addrinfo" >&5
10890 $as_echo "$ac_cv_type_struct_addrinfo" >&6; }
10891 if test "x$ac_cv_type_struct_addrinfo" = x""yes; then
10893 cat >>confdefs.h <<_ACEOF
10894 #define HAVE_STRUCT_ADDRINFO 1
10900 { $as_echo "$as_me:$LINENO: checking for struct in6_addr" >&5
10901 $as_echo_n "checking for struct in6_addr... " >&6; }
10902 if test "${ac_cv_type_struct_in6_addr+set}" = set; then
10903 $as_echo_n "(cached) " >&6
10905 ac_cv_type_struct_in6_addr=no
10906 cat >conftest.$ac_ext <<_ACEOF
10909 cat confdefs.h >>conftest.$ac_ext
10910 cat >>conftest.$ac_ext <<_ACEOF
10911 /* end confdefs.h. */
10912 #ifdef HAVE_SYS_TYPES_H
10913 # include <sys/types.h>
10915 #include <netinet/in.h>
10921 if (sizeof (struct in6_addr))
10927 rm -f conftest.$ac_objext
10928 if { (ac_try="$ac_compile"
10929 case "(($ac_try" in
10930 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10931 *) ac_try_echo=$ac_try;;
10933 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10934 $as_echo "$ac_try_echo") >&5
10935 (eval "$ac_compile") 2>conftest.er1
10937 grep -v '^ *+' conftest.er1 >conftest.err
10939 cat conftest.err >&5
10940 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10941 (exit $ac_status); } && {
10942 test -z "$ac_c_werror_flag" ||
10943 test ! -s conftest.err
10944 } && test -s conftest.$ac_objext; then
10945 cat >conftest.$ac_ext <<_ACEOF
10948 cat confdefs.h >>conftest.$ac_ext
10949 cat >>conftest.$ac_ext <<_ACEOF
10950 /* end confdefs.h. */
10951 #ifdef HAVE_SYS_TYPES_H
10952 # include <sys/types.h>
10954 #include <netinet/in.h>
10960 if (sizeof ((struct in6_addr)))
10966 rm -f conftest.$ac_objext
10967 if { (ac_try="$ac_compile"
10968 case "(($ac_try" in
10969 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10970 *) ac_try_echo=$ac_try;;
10972 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10973 $as_echo "$ac_try_echo") >&5
10974 (eval "$ac_compile") 2>conftest.er1
10976 grep -v '^ *+' conftest.er1 >conftest.err
10978 cat conftest.err >&5
10979 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10980 (exit $ac_status); } && {
10981 test -z "$ac_c_werror_flag" ||
10982 test ! -s conftest.err
10983 } && test -s conftest.$ac_objext; then
10986 $as_echo "$as_me: failed program was:" >&5
10987 sed 's/^/| /' conftest.$ac_ext >&5
10989 ac_cv_type_struct_in6_addr=yes
10992 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10994 $as_echo "$as_me: failed program was:" >&5
10995 sed 's/^/| /' conftest.$ac_ext >&5
11000 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11002 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_struct_in6_addr" >&5
11003 $as_echo "$ac_cv_type_struct_in6_addr" >&6; }
11004 if test "x$ac_cv_type_struct_in6_addr" = x""yes; then
11006 cat >>confdefs.h <<_ACEOF
11007 #define HAVE_STRUCT_IN6_ADDR 1
11013 { $as_echo "$as_me:$LINENO: checking for struct sockaddr_in6" >&5
11014 $as_echo_n "checking for struct sockaddr_in6... " >&6; }
11015 if test "${ac_cv_type_struct_sockaddr_in6+set}" = set; then
11016 $as_echo_n "(cached) " >&6
11018 ac_cv_type_struct_sockaddr_in6=no
11019 cat >conftest.$ac_ext <<_ACEOF
11022 cat confdefs.h >>conftest.$ac_ext
11023 cat >>conftest.$ac_ext <<_ACEOF
11024 /* end confdefs.h. */
11025 #ifdef HAVE_SYS_TYPES_H
11026 # include <sys/types.h>
11028 #include <netinet/in.h>
11034 if (sizeof (struct sockaddr_in6))
11040 rm -f conftest.$ac_objext
11041 if { (ac_try="$ac_compile"
11042 case "(($ac_try" in
11043 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11044 *) ac_try_echo=$ac_try;;
11046 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11047 $as_echo "$ac_try_echo") >&5
11048 (eval "$ac_compile") 2>conftest.er1
11050 grep -v '^ *+' conftest.er1 >conftest.err
11052 cat conftest.err >&5
11053 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11054 (exit $ac_status); } && {
11055 test -z "$ac_c_werror_flag" ||
11056 test ! -s conftest.err
11057 } && test -s conftest.$ac_objext; then
11058 cat >conftest.$ac_ext <<_ACEOF
11061 cat confdefs.h >>conftest.$ac_ext
11062 cat >>conftest.$ac_ext <<_ACEOF
11063 /* end confdefs.h. */
11064 #ifdef HAVE_SYS_TYPES_H
11065 # include <sys/types.h>
11067 #include <netinet/in.h>
11073 if (sizeof ((struct sockaddr_in6)))
11079 rm -f conftest.$ac_objext
11080 if { (ac_try="$ac_compile"
11081 case "(($ac_try" in
11082 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11083 *) ac_try_echo=$ac_try;;
11085 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11086 $as_echo "$ac_try_echo") >&5
11087 (eval "$ac_compile") 2>conftest.er1
11089 grep -v '^ *+' conftest.er1 >conftest.err
11091 cat conftest.err >&5
11092 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11093 (exit $ac_status); } && {
11094 test -z "$ac_c_werror_flag" ||
11095 test ! -s conftest.err
11096 } && test -s conftest.$ac_objext; then
11099 $as_echo "$as_me: failed program was:" >&5
11100 sed 's/^/| /' conftest.$ac_ext >&5
11102 ac_cv_type_struct_sockaddr_in6=yes
11105 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11107 $as_echo "$as_me: failed program was:" >&5
11108 sed 's/^/| /' conftest.$ac_ext >&5
11113 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11115 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_struct_sockaddr_in6" >&5
11116 $as_echo "$ac_cv_type_struct_sockaddr_in6" >&6; }
11117 if test "x$ac_cv_type_struct_sockaddr_in6" = x""yes; then
11119 cat >>confdefs.h <<_ACEOF
11120 #define HAVE_STRUCT_SOCKADDR_IN6 1
11126 { $as_echo "$as_me:$LINENO: checking for struct sockaddr_storage" >&5
11127 $as_echo_n "checking for struct sockaddr_storage... " >&6; }
11128 if test "${ac_cv_type_struct_sockaddr_storage+set}" = set; then
11129 $as_echo_n "(cached) " >&6
11131 ac_cv_type_struct_sockaddr_storage=no
11132 cat >conftest.$ac_ext <<_ACEOF
11135 cat confdefs.h >>conftest.$ac_ext
11136 cat >>conftest.$ac_ext <<_ACEOF
11137 /* end confdefs.h. */
11138 #ifdef HAVE_SYS_TYPES_H
11139 # include <sys/types.h>
11141 #include <sys/socket.h>
11147 if (sizeof (struct sockaddr_storage))
11153 rm -f conftest.$ac_objext
11154 if { (ac_try="$ac_compile"
11155 case "(($ac_try" in
11156 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11157 *) ac_try_echo=$ac_try;;
11159 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11160 $as_echo "$ac_try_echo") >&5
11161 (eval "$ac_compile") 2>conftest.er1
11163 grep -v '^ *+' conftest.er1 >conftest.err
11165 cat conftest.err >&5
11166 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11167 (exit $ac_status); } && {
11168 test -z "$ac_c_werror_flag" ||
11169 test ! -s conftest.err
11170 } && test -s conftest.$ac_objext; then
11171 cat >conftest.$ac_ext <<_ACEOF
11174 cat confdefs.h >>conftest.$ac_ext
11175 cat >>conftest.$ac_ext <<_ACEOF
11176 /* end confdefs.h. */
11177 #ifdef HAVE_SYS_TYPES_H
11178 # include <sys/types.h>
11180 #include <sys/socket.h>
11186 if (sizeof ((struct sockaddr_storage)))
11192 rm -f conftest.$ac_objext
11193 if { (ac_try="$ac_compile"
11194 case "(($ac_try" in
11195 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11196 *) ac_try_echo=$ac_try;;
11198 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11199 $as_echo "$ac_try_echo") >&5
11200 (eval "$ac_compile") 2>conftest.er1
11202 grep -v '^ *+' conftest.er1 >conftest.err
11204 cat conftest.err >&5
11205 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11206 (exit $ac_status); } && {
11207 test -z "$ac_c_werror_flag" ||
11208 test ! -s conftest.err
11209 } && test -s conftest.$ac_objext; then
11212 $as_echo "$as_me: failed program was:" >&5
11213 sed 's/^/| /' conftest.$ac_ext >&5
11215 ac_cv_type_struct_sockaddr_storage=yes
11218 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11220 $as_echo "$as_me: failed program was:" >&5
11221 sed 's/^/| /' conftest.$ac_ext >&5
11226 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11228 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_struct_sockaddr_storage" >&5
11229 $as_echo "$ac_cv_type_struct_sockaddr_storage" >&6; }
11230 if test "x$ac_cv_type_struct_sockaddr_storage" = x""yes; then
11232 cat >>confdefs.h <<_ACEOF
11233 #define HAVE_STRUCT_SOCKADDR_STORAGE 1
11242 for ac_func in getnameinfo gai_strerror getaddrinfo
11244 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11245 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
11246 $as_echo_n "checking for $ac_func... " >&6; }
11247 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11248 $as_echo_n "(cached) " >&6
11250 cat >conftest.$ac_ext <<_ACEOF
11253 cat confdefs.h >>conftest.$ac_ext
11254 cat >>conftest.$ac_ext <<_ACEOF
11255 /* end confdefs.h. */
11256 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11257 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11258 #define $ac_func innocuous_$ac_func
11260 /* System header to define __stub macros and hopefully few prototypes,
11261 which can conflict with char $ac_func (); below.
11262 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11263 <limits.h> exists even on freestanding compilers. */
11266 # include <limits.h>
11268 # include <assert.h>
11273 /* Override any GCC internal prototype to avoid an error.
11274 Use char because int might match the return type of a GCC
11275 builtin and then its argument prototype would still apply. */
11280 /* The GNU C library defines this for functions which it implements
11281 to always fail with ENOSYS. Some functions are actually named
11282 something starting with __ and the normal name is an alias. */
11283 #if defined __stub_$ac_func || defined __stub___$ac_func
11290 return $ac_func ();
11295 rm -f conftest.$ac_objext conftest$ac_exeext
11296 if { (ac_try="$ac_link"
11297 case "(($ac_try" in
11298 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11299 *) ac_try_echo=$ac_try;;
11301 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11302 $as_echo "$ac_try_echo") >&5
11303 (eval "$ac_link") 2>conftest.er1
11305 grep -v '^ *+' conftest.er1 >conftest.err
11307 cat conftest.err >&5
11308 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11309 (exit $ac_status); } && {
11310 test -z "$ac_c_werror_flag" ||
11311 test ! -s conftest.err
11312 } && test -s conftest$ac_exeext && {
11313 test "$cross_compiling" = yes ||
11314 $as_test_x conftest$ac_exeext
11316 eval "$as_ac_var=yes"
11318 $as_echo "$as_me: failed program was:" >&5
11319 sed 's/^/| /' conftest.$ac_ext >&5
11321 eval "$as_ac_var=no"
11324 rm -rf conftest.dSYM
11325 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11326 conftest$ac_exeext conftest.$ac_ext
11328 ac_res=`eval 'as_val=${'$as_ac_var'}
11329 $as_echo "$as_val"'`
11330 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11331 $as_echo "$ac_res" >&6; }
11332 as_val=`eval 'as_val=${'$as_ac_var'}
11333 $as_echo "$as_val"'`
11334 if test "x$as_val" = x""yes; then
11335 cat >>confdefs.h <<_ACEOF
11336 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11340 need_getaddrinfo=yes
11344 if test $need_getaddrinfo = yes; then
11345 case " $LIBOBJS " in
11346 *" getaddrinfo.$ac_objext "* ) ;;
11347 *) LIBOBJS="$LIBOBJS getaddrinfo.$ac_objext"
11357 for ac_func in getenv setenv unsetenv
11359 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11360 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
11361 $as_echo_n "checking for $ac_func... " >&6; }
11362 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11363 $as_echo_n "(cached) " >&6
11365 cat >conftest.$ac_ext <<_ACEOF
11368 cat confdefs.h >>conftest.$ac_ext
11369 cat >>conftest.$ac_ext <<_ACEOF
11370 /* end confdefs.h. */
11371 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11372 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11373 #define $ac_func innocuous_$ac_func
11375 /* System header to define __stub macros and hopefully few prototypes,
11376 which can conflict with char $ac_func (); below.
11377 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11378 <limits.h> exists even on freestanding compilers. */
11381 # include <limits.h>
11383 # include <assert.h>
11388 /* Override any GCC internal prototype to avoid an error.
11389 Use char because int might match the return type of a GCC
11390 builtin and then its argument prototype would still apply. */
11395 /* The GNU C library defines this for functions which it implements
11396 to always fail with ENOSYS. Some functions are actually named
11397 something starting with __ and the normal name is an alias. */
11398 #if defined __stub_$ac_func || defined __stub___$ac_func
11405 return $ac_func ();
11410 rm -f conftest.$ac_objext conftest$ac_exeext
11411 if { (ac_try="$ac_link"
11412 case "(($ac_try" in
11413 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11414 *) ac_try_echo=$ac_try;;
11416 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11417 $as_echo "$ac_try_echo") >&5
11418 (eval "$ac_link") 2>conftest.er1
11420 grep -v '^ *+' conftest.er1 >conftest.err
11422 cat conftest.err >&5
11423 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11424 (exit $ac_status); } && {
11425 test -z "$ac_c_werror_flag" ||
11426 test ! -s conftest.err
11427 } && test -s conftest$ac_exeext && {
11428 test "$cross_compiling" = yes ||
11429 $as_test_x conftest$ac_exeext
11431 eval "$as_ac_var=yes"
11433 $as_echo "$as_me: failed program was:" >&5
11434 sed 's/^/| /' conftest.$ac_ext >&5
11436 eval "$as_ac_var=no"
11439 rm -rf conftest.dSYM
11440 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11441 conftest$ac_exeext conftest.$ac_ext
11443 ac_res=`eval 'as_val=${'$as_ac_var'}
11444 $as_echo "$as_val"'`
11445 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11446 $as_echo "$ac_res" >&6; }
11447 as_val=`eval 'as_val=${'$as_ac_var'}
11448 $as_echo "$as_val"'`
11449 if test "x$as_val" = x""yes; then
11450 cat >>confdefs.h <<_ACEOF
11451 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11459 if test $need_findenv = yes; then
11460 case " $LIBOBJS " in
11461 *" findenv.$ac_objext "* ) ;;
11462 *) LIBOBJS="$LIBOBJS findenv.$ac_objext"
11471 for ac_func in mkdtemp mkstemp
11473 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11474 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
11475 $as_echo_n "checking for $ac_func... " >&6; }
11476 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11477 $as_echo_n "(cached) " >&6
11479 cat >conftest.$ac_ext <<_ACEOF
11482 cat confdefs.h >>conftest.$ac_ext
11483 cat >>conftest.$ac_ext <<_ACEOF
11484 /* end confdefs.h. */
11485 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11486 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11487 #define $ac_func innocuous_$ac_func
11489 /* System header to define __stub macros and hopefully few prototypes,
11490 which can conflict with char $ac_func (); below.
11491 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11492 <limits.h> exists even on freestanding compilers. */
11495 # include <limits.h>
11497 # include <assert.h>
11502 /* Override any GCC internal prototype to avoid an error.
11503 Use char because int might match the return type of a GCC
11504 builtin and then its argument prototype would still apply. */
11509 /* The GNU C library defines this for functions which it implements
11510 to always fail with ENOSYS. Some functions are actually named
11511 something starting with __ and the normal name is an alias. */
11512 #if defined __stub_$ac_func || defined __stub___$ac_func
11519 return $ac_func ();
11524 rm -f conftest.$ac_objext conftest$ac_exeext
11525 if { (ac_try="$ac_link"
11526 case "(($ac_try" in
11527 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11528 *) ac_try_echo=$ac_try;;
11530 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11531 $as_echo "$ac_try_echo") >&5
11532 (eval "$ac_link") 2>conftest.er1
11534 grep -v '^ *+' conftest.er1 >conftest.err
11536 cat conftest.err >&5
11537 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11538 (exit $ac_status); } && {
11539 test -z "$ac_c_werror_flag" ||
11540 test ! -s conftest.err
11541 } && test -s conftest$ac_exeext && {
11542 test "$cross_compiling" = yes ||
11543 $as_test_x conftest$ac_exeext
11545 eval "$as_ac_var=yes"
11547 $as_echo "$as_me: failed program was:" >&5
11548 sed 's/^/| /' conftest.$ac_ext >&5
11550 eval "$as_ac_var=no"
11553 rm -rf conftest.dSYM
11554 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11555 conftest$ac_exeext conftest.$ac_ext
11557 ac_res=`eval 'as_val=${'$as_ac_var'}
11558 $as_echo "$as_val"'`
11559 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11560 $as_echo "$ac_res" >&6; }
11561 as_val=`eval 'as_val=${'$as_ac_var'}
11562 $as_echo "$as_val"'`
11563 if test "x$as_val" = x""yes; then
11564 cat >>confdefs.h <<_ACEOF
11565 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11573 if test $need_gettemp = yes; then
11574 case " $LIBOBJS " in
11575 *" gettemp.$ac_objext "* ) ;;
11576 *) LIBOBJS="$LIBOBJS gettemp.$ac_objext"
11587 for ac_func in bcopy bzero memset memcpy setlocale
11589 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11590 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
11591 $as_echo_n "checking for $ac_func... " >&6; }
11592 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11593 $as_echo_n "(cached) " >&6
11595 cat >conftest.$ac_ext <<_ACEOF
11598 cat confdefs.h >>conftest.$ac_ext
11599 cat >>conftest.$ac_ext <<_ACEOF
11600 /* end confdefs.h. */
11601 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11602 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11603 #define $ac_func innocuous_$ac_func
11605 /* System header to define __stub macros and hopefully few prototypes,
11606 which can conflict with char $ac_func (); below.
11607 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11608 <limits.h> exists even on freestanding compilers. */
11611 # include <limits.h>
11613 # include <assert.h>
11618 /* Override any GCC internal prototype to avoid an error.
11619 Use char because int might match the return type of a GCC
11620 builtin and then its argument prototype would still apply. */
11625 /* The GNU C library defines this for functions which it implements
11626 to always fail with ENOSYS. Some functions are actually named
11627 something starting with __ and the normal name is an alias. */
11628 #if defined __stub_$ac_func || defined __stub___$ac_func
11635 return $ac_func ();
11640 rm -f conftest.$ac_objext conftest$ac_exeext
11641 if { (ac_try="$ac_link"
11642 case "(($ac_try" in
11643 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11644 *) ac_try_echo=$ac_try;;
11646 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11647 $as_echo "$ac_try_echo") >&5
11648 (eval "$ac_link") 2>conftest.er1
11650 grep -v '^ *+' conftest.er1 >conftest.err
11652 cat conftest.err >&5
11653 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11654 (exit $ac_status); } && {
11655 test -z "$ac_c_werror_flag" ||
11656 test ! -s conftest.err
11657 } && test -s conftest$ac_exeext && {
11658 test "$cross_compiling" = yes ||
11659 $as_test_x conftest$ac_exeext
11661 eval "$as_ac_var=yes"
11663 $as_echo "$as_me: failed program was:" >&5
11664 sed 's/^/| /' conftest.$ac_ext >&5
11666 eval "$as_ac_var=no"
11669 rm -rf conftest.dSYM
11670 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11671 conftest$ac_exeext conftest.$ac_ext
11673 ac_res=`eval 'as_val=${'$as_ac_var'}
11674 $as_echo "$as_val"'`
11675 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11676 $as_echo "$ac_res" >&6; }
11677 as_val=`eval 'as_val=${'$as_ac_var'}
11678 $as_echo "$as_val"'`
11679 if test "x$as_val" = x""yes; then
11680 cat >>confdefs.h <<_ACEOF
11681 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11691 for ac_func in getmode setmode
11693 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11694 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
11695 $as_echo_n "checking for $ac_func... " >&6; }
11696 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11697 $as_echo_n "(cached) " >&6
11699 cat >conftest.$ac_ext <<_ACEOF
11702 cat confdefs.h >>conftest.$ac_ext
11703 cat >>conftest.$ac_ext <<_ACEOF
11704 /* end confdefs.h. */
11705 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11706 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11707 #define $ac_func innocuous_$ac_func
11709 /* System header to define __stub macros and hopefully few prototypes,
11710 which can conflict with char $ac_func (); below.
11711 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11712 <limits.h> exists even on freestanding compilers. */
11715 # include <limits.h>
11717 # include <assert.h>
11722 /* Override any GCC internal prototype to avoid an error.
11723 Use char because int might match the return type of a GCC
11724 builtin and then its argument prototype would still apply. */
11729 /* The GNU C library defines this for functions which it implements
11730 to always fail with ENOSYS. Some functions are actually named
11731 something starting with __ and the normal name is an alias. */
11732 #if defined __stub_$ac_func || defined __stub___$ac_func
11739 return $ac_func ();
11744 rm -f conftest.$ac_objext conftest$ac_exeext
11745 if { (ac_try="$ac_link"
11746 case "(($ac_try" in
11747 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11748 *) ac_try_echo=$ac_try;;
11750 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11751 $as_echo "$ac_try_echo") >&5
11752 (eval "$ac_link") 2>conftest.er1
11754 grep -v '^ *+' conftest.er1 >conftest.err
11756 cat conftest.err >&5
11757 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11758 (exit $ac_status); } && {
11759 test -z "$ac_c_werror_flag" ||
11760 test ! -s conftest.err
11761 } && test -s conftest$ac_exeext && {
11762 test "$cross_compiling" = yes ||
11763 $as_test_x conftest$ac_exeext
11765 eval "$as_ac_var=yes"
11767 $as_echo "$as_me: failed program was:" >&5
11768 sed 's/^/| /' conftest.$ac_ext >&5
11770 eval "$as_ac_var=no"
11773 rm -rf conftest.dSYM
11774 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11775 conftest$ac_exeext conftest.$ac_ext
11777 ac_res=`eval 'as_val=${'$as_ac_var'}
11778 $as_echo "$as_val"'`
11779 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11780 $as_echo "$ac_res" >&6; }
11781 as_val=`eval 'as_val=${'$as_ac_var'}
11782 $as_echo "$as_val"'`
11783 if test "x$as_val" = x""yes; then
11784 cat >>confdefs.h <<_ACEOF
11785 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11794 if test $need_setmode = yes; then
11795 case " $LIBOBJS " in
11796 *" setmode.$ac_objext "* ) ;;
11797 *) LIBOBJS="$LIBOBJS setmode.$ac_objext"
11803 { $as_echo "$as_me:$LINENO: checking whether endgrent is declared" >&5
11804 $as_echo_n "checking whether endgrent is declared... " >&6; }
11805 if test "${ac_cv_have_decl_endgrent+set}" = set; then
11806 $as_echo_n "(cached) " >&6
11808 cat >conftest.$ac_ext <<_ACEOF
11811 cat confdefs.h >>conftest.$ac_ext
11812 cat >>conftest.$ac_ext <<_ACEOF
11813 /* end confdefs.h. */
11814 $ac_includes_default
11826 rm -f conftest.$ac_objext
11827 if { (ac_try="$ac_compile"
11828 case "(($ac_try" in
11829 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11830 *) ac_try_echo=$ac_try;;
11832 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11833 $as_echo "$ac_try_echo") >&5
11834 (eval "$ac_compile") 2>conftest.er1
11836 grep -v '^ *+' conftest.er1 >conftest.err
11838 cat conftest.err >&5
11839 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11840 (exit $ac_status); } && {
11841 test -z "$ac_c_werror_flag" ||
11842 test ! -s conftest.err
11843 } && test -s conftest.$ac_objext; then
11844 ac_cv_have_decl_endgrent=yes
11846 $as_echo "$as_me: failed program was:" >&5
11847 sed 's/^/| /' conftest.$ac_ext >&5
11849 ac_cv_have_decl_endgrent=no
11852 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11854 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_endgrent" >&5
11855 $as_echo "$ac_cv_have_decl_endgrent" >&6; }
11856 if test "x$ac_cv_have_decl_endgrent" = x""yes; then
11858 cat >>confdefs.h <<_ACEOF
11859 #define HAVE_DECL_ENDGRENT 1
11864 cat >>confdefs.h <<_ACEOF
11865 #define HAVE_DECL_ENDGRENT 0
11870 { $as_echo "$as_me:$LINENO: checking whether endpwent is declared" >&5
11871 $as_echo_n "checking whether endpwent is declared... " >&6; }
11872 if test "${ac_cv_have_decl_endpwent+set}" = set; then
11873 $as_echo_n "(cached) " >&6
11875 cat >conftest.$ac_ext <<_ACEOF
11878 cat confdefs.h >>conftest.$ac_ext
11879 cat >>conftest.$ac_ext <<_ACEOF
11880 /* end confdefs.h. */
11881 $ac_includes_default
11893 rm -f conftest.$ac_objext
11894 if { (ac_try="$ac_compile"
11895 case "(($ac_try" in
11896 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11897 *) ac_try_echo=$ac_try;;
11899 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11900 $as_echo "$ac_try_echo") >&5
11901 (eval "$ac_compile") 2>conftest.er1
11903 grep -v '^ *+' conftest.er1 >conftest.err
11905 cat conftest.err >&5
11906 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11907 (exit $ac_status); } && {
11908 test -z "$ac_c_werror_flag" ||
11909 test ! -s conftest.err
11910 } && test -s conftest.$ac_objext; then
11911 ac_cv_have_decl_endpwent=yes
11913 $as_echo "$as_me: failed program was:" >&5
11914 sed 's/^/| /' conftest.$ac_ext >&5
11916 ac_cv_have_decl_endpwent=no
11919 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11921 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_endpwent" >&5
11922 $as_echo "$ac_cv_have_decl_endpwent" >&6; }
11923 if test "x$ac_cv_have_decl_endpwent" = x""yes; then
11925 cat >>confdefs.h <<_ACEOF
11926 #define HAVE_DECL_ENDPWENT 1
11931 cat >>confdefs.h <<_ACEOF
11932 #define HAVE_DECL_ENDPWENT 0
11947 for ac_func in gid_from_group group_from_gid pwcache_groupdb \
11948 pwcache_userdb uid_from_user user_from_uid \
11951 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11952 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
11953 $as_echo_n "checking for $ac_func... " >&6; }
11954 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11955 $as_echo_n "(cached) " >&6
11957 cat >conftest.$ac_ext <<_ACEOF
11960 cat confdefs.h >>conftest.$ac_ext
11961 cat >>conftest.$ac_ext <<_ACEOF
11962 /* end confdefs.h. */
11963 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11964 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11965 #define $ac_func innocuous_$ac_func
11967 /* System header to define __stub macros and hopefully few prototypes,
11968 which can conflict with char $ac_func (); below.
11969 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11970 <limits.h> exists even on freestanding compilers. */
11973 # include <limits.h>
11975 # include <assert.h>
11980 /* Override any GCC internal prototype to avoid an error.
11981 Use char because int might match the return type of a GCC
11982 builtin and then its argument prototype would still apply. */
11987 /* The GNU C library defines this for functions which it implements
11988 to always fail with ENOSYS. Some functions are actually named
11989 something starting with __ and the normal name is an alias. */
11990 #if defined __stub_$ac_func || defined __stub___$ac_func
11997 return $ac_func ();
12002 rm -f conftest.$ac_objext conftest$ac_exeext
12003 if { (ac_try="$ac_link"
12004 case "(($ac_try" in
12005 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12006 *) ac_try_echo=$ac_try;;
12008 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12009 $as_echo "$ac_try_echo") >&5
12010 (eval "$ac_link") 2>conftest.er1
12012 grep -v '^ *+' conftest.er1 >conftest.err
12014 cat conftest.err >&5
12015 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12016 (exit $ac_status); } && {
12017 test -z "$ac_c_werror_flag" ||
12018 test ! -s conftest.err
12019 } && test -s conftest$ac_exeext && {
12020 test "$cross_compiling" = yes ||
12021 $as_test_x conftest$ac_exeext
12023 eval "$as_ac_var=yes"
12025 $as_echo "$as_me: failed program was:" >&5
12026 sed 's/^/| /' conftest.$ac_ext >&5
12028 eval "$as_ac_var=no"
12031 rm -rf conftest.dSYM
12032 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12033 conftest$ac_exeext conftest.$ac_ext
12035 ac_res=`eval 'as_val=${'$as_ac_var'}
12036 $as_echo "$as_val"'`
12037 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12038 $as_echo "$ac_res" >&6; }
12039 as_val=`eval 'as_val=${'$as_ac_var'}
12040 $as_echo "$as_val"'`
12041 if test "x$as_val" = x""yes; then
12042 cat >>confdefs.h <<_ACEOF
12043 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12052 if test $need_pwcache = yes; then
12053 case " $LIBOBJS " in
12054 *" pwcache.$ac_objext "* ) ;;
12055 *) LIBOBJS="$LIBOBJS pwcache.$ac_objext"
12061 { $as_echo "$as_me:$LINENO: checking for fts_open" >&5
12062 $as_echo_n "checking for fts_open... " >&6; }
12063 if test "${ac_cv_func_fts_open+set}" = set; then
12064 $as_echo_n "(cached) " >&6
12066 cat >conftest.$ac_ext <<_ACEOF
12069 cat confdefs.h >>conftest.$ac_ext
12070 cat >>conftest.$ac_ext <<_ACEOF
12071 /* end confdefs.h. */
12072 /* Define fts_open to an innocuous variant, in case <limits.h> declares fts_open.
12073 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12074 #define fts_open innocuous_fts_open
12076 /* System header to define __stub macros and hopefully few prototypes,
12077 which can conflict with char fts_open (); below.
12078 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12079 <limits.h> exists even on freestanding compilers. */
12082 # include <limits.h>
12084 # include <assert.h>
12089 /* Override any GCC internal prototype to avoid an error.
12090 Use char because int might match the return type of a GCC
12091 builtin and then its argument prototype would still apply. */
12096 /* The GNU C library defines this for functions which it implements
12097 to always fail with ENOSYS. Some functions are actually named
12098 something starting with __ and the normal name is an alias. */
12099 #if defined __stub_fts_open || defined __stub___fts_open
12106 return fts_open ();
12111 rm -f conftest.$ac_objext conftest$ac_exeext
12112 if { (ac_try="$ac_link"
12113 case "(($ac_try" in
12114 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12115 *) ac_try_echo=$ac_try;;
12117 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12118 $as_echo "$ac_try_echo") >&5
12119 (eval "$ac_link") 2>conftest.er1
12121 grep -v '^ *+' conftest.er1 >conftest.err
12123 cat conftest.err >&5
12124 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12125 (exit $ac_status); } && {
12126 test -z "$ac_c_werror_flag" ||
12127 test ! -s conftest.err
12128 } && test -s conftest$ac_exeext && {
12129 test "$cross_compiling" = yes ||
12130 $as_test_x conftest$ac_exeext
12132 ac_cv_func_fts_open=yes
12134 $as_echo "$as_me: failed program was:" >&5
12135 sed 's/^/| /' conftest.$ac_ext >&5
12137 ac_cv_func_fts_open=no
12140 rm -rf conftest.dSYM
12141 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12142 conftest$ac_exeext conftest.$ac_ext
12144 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_fts_open" >&5
12145 $as_echo "$ac_cv_func_fts_open" >&6; }
12146 if test "x$ac_cv_func_fts_open" = x""yes; then
12150 cat >>confdefs.h <<\_ACEOF
12151 #define HAVE_NBCOMPAT_FTS 1
12156 case " $LIBOBJS " in
12157 *" fts.$ac_objext "* ) ;;
12158 *) LIBOBJS="$LIBOBJS fts.$ac_objext"
12166 { $as_echo "$as_me:$LINENO: checking for timegm" >&5
12167 $as_echo_n "checking for timegm... " >&6; }
12168 if test "${ac_cv_func_timegm+set}" = set; then
12169 $as_echo_n "(cached) " >&6
12171 cat >conftest.$ac_ext <<_ACEOF
12174 cat confdefs.h >>conftest.$ac_ext
12175 cat >>conftest.$ac_ext <<_ACEOF
12176 /* end confdefs.h. */
12177 /* Define timegm to an innocuous variant, in case <limits.h> declares timegm.
12178 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12179 #define timegm innocuous_timegm
12181 /* System header to define __stub macros and hopefully few prototypes,
12182 which can conflict with char timegm (); below.
12183 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12184 <limits.h> exists even on freestanding compilers. */
12187 # include <limits.h>
12189 # include <assert.h>
12194 /* Override any GCC internal prototype to avoid an error.
12195 Use char because int might match the return type of a GCC
12196 builtin and then its argument prototype would still apply. */
12201 /* The GNU C library defines this for functions which it implements
12202 to always fail with ENOSYS. Some functions are actually named
12203 something starting with __ and the normal name is an alias. */
12204 #if defined __stub_timegm || defined __stub___timegm
12216 rm -f conftest.$ac_objext conftest$ac_exeext
12217 if { (ac_try="$ac_link"
12218 case "(($ac_try" in
12219 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12220 *) ac_try_echo=$ac_try;;
12222 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12223 $as_echo "$ac_try_echo") >&5
12224 (eval "$ac_link") 2>conftest.er1
12226 grep -v '^ *+' conftest.er1 >conftest.err
12228 cat conftest.err >&5
12229 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12230 (exit $ac_status); } && {
12231 test -z "$ac_c_werror_flag" ||
12232 test ! -s conftest.err
12233 } && test -s conftest$ac_exeext && {
12234 test "$cross_compiling" = yes ||
12235 $as_test_x conftest$ac_exeext
12237 ac_cv_func_timegm=yes
12239 $as_echo "$as_me: failed program was:" >&5
12240 sed 's/^/| /' conftest.$ac_ext >&5
12242 ac_cv_func_timegm=no
12245 rm -rf conftest.dSYM
12246 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12247 conftest$ac_exeext conftest.$ac_ext
12249 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_timegm" >&5
12250 $as_echo "$ac_cv_func_timegm" >&6; }
12251 if test "x$ac_cv_func_timegm" = x""yes; then
12254 case " $LIBOBJS " in
12255 *" timegm.$ac_objext "* ) ;;
12256 *) LIBOBJS="$LIBOBJS timegm.$ac_objext"
12263 # Handle Darwin 7 having a poll() compatibility function. Be
12264 # conservative -- if we don't find one of <poll.h> or <sys/poll.h>, then
12265 # use our own poll() implementation.
12267 pkg_cv_have_poll_h=no
12270 for ac_header in poll.h sys/poll.h
12272 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12273 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12274 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
12275 $as_echo_n "checking for $ac_header... " >&6; }
12276 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12277 $as_echo_n "(cached) " >&6
12279 ac_res=`eval 'as_val=${'$as_ac_Header'}
12280 $as_echo "$as_val"'`
12281 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12282 $as_echo "$ac_res" >&6; }
12284 # Is the header compilable?
12285 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
12286 $as_echo_n "checking $ac_header usability... " >&6; }
12287 cat >conftest.$ac_ext <<_ACEOF
12290 cat confdefs.h >>conftest.$ac_ext
12291 cat >>conftest.$ac_ext <<_ACEOF
12292 /* end confdefs.h. */
12293 $ac_includes_default
12294 #include <$ac_header>
12296 rm -f conftest.$ac_objext
12297 if { (ac_try="$ac_compile"
12298 case "(($ac_try" in
12299 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12300 *) ac_try_echo=$ac_try;;
12302 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12303 $as_echo "$ac_try_echo") >&5
12304 (eval "$ac_compile") 2>conftest.er1
12306 grep -v '^ *+' conftest.er1 >conftest.err
12308 cat conftest.err >&5
12309 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12310 (exit $ac_status); } && {
12311 test -z "$ac_c_werror_flag" ||
12312 test ! -s conftest.err
12313 } && test -s conftest.$ac_objext; then
12314 ac_header_compiler=yes
12316 $as_echo "$as_me: failed program was:" >&5
12317 sed 's/^/| /' conftest.$ac_ext >&5
12319 ac_header_compiler=no
12322 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12323 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12324 $as_echo "$ac_header_compiler" >&6; }
12326 # Is the header present?
12327 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
12328 $as_echo_n "checking $ac_header presence... " >&6; }
12329 cat >conftest.$ac_ext <<_ACEOF
12332 cat confdefs.h >>conftest.$ac_ext
12333 cat >>conftest.$ac_ext <<_ACEOF
12334 /* end confdefs.h. */
12335 #include <$ac_header>
12337 if { (ac_try="$ac_cpp conftest.$ac_ext"
12338 case "(($ac_try" in
12339 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12340 *) ac_try_echo=$ac_try;;
12342 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12343 $as_echo "$ac_try_echo") >&5
12344 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12346 grep -v '^ *+' conftest.er1 >conftest.err
12348 cat conftest.err >&5
12349 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12350 (exit $ac_status); } >/dev/null && {
12351 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12352 test ! -s conftest.err
12354 ac_header_preproc=yes
12356 $as_echo "$as_me: failed program was:" >&5
12357 sed 's/^/| /' conftest.$ac_ext >&5
12359 ac_header_preproc=no
12362 rm -f conftest.err conftest.$ac_ext
12363 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12364 $as_echo "$ac_header_preproc" >&6; }
12366 # So? What about this header?
12367 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12369 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12370 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12371 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12372 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12373 ac_header_preproc=yes
12376 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12377 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12378 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12379 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12380 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12381 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12382 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12383 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12384 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12385 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12386 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12387 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12389 ## ------------------------------- ##
12390 ## Report this to grant@NetBSD.org ##
12391 ## ------------------------------- ##
12393 ) | sed "s/^/$as_me: WARNING: /" >&2
12396 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
12397 $as_echo_n "checking for $ac_header... " >&6; }
12398 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12399 $as_echo_n "(cached) " >&6
12401 eval "$as_ac_Header=\$ac_header_preproc"
12403 ac_res=`eval 'as_val=${'$as_ac_Header'}
12404 $as_echo "$as_val"'`
12405 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12406 $as_echo "$ac_res" >&6; }
12409 as_val=`eval 'as_val=${'$as_ac_Header'}
12410 $as_echo "$as_val"'`
12411 if test "x$as_val" = x""yes; then
12412 cat >>confdefs.h <<_ACEOF
12413 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12422 for ac_header in poll.h sys/poll.h
12424 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12425 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12426 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
12427 $as_echo_n "checking for $ac_header... " >&6; }
12428 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12429 $as_echo_n "(cached) " >&6
12431 ac_res=`eval 'as_val=${'$as_ac_Header'}
12432 $as_echo "$as_val"'`
12433 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12434 $as_echo "$ac_res" >&6; }
12436 # Is the header compilable?
12437 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
12438 $as_echo_n "checking $ac_header usability... " >&6; }
12439 cat >conftest.$ac_ext <<_ACEOF
12442 cat confdefs.h >>conftest.$ac_ext
12443 cat >>conftest.$ac_ext <<_ACEOF
12444 /* end confdefs.h. */
12445 $ac_includes_default
12446 #include <$ac_header>
12448 rm -f conftest.$ac_objext
12449 if { (ac_try="$ac_compile"
12450 case "(($ac_try" in
12451 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12452 *) ac_try_echo=$ac_try;;
12454 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12455 $as_echo "$ac_try_echo") >&5
12456 (eval "$ac_compile") 2>conftest.er1
12458 grep -v '^ *+' conftest.er1 >conftest.err
12460 cat conftest.err >&5
12461 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12462 (exit $ac_status); } && {
12463 test -z "$ac_c_werror_flag" ||
12464 test ! -s conftest.err
12465 } && test -s conftest.$ac_objext; then
12466 ac_header_compiler=yes
12468 $as_echo "$as_me: failed program was:" >&5
12469 sed 's/^/| /' conftest.$ac_ext >&5
12471 ac_header_compiler=no
12474 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12475 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12476 $as_echo "$ac_header_compiler" >&6; }
12478 # Is the header present?
12479 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
12480 $as_echo_n "checking $ac_header presence... " >&6; }
12481 cat >conftest.$ac_ext <<_ACEOF
12484 cat confdefs.h >>conftest.$ac_ext
12485 cat >>conftest.$ac_ext <<_ACEOF
12486 /* end confdefs.h. */
12487 #include <$ac_header>
12489 if { (ac_try="$ac_cpp conftest.$ac_ext"
12490 case "(($ac_try" in
12491 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12492 *) ac_try_echo=$ac_try;;
12494 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12495 $as_echo "$ac_try_echo") >&5
12496 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12498 grep -v '^ *+' conftest.er1 >conftest.err
12500 cat conftest.err >&5
12501 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12502 (exit $ac_status); } >/dev/null && {
12503 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12504 test ! -s conftest.err
12506 ac_header_preproc=yes
12508 $as_echo "$as_me: failed program was:" >&5
12509 sed 's/^/| /' conftest.$ac_ext >&5
12511 ac_header_preproc=no
12514 rm -f conftest.err conftest.$ac_ext
12515 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12516 $as_echo "$ac_header_preproc" >&6; }
12518 # So? What about this header?
12519 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12521 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12522 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12523 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12524 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12525 ac_header_preproc=yes
12528 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12529 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12530 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12531 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12532 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12533 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12534 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12535 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12536 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12537 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12538 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12539 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12541 ## ------------------------------- ##
12542 ## Report this to grant@NetBSD.org ##
12543 ## ------------------------------- ##
12545 ) | sed "s/^/$as_me: WARNING: /" >&2
12548 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
12549 $as_echo_n "checking for $ac_header... " >&6; }
12550 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12551 $as_echo_n "(cached) " >&6
12553 eval "$as_ac_Header=\$ac_header_preproc"
12555 ac_res=`eval 'as_val=${'$as_ac_Header'}
12556 $as_echo "$as_val"'`
12557 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12558 $as_echo "$ac_res" >&6; }
12561 as_val=`eval 'as_val=${'$as_ac_Header'}
12562 $as_echo "$as_val"'`
12563 if test "x$as_val" = x""yes; then
12564 cat >>confdefs.h <<_ACEOF
12565 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12567 pkg_cv_have_poll_h=yes
12573 pkg_use_nbcompat_poll=yes
12574 if test $pkg_cv_have_poll_h = yes; then
12575 pkg_use_nbcompat_poll=no
12578 if test $pkg_cv_have_poll_h = yes -o test $pkg_cv_have_sys_poll_h = yes; then
12579 { $as_echo "$as_me:$LINENO: checking for poll" >&5
12580 $as_echo_n "checking for poll... " >&6; }
12581 if test "${ac_cv_func_poll+set}" = set; then
12582 $as_echo_n "(cached) " >&6
12584 cat >conftest.$ac_ext <<_ACEOF
12587 cat confdefs.h >>conftest.$ac_ext
12588 cat >>conftest.$ac_ext <<_ACEOF
12589 /* end confdefs.h. */
12590 /* Define poll to an innocuous variant, in case <limits.h> declares poll.
12591 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12592 #define poll innocuous_poll
12594 /* System header to define __stub macros and hopefully few prototypes,
12595 which can conflict with char poll (); below.
12596 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12597 <limits.h> exists even on freestanding compilers. */
12600 # include <limits.h>
12602 # include <assert.h>
12607 /* Override any GCC internal prototype to avoid an error.
12608 Use char because int might match the return type of a GCC
12609 builtin and then its argument prototype would still apply. */
12614 /* The GNU C library defines this for functions which it implements
12615 to always fail with ENOSYS. Some functions are actually named
12616 something starting with __ and the normal name is an alias. */
12617 #if defined __stub_poll || defined __stub___poll
12629 rm -f conftest.$ac_objext conftest$ac_exeext
12630 if { (ac_try="$ac_link"
12631 case "(($ac_try" in
12632 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12633 *) ac_try_echo=$ac_try;;
12635 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12636 $as_echo "$ac_try_echo") >&5
12637 (eval "$ac_link") 2>conftest.er1
12639 grep -v '^ *+' conftest.er1 >conftest.err
12641 cat conftest.err >&5
12642 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12643 (exit $ac_status); } && {
12644 test -z "$ac_c_werror_flag" ||
12645 test ! -s conftest.err
12646 } && test -s conftest$ac_exeext && {
12647 test "$cross_compiling" = yes ||
12648 $as_test_x conftest$ac_exeext
12650 ac_cv_func_poll=yes
12652 $as_echo "$as_me: failed program was:" >&5
12653 sed 's/^/| /' conftest.$ac_ext >&5
12658 rm -rf conftest.dSYM
12659 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12660 conftest$ac_exeext conftest.$ac_ext
12662 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_poll" >&5
12663 $as_echo "$ac_cv_func_poll" >&6; }
12664 if test "x$ac_cv_func_poll" = x""yes; then
12667 { $as_echo "$as_me:$LINENO: checking if poll() is implemented natively" >&5
12668 $as_echo_n "checking if poll() is implemented natively... " >&6; }
12669 if test "${pkg_cv_native_poll+set}" = set; then
12670 $as_echo_n "(cached) " >&6
12673 cat >conftest.$ac_ext <<_ACEOF
12676 cat confdefs.h >>conftest.$ac_ext
12677 cat >>conftest.$ac_ext <<_ACEOF
12678 /* end confdefs.h. */
12682 #if HAVE_SYS_POLL_H
12683 #include <sys/poll.h>
12689 #ifdef _POLL_EMUL_H_
12690 #error "poll() is emulated"
12697 rm -f conftest.$ac_objext
12698 if { (ac_try="$ac_compile"
12699 case "(($ac_try" in
12700 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12701 *) ac_try_echo=$ac_try;;
12703 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12704 $as_echo "$ac_try_echo") >&5
12705 (eval "$ac_compile") 2>conftest.er1
12707 grep -v '^ *+' conftest.er1 >conftest.err
12709 cat conftest.err >&5
12710 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12711 (exit $ac_status); } && {
12712 test -z "$ac_c_werror_flag" ||
12713 test ! -s conftest.err
12714 } && test -s conftest.$ac_objext; then
12715 pkg_cv_native_poll=yes
12717 $as_echo "$as_me: failed program was:" >&5
12718 sed 's/^/| /' conftest.$ac_ext >&5
12720 pkg_cv_native_poll=no
12723 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12726 { $as_echo "$as_me:$LINENO: result: $pkg_cv_native_poll" >&5
12727 $as_echo "$pkg_cv_native_poll" >&6; }
12728 if test "x$pkg_cv_native_poll" = "xyes"; then
12729 pkg_use_nbcompat_poll=no
12731 pkg_use_nbcompat_poll=yes
12740 if test $pkg_use_nbcompat_poll = yes; then
12741 cat >>confdefs.h <<\_ACEOF
12742 #define HAVE_NBCOMPAT_POLL 1
12747 case " $LIBOBJS " in
12748 *" poll.$ac_objext "* ) ;;
12749 *) LIBOBJS="$LIBOBJS poll.$ac_objext"
12759 for ac_func in getpassphrase getpgrp memmove select
12761 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12762 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
12763 $as_echo_n "checking for $ac_func... " >&6; }
12764 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12765 $as_echo_n "(cached) " >&6
12767 cat >conftest.$ac_ext <<_ACEOF
12770 cat confdefs.h >>conftest.$ac_ext
12771 cat >>conftest.$ac_ext <<_ACEOF
12772 /* end confdefs.h. */
12773 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12774 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12775 #define $ac_func innocuous_$ac_func
12777 /* System header to define __stub macros and hopefully few prototypes,
12778 which can conflict with char $ac_func (); below.
12779 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12780 <limits.h> exists even on freestanding compilers. */
12783 # include <limits.h>
12785 # include <assert.h>
12790 /* Override any GCC internal prototype to avoid an error.
12791 Use char because int might match the return type of a GCC
12792 builtin and then its argument prototype would still apply. */
12797 /* The GNU C library defines this for functions which it implements
12798 to always fail with ENOSYS. Some functions are actually named
12799 something starting with __ and the normal name is an alias. */
12800 #if defined __stub_$ac_func || defined __stub___$ac_func
12807 return $ac_func ();
12812 rm -f conftest.$ac_objext conftest$ac_exeext
12813 if { (ac_try="$ac_link"
12814 case "(($ac_try" in
12815 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12816 *) ac_try_echo=$ac_try;;
12818 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12819 $as_echo "$ac_try_echo") >&5
12820 (eval "$ac_link") 2>conftest.er1
12822 grep -v '^ *+' conftest.er1 >conftest.err
12824 cat conftest.err >&5
12825 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12826 (exit $ac_status); } && {
12827 test -z "$ac_c_werror_flag" ||
12828 test ! -s conftest.err
12829 } && test -s conftest$ac_exeext && {
12830 test "$cross_compiling" = yes ||
12831 $as_test_x conftest$ac_exeext
12833 eval "$as_ac_var=yes"
12835 $as_echo "$as_me: failed program was:" >&5
12836 sed 's/^/| /' conftest.$ac_ext >&5
12838 eval "$as_ac_var=no"
12841 rm -rf conftest.dSYM
12842 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12843 conftest$ac_exeext conftest.$ac_ext
12845 ac_res=`eval 'as_val=${'$as_ac_var'}
12846 $as_echo "$as_val"'`
12847 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12848 $as_echo "$ac_res" >&6; }
12849 as_val=`eval 'as_val=${'$as_ac_var'}
12850 $as_echo "$as_val"'`
12851 if test "x$as_val" = x""yes; then
12852 cat >>confdefs.h <<_ACEOF
12853 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12860 { $as_echo "$as_me:$LINENO: checking for getpgrp" >&5
12861 $as_echo_n "checking for getpgrp... " >&6; }
12862 if test "${ac_cv_func_getpgrp+set}" = set; then
12863 $as_echo_n "(cached) " >&6
12865 cat >conftest.$ac_ext <<_ACEOF
12868 cat confdefs.h >>conftest.$ac_ext
12869 cat >>conftest.$ac_ext <<_ACEOF
12870 /* end confdefs.h. */
12871 /* Define getpgrp to an innocuous variant, in case <limits.h> declares getpgrp.
12872 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12873 #define getpgrp innocuous_getpgrp
12875 /* System header to define __stub macros and hopefully few prototypes,
12876 which can conflict with char getpgrp (); below.
12877 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12878 <limits.h> exists even on freestanding compilers. */
12881 # include <limits.h>
12883 # include <assert.h>
12888 /* Override any GCC internal prototype to avoid an error.
12889 Use char because int might match the return type of a GCC
12890 builtin and then its argument prototype would still apply. */
12895 /* The GNU C library defines this for functions which it implements
12896 to always fail with ENOSYS. Some functions are actually named
12897 something starting with __ and the normal name is an alias. */
12898 #if defined __stub_getpgrp || defined __stub___getpgrp
12910 rm -f conftest.$ac_objext conftest$ac_exeext
12911 if { (ac_try="$ac_link"
12912 case "(($ac_try" in
12913 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12914 *) ac_try_echo=$ac_try;;
12916 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12917 $as_echo "$ac_try_echo") >&5
12918 (eval "$ac_link") 2>conftest.er1
12920 grep -v '^ *+' conftest.er1 >conftest.err
12922 cat conftest.err >&5
12923 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12924 (exit $ac_status); } && {
12925 test -z "$ac_c_werror_flag" ||
12926 test ! -s conftest.err
12927 } && test -s conftest$ac_exeext && {
12928 test "$cross_compiling" = yes ||
12929 $as_test_x conftest$ac_exeext
12931 ac_cv_func_getpgrp=yes
12933 $as_echo "$as_me: failed program was:" >&5
12934 sed 's/^/| /' conftest.$ac_ext >&5
12936 ac_cv_func_getpgrp=no
12939 rm -rf conftest.dSYM
12940 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12941 conftest$ac_exeext conftest.$ac_ext
12943 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_getpgrp" >&5
12944 $as_echo "$ac_cv_func_getpgrp" >&6; }
12945 if test "x$ac_cv_func_getpgrp" = x""yes; then
12946 { $as_echo "$as_me:$LINENO: checking whether getpgrp requires zero arguments" >&5
12947 $as_echo_n "checking whether getpgrp requires zero arguments... " >&6; }
12948 if test "${ac_cv_func_getpgrp_void+set}" = set; then
12949 $as_echo_n "(cached) " >&6
12951 # Use it with a single arg.
12952 cat >conftest.$ac_ext <<_ACEOF
12955 cat confdefs.h >>conftest.$ac_ext
12956 cat >>conftest.$ac_ext <<_ACEOF
12957 /* end confdefs.h. */
12958 $ac_includes_default
12967 rm -f conftest.$ac_objext
12968 if { (ac_try="$ac_compile"
12969 case "(($ac_try" in
12970 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12971 *) ac_try_echo=$ac_try;;
12973 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12974 $as_echo "$ac_try_echo") >&5
12975 (eval "$ac_compile") 2>conftest.er1
12977 grep -v '^ *+' conftest.er1 >conftest.err
12979 cat conftest.err >&5
12980 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12981 (exit $ac_status); } && {
12982 test -z "$ac_c_werror_flag" ||
12983 test ! -s conftest.err
12984 } && test -s conftest.$ac_objext; then
12985 ac_cv_func_getpgrp_void=no
12987 $as_echo "$as_me: failed program was:" >&5
12988 sed 's/^/| /' conftest.$ac_ext >&5
12990 ac_cv_func_getpgrp_void=yes
12993 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12996 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_getpgrp_void" >&5
12997 $as_echo "$ac_cv_func_getpgrp_void" >&6; }
12998 if test $ac_cv_func_getpgrp_void = yes; then
13000 cat >>confdefs.h <<\_ACEOF
13001 #define GETPGRP_VOID 1
13009 { $as_echo "$as_me:$LINENO: checking for struct statfs.f_flags" >&5
13010 $as_echo_n "checking for struct statfs.f_flags... " >&6; }
13011 if test "${ac_cv_member_struct_statfs_f_flags+set}" = set; then
13012 $as_echo_n "(cached) " >&6
13014 cat >conftest.$ac_ext <<_ACEOF
13017 cat confdefs.h >>conftest.$ac_ext
13018 cat >>conftest.$ac_ext <<_ACEOF
13019 /* end confdefs.h. */
13020 #include <sys/statfs.h>
13025 static struct statfs ac_aggr;
13026 if (ac_aggr.f_flags)
13032 rm -f conftest.$ac_objext
13033 if { (ac_try="$ac_compile"
13034 case "(($ac_try" in
13035 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13036 *) ac_try_echo=$ac_try;;
13038 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13039 $as_echo "$ac_try_echo") >&5
13040 (eval "$ac_compile") 2>conftest.er1
13042 grep -v '^ *+' conftest.er1 >conftest.err
13044 cat conftest.err >&5
13045 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13046 (exit $ac_status); } && {
13047 test -z "$ac_c_werror_flag" ||
13048 test ! -s conftest.err
13049 } && test -s conftest.$ac_objext; then
13050 ac_cv_member_struct_statfs_f_flags=yes
13052 $as_echo "$as_me: failed program was:" >&5
13053 sed 's/^/| /' conftest.$ac_ext >&5
13055 cat >conftest.$ac_ext <<_ACEOF
13058 cat confdefs.h >>conftest.$ac_ext
13059 cat >>conftest.$ac_ext <<_ACEOF
13060 /* end confdefs.h. */
13061 #include <sys/statfs.h>
13066 static struct statfs ac_aggr;
13067 if (sizeof ac_aggr.f_flags)
13073 rm -f conftest.$ac_objext
13074 if { (ac_try="$ac_compile"
13075 case "(($ac_try" in
13076 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13077 *) ac_try_echo=$ac_try;;
13079 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13080 $as_echo "$ac_try_echo") >&5
13081 (eval "$ac_compile") 2>conftest.er1
13083 grep -v '^ *+' conftest.er1 >conftest.err
13085 cat conftest.err >&5
13086 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13087 (exit $ac_status); } && {
13088 test -z "$ac_c_werror_flag" ||
13089 test ! -s conftest.err
13090 } && test -s conftest.$ac_objext; then
13091 ac_cv_member_struct_statfs_f_flags=yes
13093 $as_echo "$as_me: failed program was:" >&5
13094 sed 's/^/| /' conftest.$ac_ext >&5
13096 ac_cv_member_struct_statfs_f_flags=no
13099 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13102 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13104 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_statfs_f_flags" >&5
13105 $as_echo "$ac_cv_member_struct_statfs_f_flags" >&6; }
13106 if test "x$ac_cv_member_struct_statfs_f_flags" = x""yes; then
13108 cat >>confdefs.h <<_ACEOF
13109 #define HAVE_STRUCT_STATFS_F_FLAGS 1
13117 { $as_echo "$as_me:$LINENO: checking for struct statfs.f_fsize" >&5
13118 $as_echo_n "checking for struct statfs.f_fsize... " >&6; }
13119 if test "${ac_cv_member_struct_statfs_f_fsize+set}" = set; then
13120 $as_echo_n "(cached) " >&6
13122 cat >conftest.$ac_ext <<_ACEOF
13125 cat confdefs.h >>conftest.$ac_ext
13126 cat >>conftest.$ac_ext <<_ACEOF
13127 /* end confdefs.h. */
13128 #include <sys/statfs.h>
13133 static struct statfs ac_aggr;
13134 if (ac_aggr.f_fsize)
13140 rm -f conftest.$ac_objext
13141 if { (ac_try="$ac_compile"
13142 case "(($ac_try" in
13143 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13144 *) ac_try_echo=$ac_try;;
13146 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13147 $as_echo "$ac_try_echo") >&5
13148 (eval "$ac_compile") 2>conftest.er1
13150 grep -v '^ *+' conftest.er1 >conftest.err
13152 cat conftest.err >&5
13153 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13154 (exit $ac_status); } && {
13155 test -z "$ac_c_werror_flag" ||
13156 test ! -s conftest.err
13157 } && test -s conftest.$ac_objext; then
13158 ac_cv_member_struct_statfs_f_fsize=yes
13160 $as_echo "$as_me: failed program was:" >&5
13161 sed 's/^/| /' conftest.$ac_ext >&5
13163 cat >conftest.$ac_ext <<_ACEOF
13166 cat confdefs.h >>conftest.$ac_ext
13167 cat >>conftest.$ac_ext <<_ACEOF
13168 /* end confdefs.h. */
13169 #include <sys/statfs.h>
13174 static struct statfs ac_aggr;
13175 if (sizeof ac_aggr.f_fsize)
13181 rm -f conftest.$ac_objext
13182 if { (ac_try="$ac_compile"
13183 case "(($ac_try" in
13184 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13185 *) ac_try_echo=$ac_try;;
13187 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13188 $as_echo "$ac_try_echo") >&5
13189 (eval "$ac_compile") 2>conftest.er1
13191 grep -v '^ *+' conftest.er1 >conftest.err
13193 cat conftest.err >&5
13194 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13195 (exit $ac_status); } && {
13196 test -z "$ac_c_werror_flag" ||
13197 test ! -s conftest.err
13198 } && test -s conftest.$ac_objext; then
13199 ac_cv_member_struct_statfs_f_fsize=yes
13201 $as_echo "$as_me: failed program was:" >&5
13202 sed 's/^/| /' conftest.$ac_ext >&5
13204 ac_cv_member_struct_statfs_f_fsize=no
13207 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13210 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13212 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_statfs_f_fsize" >&5
13213 $as_echo "$ac_cv_member_struct_statfs_f_fsize" >&6; }
13214 if test "x$ac_cv_member_struct_statfs_f_fsize" = x""yes; then
13216 cat >>confdefs.h <<_ACEOF
13217 #define HAVE_STRUCT_STATFS_F_FSIZE 1
13225 { $as_echo "$as_me:$LINENO: checking for struct statfs.f_iosize" >&5
13226 $as_echo_n "checking for struct statfs.f_iosize... " >&6; }
13227 if test "${ac_cv_member_struct_statfs_f_iosize+set}" = set; then
13228 $as_echo_n "(cached) " >&6
13230 cat >conftest.$ac_ext <<_ACEOF
13233 cat confdefs.h >>conftest.$ac_ext
13234 cat >>conftest.$ac_ext <<_ACEOF
13235 /* end confdefs.h. */
13236 #include <sys/statfs.h>
13241 static struct statfs ac_aggr;
13242 if (ac_aggr.f_iosize)
13248 rm -f conftest.$ac_objext
13249 if { (ac_try="$ac_compile"
13250 case "(($ac_try" in
13251 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13252 *) ac_try_echo=$ac_try;;
13254 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13255 $as_echo "$ac_try_echo") >&5
13256 (eval "$ac_compile") 2>conftest.er1
13258 grep -v '^ *+' conftest.er1 >conftest.err
13260 cat conftest.err >&5
13261 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13262 (exit $ac_status); } && {
13263 test -z "$ac_c_werror_flag" ||
13264 test ! -s conftest.err
13265 } && test -s conftest.$ac_objext; then
13266 ac_cv_member_struct_statfs_f_iosize=yes
13268 $as_echo "$as_me: failed program was:" >&5
13269 sed 's/^/| /' conftest.$ac_ext >&5
13271 cat >conftest.$ac_ext <<_ACEOF
13274 cat confdefs.h >>conftest.$ac_ext
13275 cat >>conftest.$ac_ext <<_ACEOF
13276 /* end confdefs.h. */
13277 #include <sys/statfs.h>
13282 static struct statfs ac_aggr;
13283 if (sizeof ac_aggr.f_iosize)
13289 rm -f conftest.$ac_objext
13290 if { (ac_try="$ac_compile"
13291 case "(($ac_try" in
13292 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13293 *) ac_try_echo=$ac_try;;
13295 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13296 $as_echo "$ac_try_echo") >&5
13297 (eval "$ac_compile") 2>conftest.er1
13299 grep -v '^ *+' conftest.er1 >conftest.err
13301 cat conftest.err >&5
13302 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13303 (exit $ac_status); } && {
13304 test -z "$ac_c_werror_flag" ||
13305 test ! -s conftest.err
13306 } && test -s conftest.$ac_objext; then
13307 ac_cv_member_struct_statfs_f_iosize=yes
13309 $as_echo "$as_me: failed program was:" >&5
13310 sed 's/^/| /' conftest.$ac_ext >&5
13312 ac_cv_member_struct_statfs_f_iosize=no
13315 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13318 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13320 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_statfs_f_iosize" >&5
13321 $as_echo "$ac_cv_member_struct_statfs_f_iosize" >&6; }
13322 if test "x$ac_cv_member_struct_statfs_f_iosize" = x""yes; then
13324 cat >>confdefs.h <<_ACEOF
13325 #define HAVE_STRUCT_STATFS_F_IOSIZE 1
13333 { $as_echo "$as_me:$LINENO: checking for struct dirent.d_namlen" >&5
13334 $as_echo_n "checking for struct dirent.d_namlen... " >&6; }
13335 if test "${ac_cv_member_struct_dirent_d_namlen+set}" = set; then
13336 $as_echo_n "(cached) " >&6
13338 cat >conftest.$ac_ext <<_ACEOF
13341 cat confdefs.h >>conftest.$ac_ext
13342 cat >>conftest.$ac_ext <<_ACEOF
13343 /* end confdefs.h. */
13344 #include <sys/types.h>
13346 # include <dirent.h>
13348 # define dirent direct
13349 # if HAVE_SYS_NDIR_H
13350 # include <sys/ndir.h>
13352 # if HAVE_SYS_DIR_H
13353 # include <sys/dir.h>
13363 static struct dirent ac_aggr;
13364 if (ac_aggr.d_namlen)
13370 rm -f conftest.$ac_objext
13371 if { (ac_try="$ac_compile"
13372 case "(($ac_try" in
13373 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13374 *) ac_try_echo=$ac_try;;
13376 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13377 $as_echo "$ac_try_echo") >&5
13378 (eval "$ac_compile") 2>conftest.er1
13380 grep -v '^ *+' conftest.er1 >conftest.err
13382 cat conftest.err >&5
13383 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13384 (exit $ac_status); } && {
13385 test -z "$ac_c_werror_flag" ||
13386 test ! -s conftest.err
13387 } && test -s conftest.$ac_objext; then
13388 ac_cv_member_struct_dirent_d_namlen=yes
13390 $as_echo "$as_me: failed program was:" >&5
13391 sed 's/^/| /' conftest.$ac_ext >&5
13393 cat >conftest.$ac_ext <<_ACEOF
13396 cat confdefs.h >>conftest.$ac_ext
13397 cat >>conftest.$ac_ext <<_ACEOF
13398 /* end confdefs.h. */
13399 #include <sys/types.h>
13401 # include <dirent.h>
13403 # define dirent direct
13404 # if HAVE_SYS_NDIR_H
13405 # include <sys/ndir.h>
13407 # if HAVE_SYS_DIR_H
13408 # include <sys/dir.h>
13418 static struct dirent ac_aggr;
13419 if (sizeof ac_aggr.d_namlen)
13425 rm -f conftest.$ac_objext
13426 if { (ac_try="$ac_compile"
13427 case "(($ac_try" in
13428 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13429 *) ac_try_echo=$ac_try;;
13431 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13432 $as_echo "$ac_try_echo") >&5
13433 (eval "$ac_compile") 2>conftest.er1
13435 grep -v '^ *+' conftest.er1 >conftest.err
13437 cat conftest.err >&5
13438 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13439 (exit $ac_status); } && {
13440 test -z "$ac_c_werror_flag" ||
13441 test ! -s conftest.err
13442 } && test -s conftest.$ac_objext; then
13443 ac_cv_member_struct_dirent_d_namlen=yes
13445 $as_echo "$as_me: failed program was:" >&5
13446 sed 's/^/| /' conftest.$ac_ext >&5
13448 ac_cv_member_struct_dirent_d_namlen=no
13451 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13454 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13456 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_dirent_d_namlen" >&5
13457 $as_echo "$ac_cv_member_struct_dirent_d_namlen" >&6; }
13458 if test "x$ac_cv_member_struct_dirent_d_namlen" = x""yes; then
13460 cat >>confdefs.h <<_ACEOF
13461 #define HAVE_STRUCT_DIRENT_D_NAMLEN 1
13468 { $as_echo "$as_me:$LINENO: checking for DIR.dd_fd" >&5
13469 $as_echo_n "checking for DIR.dd_fd... " >&6; }
13470 if test "${ac_cv_member_DIR_dd_fd+set}" = set; then
13471 $as_echo_n "(cached) " >&6
13473 cat >conftest.$ac_ext <<_ACEOF
13476 cat confdefs.h >>conftest.$ac_ext
13477 cat >>conftest.$ac_ext <<_ACEOF
13478 /* end confdefs.h. */
13479 #include <sys/types.h>
13481 # include <dirent.h>
13483 # define dirent direct
13484 # if HAVE_SYS_NDIR_H
13485 # include <sys/ndir.h>
13487 # if HAVE_SYS_DIR_H
13488 # include <sys/dir.h>
13498 static DIR ac_aggr;
13505 rm -f conftest.$ac_objext
13506 if { (ac_try="$ac_compile"
13507 case "(($ac_try" in
13508 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13509 *) ac_try_echo=$ac_try;;
13511 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13512 $as_echo "$ac_try_echo") >&5
13513 (eval "$ac_compile") 2>conftest.er1
13515 grep -v '^ *+' conftest.er1 >conftest.err
13517 cat conftest.err >&5
13518 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13519 (exit $ac_status); } && {
13520 test -z "$ac_c_werror_flag" ||
13521 test ! -s conftest.err
13522 } && test -s conftest.$ac_objext; then
13523 ac_cv_member_DIR_dd_fd=yes
13525 $as_echo "$as_me: failed program was:" >&5
13526 sed 's/^/| /' conftest.$ac_ext >&5
13528 cat >conftest.$ac_ext <<_ACEOF
13531 cat confdefs.h >>conftest.$ac_ext
13532 cat >>conftest.$ac_ext <<_ACEOF
13533 /* end confdefs.h. */
13534 #include <sys/types.h>
13536 # include <dirent.h>
13538 # define dirent direct
13539 # if HAVE_SYS_NDIR_H
13540 # include <sys/ndir.h>
13542 # if HAVE_SYS_DIR_H
13543 # include <sys/dir.h>
13553 static DIR ac_aggr;
13554 if (sizeof ac_aggr.dd_fd)
13560 rm -f conftest.$ac_objext
13561 if { (ac_try="$ac_compile"
13562 case "(($ac_try" in
13563 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13564 *) ac_try_echo=$ac_try;;
13566 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13567 $as_echo "$ac_try_echo") >&5
13568 (eval "$ac_compile") 2>conftest.er1
13570 grep -v '^ *+' conftest.er1 >conftest.err
13572 cat conftest.err >&5
13573 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13574 (exit $ac_status); } && {
13575 test -z "$ac_c_werror_flag" ||
13576 test ! -s conftest.err
13577 } && test -s conftest.$ac_objext; then
13578 ac_cv_member_DIR_dd_fd=yes
13580 $as_echo "$as_me: failed program was:" >&5
13581 sed 's/^/| /' conftest.$ac_ext >&5
13583 ac_cv_member_DIR_dd_fd=no
13586 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13589 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13591 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_DIR_dd_fd" >&5
13592 $as_echo "$ac_cv_member_DIR_dd_fd" >&6; }
13593 if test "x$ac_cv_member_DIR_dd_fd" = x""yes; then
13595 cat >>confdefs.h <<_ACEOF
13596 #define HAVE_DIR_DD_FD 1
13605 { $as_echo "$as_me:$LINENO: checking for dirfd" >&5
13606 $as_echo_n "checking for dirfd... " >&6; }
13607 cat >conftest.$ac_ext <<_ACEOF
13610 cat confdefs.h >>conftest.$ac_ext
13611 cat >>conftest.$ac_ext <<_ACEOF
13612 /* end confdefs.h. */
13613 #include <sys/types.h>
13615 # include <dirent.h>
13617 # define dirent direct
13618 # if HAVE_SYS_NDIR_H
13619 # include <sys/ndir.h>
13621 # if HAVE_SYS_DIR_H
13622 # include <sys/dir.h>
13633 dummy_var = dirfd((DIR *)0)
13638 rm -f conftest.$ac_objext conftest$ac_exeext
13639 if { (ac_try="$ac_link"
13640 case "(($ac_try" in
13641 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13642 *) ac_try_echo=$ac_try;;
13644 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13645 $as_echo "$ac_try_echo") >&5
13646 (eval "$ac_link") 2>conftest.er1
13648 grep -v '^ *+' conftest.er1 >conftest.err
13650 cat conftest.err >&5
13651 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13652 (exit $ac_status); } && {
13653 test -z "$ac_c_werror_flag" ||
13654 test ! -s conftest.err
13655 } && test -s conftest$ac_exeext && {
13656 test "$cross_compiling" = yes ||
13657 $as_test_x conftest$ac_exeext
13660 { $as_echo "$as_me:$LINENO: result: yes" >&5
13661 $as_echo "yes" >&6; }
13663 cat >>confdefs.h <<\_ACEOF
13664 #define HAVE_DIRFD 1
13669 $as_echo "$as_me: failed program was:" >&5
13670 sed 's/^/| /' conftest.$ac_ext >&5
13672 { $as_echo "$as_me:$LINENO: result: no" >&5
13673 $as_echo "no" >&6; }
13678 rm -rf conftest.dSYM
13679 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13680 conftest$ac_exeext conftest.$ac_ext
13682 if test $ac_cv_type_long_long = yes; then
13685 { $as_echo "$as_me:$LINENO: checking *printf() support for %lld" >&5
13686 $as_echo_n "checking *printf() support for %lld... " >&6; }
13687 can_printf_longlong=no
13688 if test "$cross_compiling" = yes; then
13691 cat >conftest.$ac_ext <<_ACEOF
13694 cat confdefs.h >>conftest.$ac_ext
13695 cat >>conftest.$ac_ext <<_ACEOF
13696 /* end confdefs.h. */
13701 sprintf(buf, "%lld", 4294967300LL);
13702 return (strcmp(buf, "4294967300"));
13706 rm -f conftest$ac_exeext
13707 if { (ac_try="$ac_link"
13708 case "(($ac_try" in
13709 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13710 *) ac_try_echo=$ac_try;;
13712 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13713 $as_echo "$ac_try_echo") >&5
13714 (eval "$ac_link") 2>&5
13716 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13717 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13718 { (case "(($ac_try" in
13719 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13720 *) ac_try_echo=$ac_try;;
13722 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13723 $as_echo "$ac_try_echo") >&5
13724 (eval "$ac_try") 2>&5
13726 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13727 (exit $ac_status); }; }; then
13729 { $as_echo "$as_me:$LINENO: result: yes" >&5
13730 $as_echo "yes" >&6; }
13731 can_printf_longlong=yes
13734 $as_echo "$as_me: program exited with status $ac_status" >&5
13735 $as_echo "$as_me: failed program was:" >&5
13736 sed 's/^/| /' conftest.$ac_ext >&5
13738 ( exit $ac_status )
13740 { $as_echo "$as_me:$LINENO: result: no" >&5
13741 $as_echo "no" >&6; }
13744 rm -rf conftest.dSYM
13745 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13750 if test $can_printf_longlong != yes; then
13751 { $as_echo "$as_me:$LINENO: checking *printf() support for %qd" >&5
13752 $as_echo_n "checking *printf() support for %qd... " >&6; }
13753 if test "$cross_compiling" = yes; then
13756 cat >conftest.$ac_ext <<_ACEOF
13759 cat confdefs.h >>conftest.$ac_ext
13760 cat >>conftest.$ac_ext <<_ACEOF
13761 /* end confdefs.h. */
13766 sprintf(buf, "%qd", 4294967300LL);
13767 return (strcmp(buf, "4294967300"));
13771 rm -f conftest$ac_exeext
13772 if { (ac_try="$ac_link"
13773 case "(($ac_try" in
13774 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13775 *) ac_try_echo=$ac_try;;
13777 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13778 $as_echo "$ac_try_echo") >&5
13779 (eval "$ac_link") 2>&5
13781 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13782 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13783 { (case "(($ac_try" in
13784 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13785 *) ac_try_echo=$ac_try;;
13787 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13788 $as_echo "$ac_try_echo") >&5
13789 (eval "$ac_try") 2>&5
13791 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13792 (exit $ac_status); }; }; then
13794 { $as_echo "$as_me:$LINENO: result: yes" >&5
13795 $as_echo "yes" >&6; }
13796 can_printf_longlong=yes
13797 cat >>confdefs.h <<\_ACEOF
13798 #define HAVE_PRINTF_QD 1
13805 $as_echo "$as_me: program exited with status $ac_status" >&5
13806 $as_echo "$as_me: failed program was:" >&5
13807 sed 's/^/| /' conftest.$ac_ext >&5
13809 ( exit $ac_status )
13811 { $as_echo "$as_me:$LINENO: result: no" >&5
13812 $as_echo "no" >&6; }
13815 rm -rf conftest.dSYM
13816 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13822 if test $can_printf_longlong = yes; then
13823 cat >>confdefs.h <<\_ACEOF
13824 #define HAVE_WORKING_LONG_LONG 1
13830 for ac_func in strtoll
13832 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13833 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
13834 $as_echo_n "checking for $ac_func... " >&6; }
13835 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
13836 $as_echo_n "(cached) " >&6
13838 cat >conftest.$ac_ext <<_ACEOF
13841 cat confdefs.h >>conftest.$ac_ext
13842 cat >>conftest.$ac_ext <<_ACEOF
13843 /* end confdefs.h. */
13844 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13845 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13846 #define $ac_func innocuous_$ac_func
13848 /* System header to define __stub macros and hopefully few prototypes,
13849 which can conflict with char $ac_func (); below.
13850 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13851 <limits.h> exists even on freestanding compilers. */
13854 # include <limits.h>
13856 # include <assert.h>
13861 /* Override any GCC internal prototype to avoid an error.
13862 Use char because int might match the return type of a GCC
13863 builtin and then its argument prototype would still apply. */
13868 /* The GNU C library defines this for functions which it implements
13869 to always fail with ENOSYS. Some functions are actually named
13870 something starting with __ and the normal name is an alias. */
13871 #if defined __stub_$ac_func || defined __stub___$ac_func
13878 return $ac_func ();
13883 rm -f conftest.$ac_objext conftest$ac_exeext
13884 if { (ac_try="$ac_link"
13885 case "(($ac_try" in
13886 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13887 *) ac_try_echo=$ac_try;;
13889 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13890 $as_echo "$ac_try_echo") >&5
13891 (eval "$ac_link") 2>conftest.er1
13893 grep -v '^ *+' conftest.er1 >conftest.err
13895 cat conftest.err >&5
13896 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13897 (exit $ac_status); } && {
13898 test -z "$ac_c_werror_flag" ||
13899 test ! -s conftest.err
13900 } && test -s conftest$ac_exeext && {
13901 test "$cross_compiling" = yes ||
13902 $as_test_x conftest$ac_exeext
13904 eval "$as_ac_var=yes"
13906 $as_echo "$as_me: failed program was:" >&5
13907 sed 's/^/| /' conftest.$ac_ext >&5
13909 eval "$as_ac_var=no"
13912 rm -rf conftest.dSYM
13913 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13914 conftest$ac_exeext conftest.$ac_ext
13916 ac_res=`eval 'as_val=${'$as_ac_var'}
13917 $as_echo "$as_val"'`
13918 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13919 $as_echo "$ac_res" >&6; }
13920 as_val=`eval 'as_val=${'$as_ac_var'}
13921 $as_echo "$as_val"'`
13922 if test "x$as_val" = x""yes; then
13923 cat >>confdefs.h <<_ACEOF
13924 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13928 case " $LIBOBJS " in
13929 *" $ac_func.$ac_objext "* ) ;;
13930 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
13944 { $as_echo "$as_me:$LINENO: checking if vsnprintf is standards compliant" >&5
13945 $as_echo_n "checking if vsnprintf is standards compliant... " >&6; }
13946 have_std_vsnprintf=no
13947 if test "$cross_compiling" = yes; then
13950 cat >conftest.$ac_ext <<_ACEOF
13953 cat confdefs.h >>conftest.$ac_ext
13954 cat >>conftest.$ac_ext <<_ACEOF
13955 /* end confdefs.h. */
13958 #include <stdlib.h>
13959 #include <stdarg.h>
13960 void dotest(char *fmt, ...) {
13964 exit(snprintf(buf, 3, fmt, ap) == 4 ? 0 : 1);
13971 rm -f conftest$ac_exeext
13972 if { (ac_try="$ac_link"
13973 case "(($ac_try" in
13974 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13975 *) ac_try_echo=$ac_try;;
13977 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13978 $as_echo "$ac_try_echo") >&5
13979 (eval "$ac_link") 2>&5
13981 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13982 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13983 { (case "(($ac_try" in
13984 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13985 *) ac_try_echo=$ac_try;;
13987 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13988 $as_echo "$ac_try_echo") >&5
13989 (eval "$ac_try") 2>&5
13991 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13992 (exit $ac_status); }; }; then
13994 { $as_echo "$as_me:$LINENO: result: yes" >&5
13995 $as_echo "yes" >&6; }
13996 have_std_vsnprintf=yes
13999 $as_echo "$as_me: program exited with status $ac_status" >&5
14000 $as_echo "$as_me: failed program was:" >&5
14001 sed 's/^/| /' conftest.$ac_ext >&5
14003 ( exit $ac_status )
14005 { $as_echo "$as_me:$LINENO: result: no" >&5
14006 $as_echo "no" >&6; }
14009 rm -rf conftest.dSYM
14010 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14015 if test $have_std_vsnprintf = no; then
14016 case " $LIBOBJS " in
14017 *" snprintf.$ac_objext "* ) ;;
14018 *) LIBOBJS="$LIBOBJS snprintf.$ac_objext"
14027 ac_config_files="$ac_config_files Makefile"
14029 cat >confcache <<\_ACEOF
14030 # This file is a shell script that caches the results of configure
14031 # tests run on this system so they can be shared between configure
14032 # scripts and configure runs, see configure's option --config-cache.
14033 # It is not useful on other systems. If it contains results you don't
14034 # want to keep, you may remove or edit it.
14036 # config.status only pays attention to the cache file if you give it
14037 # the --recheck option to rerun configure.
14039 # `ac_cv_env_foo' variables (set or unset) will be overridden when
14040 # loading this file, other *unset* `ac_cv_foo' will be assigned the
14041 # following values.
14045 # The following way of writing the cache mishandles newlines in values,
14046 # but we know of no workaround that is simple, portable, and efficient.
14047 # So, we kill variables containing newlines.
14048 # Ultrix sh set writes to stderr and can't be redirected directly,
14049 # and sets the high bit in the cache file unless we assign to the vars.
14051 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
14052 eval ac_val=\$$ac_var
14056 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
14057 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
14060 _ | IFS | as_nl) ;; #(
14061 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
14062 *) $as_unset $ac_var ;;
14068 case $as_nl`(ac_space=' '; set) 2>&1` in #(
14069 *${as_nl}ac_space=\ *)
14070 # `set' does not quote correctly, so add quotes (double-quote
14071 # substitution turns \\\\ into \\, and sed turns \\ into \).
14074 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
14077 # `set' quotes correctly as required by POSIX, so do not add quotes.
14078 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
14087 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
14089 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
14091 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
14092 if test -w "$cache_file"; then
14093 test "x$cache_file" != "x/dev/null" &&
14094 { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
14095 $as_echo "$as_me: updating cache $cache_file" >&6;}
14096 cat confcache >$cache_file
14098 { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
14099 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
14104 test "x$prefix" = xNONE && prefix=$ac_default_prefix
14105 # Let make expand exec_prefix.
14106 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
14108 DEFS=-DHAVE_CONFIG_H
14112 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
14113 # 1. Remove the extension, and $U if already installed.
14114 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
14115 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
14116 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
14117 # will be set to the directory where LIBOBJS objects are built.
14118 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
14119 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
14121 LIBOBJS=$ac_libobjs
14123 LTLIBOBJS=$ac_ltlibobjs
14128 : ${CONFIG_STATUS=./config.status}
14130 ac_clean_files_save=$ac_clean_files
14131 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
14132 { $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
14133 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
14134 cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14136 # Generated by $as_me.
14137 # Run this file to recreate the current configuration.
14138 # Compiler output produced by configure, useful for debugging
14139 # configure, is in config.log if it exists.
14142 ac_cs_recheck=false
14144 SHELL=\${CONFIG_SHELL-$SHELL}
14147 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14148 ## --------------------- ##
14149 ## M4sh Initialization. ##
14150 ## --------------------- ##
14152 # Be more Bourne compatible
14153 DUALCASE=1; export DUALCASE # for MKS sh
14154 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
14157 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
14158 # is contrary to our usage. Disable this feature.
14159 alias -g '${1+"$@"}'='"$@"'
14160 setopt NO_GLOB_SUBST
14162 case `(set -o) 2>/dev/null` in
14163 *posix*) set -o posix ;;
14172 # Avoid depending upon Character Ranges.
14173 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
14174 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
14175 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
14176 as_cr_digits='0123456789'
14177 as_cr_alnum=$as_cr_Letters$as_cr_digits
14182 # Printing a long string crashes Solaris 7 /usr/bin/printf.
14183 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
14184 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
14185 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
14186 if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
14187 as_echo='printf %s\n'
14188 as_echo_n='printf %s'
14190 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
14191 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
14192 as_echo_n='/usr/ucb/echo -n'
14194 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
14195 as_echo_n_body='eval
14199 expr "X$arg" : "X\\(.*\\)$as_nl";
14200 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
14202 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
14204 export as_echo_n_body
14205 as_echo_n='sh -c $as_echo_n_body as_echo'
14207 export as_echo_body
14208 as_echo='sh -c $as_echo_body as_echo'
14211 # The user is always right.
14212 if test "${PATH_SEPARATOR+set}" != set; then
14214 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
14215 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
14220 # Support unset when possible.
14221 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
14229 # We need space, tab and new line, in precisely that order. Quoting is
14230 # there to prevent editors from complaining about space-tab.
14231 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
14232 # splitting by setting IFS to empty value.)
14235 # Find who we are. Look in the path if we contain no directory separator.
14237 *[\\/]* ) as_myself=$0 ;;
14238 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14239 for as_dir in $PATH
14242 test -z "$as_dir" && as_dir=.
14243 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
14249 # We did not find ourselves, most probably we were run as `sh COMMAND'
14250 # in which case we are not to be found in the path.
14251 if test "x$as_myself" = x; then
14254 if test ! -f "$as_myself"; then
14255 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
14256 { (exit 1); exit 1; }
14259 # Work around bugs in pre-3.0 UWIN ksh.
14260 for as_var in ENV MAIL MAILPATH
14261 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
14273 # Required to use basename.
14274 if expr a : '\(a\)' >/dev/null 2>&1 &&
14275 test "X`expr 00001 : '.*\(...\)'`" = X001; then
14281 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
14282 as_basename=basename
14288 # Name of the executable.
14289 as_me=`$as_basename -- "$0" ||
14290 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
14291 X"$0" : 'X\(//\)$' \| \
14292 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
14294 sed '/^.*\/\([^/][^/]*\)\/*$/{
14313 as_lineno_1=$LINENO
14314 as_lineno_2=$LINENO
14315 test "x$as_lineno_1" != "x$as_lineno_2" &&
14316 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
14318 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
14319 # uniformly replaced by the line number. The first 'sed' inserts a
14320 # line-number line after each line using $LINENO; the second 'sed'
14321 # does the real work. The second script uses 'N' to pair each
14322 # line-number line with the line containing $LINENO, and appends
14323 # trailing '-' during substitution so that $LINENO is not a special
14324 # case at line end.
14325 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
14326 # scripts with optimization help from Paolo Bonzini. Blame Lee
14327 # E. McMahon (1931-1989) for sed's syntax. :-)
14339 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
14342 ' >$as_me.lineno &&
14343 chmod +x "$as_me.lineno" ||
14344 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
14345 { (exit 1); exit 1; }; }
14347 # Don't try to exec as it changes $[0], causing all sort of problems
14348 # (the dirname of $[0] is not the place where we might find the
14349 # original and so on. Autoconf is especially sensitive to this).
14350 . "./$as_me.lineno"
14351 # Exit status is that of the last command.
14356 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
14362 ECHO_C= ECHO_N= ECHO_T=
14363 case `echo -n x` in
14365 case `echo 'x\c'` in
14366 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
14372 if expr a : '\(a\)' >/dev/null 2>&1 &&
14373 test "X`expr 00001 : '.*\(...\)'`" = X001; then
14379 rm -f conf$$ conf$$.exe conf$$.file
14380 if test -d conf$$.dir; then
14381 rm -f conf$$.dir/conf$$.file
14384 mkdir conf$$.dir 2>/dev/null
14386 if (echo >conf$$.file) 2>/dev/null; then
14387 if ln -s conf$$.file conf$$ 2>/dev/null; then
14389 # ... but there are two gotchas:
14390 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
14391 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
14392 # In both cases, we have to default to `cp -p'.
14393 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
14395 elif ln conf$$.file conf$$ 2>/dev/null; then
14403 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
14404 rmdir conf$$.dir 2>/dev/null
14406 if mkdir -p . 2>/dev/null; then
14409 test -d ./-p && rmdir ./-p
14413 if test -x / >/dev/null 2>&1; then
14414 as_test_x='test -x'
14416 if ls -dL / >/dev/null 2>&1; then
14423 if test -d "$1"; then
14429 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
14430 ???[sx]*):;;*)false;;esac;fi
14434 as_executable_p=$as_test_x
14436 # Sed expression to map a string onto a valid CPP name.
14437 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
14439 # Sed expression to map a string onto a valid variable name.
14440 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
14445 # Save the log message, to keep $[0] and so on meaningful, and to
14446 # report actual input values of CONFIG_FILES etc. instead of their
14447 # values after options handling.
14449 This file was extended by libnbcompat $as_me 20080519, which was
14450 generated by GNU Autoconf 2.63. Invocation command line was
14452 CONFIG_FILES = $CONFIG_FILES
14453 CONFIG_HEADERS = $CONFIG_HEADERS
14454 CONFIG_LINKS = $CONFIG_LINKS
14455 CONFIG_COMMANDS = $CONFIG_COMMANDS
14458 on `(hostname || uname -n) 2>/dev/null | sed 1q`
14463 case $ac_config_files in *"
14464 "*) set x $ac_config_files; shift; ac_config_files=$*;;
14467 case $ac_config_headers in *"
14468 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
14472 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14473 # Files that config.status was made for.
14474 config_files="$ac_config_files"
14475 config_headers="$ac_config_headers"
14479 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14481 \`$as_me' instantiates files from templates according to the
14482 current configuration.
14484 Usage: $0 [OPTION]... [FILE]...
14486 -h, --help print this help, then exit
14487 -V, --version print version number and configuration settings, then exit
14488 -q, --quiet, --silent
14489 do not print progress messages
14490 -d, --debug don't remove temporary files
14491 --recheck update $as_me by reconfiguring in the same conditions
14492 --file=FILE[:TEMPLATE]
14493 instantiate the configuration file FILE
14494 --header=FILE[:TEMPLATE]
14495 instantiate the configuration header FILE
14497 Configuration files:
14500 Configuration headers:
14503 Report bugs to <bug-autoconf@gnu.org>."
14506 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14508 libnbcompat config.status 20080519
14509 configured by $0, generated by GNU Autoconf 2.63,
14510 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
14512 Copyright (C) 2008 Free Software Foundation, Inc.
14513 This config.status script is free software; the Free Software Foundation
14514 gives unlimited permission to copy, distribute and modify it."
14520 test -n "\$AWK" || AWK=awk
14523 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14524 # The default lists apply if the user does not specify any file.
14530 ac_option=`expr "X$1" : 'X\([^=]*\)='`
14531 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
14542 # Handling of the options.
14543 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
14545 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
14546 $as_echo "$ac_cs_version"; exit ;;
14547 --debug | --debu | --deb | --de | --d | -d )
14549 --file | --fil | --fi | --f )
14552 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
14554 CONFIG_FILES="$CONFIG_FILES '$ac_optarg'"
14555 ac_need_defaults=false;;
14556 --header | --heade | --head | --hea )
14559 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
14561 CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'"
14562 ac_need_defaults=false;;
14564 # Conflict between --help and --header
14565 { $as_echo "$as_me: error: ambiguous option: $1
14566 Try \`$0 --help' for more information." >&2
14567 { (exit 1); exit 1; }; };;
14568 --help | --hel | -h )
14569 $as_echo "$ac_cs_usage"; exit ;;
14570 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
14571 | -silent | --silent | --silen | --sile | --sil | --si | --s)
14574 # This is an error.
14575 -*) { $as_echo "$as_me: error: unrecognized option: $1
14576 Try \`$0 --help' for more information." >&2
14577 { (exit 1); exit 1; }; } ;;
14579 *) ac_config_targets="$ac_config_targets $1"
14580 ac_need_defaults=false ;;
14586 ac_configure_extra_args=
14588 if $ac_cs_silent; then
14590 ac_configure_extra_args="$ac_configure_extra_args --silent"
14594 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14595 if \$ac_cs_recheck; then
14596 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
14598 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
14599 CONFIG_SHELL='$SHELL'
14600 export CONFIG_SHELL
14605 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14609 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
14610 ## Running $as_me. ##
14616 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14619 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14621 # Handling of arguments.
14622 for ac_config_target in $ac_config_targets
14624 case $ac_config_target in
14625 "nbcompat/config.h") CONFIG_HEADERS="$CONFIG_HEADERS nbcompat/config.h" ;;
14626 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
14628 *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
14629 $as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
14630 { (exit 1); exit 1; }; };;
14635 # If the user did not use the arguments to specify the items to instantiate,
14636 # then the envvar interface is used. Set only those that are not.
14637 # We use the long form for the default assignment because of an extremely
14638 # bizarre bug on SunOS 4.1.3.
14639 if $ac_need_defaults; then
14640 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
14641 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
14644 # Have a temporary directory for convenience. Make it in the build tree
14645 # simply because there is no reason against having it here, and in addition,
14646 # creating and moving files from /tmp can sometimes cause problems.
14647 # Hook for its removal unless debugging.
14648 # Note that there is a small window in which the directory will not be cleaned:
14649 # after its creation but before its name has been assigned to `$tmp'.
14653 trap 'exit_status=$?
14654 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
14656 trap '{ (exit 1); exit 1; }' 1 2 13 15
14658 # Create a (secure) tmp directory for tmp files.
14661 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
14662 test -n "$tmp" && test -d "$tmp"
14665 tmp=./conf$$-$RANDOM
14666 (umask 077 && mkdir "$tmp")
14669 $as_echo "$as_me: cannot create a temporary directory in ." >&2
14670 { (exit 1); exit 1; }
14673 # Set up the scripts for CONFIG_FILES section.
14674 # No need to generate them if there are no CONFIG_FILES.
14675 # This happens for instance with `./config.status config.h'.
14676 if test -n "$CONFIG_FILES"; then
14680 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
14681 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
14684 ac_cs_awk_cr=$ac_cr
14687 echo 'BEGIN {' >"$tmp/subs1.awk" &&
14692 echo "cat >conf$$subs.awk <<_ACEOF" &&
14693 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
14695 } >conf$$subs.sh ||
14696 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
14697 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
14698 { (exit 1); exit 1; }; }
14699 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
14701 for ac_last_try in false false false false false :; do
14702 . ./conf$$subs.sh ||
14703 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
14704 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
14705 { (exit 1); exit 1; }; }
14707 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
14708 if test $ac_delim_n = $ac_delim_num; then
14710 elif $ac_last_try; then
14711 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
14712 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
14713 { (exit 1); exit 1; }; }
14715 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14718 rm -f conf$$subs.sh
14720 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14721 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
14725 s/^/S["/; s/!.*/"]=/
14735 s/\(.\{148\}\).*/\1/
14737 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
14742 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14749 s/\(.\{148\}\).*/\1/
14751 s/["\\]/\\&/g; s/^/"/; s/$/"/
14755 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14760 ' <conf$$subs.awk | sed '
14765 ' >>$CONFIG_STATUS || ac_write_fail=1
14766 rm -f conf$$subs.awk
14767 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14769 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
14770 for (key in S) S_is_set[key] = 1
14776 nfields = split(line, field, "@")
14778 len = length(field[1])
14779 for (i = 2; i < nfields; i++) {
14781 keylen = length(key)
14782 if (S_is_set[key]) {
14784 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
14785 len += length(value) + length(field[++i])
14796 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14797 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
14798 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
14801 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
14802 || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5
14803 $as_echo "$as_me: error: could not setup config files machinery" >&2;}
14804 { (exit 1); exit 1; }; }
14807 # VPATH may cause trouble with some makes, so we remove $(srcdir),
14808 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
14809 # trailing colons and then remove the whole line if VPATH becomes empty
14810 # (actually we leave an empty line to preserve line numbers).
14811 if test "x$srcdir" = x.; then
14812 ac_vpsub='/^[ ]*VPATH[ ]*=/{
14813 s/:*\$(srcdir):*/:/
14814 s/:*\${srcdir}:*/:/
14816 s/^\([^=]*=[ ]*\):*/\1/
14822 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14823 fi # test -n "$CONFIG_FILES"
14825 # Set up the scripts for CONFIG_HEADERS section.
14826 # No need to generate them if there are no CONFIG_HEADERS.
14827 # This happens for instance with `./config.status Makefile'.
14828 if test -n "$CONFIG_HEADERS"; then
14829 cat >"$tmp/defines.awk" <<\_ACAWK ||
14833 # Transform confdefs.h into an awk script `defines.awk', embedded as
14834 # here-document in config.status, that substitutes the proper values into
14835 # config.h.in to produce config.h.
14837 # Create a delimiter string that does not exist in confdefs.h, to ease
14838 # handling of long lines.
14840 for ac_last_try in false false :; do
14841 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
14842 if test -z "$ac_t"; then
14844 elif $ac_last_try; then
14845 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_HEADERS" >&5
14846 $as_echo "$as_me: error: could not make $CONFIG_HEADERS" >&2;}
14847 { (exit 1); exit 1; }; }
14849 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14853 # For the awk script, D is an array of macro values keyed by name,
14854 # likewise P contains macro parameters if any. Preserve backslash
14855 # newline sequences.
14857 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
14859 s/.\{148\}/&'"$ac_delim"'/g
14862 s/^[ ]*#[ ]*define[ ][ ]*/ /
14869 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
14871 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
14875 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
14876 D["\1"]=" \3\\\\\\n"\\/p
14878 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
14883 s/.\{148\}/&'"$ac_delim"'/g
14888 s/["\\]/\\&/g; s/^/"/; s/$/"/p
14891 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
14893 ' <confdefs.h | sed '
14894 s/'"$ac_delim"'/"\\\
14895 "/g' >>$CONFIG_STATUS || ac_write_fail=1
14897 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14898 for (key in D) D_is_set[key] = 1
14901 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
14903 split(line, arg, " ")
14904 if (arg[1] == "#") {
14908 defundef = substr(arg[1], 2)
14911 split(mac1, mac2, "(") #)
14913 prefix = substr(line, 1, index(line, defundef) - 1)
14914 if (D_is_set[macro]) {
14915 # Preserve the white space surrounding the "#".
14916 print prefix "define", macro P[macro] D[macro]
14919 # Replace #undef with comments. This is necessary, for example,
14920 # in the case of _POSIX_SOURCE, which is predefined and required
14921 # on some systems where configure will not decide to define it.
14922 if (defundef == "undef") {
14923 print "/*", prefix defundef, macro, "*/"
14931 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14932 { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5
14933 $as_echo "$as_me: error: could not setup config headers machinery" >&2;}
14934 { (exit 1); exit 1; }; }
14935 fi # test -n "$CONFIG_HEADERS"
14938 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS "
14943 :[FHLC]) ac_mode=$ac_tag; continue;;
14945 case $ac_mode$ac_tag in
14947 :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: invalid tag $ac_tag" >&5
14948 $as_echo "$as_me: error: invalid tag $ac_tag" >&2;}
14949 { (exit 1); exit 1; }; };;
14950 :[FH]-) ac_tag=-:-;;
14951 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
14968 -) ac_f="$tmp/stdin";;
14969 *) # Look for the file first in the build tree, then in the source tree
14970 # (if the path is not absolute). The absolute path cannot be DOS-style,
14971 # because $ac_f cannot contain `:'.
14975 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
14977 { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
14978 $as_echo "$as_me: error: cannot find input file: $ac_f" >&2;}
14979 { (exit 1); exit 1; }; };;
14981 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
14982 ac_file_inputs="$ac_file_inputs '$ac_f'"
14985 # Let's still pretend it is `configure' which instantiates (i.e., don't
14986 # use $as_me), people would be surprised to read:
14987 # /* config.h. Generated by config.status. */
14988 configure_input='Generated from '`
14989 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
14991 if test x"$ac_file" != x-; then
14992 configure_input="$ac_file. $configure_input"
14993 { $as_echo "$as_me:$LINENO: creating $ac_file" >&5
14994 $as_echo "$as_me: creating $ac_file" >&6;}
14996 # Neutralize special characters interpreted by sed in replacement strings.
14997 case $configure_input in #(
14998 *\&* | *\|* | *\\* )
14999 ac_sed_conf_input=`$as_echo "$configure_input" |
15000 sed 's/[\\\\&|]/\\\\&/g'`;; #(
15001 *) ac_sed_conf_input=$configure_input;;
15005 *:-:* | *:-) cat >"$tmp/stdin" \
15006 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
15007 $as_echo "$as_me: error: could not create $ac_file" >&2;}
15008 { (exit 1); exit 1; }; } ;;
15013 ac_dir=`$as_dirname -- "$ac_file" ||
15014 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15015 X"$ac_file" : 'X\(//\)[^/]' \| \
15016 X"$ac_file" : 'X\(//\)$' \| \
15017 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
15018 $as_echo X"$ac_file" |
15019 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15023 /^X\(\/\/\)[^/].*/{
15038 -*) as_dir=./$as_dir;;
15040 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
15044 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
15045 *) as_qdir=$as_dir;;
15047 as_dirs="'$as_qdir' $as_dirs"
15048 as_dir=`$as_dirname -- "$as_dir" ||
15049 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15050 X"$as_dir" : 'X\(//\)[^/]' \| \
15051 X"$as_dir" : 'X\(//\)$' \| \
15052 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
15053 $as_echo X"$as_dir" |
15054 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15058 /^X\(\/\/\)[^/].*/{
15071 test -d "$as_dir" && break
15073 test -z "$as_dirs" || eval "mkdir $as_dirs"
15074 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
15075 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
15076 { (exit 1); exit 1; }; }; }
15080 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
15082 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
15083 # A ".." for each directory in $ac_dir_suffix.
15084 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
15085 case $ac_top_builddir_sub in
15086 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
15087 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
15090 ac_abs_top_builddir=$ac_pwd
15091 ac_abs_builddir=$ac_pwd$ac_dir_suffix
15092 # for backward compatibility:
15093 ac_top_builddir=$ac_top_build_prefix
15096 .) # We are building in place.
15098 ac_top_srcdir=$ac_top_builddir_sub
15099 ac_abs_top_srcdir=$ac_pwd ;;
15100 [\\/]* | ?:[\\/]* ) # Absolute name.
15101 ac_srcdir=$srcdir$ac_dir_suffix;
15102 ac_top_srcdir=$srcdir
15103 ac_abs_top_srcdir=$srcdir ;;
15104 *) # Relative name.
15105 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
15106 ac_top_srcdir=$ac_top_build_prefix$srcdir
15107 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
15109 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
15119 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
15120 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
15124 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15125 # If the template does not know about datarootdir, expand it.
15126 # FIXME: This hack should be removed a few years after 2.60.
15127 ac_datarootdir_hack=; ac_datarootdir_seen=
15140 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
15141 *datarootdir*) ac_datarootdir_seen=yes;;
15142 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
15143 { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
15144 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
15146 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15147 ac_datarootdir_hack='
15148 s&@datadir@&$datadir&g
15149 s&@docdir@&$docdir&g
15150 s&@infodir@&$infodir&g
15151 s&@localedir@&$localedir&g
15152 s&@mandir@&$mandir&g
15153 s&\\\${datarootdir}&$datarootdir&g' ;;
15157 # Neutralize VPATH when `$srcdir' = `.'.
15158 # Shell code in configure.ac might set extrasub.
15159 # FIXME: do we really want to maintain this feature?
15160 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15161 ac_sed_extra="$ac_vpsub
15164 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15166 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
15167 s|@configure_input@|$ac_sed_conf_input|;t t
15168 s&@top_builddir@&$ac_top_builddir_sub&;t t
15169 s&@top_build_prefix@&$ac_top_build_prefix&;t t
15170 s&@srcdir@&$ac_srcdir&;t t
15171 s&@abs_srcdir@&$ac_abs_srcdir&;t t
15172 s&@top_srcdir@&$ac_top_srcdir&;t t
15173 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
15174 s&@builddir@&$ac_builddir&;t t
15175 s&@abs_builddir@&$ac_abs_builddir&;t t
15176 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
15177 s&@INSTALL@&$ac_INSTALL&;t t
15178 $ac_datarootdir_hack
15180 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
15181 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
15182 $as_echo "$as_me: error: could not create $ac_file" >&2;}
15183 { (exit 1); exit 1; }; }
15185 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
15186 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
15187 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
15188 { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15189 which seems to be undefined. Please make sure it is defined." >&5
15190 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15191 which seems to be undefined. Please make sure it is defined." >&2;}
15195 -) cat "$tmp/out" && rm -f "$tmp/out";;
15196 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
15198 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
15199 $as_echo "$as_me: error: could not create $ac_file" >&2;}
15200 { (exit 1); exit 1; }; }
15206 if test x"$ac_file" != x-; then
15208 $as_echo "/* $configure_input */" \
15209 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
15210 } >"$tmp/config.h" \
15211 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
15212 $as_echo "$as_me: error: could not create $ac_file" >&2;}
15213 { (exit 1); exit 1; }; }
15214 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
15215 { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5
15216 $as_echo "$as_me: $ac_file is unchanged" >&6;}
15219 mv "$tmp/config.h" "$ac_file" \
15220 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
15221 $as_echo "$as_me: error: could not create $ac_file" >&2;}
15222 { (exit 1); exit 1; }; }
15225 $as_echo "/* $configure_input */" \
15226 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
15227 || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5
15228 $as_echo "$as_me: error: could not create -" >&2;}
15229 { (exit 1); exit 1; }; }
15239 { (exit 0); exit 0; }
15241 chmod +x $CONFIG_STATUS
15242 ac_clean_files=$ac_clean_files_save
15244 test $ac_write_fail = 0 ||
15245 { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5
15246 $as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;}
15247 { (exit 1); exit 1; }; }
15250 # configure is writing to config.log, and then calls config.status.
15251 # config.status does its own redirection, appending to config.log.
15252 # Unfortunately, on DOS this fails, as config.log is still kept open
15253 # by configure, so config.status won't be able to write to it; its
15254 # output is simply discarded. So we exec the FD to /dev/null,
15255 # effectively closing config.log, so it can be properly (re)opened and
15256 # appended to by config.status. When coming back to configure, we
15257 # need to make the FD available again.
15258 if test "$no_create" != yes; then
15260 ac_config_status_args=
15261 test "$silent" = yes &&
15262 ac_config_status_args="$ac_config_status_args --quiet"
15264 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
15266 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
15267 # would make configure fail if this is the last instruction.
15268 $ac_cs_success || { (exit 1); exit 1; }
15270 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
15271 { $as_echo "$as_me:$LINENO: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
15272 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}