2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.63 for Concurrent Versions System (CVS) 1.12.13.
5 # Report bugs to <bug-cvs@nongnu.org>.
7 # Copyright (C) 1986, 1987, 1988, 1989, 1990, 1991, 1992, 1993, 1994, 1995,
8 # 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005
9 # Free Software Foundation, Inc.
11 # This program is free software; you can redistribute it and/or modify
12 # it under the terms of the GNU General Public License as published by
13 # the Free Software Foundation; either version 2, or (at your option)
16 # This program is distributed in the hope that it will be useful,
17 # but WITHOUT ANY WARRANTY; without even the implied warranty of
18 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19 # GNU General Public License for more details.
21 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
22 # 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
23 # This configure script is free software; the Free Software Foundation
24 # gives unlimited permission to copy, distribute and modify it.
25 ## --------------------- ##
26 ## M4sh Initialization. ##
27 ## --------------------- ##
29 # Be more Bourne compatible
30 DUALCASE
=1; export DUALCASE
# for MKS sh
31 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
34 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
35 # is contrary to our usage. Disable this feature.
36 alias -g '${1+"$@"}'='"$@"'
39 case `(set -o) 2>/dev/null` in
40 *posix
*) set -o posix
;;
49 # Avoid depending upon Character Ranges.
50 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
51 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
52 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
53 as_cr_digits
='0123456789'
54 as_cr_alnum
=$as_cr_Letters$as_cr_digits
59 # Printing a long string crashes Solaris 7 /usr/bin/printf.
60 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
61 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
62 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
63 if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
67 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
68 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
69 as_echo_n='/usr
/ucb
/echo -n'
71 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
76 expr "X$arg" : "X\\(.*\\)$as_nl";
77 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
79 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
82 as_echo_n='sh
-c $as_echo_n_body as_echo
'
85 as_echo='sh
-c $as_echo_body as_echo
'
88 # The user is always right.
89 if test "${PATH_SEPARATOR+set}" != set; then
91 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
92 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
97 # Support unset when possible.
98 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
106 # We need space, tab and new line, in precisely that order. Quoting is
107 # there to prevent editors from complaining about space-tab.
108 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
109 # splitting by setting IFS to empty value.)
112 # Find who we are. Look in the path if we contain no directory separator.
114 *[\\/]* ) as_myself=$0 ;;
115 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
119 test -z "$as_dir" && as_dir=.
120 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
126 # We did not find ourselves, most probably we were run as `sh COMMAND'
127 # in which case we are not to be found in the path.
128 if test "x$as_myself" = x
; then
131 if test ! -f "$as_myself"; then
132 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
133 { (exit 1); exit 1; }
136 # Work around bugs in pre-3.0 UWIN ksh.
137 for as_var
in ENV MAIL MAILPATH
138 do ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
150 # Required to use basename.
151 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
152 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
158 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
165 # Name of the executable.
166 as_me
=`$as_basename -- "$0" ||
167 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
168 X"$0" : 'X\(//\)$' \| \
169 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
171 sed '/^.*\/\([^/][^/]*\)\/*$/{
189 if test "x$CONFIG_SHELL" = x
; then
190 if (eval ":") 2>/dev
/null
; then
196 if test $as_have_required = yes && (eval ":
206 as_func_ret_success () {
209 as_func_ret_failure () {
214 if as_func_success; then
218 echo as_func_success failed.
221 if as_func_failure; then
223 echo as_func_failure succeeded.
226 if as_func_ret_success; then
230 echo as_func_ret_success failed.
233 if as_func_ret_failure; then
235 echo as_func_ret_failure succeeded.
238 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
242 echo positional parameters were not saved.
245 test \$exitcode = 0) || { (exit 1); exit 1; }
250 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
251 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
252 ") 2> /dev
/null
; then
256 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
257 for as_dir
in /bin
$PATH_SEPARATOR/usr
/bin
$PATH_SEPARATOR$PATH
260 test -z "$as_dir" && as_dir
=.
263 for as_base
in sh bash ksh sh5
; do
264 as_candidate_shells
="$as_candidate_shells $as_dir/$as_base"
271 for as_shell
in $as_candidate_shells $SHELL; do
272 # Try only shells that exist, to save several forks.
273 if { test -f "$as_shell" ||
test -f "$as_shell.exe"; } &&
274 { ("$as_shell") 2> /dev
/null
<<\_ASEOF
275 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
278 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
279 # is contrary to our usage. Disable this feature.
280 alias -g '${1+"$@"}'='"$@"'
283 case `(set -o) 2>/dev/null` in
284 *posix
*) set -o posix
;;
293 CONFIG_SHELL
=$as_shell
295 if { "$as_shell" 2> /dev
/null
<<\_ASEOF
296 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
299 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
300 # is contrary to our usage. Disable this feature.
301 alias -g '${1+"$@"}'='"$@"'
304 case `(set -o) 2>/dev/null` in
305 *posix
*) set -o posix
;;
321 as_func_ret_success
() {
324 as_func_ret_failure
() {
329 if as_func_success
; then
333 echo as_func_success failed.
336 if as_func_failure
; then
338 echo as_func_failure succeeded.
341 if as_func_ret_success
; then
345 echo as_func_ret_success failed.
348 if as_func_ret_failure
; then
350 echo as_func_ret_failure succeeded.
353 if ( set x
; as_func_ret_success y
&& test x
= "$1" ); then
357 echo positional parameters were not saved.
360 test $exitcode = 0) ||
{ (exit 1); exit 1; }
365 test "x$as_lineno_1" != "x$as_lineno_2" &&
366 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") ||
{ (exit 1); exit 1; }
377 if test "x$CONFIG_SHELL" != x
; then
378 for as_var
in BASH_ENV ENV
379 do ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
382 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
386 if test $as_have_required = no
; then
387 echo This
script requires a shell
more modern than all the
388 echo shells that I found on your system. Please
install a
389 echo modern shell
, or manually run the
script under such a
390 echo shell
if you
do have one.
391 { (exit 1); exit 1; }
401 (eval "as_func_return () {
410 as_func_ret_success () {
413 as_func_ret_failure () {
418 if as_func_success; then
422 echo as_func_success failed.
425 if as_func_failure; then
427 echo as_func_failure succeeded.
430 if as_func_ret_success; then
434 echo as_func_ret_success failed.
437 if as_func_ret_failure; then
439 echo as_func_ret_failure succeeded.
442 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
446 echo positional parameters were not saved.
449 test \$exitcode = 0") ||
{
450 echo No shell found that supports shell functions.
451 echo Please tell bug-autoconf@gnu.org about your system
,
452 echo including any error possibly output before this message.
453 echo This can
help us improve future autoconf versions.
454 echo Configuration will now proceed without shell functions.
461 test "x$as_lineno_1" != "x$as_lineno_2" &&
462 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" ||
{
464 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
465 # uniformly replaced by the line number. The first 'sed' inserts a
466 # line-number line after each line using $LINENO; the second 'sed'
467 # does the real work. The second script uses 'N' to pair each
468 # line-number line with the line containing $LINENO, and appends
469 # trailing '-' during substitution so that $LINENO is not a special
471 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
472 # scripts with optimization help from Paolo Bonzini. Blame Lee
473 # E. McMahon (1931-1989) for sed's syntax. :-)
485 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
489 chmod +x
"$as_me.lineno" ||
490 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
491 { (exit 1); exit 1; }; }
493 # Don't try to exec as it changes $[0], causing all sort of problems
494 # (the dirname of $[0] is not the place where we might find the
495 # original and so on. Autoconf is especially sensitive to this).
497 # Exit status is that of the last command.
502 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
508 ECHO_C
= ECHO_N
= ECHO_T
=
512 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
518 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
519 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
525 rm -f conf$$ conf$$.exe conf$$.
file
526 if test -d conf$$.dir
; then
527 rm -f conf$$.dir
/conf$$.
file
530 mkdir conf$$.dir
2>/dev
/null
532 if (echo >conf$$.
file) 2>/dev
/null
; then
533 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
535 # ... but there are two gotchas:
536 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
537 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
538 # In both cases, we have to default to `cp -p'.
539 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
541 elif ln conf$$.
file conf$$
2>/dev
/null
; then
549 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
550 rmdir conf$$.dir
2>/dev
/null
552 if mkdir
-p .
2>/dev
/null
; then
555 test -d .
/-p && rmdir .
/-p
559 if test -x / >/dev
/null
2>&1; then
562 if ls -dL / >/dev
/null
2>&1; then
569 if test -d "$1"; then
575 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
576 ???[sx]*):;;*)false;;esac;fi
580 as_executable_p
=$as_test_x
582 # Sed expression to map a string onto a valid CPP name.
583 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
585 # Sed expression to map a string onto a valid variable name.
586 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
590 exec 7<&0 </dev
/null
6>&1
593 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
594 # so uname gets run too.
595 ac_hostname
=`(hostname || uname -n) 2>/dev/null | sed 1q`
600 ac_default_prefix
=/usr
/local
602 ac_config_libobj_dir
=.
608 SHELL
=${CONFIG_SHELL-/bin/sh}
610 # Identity of this package.
611 PACKAGE_NAME
='Concurrent Versions System (CVS)'
612 PACKAGE_TARNAME
='cvs'
613 PACKAGE_VERSION
='1.12.13'
614 PACKAGE_STRING
='Concurrent Versions System (CVS) 1.12.13'
615 PACKAGE_BUGREPORT
='bug-cvs@nongnu.org'
617 ac_unique_file
="src/cvs.h"
618 # Factoring default headers for most tests.
619 ac_includes_default
="\
621 #ifdef HAVE_SYS_TYPES_H
622 # include <sys/types.h>
624 #ifdef HAVE_SYS_STAT_H
625 # include <sys/stat.h>
631 # ifdef HAVE_STDLIB_H
636 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
641 #ifdef HAVE_STRINGS_H
642 # include <strings.h>
644 #ifdef HAVE_INTTYPES_H
645 # include <inttypes.h>
656 ac_subst_vars
='LTLIBOBJS
702 MAKE_TARGETS_IN_VPATH_FALSE
703 MAKE_TARGETS_IN_VPATH_TRUE
734 MAINTAINER_MODE_FALSE
745 INSTALL_STRIP_PROGRAM
787 program_transform_name
797 ac_subst_files
='MKTEMP_SH_FUNCTION'
799 enable_option_checking
800 enable_maintainer_mode
801 enable_dependency_tracking
814 with_hardcoded_pam_service_name
820 enable_password_authenticated_client
822 enable_server_flow_control
825 enable_case_sensitivity
828 enable_lock_compatibility
830 enable_old_info_support
831 enable_config_override
833 ac_precious_vars
='build_alias
847 # Initialize some variables set by options.
849 ac_init_version
=false
850 ac_unrecognized_opts
=
852 # The variables have the same names as the options, with
853 # dashes changed to underlines.
861 program_transform_name
=s
,x
,x
,
869 # Installation directory options.
870 # These are left unexpanded so users can "make install exec_prefix=/foo"
871 # and all the variables that are supposed to be based on exec_prefix
872 # by default will actually change.
873 # Use braces instead of parens because sh, perl, etc. also accept them.
874 # (The list follows the same order as the GNU Coding Standards.)
875 bindir
='${exec_prefix}/bin'
876 sbindir
='${exec_prefix}/sbin'
877 libexecdir
='${exec_prefix}/libexec'
878 datarootdir
='${prefix}/share'
879 datadir
='${datarootdir}'
880 sysconfdir
='${prefix}/etc'
881 sharedstatedir
='${prefix}/com'
882 localstatedir
='${prefix}/var'
883 includedir
='${prefix}/include'
884 oldincludedir
='/usr/include'
885 docdir
='${datarootdir}/doc/${PACKAGE_TARNAME}'
886 infodir
='${datarootdir}/info'
891 libdir
='${exec_prefix}/lib'
892 localedir
='${datarootdir}/locale'
893 mandir
='${datarootdir}/man'
899 # If the previous option needs an argument, assign it.
900 if test -n "$ac_prev"; then
901 eval $ac_prev=\
$ac_option
907 *=*) ac_optarg
=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
911 # Accept the important Cygnus configure options, so we can diagnose typos.
913 case $ac_dashdash$ac_option in
917 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
919 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
922 -build |
--build |
--buil |
--bui |
--bu)
923 ac_prev
=build_alias
;;
924 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
925 build_alias
=$ac_optarg ;;
927 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
928 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
929 ac_prev
=cache_file
;;
930 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
931 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
932 cache_file
=$ac_optarg ;;
935 cache_file
=config.cache
;;
937 -datadir |
--datadir |
--datadi |
--datad)
939 -datadir=* |
--datadir=* |
--datadi=* |
--datad=*)
940 datadir
=$ac_optarg ;;
942 -datarootdir |
--datarootdir |
--datarootdi |
--datarootd |
--dataroot \
943 |
--dataroo |
--dataro |
--datar)
944 ac_prev
=datarootdir
;;
945 -datarootdir=* |
--datarootdir=* |
--datarootdi=* |
--datarootd=* \
946 |
--dataroot=* |
--dataroo=* |
--dataro=* |
--datar=*)
947 datarootdir
=$ac_optarg ;;
949 -disable-* |
--disable-*)
950 ac_useropt
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
951 # Reject names that are not valid shell variable names.
952 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
953 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
954 { (exit 1); exit 1; }; }
955 ac_useropt_orig
=$ac_useropt
956 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
957 case $ac_user_opts in
961 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
962 ac_unrecognized_sep
=', ';;
964 eval enable_
$ac_useropt=no
;;
966 -docdir |
--docdir |
--docdi |
--doc |
--do)
968 -docdir=* |
--docdir=* |
--docdi=* |
--doc=* |
--do=*)
971 -dvidir |
--dvidir |
--dvidi |
--dvid |
--dvi |
--dv)
973 -dvidir=* |
--dvidir=* |
--dvidi=* |
--dvid=* |
--dvi=* |
--dv=*)
976 -enable-* |
--enable-*)
977 ac_useropt
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
978 # Reject names that are not valid shell variable names.
979 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
980 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
981 { (exit 1); exit 1; }; }
982 ac_useropt_orig
=$ac_useropt
983 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
984 case $ac_user_opts in
988 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
989 ac_unrecognized_sep
=', ';;
991 eval enable_
$ac_useropt=\
$ac_optarg ;;
993 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
994 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
995 |
--exec |
--exe |
--ex)
996 ac_prev
=exec_prefix
;;
997 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
998 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
999 |
--exec=* |
--exe=* |
--ex=*)
1000 exec_prefix
=$ac_optarg ;;
1002 -gas |
--gas |
--ga |
--g)
1003 # Obsolete; use --with-gas.
1006 -help |
--help |
--hel |
--he |
-h)
1007 ac_init_help
=long
;;
1008 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
1009 ac_init_help
=recursive
;;
1010 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
1011 ac_init_help
=short
;;
1013 -host |
--host |
--hos |
--ho)
1014 ac_prev
=host_alias
;;
1015 -host=* |
--host=* |
--hos=* |
--ho=*)
1016 host_alias
=$ac_optarg ;;
1018 -htmldir |
--htmldir |
--htmldi |
--htmld |
--html |
--htm |
--ht)
1020 -htmldir=* |
--htmldir=* |
--htmldi=* |
--htmld=* |
--html=* |
--htm=* \
1022 htmldir
=$ac_optarg ;;
1024 -includedir |
--includedir |
--includedi |
--included |
--include \
1025 |
--includ |
--inclu |
--incl |
--inc)
1026 ac_prev
=includedir
;;
1027 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
1028 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
1029 includedir
=$ac_optarg ;;
1031 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
1033 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
1034 infodir
=$ac_optarg ;;
1036 -libdir |
--libdir |
--libdi |
--libd)
1038 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
1039 libdir
=$ac_optarg ;;
1041 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
1042 |
--libexe |
--libex |
--libe)
1043 ac_prev
=libexecdir
;;
1044 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
1045 |
--libexe=* |
--libex=* |
--libe=*)
1046 libexecdir
=$ac_optarg ;;
1048 -localedir |
--localedir |
--localedi |
--localed |
--locale)
1049 ac_prev
=localedir
;;
1050 -localedir=* |
--localedir=* |
--localedi=* |
--localed=* |
--locale=*)
1051 localedir
=$ac_optarg ;;
1053 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
1054 |
--localstate |
--localstat |
--localsta |
--localst |
--locals)
1055 ac_prev
=localstatedir
;;
1056 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
1057 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* |
--locals=*)
1058 localstatedir
=$ac_optarg ;;
1060 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
1062 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
1063 mandir
=$ac_optarg ;;
1065 -nfp |
--nfp |
--nf)
1066 # Obsolete; use --without-fp.
1069 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
1070 |
--no-cr |
--no-c |
-n)
1073 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
1074 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
1077 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
1078 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
1079 |
--oldin |
--oldi |
--old |
--ol |
--o)
1080 ac_prev
=oldincludedir
;;
1081 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
1082 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
1083 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
1084 oldincludedir
=$ac_optarg ;;
1086 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
1088 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
1089 prefix
=$ac_optarg ;;
1091 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
1092 |
--program-pre |
--program-pr |
--program-p)
1093 ac_prev
=program_prefix
;;
1094 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
1095 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
1096 program_prefix
=$ac_optarg ;;
1098 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
1099 |
--program-suf |
--program-su |
--program-s)
1100 ac_prev
=program_suffix
;;
1101 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
1102 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
1103 program_suffix
=$ac_optarg ;;
1105 -program-transform-name |
--program-transform-name \
1106 |
--program-transform-nam |
--program-transform-na \
1107 |
--program-transform-n |
--program-transform- \
1108 |
--program-transform |
--program-transfor \
1109 |
--program-transfo |
--program-transf \
1110 |
--program-trans |
--program-tran \
1111 |
--progr-tra |
--program-tr |
--program-t)
1112 ac_prev
=program_transform_name
;;
1113 -program-transform-name=* |
--program-transform-name=* \
1114 |
--program-transform-nam=* |
--program-transform-na=* \
1115 |
--program-transform-n=* |
--program-transform-=* \
1116 |
--program-transform=* |
--program-transfor=* \
1117 |
--program-transfo=* |
--program-transf=* \
1118 |
--program-trans=* |
--program-tran=* \
1119 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
1120 program_transform_name
=$ac_optarg ;;
1122 -pdfdir |
--pdfdir |
--pdfdi |
--pdfd |
--pdf |
--pd)
1124 -pdfdir=* |
--pdfdir=* |
--pdfdi=* |
--pdfd=* |
--pdf=* |
--pd=*)
1125 pdfdir
=$ac_optarg ;;
1127 -psdir |
--psdir |
--psdi |
--psd |
--ps)
1129 -psdir=* |
--psdir=* |
--psdi=* |
--psd=* |
--ps=*)
1132 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1133 |
-silent |
--silent |
--silen |
--sile |
--sil)
1136 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
1138 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
1140 sbindir
=$ac_optarg ;;
1142 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
1143 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
1144 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
1146 ac_prev
=sharedstatedir
;;
1147 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
1148 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
1149 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
1151 sharedstatedir
=$ac_optarg ;;
1153 -site |
--site |
--sit)
1155 -site=* |
--site=* |
--sit=*)
1158 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
1160 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
1161 srcdir
=$ac_optarg ;;
1163 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
1164 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
1165 ac_prev
=sysconfdir
;;
1166 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
1167 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
1168 sysconfdir
=$ac_optarg ;;
1170 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
1171 ac_prev
=target_alias
;;
1172 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
1173 target_alias
=$ac_optarg ;;
1175 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
1178 -version |
--version |
--versio |
--versi |
--vers |
-V)
1179 ac_init_version
=: ;;
1182 ac_useropt
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1183 # Reject names that are not valid shell variable names.
1184 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1185 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1186 { (exit 1); exit 1; }; }
1187 ac_useropt_orig
=$ac_useropt
1188 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1189 case $ac_user_opts in
1193 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1194 ac_unrecognized_sep
=', ';;
1196 eval with_
$ac_useropt=\
$ac_optarg ;;
1198 -without-* |
--without-*)
1199 ac_useropt
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1200 # Reject names that are not valid shell variable names.
1201 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1202 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1203 { (exit 1); exit 1; }; }
1204 ac_useropt_orig
=$ac_useropt
1205 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1206 case $ac_user_opts in
1210 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1211 ac_unrecognized_sep
=', ';;
1213 eval with_
$ac_useropt=no
;;
1216 # Obsolete; use --with-x.
1219 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
1220 |
--x-incl |
--x-inc |
--x-in |
--x-i)
1221 ac_prev
=x_includes
;;
1222 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
1223 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
1224 x_includes
=$ac_optarg ;;
1226 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
1227 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
1228 ac_prev
=x_libraries
;;
1229 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
1230 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
1231 x_libraries
=$ac_optarg ;;
1233 -*) { $as_echo "$as_me: error: unrecognized option: $ac_option
1234 Try \`$0 --help' for more information." >&2
1235 { (exit 1); exit 1; }; }
1239 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
1240 # Reject names that are not valid shell variable names.
1241 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev
/null
&&
1242 { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1243 { (exit 1); exit 1; }; }
1244 eval $ac_envvar=\
$ac_optarg
1245 export $ac_envvar ;;
1248 # FIXME: should be removed in autoconf 3.0.
1249 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1250 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1251 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1252 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1258 if test -n "$ac_prev"; then
1259 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
1260 { $as_echo "$as_me: error: missing argument to $ac_option" >&2
1261 { (exit 1); exit 1; }; }
1264 if test -n "$ac_unrecognized_opts"; then
1265 case $enable_option_checking in
1267 fatal
) { $as_echo "$as_me: error: unrecognized options: $ac_unrecognized_opts" >&2
1268 { (exit 1); exit 1; }; } ;;
1269 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1273 # Check all directory arguments for consistency.
1274 for ac_var
in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1275 datadir sysconfdir sharedstatedir localstatedir includedir \
1276 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1277 libdir localedir mandir
1279 eval ac_val
=\$
$ac_var
1280 # Remove trailing slashes.
1283 ac_val
=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1284 eval $ac_var=\
$ac_val;;
1286 # Be sure to have absolute directory names.
1288 [\\/$
]* | ?
:[\\/]* ) continue;;
1289 NONE |
'' ) case $ac_var in *prefix
) continue;; esac;;
1291 { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1292 { (exit 1); exit 1; }; }
1295 # There might be people who depend on the old broken behavior: `$host'
1296 # used to hold the argument of --host etc.
1297 # FIXME: To remove some day.
1300 target
=$target_alias
1302 # FIXME: To remove some day.
1303 if test "x$host_alias" != x
; then
1304 if test "x$build_alias" = x
; then
1305 cross_compiling
=maybe
1306 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1307 If a cross compiler is detected then cross compile mode will be used." >&2
1308 elif test "x$build_alias" != "x$host_alias"; then
1314 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
1316 test "$silent" = yes && exec 6>/dev
/null
1319 ac_pwd
=`pwd` && test -n "$ac_pwd" &&
1320 ac_ls_di
=`ls -di .` &&
1321 ac_pwd_ls_di
=`cd "$ac_pwd" && ls -di .` ||
1322 { $as_echo "$as_me: error: working directory cannot be determined" >&2
1323 { (exit 1); exit 1; }; }
1324 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1325 { $as_echo "$as_me: error: pwd does not report name of working directory" >&2
1326 { (exit 1); exit 1; }; }
1329 # Find the source files, if location was not specified.
1330 if test -z "$srcdir"; then
1331 ac_srcdir_defaulted
=yes
1332 # Try the directory containing this script, then the parent directory.
1333 ac_confdir
=`$as_dirname -- "$as_myself" ||
1334 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1335 X"$as_myself" : 'X\(//\)[^/]' \| \
1336 X"$as_myself" : 'X\(//\)$' \| \
1337 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1338 $as_echo X"$as_myself" |
1339 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1357 if test ! -r "$srcdir/$ac_unique_file"; then
1361 ac_srcdir_defaulted
=no
1363 if test ! -r "$srcdir/$ac_unique_file"; then
1364 test "$ac_srcdir_defaulted" = yes && srcdir
="$ac_confdir or .."
1365 { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1366 { (exit 1); exit 1; }; }
1368 ac_msg
="sources are in $srcdir, but \`cd $srcdir' does not work"
1370 cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2
1371 { (exit 1); exit 1; }; }
1373 # When building in place, set srcdir=.
1374 if test "$ac_abs_confdir" = "$ac_pwd"; then
1377 # Remove unnecessary trailing slashes from srcdir.
1378 # Double slashes in file names in object file debugging info
1379 # mess up M-x gdb in Emacs.
1381 */) srcdir
=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1383 for ac_var
in $ac_precious_vars; do
1384 eval ac_env_
${ac_var}_set=\${${ac_var}+set}
1385 eval ac_env_
${ac_var}_value
=\$
${ac_var}
1386 eval ac_cv_env_
${ac_var}_set=\${${ac_var}+set}
1387 eval ac_cv_env_
${ac_var}_value
=\$
${ac_var}
1391 # Report the --help message.
1393 if test "$ac_init_help" = "long"; then
1394 # Omit some internal or obsolete options to make the list less imposing.
1395 # This message is too long to be a string in the A/UX 3.1 sh.
1397 \`configure' configures Concurrent Versions System (CVS) 1.12.13 to adapt to many kinds of systems.
1399 Usage: $0 [OPTION]... [VAR=VALUE]...
1401 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1402 VAR=VALUE. See below for descriptions of some of the useful variables.
1404 Defaults for the options are specified in brackets.
1407 -h, --help display this help and exit
1408 --help=short display options specific to this package
1409 --help=recursive display the short help of all the included packages
1410 -V, --version display version information and exit
1411 -q, --quiet, --silent do not print \`checking...' messages
1412 --cache-file=FILE cache test results in FILE [disabled]
1413 -C, --config-cache alias for \`--cache-file=config.cache'
1414 -n, --no-create do not create output files
1415 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1417 Installation directories:
1418 --prefix=PREFIX install architecture-independent files in PREFIX
1419 [$ac_default_prefix]
1420 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1423 By default, \`make install' will install all the files in
1424 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1425 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1426 for instance \`--prefix=\$HOME'.
1428 For better control, use the options below.
1430 Fine tuning of the installation directories:
1431 --bindir=DIR user executables [EPREFIX/bin]
1432 --sbindir=DIR system admin executables [EPREFIX/sbin]
1433 --libexecdir=DIR program executables [EPREFIX/libexec]
1434 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1435 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1436 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1437 --libdir=DIR object code libraries [EPREFIX/lib]
1438 --includedir=DIR C header files [PREFIX/include]
1439 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1440 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1441 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1442 --infodir=DIR info documentation [DATAROOTDIR/info]
1443 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1444 --mandir=DIR man documentation [DATAROOTDIR/man]
1445 --docdir=DIR documentation root [DATAROOTDIR/doc/cvs]
1446 --htmldir=DIR html documentation [DOCDIR]
1447 --dvidir=DIR dvi documentation [DOCDIR]
1448 --pdfdir=DIR pdf documentation [DOCDIR]
1449 --psdir=DIR ps documentation [DOCDIR]
1455 --program-prefix=PREFIX prepend PREFIX to installed program names
1456 --program-suffix=SUFFIX append SUFFIX to installed program names
1457 --program-transform-name=PROGRAM run
sed PROGRAM on installed program names
1460 --build=BUILD configure
for building on BUILD
[guessed
]
1461 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
1465 if test -n "$ac_init_help"; then
1466 case $ac_init_help in
1467 short | recursive
) echo "Configuration of Concurrent Versions System (CVS) 1.12.13:";;
1472 --disable-option-checking ignore unrecognized
--enable/--with options
1473 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
1474 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
1475 --enable-maintainer-mode enable make rules and dependencies not useful
1476 (and sometimes confusing
) to the casual installer
1477 --disable-dependency-tracking speeds up one-time build
1478 --enable-dependency-tracking do not reject slow dependency extractors
1479 --disable-largefile omit support
for large files
1480 --disable-nls do not use Native Language Support
1481 --disable-rpath do not hardcode runtime library paths
1482 --enable-cvs-ndbm Use the NDBM library distributed with CVS rather
1483 than attempting to use a system NDBM library.
1484 Disabling this may not work.
(default
)
1485 --enable-client Include code
for running as a remote client
1487 --enable-password-authenticated-client
1488 Enable pserver as a remote access method
in the CVS
1490 --enable-server Include code
for running as a server
(default
)
1491 --enable-server-flow-control
1492 If you are working with a large remote repository
1493 and a
'cvs checkout' is swamping your network and
1494 memory
, define these to
enable flow control. You may
1495 optionally pass a low water mark
in bytes and a high
1496 water mark
in bytes
, separated by commas.
(default
1498 --enable-proxy Include code
for running as a transparent proxy
1499 server. Disabling this may produce a slight
1500 performance gain on some systems
, at the expense of
1501 write proxy support.
(default
)
1502 --enable-pam Use to
enable system authentication with PAM instead
1503 of using the simple getpwnam interface. This allows
1504 authentication
(in theory
) with any PAM module
, e.g.
1505 on systems with shadow passwords or via LDAP
1506 --enable-case-sensitivity
1507 Force CVS to expect a
case sensitive
file system.
1508 Enabling this on a
case insensitive system should
1509 have little effect on the server or client
1510 operation
, though client users may ocassionally be
1511 suprised that the CVS server appears to be
case
1512 sensitive. Disabling this
for a
case sensitive
1513 server disables server support
for case insensitive
1514 clients
, which can confuse all users of
case
1515 insensitive clients contacting the server. Disabling
1516 this
for a
case sensitive client will cause the
1517 client to ask servers to behave
case insensitively
,
1518 which could cause confusion
for users
, but also
1519 probably no real harm.
(default autoselects based on
1520 the
case sensitivity of the
file system containing
1521 the current working directory
)
1522 --enable-encryption Enable encryption support
(disabled by default
)
1523 --enable-force-editor When committing or importing files
, you must enter a
1524 log message. Normally
, you can
do this either via
1525 the
-m flag on the
command line
, the
-F flag on the
1526 command line
, or an editor will be started
for you.
1527 If you like to use logging templates
(the rcsinfo
1528 file within the
$CVSROOT/CVSROOT directory
), you
1529 might want to force people to use the editor even
if
1530 they specify a message with
-m or
-F.
1531 --enable-force-editor will cause the
-m or
-F
1532 message to be appended to the temp
file when the
1533 editor is started.
(disabled by default
)
1534 --enable-lock-compatibility
1535 Include locking code
which prevents versions of CVS
1536 earlier than
1.12.4 directly accessing the same
1537 repositiory as this executable from ignoring this
1538 executable
's promotable read locks. If only CVS
1539 versions 1.12.4 and later will be accessing your
1540 repository directly (as a server or locally), you
1541 can safely disable this option in return for fewer
1542 disk accesses and a small speed increase. Disabling
1543 this option when versions of CVS earlier than 1,12,4
1544 _will_ be accessing your repository, however, is
1545 *VERY* *VERY* *VERY* dangerous and could result in
1546 data loss. (enabled by default)
1547 --enable-rootcommit Allow the root user to commit files (disabled by
1549 --enable-old-info-format-support
1550 Enable support for the pre 1.12.1 *info scripting
1551 hook format strings. Disable this option for a
1552 smaller executable once your scripting hooks have
1553 been updated to use the new *info format strings
1555 --enable-config-override
1556 Set to a comma-seperated list of paths to
1557 directories (designated by trailing `/') and files
,
1558 specifies the path prefixes
(for directories
) and
1559 paths to files the CVS server commands will allow
1560 configuration to be
read from. Specify
1561 `--enable-config-override=no' to disable config file
1562 overrides completely and
1563 `--enable-config-override=/' or simply
1564 `--enable-config-override' to allow all paths.
1565 (Defaults to
`SYSCONFDIR/cvs.conf,SYSCONFDIR/cvs/')
1568 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1569 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1570 --without-included-regex
1571 don't compile regex; this is the default on systems
1572 with recent-enough versions of the GNU C Library
1573 (use with caution on other systems)
1574 --with-gnu-ld assume the C compiler uses GNU ld default=no
1575 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1576 --without-libiconv-prefix don't search for libiconv in includedir and libdir
1577 --with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib
1578 --without-libintl-prefix don't search for libintl in includedir and libdir
1579 --with-krb4 Kerberos 4 directory (default /usr/kerberos)
1580 --with-gssapi GSSAPI directory (default autoselects)
1581 --with-external-zlib Use the specified ZLIB library (defaults to the
1582 version distributed with the CVS source)
1583 --with-rsh The default remote shell CVS will use for :ext:
1584 transport (default ssh)
1585 --with-editor The default text editor CVS should use for log
1586 messages (default autoselects)
1587 --with-hardcoded-pam-service-name
1588 Use this to hard code a service name for PAM CVS
1589 authentication. The special name, `program_name
',
1590 will cause CVS to use whatever name it was invoked
1591 as as the service name. (defaults to `cvs')
1592 --with-tmpdir The temporary directory CVS should use as a default
1593 (default autoselects
)
1594 --with-umask Set the
umask CVS will use by default
in the
1595 repository
(default
002)
1596 --with-cvs-admin-group=GROUP
1597 The CVS admin
command is restricted to the members
1598 of this group. If this group does not exist
, all
1599 users are allowed to run CVS admin. To disable the
1600 CVS admin
command for all users
, create an empty
1601 group by specifying the
--with-cvs-admin-group=
1602 option. To disable access control
for CVS admin
, run
1603 configure with the
--without-cvs-admin-group option.
1604 (default
'cvsadmin')
1606 Some influential environment variables
:
1607 CC C compiler
command
1608 CFLAGS C compiler flags
1609 LDFLAGS linker flags
, e.g.
-L<lib dir
> if you have libraries
in a
1610 nonstandard directory
<lib dir
>
1611 LIBS libraries to pass to the linker
, e.g.
-l<library
>
1612 CPPFLAGS C
/C
++/Objective C preprocessor flags
, e.g.
-I<include dir
> if
1613 you have headers
in a nonstandard directory
<include dir
>
1615 YACC The
`Yet Another C Compiler' implementation to use. Defaults to
1616 `bison
-y'. Values other than `bison -y' will most likely
break
1618 YFLAGS YFLAGS contains the list arguments that will be passed by
1619 default to Bison. This
script will default YFLAGS to the empty
1620 string to avoid a default value of
`-d' given by some make
1622 EDITOR The text editor CVS will use by default for log messages.
1624 Use these variables to override the choices made by `configure
' or to help
1625 it to find libraries and programs with nonstandard names/locations.
1627 Report bugs to <bug-cvs@nongnu.org>.
1632 if test "$ac_init_help" = "recursive"; then
1633 # If there are subdirs, report their specific --help.
1634 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1635 test -d "$ac_dir" ||
1636 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1641 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1643 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.
[\\/]||
'`
1644 # A ".." for each directory in $ac_dir_suffix.
1645 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|
/[^
\\/]*|
/..|g
;s|
/||
'`
1646 case $ac_top_builddir_sub in
1647 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1648 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1651 ac_abs_top_builddir=$ac_pwd
1652 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1653 # for backward compatibility:
1654 ac_top_builddir=$ac_top_build_prefix
1657 .) # We are building in place.
1659 ac_top_srcdir=$ac_top_builddir_sub
1660 ac_abs_top_srcdir=$ac_pwd ;;
1661 [\\/]* | ?:[\\/]* ) # Absolute name.
1662 ac_srcdir=$srcdir$ac_dir_suffix;
1663 ac_top_srcdir=$srcdir
1664 ac_abs_top_srcdir=$srcdir ;;
1666 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1667 ac_top_srcdir=$ac_top_build_prefix$srcdir
1668 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1670 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1672 cd "$ac_dir" || { ac_status=$?; continue; }
1673 # Check for guested configure.
1674 if test -f "$ac_srcdir/configure.gnu"; then
1676 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1677 elif test -f "$ac_srcdir/configure"; then
1679 $SHELL "$ac_srcdir/configure" --help=recursive
1681 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1683 cd "$ac_pwd" || { ac_status=$?; break; }
1687 test -n "$ac_init_help" && exit $ac_status
1688 if $ac_init_version; then
1690 Concurrent Versions System (CVS) configure 1.12.13
1691 generated by GNU Autoconf 2.63
1693 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1694 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
1695 This configure script is free software; the Free Software Foundation
1696 gives unlimited permission to copy, distribute and modify it.
1698 Copyright (C) 1986, 1987, 1988, 1989, 1990, 1991, 1992, 1993, 1994, 1995,
1699 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005
1700 Free Software Foundation, Inc.
1702 This program is free software; you can redistribute it and/or modify
1703 it under the terms of the GNU General Public License as published by
1704 the Free Software Foundation; either version 2, or (at your option)
1707 This program is distributed in the hope that it will be useful,
1708 but WITHOUT ANY WARRANTY; without even the implied warranty of
1709 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
1710 GNU General Public License for more details.
1714 cat >config.log <<_ACEOF
1715 This file contains any messages produced by compilers while
1716 running configure, to aid debugging if configure makes a mistake.
1718 It was created by Concurrent Versions System (CVS) $as_me 1.12.13, which was
1719 generated by GNU Autoconf 2.63. Invocation command line was
1731 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1732 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1733 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1734 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1735 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1737 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1738 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1740 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1741 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1742 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1743 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1744 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1745 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1746 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1750 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1754 test -z "$as_dir" && as_dir=.
1755 $as_echo "PATH: $as_dir"
1771 # Keep a trace of the command line.
1772 # Strip out --no-create and --no-recursion so they do not pile up.
1773 # Strip out --silent because we don't want to record it
for future runs.
1774 # Also quote any args containing shell meta-characters.
1775 # Make two passes to allow for proper duplicate-argument suppression.
1779 ac_must_keep_next
=false
1785 -no-create |
--no-c* |
-n |
-no-recursion |
--no-r*) continue ;;
1786 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1787 |
-silent |
--silent |
--silen |
--sile |
--sil)
1790 ac_arg
=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1793 1) ac_configure_args0
="$ac_configure_args0 '$ac_arg'" ;;
1795 ac_configure_args1
="$ac_configure_args1 '$ac_arg'"
1796 if test $ac_must_keep_next = true
; then
1797 ac_must_keep_next
=false
# Got value, back to normal.
1800 *=* |
--config-cache |
-C |
-disable-* |
--disable-* \
1801 |
-enable-* |
--enable-* |
-gas |
--g* |
-nfp |
--nf* \
1802 |
-q |
-quiet |
--q* |
-silent |
--sil* |
-v |
-verb* \
1803 |
-with-* |
--with-* |
-without-* |
--without-* |
--x)
1804 case "$ac_configure_args0 " in
1805 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1808 -* ) ac_must_keep_next
=true
;;
1811 ac_configure_args
="$ac_configure_args '$ac_arg'"
1816 $as_unset ac_configure_args0 ||
test "${ac_configure_args0+set}" != set ||
{ ac_configure_args0
=; export ac_configure_args0
; }
1817 $as_unset ac_configure_args1 ||
test "${ac_configure_args1+set}" != set ||
{ ac_configure_args1
=; export ac_configure_args1
; }
1819 # When interrupted or exit'd, cleanup temporary files, and complete
1820 # config.log. We remove comments because anyway the quotes in there
1821 # would cause problems or look ugly.
1822 # WARNING: Use '\'' to represent an apostrophe within the trap.
1823 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1824 trap 'exit_status=$?
1825 # Save into config.log some information that might help in debugging.
1830 ## ---------------- ##
1831 ## Cache variables. ##
1832 ## ---------------- ##
1835 # The following way of writing the cache mishandles newlines in values,
1837 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1838 eval ac_val=\$$ac_var
1842 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
1843 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1846 _ | IFS | as_nl) ;; #(
1847 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1848 *) $as_unset $ac_var ;;
1853 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1854 *${as_nl}ac_space=\ *)
1856 "s/'\''/'\''\\\\'\'''\''/g;
1857 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1860 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1868 ## ----------------- ##
1869 ## Output variables. ##
1870 ## ----------------- ##
1873 for ac_var in $ac_subst_vars
1875 eval ac_val=\$$ac_var
1877 *\'\''*) ac_val
=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1879 $as_echo "$ac_var='\''$ac_val'\''"
1883 if test -n "$ac_subst_files"; then
1885 ## ------------------- ##
1886 ## File substitutions. ##
1887 ## ------------------- ##
1890 for ac_var
in $ac_subst_files
1892 eval ac_val
=\$
$ac_var
1894 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1896 $as_echo "$ac_var='\''$ac_val'\''"
1901 if test -s confdefs.h; then
1911 test "$ac_signal" != 0 &&
1912 $as_echo "$as_me: caught signal $ac_signal"
1913 $as_echo "$as_me: exit $exit_status"
1915 rm -f core *.core core.conftest.* &&
1916 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1919 for ac_signal
in 1 2 13 15; do
1920 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1924 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1925 rm -f -r conftest
* confdefs.h
1927 # Predefined preprocessor variables.
1929 cat >>confdefs.h
<<_ACEOF
1930 #define PACKAGE_NAME "$PACKAGE_NAME"
1934 cat >>confdefs.h
<<_ACEOF
1935 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1939 cat >>confdefs.h
<<_ACEOF
1940 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1944 cat >>confdefs.h
<<_ACEOF
1945 #define PACKAGE_STRING "$PACKAGE_STRING"
1949 cat >>confdefs.h
<<_ACEOF
1950 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1954 # Let the site file select an alternate cache file if it wants to.
1955 # Prefer an explicitly selected file to automatically selected ones.
1958 if test -n "$CONFIG_SITE"; then
1959 ac_site_file1
=$CONFIG_SITE
1960 elif test "x$prefix" != xNONE
; then
1961 ac_site_file1
=$prefix/share
/config.site
1962 ac_site_file2
=$prefix/etc
/config.site
1964 ac_site_file1
=$ac_default_prefix/share
/config.site
1965 ac_site_file2
=$ac_default_prefix/etc
/config.site
1967 for ac_site_file
in "$ac_site_file1" "$ac_site_file2"
1969 test "x$ac_site_file" = xNONE
&& continue
1970 if test -r "$ac_site_file"; then
1971 { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1972 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
1973 sed 's/^/| /' "$ac_site_file" >&5
1978 if test -r "$cache_file"; then
1979 # Some versions of bash will fail to source /dev/null (special
1980 # files actually), so we avoid doing that.
1981 if test -f "$cache_file"; then
1982 { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5
1983 $as_echo "$as_me: loading cache $cache_file" >&6;}
1985 [\\/]* | ?
:[\\/]* ) .
"$cache_file";;
1986 *) .
"./$cache_file";;
1990 { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5
1991 $as_echo "$as_me: creating cache $cache_file" >&6;}
1995 gl_func_list
="$gl_func_list fchdir"
1996 gl_header_list
="$gl_header_list unistd.h"
1997 gl_func_list
="$gl_func_list mempcpy"
1998 gl_header_list
="$gl_header_list sys/time.h"
1999 gl_func_list
="$gl_func_list isascii"
2000 gl_header_list
="$gl_header_list sys/param.h"
2001 gl_header_list
="$gl_header_list stdio_ext.h"
2002 gl_header_list
="$gl_header_list termios.h"
2003 gl_func_list
="$gl_func_list __fsetlocking"
2004 gl_func_list
="$gl_func_list tcgetattr"
2005 gl_func_list
="$gl_func_list tcsetattr"
2006 gl_func_list
="$gl_func_list gettimeofday"
2007 gl_func_list
="$gl_func_list nanotime"
2008 gl_header_list
="$gl_header_list sys/cdefs.h"
2009 gl_func_list
="$gl_func_list getlogin_r"
2010 gl_func_list
="$gl_func_list getpwnam_r"
2011 gl_header_list
="$gl_header_list wchar.h"
2012 gl_header_list
="$gl_header_list wctype.h"
2013 gl_header_list
="$gl_header_list stdint.h"
2014 gl_func_list
="$gl_func_list siginterrupt"
2015 gl_func_list
="$gl_func_list posix_memalign"
2016 gl_func_list
="$gl_func_list iswprint"
2017 gl_func_list
="$gl_func_list mbsinit"
2018 gl_header_list
="$gl_header_list locale.h"
2019 gl_func_list
="$gl_func_list isblank"
2020 gl_func_list
="$gl_func_list mbrtowc"
2021 gl_func_list
="$gl_func_list wcrtomb"
2022 gl_func_list
="$gl_func_list wcscoll"
2023 gl_func_list
="$gl_func_list mblen"
2024 gl_func_list
="$gl_func_list mbrlen"
2025 gl_func_list
="$gl_func_list tzset"
2026 gl_header_list
="$gl_header_list utime.h"
2027 # Check that the precious variables saved in the cache have kept the same
2029 ac_cache_corrupted
=false
2030 for ac_var
in $ac_precious_vars; do
2031 eval ac_old_set
=\
$ac_cv_env_${ac_var}_set
2032 eval ac_new_set
=\
$ac_env_${ac_var}_set
2033 eval ac_old_val
=\
$ac_cv_env_${ac_var}_value
2034 eval ac_new_val
=\
$ac_env_${ac_var}_value
2035 case $ac_old_set,$ac_new_set in
2037 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2038 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2039 ac_cache_corrupted
=: ;;
2041 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
2042 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2043 ac_cache_corrupted
=: ;;
2046 if test "x$ac_old_val" != "x$ac_new_val"; then
2047 # differences in whitespace do not lead to failure.
2048 ac_old_val_w
=`echo x $ac_old_val`
2049 ac_new_val_w
=`echo x $ac_new_val`
2050 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2051 { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
2052 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2053 ac_cache_corrupted
=:
2055 { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2056 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2057 eval $ac_var=\
$ac_old_val
2059 { $as_echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5
2060 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2061 { $as_echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5
2062 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2065 # Pass precious variables to config.status.
2066 if test "$ac_new_set" = set; then
2068 *\'*) ac_arg
=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2069 *) ac_arg
=$ac_var=$ac_new_val ;;
2071 case " $ac_configure_args " in
2072 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2073 *) ac_configure_args
="$ac_configure_args '$ac_arg'" ;;
2077 if $ac_cache_corrupted; then
2078 { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2079 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2080 { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
2081 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2082 { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
2083 $as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
2084 { (exit 1); exit 1; }; }
2112 ac_cpp
='$CPP $CPPFLAGS'
2113 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2114 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2115 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2120 for ac_dir
in build-aux
"$srcdir"/build-aux
; do
2121 if test -f "$ac_dir/install-sh"; then
2123 ac_install_sh
="$ac_aux_dir/install-sh -c"
2125 elif test -f "$ac_dir/install.sh"; then
2127 ac_install_sh
="$ac_aux_dir/install.sh -c"
2129 elif test -f "$ac_dir/shtool"; then
2131 ac_install_sh
="$ac_aux_dir/shtool install -c"
2135 if test -z "$ac_aux_dir"; then
2136 { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in build-aux \"$srcdir\"/build-aux" >&5
2137 $as_echo "$as_me: error: cannot find install-sh or install.sh in build-aux \"$srcdir\"/build-aux" >&2;}
2138 { (exit 1); exit 1; }; }
2141 # These three variables are undocumented and unsupported,
2142 # and are intended to be withdrawn in a future Autoconf release.
2143 # They can cause serious problems if a builder's source tree is in a directory
2144 # whose full name contains unusual characters.
2145 ac_config_guess
="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2146 ac_config_sub
="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2147 ac_configure
="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2150 am__api_version
='1.10'
2152 # Find a good install program. We prefer a C program (faster),
2153 # so one script is as good as another. But avoid the broken or
2154 # incompatible versions:
2155 # SysV /etc/install, /usr/sbin/install
2156 # SunOS /usr/etc/install
2157 # IRIX /sbin/install
2159 # AmigaOS /C/install, which installs bootblocks on floppy discs
2160 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2161 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2162 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2163 # OS/2's system install, which has a completely different semantic
2164 # ./install, which can be erroneously created by make from ./install.sh.
2165 # Reject install programs that cannot install multiple files.
2166 { $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2167 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2168 if test -z "$INSTALL"; then
2169 if test "${ac_cv_path_install+set}" = set; then
2170 $as_echo_n "(cached) " >&6
2172 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2176 test -z "$as_dir" && as_dir
=.
2177 # Account for people who put trailing slashes in PATH elements.
2179 .
/ | .
// |
/cC
/* | \
2180 /etc
/* |
/usr
/sbin
/* |
/usr
/etc
/* |
/sbin
/* |
/usr
/afsws
/bin
/* | \
2181 ?
:\\/os2
\\/install\\/* | ?
:\\/OS2
\\/INSTALL
\\/* | \
2184 # OSF1 and SCO ODT 3.0 have their own names for install.
2185 # Don't use installbsd from OSF since it installs stuff as root
2187 for ac_prog
in ginstall scoinst
install; do
2188 for ac_exec_ext
in '' $ac_executable_extensions; do
2189 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2190 if test $ac_prog = install &&
2191 grep dspmsg
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
2192 # AIX install. It has an incompatible calling convention.
2194 elif test $ac_prog = install &&
2195 grep pwplus
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
2196 # program-specific install script used by HP pwplus--don't use.
2199 rm -rf conftest.one conftest.two conftest.dir
2200 echo one
> conftest.one
2201 echo two
> conftest.two
2203 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two
"`pwd`/conftest.dir" &&
2204 test -s conftest.one
&& test -s conftest.two
&&
2205 test -s conftest.dir
/conftest.one
&&
2206 test -s conftest.dir
/conftest.two
2208 ac_cv_path_install
="$as_dir/$ac_prog$ac_exec_ext -c"
2221 rm -rf conftest.one conftest.two conftest.dir
2224 if test "${ac_cv_path_install+set}" = set; then
2225 INSTALL
=$ac_cv_path_install
2227 # As a last resort, use the slow shell script. Don't cache a
2228 # value for INSTALL within a source directory, because that will
2229 # break other packages using the cache if that directory is
2230 # removed, or if the value is a relative name.
2231 INSTALL
=$ac_install_sh
2234 { $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
2235 $as_echo "$INSTALL" >&6; }
2237 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2238 # It thinks the first close brace ends the variable substitution.
2239 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
2241 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL}'
2243 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
2245 { $as_echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2246 $as_echo_n "checking whether build environment is sane... " >&6; }
2249 echo timestamp
> conftest.
file
2250 # Do `set' in a subshell so we don't clobber the current shell's
2251 # arguments. Must try -L first in case configure is actually a
2252 # symlink; some systems play weird games with the mod time of symlinks
2253 # (eg FreeBSD returns the mod time of the symlink's containing
2256 set X
`ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2257 if test "$*" = "X"; then
2259 set X
`ls -t $srcdir/configure conftest.file`
2262 if test "$*" != "X $srcdir/configure conftest.file" \
2263 && test "$*" != "X conftest.file $srcdir/configure"; then
2265 # If neither matched, then we have a broken ls. This can happen
2266 # if, for instance, CONFIG_SHELL is bash and it inherits a
2267 # broken ls alias from the environment. This has actually
2268 # happened. Such a system could not be considered "sane".
2269 { { $as_echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
2270 alias in your environment" >&5
2271 $as_echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
2272 alias in your environment" >&2;}
2273 { (exit 1); exit 1; }; }
2276 test "$2" = conftest.
file
2282 { { $as_echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2283 Check your system clock" >&5
2284 $as_echo "$as_me: error: newly created file is older than distributed files!
2285 Check your system clock" >&2;}
2286 { (exit 1); exit 1; }; }
2288 { $as_echo "$as_me:$LINENO: result: yes" >&5
2289 $as_echo "yes" >&6; }
2290 test "$program_prefix" != NONE
&&
2291 program_transform_name
="s&^&$program_prefix&;$program_transform_name"
2292 # Use a double $ so make ignores it.
2293 test "$program_suffix" != NONE
&&
2294 program_transform_name
="s&\$&$program_suffix&;$program_transform_name"
2295 # Double any \ or $.
2296 # By default was `s,x,x', remove it if useless.
2297 ac_script
='s/[\\$]/&&/g;s/;s,x,x,$//'
2298 program_transform_name
=`$as_echo "$program_transform_name" | sed "$ac_script"`
2300 # expand $ac_aux_dir to an absolute path
2301 am_aux_dir
=`cd $ac_aux_dir && pwd`
2303 test x
"${MISSING+set}" = xset || MISSING
="\${SHELL} $am_aux_dir/missing"
2304 # Use eval to expand $SHELL
2305 if eval "$MISSING --run true"; then
2306 am_missing_run
="$MISSING --run "
2309 { $as_echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2310 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2313 { $as_echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
2314 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2315 if test -z "$MKDIR_P"; then
2316 if test "${ac_cv_path_mkdir+set}" = set; then
2317 $as_echo_n "(cached) " >&6
2319 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2320 for as_dir
in $PATH$PATH_SEPARATOR/opt
/sfw
/bin
2323 test -z "$as_dir" && as_dir
=.
2324 for ac_prog
in mkdir gmkdir
; do
2325 for ac_exec_ext
in '' $ac_executable_extensions; do
2326 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } ||
continue
2327 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2328 'mkdir (GNU coreutils) '* | \
2329 'mkdir (coreutils) '* | \
2330 'mkdir (fileutils) '4.1*)
2331 ac_cv_path_mkdir
=$as_dir/$ac_prog$ac_exec_ext
2341 if test "${ac_cv_path_mkdir+set}" = set; then
2342 MKDIR_P
="$ac_cv_path_mkdir -p"
2344 # As a last resort, use the slow shell script. Don't cache a
2345 # value for MKDIR_P within a source directory, because that will
2346 # break other packages using the cache if that directory is
2347 # removed, or if the value is a relative name.
2348 test -d .
/--version && rmdir .
/--version
2349 MKDIR_P
="$ac_install_sh -d"
2352 { $as_echo "$as_me:$LINENO: result: $MKDIR_P" >&5
2353 $as_echo "$MKDIR_P" >&6; }
2357 [\\/$
]* | ?
:[\\/]*) ;;
2358 */*) mkdir_p
="\$(top_builddir)/$mkdir_p" ;;
2361 for ac_prog
in gawk mawk nawk
awk
2363 # Extract the first word of "$ac_prog", so it can be a program name with args.
2364 set dummy
$ac_prog; ac_word
=$2
2365 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2366 $as_echo_n "checking for $ac_word... " >&6; }
2367 if test "${ac_cv_prog_AWK+set}" = set; then
2368 $as_echo_n "(cached) " >&6
2370 if test -n "$AWK"; then
2371 ac_cv_prog_AWK
="$AWK" # Let the user override the test.
2373 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2377 test -z "$as_dir" && as_dir
=.
2378 for ac_exec_ext
in '' $ac_executable_extensions; do
2379 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2380 ac_cv_prog_AWK
="$ac_prog"
2381 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2391 if test -n "$AWK"; then
2392 { $as_echo "$as_me:$LINENO: result: $AWK" >&5
2393 $as_echo "$AWK" >&6; }
2395 { $as_echo "$as_me:$LINENO: result: no" >&5
2396 $as_echo "no" >&6; }
2400 test -n "$AWK" && break
2403 { $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2404 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2406 ac_make
=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2407 if { as_var
=ac_cv_prog_make_
${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2408 $as_echo_n "(cached) " >&6
2410 cat >conftest.
make <<\_ACEOF
2413 @
echo '@@@%%%=$(MAKE)=@@@%%%'
2415 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2416 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2418 eval ac_cv_prog_make_
${ac_make}_set
=yes;;
2420 eval ac_cv_prog_make_
${ac_make}_set
=no
;;
2424 if eval test \
$ac_cv_prog_make_${ac_make}_set
= yes; then
2425 { $as_echo "$as_me:$LINENO: result: yes" >&5
2426 $as_echo "yes" >&6; }
2429 { $as_echo "$as_me:$LINENO: result: no" >&5
2430 $as_echo "no" >&6; }
2431 SET_MAKE
="MAKE=${MAKE-make}"
2434 rm -rf .tst
2>/dev
/null
2435 mkdir .tst
2>/dev
/null
2436 if test -d .tst
; then
2441 rmdir .tst
2>/dev
/null
2443 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2444 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2445 # is not polluted with repeated "-I."
2446 am__isrc
=' -I$(srcdir)'
2447 # test to see if srcdir already configured
2448 if test -f $srcdir/config.status
; then
2449 { { $as_echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2450 $as_echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2451 { (exit 1); exit 1; }; }
2455 # test whether we have cygpath
2456 if test -z "$CYGPATH_W"; then
2457 if (cygpath
--version) >/dev
/null
2>/dev
/null
; then
2458 CYGPATH_W
='cygpath -w'
2465 # Define the identity of the package.
2470 # Some tools Automake needs.
2472 ACLOCAL
=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2475 AUTOCONF
=${AUTOCONF-"${am_missing_run}autoconf"}
2478 AUTOMAKE
=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2481 AUTOHEADER
=${AUTOHEADER-"${am_missing_run}autoheader"}
2484 MAKEINFO
=${MAKEINFO-"${am_missing_run}makeinfo"}
2486 install_sh
=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"}
2488 # Installed binaries are usually stripped using `strip' when the user
2489 # run `make install-strip'. However `strip' might not be the right
2490 # tool to use in cross-compilation environments, therefore Automake
2491 # will honor the `STRIP' environment variable to overrule this program.
2492 if test "$cross_compiling" != no
; then
2493 if test -n "$ac_tool_prefix"; then
2494 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2495 set dummy
${ac_tool_prefix}strip
; ac_word
=$2
2496 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2497 $as_echo_n "checking for $ac_word... " >&6; }
2498 if test "${ac_cv_prog_STRIP+set}" = set; then
2499 $as_echo_n "(cached) " >&6
2501 if test -n "$STRIP"; then
2502 ac_cv_prog_STRIP
="$STRIP" # Let the user override the test.
2504 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2508 test -z "$as_dir" && as_dir
=.
2509 for ac_exec_ext
in '' $ac_executable_extensions; do
2510 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2511 ac_cv_prog_STRIP
="${ac_tool_prefix}strip"
2512 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2521 STRIP
=$ac_cv_prog_STRIP
2522 if test -n "$STRIP"; then
2523 { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
2524 $as_echo "$STRIP" >&6; }
2526 { $as_echo "$as_me:$LINENO: result: no" >&5
2527 $as_echo "no" >&6; }
2532 if test -z "$ac_cv_prog_STRIP"; then
2534 # Extract the first word of "strip", so it can be a program name with args.
2535 set dummy strip
; ac_word
=$2
2536 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2537 $as_echo_n "checking for $ac_word... " >&6; }
2538 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2539 $as_echo_n "(cached) " >&6
2541 if test -n "$ac_ct_STRIP"; then
2542 ac_cv_prog_ac_ct_STRIP
="$ac_ct_STRIP" # Let the user override the test.
2544 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2548 test -z "$as_dir" && as_dir
=.
2549 for ac_exec_ext
in '' $ac_executable_extensions; do
2550 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2551 ac_cv_prog_ac_ct_STRIP
="strip"
2552 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2561 ac_ct_STRIP
=$ac_cv_prog_ac_ct_STRIP
2562 if test -n "$ac_ct_STRIP"; then
2563 { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2564 $as_echo "$ac_ct_STRIP" >&6; }
2566 { $as_echo "$as_me:$LINENO: result: no" >&5
2567 $as_echo "no" >&6; }
2570 if test "x$ac_ct_STRIP" = x
; then
2573 case $cross_compiling:$ac_tool_warned in
2575 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2576 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2577 ac_tool_warned
=yes ;;
2582 STRIP
="$ac_cv_prog_STRIP"
2586 INSTALL_STRIP_PROGRAM
="\$(install_sh) -c -s"
2588 # We need awk for the "check" target. The system "awk" is bad on
2590 # Always define AMTAR for backward compatibility.
2592 AMTAR
=${AMTAR-"${am_missing_run}tar"}
2594 am__tar
='${AMTAR} chof - "$$tardir"'; am__untar
='${AMTAR} xf -'
2603 if test "x$prefix" = xNONE
; then
2604 $as_echo_n "checking for prefix by " >&6
2605 # Extract the first word of "cvs", so it can be a program name with args.
2606 set dummy cvs
; ac_word
=$2
2607 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2608 $as_echo_n "checking for $ac_word... " >&6; }
2609 if test "${ac_cv_path_ac_prefix_program+set}" = set; then
2610 $as_echo_n "(cached) " >&6
2612 case $ac_prefix_program in
2614 ac_cv_path_ac_prefix_program
="$ac_prefix_program" # Let the user override the test with a path.
2617 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2621 test -z "$as_dir" && as_dir
=.
2622 for ac_exec_ext
in '' $ac_executable_extensions; do
2623 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2624 ac_cv_path_ac_prefix_program
="$as_dir/$ac_word$ac_exec_ext"
2625 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2635 ac_prefix_program
=$ac_cv_path_ac_prefix_program
2636 if test -n "$ac_prefix_program"; then
2637 { $as_echo "$as_me:$LINENO: result: $ac_prefix_program" >&5
2638 $as_echo "$ac_prefix_program" >&6; }
2640 { $as_echo "$as_me:$LINENO: result: no" >&5
2641 $as_echo "no" >&6; }
2645 if test -n "$ac_prefix_program"; then
2646 prefix
=`$as_dirname -- "$ac_prefix_program" ||
2647 $as_expr X"$ac_prefix_program" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
2648 X"$ac_prefix_program" : 'X\(//\)[^/]' \| \
2649 X"$ac_prefix_program" : 'X\(//\)$' \| \
2650 X"$ac_prefix_program" : 'X\(/\)' \| . 2>/dev/null ||
2651 $as_echo X"$ac_prefix_program" |
2652 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
2669 prefix
=`$as_dirname -- "$prefix" ||
2670 $as_expr X"$prefix" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
2671 X"$prefix" : 'X\(//\)[^/]' \| \
2672 X"$prefix" : 'X\(//\)$' \| \
2673 X"$prefix" : 'X\(/\)' \| . 2>/dev/null ||
2674 $as_echo X"$prefix" |
2675 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
2695 ac_config_headers
="$ac_config_headers config.h"
2697 { $as_echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
2698 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2699 # Check whether --enable-maintainer-mode was given.
2700 if test "${enable_maintainer_mode+set}" = set; then
2701 enableval
=$enable_maintainer_mode; USE_MAINTAINER_MODE
=$enableval
2703 USE_MAINTAINER_MODE
=no
2706 { $as_echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
2707 $as_echo "$USE_MAINTAINER_MODE" >&6; }
2708 if test $USE_MAINTAINER_MODE = yes; then
2709 MAINTAINER_MODE_TRUE
=
2710 MAINTAINER_MODE_FALSE
='#'
2712 MAINTAINER_MODE_TRUE
='#'
2713 MAINTAINER_MODE_FALSE
=
2716 MAINT
=$MAINTAINER_MODE_TRUE
2720 DEPDIR
="${am__leading_dot}deps"
2722 ac_config_commands
="$ac_config_commands depfiles"
2725 am_make
=${MAKE-make}
2726 cat > confinc
<< 'END'
2731 # If we don't find an include directive, just comment out the code.
2732 { $as_echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2733 $as_echo_n "checking for style of include used by $am_make... " >&6; }
2737 # First try GNU make style include.
2738 echo "include confinc" > confmf
2739 # We grep out `Entering directory' and `Leaving directory'
2740 # messages which can occur if `w' ends up in MAKEFLAGS.
2741 # In particular we don't look at `^make:' because GNU make might
2742 # be invoked under some other name (usually "gmake"), in which
2743 # case it prints its new name instead of `make'.
2744 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2749 # Now try BSD make style include.
2750 if test "$am__include" = "#"; then
2751 echo '.include "confinc"' > confmf
2752 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2753 am__include
=.include
2760 { $as_echo "$as_me:$LINENO: result: $_am_result" >&5
2761 $as_echo "$_am_result" >&6; }
2762 rm -f confinc confmf
2764 # Check whether --enable-dependency-tracking was given.
2765 if test "${enable_dependency_tracking+set}" = set; then
2766 enableval
=$enable_dependency_tracking;
2769 if test "x$enable_dependency_tracking" != xno
; then
2770 am_depcomp
="$ac_aux_dir/depcomp"
2773 if test "x$enable_dependency_tracking" != xno; then
2783 ac_cpp
='$CPP $CPPFLAGS'
2784 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2785 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2786 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2787 if test -n "$ac_tool_prefix"; then
2788 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2789 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
2790 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2791 $as_echo_n "checking for $ac_word... " >&6; }
2792 if test "${ac_cv_prog_CC+set}" = set; then
2793 $as_echo_n "(cached) " >&6
2795 if test -n "$CC"; then
2796 ac_cv_prog_CC
="$CC" # Let the user override the test.
2798 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2802 test -z "$as_dir" && as_dir
=.
2803 for ac_exec_ext
in '' $ac_executable_extensions; do
2804 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2805 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
2806 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2816 if test -n "$CC"; then
2817 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2818 $as_echo "$CC" >&6; }
2820 { $as_echo "$as_me:$LINENO: result: no" >&5
2821 $as_echo "no" >&6; }
2826 if test -z "$ac_cv_prog_CC"; then
2828 # Extract the first word of "gcc", so it can be a program name with args.
2829 set dummy gcc
; ac_word
=$2
2830 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2831 $as_echo_n "checking for $ac_word... " >&6; }
2832 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2833 $as_echo_n "(cached) " >&6
2835 if test -n "$ac_ct_CC"; then
2836 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
2838 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2842 test -z "$as_dir" && as_dir
=.
2843 for ac_exec_ext
in '' $ac_executable_extensions; do
2844 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2845 ac_cv_prog_ac_ct_CC
="gcc"
2846 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2855 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
2856 if test -n "$ac_ct_CC"; then
2857 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2858 $as_echo "$ac_ct_CC" >&6; }
2860 { $as_echo "$as_me:$LINENO: result: no" >&5
2861 $as_echo "no" >&6; }
2864 if test "x$ac_ct_CC" = x
; then
2867 case $cross_compiling:$ac_tool_warned in
2869 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2870 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2871 ac_tool_warned
=yes ;;
2879 if test -z "$CC"; then
2880 if test -n "$ac_tool_prefix"; then
2881 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2882 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
2883 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2884 $as_echo_n "checking for $ac_word... " >&6; }
2885 if test "${ac_cv_prog_CC+set}" = set; then
2886 $as_echo_n "(cached) " >&6
2888 if test -n "$CC"; then
2889 ac_cv_prog_CC
="$CC" # Let the user override the test.
2891 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2895 test -z "$as_dir" && as_dir
=.
2896 for ac_exec_ext
in '' $ac_executable_extensions; do
2897 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2898 ac_cv_prog_CC
="${ac_tool_prefix}cc"
2899 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2909 if test -n "$CC"; then
2910 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2911 $as_echo "$CC" >&6; }
2913 { $as_echo "$as_me:$LINENO: result: no" >&5
2914 $as_echo "no" >&6; }
2920 if test -z "$CC"; then
2921 # Extract the first word of "cc", so it can be a program name with args.
2922 set dummy cc
; ac_word
=$2
2923 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2924 $as_echo_n "checking for $ac_word... " >&6; }
2925 if test "${ac_cv_prog_CC+set}" = set; then
2926 $as_echo_n "(cached) " >&6
2928 if test -n "$CC"; then
2929 ac_cv_prog_CC
="$CC" # Let the user override the test.
2932 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2936 test -z "$as_dir" && as_dir
=.
2937 for ac_exec_ext
in '' $ac_executable_extensions; do
2938 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2939 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2940 ac_prog_rejected
=yes
2944 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2951 if test $ac_prog_rejected = yes; then
2952 # We found a bogon in the path, so make sure we never use it.
2953 set dummy
$ac_cv_prog_CC
2955 if test $# != 0; then
2956 # We chose a different compiler from the bogus one.
2957 # However, it has the same basename, so the bogon will be chosen
2958 # first if we set CC to just the basename; use the full file name.
2960 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
2966 if test -n "$CC"; then
2967 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2968 $as_echo "$CC" >&6; }
2970 { $as_echo "$as_me:$LINENO: result: no" >&5
2971 $as_echo "no" >&6; }
2976 if test -z "$CC"; then
2977 if test -n "$ac_tool_prefix"; then
2978 for ac_prog
in cl.exe
2980 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2981 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
2982 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2983 $as_echo_n "checking for $ac_word... " >&6; }
2984 if test "${ac_cv_prog_CC+set}" = set; then
2985 $as_echo_n "(cached) " >&6
2987 if test -n "$CC"; then
2988 ac_cv_prog_CC
="$CC" # Let the user override the test.
2990 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2994 test -z "$as_dir" && as_dir
=.
2995 for ac_exec_ext
in '' $ac_executable_extensions; do
2996 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2997 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
2998 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3008 if test -n "$CC"; then
3009 { $as_echo "$as_me:$LINENO: result: $CC" >&5
3010 $as_echo "$CC" >&6; }
3012 { $as_echo "$as_me:$LINENO: result: no" >&5
3013 $as_echo "no" >&6; }
3017 test -n "$CC" && break
3020 if test -z "$CC"; then
3022 for ac_prog
in cl.exe
3024 # Extract the first word of "$ac_prog", so it can be a program name with args.
3025 set dummy
$ac_prog; ac_word
=$2
3026 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3027 $as_echo_n "checking for $ac_word... " >&6; }
3028 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3029 $as_echo_n "(cached) " >&6
3031 if test -n "$ac_ct_CC"; then
3032 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
3034 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3038 test -z "$as_dir" && as_dir
=.
3039 for ac_exec_ext
in '' $ac_executable_extensions; do
3040 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3041 ac_cv_prog_ac_ct_CC
="$ac_prog"
3042 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3051 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
3052 if test -n "$ac_ct_CC"; then
3053 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3054 $as_echo "$ac_ct_CC" >&6; }
3056 { $as_echo "$as_me:$LINENO: result: no" >&5
3057 $as_echo "no" >&6; }
3061 test -n "$ac_ct_CC" && break
3064 if test "x$ac_ct_CC" = x
; then
3067 case $cross_compiling:$ac_tool_warned in
3069 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
3070 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3071 ac_tool_warned
=yes ;;
3080 test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3081 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3082 { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3083 See \`config.log' for more details." >&5
3084 $as_echo "$as_me: error: no acceptable C compiler found in \$PATH
3085 See \`config.log' for more details." >&2;}
3086 { (exit 1); exit 1; }; }; }
3088 # Provide some information about the compiler.
3089 $as_echo "$as_me:$LINENO: checking for C compiler version" >&5
3092 { (ac_try
="$ac_compiler --version >&5"
3094 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3095 *) ac_try_echo=$ac_try;;
3097 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3098 $as_echo "$ac_try_echo") >&5
3099 (eval "$ac_compiler --version >&5") 2>&5
3101 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3102 (exit $ac_status); }
3103 { (ac_try="$ac_compiler -v >&5"
3105 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3106 *) ac_try_echo
=$ac_try;;
3108 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
3109 $as_echo "$ac_try_echo") >&5
3110 (eval "$ac_compiler -v >&5") 2>&5
3112 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3113 (exit $ac_status); }
3114 { (ac_try
="$ac_compiler -V >&5"
3116 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3117 *) ac_try_echo=$ac_try;;
3119 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3120 $as_echo "$ac_try_echo") >&5
3121 (eval "$ac_compiler -V >&5") 2>&5
3123 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3124 (exit $ac_status); }
3126 cat >conftest.$ac_ext <<_ACEOF
3129 cat confdefs.h >>conftest.$ac_ext
3130 cat >>conftest.$ac_ext <<_ACEOF
3131 /* end confdefs.h. */
3141 ac_clean_files_save=$ac_clean_files
3142 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3143 # Try to create an executable without -o first, disregard a.out.
3144 # It will help us diagnose broken compilers, and finding out an intuition
3146 { $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3147 $as_echo_n "checking for C compiler default output file name... " >&6; }
3148 ac_link_default=`$as_echo "$ac_link" |
sed 's/ -o *conftest[^ ]*//'`
3150 # The possible output files:
3151 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3154 for ac_file in $ac_files
3157 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3158 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3163 if { (ac_try="$ac_link_default"
3165 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3166 *) ac_try_echo
=$ac_try;;
3168 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
3169 $as_echo "$ac_try_echo") >&5
3170 (eval "$ac_link_default") 2>&5
3172 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3173 (exit $ac_status); }; then
3174 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3175 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3176 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3177 # so that the user can short-circuit this test for compilers unknown to
3179 for ac_file
in $ac_files ''
3181 test -f "$ac_file" ||
continue
3183 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
)
3186 # We found the default executable, but exeext='' is most
3190 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no
;
3192 ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3194 # We set ac_cv_exeext here because the later test for it is not
3195 # safe: cross compilers may not add the suffix if given an `-o'
3196 # argument, so we may need to know it at that point already.
3197 # Even if this section looks crufty: it has the advantage of
3204 test "$ac_cv_exeext" = no
&& ac_cv_exeext
=
3210 { $as_echo "$as_me:$LINENO: result: $ac_file" >&5
3211 $as_echo "$ac_file" >&6; }
3212 if test -z "$ac_file"; then
3213 $as_echo "$as_me: failed program was:" >&5
3214 sed 's/^/| /' conftest.
$ac_ext >&5
3216 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3217 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3218 { { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables
3219 See \`config.log' for more details." >&5
3220 $as_echo "$as_me: error: C compiler cannot create executables
3221 See \`config.log' for more details." >&2;}
3222 { (exit 77); exit 77; }; }; }
3225 ac_exeext
=$ac_cv_exeext
3227 # Check that the compiler produces executables we can run. If not, either
3228 # the compiler is broken, or we cross compile.
3229 { $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3230 $as_echo_n "checking whether the C compiler works... " >&6; }
3231 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3232 # If not cross compiling, check that we can run a simple program.
3233 if test "$cross_compiling" != yes; then
3234 if { ac_try
='./$ac_file'
3235 { (case "(($ac_try" in
3236 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3237 *) ac_try_echo=$ac_try;;
3239 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3240 $as_echo "$ac_try_echo") >&5
3241 (eval "$ac_try") 2>&5
3243 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3244 (exit $ac_status); }; }; then
3247 if test "$cross_compiling" = maybe; then
3250 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3251 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3252 { { $as_echo "$as_me:$LINENO: error
: cannot run C compiled programs.
3253 If you meant to cross compile
, use \
`--host'.
3254 See \`config.log
' for more details." >&5
3255 $as_echo "$as_me: error: cannot run C compiled programs.
3256 If you meant to cross compile, use \`--host'.
3257 See \
`config.log' for more details." >&2;}
3258 { (exit 1); exit 1; }; }; }
3262 { $as_echo "$as_me:$LINENO: result: yes" >&5
3263 $as_echo "yes" >&6; }
3265 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3266 ac_clean_files=$ac_clean_files_save
3267 # Check that the compiler produces executables we can run. If not, either
3268 # the compiler is broken, or we cross compile.
3269 { $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3270 $as_echo_n "checking whether we are cross compiling... " >&6; }
3271 { $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5
3272 $as_echo "$cross_compiling" >&6; }
3274 { $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5
3275 $as_echo_n "checking for suffix of executables... " >&6; }
3276 if { (ac_try="$ac_link"
3278 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3279 *) ac_try_echo
=$ac_try;;
3281 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
3282 $as_echo "$ac_try_echo") >&5
3283 (eval "$ac_link") 2>&5
3285 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3286 (exit $ac_status); }; then
3287 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3288 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3289 # work properly (i.e., refer to `conftest.exe'), while it won't with
3291 for ac_file
in conftest.exe conftest conftest.
*; do
3292 test -f "$ac_file" ||
continue
3294 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
) ;;
3295 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3301 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3302 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3303 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3304 See \`config.log' for more details." >&5
3305 $as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3306 See \`config.log' for more details." >&2;}
3307 { (exit 1); exit 1; }; }; }
3310 rm -f conftest
$ac_cv_exeext
3311 { $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3312 $as_echo "$ac_cv_exeext" >&6; }
3314 rm -f conftest.
$ac_ext
3315 EXEEXT
=$ac_cv_exeext
3317 { $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5
3318 $as_echo_n "checking for suffix of object files... " >&6; }
3319 if test "${ac_cv_objext+set}" = set; then
3320 $as_echo_n "(cached) " >&6
3322 cat >conftest.
$ac_ext <<_ACEOF
3325 cat confdefs.h
>>conftest.
$ac_ext
3326 cat >>conftest.
$ac_ext <<_ACEOF
3327 /* end confdefs.h. */
3337 rm -f conftest.o conftest.obj
3338 if { (ac_try
="$ac_compile"
3340 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3341 *) ac_try_echo=$ac_try;;
3343 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3344 $as_echo "$ac_try_echo") >&5
3345 (eval "$ac_compile") 2>&5
3347 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3348 (exit $ac_status); }; then
3349 for ac_file in conftest.o conftest.obj conftest.*; do
3350 test -f "$ac_file" || continue;
3352 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3353 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3358 $as_echo "$as_me: failed program was:" >&5
3359 sed 's/^/| /' conftest.$ac_ext >&5
3361 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3362 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3363 { { $as_echo "$as_me:$LINENO: error
: cannot compute suffix of object files
: cannot compile
3364 See \
`config.log' for more details." >&5
3365 $as_echo "$as_me: error: cannot compute suffix of object files: cannot compile
3366 See \`config.log
' for more details." >&2;}
3367 { (exit 1); exit 1; }; }; }
3370 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3372 { $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3373 $as_echo "$ac_cv_objext" >&6; }
3374 OBJEXT=$ac_cv_objext
3376 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3377 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3378 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3379 $as_echo_n "(cached) " >&6
3381 cat >conftest.$ac_ext <<_ACEOF
3384 cat confdefs.h >>conftest.$ac_ext
3385 cat >>conftest.$ac_ext <<_ACEOF
3386 /* end confdefs.h. */
3399 rm -f conftest.$ac_objext
3400 if { (ac_try="$ac_compile"
3402 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3403 *) ac_try_echo=$ac_try;;
3405 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3406 $as_echo "$ac_try_echo") >&5
3407 (eval "$ac_compile") 2>conftest.er1
3409 grep -v '^
*+' conftest.er1 >conftest.err
3411 cat conftest.err >&5
3412 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3413 (exit $ac_status); } && {
3414 test -z "$ac_c_werror_flag" ||
3415 test ! -s conftest.err
3416 } && test -s conftest.$ac_objext; then
3419 $as_echo "$as_me: failed program was:" >&5
3420 sed 's
/^
/|
/' conftest.$ac_ext >&5
3425 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3426 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3429 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3430 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3431 if test $ac_compiler_gnu = yes; then
3436 ac_test_CFLAGS=${CFLAGS+set}
3437 ac_save_CFLAGS=$CFLAGS
3438 { $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3439 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3440 if test "${ac_cv_prog_cc_g+set}" = set; then
3441 $as_echo_n "(cached) " >&6
3443 ac_save_c_werror_flag=$ac_c_werror_flag
3444 ac_c_werror_flag=yes
3447 cat >conftest.$ac_ext <<_ACEOF
3450 cat confdefs.h >>conftest.$ac_ext
3451 cat >>conftest.$ac_ext <<_ACEOF
3452 /* end confdefs.h. */
3462 rm -f conftest.$ac_objext
3463 if { (ac_try="$ac_compile"
3465 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3466 *) ac_try_echo=$ac_try;;
3468 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3469 $as_echo "$ac_try_echo") >&5
3470 (eval "$ac_compile") 2>conftest.er1
3472 grep -v '^
*+' conftest.er1 >conftest.err
3474 cat conftest.err >&5
3475 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3476 (exit $ac_status); } && {
3477 test -z "$ac_c_werror_flag" ||
3478 test ! -s conftest.err
3479 } && test -s conftest.$ac_objext; then
3482 $as_echo "$as_me: failed program was:" >&5
3483 sed 's
/^
/|
/' conftest.$ac_ext >&5
3486 cat >conftest.$ac_ext <<_ACEOF
3489 cat confdefs.h >>conftest.$ac_ext
3490 cat >>conftest.$ac_ext <<_ACEOF
3491 /* end confdefs.h. */
3501 rm -f conftest.$ac_objext
3502 if { (ac_try="$ac_compile"
3504 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3505 *) ac_try_echo=$ac_try;;
3507 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3508 $as_echo "$ac_try_echo") >&5
3509 (eval "$ac_compile") 2>conftest.er1
3511 grep -v '^
*+' conftest.er1 >conftest.err
3513 cat conftest.err >&5
3514 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3515 (exit $ac_status); } && {
3516 test -z "$ac_c_werror_flag" ||
3517 test ! -s conftest.err
3518 } && test -s conftest.$ac_objext; then
3521 $as_echo "$as_me: failed program was:" >&5
3522 sed 's
/^
/|
/' conftest.$ac_ext >&5
3524 ac_c_werror_flag=$ac_save_c_werror_flag
3526 cat >conftest.$ac_ext <<_ACEOF
3529 cat confdefs.h >>conftest.$ac_ext
3530 cat >>conftest.$ac_ext <<_ACEOF
3531 /* end confdefs.h. */
3541 rm -f conftest.$ac_objext
3542 if { (ac_try="$ac_compile"
3544 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3545 *) ac_try_echo=$ac_try;;
3547 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3548 $as_echo "$ac_try_echo") >&5
3549 (eval "$ac_compile") 2>conftest.er1
3551 grep -v '^
*+' conftest.er1 >conftest.err
3553 cat conftest.err >&5
3554 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3555 (exit $ac_status); } && {
3556 test -z "$ac_c_werror_flag" ||
3557 test ! -s conftest.err
3558 } && test -s conftest.$ac_objext; then
3561 $as_echo "$as_me: failed program was:" >&5
3562 sed 's
/^
/|
/' conftest.$ac_ext >&5
3567 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3570 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3573 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3574 ac_c_werror_flag=$ac_save_c_werror_flag
3576 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3577 $as_echo "$ac_cv_prog_cc_g" >&6; }
3578 if test "$ac_test_CFLAGS" = set; then
3579 CFLAGS=$ac_save_CFLAGS
3580 elif test $ac_cv_prog_cc_g = yes; then
3581 if test "$GCC" = yes; then
3587 if test "$GCC" = yes; then
3593 { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3594 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3595 if test "${ac_cv_prog_cc_c89+set}" = set; then
3596 $as_echo_n "(cached) " >&6
3598 ac_cv_prog_cc_c89=no
3600 cat >conftest.$ac_ext <<_ACEOF
3603 cat confdefs.h >>conftest.$ac_ext
3604 cat >>conftest.$ac_ext <<_ACEOF
3605 /* end confdefs.h. */
3608 #include <sys/types.h>
3609 #include <sys/stat.h>
3610 /* Most of the following tests are stolen from RCS 5.7's src
/conf.sh.
*/
3611 struct buf
{ int x
; };
3612 FILE
* (*rcsopen
) (struct buf
*, struct stat
*, int
);
3613 static char
*e
(p
, i
)
3619 static char
*f
(char
* (*g
) (char
**, int
), char
**p
, ...
)
3624 s
= g
(p
, va_arg
(v
,int
));
3629 /* OSF
4.0 Compaq cc is some
sort of almost-ANSI by default. It has
3630 function prototypes and stuff
, but not
'\xHH' hex character constants.
3631 These don
't provoke an error unfortunately, instead are silently treated
3632 as 'x
'. The following induces an error, until -std is added to get
3633 proper ANSI mode. Curiously '\x00'!='x
' always comes out true, for an
3634 array size at least. It's necessary to
write '\x00'==0 to get something
3635 that
's true only with -std. */
3636 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3638 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3639 inside strings and character constants. */
3641 int xlc6_cc_array[FOO(a) == 'x
' ? 1 : -1];
3643 int test (int i, double x);
3644 struct s1 {int (*f) (int a);};
3645 struct s2 {int (*f) (double a);};
3646 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3652 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3657 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3658 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3660 CC="$ac_save_CC $ac_arg"
3661 rm -f conftest.$ac_objext
3662 if { (ac_try="$ac_compile"
3664 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3665 *) ac_try_echo=$ac_try;;
3667 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3668 $as_echo "$ac_try_echo") >&5
3669 (eval "$ac_compile") 2>conftest.er1
3671 grep -v '^
*+' conftest.er1 >conftest.err
3673 cat conftest.err >&5
3674 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3675 (exit $ac_status); } && {
3676 test -z "$ac_c_werror_flag" ||
3677 test ! -s conftest.err
3678 } && test -s conftest.$ac_objext; then
3679 ac_cv_prog_cc_c89=$ac_arg
3681 $as_echo "$as_me: failed program was:" >&5
3682 sed 's
/^
/|
/' conftest.$ac_ext >&5
3687 rm -f core conftest.err conftest.$ac_objext
3688 test "x$ac_cv_prog_cc_c89" != "xno" && break
3690 rm -f conftest.$ac_ext
3695 case "x$ac_cv_prog_cc_c89" in
3697 { $as_echo "$as_me:$LINENO: result: none needed" >&5
3698 $as_echo "none needed" >&6; } ;;
3700 { $as_echo "$as_me:$LINENO: result: unsupported" >&5
3701 $as_echo "unsupported" >&6; } ;;
3703 CC="$CC $ac_cv_prog_cc_c89"
3704 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3705 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3710 ac_cpp='$CPP $CPPFLAGS'
3711 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.
$ac_ext >&5'
3712 ac_link='$CC -o conftest
$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.
$ac_ext $LIBS >&5'
3713 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3715 depcc="$CC" am_compiler_list=
3717 { $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3718 $as_echo_n "checking dependency style of $depcc... " >&6; }
3719 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3720 $as_echo_n "(cached) " >&6
3722 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3723 # We make a subdir and do the tests there. Otherwise we can end up
3724 # making bogus files that we don't know about and never remove. For
3725 # instance it was reported that on HP-UX the gcc test will end up
3726 # making a dummy file named `D' -- because `-MD' means `put the output
3729 # Copy depcomp to subdir because otherwise we won't find it if we're
3730 # using a relative directory.
3731 cp "$am_depcomp" conftest.dir
3733 # We will build objects and dependencies in a subdirectory because
3734 # it helps to detect inapplicable dependency modes. For instance
3735 # both Tru64's cc and ICC support -MD to output dependencies as a
3736 # side effect of compilation, but ICC will put the dependencies in
3737 # the current directory while Tru64 will put them in the object
3741 am_cv_CC_dependencies_compiler_type
=none
3742 if test "$am_compiler_list" = ""; then
3743 am_compiler_list
=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3745 for depmode
in $am_compiler_list; do
3746 # Setup a source with many dependencies, because some compilers
3747 # like to wrap large dependency lists on column 80 (with \), and
3748 # we should not choose a depcomp mode which is confused by this.
3750 # We need to recreate these files for each test, as the compiler may
3751 # overwrite some of them when testing with obscure command lines.
3752 # This happens at least with the AIX C compiler.
3754 for i
in 1 2 3 4 5 6; do
3755 echo '#include "conftst'$i'.h"' >> sub
/conftest.c
3756 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3757 # Solaris 8's {/usr,}/bin/sh.
3758 touch sub
/conftst
$i.h
3760 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3764 # after this tag, mechanisms are not by side-effect, so they'll
3765 # only be used when explicitly requested
3766 if test "x$enable_dependency_tracking" = xyes
; then
3774 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3775 # mode. It turns out that the SunPro C++ compiler does not properly
3776 # handle `-M -o', and we need to detect this.
3777 if depmode
=$depmode \
3778 source=sub
/conftest.c object
=sub
/conftest.
${OBJEXT-o} \
3779 depfile
=sub
/conftest.Po tmpdepfile
=sub
/conftest.TPo \
3780 $SHELL .
/depcomp
$depcc -c -o sub
/conftest.
${OBJEXT-o} sub
/conftest.c \
3781 >/dev
/null
2>conftest.err
&&
3782 grep sub
/conftst1.h sub
/conftest.Po
> /dev
/null
2>&1 &&
3783 grep sub
/conftst6.h sub
/conftest.Po
> /dev
/null
2>&1 &&
3784 grep sub
/conftest.
${OBJEXT-o} sub
/conftest.Po
> /dev
/null
2>&1 &&
3785 ${MAKE-make} -s -f confmf
> /dev
/null
2>&1; then
3786 # icc doesn't choke on unknown options, it will just issue warnings
3787 # or remarks (even with -Werror). So we grep stderr for any message
3788 # that says an option was ignored or not supported.
3789 # When given -MP, icc 7.0 and 7.1 complain thusly:
3790 # icc: Command line warning: ignoring option '-M'; no argument required
3791 # The diagnosis changed in icc 8.0:
3792 # icc: Command line remark: option '-MP' not supported
3793 if (grep 'ignoring option' conftest.err ||
3794 grep 'not supported' conftest.err
) >/dev
/null
2>&1; then :; else
3795 am_cv_CC_dependencies_compiler_type
=$depmode
3804 am_cv_CC_dependencies_compiler_type
=none
3808 { $as_echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3809 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3810 CCDEPMODE
=depmode
=$am_cv_CC_dependencies_compiler_type
3813 test "x$enable_dependency_tracking" != xno \
3814 && test "$am_cv_CC_dependencies_compiler_type" = gcc3
; then
3816 am__fastdepCC_FALSE
='#'
3818 am__fastdepCC_TRUE
='#'
3819 am__fastdepCC_FALSE
=
3825 ac_cpp
='$CPP $CPPFLAGS'
3826 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3827 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3828 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3829 { $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3830 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3831 # On Suns, sometimes $CPP names a directory.
3832 if test -n "$CPP" && test -d "$CPP"; then
3835 if test -z "$CPP"; then
3836 if test "${ac_cv_prog_CPP+set}" = set; then
3837 $as_echo_n "(cached) " >&6
3839 # Double quotes because CPP needs to be expanded
3840 for CPP
in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3843 for ac_c_preproc_warn_flag
in '' yes
3845 # Use a header file that comes with gcc, so configuring glibc
3846 # with a fresh cross-compiler works.
3847 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3848 # <limits.h> exists even on freestanding compilers.
3849 # On the NeXT, cc -E runs the code through the compiler's parser,
3850 # not just through cpp. "Syntax error" is here to catch this case.
3851 cat >conftest.
$ac_ext <<_ACEOF
3854 cat confdefs.h
>>conftest.
$ac_ext
3855 cat >>conftest.
$ac_ext <<_ACEOF
3856 /* end confdefs.h. */
3858 # include <limits.h>
3860 # include <assert.h>
3864 if { (ac_try
="$ac_cpp conftest.$ac_ext"
3866 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3867 *) ac_try_echo=$ac_try;;
3869 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3870 $as_echo "$ac_try_echo") >&5
3871 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3873 grep -v '^ *+' conftest.er1 >conftest.err
3875 cat conftest.err >&5
3876 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3877 (exit $ac_status); } >/dev/null && {
3878 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3879 test ! -s conftest.err
3883 $as_echo "$as_me: failed program was:" >&5
3884 sed 's/^/| /' conftest.$ac_ext >&5
3886 # Broken: fails on valid input.
3890 rm -f conftest.err conftest.$ac_ext
3892 # OK, works on sane cases. Now check whether nonexistent headers
3893 # can be detected and how.
3894 cat >conftest.$ac_ext <<_ACEOF
3897 cat confdefs.h >>conftest.$ac_ext
3898 cat >>conftest.$ac_ext <<_ACEOF
3899 /* end confdefs.h. */
3900 #include <ac_nonexistent.h>
3902 if { (ac_try="$ac_cpp conftest.$ac_ext"
3904 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3905 *) ac_try_echo
=$ac_try;;
3907 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
3908 $as_echo "$ac_try_echo") >&5
3909 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3911 grep -v '^ *+' conftest.er1
>conftest.err
3913 cat conftest.err
>&5
3914 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3915 (exit $ac_status); } >/dev
/null
&& {
3916 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3917 test ! -s conftest.err
3919 # Broken: success on invalid input.
3922 $as_echo "$as_me: failed program was:" >&5
3923 sed 's/^/| /' conftest.
$ac_ext >&5
3925 # Passes both tests.
3930 rm -f conftest.err conftest.
$ac_ext
3933 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3934 rm -f conftest.err conftest.
$ac_ext
3935 if $ac_preproc_ok; then
3947 { $as_echo "$as_me:$LINENO: result: $CPP" >&5
3948 $as_echo "$CPP" >&6; }
3950 for ac_c_preproc_warn_flag
in '' yes
3952 # Use a header file that comes with gcc, so configuring glibc
3953 # with a fresh cross-compiler works.
3954 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3955 # <limits.h> exists even on freestanding compilers.
3956 # On the NeXT, cc -E runs the code through the compiler's parser,
3957 # not just through cpp. "Syntax error" is here to catch this case.
3958 cat >conftest.
$ac_ext <<_ACEOF
3961 cat confdefs.h
>>conftest.
$ac_ext
3962 cat >>conftest.
$ac_ext <<_ACEOF
3963 /* end confdefs.h. */
3965 # include <limits.h>
3967 # include <assert.h>
3971 if { (ac_try
="$ac_cpp conftest.$ac_ext"
3973 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3974 *) ac_try_echo=$ac_try;;
3976 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3977 $as_echo "$ac_try_echo") >&5
3978 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3980 grep -v '^ *+' conftest.er1 >conftest.err
3982 cat conftest.err >&5
3983 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3984 (exit $ac_status); } >/dev/null && {
3985 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3986 test ! -s conftest.err
3990 $as_echo "$as_me: failed program was:" >&5
3991 sed 's/^/| /' conftest.$ac_ext >&5
3993 # Broken: fails on valid input.
3997 rm -f conftest.err conftest.$ac_ext
3999 # OK, works on sane cases. Now check whether nonexistent headers
4000 # can be detected and how.
4001 cat >conftest.$ac_ext <<_ACEOF
4004 cat confdefs.h >>conftest.$ac_ext
4005 cat >>conftest.$ac_ext <<_ACEOF
4006 /* end confdefs.h. */
4007 #include <ac_nonexistent.h>
4009 if { (ac_try="$ac_cpp conftest.$ac_ext"
4011 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4012 *) ac_try_echo
=$ac_try;;
4014 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
4015 $as_echo "$ac_try_echo") >&5
4016 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4018 grep -v '^ *+' conftest.er1
>conftest.err
4020 cat conftest.err
>&5
4021 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4022 (exit $ac_status); } >/dev
/null
&& {
4023 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4024 test ! -s conftest.err
4026 # Broken: success on invalid input.
4029 $as_echo "$as_me: failed program was:" >&5
4030 sed 's/^/| /' conftest.
$ac_ext >&5
4032 # Passes both tests.
4037 rm -f conftest.err conftest.
$ac_ext
4040 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4041 rm -f conftest.err conftest.
$ac_ext
4042 if $ac_preproc_ok; then
4045 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
4046 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4047 { { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4048 See \`config.log' for more details." >&5
4049 $as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4050 See \`config.log' for more details." >&2;}
4051 { (exit 1); exit 1; }; }; }
4055 ac_cpp
='$CPP $CPPFLAGS'
4056 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4057 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4058 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4061 { $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
4062 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4063 if test "${ac_cv_path_GREP+set}" = set; then
4064 $as_echo_n "(cached) " >&6
4066 if test -z "$GREP"; then
4067 ac_path_GREP_found
=false
4068 # Loop through the user's path and test for each of PROGNAME-LIST
4069 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4070 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
4073 test -z "$as_dir" && as_dir
=.
4074 for ac_prog
in grep ggrep
; do
4075 for ac_exec_ext
in '' $ac_executable_extensions; do
4076 ac_path_GREP
="$as_dir/$ac_prog$ac_exec_ext"
4077 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } ||
continue
4078 # Check for GNU ac_path_GREP and select it if it is found.
4079 # Check for GNU $ac_path_GREP
4080 case `"$ac_path_GREP" --version 2>&1` in
4082 ac_cv_path_GREP
="$ac_path_GREP" ac_path_GREP_found
=:;;
4085 $as_echo_n 0123456789 >"conftest.in"
4088 cat "conftest.in" "conftest.in" >"conftest.tmp"
4089 mv "conftest.tmp" "conftest.in"
4090 cp "conftest.in" "conftest.nl"
4091 $as_echo 'GREP' >> "conftest.nl"
4092 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
4093 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
4094 ac_count
=`expr $ac_count + 1`
4095 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4096 # Best one so far, save it but keep looking for a better one
4097 ac_cv_path_GREP
="$ac_path_GREP"
4098 ac_path_GREP_max
=$ac_count
4100 # 10*(2^10) chars as input seems more than enough
4101 test $ac_count -gt 10 && break
4103 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
4106 $ac_path_GREP_found && break 3
4111 if test -z "$ac_cv_path_GREP"; then
4112 { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4113 $as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4114 { (exit 1); exit 1; }; }
4117 ac_cv_path_GREP
=$GREP
4121 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4122 $as_echo "$ac_cv_path_GREP" >&6; }
4123 GREP
="$ac_cv_path_GREP"
4126 { $as_echo "$as_me:$LINENO: checking for egrep" >&5
4127 $as_echo_n "checking for egrep... " >&6; }
4128 if test "${ac_cv_path_EGREP+set}" = set; then
4129 $as_echo_n "(cached) " >&6
4131 if echo a |
$GREP -E '(a|b)' >/dev
/null
2>&1
4132 then ac_cv_path_EGREP
="$GREP -E"
4134 if test -z "$EGREP"; then
4135 ac_path_EGREP_found
=false
4136 # Loop through the user's path and test for each of PROGNAME-LIST
4137 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4138 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
4141 test -z "$as_dir" && as_dir
=.
4142 for ac_prog
in egrep; do
4143 for ac_exec_ext
in '' $ac_executable_extensions; do
4144 ac_path_EGREP
="$as_dir/$ac_prog$ac_exec_ext"
4145 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } ||
continue
4146 # Check for GNU ac_path_EGREP and select it if it is found.
4147 # Check for GNU $ac_path_EGREP
4148 case `"$ac_path_EGREP" --version 2>&1` in
4150 ac_cv_path_EGREP
="$ac_path_EGREP" ac_path_EGREP_found
=:;;
4153 $as_echo_n 0123456789 >"conftest.in"
4156 cat "conftest.in" "conftest.in" >"conftest.tmp"
4157 mv "conftest.tmp" "conftest.in"
4158 cp "conftest.in" "conftest.nl"
4159 $as_echo 'EGREP' >> "conftest.nl"
4160 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
4161 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
4162 ac_count
=`expr $ac_count + 1`
4163 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4164 # Best one so far, save it but keep looking for a better one
4165 ac_cv_path_EGREP
="$ac_path_EGREP"
4166 ac_path_EGREP_max
=$ac_count
4168 # 10*(2^10) chars as input seems more than enough
4169 test $ac_count -gt 10 && break
4171 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
4174 $ac_path_EGREP_found && break 3
4179 if test -z "$ac_cv_path_EGREP"; then
4180 { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4181 $as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4182 { (exit 1); exit 1; }; }
4185 ac_cv_path_EGREP
=$EGREP
4190 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4191 $as_echo "$ac_cv_path_EGREP" >&6; }
4192 EGREP
="$ac_cv_path_EGREP"
4195 { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4196 $as_echo_n "checking for ANSI C header files... " >&6; }
4197 if test "${ac_cv_header_stdc+set}" = set; then
4198 $as_echo_n "(cached) " >&6
4200 cat >conftest.
$ac_ext <<_ACEOF
4203 cat confdefs.h
>>conftest.
$ac_ext
4204 cat >>conftest.
$ac_ext <<_ACEOF
4205 /* end confdefs.h. */
4219 rm -f conftest.
$ac_objext
4220 if { (ac_try
="$ac_compile"
4222 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4223 *) ac_try_echo=$ac_try;;
4225 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4226 $as_echo "$ac_try_echo") >&5
4227 (eval "$ac_compile") 2>conftest.er1
4229 grep -v '^ *+' conftest.er1 >conftest.err
4231 cat conftest.err >&5
4232 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4233 (exit $ac_status); } && {
4234 test -z "$ac_c_werror_flag" ||
4235 test ! -s conftest.err
4236 } && test -s conftest.$ac_objext; then
4237 ac_cv_header_stdc=yes
4239 $as_echo "$as_me: failed program was:" >&5
4240 sed 's/^/| /' conftest.$ac_ext >&5
4242 ac_cv_header_stdc=no
4245 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4247 if test $ac_cv_header_stdc = yes; then
4248 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4249 cat >conftest.$ac_ext <<_ACEOF
4252 cat confdefs.h >>conftest.$ac_ext
4253 cat >>conftest.$ac_ext <<_ACEOF
4254 /* end confdefs.h. */
4258 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4259 $EGREP "memchr" >/dev/null 2>&1; then
4262 ac_cv_header_stdc=no
4268 if test $ac_cv_header_stdc = yes; then
4269 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4270 cat >conftest.$ac_ext <<_ACEOF
4273 cat confdefs.h >>conftest.$ac_ext
4274 cat >>conftest.$ac_ext <<_ACEOF
4275 /* end confdefs.h. */
4279 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4280 $EGREP "free" >/dev/null 2>&1; then
4283 ac_cv_header_stdc=no
4289 if test $ac_cv_header_stdc = yes; then
4290 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4291 if test "$cross_compiling" = yes; then
4294 cat >conftest.$ac_ext <<_ACEOF
4297 cat confdefs.h >>conftest.$ac_ext
4298 cat >>conftest.$ac_ext <<_ACEOF
4299 /* end confdefs.h. */
4302 #if ((' ' & 0x0FF) == 0x020)
4303 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4304 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4306 # define ISLOWER(c) \
4307 (('a' <= (c) && (c) <= 'i') \
4308 || ('j' <= (c) && (c) <= 'r') \
4309 || ('s' <= (c) && (c) <= 'z'))
4310 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4313 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4318 for (i = 0; i < 256; i++)
4319 if (XOR (islower (i), ISLOWER (i))
4320 || toupper (i) != TOUPPER (i))
4325 rm -f conftest$ac_exeext
4326 if { (ac_try="$ac_link"
4328 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4329 *) ac_try_echo
=$ac_try;;
4331 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
4332 $as_echo "$ac_try_echo") >&5
4333 (eval "$ac_link") 2>&5
4335 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4336 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
4337 { (case "(($ac_try" in
4338 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4339 *) ac_try_echo=$ac_try;;
4341 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4342 $as_echo "$ac_try_echo") >&5
4343 (eval "$ac_try") 2>&5
4345 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4346 (exit $ac_status); }; }; then
4349 $as_echo "$as_me: program exited with status $ac_status" >&5
4350 $as_echo "$as_me: failed program was:" >&5
4351 sed 's/^/| /' conftest.$ac_ext >&5
4354 ac_cv_header_stdc=no
4356 rm -rf conftest.dSYM
4357 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4363 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4364 $as_echo "$ac_cv_header_stdc" >&6; }
4365 if test $ac_cv_header_stdc = yes; then
4367 cat >>confdefs.h <<\_ACEOF
4368 #define STDC_HEADERS 1
4373 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4383 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4384 inttypes.h stdint.h unistd.h
4386 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" |
$as_tr_sh`
4387 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
4388 $as_echo_n "checking for $ac_header... " >&6; }
4389 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4390 $as_echo_n "(cached) " >&6
4392 cat >conftest.$ac_ext <<_ACEOF
4395 cat confdefs.h >>conftest.$ac_ext
4396 cat >>conftest.$ac_ext <<_ACEOF
4397 /* end confdefs.h. */
4398 $ac_includes_default
4400 #include <$ac_header>
4402 rm -f conftest.$ac_objext
4403 if { (ac_try="$ac_compile"
4405 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4406 *) ac_try_echo
=$ac_try;;
4408 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
4409 $as_echo "$ac_try_echo") >&5
4410 (eval "$ac_compile") 2>conftest.er1
4412 grep -v '^ *+' conftest.er1
>conftest.err
4414 cat conftest.err
>&5
4415 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4416 (exit $ac_status); } && {
4417 test -z "$ac_c_werror_flag" ||
4418 test ! -s conftest.err
4419 } && test -s conftest.
$ac_objext; then
4420 eval "$as_ac_Header=yes"
4422 $as_echo "$as_me: failed program was:" >&5
4423 sed 's/^/| /' conftest.
$ac_ext >&5
4425 eval "$as_ac_Header=no"
4428 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4430 ac_res
=`eval 'as_val=${'$as_ac_Header'}
4431 $as_echo "$as_val"'`
4432 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
4433 $as_echo "$ac_res" >&6; }
4434 as_val
=`eval 'as_val=${'$as_ac_Header'}
4435 $as_echo "$as_val"'`
4436 if test "x$as_val" = x
""yes; then
4437 cat >>confdefs.h
<<_ACEOF
4438 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4447 if test "${ac_cv_header_minix_config_h+set}" = set; then
4448 { $as_echo "$as_me:$LINENO: checking for minix/config.h" >&5
4449 $as_echo_n "checking for minix/config.h... " >&6; }
4450 if test "${ac_cv_header_minix_config_h+set}" = set; then
4451 $as_echo_n "(cached) " >&6
4453 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
4454 $as_echo "$ac_cv_header_minix_config_h" >&6; }
4456 # Is the header compilable?
4457 { $as_echo "$as_me:$LINENO: checking minix/config.h usability" >&5
4458 $as_echo_n "checking minix/config.h usability... " >&6; }
4459 cat >conftest.
$ac_ext <<_ACEOF
4462 cat confdefs.h
>>conftest.
$ac_ext
4463 cat >>conftest.
$ac_ext <<_ACEOF
4464 /* end confdefs.h. */
4465 $ac_includes_default
4466 #include <minix/config.h>
4468 rm -f conftest.
$ac_objext
4469 if { (ac_try
="$ac_compile"
4471 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4472 *) ac_try_echo=$ac_try;;
4474 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4475 $as_echo "$ac_try_echo") >&5
4476 (eval "$ac_compile") 2>conftest.er1
4478 grep -v '^ *+' conftest.er1 >conftest.err
4480 cat conftest.err >&5
4481 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4482 (exit $ac_status); } && {
4483 test -z "$ac_c_werror_flag" ||
4484 test ! -s conftest.err
4485 } && test -s conftest.$ac_objext; then
4486 ac_header_compiler=yes
4488 $as_echo "$as_me: failed program was:" >&5
4489 sed 's/^/| /' conftest.$ac_ext >&5
4491 ac_header_compiler=no
4494 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4495 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4496 $as_echo "$ac_header_compiler" >&6; }
4498 # Is the header present?
4499 { $as_echo "$as_me:$LINENO: checking minix/config.h presence" >&5
4500 $as_echo_n "checking minix/config.h presence... " >&6; }
4501 cat >conftest.$ac_ext <<_ACEOF
4504 cat confdefs.h >>conftest.$ac_ext
4505 cat >>conftest.$ac_ext <<_ACEOF
4506 /* end confdefs.h. */
4507 #include <minix/config.h>
4509 if { (ac_try="$ac_cpp conftest.$ac_ext"
4511 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4512 *) ac_try_echo
=$ac_try;;
4514 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
4515 $as_echo "$ac_try_echo") >&5
4516 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4518 grep -v '^ *+' conftest.er1
>conftest.err
4520 cat conftest.err
>&5
4521 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4522 (exit $ac_status); } >/dev
/null
&& {
4523 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4524 test ! -s conftest.err
4526 ac_header_preproc
=yes
4528 $as_echo "$as_me: failed program was:" >&5
4529 sed 's/^/| /' conftest.
$ac_ext >&5
4531 ac_header_preproc
=no
4534 rm -f conftest.err conftest.
$ac_ext
4535 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4536 $as_echo "$ac_header_preproc" >&6; }
4538 # So? What about this header?
4539 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4541 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&5
4542 $as_echo "$as_me: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
4543 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the compiler's result" >&5
4544 $as_echo "$as_me: WARNING: minix/config.h: proceeding with the compiler's result" >&2;}
4545 ac_header_preproc
=yes
4548 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: present but cannot be compiled" >&5
4549 $as_echo "$as_me: WARNING: minix/config.h: present but cannot be compiled" >&2;}
4550 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: check for missing prerequisite headers?" >&5
4551 $as_echo "$as_me: WARNING: minix/config.h: check for missing prerequisite headers?" >&2;}
4552 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: see the Autoconf documentation" >&5
4553 $as_echo "$as_me: WARNING: minix/config.h: see the Autoconf documentation" >&2;}
4554 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&5
4555 $as_echo "$as_me: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&2;}
4556 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5
4557 $as_echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;}
4558 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: in the future, the compiler will take precedence" >&5
4559 $as_echo "$as_me: WARNING: minix/config.h: in the future, the compiler will take precedence" >&2;}
4561 ## --------------------------------- ##
4562 ## Report this to bug-cvs@nongnu.org ##
4563 ## --------------------------------- ##
4565 ) |
sed "s/^/$as_me: WARNING: /" >&2
4568 { $as_echo "$as_me:$LINENO: checking for minix/config.h" >&5
4569 $as_echo_n "checking for minix/config.h... " >&6; }
4570 if test "${ac_cv_header_minix_config_h+set}" = set; then
4571 $as_echo_n "(cached) " >&6
4573 ac_cv_header_minix_config_h
=$ac_header_preproc
4575 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
4576 $as_echo "$ac_cv_header_minix_config_h" >&6; }
4579 if test "x$ac_cv_header_minix_config_h" = x
""yes; then
4586 if test "$MINIX" = yes; then
4588 cat >>confdefs.h
<<\_ACEOF
4589 #define _POSIX_SOURCE 1
4593 cat >>confdefs.h
<<\_ACEOF
4594 #define _POSIX_1_SOURCE 2
4598 cat >>confdefs.h
<<\_ACEOF
4606 { $as_echo "$as_me:$LINENO: checking whether it is safe to define __EXTENSIONS__" >&5
4607 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4608 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then
4609 $as_echo_n "(cached) " >&6
4611 cat >conftest.
$ac_ext <<_ACEOF
4614 cat confdefs.h
>>conftest.
$ac_ext
4615 cat >>conftest.
$ac_ext <<_ACEOF
4616 /* end confdefs.h. */
4618 # define __EXTENSIONS__ 1
4619 $ac_includes_default
4628 rm -f conftest.
$ac_objext
4629 if { (ac_try
="$ac_compile"
4631 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4632 *) ac_try_echo=$ac_try;;
4634 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4635 $as_echo "$ac_try_echo") >&5
4636 (eval "$ac_compile") 2>conftest.er1
4638 grep -v '^ *+' conftest.er1 >conftest.err
4640 cat conftest.err >&5
4641 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4642 (exit $ac_status); } && {
4643 test -z "$ac_c_werror_flag" ||
4644 test ! -s conftest.err
4645 } && test -s conftest.$ac_objext; then
4646 ac_cv_safe_to_define___extensions__=yes
4648 $as_echo "$as_me: failed program was:" >&5
4649 sed 's/^/| /' conftest.$ac_ext >&5
4651 ac_cv_safe_to_define___extensions__=no
4654 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4656 { $as_echo "$as_me:$LINENO: result: $ac_cv_safe_to_define___extensions__" >&5
4657 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4658 test $ac_cv_safe_to_define___extensions__ = yes &&
4659 cat >>confdefs.h <<\_ACEOF
4660 #define __EXTENSIONS__ 1
4663 cat >>confdefs.h <<\_ACEOF
4664 #define _ALL_SOURCE 1
4667 cat >>confdefs.h <<\_ACEOF
4668 #define _GNU_SOURCE 1
4671 cat >>confdefs.h <<\_ACEOF
4672 #define _POSIX_PTHREAD_SEMANTICS 1
4675 cat >>confdefs.h <<\_ACEOF
4676 #define _TANDEM_SOURCE 1
4681 if test "${ac_cv_header_minix_config_h+set}" = set; then
4682 { $as_echo "$as_me:$LINENO: checking for minix/config.h" >&5
4683 $as_echo_n "checking for minix/config.h... " >&6; }
4684 if test "${ac_cv_header_minix_config_h+set}" = set; then
4685 $as_echo_n "(cached) " >&6
4687 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
4688 $as_echo "$ac_cv_header_minix_config_h" >&6; }
4690 # Is the header compilable?
4691 { $as_echo "$as_me:$LINENO: checking minix/config.h usability" >&5
4692 $as_echo_n "checking minix/config.h usability... " >&6; }
4693 cat >conftest.$ac_ext <<_ACEOF
4696 cat confdefs.h >>conftest.$ac_ext
4697 cat >>conftest.$ac_ext <<_ACEOF
4698 /* end confdefs.h. */
4699 $ac_includes_default
4700 #include <minix/config.h>
4702 rm -f conftest.$ac_objext
4703 if { (ac_try="$ac_compile"
4705 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4706 *) ac_try_echo
=$ac_try;;
4708 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
4709 $as_echo "$ac_try_echo") >&5
4710 (eval "$ac_compile") 2>conftest.er1
4712 grep -v '^ *+' conftest.er1
>conftest.err
4714 cat conftest.err
>&5
4715 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4716 (exit $ac_status); } && {
4717 test -z "$ac_c_werror_flag" ||
4718 test ! -s conftest.err
4719 } && test -s conftest.
$ac_objext; then
4720 ac_header_compiler
=yes
4722 $as_echo "$as_me: failed program was:" >&5
4723 sed 's/^/| /' conftest.
$ac_ext >&5
4725 ac_header_compiler
=no
4728 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4729 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4730 $as_echo "$ac_header_compiler" >&6; }
4732 # Is the header present?
4733 { $as_echo "$as_me:$LINENO: checking minix/config.h presence" >&5
4734 $as_echo_n "checking minix/config.h presence... " >&6; }
4735 cat >conftest.
$ac_ext <<_ACEOF
4738 cat confdefs.h
>>conftest.
$ac_ext
4739 cat >>conftest.
$ac_ext <<_ACEOF
4740 /* end confdefs.h. */
4741 #include <minix/config.h>
4743 if { (ac_try
="$ac_cpp conftest.$ac_ext"
4745 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4746 *) ac_try_echo=$ac_try;;
4748 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4749 $as_echo "$ac_try_echo") >&5
4750 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4752 grep -v '^ *+' conftest.er1 >conftest.err
4754 cat conftest.err >&5
4755 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4756 (exit $ac_status); } >/dev/null && {
4757 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4758 test ! -s conftest.err
4760 ac_header_preproc=yes
4762 $as_echo "$as_me: failed program was:" >&5
4763 sed 's/^/| /' conftest.$ac_ext >&5
4765 ac_header_preproc=no
4768 rm -f conftest.err conftest.$ac_ext
4769 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4770 $as_echo "$ac_header_preproc" >&6; }
4772 # So? What about this header?
4773 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4775 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&5
4776 $as_echo "$as_me: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
4777 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the compiler's result" >&5
4778 $as_echo "$as_me: WARNING: minix/config.h: proceeding with the compiler's result" >&2;}
4779 ac_header_preproc=yes
4782 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: present but cannot be compiled" >&5
4783 $as_echo "$as_me: WARNING: minix/config.h: present but cannot be compiled" >&2;}
4784 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: check for missing prerequisite headers?" >&5
4785 $as_echo "$as_me: WARNING: minix/config.h: check for missing prerequisite headers?" >&2;}
4786 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: see the Autoconf documentation" >&5
4787 $as_echo "$as_me: WARNING: minix/config.h: see the Autoconf documentation" >&2;}
4788 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&5
4789 $as_echo "$as_me: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&2;}
4790 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5
4791 $as_echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;}
4792 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: in the future, the compiler will take precedence" >&5
4793 $as_echo "$as_me: WARNING: minix/config.h: in the future, the compiler will take precedence" >&2;}
4795 ## --------------------------------- ##
4796 ## Report this to bug-cvs@nongnu.org ##
4797 ## --------------------------------- ##
4799 ) | sed "s/^/$as_me: WARNING: /" >&2
4802 { $as_echo "$as_me:$LINENO: checking for minix/config.h" >&5
4803 $as_echo_n "checking for minix/config.h... " >&6; }
4804 if test "${ac_cv_header_minix_config_h+set}" = set; then
4805 $as_echo_n "(cached) " >&6
4807 ac_cv_header_minix_config_h=$ac_header_preproc
4809 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
4810 $as_echo "$ac_cv_header_minix_config_h" >&6; }
4813 if test "x$ac_cv_header_minix_config_h" = x""yes; then
4820 if test "$MINIX" = yes; then
4822 cat >>confdefs.h <<\_ACEOF
4823 #define _POSIX_SOURCE 1
4827 cat >>confdefs.h <<\_ACEOF
4828 #define _POSIX_1_SOURCE 2
4832 cat >>confdefs.h <<\_ACEOF
4840 { $as_echo "$as_me:$LINENO: checking whether it is safe to define __EXTENSIONS__" >&5
4841 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4842 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then
4843 $as_echo_n "(cached) " >&6
4845 cat >conftest.$ac_ext <<_ACEOF
4848 cat confdefs.h >>conftest.$ac_ext
4849 cat >>conftest.$ac_ext <<_ACEOF
4850 /* end confdefs.h. */
4852 # define __EXTENSIONS__ 1
4853 $ac_includes_default
4862 rm -f conftest.$ac_objext
4863 if { (ac_try="$ac_compile"
4865 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4866 *) ac_try_echo
=$ac_try;;
4868 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
4869 $as_echo "$ac_try_echo") >&5
4870 (eval "$ac_compile") 2>conftest.er1
4872 grep -v '^ *+' conftest.er1
>conftest.err
4874 cat conftest.err
>&5
4875 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4876 (exit $ac_status); } && {
4877 test -z "$ac_c_werror_flag" ||
4878 test ! -s conftest.err
4879 } && test -s conftest.
$ac_objext; then
4880 ac_cv_safe_to_define___extensions__
=yes
4882 $as_echo "$as_me: failed program was:" >&5
4883 sed 's/^/| /' conftest.
$ac_ext >&5
4885 ac_cv_safe_to_define___extensions__
=no
4888 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4890 { $as_echo "$as_me:$LINENO: result: $ac_cv_safe_to_define___extensions__" >&5
4891 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4892 test $ac_cv_safe_to_define___extensions__ = yes &&
4893 cat >>confdefs.h
<<\_ACEOF
4894 #define __EXTENSIONS__ 1
4897 cat >>confdefs.h
<<\_ACEOF
4898 #define _ALL_SOURCE 1
4901 cat >>confdefs.h
<<\_ACEOF
4902 #define _GNU_SOURCE 1
4905 cat >>confdefs.h
<<\_ACEOF
4906 #define _POSIX_PTHREAD_SEMANTICS 1
4909 cat >>confdefs.h
<<\_ACEOF
4910 #define _TANDEM_SOURCE 1
4915 if test "${ac_cv_header_minix_config_h+set}" = set; then
4916 { $as_echo "$as_me:$LINENO: checking for minix/config.h" >&5
4917 $as_echo_n "checking for minix/config.h... " >&6; }
4918 if test "${ac_cv_header_minix_config_h+set}" = set; then
4919 $as_echo_n "(cached) " >&6
4921 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
4922 $as_echo "$ac_cv_header_minix_config_h" >&6; }
4924 # Is the header compilable?
4925 { $as_echo "$as_me:$LINENO: checking minix/config.h usability" >&5
4926 $as_echo_n "checking minix/config.h usability... " >&6; }
4927 cat >conftest.
$ac_ext <<_ACEOF
4930 cat confdefs.h
>>conftest.
$ac_ext
4931 cat >>conftest.
$ac_ext <<_ACEOF
4932 /* end confdefs.h. */
4933 $ac_includes_default
4934 #include <minix/config.h>
4936 rm -f conftest.
$ac_objext
4937 if { (ac_try
="$ac_compile"
4939 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4940 *) ac_try_echo=$ac_try;;
4942 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4943 $as_echo "$ac_try_echo") >&5
4944 (eval "$ac_compile") 2>conftest.er1
4946 grep -v '^ *+' conftest.er1 >conftest.err
4948 cat conftest.err >&5
4949 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4950 (exit $ac_status); } && {
4951 test -z "$ac_c_werror_flag" ||
4952 test ! -s conftest.err
4953 } && test -s conftest.$ac_objext; then
4954 ac_header_compiler=yes
4956 $as_echo "$as_me: failed program was:" >&5
4957 sed 's/^/| /' conftest.$ac_ext >&5
4959 ac_header_compiler=no
4962 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4963 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4964 $as_echo "$ac_header_compiler" >&6; }
4966 # Is the header present?
4967 { $as_echo "$as_me:$LINENO: checking minix/config.h presence" >&5
4968 $as_echo_n "checking minix/config.h presence... " >&6; }
4969 cat >conftest.$ac_ext <<_ACEOF
4972 cat confdefs.h >>conftest.$ac_ext
4973 cat >>conftest.$ac_ext <<_ACEOF
4974 /* end confdefs.h. */
4975 #include <minix/config.h>
4977 if { (ac_try="$ac_cpp conftest.$ac_ext"
4979 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4980 *) ac_try_echo
=$ac_try;;
4982 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
4983 $as_echo "$ac_try_echo") >&5
4984 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4986 grep -v '^ *+' conftest.er1
>conftest.err
4988 cat conftest.err
>&5
4989 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4990 (exit $ac_status); } >/dev
/null
&& {
4991 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4992 test ! -s conftest.err
4994 ac_header_preproc
=yes
4996 $as_echo "$as_me: failed program was:" >&5
4997 sed 's/^/| /' conftest.
$ac_ext >&5
4999 ac_header_preproc
=no
5002 rm -f conftest.err conftest.
$ac_ext
5003 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5004 $as_echo "$ac_header_preproc" >&6; }
5006 # So? What about this header?
5007 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5009 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&5
5010 $as_echo "$as_me: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
5011 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the compiler's result" >&5
5012 $as_echo "$as_me: WARNING: minix/config.h: proceeding with the compiler's result" >&2;}
5013 ac_header_preproc
=yes
5016 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: present but cannot be compiled" >&5
5017 $as_echo "$as_me: WARNING: minix/config.h: present but cannot be compiled" >&2;}
5018 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: check for missing prerequisite headers?" >&5
5019 $as_echo "$as_me: WARNING: minix/config.h: check for missing prerequisite headers?" >&2;}
5020 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: see the Autoconf documentation" >&5
5021 $as_echo "$as_me: WARNING: minix/config.h: see the Autoconf documentation" >&2;}
5022 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&5
5023 $as_echo "$as_me: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&2;}
5024 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5
5025 $as_echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;}
5026 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: in the future, the compiler will take precedence" >&5
5027 $as_echo "$as_me: WARNING: minix/config.h: in the future, the compiler will take precedence" >&2;}
5029 ## --------------------------------- ##
5030 ## Report this to bug-cvs@nongnu.org ##
5031 ## --------------------------------- ##
5033 ) |
sed "s/^/$as_me: WARNING: /" >&2
5036 { $as_echo "$as_me:$LINENO: checking for minix/config.h" >&5
5037 $as_echo_n "checking for minix/config.h... " >&6; }
5038 if test "${ac_cv_header_minix_config_h+set}" = set; then
5039 $as_echo_n "(cached) " >&6
5041 ac_cv_header_minix_config_h
=$ac_header_preproc
5043 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
5044 $as_echo "$ac_cv_header_minix_config_h" >&6; }
5047 if test "x$ac_cv_header_minix_config_h" = x
""yes; then
5054 if test "$MINIX" = yes; then
5056 cat >>confdefs.h
<<\_ACEOF
5057 #define _POSIX_SOURCE 1
5061 cat >>confdefs.h
<<\_ACEOF
5062 #define _POSIX_1_SOURCE 2
5066 cat >>confdefs.h
<<\_ACEOF
5074 { $as_echo "$as_me:$LINENO: checking whether it is safe to define __EXTENSIONS__" >&5
5075 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
5076 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then
5077 $as_echo_n "(cached) " >&6
5079 cat >conftest.
$ac_ext <<_ACEOF
5082 cat confdefs.h
>>conftest.
$ac_ext
5083 cat >>conftest.
$ac_ext <<_ACEOF
5084 /* end confdefs.h. */
5086 # define __EXTENSIONS__ 1
5087 $ac_includes_default
5096 rm -f conftest.
$ac_objext
5097 if { (ac_try
="$ac_compile"
5099 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5100 *) ac_try_echo=$ac_try;;
5102 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5103 $as_echo "$ac_try_echo") >&5
5104 (eval "$ac_compile") 2>conftest.er1
5106 grep -v '^ *+' conftest.er1 >conftest.err
5108 cat conftest.err >&5
5109 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5110 (exit $ac_status); } && {
5111 test -z "$ac_c_werror_flag" ||
5112 test ! -s conftest.err
5113 } && test -s conftest.$ac_objext; then
5114 ac_cv_safe_to_define___extensions__=yes
5116 $as_echo "$as_me: failed program was:" >&5
5117 sed 's/^/| /' conftest.$ac_ext >&5
5119 ac_cv_safe_to_define___extensions__=no
5122 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5124 { $as_echo "$as_me:$LINENO: result: $ac_cv_safe_to_define___extensions__" >&5
5125 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
5126 test $ac_cv_safe_to_define___extensions__ = yes &&
5127 cat >>confdefs.h <<\_ACEOF
5128 #define __EXTENSIONS__ 1
5131 cat >>confdefs.h <<\_ACEOF
5132 #define _ALL_SOURCE 1
5135 cat >>confdefs.h <<\_ACEOF
5136 #define _GNU_SOURCE 1
5139 cat >>confdefs.h <<\_ACEOF
5140 #define _POSIX_PTHREAD_SEMANTICS 1
5143 cat >>confdefs.h <<\_ACEOF
5144 #define _TANDEM_SOURCE 1
5158 cat >>confdefs.h <<\_ACEOF
5159 #define __EXTENSIONS__ 1
5162 cat >>confdefs.h <<\_ACEOF
5163 #define _POSIX_PTHREAD_SEMANTICS 1
5173 ac_cpp='$CPP $CPPFLAGS'
5174 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5175 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5176 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5177 if test -n "$ac_tool_prefix"; then
5178 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
5179 set dummy ${ac_tool_prefix}gcc; ac_word=$2
5180 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5181 $as_echo_n "checking for $ac_word... " >&6; }
5182 if test "${ac_cv_prog_CC+set}" = set; then
5183 $as_echo_n "(cached) " >&6
5185 if test -n "$CC"; then
5186 ac_cv_prog_CC="$CC" # Let the user override the test.
5188 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5192 test -z "$as_dir" && as_dir=.
5193 for ac_exec_ext in '' $ac_executable_extensions; do
5194 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5195 ac_cv_prog_CC="${ac_tool_prefix}gcc"
5196 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5206 if test -n "$CC"; then
5207 { $as_echo "$as_me:$LINENO: result: $CC" >&5
5208 $as_echo "$CC" >&6; }
5210 { $as_echo "$as_me:$LINENO: result: no" >&5
5211 $as_echo "no" >&6; }
5216 if test -z "$ac_cv_prog_CC"; then
5218 # Extract the first word of "gcc", so it can be a program name with args.
5219 set dummy gcc; ac_word=$2
5220 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5221 $as_echo_n "checking for $ac_word... " >&6; }
5222 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
5223 $as_echo_n "(cached) " >&6
5225 if test -n "$ac_ct_CC"; then
5226 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5228 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5232 test -z "$as_dir" && as_dir=.
5233 for ac_exec_ext in '' $ac_executable_extensions; do
5234 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5235 ac_cv_prog_ac_ct_CC="gcc"
5236 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5245 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5246 if test -n "$ac_ct_CC"; then
5247 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
5248 $as_echo "$ac_ct_CC" >&6; }
5250 { $as_echo "$as_me:$LINENO: result: no" >&5
5251 $as_echo "no" >&6; }
5254 if test "x$ac_ct_CC" = x; then
5257 case $cross_compiling:$ac_tool_warned in
5259 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
5260 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5261 ac_tool_warned=yes ;;
5269 if test -z "$CC"; then
5270 if test -n "$ac_tool_prefix"; then
5271 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
5272 set dummy ${ac_tool_prefix}cc; ac_word=$2
5273 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5274 $as_echo_n "checking for $ac_word... " >&6; }
5275 if test "${ac_cv_prog_CC+set}" = set; then
5276 $as_echo_n "(cached) " >&6
5278 if test -n "$CC"; then
5279 ac_cv_prog_CC="$CC" # Let the user override the test.
5281 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5285 test -z "$as_dir" && as_dir=.
5286 for ac_exec_ext in '' $ac_executable_extensions; do
5287 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5288 ac_cv_prog_CC="${ac_tool_prefix}cc"
5289 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5299 if test -n "$CC"; then
5300 { $as_echo "$as_me:$LINENO: result: $CC" >&5
5301 $as_echo "$CC" >&6; }
5303 { $as_echo "$as_me:$LINENO: result: no" >&5
5304 $as_echo "no" >&6; }
5310 if test -z "$CC"; then
5311 # Extract the first word of "cc", so it can be a program name with args.
5312 set dummy cc; ac_word=$2
5313 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5314 $as_echo_n "checking for $ac_word... " >&6; }
5315 if test "${ac_cv_prog_CC+set}" = set; then
5316 $as_echo_n "(cached) " >&6
5318 if test -n "$CC"; then
5319 ac_cv_prog_CC="$CC" # Let the user override the test.
5322 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5326 test -z "$as_dir" && as_dir=.
5327 for ac_exec_ext in '' $ac_executable_extensions; do
5328 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5329 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
5330 ac_prog_rejected=yes
5334 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5341 if test $ac_prog_rejected = yes; then
5342 # We found a bogon in the path, so make sure we never use it.
5343 set dummy $ac_cv_prog_CC
5345 if test $# != 0; then
5346 # We chose a different compiler from the bogus one.
5347 # However, it has the same basename, so the bogon will be chosen
5348 # first if we set CC to just the basename; use the full file name.
5350 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
5356 if test -n "$CC"; then
5357 { $as_echo "$as_me:$LINENO: result: $CC" >&5
5358 $as_echo "$CC" >&6; }
5360 { $as_echo "$as_me:$LINENO: result: no" >&5
5361 $as_echo "no" >&6; }
5366 if test -z "$CC"; then
5367 if test -n "$ac_tool_prefix"; then
5368 for ac_prog in cl.exe
5370 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5371 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5372 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5373 $as_echo_n "checking for $ac_word... " >&6; }
5374 if test "${ac_cv_prog_CC+set}" = set; then
5375 $as_echo_n "(cached) " >&6
5377 if test -n "$CC"; then
5378 ac_cv_prog_CC="$CC" # Let the user override the test.
5380 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5384 test -z "$as_dir" && as_dir=.
5385 for ac_exec_ext in '' $ac_executable_extensions; do
5386 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5387 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5388 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5398 if test -n "$CC"; then
5399 { $as_echo "$as_me:$LINENO: result: $CC" >&5
5400 $as_echo "$CC" >&6; }
5402 { $as_echo "$as_me:$LINENO: result: no" >&5
5403 $as_echo "no" >&6; }
5407 test -n "$CC" && break
5410 if test -z "$CC"; then
5412 for ac_prog in cl.exe
5414 # Extract the first word of "$ac_prog", so it can be a program name with args.
5415 set dummy $ac_prog; ac_word=$2
5416 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5417 $as_echo_n "checking for $ac_word... " >&6; }
5418 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
5419 $as_echo_n "(cached) " >&6
5421 if test -n "$ac_ct_CC"; then
5422 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5424 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5428 test -z "$as_dir" && as_dir=.
5429 for ac_exec_ext in '' $ac_executable_extensions; do
5430 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5431 ac_cv_prog_ac_ct_CC="$ac_prog"
5432 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5441 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5442 if test -n "$ac_ct_CC"; then
5443 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
5444 $as_echo "$ac_ct_CC" >&6; }
5446 { $as_echo "$as_me:$LINENO: result: no" >&5
5447 $as_echo "no" >&6; }
5451 test -n "$ac_ct_CC" && break
5454 if test "x$ac_ct_CC" = x; then
5457 case $cross_compiling:$ac_tool_warned in
5459 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
5460 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5461 ac_tool_warned=yes ;;
5470 test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
5471 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5472 { { $as_echo "$as_me:$LINENO: error
: no acceptable C compiler found
in \
$PATH
5473 See \
`config.log' for more details." >&5
5474 $as_echo "$as_me: error: no acceptable C compiler found in \$PATH
5475 See \`config.log
' for more details." >&2;}
5476 { (exit 1); exit 1; }; }; }
5478 # Provide some information about the compiler.
5479 $as_echo "$as_me:$LINENO: checking for C compiler version" >&5
5482 { (ac_try="$ac_compiler --version >&5"
5484 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5485 *) ac_try_echo=$ac_try;;
5487 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5488 $as_echo "$ac_try_echo") >&5
5489 (eval "$ac_compiler --version >&5") 2>&5
5491 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5492 (exit $ac_status); }
5493 { (ac_try="$ac_compiler -v >&5"
5495 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5496 *) ac_try_echo=$ac_try;;
5498 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5499 $as_echo "$ac_try_echo") >&5
5500 (eval "$ac_compiler -v >&5") 2>&5
5502 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5503 (exit $ac_status); }
5504 { (ac_try="$ac_compiler -V >&5"
5506 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5507 *) ac_try_echo=$ac_try;;
5509 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5510 $as_echo "$ac_try_echo") >&5
5511 (eval "$ac_compiler -V >&5") 2>&5
5513 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5514 (exit $ac_status); }
5516 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
5517 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
5518 if test "${ac_cv_c_compiler_gnu+set}" = set; then
5519 $as_echo_n "(cached) " >&6
5521 cat >conftest.$ac_ext <<_ACEOF
5524 cat confdefs.h >>conftest.$ac_ext
5525 cat >>conftest.$ac_ext <<_ACEOF
5526 /* end confdefs.h. */
5539 rm -f conftest.$ac_objext
5540 if { (ac_try="$ac_compile"
5542 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5543 *) ac_try_echo=$ac_try;;
5545 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5546 $as_echo "$ac_try_echo") >&5
5547 (eval "$ac_compile") 2>conftest.er1
5549 grep -v '^
*+' conftest.er1 >conftest.err
5551 cat conftest.err >&5
5552 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5553 (exit $ac_status); } && {
5554 test -z "$ac_c_werror_flag" ||
5555 test ! -s conftest.err
5556 } && test -s conftest.$ac_objext; then
5559 $as_echo "$as_me: failed program was:" >&5
5560 sed 's
/^
/|
/' conftest.$ac_ext >&5
5565 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5566 ac_cv_c_compiler_gnu=$ac_compiler_gnu
5569 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
5570 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
5571 if test $ac_compiler_gnu = yes; then
5576 ac_test_CFLAGS=${CFLAGS+set}
5577 ac_save_CFLAGS=$CFLAGS
5578 { $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
5579 $as_echo_n "checking whether $CC accepts -g... " >&6; }
5580 if test "${ac_cv_prog_cc_g+set}" = set; then
5581 $as_echo_n "(cached) " >&6
5583 ac_save_c_werror_flag=$ac_c_werror_flag
5584 ac_c_werror_flag=yes
5587 cat >conftest.$ac_ext <<_ACEOF
5590 cat confdefs.h >>conftest.$ac_ext
5591 cat >>conftest.$ac_ext <<_ACEOF
5592 /* end confdefs.h. */
5602 rm -f conftest.$ac_objext
5603 if { (ac_try="$ac_compile"
5605 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5606 *) ac_try_echo=$ac_try;;
5608 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5609 $as_echo "$ac_try_echo") >&5
5610 (eval "$ac_compile") 2>conftest.er1
5612 grep -v '^
*+' conftest.er1 >conftest.err
5614 cat conftest.err >&5
5615 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5616 (exit $ac_status); } && {
5617 test -z "$ac_c_werror_flag" ||
5618 test ! -s conftest.err
5619 } && test -s conftest.$ac_objext; then
5622 $as_echo "$as_me: failed program was:" >&5
5623 sed 's
/^
/|
/' conftest.$ac_ext >&5
5626 cat >conftest.$ac_ext <<_ACEOF
5629 cat confdefs.h >>conftest.$ac_ext
5630 cat >>conftest.$ac_ext <<_ACEOF
5631 /* end confdefs.h. */
5641 rm -f conftest.$ac_objext
5642 if { (ac_try="$ac_compile"
5644 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5645 *) ac_try_echo=$ac_try;;
5647 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5648 $as_echo "$ac_try_echo") >&5
5649 (eval "$ac_compile") 2>conftest.er1
5651 grep -v '^
*+' conftest.er1 >conftest.err
5653 cat conftest.err >&5
5654 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5655 (exit $ac_status); } && {
5656 test -z "$ac_c_werror_flag" ||
5657 test ! -s conftest.err
5658 } && test -s conftest.$ac_objext; then
5661 $as_echo "$as_me: failed program was:" >&5
5662 sed 's
/^
/|
/' conftest.$ac_ext >&5
5664 ac_c_werror_flag=$ac_save_c_werror_flag
5666 cat >conftest.$ac_ext <<_ACEOF
5669 cat confdefs.h >>conftest.$ac_ext
5670 cat >>conftest.$ac_ext <<_ACEOF
5671 /* end confdefs.h. */
5681 rm -f conftest.$ac_objext
5682 if { (ac_try="$ac_compile"
5684 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5685 *) ac_try_echo=$ac_try;;
5687 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5688 $as_echo "$ac_try_echo") >&5
5689 (eval "$ac_compile") 2>conftest.er1
5691 grep -v '^
*+' conftest.er1 >conftest.err
5693 cat conftest.err >&5
5694 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5695 (exit $ac_status); } && {
5696 test -z "$ac_c_werror_flag" ||
5697 test ! -s conftest.err
5698 } && test -s conftest.$ac_objext; then
5701 $as_echo "$as_me: failed program was:" >&5
5702 sed 's
/^
/|
/' conftest.$ac_ext >&5
5707 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5710 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5713 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5714 ac_c_werror_flag=$ac_save_c_werror_flag
5716 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
5717 $as_echo "$ac_cv_prog_cc_g" >&6; }
5718 if test "$ac_test_CFLAGS" = set; then
5719 CFLAGS=$ac_save_CFLAGS
5720 elif test $ac_cv_prog_cc_g = yes; then
5721 if test "$GCC" = yes; then
5727 if test "$GCC" = yes; then
5733 { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
5734 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
5735 if test "${ac_cv_prog_cc_c89+set}" = set; then
5736 $as_echo_n "(cached) " >&6
5738 ac_cv_prog_cc_c89=no
5740 cat >conftest.$ac_ext <<_ACEOF
5743 cat confdefs.h >>conftest.$ac_ext
5744 cat >>conftest.$ac_ext <<_ACEOF
5745 /* end confdefs.h. */
5748 #include <sys/types.h>
5749 #include <sys/stat.h>
5750 /* Most of the following tests are stolen from RCS 5.7's src
/conf.sh.
*/
5751 struct buf
{ int x
; };
5752 FILE
* (*rcsopen
) (struct buf
*, struct stat
*, int
);
5753 static char
*e
(p
, i
)
5759 static char
*f
(char
* (*g
) (char
**, int
), char
**p
, ...
)
5764 s
= g
(p
, va_arg
(v
,int
));
5769 /* OSF
4.0 Compaq cc is some
sort of almost-ANSI by default. It has
5770 function prototypes and stuff
, but not
'\xHH' hex character constants.
5771 These don
't provoke an error unfortunately, instead are silently treated
5772 as 'x
'. The following induces an error, until -std is added to get
5773 proper ANSI mode. Curiously '\x00'!='x
' always comes out true, for an
5774 array size at least. It's necessary to
write '\x00'==0 to get something
5775 that
's true only with -std. */
5776 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5778 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5779 inside strings and character constants. */
5781 int xlc6_cc_array[FOO(a) == 'x
' ? 1 : -1];
5783 int test (int i, double x);
5784 struct s1 {int (*f) (int a);};
5785 struct s2 {int (*f) (double a);};
5786 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5792 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5797 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5798 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5800 CC="$ac_save_CC $ac_arg"
5801 rm -f conftest.$ac_objext
5802 if { (ac_try="$ac_compile"
5804 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5805 *) ac_try_echo=$ac_try;;
5807 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5808 $as_echo "$ac_try_echo") >&5
5809 (eval "$ac_compile") 2>conftest.er1
5811 grep -v '^
*+' conftest.er1 >conftest.err
5813 cat conftest.err >&5
5814 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5815 (exit $ac_status); } && {
5816 test -z "$ac_c_werror_flag" ||
5817 test ! -s conftest.err
5818 } && test -s conftest.$ac_objext; then
5819 ac_cv_prog_cc_c89=$ac_arg
5821 $as_echo "$as_me: failed program was:" >&5
5822 sed 's
/^
/|
/' conftest.$ac_ext >&5
5827 rm -f core conftest.err conftest.$ac_objext
5828 test "x$ac_cv_prog_cc_c89" != "xno" && break
5830 rm -f conftest.$ac_ext
5835 case "x$ac_cv_prog_cc_c89" in
5837 { $as_echo "$as_me:$LINENO: result: none needed" >&5
5838 $as_echo "none needed" >&6; } ;;
5840 { $as_echo "$as_me:$LINENO: result: unsupported" >&5
5841 $as_echo "unsupported" >&6; } ;;
5843 CC="$CC $ac_cv_prog_cc_c89"
5844 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
5845 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5850 ac_cpp='$CPP $CPPFLAGS'
5851 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.
$ac_ext >&5'
5852 ac_link='$CC -o conftest
$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.
$ac_ext $LIBS >&5'
5853 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5855 depcc="$CC" am_compiler_list=
5857 { $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
5858 $as_echo_n "checking dependency style of $depcc... " >&6; }
5859 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
5860 $as_echo_n "(cached) " >&6
5862 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5863 # We make a subdir and do the tests there. Otherwise we can end up
5864 # making bogus files that we don't know about and never remove. For
5865 # instance it was reported that on HP-UX the gcc test will end up
5866 # making a dummy file named `D' -- because `-MD' means `put the output
5869 # Copy depcomp to subdir because otherwise we won't find it if we're
5870 # using a relative directory.
5871 cp "$am_depcomp" conftest.dir
5873 # We will build objects and dependencies in a subdirectory because
5874 # it helps to detect inapplicable dependency modes. For instance
5875 # both Tru64's cc and ICC support -MD to output dependencies as a
5876 # side effect of compilation, but ICC will put the dependencies in
5877 # the current directory while Tru64 will put them in the object
5881 am_cv_CC_dependencies_compiler_type
=none
5882 if test "$am_compiler_list" = ""; then
5883 am_compiler_list
=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5885 for depmode
in $am_compiler_list; do
5886 # Setup a source with many dependencies, because some compilers
5887 # like to wrap large dependency lists on column 80 (with \), and
5888 # we should not choose a depcomp mode which is confused by this.
5890 # We need to recreate these files for each test, as the compiler may
5891 # overwrite some of them when testing with obscure command lines.
5892 # This happens at least with the AIX C compiler.
5894 for i
in 1 2 3 4 5 6; do
5895 echo '#include "conftst'$i'.h"' >> sub
/conftest.c
5896 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5897 # Solaris 8's {/usr,}/bin/sh.
5898 touch sub
/conftst
$i.h
5900 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5904 # after this tag, mechanisms are not by side-effect, so they'll
5905 # only be used when explicitly requested
5906 if test "x$enable_dependency_tracking" = xyes
; then
5914 # We check with `-c' and `-o' for the sake of the "dashmstdout"
5915 # mode. It turns out that the SunPro C++ compiler does not properly
5916 # handle `-M -o', and we need to detect this.
5917 if depmode
=$depmode \
5918 source=sub
/conftest.c object
=sub
/conftest.
${OBJEXT-o} \
5919 depfile
=sub
/conftest.Po tmpdepfile
=sub
/conftest.TPo \
5920 $SHELL .
/depcomp
$depcc -c -o sub
/conftest.
${OBJEXT-o} sub
/conftest.c \
5921 >/dev
/null
2>conftest.err
&&
5922 grep sub
/conftst1.h sub
/conftest.Po
> /dev
/null
2>&1 &&
5923 grep sub
/conftst6.h sub
/conftest.Po
> /dev
/null
2>&1 &&
5924 grep sub
/conftest.
${OBJEXT-o} sub
/conftest.Po
> /dev
/null
2>&1 &&
5925 ${MAKE-make} -s -f confmf
> /dev
/null
2>&1; then
5926 # icc doesn't choke on unknown options, it will just issue warnings
5927 # or remarks (even with -Werror). So we grep stderr for any message
5928 # that says an option was ignored or not supported.
5929 # When given -MP, icc 7.0 and 7.1 complain thusly:
5930 # icc: Command line warning: ignoring option '-M'; no argument required
5931 # The diagnosis changed in icc 8.0:
5932 # icc: Command line remark: option '-MP' not supported
5933 if (grep 'ignoring option' conftest.err ||
5934 grep 'not supported' conftest.err
) >/dev
/null
2>&1; then :; else
5935 am_cv_CC_dependencies_compiler_type
=$depmode
5944 am_cv_CC_dependencies_compiler_type
=none
5948 { $as_echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
5949 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
5950 CCDEPMODE
=depmode
=$am_cv_CC_dependencies_compiler_type
5953 test "x$enable_dependency_tracking" != xno \
5954 && test "$am_cv_CC_dependencies_compiler_type" = gcc3
; then
5956 am__fastdepCC_FALSE
='#'
5958 am__fastdepCC_TRUE
='#'
5959 am__fastdepCC_FALSE
=
5963 if test "x$CC" != xcc
; then
5964 { $as_echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
5965 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
5967 { $as_echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
5968 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
5970 set dummy
$CC; ac_cc
=`$as_echo "$2" |
5971 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
5972 if { as_var
=ac_cv_prog_cc_
${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then
5973 $as_echo_n "(cached) " >&6
5975 cat >conftest.
$ac_ext <<_ACEOF
5978 cat confdefs.h
>>conftest.
$ac_ext
5979 cat >>conftest.
$ac_ext <<_ACEOF
5980 /* end confdefs.h. */
5990 # Make sure it works both with $CC and with simple cc.
5991 # We do the test twice because some compilers refuse to overwrite an
5992 # existing .o file with -o, though they will create one.
5993 ac_try
='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
5995 if { (case "(($ac_try" in
5996 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5997 *) ac_try_echo=$ac_try;;
5999 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6000 $as_echo "$ac_try_echo") >&5
6001 (eval "$ac_try") 2>&5
6003 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6004 (exit $ac_status); } &&
6005 test -f conftest2.$ac_objext && { (case "(($ac_try" in
6006 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6007 *) ac_try_echo
=$ac_try;;
6009 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
6010 $as_echo "$ac_try_echo") >&5
6011 (eval "$ac_try") 2>&5
6013 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6014 (exit $ac_status); };
6016 eval ac_cv_prog_cc_
${ac_cc}_c_o
=yes
6017 if test "x$CC" != xcc
; then
6018 # Test first that cc exists at all.
6019 if { ac_try
='cc -c conftest.$ac_ext >&5'
6020 { (case "(($ac_try" in
6021 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6022 *) ac_try_echo=$ac_try;;
6024 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6025 $as_echo "$ac_try_echo") >&5
6026 (eval "$ac_try") 2>&5
6028 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6029 (exit $ac_status); }; }; then
6030 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
6032 if { (case "(($ac_try" in
6033 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6034 *) ac_try_echo
=$ac_try;;
6036 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
6037 $as_echo "$ac_try_echo") >&5
6038 (eval "$ac_try") 2>&5
6040 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6041 (exit $ac_status); } &&
6042 test -f conftest2.
$ac_objext && { (case "(($ac_try" in
6043 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6044 *) ac_try_echo=$ac_try;;
6046 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6047 $as_echo "$ac_try_echo") >&5
6048 (eval "$ac_try") 2>&5
6050 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6051 (exit $ac_status); };
6056 # cc exists but doesn't like -o.
6057 eval ac_cv_prog_cc_${ac_cc}_c_o=no
6062 eval ac_cv_prog_cc_${ac_cc}_c_o=no
6064 rm -f core conftest*
6067 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
6068 { $as_echo "$as_me:$LINENO: result: yes" >&5
6069 $as_echo "yes" >&6; }
6071 { $as_echo "$as_me:$LINENO: result: no" >&5
6072 $as_echo "no" >&6; }
6074 cat >>confdefs.h <<\_ACEOF
6075 #define NO_MINUS_C_MINUS_O 1
6080 # FIXME: we rely on the cache variable name because
6081 # there is no other way.
6083 ac_cc=`echo $2 |
sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
6084 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o
`\" != yes"; then
6085 # Losing compiler, so override with the script.
6086 # FIXME: It is wrong to rewrite CC.
6087 # But if we don't then we get into trouble of one sort or another.
6088 # A longer-term fix would be to have automake use am__CC in this case,
6089 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
6090 CC="$am_aux_dir/compile $CC"
6095 # Find the posix library needed on INTERACTIVE UNIX (ISC)
6096 { $as_echo "$as_me:$LINENO: checking for library containing strerror" >&5
6097 $as_echo_n "checking for library containing strerror... " >&6; }
6098 if test "${ac_cv_search_strerror+set}" = set; then
6099 $as_echo_n "(cached) " >&6
6101 ac_func_search_save_LIBS=$LIBS
6102 cat >conftest.$ac_ext <<_ACEOF
6105 cat confdefs.h >>conftest.$ac_ext
6106 cat >>conftest.$ac_ext <<_ACEOF
6107 /* end confdefs.h. */
6109 /* Override any GCC internal prototype to avoid an error.
6110 Use char because int might match the return type of a GCC
6111 builtin and then its argument prototype would still apply. */
6124 for ac_lib in '' cposix; do
6125 if test -z "$ac_lib"; then
6126 ac_res="none required"
6129 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6131 rm -f conftest.$ac_objext conftest$ac_exeext
6132 if { (ac_try="$ac_link"
6134 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6135 *) ac_try_echo
=$ac_try;;
6137 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
6138 $as_echo "$ac_try_echo") >&5
6139 (eval "$ac_link") 2>conftest.er1
6141 grep -v '^ *+' conftest.er1
>conftest.err
6143 cat conftest.err
>&5
6144 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6145 (exit $ac_status); } && {
6146 test -z "$ac_c_werror_flag" ||
6147 test ! -s conftest.err
6148 } && test -s conftest
$ac_exeext && {
6149 test "$cross_compiling" = yes ||
6150 $as_test_x conftest
$ac_exeext
6152 ac_cv_search_strerror
=$ac_res
6154 $as_echo "$as_me: failed program was:" >&5
6155 sed 's/^/| /' conftest.
$ac_ext >&5
6160 rm -rf conftest.dSYM
6161 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
6163 if test "${ac_cv_search_strerror+set}" = set; then
6167 if test "${ac_cv_search_strerror+set}" = set; then
6170 ac_cv_search_strerror
=no
6173 LIBS
=$ac_func_search_save_LIBS
6175 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5
6176 $as_echo "$ac_cv_search_strerror" >&6; }
6177 ac_res
=$ac_cv_search_strerror
6178 if test "$ac_res" != no
; then
6179 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
6185 if test -n "$ac_tool_prefix"; then
6186 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6187 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
6188 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6189 $as_echo_n "checking for $ac_word... " >&6; }
6190 if test "${ac_cv_prog_RANLIB+set}" = set; then
6191 $as_echo_n "(cached) " >&6
6193 if test -n "$RANLIB"; then
6194 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
6196 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6200 test -z "$as_dir" && as_dir
=.
6201 for ac_exec_ext
in '' $ac_executable_extensions; do
6202 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6203 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
6204 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6213 RANLIB
=$ac_cv_prog_RANLIB
6214 if test -n "$RANLIB"; then
6215 { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5
6216 $as_echo "$RANLIB" >&6; }
6218 { $as_echo "$as_me:$LINENO: result: no" >&5
6219 $as_echo "no" >&6; }
6224 if test -z "$ac_cv_prog_RANLIB"; then
6225 ac_ct_RANLIB
=$RANLIB
6226 # Extract the first word of "ranlib", so it can be a program name with args.
6227 set dummy ranlib
; ac_word
=$2
6228 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6229 $as_echo_n "checking for $ac_word... " >&6; }
6230 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6231 $as_echo_n "(cached) " >&6
6233 if test -n "$ac_ct_RANLIB"; then
6234 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
6236 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6240 test -z "$as_dir" && as_dir
=.
6241 for ac_exec_ext
in '' $ac_executable_extensions; do
6242 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6243 ac_cv_prog_ac_ct_RANLIB
="ranlib"
6244 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6253 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
6254 if test -n "$ac_ct_RANLIB"; then
6255 { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6256 $as_echo "$ac_ct_RANLIB" >&6; }
6258 { $as_echo "$as_me:$LINENO: result: no" >&5
6259 $as_echo "no" >&6; }
6262 if test "x$ac_ct_RANLIB" = x
; then
6265 case $cross_compiling:$ac_tool_warned in
6267 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6268 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6269 ac_tool_warned
=yes ;;
6271 RANLIB
=$ac_ct_RANLIB
6274 RANLIB
="$ac_cv_prog_RANLIB"
6277 { $as_echo "$as_me:$LINENO: checking whether ln -s works" >&5
6278 $as_echo_n "checking whether ln -s works... " >&6; }
6280 if test "$LN_S" = "ln -s"; then
6281 { $as_echo "$as_me:$LINENO: result: yes" >&5
6282 $as_echo "yes" >&6; }
6284 { $as_echo "$as_me:$LINENO: result: no, using $LN_S" >&5
6285 $as_echo "no, using $LN_S" >&6; }
6288 # Check whether --enable-largefile was given.
6289 if test "${enable_largefile+set}" = set; then
6290 enableval
=$enable_largefile;
6293 if test "$enable_largefile" != no
; then
6295 { $as_echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
6296 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
6297 if test "${ac_cv_sys_largefile_CC+set}" = set; then
6298 $as_echo_n "(cached) " >&6
6300 ac_cv_sys_largefile_CC
=no
6301 if test "$GCC" != yes; then
6304 # IRIX 6.2 and later do not support large files by default,
6305 # so use the C compiler's -n32 option if that helps.
6306 cat >conftest.
$ac_ext <<_ACEOF
6309 cat confdefs.h
>>conftest.
$ac_ext
6310 cat >>conftest.
$ac_ext <<_ACEOF
6311 /* end confdefs.h. */
6312 #include <sys/types.h>
6313 /* Check that off_t can represent 2**63 - 1 correctly.
6314 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6315 since some C++ compilers masquerading as C compilers
6316 incorrectly reject 9223372036854775807. */
6317 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6318 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6319 && LARGE_OFF_T % 2147483647 == 1)
6329 rm -f conftest.
$ac_objext
6330 if { (ac_try
="$ac_compile"
6332 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6333 *) ac_try_echo=$ac_try;;
6335 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6336 $as_echo "$ac_try_echo") >&5
6337 (eval "$ac_compile") 2>conftest.er1
6339 grep -v '^ *+' conftest.er1 >conftest.err
6341 cat conftest.err >&5
6342 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6343 (exit $ac_status); } && {
6344 test -z "$ac_c_werror_flag" ||
6345 test ! -s conftest.err
6346 } && test -s conftest.$ac_objext; then
6349 $as_echo "$as_me: failed program was:" >&5
6350 sed 's/^/| /' conftest.$ac_ext >&5
6355 rm -f core conftest.err conftest.$ac_objext
6357 rm -f conftest.$ac_objext
6358 if { (ac_try="$ac_compile"
6360 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6361 *) ac_try_echo
=$ac_try;;
6363 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
6364 $as_echo "$ac_try_echo") >&5
6365 (eval "$ac_compile") 2>conftest.er1
6367 grep -v '^ *+' conftest.er1
>conftest.err
6369 cat conftest.err
>&5
6370 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6371 (exit $ac_status); } && {
6372 test -z "$ac_c_werror_flag" ||
6373 test ! -s conftest.err
6374 } && test -s conftest.
$ac_objext; then
6375 ac_cv_sys_largefile_CC
=' -n32'; break
6377 $as_echo "$as_me: failed program was:" >&5
6378 sed 's/^/| /' conftest.
$ac_ext >&5
6383 rm -f core conftest.err conftest.
$ac_objext
6387 rm -f conftest.
$ac_ext
6390 { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
6391 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
6392 if test "$ac_cv_sys_largefile_CC" != no
; then
6393 CC
=$CC$ac_cv_sys_largefile_CC
6396 { $as_echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
6397 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
6398 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
6399 $as_echo_n "(cached) " >&6
6402 cat >conftest.
$ac_ext <<_ACEOF
6405 cat confdefs.h
>>conftest.
$ac_ext
6406 cat >>conftest.
$ac_ext <<_ACEOF
6407 /* end confdefs.h. */
6408 #include <sys/types.h>
6409 /* Check that off_t can represent 2**63 - 1 correctly.
6410 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6411 since some C++ compilers masquerading as C compilers
6412 incorrectly reject 9223372036854775807. */
6413 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6414 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6415 && LARGE_OFF_T % 2147483647 == 1)
6425 rm -f conftest.
$ac_objext
6426 if { (ac_try
="$ac_compile"
6428 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6429 *) ac_try_echo=$ac_try;;
6431 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6432 $as_echo "$ac_try_echo") >&5
6433 (eval "$ac_compile") 2>conftest.er1
6435 grep -v '^ *+' conftest.er1 >conftest.err
6437 cat conftest.err >&5
6438 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6439 (exit $ac_status); } && {
6440 test -z "$ac_c_werror_flag" ||
6441 test ! -s conftest.err
6442 } && test -s conftest.$ac_objext; then
6443 ac_cv_sys_file_offset_bits=no; break
6445 $as_echo "$as_me: failed program was:" >&5
6446 sed 's/^/| /' conftest.$ac_ext >&5
6451 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6452 cat >conftest.$ac_ext <<_ACEOF
6455 cat confdefs.h >>conftest.$ac_ext
6456 cat >>conftest.$ac_ext <<_ACEOF
6457 /* end confdefs.h. */
6458 #define _FILE_OFFSET_BITS 64
6459 #include <sys/types.h>
6460 /* Check that off_t can represent 2**63 - 1 correctly.
6461 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6462 since some C++ compilers masquerading as C compilers
6463 incorrectly reject 9223372036854775807. */
6464 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6465 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6466 && LARGE_OFF_T % 2147483647 == 1)
6476 rm -f conftest.$ac_objext
6477 if { (ac_try="$ac_compile"
6479 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6480 *) ac_try_echo
=$ac_try;;
6482 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
6483 $as_echo "$ac_try_echo") >&5
6484 (eval "$ac_compile") 2>conftest.er1
6486 grep -v '^ *+' conftest.er1
>conftest.err
6488 cat conftest.err
>&5
6489 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6490 (exit $ac_status); } && {
6491 test -z "$ac_c_werror_flag" ||
6492 test ! -s conftest.err
6493 } && test -s conftest.
$ac_objext; then
6494 ac_cv_sys_file_offset_bits
=64; break
6496 $as_echo "$as_me: failed program was:" >&5
6497 sed 's/^/| /' conftest.
$ac_ext >&5
6502 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6503 ac_cv_sys_file_offset_bits
=unknown
6507 { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
6508 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
6509 case $ac_cv_sys_file_offset_bits in #(
6512 cat >>confdefs.h
<<_ACEOF
6513 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
6518 if test $ac_cv_sys_file_offset_bits = unknown
; then
6519 { $as_echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
6520 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
6521 if test "${ac_cv_sys_large_files+set}" = set; then
6522 $as_echo_n "(cached) " >&6
6525 cat >conftest.
$ac_ext <<_ACEOF
6528 cat confdefs.h
>>conftest.
$ac_ext
6529 cat >>conftest.
$ac_ext <<_ACEOF
6530 /* end confdefs.h. */
6531 #include <sys/types.h>
6532 /* Check that off_t can represent 2**63 - 1 correctly.
6533 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6534 since some C++ compilers masquerading as C compilers
6535 incorrectly reject 9223372036854775807. */
6536 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6537 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6538 && LARGE_OFF_T % 2147483647 == 1)
6548 rm -f conftest.
$ac_objext
6549 if { (ac_try
="$ac_compile"
6551 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6552 *) ac_try_echo=$ac_try;;
6554 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6555 $as_echo "$ac_try_echo") >&5
6556 (eval "$ac_compile") 2>conftest.er1
6558 grep -v '^ *+' conftest.er1 >conftest.err
6560 cat conftest.err >&5
6561 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6562 (exit $ac_status); } && {
6563 test -z "$ac_c_werror_flag" ||
6564 test ! -s conftest.err
6565 } && test -s conftest.$ac_objext; then
6566 ac_cv_sys_large_files=no; break
6568 $as_echo "$as_me: failed program was:" >&5
6569 sed 's/^/| /' conftest.$ac_ext >&5
6574 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6575 cat >conftest.$ac_ext <<_ACEOF
6578 cat confdefs.h >>conftest.$ac_ext
6579 cat >>conftest.$ac_ext <<_ACEOF
6580 /* end confdefs.h. */
6581 #define _LARGE_FILES 1
6582 #include <sys/types.h>
6583 /* Check that off_t can represent 2**63 - 1 correctly.
6584 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6585 since some C++ compilers masquerading as C compilers
6586 incorrectly reject 9223372036854775807. */
6587 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6588 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6589 && LARGE_OFF_T % 2147483647 == 1)
6599 rm -f conftest.$ac_objext
6600 if { (ac_try="$ac_compile"
6602 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6603 *) ac_try_echo
=$ac_try;;
6605 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
6606 $as_echo "$ac_try_echo") >&5
6607 (eval "$ac_compile") 2>conftest.er1
6609 grep -v '^ *+' conftest.er1
>conftest.err
6611 cat conftest.err
>&5
6612 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6613 (exit $ac_status); } && {
6614 test -z "$ac_c_werror_flag" ||
6615 test ! -s conftest.err
6616 } && test -s conftest.
$ac_objext; then
6617 ac_cv_sys_large_files
=1; break
6619 $as_echo "$as_me: failed program was:" >&5
6620 sed 's/^/| /' conftest.
$ac_ext >&5
6625 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6626 ac_cv_sys_large_files
=unknown
6630 { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
6631 $as_echo "$ac_cv_sys_large_files" >&6; }
6632 case $ac_cv_sys_large_files in #(
6635 cat >>confdefs.h
<<_ACEOF
6636 #define _LARGE_FILES $ac_cv_sys_large_files
6646 # Extract the first word of "perl", so it can be a program name with args.
6647 set dummy perl
; ac_word
=$2
6648 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6649 $as_echo_n "checking for $ac_word... " >&6; }
6650 if test "${ac_cv_path_PERL+set}" = set; then
6651 $as_echo_n "(cached) " >&6
6655 ac_cv_path_PERL
="$PERL" # Let the user override the test with a path.
6658 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6662 test -z "$as_dir" && as_dir
=.
6663 for ac_exec_ext
in '' $ac_executable_extensions; do
6664 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6665 ac_cv_path_PERL
="$as_dir/$ac_word$ac_exec_ext"
6666 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6673 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL
="no"
6677 PERL
=$ac_cv_path_PERL
6678 if test -n "$PERL"; then
6679 { $as_echo "$as_me:$LINENO: result: $PERL" >&5
6680 $as_echo "$PERL" >&6; }
6682 { $as_echo "$as_me:$LINENO: result: no" >&5
6683 $as_echo "no" >&6; }
6687 # Extract the first word of "csh", so it can be a program name with args.
6688 set dummy csh
; ac_word
=$2
6689 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6690 $as_echo_n "checking for $ac_word... " >&6; }
6691 if test "${ac_cv_path_CSH+set}" = set; then
6692 $as_echo_n "(cached) " >&6
6696 ac_cv_path_CSH
="$CSH" # Let the user override the test with a path.
6699 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6703 test -z "$as_dir" && as_dir
=.
6704 for ac_exec_ext
in '' $ac_executable_extensions; do
6705 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6706 ac_cv_path_CSH
="$as_dir/$ac_word$ac_exec_ext"
6707 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6714 test -z "$ac_cv_path_CSH" && ac_cv_path_CSH
="no"
6719 if test -n "$CSH"; then
6720 { $as_echo "$as_me:$LINENO: result: $CSH" >&5
6721 $as_echo "$CSH" >&6; }
6723 { $as_echo "$as_me:$LINENO: result: no" >&5
6724 $as_echo "no" >&6; }
6728 # for contrib/rcs2log.sh & src/cvsbug.in.
6729 # Extract the first word of "mktemp", so it can be a program name with args.
6730 set dummy mktemp
; ac_word
=$2
6731 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6732 $as_echo_n "checking for $ac_word... " >&6; }
6733 if test "${ac_cv_path_MKTEMP+set}" = set; then
6734 $as_echo_n "(cached) " >&6
6738 ac_cv_path_MKTEMP
="$MKTEMP" # Let the user override the test with a path.
6741 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6745 test -z "$as_dir" && as_dir
=.
6746 for ac_exec_ext
in '' $ac_executable_extensions; do
6747 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6748 ac_cv_path_MKTEMP
="$as_dir/$ac_word$ac_exec_ext"
6749 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6756 test -z "$ac_cv_path_MKTEMP" && ac_cv_path_MKTEMP
="mktemp"
6760 MKTEMP
=$ac_cv_path_MKTEMP
6761 if test -n "$MKTEMP"; then
6762 { $as_echo "$as_me:$LINENO: result: $MKTEMP" >&5
6763 $as_echo "$MKTEMP" >&6; }
6765 { $as_echo "$as_me:$LINENO: result: no" >&5
6766 $as_echo "no" >&6; }
6770 if test x
"$MKTEMP" = xmktemp
; then
6771 MKTEMP_SH_FUNCTION
=$srcdir/mktemp.sh
6773 MKTEMP_SH_FUNCTION
=/dev
/null
6777 # Extract the first word of "sendmail", so it can be a program name with args.
6778 set dummy sendmail
; ac_word
=$2
6779 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6780 $as_echo_n "checking for $ac_word... " >&6; }
6781 if test "${ac_cv_path_SENDMAIL+set}" = set; then
6782 $as_echo_n "(cached) " >&6
6786 ac_cv_path_SENDMAIL
="$SENDMAIL" # Let the user override the test with a path.
6789 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6790 as_dummy
="$PATH:/usr/sbin:/usr/lib"
6791 for as_dir
in $as_dummy
6794 test -z "$as_dir" && as_dir
=.
6795 for ac_exec_ext
in '' $ac_executable_extensions; do
6796 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6797 ac_cv_path_SENDMAIL
="$as_dir/$ac_word$ac_exec_ext"
6798 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6805 test -z "$ac_cv_path_SENDMAIL" && ac_cv_path_SENDMAIL
="no"
6809 SENDMAIL
=$ac_cv_path_SENDMAIL
6810 if test -n "$SENDMAIL"; then
6811 { $as_echo "$as_me:$LINENO: result: $SENDMAIL" >&5
6812 $as_echo "$SENDMAIL" >&6; }
6814 { $as_echo "$as_me:$LINENO: result: no" >&5
6815 $as_echo "no" >&6; }
6820 # Extract the first word of "pr", so it can be a program name with args.
6821 set dummy
pr; ac_word
=$2
6822 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6823 $as_echo_n "checking for $ac_word... " >&6; }
6824 if test "${ac_cv_path_PR+set}" = set; then
6825 $as_echo_n "(cached) " >&6
6829 ac_cv_path_PR
="$PR" # Let the user override the test with a path.
6832 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6836 test -z "$as_dir" && as_dir
=.
6837 for ac_exec_ext
in '' $ac_executable_extensions; do
6838 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6839 ac_cv_path_PR
="$as_dir/$ac_word$ac_exec_ext"
6840 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6847 test -z "$ac_cv_path_PR" && ac_cv_path_PR
="no"
6852 if test -n "$PR"; then
6853 { $as_echo "$as_me:$LINENO: result: $PR" >&5
6854 $as_echo "$PR" >&6; }
6856 { $as_echo "$as_me:$LINENO: result: no" >&5
6857 $as_echo "no" >&6; }
6861 if test x
"$PR" != xno
; then
6863 cat >>confdefs.h
<<_ACEOF
6864 #define PR_PROGRAM "$PR"
6869 missing_dir
=`cd $ac_aux_dir && pwd`
6870 glocs
="$PATH:/usr/local/bin:/usr/contrib/bin:/usr/gnu/bin:/local/bin:/local/gnu/bin:/gnu/bin"
6871 for ac_prog
in groff roff
6873 # Extract the first word of "$ac_prog", so it can be a program name with args.
6874 set dummy
$ac_prog; ac_word
=$2
6875 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6876 $as_echo_n "checking for $ac_word... " >&6; }
6877 if test "${ac_cv_path_ROFF+set}" = set; then
6878 $as_echo_n "(cached) " >&6
6882 ac_cv_path_ROFF
="$ROFF" # Let the user override the test with a path.
6885 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6886 for as_dir
in $glocs
6889 test -z "$as_dir" && as_dir
=.
6890 for ac_exec_ext
in '' $ac_executable_extensions; do
6891 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6892 ac_cv_path_ROFF
="$as_dir/$ac_word$ac_exec_ext"
6893 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6903 ROFF
=$ac_cv_path_ROFF
6904 if test -n "$ROFF"; then
6905 { $as_echo "$as_me:$LINENO: result: $ROFF" >&5
6906 $as_echo "$ROFF" >&6; }
6908 { $as_echo "$as_me:$LINENO: result: no" >&5
6909 $as_echo "no" >&6; }
6913 test -n "$ROFF" && break
6915 test -n "$ROFF" || ROFF
="$missing_dir/missing roff"
6917 # Extract the first word of "ps2pdf", so it can be a program name with args.
6918 set dummy ps2pdf
; ac_word
=$2
6919 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6920 $as_echo_n "checking for $ac_word... " >&6; }
6921 if test "${ac_cv_path_PS2PDF+set}" = set; then
6922 $as_echo_n "(cached) " >&6
6926 ac_cv_path_PS2PDF
="$PS2PDF" # Let the user override the test with a path.
6929 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6933 test -z "$as_dir" && as_dir
=.
6934 for ac_exec_ext
in '' $ac_executable_extensions; do
6935 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6936 ac_cv_path_PS2PDF
="$as_dir/$ac_word$ac_exec_ext"
6937 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6944 test -z "$ac_cv_path_PS2PDF" && ac_cv_path_PS2PDF
="$missing_dir/missing ps2pdf"
6948 PS2PDF
=$ac_cv_path_PS2PDF
6949 if test -n "$PS2PDF"; then
6950 { $as_echo "$as_me:$LINENO: result: $PS2PDF" >&5
6951 $as_echo "$PS2PDF" >&6; }
6953 { $as_echo "$as_me:$LINENO: result: no" >&5
6954 $as_echo "no" >&6; }
6958 # Extract the first word of "texi2dvi", so it can be a program name with args.
6959 set dummy texi2dvi
; ac_word
=$2
6960 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6961 $as_echo_n "checking for $ac_word... " >&6; }
6962 if test "${ac_cv_path_TEXI2DVI+set}" = set; then
6963 $as_echo_n "(cached) " >&6
6967 ac_cv_path_TEXI2DVI
="$TEXI2DVI" # Let the user override the test with a path.
6970 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6974 test -z "$as_dir" && as_dir
=.
6975 for ac_exec_ext
in '' $ac_executable_extensions; do
6976 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6977 ac_cv_path_TEXI2DVI
="$as_dir/$ac_word$ac_exec_ext"
6978 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6985 test -z "$ac_cv_path_TEXI2DVI" && ac_cv_path_TEXI2DVI
="$missing_dir/missing texi2dvi"
6989 TEXI2DVI
=$ac_cv_path_TEXI2DVI
6990 if test -n "$TEXI2DVI"; then
6991 { $as_echo "$as_me:$LINENO: result: $TEXI2DVI" >&5
6992 $as_echo "$TEXI2DVI" >&6; }
6994 { $as_echo "$as_me:$LINENO: result: no" >&5
6995 $as_echo "no" >&6; }
7000 { $as_echo "$as_me:$LINENO: checking whether #! works in shell scripts" >&5
7001 $as_echo_n "checking whether #! works in shell scripts... " >&6; }
7002 if test "${ac_cv_sys_interpreter+set}" = set; then
7003 $as_echo_n "(cached) " >&6
7009 (SHELL
=/bin
/sh
; export SHELL
; .
/conftest
>/dev
/null
2>&1)
7010 if test $?
-ne 69; then
7011 ac_cv_sys_interpreter
=yes
7013 ac_cv_sys_interpreter
=no
7017 { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_interpreter" >&5
7018 $as_echo "$ac_cv_sys_interpreter" >&6; }
7019 interpval
=$ac_cv_sys_interpreter
7021 if test X
"$ac_cv_sys_interpreter" != X
"yes" ; then
7022 # silly trick to avoid problems in AC macros...
7023 ac_msg
='perl scripts using #! may not be invoked properly'
7024 { $as_echo "$as_me:$LINENO: WARNING: $ac_msg" >&5
7025 $as_echo "$as_me: WARNING: $ac_msg" >&2;}
7028 # BSD's logo is a devil for a reason, hey?
7029 { $as_echo "$as_me:$LINENO: checking for BSD VPATH bug in make" >&5
7030 $as_echo_n "checking for BSD VPATH bug in make... " >&6; }
7031 if test "${ccvs_cv_bsd_make_vpath_bug+set}" = set; then
7032 $as_echo_n "(cached) " >&6
7034 if test ! -d ac_test_dir
; then
7035 { ac_try
='mkdir ac_test_dir'
7036 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7039 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7040 (exit $ac_status); }; }
7042 cat >conftestmake
<<EOF
7044 ac_test_target: ac_test_dep
7045 echo BSD VPATH bug present >&2
7046 ac_test_dep: ac_test_dep_dep
7048 touch ac_test_dir
/ac_test_dep_dep
7049 touch ac_test_dir
/ac_test_dep
7050 touch ac_test_target
7051 # Don't know why, but the following test doesn't work under FreeBSD 4.2
7052 # without this sleep command
7054 if { ac_try
='make -f conftestmake 2>&1 >/dev/null |grep ^BSD\ VPATH\ bug\ present\$ >/dev/null'
7055 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7058 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7059 (exit $ac_status); }; } ; then
7060 ccvs_cv_bsd_make_vpath_bug
=yes
7062 ccvs_cv_bsd_make_vpath_bug
=no
7064 { ac_try
='rm -rf ac_test_dir ac_test_target conftestmake'
7065 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7068 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7069 (exit $ac_status); }; }
7071 { $as_echo "$as_me:$LINENO: result: $ccvs_cv_bsd_make_vpath_bug" >&5
7072 $as_echo "$ccvs_cv_bsd_make_vpath_bug" >&6; }
7073 # We also don't need to worry about the bug when $srcdir = $builddir
7075 test $ccvs_cv_bsd_make_vpath_bug = no \
7076 ||
test $srcdir = .
; then
7077 MAKE_TARGETS_IN_VPATH_TRUE
=
7078 MAKE_TARGETS_IN_VPATH_FALSE
='#'
7080 MAKE_TARGETS_IN_VPATH_TRUE
='#'
7081 MAKE_TARGETS_IN_VPATH_FALSE
=
7091 for ac_hdr
in dirent.h sys
/ndir.h sys
/dir.h ndir.h
; do
7092 as_ac_Header
=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
7093 { $as_echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
7094 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
7095 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7096 $as_echo_n "(cached) " >&6
7098 cat >conftest.
$ac_ext <<_ACEOF
7101 cat confdefs.h
>>conftest.
$ac_ext
7102 cat >>conftest.
$ac_ext <<_ACEOF
7103 /* end confdefs.h. */
7104 #include <sys/types.h>
7116 rm -f conftest.
$ac_objext
7117 if { (ac_try
="$ac_compile"
7119 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7120 *) ac_try_echo=$ac_try;;
7122 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7123 $as_echo "$ac_try_echo") >&5
7124 (eval "$ac_compile") 2>conftest.er1
7126 grep -v '^ *+' conftest.er1 >conftest.err
7128 cat conftest.err >&5
7129 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7130 (exit $ac_status); } && {
7131 test -z "$ac_c_werror_flag" ||
7132 test ! -s conftest.err
7133 } && test -s conftest.$ac_objext; then
7134 eval "$as_ac_Header=yes"
7136 $as_echo "$as_me: failed program was:" >&5
7137 sed 's/^/| /' conftest.$ac_ext >&5
7139 eval "$as_ac_Header=no"
7142 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7144 ac_res=`eval 'as_val=${'$as_ac_Header'}
7145 $as_echo "$as_val"'`
7146 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7147 $as_echo "$ac_res" >&6; }
7148 as_val=`eval 'as_val=${'$as_ac_Header'}
7149 $as_echo "$as_val"'`
7150 if test "x$as_val" = x""yes; then
7151 cat >>confdefs.h <<_ACEOF
7152 #define `$as_echo "HAVE_$ac_hdr" |
$as_tr_cpp` 1
7155 ac_header_dirent=$ac_hdr; break
7159 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
7160 if test $ac_header_dirent = dirent.h; then
7161 { $as_echo "$as_me:$LINENO: checking for library containing opendir" >&5
7162 $as_echo_n "checking for library containing opendir... " >&6; }
7163 if test "${ac_cv_search_opendir+set}" = set; then
7164 $as_echo_n "(cached) " >&6
7166 ac_func_search_save_LIBS=$LIBS
7167 cat >conftest.$ac_ext <<_ACEOF
7170 cat confdefs.h >>conftest.$ac_ext
7171 cat >>conftest.$ac_ext <<_ACEOF
7172 /* end confdefs.h. */
7174 /* Override any GCC internal prototype to avoid an error.
7175 Use char because int might match the return type of a GCC
7176 builtin and then its argument prototype would still apply. */
7189 for ac_lib in '' dir; do
7190 if test -z "$ac_lib"; then
7191 ac_res="none required"
7194 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7196 rm -f conftest.$ac_objext conftest$ac_exeext
7197 if { (ac_try="$ac_link"
7199 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7200 *) ac_try_echo
=$ac_try;;
7202 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
7203 $as_echo "$ac_try_echo") >&5
7204 (eval "$ac_link") 2>conftest.er1
7206 grep -v '^ *+' conftest.er1
>conftest.err
7208 cat conftest.err
>&5
7209 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7210 (exit $ac_status); } && {
7211 test -z "$ac_c_werror_flag" ||
7212 test ! -s conftest.err
7213 } && test -s conftest
$ac_exeext && {
7214 test "$cross_compiling" = yes ||
7215 $as_test_x conftest
$ac_exeext
7217 ac_cv_search_opendir
=$ac_res
7219 $as_echo "$as_me: failed program was:" >&5
7220 sed 's/^/| /' conftest.
$ac_ext >&5
7225 rm -rf conftest.dSYM
7226 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
7228 if test "${ac_cv_search_opendir+set}" = set; then
7232 if test "${ac_cv_search_opendir+set}" = set; then
7235 ac_cv_search_opendir
=no
7238 LIBS
=$ac_func_search_save_LIBS
7240 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
7241 $as_echo "$ac_cv_search_opendir" >&6; }
7242 ac_res
=$ac_cv_search_opendir
7243 if test "$ac_res" != no
; then
7244 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
7249 { $as_echo "$as_me:$LINENO: checking for library containing opendir" >&5
7250 $as_echo_n "checking for library containing opendir... " >&6; }
7251 if test "${ac_cv_search_opendir+set}" = set; then
7252 $as_echo_n "(cached) " >&6
7254 ac_func_search_save_LIBS
=$LIBS
7255 cat >conftest.
$ac_ext <<_ACEOF
7258 cat confdefs.h
>>conftest.
$ac_ext
7259 cat >>conftest.
$ac_ext <<_ACEOF
7260 /* end confdefs.h. */
7262 /* Override any GCC internal prototype to avoid an error.
7263 Use char because int might match the return type of a GCC
7264 builtin and then its argument prototype would still apply. */
7277 for ac_lib
in '' x
; do
7278 if test -z "$ac_lib"; then
7279 ac_res
="none required"
7282 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
7284 rm -f conftest.
$ac_objext conftest
$ac_exeext
7285 if { (ac_try
="$ac_link"
7287 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7288 *) ac_try_echo=$ac_try;;
7290 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7291 $as_echo "$ac_try_echo") >&5
7292 (eval "$ac_link") 2>conftest.er1
7294 grep -v '^ *+' conftest.er1 >conftest.err
7296 cat conftest.err >&5
7297 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7298 (exit $ac_status); } && {
7299 test -z "$ac_c_werror_flag" ||
7300 test ! -s conftest.err
7301 } && test -s conftest$ac_exeext && {
7302 test "$cross_compiling" = yes ||
7303 $as_test_x conftest$ac_exeext
7305 ac_cv_search_opendir=$ac_res
7307 $as_echo "$as_me: failed program was:" >&5
7308 sed 's/^/| /' conftest.$ac_ext >&5
7313 rm -rf conftest.dSYM
7314 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7316 if test "${ac_cv_search_opendir+set}" = set; then
7320 if test "${ac_cv_search_opendir+set}" = set; then
7323 ac_cv_search_opendir=no
7326 LIBS=$ac_func_search_save_LIBS
7328 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
7329 $as_echo "$ac_cv_search_opendir" >&6; }
7330 ac_res=$ac_cv_search_opendir
7331 if test "$ac_res" != no; then
7332 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7338 { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
7339 $as_echo_n "checking for ANSI C header files... " >&6; }
7340 if test "${ac_cv_header_stdc+set}" = set; then
7341 $as_echo_n "(cached) " >&6
7343 cat >conftest.$ac_ext <<_ACEOF
7346 cat confdefs.h >>conftest.$ac_ext
7347 cat >>conftest.$ac_ext <<_ACEOF
7348 /* end confdefs.h. */
7362 rm -f conftest.$ac_objext
7363 if { (ac_try="$ac_compile"
7365 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7366 *) ac_try_echo
=$ac_try;;
7368 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
7369 $as_echo "$ac_try_echo") >&5
7370 (eval "$ac_compile") 2>conftest.er1
7372 grep -v '^ *+' conftest.er1
>conftest.err
7374 cat conftest.err
>&5
7375 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7376 (exit $ac_status); } && {
7377 test -z "$ac_c_werror_flag" ||
7378 test ! -s conftest.err
7379 } && test -s conftest.
$ac_objext; then
7380 ac_cv_header_stdc
=yes
7382 $as_echo "$as_me: failed program was:" >&5
7383 sed 's/^/| /' conftest.
$ac_ext >&5
7385 ac_cv_header_stdc
=no
7388 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7390 if test $ac_cv_header_stdc = yes; then
7391 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7392 cat >conftest.
$ac_ext <<_ACEOF
7395 cat confdefs.h
>>conftest.
$ac_ext
7396 cat >>conftest.
$ac_ext <<_ACEOF
7397 /* end confdefs.h. */
7401 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7402 $EGREP "memchr" >/dev
/null
2>&1; then
7405 ac_cv_header_stdc
=no
7411 if test $ac_cv_header_stdc = yes; then
7412 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7413 cat >conftest.
$ac_ext <<_ACEOF
7416 cat confdefs.h
>>conftest.
$ac_ext
7417 cat >>conftest.
$ac_ext <<_ACEOF
7418 /* end confdefs.h. */
7422 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7423 $EGREP "free" >/dev
/null
2>&1; then
7426 ac_cv_header_stdc
=no
7432 if test $ac_cv_header_stdc = yes; then
7433 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7434 if test "$cross_compiling" = yes; then
7437 cat >conftest.
$ac_ext <<_ACEOF
7440 cat confdefs.h
>>conftest.
$ac_ext
7441 cat >>conftest.
$ac_ext <<_ACEOF
7442 /* end confdefs.h. */
7445 #if ((' ' & 0x0FF) == 0x020)
7446 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7447 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7449 # define ISLOWER(c) \
7450 (('a' <= (c) && (c) <= 'i') \
7451 || ('j' <= (c) && (c) <= 'r') \
7452 || ('s' <= (c) && (c) <= 'z'))
7453 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7456 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7461 for (i = 0; i < 256; i++)
7462 if (XOR (islower (i), ISLOWER (i))
7463 || toupper (i) != TOUPPER (i))
7468 rm -f conftest
$ac_exeext
7469 if { (ac_try
="$ac_link"
7471 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7472 *) ac_try_echo=$ac_try;;
7474 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7475 $as_echo "$ac_try_echo") >&5
7476 (eval "$ac_link") 2>&5
7478 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7479 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7480 { (case "(($ac_try" in
7481 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7482 *) ac_try_echo
=$ac_try;;
7484 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
7485 $as_echo "$ac_try_echo") >&5
7486 (eval "$ac_try") 2>&5
7488 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7489 (exit $ac_status); }; }; then
7492 $as_echo "$as_me: program exited with status $ac_status" >&5
7493 $as_echo "$as_me: failed program was:" >&5
7494 sed 's/^/| /' conftest.
$ac_ext >&5
7497 ac_cv_header_stdc
=no
7499 rm -rf conftest.dSYM
7500 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
7506 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
7507 $as_echo "$ac_cv_header_stdc" >&6; }
7508 if test $ac_cv_header_stdc = yes; then
7510 cat >>confdefs.h
<<\_ACEOF
7511 #define STDC_HEADERS 1
7516 { $as_echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
7517 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
7518 if test "${ac_cv_header_sys_wait_h+set}" = set; then
7519 $as_echo_n "(cached) " >&6
7521 cat >conftest.
$ac_ext <<_ACEOF
7524 cat confdefs.h
>>conftest.
$ac_ext
7525 cat >>conftest.
$ac_ext <<_ACEOF
7526 /* end confdefs.h. */
7527 #include <sys/types.h>
7528 #include <sys/wait.h>
7530 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
7533 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
7541 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
7546 rm -f conftest.
$ac_objext
7547 if { (ac_try
="$ac_compile"
7549 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7550 *) ac_try_echo=$ac_try;;
7552 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7553 $as_echo "$ac_try_echo") >&5
7554 (eval "$ac_compile") 2>conftest.er1
7556 grep -v '^ *+' conftest.er1 >conftest.err
7558 cat conftest.err >&5
7559 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7560 (exit $ac_status); } && {
7561 test -z "$ac_c_werror_flag" ||
7562 test ! -s conftest.err
7563 } && test -s conftest.$ac_objext; then
7564 ac_cv_header_sys_wait_h=yes
7566 $as_echo "$as_me: failed program was:" >&5
7567 sed 's/^/| /' conftest.$ac_ext >&5
7569 ac_cv_header_sys_wait_h=no
7572 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7574 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
7575 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
7576 if test $ac_cv_header_sys_wait_h = yes; then
7578 cat >>confdefs.h <<\_ACEOF
7579 #define HAVE_SYS_WAIT_H 1
7615 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" |
$as_tr_sh`
7616 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7617 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
7618 $as_echo_n "checking for $ac_header... " >&6; }
7619 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7620 $as_echo_n "(cached) " >&6
7622 ac_res=`eval 'as_val=${'$as_ac_Header'}
7623 $as_echo "$as_val"'`
7624 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7625 $as_echo "$ac_res" >&6; }
7627 # Is the header compilable?
7628 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
7629 $as_echo_n "checking $ac_header usability... " >&6; }
7630 cat >conftest.$ac_ext <<_ACEOF
7633 cat confdefs.h >>conftest.$ac_ext
7634 cat >>conftest.$ac_ext <<_ACEOF
7635 /* end confdefs.h. */
7636 $ac_includes_default
7637 #include <$ac_header>
7639 rm -f conftest.$ac_objext
7640 if { (ac_try="$ac_compile"
7642 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7643 *) ac_try_echo
=$ac_try;;
7645 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
7646 $as_echo "$ac_try_echo") >&5
7647 (eval "$ac_compile") 2>conftest.er1
7649 grep -v '^ *+' conftest.er1
>conftest.err
7651 cat conftest.err
>&5
7652 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7653 (exit $ac_status); } && {
7654 test -z "$ac_c_werror_flag" ||
7655 test ! -s conftest.err
7656 } && test -s conftest.
$ac_objext; then
7657 ac_header_compiler
=yes
7659 $as_echo "$as_me: failed program was:" >&5
7660 sed 's/^/| /' conftest.
$ac_ext >&5
7662 ac_header_compiler
=no
7665 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7666 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7667 $as_echo "$ac_header_compiler" >&6; }
7669 # Is the header present?
7670 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
7671 $as_echo_n "checking $ac_header presence... " >&6; }
7672 cat >conftest.
$ac_ext <<_ACEOF
7675 cat confdefs.h
>>conftest.
$ac_ext
7676 cat >>conftest.
$ac_ext <<_ACEOF
7677 /* end confdefs.h. */
7678 #include <$ac_header>
7680 if { (ac_try
="$ac_cpp conftest.$ac_ext"
7682 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7683 *) ac_try_echo=$ac_try;;
7685 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7686 $as_echo "$ac_try_echo") >&5
7687 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7689 grep -v '^ *+' conftest.er1 >conftest.err
7691 cat conftest.err >&5
7692 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7693 (exit $ac_status); } >/dev/null && {
7694 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7695 test ! -s conftest.err
7697 ac_header_preproc=yes
7699 $as_echo "$as_me: failed program was:" >&5
7700 sed 's/^/| /' conftest.$ac_ext >&5
7702 ac_header_preproc=no
7705 rm -f conftest.err conftest.$ac_ext
7706 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7707 $as_echo "$ac_header_preproc" >&6; }
7709 # So? What about this header?
7710 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7712 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7713 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7714 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7715 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7716 ac_header_preproc=yes
7719 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7720 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7721 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7722 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7723 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7724 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7725 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7726 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7727 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7728 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7729 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7730 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7732 ## --------------------------------- ##
7733 ## Report this to bug-cvs@nongnu.org ##
7734 ## --------------------------------- ##
7736 ) | sed "s/^/$as_me: WARNING: /" >&2
7739 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
7740 $as_echo_n "checking for $ac_header... " >&6; }
7741 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7742 $as_echo_n "(cached) " >&6
7744 eval "$as_ac_Header=\$ac_header_preproc"
7746 ac_res=`eval 'as_val=${'$as_ac_Header'}
7747 $as_echo "$as_val"'`
7748 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7749 $as_echo "$ac_res" >&6; }
7752 as_val=`eval 'as_val=${'$as_ac_Header'}
7753 $as_echo "$as_val"'`
7754 if test "x$as_val" = x""yes; then
7755 cat >>confdefs.h <<_ACEOF
7756 #define `$as_echo "HAVE_$ac_header" |
$as_tr_cpp` 1
7763 { $as_echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
7764 $as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
7765 if test "${ac_cv_header_stat_broken+set}" = set; then
7766 $as_echo_n "(cached) " >&6
7768 cat >conftest.$ac_ext <<_ACEOF
7771 cat confdefs.h >>conftest.$ac_ext
7772 cat >>conftest.$ac_ext <<_ACEOF
7773 /* end confdefs.h. */
7774 #include <sys/types.h>
7775 #include <sys/stat.h>
7777 #if defined S_ISBLK && defined S_IFDIR
7778 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
7781 #if defined S_ISBLK && defined S_IFCHR
7782 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
7785 #if defined S_ISLNK && defined S_IFREG
7786 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
7789 #if defined S_ISSOCK && defined S_IFREG
7790 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
7794 rm -f conftest.$ac_objext
7795 if { (ac_try="$ac_compile"
7797 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7798 *) ac_try_echo
=$ac_try;;
7800 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
7801 $as_echo "$ac_try_echo") >&5
7802 (eval "$ac_compile") 2>conftest.er1
7804 grep -v '^ *+' conftest.er1
>conftest.err
7806 cat conftest.err
>&5
7807 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7808 (exit $ac_status); } && {
7809 test -z "$ac_c_werror_flag" ||
7810 test ! -s conftest.err
7811 } && test -s conftest.
$ac_objext; then
7812 ac_cv_header_stat_broken
=no
7814 $as_echo "$as_me: failed program was:" >&5
7815 sed 's/^/| /' conftest.
$ac_ext >&5
7817 ac_cv_header_stat_broken
=yes
7820 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7822 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
7823 $as_echo "$ac_cv_header_stat_broken" >&6; }
7824 if test $ac_cv_header_stat_broken = yes; then
7826 cat >>confdefs.h
<<\_ACEOF
7827 #define STAT_MACROS_BROKEN 1
7833 { $as_echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
7834 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
7835 if test "${ac_cv_c_const+set}" = set; then
7836 $as_echo_n "(cached) " >&6
7838 cat >conftest.
$ac_ext <<_ACEOF
7841 cat confdefs.h
>>conftest.
$ac_ext
7842 cat >>conftest.
$ac_ext <<_ACEOF
7843 /* end confdefs.h. */
7848 /* FIXME: Include the comments suggested by Paul. */
7850 /* Ultrix mips cc rejects this. */
7851 typedef int charset[2];
7853 /* SunOS 4.1.1 cc rejects this. */
7854 char const *const *pcpcc;
7856 /* NEC SVR4.0.2 mips cc rejects this. */
7857 struct point {int x, y;};
7858 static struct point const zero = {0,0};
7859 /* AIX XL C 1.02.0.0 rejects this.
7860 It does not let you subtract one const X* pointer from another in
7861 an arm of an if-expression whose if-part is not a constant
7863 const char *g = "string";
7864 pcpcc = &g + (g ? g-g : 0);
7865 /* HPUX 7.0 cc rejects these. */
7867 ppc = (char**) pcpcc;
7868 pcpcc = (char const *const *) ppc;
7869 { /* SCO 3.2v4 cc rejects this. */
7871 char const *s = 0 ? (char *) 0 : (char const *) 0;
7876 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
7878 const int *foo = &x[0];
7881 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
7882 typedef const int *iptr;
7886 { /* AIX XL C 1.02.0.0 rejects this saying
7887 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
7888 struct s { int j; const int *ap[3]; };
7889 struct s *b; b->j = 5;
7891 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
7895 return !cs[0] && !zero.x;
7902 rm -f conftest.
$ac_objext
7903 if { (ac_try
="$ac_compile"
7905 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7906 *) ac_try_echo=$ac_try;;
7908 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7909 $as_echo "$ac_try_echo") >&5
7910 (eval "$ac_compile") 2>conftest.er1
7912 grep -v '^ *+' conftest.er1 >conftest.err
7914 cat conftest.err >&5
7915 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7916 (exit $ac_status); } && {
7917 test -z "$ac_c_werror_flag" ||
7918 test ! -s conftest.err
7919 } && test -s conftest.$ac_objext; then
7922 $as_echo "$as_me: failed program was:" >&5
7923 sed 's/^/| /' conftest.$ac_ext >&5
7928 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7930 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
7931 $as_echo "$ac_cv_c_const" >&6; }
7932 if test $ac_cv_c_const = no; then
7934 cat >>confdefs.h <<\_ACEOF
7940 { $as_echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
7941 $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
7942 if test "${ac_cv_type_uid_t+set}" = set; then
7943 $as_echo_n "(cached) " >&6
7945 cat >conftest.$ac_ext <<_ACEOF
7948 cat confdefs.h >>conftest.$ac_ext
7949 cat >>conftest.$ac_ext <<_ACEOF
7950 /* end confdefs.h. */
7951 #include <sys/types.h>
7954 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7955 $EGREP "uid_t" >/dev/null 2>&1; then
7956 ac_cv_type_uid_t=yes
7963 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
7964 $as_echo "$ac_cv_type_uid_t" >&6; }
7965 if test $ac_cv_type_uid_t = no; then
7967 cat >>confdefs.h <<\_ACEOF
7972 cat >>confdefs.h <<\_ACEOF
7978 { $as_echo "$as_me:$LINENO: checking for mode_t" >&5
7979 $as_echo_n "checking for mode_t... " >&6; }
7980 if test "${ac_cv_type_mode_t+set}" = set; then
7981 $as_echo_n "(cached) " >&6
7983 ac_cv_type_mode_t=no
7984 cat >conftest.$ac_ext <<_ACEOF
7987 cat confdefs.h >>conftest.$ac_ext
7988 cat >>conftest.$ac_ext <<_ACEOF
7989 /* end confdefs.h. */
7990 $ac_includes_default
7994 if (sizeof (mode_t))
8000 rm -f conftest.$ac_objext
8001 if { (ac_try="$ac_compile"
8003 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8004 *) ac_try_echo
=$ac_try;;
8006 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
8007 $as_echo "$ac_try_echo") >&5
8008 (eval "$ac_compile") 2>conftest.er1
8010 grep -v '^ *+' conftest.er1
>conftest.err
8012 cat conftest.err
>&5
8013 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8014 (exit $ac_status); } && {
8015 test -z "$ac_c_werror_flag" ||
8016 test ! -s conftest.err
8017 } && test -s conftest.
$ac_objext; then
8018 cat >conftest.
$ac_ext <<_ACEOF
8021 cat confdefs.h
>>conftest.
$ac_ext
8022 cat >>conftest.
$ac_ext <<_ACEOF
8023 /* end confdefs.h. */
8024 $ac_includes_default
8028 if (sizeof ((mode_t)))
8034 rm -f conftest.
$ac_objext
8035 if { (ac_try
="$ac_compile"
8037 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8038 *) ac_try_echo=$ac_try;;
8040 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8041 $as_echo "$ac_try_echo") >&5
8042 (eval "$ac_compile") 2>conftest.er1
8044 grep -v '^ *+' conftest.er1 >conftest.err
8046 cat conftest.err >&5
8047 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8048 (exit $ac_status); } && {
8049 test -z "$ac_c_werror_flag" ||
8050 test ! -s conftest.err
8051 } && test -s conftest.$ac_objext; then
8054 $as_echo "$as_me: failed program was:" >&5
8055 sed 's/^/| /' conftest.$ac_ext >&5
8057 ac_cv_type_mode_t=yes
8060 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8062 $as_echo "$as_me: failed program was:" >&5
8063 sed 's/^/| /' conftest.$ac_ext >&5
8068 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8070 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
8071 $as_echo "$ac_cv_type_mode_t" >&6; }
8072 if test "x$ac_cv_type_mode_t" = x""yes; then
8076 cat >>confdefs.h <<_ACEOF
8082 { $as_echo "$as_me:$LINENO: checking for pid_t" >&5
8083 $as_echo_n "checking for pid_t... " >&6; }
8084 if test "${ac_cv_type_pid_t+set}" = set; then
8085 $as_echo_n "(cached) " >&6
8088 cat >conftest.$ac_ext <<_ACEOF
8091 cat confdefs.h >>conftest.$ac_ext
8092 cat >>conftest.$ac_ext <<_ACEOF
8093 /* end confdefs.h. */
8094 $ac_includes_default
8104 rm -f conftest.$ac_objext
8105 if { (ac_try="$ac_compile"
8107 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8108 *) ac_try_echo
=$ac_try;;
8110 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
8111 $as_echo "$ac_try_echo") >&5
8112 (eval "$ac_compile") 2>conftest.er1
8114 grep -v '^ *+' conftest.er1
>conftest.err
8116 cat conftest.err
>&5
8117 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8118 (exit $ac_status); } && {
8119 test -z "$ac_c_werror_flag" ||
8120 test ! -s conftest.err
8121 } && test -s conftest.
$ac_objext; then
8122 cat >conftest.
$ac_ext <<_ACEOF
8125 cat confdefs.h
>>conftest.
$ac_ext
8126 cat >>conftest.
$ac_ext <<_ACEOF
8127 /* end confdefs.h. */
8128 $ac_includes_default
8132 if (sizeof ((pid_t)))
8138 rm -f conftest.
$ac_objext
8139 if { (ac_try
="$ac_compile"
8141 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8142 *) ac_try_echo=$ac_try;;
8144 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8145 $as_echo "$ac_try_echo") >&5
8146 (eval "$ac_compile") 2>conftest.er1
8148 grep -v '^ *+' conftest.er1 >conftest.err
8150 cat conftest.err >&5
8151 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8152 (exit $ac_status); } && {
8153 test -z "$ac_c_werror_flag" ||
8154 test ! -s conftest.err
8155 } && test -s conftest.$ac_objext; then
8158 $as_echo "$as_me: failed program was:" >&5
8159 sed 's/^/| /' conftest.$ac_ext >&5
8161 ac_cv_type_pid_t=yes
8164 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8166 $as_echo "$as_me: failed program was:" >&5
8167 sed 's/^/| /' conftest.$ac_ext >&5
8172 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8174 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
8175 $as_echo "$ac_cv_type_pid_t" >&6; }
8176 if test "x$ac_cv_type_pid_t" = x""yes; then
8180 cat >>confdefs.h <<_ACEOF
8186 { $as_echo "$as_me:$LINENO: checking return type of signal handlers" >&5
8187 $as_echo_n "checking return type of signal handlers... " >&6; }
8188 if test "${ac_cv_type_signal+set}" = set; then
8189 $as_echo_n "(cached) " >&6
8191 cat >conftest.$ac_ext <<_ACEOF
8194 cat confdefs.h >>conftest.$ac_ext
8195 cat >>conftest.$ac_ext <<_ACEOF
8196 /* end confdefs.h. */
8197 #include <sys/types.h>
8203 return *(signal (0, 0)) (0) == 1;
8208 rm -f conftest.$ac_objext
8209 if { (ac_try="$ac_compile"
8211 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8212 *) ac_try_echo
=$ac_try;;
8214 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
8215 $as_echo "$ac_try_echo") >&5
8216 (eval "$ac_compile") 2>conftest.er1
8218 grep -v '^ *+' conftest.er1
>conftest.err
8220 cat conftest.err
>&5
8221 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8222 (exit $ac_status); } && {
8223 test -z "$ac_c_werror_flag" ||
8224 test ! -s conftest.err
8225 } && test -s conftest.
$ac_objext; then
8226 ac_cv_type_signal
=int
8228 $as_echo "$as_me: failed program was:" >&5
8229 sed 's/^/| /' conftest.
$ac_ext >&5
8231 ac_cv_type_signal
=void
8234 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8236 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
8237 $as_echo "$ac_cv_type_signal" >&6; }
8239 cat >>confdefs.h
<<_ACEOF
8240 #define RETSIGTYPE $ac_cv_type_signal
8245 { $as_echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5
8246 $as_echo_n "checking for struct stat.st_blksize... " >&6; }
8247 if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then
8248 $as_echo_n "(cached) " >&6
8250 cat >conftest.
$ac_ext <<_ACEOF
8253 cat confdefs.h
>>conftest.
$ac_ext
8254 cat >>conftest.
$ac_ext <<_ACEOF
8255 /* end confdefs.h. */
8256 $ac_includes_default
8260 static struct stat ac_aggr;
8261 if (ac_aggr.st_blksize)
8267 rm -f conftest.
$ac_objext
8268 if { (ac_try
="$ac_compile"
8270 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8271 *) ac_try_echo=$ac_try;;
8273 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8274 $as_echo "$ac_try_echo") >&5
8275 (eval "$ac_compile") 2>conftest.er1
8277 grep -v '^ *+' conftest.er1 >conftest.err
8279 cat conftest.err >&5
8280 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8281 (exit $ac_status); } && {
8282 test -z "$ac_c_werror_flag" ||
8283 test ! -s conftest.err
8284 } && test -s conftest.$ac_objext; then
8285 ac_cv_member_struct_stat_st_blksize=yes
8287 $as_echo "$as_me: failed program was:" >&5
8288 sed 's/^/| /' conftest.$ac_ext >&5
8290 cat >conftest.$ac_ext <<_ACEOF
8293 cat confdefs.h >>conftest.$ac_ext
8294 cat >>conftest.$ac_ext <<_ACEOF
8295 /* end confdefs.h. */
8296 $ac_includes_default
8300 static struct stat ac_aggr;
8301 if (sizeof ac_aggr.st_blksize)
8307 rm -f conftest.$ac_objext
8308 if { (ac_try="$ac_compile"
8310 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8311 *) ac_try_echo
=$ac_try;;
8313 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
8314 $as_echo "$ac_try_echo") >&5
8315 (eval "$ac_compile") 2>conftest.er1
8317 grep -v '^ *+' conftest.er1
>conftest.err
8319 cat conftest.err
>&5
8320 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8321 (exit $ac_status); } && {
8322 test -z "$ac_c_werror_flag" ||
8323 test ! -s conftest.err
8324 } && test -s conftest.
$ac_objext; then
8325 ac_cv_member_struct_stat_st_blksize
=yes
8327 $as_echo "$as_me: failed program was:" >&5
8328 sed 's/^/| /' conftest.
$ac_ext >&5
8330 ac_cv_member_struct_stat_st_blksize
=no
8333 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8336 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8338 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5
8339 $as_echo "$ac_cv_member_struct_stat_st_blksize" >&6; }
8340 if test "x$ac_cv_member_struct_stat_st_blksize" = x
""yes; then
8342 cat >>confdefs.h
<<_ACEOF
8343 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
8349 { $as_echo "$as_me:$LINENO: checking for struct stat.st_rdev" >&5
8350 $as_echo_n "checking for struct stat.st_rdev... " >&6; }
8351 if test "${ac_cv_member_struct_stat_st_rdev+set}" = set; then
8352 $as_echo_n "(cached) " >&6
8354 cat >conftest.
$ac_ext <<_ACEOF
8357 cat confdefs.h
>>conftest.
$ac_ext
8358 cat >>conftest.
$ac_ext <<_ACEOF
8359 /* end confdefs.h. */
8360 $ac_includes_default
8364 static struct stat ac_aggr;
8365 if (ac_aggr.st_rdev)
8371 rm -f conftest.
$ac_objext
8372 if { (ac_try
="$ac_compile"
8374 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8375 *) ac_try_echo=$ac_try;;
8377 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8378 $as_echo "$ac_try_echo") >&5
8379 (eval "$ac_compile") 2>conftest.er1
8381 grep -v '^ *+' conftest.er1 >conftest.err
8383 cat conftest.err >&5
8384 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8385 (exit $ac_status); } && {
8386 test -z "$ac_c_werror_flag" ||
8387 test ! -s conftest.err
8388 } && test -s conftest.$ac_objext; then
8389 ac_cv_member_struct_stat_st_rdev=yes
8391 $as_echo "$as_me: failed program was:" >&5
8392 sed 's/^/| /' conftest.$ac_ext >&5
8394 cat >conftest.$ac_ext <<_ACEOF
8397 cat confdefs.h >>conftest.$ac_ext
8398 cat >>conftest.$ac_ext <<_ACEOF
8399 /* end confdefs.h. */
8400 $ac_includes_default
8404 static struct stat ac_aggr;
8405 if (sizeof ac_aggr.st_rdev)
8411 rm -f conftest.$ac_objext
8412 if { (ac_try="$ac_compile"
8414 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8415 *) ac_try_echo
=$ac_try;;
8417 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
8418 $as_echo "$ac_try_echo") >&5
8419 (eval "$ac_compile") 2>conftest.er1
8421 grep -v '^ *+' conftest.er1
>conftest.err
8423 cat conftest.err
>&5
8424 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8425 (exit $ac_status); } && {
8426 test -z "$ac_c_werror_flag" ||
8427 test ! -s conftest.err
8428 } && test -s conftest.
$ac_objext; then
8429 ac_cv_member_struct_stat_st_rdev
=yes
8431 $as_echo "$as_me: failed program was:" >&5
8432 sed 's/^/| /' conftest.
$ac_ext >&5
8434 ac_cv_member_struct_stat_st_rdev
=no
8437 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8440 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8442 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_rdev" >&5
8443 $as_echo "$ac_cv_member_struct_stat_st_rdev" >&6; }
8444 if test "x$ac_cv_member_struct_stat_st_rdev" = x
""yes; then
8446 cat >>confdefs.h
<<_ACEOF
8447 #define HAVE_STRUCT_STAT_ST_RDEV 1
8454 { $as_echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5
8455 $as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; }
8456 if test "${ac_cv_sys_largefile_source+set}" = set; then
8457 $as_echo_n "(cached) " >&6
8460 cat >conftest.
$ac_ext <<_ACEOF
8463 cat confdefs.h
>>conftest.
$ac_ext
8464 cat >>conftest.
$ac_ext <<_ACEOF
8465 /* end confdefs.h. */
8466 #include <sys/types.h> /* for off_t */
8471 int (*fp) (FILE *, off_t, int) = fseeko;
8472 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
8477 rm -f conftest.
$ac_objext conftest
$ac_exeext
8478 if { (ac_try
="$ac_link"
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_link") 2>conftest.er1
8487 grep -v '^ *+' conftest.er1 >conftest.err
8489 cat conftest.err >&5
8490 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8491 (exit $ac_status); } && {
8492 test -z "$ac_c_werror_flag" ||
8493 test ! -s conftest.err
8494 } && test -s conftest$ac_exeext && {
8495 test "$cross_compiling" = yes ||
8496 $as_test_x conftest$ac_exeext
8498 ac_cv_sys_largefile_source=no; break
8500 $as_echo "$as_me: failed program was:" >&5
8501 sed 's/^/| /' conftest.$ac_ext >&5
8506 rm -rf conftest.dSYM
8507 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8508 conftest$ac_exeext conftest.$ac_ext
8509 cat >conftest.$ac_ext <<_ACEOF
8512 cat confdefs.h >>conftest.$ac_ext
8513 cat >>conftest.$ac_ext <<_ACEOF
8514 /* end confdefs.h. */
8515 #define _LARGEFILE_SOURCE 1
8516 #include <sys/types.h> /* for off_t */
8521 int (*fp) (FILE *, off_t, int) = fseeko;
8522 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
8527 rm -f conftest.$ac_objext conftest$ac_exeext
8528 if { (ac_try="$ac_link"
8530 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8531 *) ac_try_echo
=$ac_try;;
8533 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
8534 $as_echo "$ac_try_echo") >&5
8535 (eval "$ac_link") 2>conftest.er1
8537 grep -v '^ *+' conftest.er1
>conftest.err
8539 cat conftest.err
>&5
8540 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8541 (exit $ac_status); } && {
8542 test -z "$ac_c_werror_flag" ||
8543 test ! -s conftest.err
8544 } && test -s conftest
$ac_exeext && {
8545 test "$cross_compiling" = yes ||
8546 $as_test_x conftest
$ac_exeext
8548 ac_cv_sys_largefile_source
=1; break
8550 $as_echo "$as_me: failed program was:" >&5
8551 sed 's/^/| /' conftest.
$ac_ext >&5
8556 rm -rf conftest.dSYM
8557 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
8558 conftest
$ac_exeext conftest.
$ac_ext
8559 ac_cv_sys_largefile_source
=unknown
8563 { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
8564 $as_echo "$ac_cv_sys_largefile_source" >&6; }
8565 case $ac_cv_sys_largefile_source in #(
8568 cat >>confdefs.h
<<_ACEOF
8569 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
8575 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
8576 # in glibc 2.1.3, but that breaks too many other things.
8577 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
8578 if test $ac_cv_sys_largefile_source != unknown
; then
8580 cat >>confdefs.h
<<\_ACEOF
8581 #define HAVE_FSEEKO 1
8586 if test $ac_cv_func_fseeko = no
; then
8587 case " $LIBOBJS " in
8588 *" fseeko.$ac_objext "* ) ;;
8589 *) LIBOBJS
="$LIBOBJS fseeko.$ac_objext"
8593 case " $LIBOBJS " in
8594 *" ftello.$ac_objext "* ) ;;
8595 *) LIBOBJS
="$LIBOBJS ftello.$ac_objext"
8601 # Replace functions with versions in lib/ when they can't be found.
8607 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
8608 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
8609 $as_echo_n "checking for $ac_func... " >&6; }
8610 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
8611 $as_echo_n "(cached) " >&6
8613 cat >conftest.
$ac_ext <<_ACEOF
8616 cat confdefs.h
>>conftest.
$ac_ext
8617 cat >>conftest.
$ac_ext <<_ACEOF
8618 /* end confdefs.h. */
8619 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8620 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8621 #define $ac_func innocuous_$ac_func
8623 /* System header to define __stub macros and hopefully few prototypes,
8624 which can conflict with char $ac_func (); below.
8625 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8626 <limits.h> exists even on freestanding compilers. */
8629 # include <limits.h>
8631 # include <assert.h>
8636 /* Override any GCC internal prototype to avoid an error.
8637 Use char because int might match the return type of a GCC
8638 builtin and then its argument prototype would still apply. */
8643 /* The GNU C library defines this for functions which it implements
8644 to always fail with ENOSYS. Some functions are actually named
8645 something starting with __ and the normal name is an alias. */
8646 #if defined __stub_$ac_func || defined __stub___$ac_func
8658 rm -f conftest.
$ac_objext conftest
$ac_exeext
8659 if { (ac_try
="$ac_link"
8661 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8662 *) ac_try_echo=$ac_try;;
8664 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8665 $as_echo "$ac_try_echo") >&5
8666 (eval "$ac_link") 2>conftest.er1
8668 grep -v '^ *+' conftest.er1 >conftest.err
8670 cat conftest.err >&5
8671 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8672 (exit $ac_status); } && {
8673 test -z "$ac_c_werror_flag" ||
8674 test ! -s conftest.err
8675 } && test -s conftest$ac_exeext && {
8676 test "$cross_compiling" = yes ||
8677 $as_test_x conftest$ac_exeext
8679 eval "$as_ac_var=yes"
8681 $as_echo "$as_me: failed program was:" >&5
8682 sed 's/^/| /' conftest.$ac_ext >&5
8684 eval "$as_ac_var=no"
8687 rm -rf conftest.dSYM
8688 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8689 conftest$ac_exeext conftest.$ac_ext
8691 ac_res=`eval 'as_val=${'$as_ac_var'}
8692 $as_echo "$as_val"'`
8693 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
8694 $as_echo "$ac_res" >&6; }
8695 as_val=`eval 'as_val=${'$as_ac_var'}
8696 $as_echo "$as_val"'`
8697 if test "x$as_val" = x""yes; then
8698 cat >>confdefs.h <<_ACEOF
8699 #define `$as_echo "HAVE_$ac_func" |
$as_tr_cpp` 1
8703 case " $LIBOBJS " in
8704 *" $ac_func.$ac_objext "* ) ;;
8705 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
8714 { $as_echo "$as_me:$LINENO: checking for getopt optreset variable" >&5
8715 $as_echo_n "checking for getopt optreset variable... " >&6; }
8716 if test "${db_cv_optreset+set}" = set; then
8717 $as_echo_n "(cached) " >&6
8720 cat >conftest.$ac_ext <<_ACEOF
8723 cat confdefs.h >>conftest.$ac_ext
8724 cat >>conftest.$ac_ext <<_ACEOF
8725 /* end confdefs.h. */
8730 extern int optreset; optreset = 1;
8735 rm -f conftest.$ac_objext conftest$ac_exeext
8736 if { (ac_try="$ac_link"
8738 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8739 *) ac_try_echo
=$ac_try;;
8741 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
8742 $as_echo "$ac_try_echo") >&5
8743 (eval "$ac_link") 2>conftest.er1
8745 grep -v '^ *+' conftest.er1
>conftest.err
8747 cat conftest.err
>&5
8748 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8749 (exit $ac_status); } && {
8750 test -z "$ac_c_werror_flag" ||
8751 test ! -s conftest.err
8752 } && test -s conftest
$ac_exeext && {
8753 test "$cross_compiling" = yes ||
8754 $as_test_x conftest
$ac_exeext
8758 $as_echo "$as_me: failed program was:" >&5
8759 sed 's/^/| /' conftest.
$ac_ext >&5
8764 rm -rf conftest.dSYM
8765 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
8766 conftest
$ac_exeext conftest.
$ac_ext
8768 { $as_echo "$as_me:$LINENO: result: $db_cv_optreset" >&5
8769 $as_echo "$db_cv_optreset" >&6; }
8770 if test "$db_cv_optreset" = "yes"; then
8771 cat >>confdefs.h
<<\_ACEOF
8772 #define HAVE_GETOPT_OPTRESET 1
8780 # Special hack for a SunOS 5.7 (aka Solaris 7) select() problem.
8784 for ac_header
in fcntl.h
8786 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8787 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8788 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
8789 $as_echo_n "checking for $ac_header... " >&6; }
8790 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8791 $as_echo_n "(cached) " >&6
8793 ac_res
=`eval 'as_val=${'$as_ac_Header'}
8794 $as_echo "$as_val"'`
8795 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
8796 $as_echo "$ac_res" >&6; }
8798 # Is the header compilable?
8799 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
8800 $as_echo_n "checking $ac_header usability... " >&6; }
8801 cat >conftest.
$ac_ext <<_ACEOF
8804 cat confdefs.h
>>conftest.
$ac_ext
8805 cat >>conftest.
$ac_ext <<_ACEOF
8806 /* end confdefs.h. */
8807 $ac_includes_default
8808 #include <$ac_header>
8810 rm -f conftest.
$ac_objext
8811 if { (ac_try
="$ac_compile"
8813 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8814 *) ac_try_echo=$ac_try;;
8816 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8817 $as_echo "$ac_try_echo") >&5
8818 (eval "$ac_compile") 2>conftest.er1
8820 grep -v '^ *+' conftest.er1 >conftest.err
8822 cat conftest.err >&5
8823 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8824 (exit $ac_status); } && {
8825 test -z "$ac_c_werror_flag" ||
8826 test ! -s conftest.err
8827 } && test -s conftest.$ac_objext; then
8828 ac_header_compiler=yes
8830 $as_echo "$as_me: failed program was:" >&5
8831 sed 's/^/| /' conftest.$ac_ext >&5
8833 ac_header_compiler=no
8836 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8837 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8838 $as_echo "$ac_header_compiler" >&6; }
8840 # Is the header present?
8841 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
8842 $as_echo_n "checking $ac_header presence... " >&6; }
8843 cat >conftest.$ac_ext <<_ACEOF
8846 cat confdefs.h >>conftest.$ac_ext
8847 cat >>conftest.$ac_ext <<_ACEOF
8848 /* end confdefs.h. */
8849 #include <$ac_header>
8851 if { (ac_try="$ac_cpp conftest.$ac_ext"
8853 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8854 *) ac_try_echo
=$ac_try;;
8856 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
8857 $as_echo "$ac_try_echo") >&5
8858 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8860 grep -v '^ *+' conftest.er1
>conftest.err
8862 cat conftest.err
>&5
8863 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8864 (exit $ac_status); } >/dev
/null
&& {
8865 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
8866 test ! -s conftest.err
8868 ac_header_preproc
=yes
8870 $as_echo "$as_me: failed program was:" >&5
8871 sed 's/^/| /' conftest.
$ac_ext >&5
8873 ac_header_preproc
=no
8876 rm -f conftest.err conftest.
$ac_ext
8877 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8878 $as_echo "$ac_header_preproc" >&6; }
8880 # So? What about this header?
8881 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8883 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8884 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8885 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8886 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8887 ac_header_preproc
=yes
8890 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8891 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8892 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8893 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8894 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8895 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8896 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8897 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8898 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8899 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8900 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8901 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8903 ## --------------------------------- ##
8904 ## Report this to bug-cvs@nongnu.org ##
8905 ## --------------------------------- ##
8907 ) |
sed "s/^/$as_me: WARNING: /" >&2
8910 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
8911 $as_echo_n "checking for $ac_header... " >&6; }
8912 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8913 $as_echo_n "(cached) " >&6
8915 eval "$as_ac_Header=\$ac_header_preproc"
8917 ac_res
=`eval 'as_val=${'$as_ac_Header'}
8918 $as_echo "$as_val"'`
8919 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
8920 $as_echo "$ac_res" >&6; }
8923 as_val
=`eval 'as_val=${'$as_ac_Header'}
8924 $as_echo "$as_val"'`
8925 if test "x$as_val" = x
""yes; then
8926 cat >>confdefs.h
<<_ACEOF
8927 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8934 { $as_echo "$as_me:$LINENO: checking whether select hangs on /dev/null fd when timeout is NULL" >&5
8935 $as_echo_n "checking whether select hangs on /dev/null fd when timeout is NULL... " >&6; }
8936 if test "${ccvs_cv_func_select_hang+set}" = set; then
8937 $as_echo_n "(cached) " >&6
8939 if test "$cross_compiling" = yes; then
8940 ccvs_cv_func_select_hang
=yes
8942 cat >conftest.
$ac_ext <<_ACEOF
8945 cat confdefs.h
>>conftest.
$ac_ext
8946 cat >>conftest.
$ac_ext <<_ACEOF
8947 /* end confdefs.h. */
8950 #include <sys/select.h>
8961 struct timeval timeout;
8962 int fd = open ("/dev/null", O_RDONLY);
8965 FD_SET (fd, &readfds);
8967 timeout.tv_usec = 1;
8969 while ((numfds = select (fd + 1, &readfds, NULL, NULL, &timeout)) < 0
8971 return (numfds <= 0);
8977 rm -f conftest
$ac_exeext
8978 if { (ac_try
="$ac_link"
8980 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8981 *) ac_try_echo=$ac_try;;
8983 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8984 $as_echo "$ac_try_echo") >&5
8985 (eval "$ac_link") 2>&5
8987 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8988 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8989 { (case "(($ac_try" in
8990 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8991 *) ac_try_echo
=$ac_try;;
8993 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
8994 $as_echo "$ac_try_echo") >&5
8995 (eval "$ac_try") 2>&5
8997 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8998 (exit $ac_status); }; }; then
8999 ccvs_cv_func_select_hang
=no
9001 $as_echo "$as_me: program exited with status $ac_status" >&5
9002 $as_echo "$as_me: failed program was:" >&5
9003 sed 's/^/| /' conftest.
$ac_ext >&5
9006 ccvs_cv_func_select_hang
=yes
9008 rm -rf conftest.dSYM
9009 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
9015 { $as_echo "$as_me:$LINENO: result: $ccvs_cv_func_select_hang" >&5
9016 $as_echo "$ccvs_cv_func_select_hang" >&6; }
9017 if test $ccvs_cv_func_select_hang = yes; then
9021 for ac_header
in fcntl.h unistd.h
9023 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9024 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9025 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
9026 $as_echo_n "checking for $ac_header... " >&6; }
9027 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9028 $as_echo_n "(cached) " >&6
9030 ac_res
=`eval 'as_val=${'$as_ac_Header'}
9031 $as_echo "$as_val"'`
9032 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
9033 $as_echo "$ac_res" >&6; }
9035 # Is the header compilable?
9036 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
9037 $as_echo_n "checking $ac_header usability... " >&6; }
9038 cat >conftest.
$ac_ext <<_ACEOF
9041 cat confdefs.h
>>conftest.
$ac_ext
9042 cat >>conftest.
$ac_ext <<_ACEOF
9043 /* end confdefs.h. */
9044 $ac_includes_default
9045 #include <$ac_header>
9047 rm -f conftest.
$ac_objext
9048 if { (ac_try
="$ac_compile"
9050 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9051 *) ac_try_echo=$ac_try;;
9053 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9054 $as_echo "$ac_try_echo") >&5
9055 (eval "$ac_compile") 2>conftest.er1
9057 grep -v '^ *+' conftest.er1 >conftest.err
9059 cat conftest.err >&5
9060 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9061 (exit $ac_status); } && {
9062 test -z "$ac_c_werror_flag" ||
9063 test ! -s conftest.err
9064 } && test -s conftest.$ac_objext; then
9065 ac_header_compiler=yes
9067 $as_echo "$as_me: failed program was:" >&5
9068 sed 's/^/| /' conftest.$ac_ext >&5
9070 ac_header_compiler=no
9073 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9074 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9075 $as_echo "$ac_header_compiler" >&6; }
9077 # Is the header present?
9078 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
9079 $as_echo_n "checking $ac_header presence... " >&6; }
9080 cat >conftest.$ac_ext <<_ACEOF
9083 cat confdefs.h >>conftest.$ac_ext
9084 cat >>conftest.$ac_ext <<_ACEOF
9085 /* end confdefs.h. */
9086 #include <$ac_header>
9088 if { (ac_try="$ac_cpp conftest.$ac_ext"
9090 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9091 *) ac_try_echo
=$ac_try;;
9093 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
9094 $as_echo "$ac_try_echo") >&5
9095 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9097 grep -v '^ *+' conftest.er1
>conftest.err
9099 cat conftest.err
>&5
9100 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9101 (exit $ac_status); } >/dev
/null
&& {
9102 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9103 test ! -s conftest.err
9105 ac_header_preproc
=yes
9107 $as_echo "$as_me: failed program was:" >&5
9108 sed 's/^/| /' conftest.
$ac_ext >&5
9110 ac_header_preproc
=no
9113 rm -f conftest.err conftest.
$ac_ext
9114 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9115 $as_echo "$ac_header_preproc" >&6; }
9117 # So? What about this header?
9118 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9120 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9121 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9122 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9123 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9124 ac_header_preproc
=yes
9127 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9128 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9129 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9130 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9131 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9132 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9133 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9134 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9135 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9136 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9137 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9138 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9140 ## --------------------------------- ##
9141 ## Report this to bug-cvs@nongnu.org ##
9142 ## --------------------------------- ##
9144 ) |
sed "s/^/$as_me: WARNING: /" >&2
9147 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
9148 $as_echo_n "checking for $ac_header... " >&6; }
9149 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9150 $as_echo_n "(cached) " >&6
9152 eval "$as_ac_Header=\$ac_header_preproc"
9154 ac_res
=`eval 'as_val=${'$as_ac_Header'}
9155 $as_echo "$as_val"'`
9156 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
9157 $as_echo "$ac_res" >&6; }
9160 as_val
=`eval 'as_val=${'$as_ac_Header'}
9161 $as_echo "$as_val"'`
9162 if test "x$as_val" = x
""yes; then
9163 cat >>confdefs.h
<<_ACEOF
9164 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9172 case " $LIBOBJS " in
9173 *" sunos57-select.$ac_objext "* ) ;;
9174 *) LIBOBJS
="$LIBOBJS sunos57-select.$ac_objext"
9179 cat >>confdefs.h
<<\_ACEOF
9180 #define select rpl_select
9187 # Begin GNULIB stuff.
9190 # Look for functions from GNULIB and replace with versions in lib/ when
9192 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
9193 # for constant arguments. Useless!
9194 { $as_echo "$as_me:$LINENO: checking for working alloca.h" >&5
9195 $as_echo_n "checking for working alloca.h... " >&6; }
9196 if test "${ac_cv_working_alloca_h+set}" = set; then
9197 $as_echo_n "(cached) " >&6
9199 cat >conftest.
$ac_ext <<_ACEOF
9202 cat confdefs.h
>>conftest.
$ac_ext
9203 cat >>conftest.
$ac_ext <<_ACEOF
9204 /* end confdefs.h. */
9209 char *p = (char *) alloca (2 * sizeof (int));
9215 rm -f conftest.
$ac_objext conftest
$ac_exeext
9216 if { (ac_try
="$ac_link"
9218 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9219 *) ac_try_echo=$ac_try;;
9221 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9222 $as_echo "$ac_try_echo") >&5
9223 (eval "$ac_link") 2>conftest.er1
9225 grep -v '^ *+' conftest.er1 >conftest.err
9227 cat conftest.err >&5
9228 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9229 (exit $ac_status); } && {
9230 test -z "$ac_c_werror_flag" ||
9231 test ! -s conftest.err
9232 } && test -s conftest$ac_exeext && {
9233 test "$cross_compiling" = yes ||
9234 $as_test_x conftest$ac_exeext
9236 ac_cv_working_alloca_h=yes
9238 $as_echo "$as_me: failed program was:" >&5
9239 sed 's/^/| /' conftest.$ac_ext >&5
9241 ac_cv_working_alloca_h=no
9244 rm -rf conftest.dSYM
9245 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9246 conftest$ac_exeext conftest.$ac_ext
9248 { $as_echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
9249 $as_echo "$ac_cv_working_alloca_h" >&6; }
9250 if test $ac_cv_working_alloca_h = yes; then
9252 cat >>confdefs.h <<\_ACEOF
9253 #define HAVE_ALLOCA_H 1
9258 { $as_echo "$as_me:$LINENO: checking for alloca" >&5
9259 $as_echo_n "checking for alloca... " >&6; }
9260 if test "${ac_cv_func_alloca_works+set}" = set; then
9261 $as_echo_n "(cached) " >&6
9263 cat >conftest.$ac_ext <<_ACEOF
9266 cat confdefs.h >>conftest.$ac_ext
9267 cat >>conftest.$ac_ext <<_ACEOF
9268 /* end confdefs.h. */
9270 # define alloca __builtin_alloca
9273 # include <malloc.h>
9274 # define alloca _alloca
9276 # ifdef HAVE_ALLOCA_H
9277 # include <alloca.h>
9282 # ifndef alloca /* predefined by HP cc +Olibcalls */
9293 char *p = (char *) alloca (1);
9299 rm -f conftest.$ac_objext conftest$ac_exeext
9300 if { (ac_try="$ac_link"
9302 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9303 *) ac_try_echo
=$ac_try;;
9305 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
9306 $as_echo "$ac_try_echo") >&5
9307 (eval "$ac_link") 2>conftest.er1
9309 grep -v '^ *+' conftest.er1
>conftest.err
9311 cat conftest.err
>&5
9312 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9313 (exit $ac_status); } && {
9314 test -z "$ac_c_werror_flag" ||
9315 test ! -s conftest.err
9316 } && test -s conftest
$ac_exeext && {
9317 test "$cross_compiling" = yes ||
9318 $as_test_x conftest
$ac_exeext
9320 ac_cv_func_alloca_works
=yes
9322 $as_echo "$as_me: failed program was:" >&5
9323 sed 's/^/| /' conftest.
$ac_ext >&5
9325 ac_cv_func_alloca_works
=no
9328 rm -rf conftest.dSYM
9329 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
9330 conftest
$ac_exeext conftest.
$ac_ext
9332 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
9333 $as_echo "$ac_cv_func_alloca_works" >&6; }
9335 if test $ac_cv_func_alloca_works = yes; then
9337 cat >>confdefs.h
<<\_ACEOF
9338 #define HAVE_ALLOCA 1
9342 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
9343 # that cause trouble. Some versions do not even contain alloca or
9344 # contain a buggy version. If you still want to use their alloca,
9345 # use ar to extract alloca.o from them instead of compiling alloca.c.
9347 ALLOCA
=\
${LIBOBJDIR}alloca.
$ac_objext
9349 cat >>confdefs.h
<<\_ACEOF
9354 { $as_echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
9355 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
9356 if test "${ac_cv_os_cray+set}" = set; then
9357 $as_echo_n "(cached) " >&6
9359 cat >conftest.
$ac_ext <<_ACEOF
9362 cat confdefs.h
>>conftest.
$ac_ext
9363 cat >>conftest.
$ac_ext <<_ACEOF
9364 /* end confdefs.h. */
9365 #if defined CRAY && ! defined CRAY2
9372 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9373 $EGREP "webecray" >/dev
/null
2>&1; then
9381 { $as_echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
9382 $as_echo "$ac_cv_os_cray" >&6; }
9383 if test $ac_cv_os_cray = yes; then
9384 for ac_func
in _getb67 GETB67 getb67
; do
9385 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9386 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
9387 $as_echo_n "checking for $ac_func... " >&6; }
9388 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
9389 $as_echo_n "(cached) " >&6
9391 cat >conftest.
$ac_ext <<_ACEOF
9394 cat confdefs.h
>>conftest.
$ac_ext
9395 cat >>conftest.
$ac_ext <<_ACEOF
9396 /* end confdefs.h. */
9397 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9398 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9399 #define $ac_func innocuous_$ac_func
9401 /* System header to define __stub macros and hopefully few prototypes,
9402 which can conflict with char $ac_func (); below.
9403 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9404 <limits.h> exists even on freestanding compilers. */
9407 # include <limits.h>
9409 # include <assert.h>
9414 /* Override any GCC internal prototype to avoid an error.
9415 Use char because int might match the return type of a GCC
9416 builtin and then its argument prototype would still apply. */
9421 /* The GNU C library defines this for functions which it implements
9422 to always fail with ENOSYS. Some functions are actually named
9423 something starting with __ and the normal name is an alias. */
9424 #if defined __stub_$ac_func || defined __stub___$ac_func
9436 rm -f conftest.
$ac_objext conftest
$ac_exeext
9437 if { (ac_try
="$ac_link"
9439 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9440 *) ac_try_echo=$ac_try;;
9442 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9443 $as_echo "$ac_try_echo") >&5
9444 (eval "$ac_link") 2>conftest.er1
9446 grep -v '^ *+' conftest.er1 >conftest.err
9448 cat conftest.err >&5
9449 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9450 (exit $ac_status); } && {
9451 test -z "$ac_c_werror_flag" ||
9452 test ! -s conftest.err
9453 } && test -s conftest$ac_exeext && {
9454 test "$cross_compiling" = yes ||
9455 $as_test_x conftest$ac_exeext
9457 eval "$as_ac_var=yes"
9459 $as_echo "$as_me: failed program was:" >&5
9460 sed 's/^/| /' conftest.$ac_ext >&5
9462 eval "$as_ac_var=no"
9465 rm -rf conftest.dSYM
9466 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9467 conftest$ac_exeext conftest.$ac_ext
9469 ac_res=`eval 'as_val=${'$as_ac_var'}
9470 $as_echo "$as_val"'`
9471 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
9472 $as_echo "$ac_res" >&6; }
9473 as_val=`eval 'as_val=${'$as_ac_var'}
9474 $as_echo "$as_val"'`
9475 if test "x$as_val" = x""yes; then
9477 cat >>confdefs.h <<_ACEOF
9478 #define CRAY_STACKSEG_END $ac_func
9487 { $as_echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
9488 $as_echo_n "checking stack direction for C alloca... " >&6; }
9489 if test "${ac_cv_c_stack_direction+set}" = set; then
9490 $as_echo_n "(cached) " >&6
9492 if test "$cross_compiling" = yes; then
9493 ac_cv_c_stack_direction=0
9495 cat >conftest.$ac_ext <<_ACEOF
9498 cat confdefs.h >>conftest.$ac_ext
9499 cat >>conftest.$ac_ext <<_ACEOF
9500 /* end confdefs.h. */
9501 $ac_includes_default
9503 find_stack_direction ()
9505 static char *addr = 0;
9510 return find_stack_direction ();
9513 return (&dummy > addr) ? 1 : -1;
9519 return find_stack_direction () < 0;
9522 rm -f conftest$ac_exeext
9523 if { (ac_try="$ac_link"
9525 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9526 *) ac_try_echo
=$ac_try;;
9528 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
9529 $as_echo "$ac_try_echo") >&5
9530 (eval "$ac_link") 2>&5
9532 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9533 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
9534 { (case "(($ac_try" in
9535 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9536 *) ac_try_echo=$ac_try;;
9538 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9539 $as_echo "$ac_try_echo") >&5
9540 (eval "$ac_try") 2>&5
9542 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9543 (exit $ac_status); }; }; then
9544 ac_cv_c_stack_direction=1
9546 $as_echo "$as_me: program exited with status $ac_status" >&5
9547 $as_echo "$as_me: failed program was:" >&5
9548 sed 's/^/| /' conftest.$ac_ext >&5
9551 ac_cv_c_stack_direction=-1
9553 rm -rf conftest.dSYM
9554 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9559 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
9560 $as_echo "$ac_cv_c_stack_direction" >&6; }
9562 cat >>confdefs.h <<_ACEOF
9563 #define STACK_DIRECTION $ac_cv_c_stack_direction
9571 for ac_header in stdlib.h
9573 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" |
$as_tr_sh`
9574 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9575 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
9576 $as_echo_n "checking for $ac_header... " >&6; }
9577 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9578 $as_echo_n "(cached) " >&6
9580 ac_res=`eval 'as_val=${'$as_ac_Header'}
9581 $as_echo "$as_val"'`
9582 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
9583 $as_echo "$ac_res" >&6; }
9585 # Is the header compilable?
9586 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
9587 $as_echo_n "checking $ac_header usability... " >&6; }
9588 cat >conftest.$ac_ext <<_ACEOF
9591 cat confdefs.h >>conftest.$ac_ext
9592 cat >>conftest.$ac_ext <<_ACEOF
9593 /* end confdefs.h. */
9594 $ac_includes_default
9595 #include <$ac_header>
9597 rm -f conftest.$ac_objext
9598 if { (ac_try="$ac_compile"
9600 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9601 *) ac_try_echo
=$ac_try;;
9603 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
9604 $as_echo "$ac_try_echo") >&5
9605 (eval "$ac_compile") 2>conftest.er1
9607 grep -v '^ *+' conftest.er1
>conftest.err
9609 cat conftest.err
>&5
9610 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9611 (exit $ac_status); } && {
9612 test -z "$ac_c_werror_flag" ||
9613 test ! -s conftest.err
9614 } && test -s conftest.
$ac_objext; then
9615 ac_header_compiler
=yes
9617 $as_echo "$as_me: failed program was:" >&5
9618 sed 's/^/| /' conftest.
$ac_ext >&5
9620 ac_header_compiler
=no
9623 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9624 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9625 $as_echo "$ac_header_compiler" >&6; }
9627 # Is the header present?
9628 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
9629 $as_echo_n "checking $ac_header presence... " >&6; }
9630 cat >conftest.
$ac_ext <<_ACEOF
9633 cat confdefs.h
>>conftest.
$ac_ext
9634 cat >>conftest.
$ac_ext <<_ACEOF
9635 /* end confdefs.h. */
9636 #include <$ac_header>
9638 if { (ac_try
="$ac_cpp conftest.$ac_ext"
9640 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9641 *) ac_try_echo=$ac_try;;
9643 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9644 $as_echo "$ac_try_echo") >&5
9645 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9647 grep -v '^ *+' conftest.er1 >conftest.err
9649 cat conftest.err >&5
9650 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9651 (exit $ac_status); } >/dev/null && {
9652 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9653 test ! -s conftest.err
9655 ac_header_preproc=yes
9657 $as_echo "$as_me: failed program was:" >&5
9658 sed 's/^/| /' conftest.$ac_ext >&5
9660 ac_header_preproc=no
9663 rm -f conftest.err conftest.$ac_ext
9664 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9665 $as_echo "$ac_header_preproc" >&6; }
9667 # So? What about this header?
9668 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9670 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9671 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9672 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9673 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9674 ac_header_preproc=yes
9677 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9678 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9679 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9680 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9681 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9682 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9683 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9684 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9685 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9686 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9687 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9688 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9690 ## --------------------------------- ##
9691 ## Report this to bug-cvs@nongnu.org ##
9692 ## --------------------------------- ##
9694 ) | sed "s/^/$as_me: WARNING: /" >&2
9697 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
9698 $as_echo_n "checking for $ac_header... " >&6; }
9699 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9700 $as_echo_n "(cached) " >&6
9702 eval "$as_ac_Header=\$ac_header_preproc"
9704 ac_res=`eval 'as_val=${'$as_ac_Header'}
9705 $as_echo "$as_val"'`
9706 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
9707 $as_echo "$ac_res" >&6; }
9710 as_val=`eval 'as_val=${'$as_ac_Header'}
9711 $as_echo "$as_val"'`
9712 if test "x$as_val" = x""yes; then
9713 cat >>confdefs.h <<_ACEOF
9714 #define `$as_echo "HAVE_$ac_header" |
$as_tr_cpp` 1
9721 { $as_echo "$as_me:$LINENO: checking for GNU libc compatible malloc" >&5
9722 $as_echo_n "checking for GNU libc compatible malloc... " >&6; }
9723 if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then
9724 $as_echo_n "(cached) " >&6
9726 if test "$cross_compiling" = yes; then
9727 ac_cv_func_malloc_0_nonnull=no
9729 cat >conftest.$ac_ext <<_ACEOF
9732 cat confdefs.h >>conftest.$ac_ext
9733 cat >>conftest.$ac_ext <<_ACEOF
9734 /* end confdefs.h. */
9735 #if defined STDC_HEADERS || defined HAVE_STDLIB_H
9736 # include <stdlib.h>
9744 return ! malloc (0);
9749 rm -f conftest$ac_exeext
9750 if { (ac_try="$ac_link"
9752 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9753 *) ac_try_echo
=$ac_try;;
9755 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
9756 $as_echo "$ac_try_echo") >&5
9757 (eval "$ac_link") 2>&5
9759 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9760 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
9761 { (case "(($ac_try" in
9762 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9763 *) ac_try_echo=$ac_try;;
9765 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9766 $as_echo "$ac_try_echo") >&5
9767 (eval "$ac_try") 2>&5
9769 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9770 (exit $ac_status); }; }; then
9771 ac_cv_func_malloc_0_nonnull=yes
9773 $as_echo "$as_me: program exited with status $ac_status" >&5
9774 $as_echo "$as_me: failed program was:" >&5
9775 sed 's/^/| /' conftest.$ac_ext >&5
9778 ac_cv_func_malloc_0_nonnull=no
9780 rm -rf conftest.dSYM
9781 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9786 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_malloc_0_nonnull" >&5
9787 $as_echo "$ac_cv_func_malloc_0_nonnull" >&6; }
9788 if test $ac_cv_func_malloc_0_nonnull = yes; then
9789 gl_cv_func_malloc_0_nonnull=1
9791 gl_cv_func_malloc_0_nonnull=0
9796 cat >>confdefs.h <<_ACEOF
9797 #define MALLOC_0_IS_NONNULL $gl_cv_func_malloc_0_nonnull
9802 { $as_echo "$as_me:$LINENO: checking for long long" >&5
9803 $as_echo_n "checking for long long... " >&6; }
9804 if test "${ac_cv_type_long_long+set}" = set; then
9805 $as_echo_n "(cached) " >&6
9807 cat >conftest.$ac_ext <<_ACEOF
9810 cat confdefs.h >>conftest.$ac_ext
9811 cat >>conftest.$ac_ext <<_ACEOF
9812 /* end confdefs.h. */
9813 long long ll = 1LL; int i = 63;
9817 long long llmax = (long long) -1;
9818 return ll << i | ll >> i | llmax / ll | llmax % ll;
9823 rm -f conftest.$ac_objext conftest$ac_exeext
9824 if { (ac_try="$ac_link"
9826 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9827 *) ac_try_echo
=$ac_try;;
9829 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
9830 $as_echo "$ac_try_echo") >&5
9831 (eval "$ac_link") 2>conftest.er1
9833 grep -v '^ *+' conftest.er1
>conftest.err
9835 cat conftest.err
>&5
9836 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9837 (exit $ac_status); } && {
9838 test -z "$ac_c_werror_flag" ||
9839 test ! -s conftest.err
9840 } && test -s conftest
$ac_exeext && {
9841 test "$cross_compiling" = yes ||
9842 $as_test_x conftest
$ac_exeext
9844 ac_cv_type_long_long
=yes
9846 $as_echo "$as_me: failed program was:" >&5
9847 sed 's/^/| /' conftest.
$ac_ext >&5
9849 ac_cv_type_long_long
=no
9852 rm -rf conftest.dSYM
9853 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
9854 conftest
$ac_exeext conftest.
$ac_ext
9856 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
9857 $as_echo "$ac_cv_type_long_long" >&6; }
9858 if test $ac_cv_type_long_long = yes; then
9860 cat >>confdefs.h
<<\_ACEOF
9861 #define HAVE_LONG_LONG 1
9867 { $as_echo "$as_me:$LINENO: checking for long double" >&5
9868 $as_echo_n "checking for long double... " >&6; }
9869 if test "${gt_cv_c_long_double+set}" = set; then
9870 $as_echo_n "(cached) " >&6
9872 if test "$GCC" = yes; then
9873 gt_cv_c_long_double
=yes
9875 cat >conftest.
$ac_ext <<_ACEOF
9878 cat confdefs.h
>>conftest.
$ac_ext
9879 cat >>conftest.
$ac_ext <<_ACEOF
9880 /* end confdefs.h. */
9882 /* The Stardent Vistra knows sizeof(long double), but does not support it. */
9883 long double foo = 0.0;
9884 /* On Ultrix 4.3 cc, long double is 4 and double is 8. */
9885 int array [2*(sizeof(long double) >= sizeof(double)) - 1];
9895 rm -f conftest.
$ac_objext
9896 if { (ac_try
="$ac_compile"
9898 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9899 *) ac_try_echo=$ac_try;;
9901 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9902 $as_echo "$ac_try_echo") >&5
9903 (eval "$ac_compile") 2>conftest.er1
9905 grep -v '^ *+' conftest.er1 >conftest.err
9907 cat conftest.err >&5
9908 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9909 (exit $ac_status); } && {
9910 test -z "$ac_c_werror_flag" ||
9911 test ! -s conftest.err
9912 } && test -s conftest.$ac_objext; then
9913 gt_cv_c_long_double=yes
9915 $as_echo "$as_me: failed program was:" >&5
9916 sed 's/^/| /' conftest.$ac_ext >&5
9918 gt_cv_c_long_double=no
9921 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9924 { $as_echo "$as_me:$LINENO: result: $gt_cv_c_long_double" >&5
9925 $as_echo "$gt_cv_c_long_double" >&6; }
9926 if test $gt_cv_c_long_double = yes; then
9928 cat >>confdefs.h <<\_ACEOF
9929 #define HAVE_LONG_DOUBLE 1
9934 { $as_echo "$as_me:$LINENO: checking for C/C++ restrict keyword" >&5
9935 $as_echo_n "checking for C/C++ restrict keyword... " >&6; }
9936 if test "${gl_cv_c_restrict+set}" = set; then
9937 $as_echo_n "(cached) " >&6
9940 # Try the official restrict keyword, then gcc's __restrict, and
9941 # the less common variants.
9942 for ac_kw in restrict __restrict __restrict__ _Restrict; do
9943 cat >conftest.$ac_ext <<_ACEOF
9946 cat confdefs.h >>conftest.$ac_ext
9947 cat >>conftest.$ac_ext <<_ACEOF
9948 /* end confdefs.h. */
9951 rm -f conftest.$ac_objext
9952 if { (ac_try="$ac_compile"
9954 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9955 *) ac_try_echo
=$ac_try;;
9957 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
9958 $as_echo "$ac_try_echo") >&5
9959 (eval "$ac_compile") 2>conftest.er1
9961 grep -v '^ *+' conftest.er1
>conftest.err
9963 cat conftest.err
>&5
9964 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9965 (exit $ac_status); } && {
9966 test -z "$ac_c_werror_flag" ||
9967 test ! -s conftest.err
9968 } && test -s conftest.
$ac_objext; then
9969 gl_cv_c_restrict
=$ac_kw; break
9971 $as_echo "$as_me: failed program was:" >&5
9972 sed 's/^/| /' conftest.
$ac_ext >&5
9977 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9981 { $as_echo "$as_me:$LINENO: result: $gl_cv_c_restrict" >&5
9982 $as_echo "$gl_cv_c_restrict" >&6; }
9983 case $gl_cv_c_restrict in
9986 cat >>confdefs.h
<<\_ACEOF
9987 #define restrict /**/
9990 *) cat >>confdefs.h
<<_ACEOF
9991 #define restrict $gl_cv_c_restrict
9997 { $as_echo "$as_me:$LINENO: checking for IPv4 sockets" >&5
9998 $as_echo_n "checking for IPv4 sockets... " >&6; }
9999 if test "${gl_cv_socket_ipv4+set}" = set; then
10000 $as_echo_n "(cached) " >&6
10002 cat >conftest.
$ac_ext <<_ACEOF
10005 cat confdefs.h
>>conftest.
$ac_ext
10006 cat >>conftest.
$ac_ext <<_ACEOF
10007 /* end confdefs.h. */
10008 #include <sys/types.h>
10009 #include <sys/socket.h>
10010 #include <netinet/in.h>
10014 int x = AF_INET; struct in_addr y; struct sockaddr_in z;
10019 rm -f conftest.
$ac_objext
10020 if { (ac_try
="$ac_compile"
10021 case "(($ac_try" in
10022 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10023 *) ac_try_echo=$ac_try;;
10025 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10026 $as_echo "$ac_try_echo") >&5
10027 (eval "$ac_compile") 2>conftest.er1
10029 grep -v '^ *+' conftest.er1 >conftest.err
10031 cat conftest.err >&5
10032 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10033 (exit $ac_status); } && {
10034 test -z "$ac_c_werror_flag" ||
10035 test ! -s conftest.err
10036 } && test -s conftest.$ac_objext; then
10037 gl_cv_socket_ipv4=yes
10039 $as_echo "$as_me: failed program was:" >&5
10040 sed 's/^/| /' conftest.$ac_ext >&5
10042 gl_cv_socket_ipv4=no
10045 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10048 { $as_echo "$as_me:$LINENO: result: $gl_cv_socket_ipv4" >&5
10049 $as_echo "$gl_cv_socket_ipv4" >&6; }
10050 if test $gl_cv_socket_ipv4 = yes; then
10052 cat >>confdefs.h <<\_ACEOF
10053 #define HAVE_IPV4 1
10058 { $as_echo "$as_me:$LINENO: checking for IPv6 sockets" >&5
10059 $as_echo_n "checking for IPv6 sockets... " >&6; }
10060 if test "${gl_cv_socket_ipv6+set}" = set; then
10061 $as_echo_n "(cached) " >&6
10063 cat >conftest.$ac_ext <<_ACEOF
10066 cat confdefs.h >>conftest.$ac_ext
10067 cat >>conftest.$ac_ext <<_ACEOF
10068 /* end confdefs.h. */
10069 #include <sys/types.h>
10070 #include <sys/socket.h>
10071 #include <netinet/in.h>
10075 int x = AF_INET6; struct in6_addr y; struct sockaddr_in6 z;
10080 rm -f conftest.$ac_objext
10081 if { (ac_try="$ac_compile"
10082 case "(($ac_try" in
10083 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10084 *) ac_try_echo
=$ac_try;;
10086 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
10087 $as_echo "$ac_try_echo") >&5
10088 (eval "$ac_compile") 2>conftest.er1
10090 grep -v '^ *+' conftest.er1
>conftest.err
10092 cat conftest.err
>&5
10093 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10094 (exit $ac_status); } && {
10095 test -z "$ac_c_werror_flag" ||
10096 test ! -s conftest.err
10097 } && test -s conftest.
$ac_objext; then
10098 gl_cv_socket_ipv6
=yes
10100 $as_echo "$as_me: failed program was:" >&5
10101 sed 's/^/| /' conftest.
$ac_ext >&5
10103 gl_cv_socket_ipv6
=no
10106 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10109 { $as_echo "$as_me:$LINENO: result: $gl_cv_socket_ipv6" >&5
10110 $as_echo "$gl_cv_socket_ipv6" >&6; }
10111 if test $gl_cv_socket_ipv6 = yes; then
10113 cat >>confdefs.h
<<\_ACEOF
10114 #define HAVE_IPV6 1
10119 { $as_echo "$as_me:$LINENO: checking for inline" >&5
10120 $as_echo_n "checking for inline... " >&6; }
10121 if test "${ac_cv_c_inline+set}" = set; then
10122 $as_echo_n "(cached) " >&6
10125 for ac_kw
in inline __inline__ __inline
; do
10126 cat >conftest.
$ac_ext <<_ACEOF
10129 cat confdefs.h
>>conftest.
$ac_ext
10130 cat >>conftest.
$ac_ext <<_ACEOF
10131 /* end confdefs.h. */
10132 #ifndef __cplusplus
10134 static $ac_kw foo_t static_foo () {return 0; }
10135 $ac_kw foo_t foo () {return 0; }
10139 rm -f conftest.
$ac_objext
10140 if { (ac_try
="$ac_compile"
10141 case "(($ac_try" in
10142 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10143 *) ac_try_echo=$ac_try;;
10145 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10146 $as_echo "$ac_try_echo") >&5
10147 (eval "$ac_compile") 2>conftest.er1
10149 grep -v '^ *+' conftest.er1 >conftest.err
10151 cat conftest.err >&5
10152 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10153 (exit $ac_status); } && {
10154 test -z "$ac_c_werror_flag" ||
10155 test ! -s conftest.err
10156 } && test -s conftest.$ac_objext; then
10157 ac_cv_c_inline=$ac_kw
10159 $as_echo "$as_me: failed program was:" >&5
10160 sed 's/^/| /' conftest.$ac_ext >&5
10165 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10166 test "$ac_cv_c_inline" != no && break
10170 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
10171 $as_echo "$ac_cv_c_inline" >&6; }
10174 case $ac_cv_c_inline in
10177 case $ac_cv_c_inline in
10179 *) ac_val=$ac_cv_c_inline;;
10181 cat >>confdefs.h <<_ACEOF
10182 #ifndef __cplusplus
10183 #define inline $ac_val
10190 { $as_echo "$as_me:$LINENO: checking for library containing getaddrinfo" >&5
10191 $as_echo_n "checking for library containing getaddrinfo... " >&6; }
10192 if test "${ac_cv_search_getaddrinfo+set}" = set; then
10193 $as_echo_n "(cached) " >&6
10195 ac_func_search_save_LIBS=$LIBS
10196 cat >conftest.$ac_ext <<_ACEOF
10199 cat confdefs.h >>conftest.$ac_ext
10200 cat >>conftest.$ac_ext <<_ACEOF
10201 /* end confdefs.h. */
10203 /* Override any GCC internal prototype to avoid an error.
10204 Use char because int might match the return type of a GCC
10205 builtin and then its argument prototype would still apply. */
10209 char getaddrinfo ();
10213 return getaddrinfo ();
10218 for ac_lib in '' nsl socket; do
10219 if test -z "$ac_lib"; then
10220 ac_res="none required"
10223 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
10225 rm -f conftest.$ac_objext conftest$ac_exeext
10226 if { (ac_try="$ac_link"
10227 case "(($ac_try" in
10228 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10229 *) ac_try_echo
=$ac_try;;
10231 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
10232 $as_echo "$ac_try_echo") >&5
10233 (eval "$ac_link") 2>conftest.er1
10235 grep -v '^ *+' conftest.er1
>conftest.err
10237 cat conftest.err
>&5
10238 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10239 (exit $ac_status); } && {
10240 test -z "$ac_c_werror_flag" ||
10241 test ! -s conftest.err
10242 } && test -s conftest
$ac_exeext && {
10243 test "$cross_compiling" = yes ||
10244 $as_test_x conftest
$ac_exeext
10246 ac_cv_search_getaddrinfo
=$ac_res
10248 $as_echo "$as_me: failed program was:" >&5
10249 sed 's/^/| /' conftest.
$ac_ext >&5
10254 rm -rf conftest.dSYM
10255 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
10257 if test "${ac_cv_search_getaddrinfo+set}" = set; then
10261 if test "${ac_cv_search_getaddrinfo+set}" = set; then
10264 ac_cv_search_getaddrinfo
=no
10266 rm conftest.
$ac_ext
10267 LIBS
=$ac_func_search_save_LIBS
10269 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_getaddrinfo" >&5
10270 $as_echo "$ac_cv_search_getaddrinfo" >&6; }
10271 ac_res
=$ac_cv_search_getaddrinfo
10272 if test "$ac_res" != no
; then
10273 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
10279 for ac_func
in getaddrinfo gai_strerror
10281 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10282 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
10283 $as_echo_n "checking for $ac_func... " >&6; }
10284 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10285 $as_echo_n "(cached) " >&6
10287 cat >conftest.
$ac_ext <<_ACEOF
10290 cat confdefs.h
>>conftest.
$ac_ext
10291 cat >>conftest.
$ac_ext <<_ACEOF
10292 /* end confdefs.h. */
10293 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10294 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10295 #define $ac_func innocuous_$ac_func
10297 /* System header to define __stub macros and hopefully few prototypes,
10298 which can conflict with char $ac_func (); below.
10299 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10300 <limits.h> exists even on freestanding compilers. */
10303 # include <limits.h>
10305 # include <assert.h>
10310 /* Override any GCC internal prototype to avoid an error.
10311 Use char because int might match the return type of a GCC
10312 builtin and then its argument prototype would still apply. */
10317 /* The GNU C library defines this for functions which it implements
10318 to always fail with ENOSYS. Some functions are actually named
10319 something starting with __ and the normal name is an alias. */
10320 #if defined __stub_$ac_func || defined __stub___$ac_func
10327 return $ac_func ();
10332 rm -f conftest.
$ac_objext conftest
$ac_exeext
10333 if { (ac_try
="$ac_link"
10334 case "(($ac_try" in
10335 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10336 *) ac_try_echo=$ac_try;;
10338 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10339 $as_echo "$ac_try_echo") >&5
10340 (eval "$ac_link") 2>conftest.er1
10342 grep -v '^ *+' conftest.er1 >conftest.err
10344 cat conftest.err >&5
10345 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10346 (exit $ac_status); } && {
10347 test -z "$ac_c_werror_flag" ||
10348 test ! -s conftest.err
10349 } && test -s conftest$ac_exeext && {
10350 test "$cross_compiling" = yes ||
10351 $as_test_x conftest$ac_exeext
10353 eval "$as_ac_var=yes"
10355 $as_echo "$as_me: failed program was:" >&5
10356 sed 's/^/| /' conftest.$ac_ext >&5
10358 eval "$as_ac_var=no"
10361 rm -rf conftest.dSYM
10362 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10363 conftest$ac_exeext conftest.$ac_ext
10365 ac_res=`eval 'as_val=${'$as_ac_var'}
10366 $as_echo "$as_val"'`
10367 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10368 $as_echo "$ac_res" >&6; }
10369 as_val=`eval 'as_val=${'$as_ac_var'}
10370 $as_echo "$as_val"'`
10371 if test "x$as_val" = x""yes; then
10372 cat >>confdefs.h <<_ACEOF
10373 #define `$as_echo "HAVE_$ac_func" |
$as_tr_cpp` 1
10377 case " $LIBOBJS " in
10378 *" $ac_func.$ac_objext "* ) ;;
10379 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
10393 { $as_echo "$as_me:$LINENO: checking for stdbool.h that conforms to C99" >&5
10394 $as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
10395 if test "${ac_cv_header_stdbool_h+set}" = set; then
10396 $as_echo_n "(cached) " >&6
10398 cat >conftest.$ac_ext <<_ACEOF
10401 cat confdefs.h >>conftest.$ac_ext
10402 cat >>conftest.$ac_ext <<_ACEOF
10403 /* end confdefs.h. */
10405 #include <stdbool.h>
10407 "error: bool is not defined"
10410 "error: false is not defined"
10413 "error: false is not 0"
10416 "error: true is not defined"
10419 "error: true is not 1"
10421 #ifndef __bool_true_false_are_defined
10422 "error: __bool_true_false_are_defined is not defined"
10425 struct s { _Bool s: 1; _Bool t; } s;
10427 char a[true == 1 ? 1 : -1];
10428 char b[false == 0 ? 1 : -1];
10429 char c[__bool_true_false_are_defined == 1 ? 1 : -1];
10430 char d[(bool) -0.5 == true ? 1 : -1];
10432 char f[(_Bool) -0.0 == false ? 1 : -1];
10434 char h[sizeof (_Bool)];
10435 char i[sizeof s.t];
10436 enum { j = false, k = true, l = false * true, m = true * 256 };
10438 char o[sizeof n == m * sizeof n[0] ? 1 : -1];
10444 return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !j + !k + !l
10451 rm -f conftest.$ac_objext
10452 if { (ac_try="$ac_compile"
10453 case "(($ac_try" in
10454 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10455 *) ac_try_echo
=$ac_try;;
10457 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
10458 $as_echo "$ac_try_echo") >&5
10459 (eval "$ac_compile") 2>conftest.er1
10461 grep -v '^ *+' conftest.er1
>conftest.err
10463 cat conftest.err
>&5
10464 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10465 (exit $ac_status); } && {
10466 test -z "$ac_c_werror_flag" ||
10467 test ! -s conftest.err
10468 } && test -s conftest.
$ac_objext; then
10469 ac_cv_header_stdbool_h
=yes
10471 $as_echo "$as_me: failed program was:" >&5
10472 sed 's/^/| /' conftest.
$ac_ext >&5
10474 ac_cv_header_stdbool_h
=no
10477 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10479 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdbool_h" >&5
10480 $as_echo "$ac_cv_header_stdbool_h" >&6; }
10481 { $as_echo "$as_me:$LINENO: checking for _Bool" >&5
10482 $as_echo_n "checking for _Bool... " >&6; }
10483 if test "${ac_cv_type__Bool+set}" = set; then
10484 $as_echo_n "(cached) " >&6
10486 ac_cv_type__Bool
=no
10487 cat >conftest.
$ac_ext <<_ACEOF
10490 cat confdefs.h
>>conftest.
$ac_ext
10491 cat >>conftest.
$ac_ext <<_ACEOF
10492 /* end confdefs.h. */
10493 $ac_includes_default
10497 if (sizeof (_Bool))
10503 rm -f conftest.
$ac_objext
10504 if { (ac_try
="$ac_compile"
10505 case "(($ac_try" in
10506 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10507 *) ac_try_echo=$ac_try;;
10509 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10510 $as_echo "$ac_try_echo") >&5
10511 (eval "$ac_compile") 2>conftest.er1
10513 grep -v '^ *+' conftest.er1 >conftest.err
10515 cat conftest.err >&5
10516 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10517 (exit $ac_status); } && {
10518 test -z "$ac_c_werror_flag" ||
10519 test ! -s conftest.err
10520 } && test -s conftest.$ac_objext; then
10521 cat >conftest.$ac_ext <<_ACEOF
10524 cat confdefs.h >>conftest.$ac_ext
10525 cat >>conftest.$ac_ext <<_ACEOF
10526 /* end confdefs.h. */
10527 $ac_includes_default
10531 if (sizeof ((_Bool)))
10537 rm -f conftest.$ac_objext
10538 if { (ac_try="$ac_compile"
10539 case "(($ac_try" in
10540 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10541 *) ac_try_echo
=$ac_try;;
10543 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
10544 $as_echo "$ac_try_echo") >&5
10545 (eval "$ac_compile") 2>conftest.er1
10547 grep -v '^ *+' conftest.er1
>conftest.err
10549 cat conftest.err
>&5
10550 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10551 (exit $ac_status); } && {
10552 test -z "$ac_c_werror_flag" ||
10553 test ! -s conftest.err
10554 } && test -s conftest.
$ac_objext; then
10557 $as_echo "$as_me: failed program was:" >&5
10558 sed 's/^/| /' conftest.
$ac_ext >&5
10560 ac_cv_type__Bool
=yes
10563 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10565 $as_echo "$as_me: failed program was:" >&5
10566 sed 's/^/| /' conftest.
$ac_ext >&5
10571 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10573 { $as_echo "$as_me:$LINENO: result: $ac_cv_type__Bool" >&5
10574 $as_echo "$ac_cv_type__Bool" >&6; }
10575 if test "x$ac_cv_type__Bool" = x
""yes; then
10577 cat >>confdefs.h
<<_ACEOF
10578 #define HAVE__BOOL 1
10584 if test $ac_cv_header_stdbool_h = yes; then
10586 cat >>confdefs.h
<<\_ACEOF
10587 #define HAVE_STDBOOL_H 1
10596 for ac_func
in $gl_func_list
10598 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10599 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
10600 $as_echo_n "checking for $ac_func... " >&6; }
10601 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10602 $as_echo_n "(cached) " >&6
10604 cat >conftest.
$ac_ext <<_ACEOF
10607 cat confdefs.h
>>conftest.
$ac_ext
10608 cat >>conftest.
$ac_ext <<_ACEOF
10609 /* end confdefs.h. */
10610 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10611 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10612 #define $ac_func innocuous_$ac_func
10614 /* System header to define __stub macros and hopefully few prototypes,
10615 which can conflict with char $ac_func (); below.
10616 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10617 <limits.h> exists even on freestanding compilers. */
10620 # include <limits.h>
10622 # include <assert.h>
10627 /* Override any GCC internal prototype to avoid an error.
10628 Use char because int might match the return type of a GCC
10629 builtin and then its argument prototype would still apply. */
10634 /* The GNU C library defines this for functions which it implements
10635 to always fail with ENOSYS. Some functions are actually named
10636 something starting with __ and the normal name is an alias. */
10637 #if defined __stub_$ac_func || defined __stub___$ac_func
10644 return $ac_func ();
10649 rm -f conftest.
$ac_objext conftest
$ac_exeext
10650 if { (ac_try
="$ac_link"
10651 case "(($ac_try" in
10652 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10653 *) ac_try_echo=$ac_try;;
10655 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10656 $as_echo "$ac_try_echo") >&5
10657 (eval "$ac_link") 2>conftest.er1
10659 grep -v '^ *+' conftest.er1 >conftest.err
10661 cat conftest.err >&5
10662 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10663 (exit $ac_status); } && {
10664 test -z "$ac_c_werror_flag" ||
10665 test ! -s conftest.err
10666 } && test -s conftest$ac_exeext && {
10667 test "$cross_compiling" = yes ||
10668 $as_test_x conftest$ac_exeext
10670 eval "$as_ac_var=yes"
10672 $as_echo "$as_me: failed program was:" >&5
10673 sed 's/^/| /' conftest.$ac_ext >&5
10675 eval "$as_ac_var=no"
10678 rm -rf conftest.dSYM
10679 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10680 conftest$ac_exeext conftest.$ac_ext
10682 ac_res=`eval 'as_val=${'$as_ac_var'}
10683 $as_echo "$as_val"'`
10684 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10685 $as_echo "$ac_res" >&6; }
10686 as_val=`eval 'as_val=${'$as_ac_var'}
10687 $as_echo "$as_val"'`
10688 if test "x$as_val" = x""yes; then
10689 cat >>confdefs.h <<_ACEOF
10690 #define `$as_echo "HAVE_$ac_func" |
$as_tr_cpp` 1
10706 for ac_header in $gl_header_list
10708 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" |
$as_tr_sh`
10709 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10710 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10711 $as_echo_n "checking for $ac_header... " >&6; }
10712 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10713 $as_echo_n "(cached) " >&6
10715 ac_res=`eval 'as_val=${'$as_ac_Header'}
10716 $as_echo "$as_val"'`
10717 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10718 $as_echo "$ac_res" >&6; }
10720 # Is the header compilable?
10721 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
10722 $as_echo_n "checking $ac_header usability... " >&6; }
10723 cat >conftest.$ac_ext <<_ACEOF
10726 cat confdefs.h >>conftest.$ac_ext
10727 cat >>conftest.$ac_ext <<_ACEOF
10728 /* end confdefs.h. */
10729 $ac_includes_default
10730 #include <$ac_header>
10732 rm -f conftest.$ac_objext
10733 if { (ac_try="$ac_compile"
10734 case "(($ac_try" in
10735 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10736 *) ac_try_echo
=$ac_try;;
10738 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
10739 $as_echo "$ac_try_echo") >&5
10740 (eval "$ac_compile") 2>conftest.er1
10742 grep -v '^ *+' conftest.er1
>conftest.err
10744 cat conftest.err
>&5
10745 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10746 (exit $ac_status); } && {
10747 test -z "$ac_c_werror_flag" ||
10748 test ! -s conftest.err
10749 } && test -s conftest.
$ac_objext; then
10750 ac_header_compiler
=yes
10752 $as_echo "$as_me: failed program was:" >&5
10753 sed 's/^/| /' conftest.
$ac_ext >&5
10755 ac_header_compiler
=no
10758 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10759 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10760 $as_echo "$ac_header_compiler" >&6; }
10762 # Is the header present?
10763 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
10764 $as_echo_n "checking $ac_header presence... " >&6; }
10765 cat >conftest.
$ac_ext <<_ACEOF
10768 cat confdefs.h
>>conftest.
$ac_ext
10769 cat >>conftest.
$ac_ext <<_ACEOF
10770 /* end confdefs.h. */
10771 #include <$ac_header>
10773 if { (ac_try
="$ac_cpp conftest.$ac_ext"
10774 case "(($ac_try" in
10775 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10776 *) ac_try_echo=$ac_try;;
10778 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10779 $as_echo "$ac_try_echo") >&5
10780 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10782 grep -v '^ *+' conftest.er1 >conftest.err
10784 cat conftest.err >&5
10785 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10786 (exit $ac_status); } >/dev/null && {
10787 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10788 test ! -s conftest.err
10790 ac_header_preproc=yes
10792 $as_echo "$as_me: failed program was:" >&5
10793 sed 's/^/| /' conftest.$ac_ext >&5
10795 ac_header_preproc=no
10798 rm -f conftest.err conftest.$ac_ext
10799 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10800 $as_echo "$ac_header_preproc" >&6; }
10802 # So? What about this header?
10803 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10805 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10806 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10807 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10808 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10809 ac_header_preproc=yes
10812 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10813 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10814 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10815 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10816 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10817 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10818 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10819 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10820 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10821 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10822 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10823 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10825 ## --------------------------------- ##
10826 ## Report this to bug-cvs@nongnu.org ##
10827 ## --------------------------------- ##
10829 ) | sed "s/^/$as_me: WARNING: /" >&2
10832 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10833 $as_echo_n "checking for $ac_header... " >&6; }
10834 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10835 $as_echo_n "(cached) " >&6
10837 eval "$as_ac_Header=\$ac_header_preproc"
10839 ac_res=`eval 'as_val=${'$as_ac_Header'}
10840 $as_echo "$as_val"'`
10841 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10842 $as_echo "$ac_res" >&6; }
10845 as_val=`eval 'as_val=${'$as_ac_Header'}
10846 $as_echo "$as_val"'`
10847 if test "x$as_val" = x""yes; then
10848 cat >>confdefs.h <<_ACEOF
10849 #define `$as_echo "HAVE_$ac_header" |
$as_tr_cpp` 1
10863 case " $LIBOBJS " in
10864 *" save-cwd.$ac_objext "* ) ;;
10865 *) LIBOBJS="$LIBOBJS save-cwd.$ac_objext"
10885 { $as_echo "$as_me:$LINENO: checking whether memrchr is declared" >&5
10886 $as_echo_n "checking whether memrchr is declared... " >&6; }
10887 if test "${ac_cv_have_decl_memrchr+set}" = set; then
10888 $as_echo_n "(cached) " >&6
10890 cat >conftest.$ac_ext <<_ACEOF
10893 cat confdefs.h >>conftest.$ac_ext
10894 cat >>conftest.$ac_ext <<_ACEOF
10895 /* end confdefs.h. */
10896 $ac_includes_default
10908 rm -f conftest.$ac_objext
10909 if { (ac_try="$ac_compile"
10910 case "(($ac_try" in
10911 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10912 *) ac_try_echo
=$ac_try;;
10914 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
10915 $as_echo "$ac_try_echo") >&5
10916 (eval "$ac_compile") 2>conftest.er1
10918 grep -v '^ *+' conftest.er1
>conftest.err
10920 cat conftest.err
>&5
10921 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10922 (exit $ac_status); } && {
10923 test -z "$ac_c_werror_flag" ||
10924 test ! -s conftest.err
10925 } && test -s conftest.
$ac_objext; then
10926 ac_cv_have_decl_memrchr
=yes
10928 $as_echo "$as_me: failed program was:" >&5
10929 sed 's/^/| /' conftest.
$ac_ext >&5
10931 ac_cv_have_decl_memrchr
=no
10934 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10936 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_memrchr" >&5
10937 $as_echo "$ac_cv_have_decl_memrchr" >&6; }
10938 if test "x$ac_cv_have_decl_memrchr" = x
""yes; then
10940 cat >>confdefs.h
<<_ACEOF
10941 #define HAVE_DECL_MEMRCHR 1
10946 cat >>confdefs.h
<<_ACEOF
10947 #define HAVE_DECL_MEMRCHR 0
10956 { $as_echo "$as_me:$LINENO: checking whether system is Windows or MSDOS" >&5
10957 $as_echo_n "checking whether system is Windows or MSDOS... " >&6; }
10958 if test "${ac_cv_win_or_dos+set}" = set; then
10959 $as_echo_n "(cached) " >&6
10962 cat >conftest.
$ac_ext <<_ACEOF
10965 cat confdefs.h
>>conftest.
$ac_ext
10966 cat >>conftest.
$ac_ext <<_ACEOF
10967 /* end confdefs.h. */
10972 #if !defined _WIN32 && !defined __WIN32__ && !defined __MSDOS__ && !defined __CYGWIN__
10973 neither MSDOS nor Windows
10979 rm -f conftest.
$ac_objext
10980 if { (ac_try
="$ac_compile"
10981 case "(($ac_try" in
10982 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10983 *) ac_try_echo=$ac_try;;
10985 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10986 $as_echo "$ac_try_echo") >&5
10987 (eval "$ac_compile") 2>conftest.er1
10989 grep -v '^ *+' conftest.er1 >conftest.err
10991 cat conftest.err >&5
10992 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10993 (exit $ac_status); } && {
10994 test -z "$ac_c_werror_flag" ||
10995 test ! -s conftest.err
10996 } && test -s conftest.$ac_objext; then
10997 ac_cv_win_or_dos=yes
10999 $as_echo "$as_me: failed program was:" >&5
11000 sed 's/^/| /' conftest.$ac_ext >&5
11002 ac_cv_win_or_dos=no
11005 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11008 { $as_echo "$as_me:$LINENO: result: $ac_cv_win_or_dos" >&5
11009 $as_echo "$ac_cv_win_or_dos" >&6; }
11011 if test x"$ac_cv_win_or_dos" = xyes; then
11012 ac_fs_accepts_drive_letter_prefix=1
11013 ac_fs_backslash_is_file_name_separator=1
11015 ac_fs_accepts_drive_letter_prefix=0
11016 ac_fs_backslash_is_file_name_separator=0
11023 cat >>confdefs.h <<_ACEOF
11024 #define FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX $ac_fs_accepts_drive_letter_prefix
11032 cat >>confdefs.h <<_ACEOF
11033 #define FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR $ac_fs_backslash_is_file_name_separator
11037 { $as_echo "$as_me:$LINENO: checking whether strerror_r is declared" >&5
11038 $as_echo_n "checking whether strerror_r is declared... " >&6; }
11039 if test "${ac_cv_have_decl_strerror_r+set}" = set; then
11040 $as_echo_n "(cached) " >&6
11042 cat >conftest.$ac_ext <<_ACEOF
11045 cat confdefs.h >>conftest.$ac_ext
11046 cat >>conftest.$ac_ext <<_ACEOF
11047 /* end confdefs.h. */
11048 $ac_includes_default
11060 rm -f conftest.$ac_objext
11061 if { (ac_try="$ac_compile"
11062 case "(($ac_try" in
11063 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11064 *) ac_try_echo
=$ac_try;;
11066 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
11067 $as_echo "$ac_try_echo") >&5
11068 (eval "$ac_compile") 2>conftest.er1
11070 grep -v '^ *+' conftest.er1
>conftest.err
11072 cat conftest.err
>&5
11073 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11074 (exit $ac_status); } && {
11075 test -z "$ac_c_werror_flag" ||
11076 test ! -s conftest.err
11077 } && test -s conftest.
$ac_objext; then
11078 ac_cv_have_decl_strerror_r
=yes
11080 $as_echo "$as_me: failed program was:" >&5
11081 sed 's/^/| /' conftest.
$ac_ext >&5
11083 ac_cv_have_decl_strerror_r
=no
11086 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11088 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_strerror_r" >&5
11089 $as_echo "$ac_cv_have_decl_strerror_r" >&6; }
11090 if test "x$ac_cv_have_decl_strerror_r" = x
""yes; then
11092 cat >>confdefs.h
<<_ACEOF
11093 #define HAVE_DECL_STRERROR_R 1
11098 cat >>confdefs.h
<<_ACEOF
11099 #define HAVE_DECL_STRERROR_R 0
11107 for ac_func
in strerror_r
11109 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11110 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
11111 $as_echo_n "checking for $ac_func... " >&6; }
11112 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11113 $as_echo_n "(cached) " >&6
11115 cat >conftest.
$ac_ext <<_ACEOF
11118 cat confdefs.h
>>conftest.
$ac_ext
11119 cat >>conftest.
$ac_ext <<_ACEOF
11120 /* end confdefs.h. */
11121 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11122 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11123 #define $ac_func innocuous_$ac_func
11125 /* System header to define __stub macros and hopefully few prototypes,
11126 which can conflict with char $ac_func (); below.
11127 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11128 <limits.h> exists even on freestanding compilers. */
11131 # include <limits.h>
11133 # include <assert.h>
11138 /* Override any GCC internal prototype to avoid an error.
11139 Use char because int might match the return type of a GCC
11140 builtin and then its argument prototype would still apply. */
11145 /* The GNU C library defines this for functions which it implements
11146 to always fail with ENOSYS. Some functions are actually named
11147 something starting with __ and the normal name is an alias. */
11148 #if defined __stub_$ac_func || defined __stub___$ac_func
11155 return $ac_func ();
11160 rm -f conftest.
$ac_objext conftest
$ac_exeext
11161 if { (ac_try
="$ac_link"
11162 case "(($ac_try" in
11163 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11164 *) ac_try_echo=$ac_try;;
11166 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11167 $as_echo "$ac_try_echo") >&5
11168 (eval "$ac_link") 2>conftest.er1
11170 grep -v '^ *+' conftest.er1 >conftest.err
11172 cat conftest.err >&5
11173 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11174 (exit $ac_status); } && {
11175 test -z "$ac_c_werror_flag" ||
11176 test ! -s conftest.err
11177 } && test -s conftest$ac_exeext && {
11178 test "$cross_compiling" = yes ||
11179 $as_test_x conftest$ac_exeext
11181 eval "$as_ac_var=yes"
11183 $as_echo "$as_me: failed program was:" >&5
11184 sed 's/^/| /' conftest.$ac_ext >&5
11186 eval "$as_ac_var=no"
11189 rm -rf conftest.dSYM
11190 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11191 conftest$ac_exeext conftest.$ac_ext
11193 ac_res=`eval 'as_val=${'$as_ac_var'}
11194 $as_echo "$as_val"'`
11195 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11196 $as_echo "$ac_res" >&6; }
11197 as_val=`eval 'as_val=${'$as_ac_var'}
11198 $as_echo "$as_val"'`
11199 if test "x$as_val" = x""yes; then
11200 cat >>confdefs.h <<_ACEOF
11201 #define `$as_echo "HAVE_$ac_func" |
$as_tr_cpp` 1
11207 { $as_echo "$as_me:$LINENO: checking whether strerror_r returns char *" >&5
11208 $as_echo_n "checking whether strerror_r returns char *... " >&6; }
11209 if test "${ac_cv_func_strerror_r_char_p+set}" = set; then
11210 $as_echo_n "(cached) " >&6
11213 ac_cv_func_strerror_r_char_p=no
11214 if test $ac_cv_have_decl_strerror_r = yes; then
11215 cat >conftest.$ac_ext <<_ACEOF
11218 cat confdefs.h >>conftest.$ac_ext
11219 cat >>conftest.$ac_ext <<_ACEOF
11220 /* end confdefs.h. */
11221 $ac_includes_default
11227 char x = *strerror_r (0, buf, sizeof buf);
11228 char *p = strerror_r (0, buf, sizeof buf);
11235 rm -f conftest.$ac_objext
11236 if { (ac_try="$ac_compile"
11237 case "(($ac_try" in
11238 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11239 *) ac_try_echo
=$ac_try;;
11241 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
11242 $as_echo "$ac_try_echo") >&5
11243 (eval "$ac_compile") 2>conftest.er1
11245 grep -v '^ *+' conftest.er1
>conftest.err
11247 cat conftest.err
>&5
11248 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11249 (exit $ac_status); } && {
11250 test -z "$ac_c_werror_flag" ||
11251 test ! -s conftest.err
11252 } && test -s conftest.
$ac_objext; then
11253 ac_cv_func_strerror_r_char_p
=yes
11255 $as_echo "$as_me: failed program was:" >&5
11256 sed 's/^/| /' conftest.
$ac_ext >&5
11261 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11263 # strerror_r is not declared. Choose between
11264 # systems that have relatively inaccessible declarations for the
11265 # function. BeOS and DEC UNIX 4.0 fall in this category, but the
11266 # former has a strerror_r that returns char*, while the latter
11267 # has a strerror_r that returns `int'.
11268 # This test should segfault on the DEC system.
11269 if test "$cross_compiling" = yes; then
11272 cat >conftest.
$ac_ext <<_ACEOF
11275 cat confdefs.h
>>conftest.
$ac_ext
11276 cat >>conftest.
$ac_ext <<_ACEOF
11277 /* end confdefs.h. */
11278 $ac_includes_default
11279 extern char *strerror_r ();
11284 char x = *strerror_r (0, buf, sizeof buf);
11285 return ! isalpha (x);
11290 rm -f conftest
$ac_exeext
11291 if { (ac_try
="$ac_link"
11292 case "(($ac_try" in
11293 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11294 *) ac_try_echo=$ac_try;;
11296 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11297 $as_echo "$ac_try_echo") >&5
11298 (eval "$ac_link") 2>&5
11300 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11301 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11302 { (case "(($ac_try" in
11303 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11304 *) ac_try_echo
=$ac_try;;
11306 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
11307 $as_echo "$ac_try_echo") >&5
11308 (eval "$ac_try") 2>&5
11310 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11311 (exit $ac_status); }; }; then
11312 ac_cv_func_strerror_r_char_p
=yes
11314 $as_echo "$as_me: program exited with status $ac_status" >&5
11315 $as_echo "$as_me: failed program was:" >&5
11316 sed 's/^/| /' conftest.
$ac_ext >&5
11319 rm -rf conftest.dSYM
11320 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
11327 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_strerror_r_char_p" >&5
11328 $as_echo "$ac_cv_func_strerror_r_char_p" >&6; }
11329 if test $ac_cv_func_strerror_r_char_p = yes; then
11331 cat >>confdefs.h
<<\_ACEOF
11332 #define STRERROR_R_CHAR_P 1
11343 { $as_echo "$as_me:$LINENO: checking for mbstate_t" >&5
11344 $as_echo_n "checking for mbstate_t... " >&6; }
11345 if test "${ac_cv_type_mbstate_t+set}" = set; then
11346 $as_echo_n "(cached) " >&6
11348 cat >conftest.
$ac_ext <<_ACEOF
11351 cat confdefs.h
>>conftest.
$ac_ext
11352 cat >>conftest.
$ac_ext <<_ACEOF
11353 /* end confdefs.h. */
11354 $ac_includes_default
11355 # include <wchar.h>
11359 mbstate_t x; return sizeof x;
11364 rm -f conftest.
$ac_objext
11365 if { (ac_try
="$ac_compile"
11366 case "(($ac_try" in
11367 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11368 *) ac_try_echo=$ac_try;;
11370 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11371 $as_echo "$ac_try_echo") >&5
11372 (eval "$ac_compile") 2>conftest.er1
11374 grep -v '^ *+' conftest.er1 >conftest.err
11376 cat conftest.err >&5
11377 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11378 (exit $ac_status); } && {
11379 test -z "$ac_c_werror_flag" ||
11380 test ! -s conftest.err
11381 } && test -s conftest.$ac_objext; then
11382 ac_cv_type_mbstate_t=yes
11384 $as_echo "$as_me: failed program was:" >&5
11385 sed 's/^/| /' conftest.$ac_ext >&5
11387 ac_cv_type_mbstate_t=no
11390 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11392 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_mbstate_t" >&5
11393 $as_echo "$ac_cv_type_mbstate_t" >&6; }
11394 if test $ac_cv_type_mbstate_t = yes; then
11396 cat >>confdefs.h <<\_ACEOF
11397 #define HAVE_MBSTATE_T 1
11402 cat >>confdefs.h <<\_ACEOF
11403 #define mbstate_t int
11417 { $as_echo "$as_me:$LINENO: checking whether getcwd (NULL, 0) allocates memory for result" >&5
11418 $as_echo_n "checking whether getcwd (NULL, 0) allocates memory for result... " >&6; }
11419 if test "${gl_cv_func_getcwd_null+set}" = set; then
11420 $as_echo_n "(cached) " >&6
11422 if test "$cross_compiling" = yes; then
11423 gl_cv_func_getcwd_null=no
11425 cat >conftest.$ac_ext <<_ACEOF
11428 cat confdefs.h >>conftest.$ac_ext
11429 cat >>conftest.$ac_ext <<_ACEOF
11430 /* end confdefs.h. */
11432 # include <stdlib.h>
11433 # ifdef HAVE_UNISTD_H
11434 # include <unistd.h>
11442 if (chdir ("/") != 0)
11446 char *f = getcwd (NULL, 0);
11447 exit (! (f && f[0] == '/' && !f[1]));
11451 rm -f conftest$ac_exeext
11452 if { (ac_try="$ac_link"
11453 case "(($ac_try" in
11454 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11455 *) ac_try_echo
=$ac_try;;
11457 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
11458 $as_echo "$ac_try_echo") >&5
11459 (eval "$ac_link") 2>&5
11461 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11462 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
11463 { (case "(($ac_try" in
11464 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11465 *) ac_try_echo=$ac_try;;
11467 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11468 $as_echo "$ac_try_echo") >&5
11469 (eval "$ac_try") 2>&5
11471 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11472 (exit $ac_status); }; }; then
11473 gl_cv_func_getcwd_null=yes
11475 $as_echo "$as_me: program exited with status $ac_status" >&5
11476 $as_echo "$as_me: failed program was:" >&5
11477 sed 's/^/| /' conftest.$ac_ext >&5
11479 ( exit $ac_status )
11480 gl_cv_func_getcwd_null=no
11482 rm -rf conftest.dSYM
11483 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11488 { $as_echo "$as_me:$LINENO: result: $gl_cv_func_getcwd_null" >&5
11489 $as_echo "$gl_cv_func_getcwd_null" >&6; }
11492 { $as_echo "$as_me:$LINENO: checking whether getcwd is declared" >&5
11493 $as_echo_n "checking whether getcwd is declared... " >&6; }
11494 if test "${ac_cv_have_decl_getcwd+set}" = set; then
11495 $as_echo_n "(cached) " >&6
11497 cat >conftest.$ac_ext <<_ACEOF
11500 cat confdefs.h >>conftest.$ac_ext
11501 cat >>conftest.$ac_ext <<_ACEOF
11502 /* end confdefs.h. */
11503 $ac_includes_default
11515 rm -f conftest.$ac_objext
11516 if { (ac_try="$ac_compile"
11517 case "(($ac_try" in
11518 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11519 *) ac_try_echo
=$ac_try;;
11521 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
11522 $as_echo "$ac_try_echo") >&5
11523 (eval "$ac_compile") 2>conftest.er1
11525 grep -v '^ *+' conftest.er1
>conftest.err
11527 cat conftest.err
>&5
11528 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11529 (exit $ac_status); } && {
11530 test -z "$ac_c_werror_flag" ||
11531 test ! -s conftest.err
11532 } && test -s conftest.
$ac_objext; then
11533 ac_cv_have_decl_getcwd
=yes
11535 $as_echo "$as_me: failed program was:" >&5
11536 sed 's/^/| /' conftest.
$ac_ext >&5
11538 ac_cv_have_decl_getcwd
=no
11541 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11543 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_getcwd" >&5
11544 $as_echo "$ac_cv_have_decl_getcwd" >&6; }
11545 if test "x$ac_cv_have_decl_getcwd" = x
""yes; then
11547 cat >>confdefs.h
<<_ACEOF
11548 #define HAVE_DECL_GETCWD 1
11553 cat >>confdefs.h
<<_ACEOF
11554 #define HAVE_DECL_GETCWD 0
11562 { $as_echo "$as_me:$LINENO: checking for d_ino member in directory struct" >&5
11563 $as_echo_n "checking for d_ino member in directory struct... " >&6; }
11564 if test "${jm_cv_struct_dirent_d_ino+set}" = set; then
11565 $as_echo_n "(cached) " >&6
11567 cat >conftest.
$ac_ext <<_ACEOF
11570 cat confdefs.h
>>conftest.
$ac_ext
11571 cat >>conftest.
$ac_ext <<_ACEOF
11572 /* end confdefs.h. */
11574 #include <sys/types.h>
11575 #ifdef HAVE_DIRENT_H
11576 # include <dirent.h>
11577 #else /* not HAVE_DIRENT_H */
11578 # define dirent direct
11579 # ifdef HAVE_SYS_NDIR_H
11580 # include <sys/ndir.h>
11581 # endif /* HAVE_SYS_NDIR_H */
11582 # ifdef HAVE_SYS_DIR_H
11583 # include <sys/dir.h>
11584 # endif /* HAVE_SYS_DIR_H */
11585 # ifdef HAVE_NDIR_H
11587 # endif /* HAVE_NDIR_H */
11588 #endif /* HAVE_DIRENT_H */
11593 struct dirent dp; dp.d_ino = 0;
11598 rm -f conftest.
$ac_objext conftest
$ac_exeext
11599 if { (ac_try
="$ac_link"
11600 case "(($ac_try" in
11601 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11602 *) ac_try_echo=$ac_try;;
11604 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11605 $as_echo "$ac_try_echo") >&5
11606 (eval "$ac_link") 2>conftest.er1
11608 grep -v '^ *+' conftest.er1 >conftest.err
11610 cat conftest.err >&5
11611 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11612 (exit $ac_status); } && {
11613 test -z "$ac_c_werror_flag" ||
11614 test ! -s conftest.err
11615 } && test -s conftest$ac_exeext && {
11616 test "$cross_compiling" = yes ||
11617 $as_test_x conftest$ac_exeext
11619 jm_cv_struct_dirent_d_ino=yes
11621 $as_echo "$as_me: failed program was:" >&5
11622 sed 's/^/| /' conftest.$ac_ext >&5
11624 jm_cv_struct_dirent_d_ino=no
11627 rm -rf conftest.dSYM
11628 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11629 conftest$ac_exeext conftest.$ac_ext
11633 { $as_echo "$as_me:$LINENO: result: $jm_cv_struct_dirent_d_ino" >&5
11634 $as_echo "$jm_cv_struct_dirent_d_ino" >&6; }
11635 if test $jm_cv_struct_dirent_d_ino = yes; then
11637 cat >>confdefs.h <<\_ACEOF
11638 #define D_INO_IN_DIRENT 1
11644 { $as_echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
11645 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
11646 if test "${ac_cv_header_time+set}" = set; then
11647 $as_echo_n "(cached) " >&6
11649 cat >conftest.$ac_ext <<_ACEOF
11652 cat confdefs.h >>conftest.$ac_ext
11653 cat >>conftest.$ac_ext <<_ACEOF
11654 /* end confdefs.h. */
11655 #include <sys/types.h>
11656 #include <sys/time.h>
11662 if ((struct tm *) 0)
11668 rm -f conftest.$ac_objext
11669 if { (ac_try="$ac_compile"
11670 case "(($ac_try" in
11671 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11672 *) ac_try_echo
=$ac_try;;
11674 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
11675 $as_echo "$ac_try_echo") >&5
11676 (eval "$ac_compile") 2>conftest.er1
11678 grep -v '^ *+' conftest.er1
>conftest.err
11680 cat conftest.err
>&5
11681 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11682 (exit $ac_status); } && {
11683 test -z "$ac_c_werror_flag" ||
11684 test ! -s conftest.err
11685 } && test -s conftest.
$ac_objext; then
11686 ac_cv_header_time
=yes
11688 $as_echo "$as_me: failed program was:" >&5
11689 sed 's/^/| /' conftest.
$ac_ext >&5
11691 ac_cv_header_time
=no
11694 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11696 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
11697 $as_echo "$ac_cv_header_time" >&6; }
11698 if test $ac_cv_header_time = yes; then
11700 cat >>confdefs.h
<<\_ACEOF
11701 #define TIME_WITH_SYS_TIME 1
11735 { $as_echo "$as_me:$LINENO: checking for struct timespec" >&5
11736 $as_echo_n "checking for struct timespec... " >&6; }
11737 if test "${fu_cv_sys_struct_timespec+set}" = set; then
11738 $as_echo_n "(cached) " >&6
11740 cat >conftest.
$ac_ext <<_ACEOF
11743 cat confdefs.h
>>conftest.
$ac_ext
11744 cat >>conftest.
$ac_ext <<_ACEOF
11745 /* end confdefs.h. */
11747 # if TIME_WITH_SYS_TIME
11748 # include <sys/time.h>
11751 # if HAVE_SYS_TIME_H
11752 # include <sys/time.h>
11761 static struct timespec x; x.tv_sec = x.tv_nsec;
11766 rm -f conftest.
$ac_objext
11767 if { (ac_try
="$ac_compile"
11768 case "(($ac_try" in
11769 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11770 *) ac_try_echo=$ac_try;;
11772 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11773 $as_echo "$ac_try_echo") >&5
11774 (eval "$ac_compile") 2>conftest.er1
11776 grep -v '^ *+' conftest.er1 >conftest.err
11778 cat conftest.err >&5
11779 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11780 (exit $ac_status); } && {
11781 test -z "$ac_c_werror_flag" ||
11782 test ! -s conftest.err
11783 } && test -s conftest.$ac_objext; then
11784 fu_cv_sys_struct_timespec=yes
11786 $as_echo "$as_me: failed program was:" >&5
11787 sed 's/^/| /' conftest.$ac_ext >&5
11789 fu_cv_sys_struct_timespec=no
11792 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11795 { $as_echo "$as_me:$LINENO: result: $fu_cv_sys_struct_timespec" >&5
11796 $as_echo "$fu_cv_sys_struct_timespec" >&6; }
11798 if test $fu_cv_sys_struct_timespec = yes; then
11800 cat >>confdefs.h <<\_ACEOF
11801 #define HAVE_STRUCT_TIMESPEC 1
11809 { $as_echo "$as_me:$LINENO: checking whether nanosleep is declared" >&5
11810 $as_echo_n "checking whether nanosleep is declared... " >&6; }
11811 if test "${ac_cv_have_decl_nanosleep+set}" = set; then
11812 $as_echo_n "(cached) " >&6
11814 cat >conftest.$ac_ext <<_ACEOF
11817 cat confdefs.h >>conftest.$ac_ext
11818 cat >>conftest.$ac_ext <<_ACEOF
11819 /* end confdefs.h. */
11833 rm -f conftest.$ac_objext
11834 if { (ac_try="$ac_compile"
11835 case "(($ac_try" in
11836 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11837 *) ac_try_echo
=$ac_try;;
11839 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
11840 $as_echo "$ac_try_echo") >&5
11841 (eval "$ac_compile") 2>conftest.er1
11843 grep -v '^ *+' conftest.er1
>conftest.err
11845 cat conftest.err
>&5
11846 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11847 (exit $ac_status); } && {
11848 test -z "$ac_c_werror_flag" ||
11849 test ! -s conftest.err
11850 } && test -s conftest.
$ac_objext; then
11851 ac_cv_have_decl_nanosleep
=yes
11853 $as_echo "$as_me: failed program was:" >&5
11854 sed 's/^/| /' conftest.
$ac_ext >&5
11856 ac_cv_have_decl_nanosleep
=no
11859 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11861 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_nanosleep" >&5
11862 $as_echo "$ac_cv_have_decl_nanosleep" >&6; }
11863 if test "x$ac_cv_have_decl_nanosleep" = x
""yes; then
11865 cat >>confdefs.h
<<_ACEOF
11866 #define HAVE_DECL_NANOSLEEP 1
11871 cat >>confdefs.h
<<_ACEOF
11872 #define HAVE_DECL_NANOSLEEP 0
11880 # expand $ac_aux_dir to an absolute path
11881 am_aux_dir
=`cd $ac_aux_dir && pwd`
11883 # getdate.y works with bison only.
11884 : ${YACC="\${SHELL} $am_aux_dir/bison-missing --run bison -y"}
11892 { $as_echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
11893 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
11894 if test "${ac_cv_struct_tm+set}" = set; then
11895 $as_echo_n "(cached) " >&6
11897 cat >conftest.
$ac_ext <<_ACEOF
11900 cat confdefs.h
>>conftest.
$ac_ext
11901 cat >>conftest.
$ac_ext <<_ACEOF
11902 /* end confdefs.h. */
11903 #include <sys/types.h>
11910 int *p = &tm.tm_sec;
11916 rm -f conftest.
$ac_objext
11917 if { (ac_try
="$ac_compile"
11918 case "(($ac_try" in
11919 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11920 *) ac_try_echo=$ac_try;;
11922 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11923 $as_echo "$ac_try_echo") >&5
11924 (eval "$ac_compile") 2>conftest.er1
11926 grep -v '^ *+' conftest.er1 >conftest.err
11928 cat conftest.err >&5
11929 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11930 (exit $ac_status); } && {
11931 test -z "$ac_c_werror_flag" ||
11932 test ! -s conftest.err
11933 } && test -s conftest.$ac_objext; then
11934 ac_cv_struct_tm=time.h
11936 $as_echo "$as_me: failed program was:" >&5
11937 sed 's/^/| /' conftest.$ac_ext >&5
11939 ac_cv_struct_tm=sys/time.h
11942 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11944 { $as_echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
11945 $as_echo "$ac_cv_struct_tm" >&6; }
11946 if test $ac_cv_struct_tm = sys/time.h; then
11948 cat >>confdefs.h <<\_ACEOF
11949 #define TM_IN_SYS_TIME 1
11955 # dnl Persuade glibc <time.h> to declare these functions.
11958 # Solaris 2.5.1 needs -lposix4 to get the clock_gettime function.
11959 # Solaris 7 prefers the library name -lrt to the obsolescent name -lposix4.
11961 # Save and restore LIBS so e.g., -lrt, isn't added to it. Otherwise, *all*
11962 # programs in the package would end up linked with that potentially-shared
11963 # library, inducing unnecessary run-time overhead.
11964 gl_saved_libs=$LIBS
11965 { $as_echo "$as_me:$LINENO: checking for library containing clock_gettime" >&5
11966 $as_echo_n "checking for library containing clock_gettime... " >&6; }
11967 if test "${ac_cv_search_clock_gettime+set}" = set; then
11968 $as_echo_n "(cached) " >&6
11970 ac_func_search_save_LIBS=$LIBS
11971 cat >conftest.$ac_ext <<_ACEOF
11974 cat confdefs.h >>conftest.$ac_ext
11975 cat >>conftest.$ac_ext <<_ACEOF
11976 /* end confdefs.h. */
11978 /* Override any GCC internal prototype to avoid an error.
11979 Use char because int might match the return type of a GCC
11980 builtin and then its argument prototype would still apply. */
11984 char clock_gettime ();
11988 return clock_gettime ();
11993 for ac_lib in '' rt posix4; do
11994 if test -z "$ac_lib"; then
11995 ac_res="none required"
11998 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12000 rm -f conftest.$ac_objext conftest$ac_exeext
12001 if { (ac_try="$ac_link"
12002 case "(($ac_try" in
12003 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12004 *) ac_try_echo
=$ac_try;;
12006 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
12007 $as_echo "$ac_try_echo") >&5
12008 (eval "$ac_link") 2>conftest.er1
12010 grep -v '^ *+' conftest.er1
>conftest.err
12012 cat conftest.err
>&5
12013 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12014 (exit $ac_status); } && {
12015 test -z "$ac_c_werror_flag" ||
12016 test ! -s conftest.err
12017 } && test -s conftest
$ac_exeext && {
12018 test "$cross_compiling" = yes ||
12019 $as_test_x conftest
$ac_exeext
12021 ac_cv_search_clock_gettime
=$ac_res
12023 $as_echo "$as_me: failed program was:" >&5
12024 sed 's/^/| /' conftest.
$ac_ext >&5
12029 rm -rf conftest.dSYM
12030 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
12032 if test "${ac_cv_search_clock_gettime+set}" = set; then
12036 if test "${ac_cv_search_clock_gettime+set}" = set; then
12039 ac_cv_search_clock_gettime
=no
12041 rm conftest.
$ac_ext
12042 LIBS
=$ac_func_search_save_LIBS
12044 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_clock_gettime" >&5
12045 $as_echo "$ac_cv_search_clock_gettime" >&6; }
12046 ac_res
=$ac_cv_search_clock_gettime
12047 if test "$ac_res" != no
; then
12048 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
12049 test "$ac_cv_search_clock_gettime" = "none required" ||
12050 LIB_CLOCK_GETTIME
=$ac_cv_search_clock_gettime
12056 for ac_func
in clock_gettime clock_settime
12058 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12059 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
12060 $as_echo_n "checking for $ac_func... " >&6; }
12061 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12062 $as_echo_n "(cached) " >&6
12064 cat >conftest.
$ac_ext <<_ACEOF
12067 cat confdefs.h
>>conftest.
$ac_ext
12068 cat >>conftest.
$ac_ext <<_ACEOF
12069 /* end confdefs.h. */
12070 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12071 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12072 #define $ac_func innocuous_$ac_func
12074 /* System header to define __stub macros and hopefully few prototypes,
12075 which can conflict with char $ac_func (); below.
12076 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12077 <limits.h> exists even on freestanding compilers. */
12080 # include <limits.h>
12082 # include <assert.h>
12087 /* Override any GCC internal prototype to avoid an error.
12088 Use char because int might match the return type of a GCC
12089 builtin and then its argument prototype would still apply. */
12094 /* The GNU C library defines this for functions which it implements
12095 to always fail with ENOSYS. Some functions are actually named
12096 something starting with __ and the normal name is an alias. */
12097 #if defined __stub_$ac_func || defined __stub___$ac_func
12104 return $ac_func ();
12109 rm -f conftest.
$ac_objext conftest
$ac_exeext
12110 if { (ac_try
="$ac_link"
12111 case "(($ac_try" in
12112 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12113 *) ac_try_echo=$ac_try;;
12115 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12116 $as_echo "$ac_try_echo") >&5
12117 (eval "$ac_link") 2>conftest.er1
12119 grep -v '^ *+' conftest.er1 >conftest.err
12121 cat conftest.err >&5
12122 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12123 (exit $ac_status); } && {
12124 test -z "$ac_c_werror_flag" ||
12125 test ! -s conftest.err
12126 } && test -s conftest$ac_exeext && {
12127 test "$cross_compiling" = yes ||
12128 $as_test_x conftest$ac_exeext
12130 eval "$as_ac_var=yes"
12132 $as_echo "$as_me: failed program was:" >&5
12133 sed 's/^/| /' conftest.$ac_ext >&5
12135 eval "$as_ac_var=no"
12138 rm -rf conftest.dSYM
12139 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12140 conftest$ac_exeext conftest.$ac_ext
12142 ac_res=`eval 'as_val=${'$as_ac_var'}
12143 $as_echo "$as_val"'`
12144 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12145 $as_echo "$ac_res" >&6; }
12146 as_val=`eval 'as_val=${'$as_ac_var'}
12147 $as_echo "$as_val"'`
12148 if test "x$as_val" = x""yes; then
12149 cat >>confdefs.h <<_ACEOF
12150 #define `$as_echo "HAVE_$ac_func" |
$as_tr_cpp` 1
12156 LIBS=$gl_saved_libs
12159 { $as_echo "$as_me:$LINENO: checking for struct tm.tm_gmtoff" >&5
12160 $as_echo_n "checking for struct tm.tm_gmtoff... " >&6; }
12161 if test "${ac_cv_member_struct_tm_tm_gmtoff+set}" = set; then
12162 $as_echo_n "(cached) " >&6
12164 cat >conftest.$ac_ext <<_ACEOF
12167 cat confdefs.h >>conftest.$ac_ext
12168 cat >>conftest.$ac_ext <<_ACEOF
12169 /* end confdefs.h. */
12175 static struct tm ac_aggr;
12176 if (ac_aggr.tm_gmtoff)
12182 rm -f conftest.$ac_objext
12183 if { (ac_try="$ac_compile"
12184 case "(($ac_try" in
12185 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12186 *) ac_try_echo
=$ac_try;;
12188 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
12189 $as_echo "$ac_try_echo") >&5
12190 (eval "$ac_compile") 2>conftest.er1
12192 grep -v '^ *+' conftest.er1
>conftest.err
12194 cat conftest.err
>&5
12195 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12196 (exit $ac_status); } && {
12197 test -z "$ac_c_werror_flag" ||
12198 test ! -s conftest.err
12199 } && test -s conftest.
$ac_objext; then
12200 ac_cv_member_struct_tm_tm_gmtoff
=yes
12202 $as_echo "$as_me: failed program was:" >&5
12203 sed 's/^/| /' conftest.
$ac_ext >&5
12205 cat >conftest.
$ac_ext <<_ACEOF
12208 cat confdefs.h
>>conftest.
$ac_ext
12209 cat >>conftest.
$ac_ext <<_ACEOF
12210 /* end confdefs.h. */
12216 static struct tm ac_aggr;
12217 if (sizeof ac_aggr.tm_gmtoff)
12223 rm -f conftest.
$ac_objext
12224 if { (ac_try
="$ac_compile"
12225 case "(($ac_try" in
12226 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12227 *) ac_try_echo=$ac_try;;
12229 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12230 $as_echo "$ac_try_echo") >&5
12231 (eval "$ac_compile") 2>conftest.er1
12233 grep -v '^ *+' conftest.er1 >conftest.err
12235 cat conftest.err >&5
12236 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12237 (exit $ac_status); } && {
12238 test -z "$ac_c_werror_flag" ||
12239 test ! -s conftest.err
12240 } && test -s conftest.$ac_objext; then
12241 ac_cv_member_struct_tm_tm_gmtoff=yes
12243 $as_echo "$as_me: failed program was:" >&5
12244 sed 's/^/| /' conftest.$ac_ext >&5
12246 ac_cv_member_struct_tm_tm_gmtoff=no
12249 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12252 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12254 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_gmtoff" >&5
12255 $as_echo "$ac_cv_member_struct_tm_tm_gmtoff" >&6; }
12256 if test "x$ac_cv_member_struct_tm_tm_gmtoff" = x""yes; then
12258 cat >>confdefs.h <<\_ACEOF
12259 #define HAVE_TM_GMTOFF 1
12266 { $as_echo "$as_me:$LINENO: checking whether getdelim is declared" >&5
12267 $as_echo_n "checking whether getdelim is declared... " >&6; }
12268 if test "${ac_cv_have_decl_getdelim+set}" = set; then
12269 $as_echo_n "(cached) " >&6
12271 cat >conftest.$ac_ext <<_ACEOF
12274 cat confdefs.h >>conftest.$ac_ext
12275 cat >>conftest.$ac_ext <<_ACEOF
12276 /* end confdefs.h. */
12277 $ac_includes_default
12289 rm -f conftest.$ac_objext
12290 if { (ac_try="$ac_compile"
12291 case "(($ac_try" in
12292 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12293 *) ac_try_echo
=$ac_try;;
12295 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
12296 $as_echo "$ac_try_echo") >&5
12297 (eval "$ac_compile") 2>conftest.er1
12299 grep -v '^ *+' conftest.er1
>conftest.err
12301 cat conftest.err
>&5
12302 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12303 (exit $ac_status); } && {
12304 test -z "$ac_c_werror_flag" ||
12305 test ! -s conftest.err
12306 } && test -s conftest.
$ac_objext; then
12307 ac_cv_have_decl_getdelim
=yes
12309 $as_echo "$as_me: failed program was:" >&5
12310 sed 's/^/| /' conftest.
$ac_ext >&5
12312 ac_cv_have_decl_getdelim
=no
12315 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12317 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_getdelim" >&5
12318 $as_echo "$ac_cv_have_decl_getdelim" >&6; }
12319 if test "x$ac_cv_have_decl_getdelim" = x
""yes; then
12321 cat >>confdefs.h
<<_ACEOF
12322 #define HAVE_DECL_GETDELIM 1
12327 cat >>confdefs.h
<<_ACEOF
12328 #define HAVE_DECL_GETDELIM 0
12337 { $as_echo "$as_me:$LINENO: checking whether getlogin is declared" >&5
12338 $as_echo_n "checking whether getlogin is declared... " >&6; }
12339 if test "${ac_cv_have_decl_getlogin+set}" = set; then
12340 $as_echo_n "(cached) " >&6
12342 cat >conftest.
$ac_ext <<_ACEOF
12345 cat confdefs.h
>>conftest.
$ac_ext
12346 cat >>conftest.
$ac_ext <<_ACEOF
12347 /* end confdefs.h. */
12348 $ac_includes_default
12360 rm -f conftest.
$ac_objext
12361 if { (ac_try
="$ac_compile"
12362 case "(($ac_try" in
12363 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12364 *) ac_try_echo=$ac_try;;
12366 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12367 $as_echo "$ac_try_echo") >&5
12368 (eval "$ac_compile") 2>conftest.er1
12370 grep -v '^ *+' conftest.er1 >conftest.err
12372 cat conftest.err >&5
12373 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12374 (exit $ac_status); } && {
12375 test -z "$ac_c_werror_flag" ||
12376 test ! -s conftest.err
12377 } && test -s conftest.$ac_objext; then
12378 ac_cv_have_decl_getlogin=yes
12380 $as_echo "$as_me: failed program was:" >&5
12381 sed 's/^/| /' conftest.$ac_ext >&5
12383 ac_cv_have_decl_getlogin=no
12386 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12388 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_getlogin" >&5
12389 $as_echo "$ac_cv_have_decl_getlogin" >&6; }
12390 if test "x$ac_cv_have_decl_getlogin" = x""yes; then
12392 cat >>confdefs.h <<_ACEOF
12393 #define HAVE_DECL_GETLOGIN 1
12398 cat >>confdefs.h <<_ACEOF
12399 #define HAVE_DECL_GETLOGIN 0
12408 { $as_echo "$as_me:$LINENO: checking whether getlogin_r is declared" >&5
12409 $as_echo_n "checking whether getlogin_r is declared... " >&6; }
12410 if test "${ac_cv_have_decl_getlogin_r+set}" = set; then
12411 $as_echo_n "(cached) " >&6
12413 cat >conftest.$ac_ext <<_ACEOF
12416 cat confdefs.h >>conftest.$ac_ext
12417 cat >>conftest.$ac_ext <<_ACEOF
12418 /* end confdefs.h. */
12419 $ac_includes_default
12431 rm -f conftest.$ac_objext
12432 if { (ac_try="$ac_compile"
12433 case "(($ac_try" in
12434 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12435 *) ac_try_echo
=$ac_try;;
12437 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
12438 $as_echo "$ac_try_echo") >&5
12439 (eval "$ac_compile") 2>conftest.er1
12441 grep -v '^ *+' conftest.er1
>conftest.err
12443 cat conftest.err
>&5
12444 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12445 (exit $ac_status); } && {
12446 test -z "$ac_c_werror_flag" ||
12447 test ! -s conftest.err
12448 } && test -s conftest.
$ac_objext; then
12449 ac_cv_have_decl_getlogin_r
=yes
12451 $as_echo "$as_me: failed program was:" >&5
12452 sed 's/^/| /' conftest.
$ac_ext >&5
12454 ac_cv_have_decl_getlogin_r
=no
12457 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12459 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_getlogin_r" >&5
12460 $as_echo "$ac_cv_have_decl_getlogin_r" >&6; }
12461 if test "x$ac_cv_have_decl_getlogin_r" = x
""yes; then
12463 cat >>confdefs.h
<<_ACEOF
12464 #define HAVE_DECL_GETLOGIN_R 1
12469 cat >>confdefs.h
<<_ACEOF
12470 #define HAVE_DECL_GETLOGIN_R 0
12479 { $as_echo "$as_me:$LINENO: checking for ssize_t" >&5
12480 $as_echo_n "checking for ssize_t... " >&6; }
12481 if test "${gt_cv_ssize_t+set}" = set; then
12482 $as_echo_n "(cached) " >&6
12484 cat >conftest.
$ac_ext <<_ACEOF
12487 cat confdefs.h
>>conftest.
$ac_ext
12488 cat >>conftest.
$ac_ext <<_ACEOF
12489 /* end confdefs.h. */
12490 #include <sys/types.h>
12494 int x = sizeof (ssize_t *) + sizeof (ssize_t);
12499 rm -f conftest.
$ac_objext
12500 if { (ac_try
="$ac_compile"
12501 case "(($ac_try" in
12502 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12503 *) ac_try_echo=$ac_try;;
12505 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12506 $as_echo "$ac_try_echo") >&5
12507 (eval "$ac_compile") 2>conftest.er1
12509 grep -v '^ *+' conftest.er1 >conftest.err
12511 cat conftest.err >&5
12512 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12513 (exit $ac_status); } && {
12514 test -z "$ac_c_werror_flag" ||
12515 test ! -s conftest.err
12516 } && test -s conftest.$ac_objext; then
12519 $as_echo "$as_me: failed program was:" >&5
12520 sed 's/^/| /' conftest.$ac_ext >&5
12525 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12527 { $as_echo "$as_me:$LINENO: result: $gt_cv_ssize_t" >&5
12528 $as_echo "$gt_cv_ssize_t" >&6; }
12529 if test $gt_cv_ssize_t = no; then
12531 cat >>confdefs.h <<\_ACEOF
12532 #define ssize_t int
12538 if test -z "$GETOPT_H"; then
12540 for ac_header in getopt.h
12542 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" |
$as_tr_sh`
12543 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12544 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
12545 $as_echo_n "checking for $ac_header... " >&6; }
12546 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12547 $as_echo_n "(cached) " >&6
12549 ac_res=`eval 'as_val=${'$as_ac_Header'}
12550 $as_echo "$as_val"'`
12551 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12552 $as_echo "$ac_res" >&6; }
12554 # Is the header compilable?
12555 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
12556 $as_echo_n "checking $ac_header usability... " >&6; }
12557 cat >conftest.$ac_ext <<_ACEOF
12560 cat confdefs.h >>conftest.$ac_ext
12561 cat >>conftest.$ac_ext <<_ACEOF
12562 /* end confdefs.h. */
12563 $ac_includes_default
12564 #include <$ac_header>
12566 rm -f conftest.$ac_objext
12567 if { (ac_try="$ac_compile"
12568 case "(($ac_try" in
12569 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12570 *) ac_try_echo
=$ac_try;;
12572 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
12573 $as_echo "$ac_try_echo") >&5
12574 (eval "$ac_compile") 2>conftest.er1
12576 grep -v '^ *+' conftest.er1
>conftest.err
12578 cat conftest.err
>&5
12579 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12580 (exit $ac_status); } && {
12581 test -z "$ac_c_werror_flag" ||
12582 test ! -s conftest.err
12583 } && test -s conftest.
$ac_objext; then
12584 ac_header_compiler
=yes
12586 $as_echo "$as_me: failed program was:" >&5
12587 sed 's/^/| /' conftest.
$ac_ext >&5
12589 ac_header_compiler
=no
12592 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12593 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12594 $as_echo "$ac_header_compiler" >&6; }
12596 # Is the header present?
12597 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
12598 $as_echo_n "checking $ac_header presence... " >&6; }
12599 cat >conftest.
$ac_ext <<_ACEOF
12602 cat confdefs.h
>>conftest.
$ac_ext
12603 cat >>conftest.
$ac_ext <<_ACEOF
12604 /* end confdefs.h. */
12605 #include <$ac_header>
12607 if { (ac_try
="$ac_cpp conftest.$ac_ext"
12608 case "(($ac_try" in
12609 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12610 *) ac_try_echo=$ac_try;;
12612 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12613 $as_echo "$ac_try_echo") >&5
12614 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12616 grep -v '^ *+' conftest.er1 >conftest.err
12618 cat conftest.err >&5
12619 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12620 (exit $ac_status); } >/dev/null && {
12621 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12622 test ! -s conftest.err
12624 ac_header_preproc=yes
12626 $as_echo "$as_me: failed program was:" >&5
12627 sed 's/^/| /' conftest.$ac_ext >&5
12629 ac_header_preproc=no
12632 rm -f conftest.err conftest.$ac_ext
12633 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12634 $as_echo "$ac_header_preproc" >&6; }
12636 # So? What about this header?
12637 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12639 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12640 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12641 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12642 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12643 ac_header_preproc=yes
12646 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12647 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12648 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12649 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12650 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12651 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12652 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12653 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12654 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12655 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12656 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12657 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12659 ## --------------------------------- ##
12660 ## Report this to bug-cvs@nongnu.org ##
12661 ## --------------------------------- ##
12663 ) | sed "s/^/$as_me: WARNING: /" >&2
12666 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
12667 $as_echo_n "checking for $ac_header... " >&6; }
12668 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12669 $as_echo_n "(cached) " >&6
12671 eval "$as_ac_Header=\$ac_header_preproc"
12673 ac_res=`eval 'as_val=${'$as_ac_Header'}
12674 $as_echo "$as_val"'`
12675 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12676 $as_echo "$ac_res" >&6; }
12679 as_val=`eval 'as_val=${'$as_ac_Header'}
12680 $as_echo "$as_val"'`
12681 if test "x$as_val" = x""yes; then
12682 cat >>confdefs.h <<_ACEOF
12683 #define `$as_echo "HAVE_$ac_header" |
$as_tr_cpp` 1
12694 if test -z "$GETOPT_H"; then
12696 for ac_func in getopt_long_only
12698 as_ac_var=`$as_echo "ac_cv_func_$ac_func" |
$as_tr_sh`
12699 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
12700 $as_echo_n "checking for $ac_func... " >&6; }
12701 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12702 $as_echo_n "(cached) " >&6
12704 cat >conftest.$ac_ext <<_ACEOF
12707 cat confdefs.h >>conftest.$ac_ext
12708 cat >>conftest.$ac_ext <<_ACEOF
12709 /* end confdefs.h. */
12710 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12711 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12712 #define $ac_func innocuous_$ac_func
12714 /* System header to define __stub macros and hopefully few prototypes,
12715 which can conflict with char $ac_func (); below.
12716 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12717 <limits.h> exists even on freestanding compilers. */
12720 # include <limits.h>
12722 # include <assert.h>
12727 /* Override any GCC internal prototype to avoid an error.
12728 Use char because int might match the return type of a GCC
12729 builtin and then its argument prototype would still apply. */
12734 /* The GNU C library defines this for functions which it implements
12735 to always fail with ENOSYS. Some functions are actually named
12736 something starting with __ and the normal name is an alias. */
12737 #if defined __stub_$ac_func || defined __stub___$ac_func
12744 return $ac_func ();
12749 rm -f conftest.$ac_objext conftest$ac_exeext
12750 if { (ac_try="$ac_link"
12751 case "(($ac_try" in
12752 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12753 *) ac_try_echo
=$ac_try;;
12755 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
12756 $as_echo "$ac_try_echo") >&5
12757 (eval "$ac_link") 2>conftest.er1
12759 grep -v '^ *+' conftest.er1
>conftest.err
12761 cat conftest.err
>&5
12762 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12763 (exit $ac_status); } && {
12764 test -z "$ac_c_werror_flag" ||
12765 test ! -s conftest.err
12766 } && test -s conftest
$ac_exeext && {
12767 test "$cross_compiling" = yes ||
12768 $as_test_x conftest
$ac_exeext
12770 eval "$as_ac_var=yes"
12772 $as_echo "$as_me: failed program was:" >&5
12773 sed 's/^/| /' conftest.
$ac_ext >&5
12775 eval "$as_ac_var=no"
12778 rm -rf conftest.dSYM
12779 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
12780 conftest
$ac_exeext conftest.
$ac_ext
12782 ac_res
=`eval 'as_val=${'$as_ac_var'}
12783 $as_echo "$as_val"'`
12784 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12785 $as_echo "$ac_res" >&6; }
12786 as_val
=`eval 'as_val=${'$as_ac_var'}
12787 $as_echo "$as_val"'`
12788 if test "x$as_val" = x
""yes; then
12789 cat >>confdefs.h
<<_ACEOF
12790 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12800 if test -z "$GETOPT_H"; then
12801 { $as_echo "$as_me:$LINENO: checking whether optreset is declared" >&5
12802 $as_echo_n "checking whether optreset is declared... " >&6; }
12803 if test "${ac_cv_have_decl_optreset+set}" = set; then
12804 $as_echo_n "(cached) " >&6
12806 cat >conftest.
$ac_ext <<_ACEOF
12809 cat confdefs.h
>>conftest.
$ac_ext
12810 cat >>conftest.
$ac_ext <<_ACEOF
12811 /* end confdefs.h. */
12812 #include <getopt.h>
12825 rm -f conftest.
$ac_objext
12826 if { (ac_try
="$ac_compile"
12827 case "(($ac_try" in
12828 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12829 *) ac_try_echo=$ac_try;;
12831 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12832 $as_echo "$ac_try_echo") >&5
12833 (eval "$ac_compile") 2>conftest.er1
12835 grep -v '^ *+' conftest.er1 >conftest.err
12837 cat conftest.err >&5
12838 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12839 (exit $ac_status); } && {
12840 test -z "$ac_c_werror_flag" ||
12841 test ! -s conftest.err
12842 } && test -s conftest.$ac_objext; then
12843 ac_cv_have_decl_optreset=yes
12845 $as_echo "$as_me: failed program was:" >&5
12846 sed 's/^/| /' conftest.$ac_ext >&5
12848 ac_cv_have_decl_optreset=no
12851 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12853 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_optreset" >&5
12854 $as_echo "$ac_cv_have_decl_optreset" >&6; }
12855 if test "x$ac_cv_have_decl_optreset" = x""yes; then
12861 if test -z "$GETOPT_H"; then
12862 { $as_echo "$as_me:$LINENO: checking for working GNU getopt function" >&5
12863 $as_echo_n "checking for working GNU getopt function... " >&6; }
12864 if test "${gl_cv_func_gnu_getopt+set}" = set; then
12865 $as_echo_n "(cached) " >&6
12867 if test "$cross_compiling" = yes; then
12868 { $as_echo "$as_me:$LINENO: checking whether getopt_clip is declared" >&5
12869 $as_echo_n "checking whether getopt_clip is declared... " >&6; }
12870 if test "${ac_cv_have_decl_getopt_clip+set}" = set; then
12871 $as_echo_n "(cached) " >&6
12873 cat >conftest.$ac_ext <<_ACEOF
12876 cat confdefs.h >>conftest.$ac_ext
12877 cat >>conftest.$ac_ext <<_ACEOF
12878 /* end confdefs.h. */
12879 #include <getopt.h>
12884 #ifndef getopt_clip
12885 (void) getopt_clip;
12892 rm -f conftest.$ac_objext
12893 if { (ac_try="$ac_compile"
12894 case "(($ac_try" in
12895 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12896 *) ac_try_echo
=$ac_try;;
12898 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
12899 $as_echo "$ac_try_echo") >&5
12900 (eval "$ac_compile") 2>conftest.er1
12902 grep -v '^ *+' conftest.er1
>conftest.err
12904 cat conftest.err
>&5
12905 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12906 (exit $ac_status); } && {
12907 test -z "$ac_c_werror_flag" ||
12908 test ! -s conftest.err
12909 } && test -s conftest.
$ac_objext; then
12910 ac_cv_have_decl_getopt_clip
=yes
12912 $as_echo "$as_me: failed program was:" >&5
12913 sed 's/^/| /' conftest.
$ac_ext >&5
12915 ac_cv_have_decl_getopt_clip
=no
12918 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12920 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_getopt_clip" >&5
12921 $as_echo "$ac_cv_have_decl_getopt_clip" >&6; }
12922 if test "x$ac_cv_have_decl_getopt_clip" = x
""yes; then
12923 gl_cv_func_gnu_getopt
=no
12925 gl_cv_func_gnu_getopt
=yes
12929 cat >conftest.
$ac_ext <<_ACEOF
12932 cat confdefs.h
>>conftest.
$ac_ext
12933 cat >>conftest.
$ac_ext <<_ACEOF
12934 /* end confdefs.h. */
12935 #include <getopt.h>
12941 myargv[0] = "conftest";
12944 return getopt (2, myargv, "+a") != '?';
12950 rm -f conftest
$ac_exeext
12951 if { (ac_try
="$ac_link"
12952 case "(($ac_try" in
12953 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12954 *) ac_try_echo=$ac_try;;
12956 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12957 $as_echo "$ac_try_echo") >&5
12958 (eval "$ac_link") 2>&5
12960 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12961 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12962 { (case "(($ac_try" in
12963 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12964 *) ac_try_echo
=$ac_try;;
12966 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
12967 $as_echo "$ac_try_echo") >&5
12968 (eval "$ac_try") 2>&5
12970 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12971 (exit $ac_status); }; }; then
12972 gl_cv_func_gnu_getopt
=yes
12974 $as_echo "$as_me: program exited with status $ac_status" >&5
12975 $as_echo "$as_me: failed program was:" >&5
12976 sed 's/^/| /' conftest.
$ac_ext >&5
12978 ( exit $ac_status )
12979 gl_cv_func_gnu_getopt
=no
12981 rm -rf conftest.dSYM
12982 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
12987 { $as_echo "$as_me:$LINENO: result: $gl_cv_func_gnu_getopt" >&5
12988 $as_echo "$gl_cv_func_gnu_getopt" >&6; }
12989 if test "$gl_cv_func_gnu_getopt" = "no"; then
13001 { $as_echo "$as_me:$LINENO: checking whether getpass is declared" >&5
13002 $as_echo_n "checking whether getpass is declared... " >&6; }
13003 if test "${ac_cv_have_decl_getpass+set}" = set; then
13004 $as_echo_n "(cached) " >&6
13006 cat >conftest.
$ac_ext <<_ACEOF
13009 cat confdefs.h
>>conftest.
$ac_ext
13010 cat >>conftest.
$ac_ext <<_ACEOF
13011 /* end confdefs.h. */
13012 $ac_includes_default
13024 rm -f conftest.
$ac_objext
13025 if { (ac_try
="$ac_compile"
13026 case "(($ac_try" in
13027 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13028 *) ac_try_echo=$ac_try;;
13030 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13031 $as_echo "$ac_try_echo") >&5
13032 (eval "$ac_compile") 2>conftest.er1
13034 grep -v '^ *+' conftest.er1 >conftest.err
13036 cat conftest.err >&5
13037 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13038 (exit $ac_status); } && {
13039 test -z "$ac_c_werror_flag" ||
13040 test ! -s conftest.err
13041 } && test -s conftest.$ac_objext; then
13042 ac_cv_have_decl_getpass=yes
13044 $as_echo "$as_me: failed program was:" >&5
13045 sed 's/^/| /' conftest.$ac_ext >&5
13047 ac_cv_have_decl_getpass=no
13050 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13052 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_getpass" >&5
13053 $as_echo "$ac_cv_have_decl_getpass" >&6; }
13054 if test "x$ac_cv_have_decl_getpass" = x""yes; then
13056 cat >>confdefs.h <<_ACEOF
13057 #define HAVE_DECL_GETPASS 1
13062 cat >>confdefs.h <<_ACEOF
13063 #define HAVE_DECL_GETPASS 0
13102 { $as_echo "$as_me:$LINENO: checking whether fflush_unlocked is declared" >&5
13103 $as_echo_n "checking whether fflush_unlocked is declared... " >&6; }
13104 if test "${ac_cv_have_decl_fflush_unlocked+set}" = set; then
13105 $as_echo_n "(cached) " >&6
13107 cat >conftest.$ac_ext <<_ACEOF
13110 cat confdefs.h >>conftest.$ac_ext
13111 cat >>conftest.$ac_ext <<_ACEOF
13112 /* end confdefs.h. */
13113 $ac_includes_default
13117 #ifndef fflush_unlocked
13118 (void) fflush_unlocked;
13125 rm -f conftest.$ac_objext
13126 if { (ac_try="$ac_compile"
13127 case "(($ac_try" in
13128 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13129 *) ac_try_echo
=$ac_try;;
13131 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
13132 $as_echo "$ac_try_echo") >&5
13133 (eval "$ac_compile") 2>conftest.er1
13135 grep -v '^ *+' conftest.er1
>conftest.err
13137 cat conftest.err
>&5
13138 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13139 (exit $ac_status); } && {
13140 test -z "$ac_c_werror_flag" ||
13141 test ! -s conftest.err
13142 } && test -s conftest.
$ac_objext; then
13143 ac_cv_have_decl_fflush_unlocked
=yes
13145 $as_echo "$as_me: failed program was:" >&5
13146 sed 's/^/| /' conftest.
$ac_ext >&5
13148 ac_cv_have_decl_fflush_unlocked
=no
13151 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13153 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_fflush_unlocked" >&5
13154 $as_echo "$ac_cv_have_decl_fflush_unlocked" >&6; }
13155 if test "x$ac_cv_have_decl_fflush_unlocked" = x
""yes; then
13157 cat >>confdefs.h
<<_ACEOF
13158 #define HAVE_DECL_FFLUSH_UNLOCKED 1
13163 cat >>confdefs.h
<<_ACEOF
13164 #define HAVE_DECL_FFLUSH_UNLOCKED 0
13173 { $as_echo "$as_me:$LINENO: checking whether flockfile is declared" >&5
13174 $as_echo_n "checking whether flockfile is declared... " >&6; }
13175 if test "${ac_cv_have_decl_flockfile+set}" = set; then
13176 $as_echo_n "(cached) " >&6
13178 cat >conftest.
$ac_ext <<_ACEOF
13181 cat confdefs.h
>>conftest.
$ac_ext
13182 cat >>conftest.
$ac_ext <<_ACEOF
13183 /* end confdefs.h. */
13184 $ac_includes_default
13196 rm -f conftest.
$ac_objext
13197 if { (ac_try
="$ac_compile"
13198 case "(($ac_try" in
13199 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13200 *) ac_try_echo=$ac_try;;
13202 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13203 $as_echo "$ac_try_echo") >&5
13204 (eval "$ac_compile") 2>conftest.er1
13206 grep -v '^ *+' conftest.er1 >conftest.err
13208 cat conftest.err >&5
13209 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13210 (exit $ac_status); } && {
13211 test -z "$ac_c_werror_flag" ||
13212 test ! -s conftest.err
13213 } && test -s conftest.$ac_objext; then
13214 ac_cv_have_decl_flockfile=yes
13216 $as_echo "$as_me: failed program was:" >&5
13217 sed 's/^/| /' conftest.$ac_ext >&5
13219 ac_cv_have_decl_flockfile=no
13222 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13224 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_flockfile" >&5
13225 $as_echo "$ac_cv_have_decl_flockfile" >&6; }
13226 if test "x$ac_cv_have_decl_flockfile" = x""yes; then
13228 cat >>confdefs.h <<_ACEOF
13229 #define HAVE_DECL_FLOCKFILE 1
13234 cat >>confdefs.h <<_ACEOF
13235 #define HAVE_DECL_FLOCKFILE 0
13244 { $as_echo "$as_me:$LINENO: checking whether fputs_unlocked is declared" >&5
13245 $as_echo_n "checking whether fputs_unlocked is declared... " >&6; }
13246 if test "${ac_cv_have_decl_fputs_unlocked+set}" = set; then
13247 $as_echo_n "(cached) " >&6
13249 cat >conftest.$ac_ext <<_ACEOF
13252 cat confdefs.h >>conftest.$ac_ext
13253 cat >>conftest.$ac_ext <<_ACEOF
13254 /* end confdefs.h. */
13255 $ac_includes_default
13259 #ifndef fputs_unlocked
13260 (void) fputs_unlocked;
13267 rm -f conftest.$ac_objext
13268 if { (ac_try="$ac_compile"
13269 case "(($ac_try" in
13270 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13271 *) ac_try_echo
=$ac_try;;
13273 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
13274 $as_echo "$ac_try_echo") >&5
13275 (eval "$ac_compile") 2>conftest.er1
13277 grep -v '^ *+' conftest.er1
>conftest.err
13279 cat conftest.err
>&5
13280 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13281 (exit $ac_status); } && {
13282 test -z "$ac_c_werror_flag" ||
13283 test ! -s conftest.err
13284 } && test -s conftest.
$ac_objext; then
13285 ac_cv_have_decl_fputs_unlocked
=yes
13287 $as_echo "$as_me: failed program was:" >&5
13288 sed 's/^/| /' conftest.
$ac_ext >&5
13290 ac_cv_have_decl_fputs_unlocked
=no
13293 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13295 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_fputs_unlocked" >&5
13296 $as_echo "$ac_cv_have_decl_fputs_unlocked" >&6; }
13297 if test "x$ac_cv_have_decl_fputs_unlocked" = x
""yes; then
13299 cat >>confdefs.h
<<_ACEOF
13300 #define HAVE_DECL_FPUTS_UNLOCKED 1
13305 cat >>confdefs.h
<<_ACEOF
13306 #define HAVE_DECL_FPUTS_UNLOCKED 0
13315 { $as_echo "$as_me:$LINENO: checking whether funlockfile is declared" >&5
13316 $as_echo_n "checking whether funlockfile is declared... " >&6; }
13317 if test "${ac_cv_have_decl_funlockfile+set}" = set; then
13318 $as_echo_n "(cached) " >&6
13320 cat >conftest.
$ac_ext <<_ACEOF
13323 cat confdefs.h
>>conftest.
$ac_ext
13324 cat >>conftest.
$ac_ext <<_ACEOF
13325 /* end confdefs.h. */
13326 $ac_includes_default
13330 #ifndef funlockfile
13331 (void) funlockfile;
13338 rm -f conftest.
$ac_objext
13339 if { (ac_try
="$ac_compile"
13340 case "(($ac_try" in
13341 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13342 *) ac_try_echo=$ac_try;;
13344 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13345 $as_echo "$ac_try_echo") >&5
13346 (eval "$ac_compile") 2>conftest.er1
13348 grep -v '^ *+' conftest.er1 >conftest.err
13350 cat conftest.err >&5
13351 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13352 (exit $ac_status); } && {
13353 test -z "$ac_c_werror_flag" ||
13354 test ! -s conftest.err
13355 } && test -s conftest.$ac_objext; then
13356 ac_cv_have_decl_funlockfile=yes
13358 $as_echo "$as_me: failed program was:" >&5
13359 sed 's/^/| /' conftest.$ac_ext >&5
13361 ac_cv_have_decl_funlockfile=no
13364 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13366 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_funlockfile" >&5
13367 $as_echo "$ac_cv_have_decl_funlockfile" >&6; }
13368 if test "x$ac_cv_have_decl_funlockfile" = x""yes; then
13370 cat >>confdefs.h <<_ACEOF
13371 #define HAVE_DECL_FUNLOCKFILE 1
13376 cat >>confdefs.h <<_ACEOF
13377 #define HAVE_DECL_FUNLOCKFILE 0
13386 { $as_echo "$as_me:$LINENO: checking whether putc_unlocked is declared" >&5
13387 $as_echo_n "checking whether putc_unlocked is declared... " >&6; }
13388 if test "${ac_cv_have_decl_putc_unlocked+set}" = set; then
13389 $as_echo_n "(cached) " >&6
13391 cat >conftest.$ac_ext <<_ACEOF
13394 cat confdefs.h >>conftest.$ac_ext
13395 cat >>conftest.$ac_ext <<_ACEOF
13396 /* end confdefs.h. */
13397 $ac_includes_default
13401 #ifndef putc_unlocked
13402 (void) putc_unlocked;
13409 rm -f conftest.$ac_objext
13410 if { (ac_try="$ac_compile"
13411 case "(($ac_try" in
13412 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13413 *) ac_try_echo
=$ac_try;;
13415 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
13416 $as_echo "$ac_try_echo") >&5
13417 (eval "$ac_compile") 2>conftest.er1
13419 grep -v '^ *+' conftest.er1
>conftest.err
13421 cat conftest.err
>&5
13422 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13423 (exit $ac_status); } && {
13424 test -z "$ac_c_werror_flag" ||
13425 test ! -s conftest.err
13426 } && test -s conftest.
$ac_objext; then
13427 ac_cv_have_decl_putc_unlocked
=yes
13429 $as_echo "$as_me: failed program was:" >&5
13430 sed 's/^/| /' conftest.
$ac_ext >&5
13432 ac_cv_have_decl_putc_unlocked
=no
13435 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13437 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_putc_unlocked" >&5
13438 $as_echo "$ac_cv_have_decl_putc_unlocked" >&6; }
13439 if test "x$ac_cv_have_decl_putc_unlocked" = x
""yes; then
13441 cat >>confdefs.h
<<_ACEOF
13442 #define HAVE_DECL_PUTC_UNLOCKED 1
13447 cat >>confdefs.h
<<_ACEOF
13448 #define HAVE_DECL_PUTC_UNLOCKED 0
13468 { $as_echo "$as_me:$LINENO: checking for d_type member in directory struct" >&5
13469 $as_echo_n "checking for d_type member in directory struct... " >&6; }
13470 if test "${jm_cv_struct_dirent_d_type+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. */
13480 #include <sys/types.h>
13481 #ifdef HAVE_DIRENT_H
13482 # include <dirent.h>
13483 #else /* not HAVE_DIRENT_H */
13484 # define dirent direct
13485 # ifdef HAVE_SYS_NDIR_H
13486 # include <sys/ndir.h>
13487 # endif /* HAVE_SYS_NDIR_H */
13488 # ifdef HAVE_SYS_DIR_H
13489 # include <sys/dir.h>
13490 # endif /* HAVE_SYS_DIR_H */
13491 # ifdef HAVE_NDIR_H
13493 # endif /* HAVE_NDIR_H */
13494 #endif /* HAVE_DIRENT_H */
13499 struct dirent dp; dp.d_type = 0;
13504 rm -f conftest.
$ac_objext conftest
$ac_exeext
13505 if { (ac_try
="$ac_link"
13506 case "(($ac_try" in
13507 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13508 *) ac_try_echo=$ac_try;;
13510 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13511 $as_echo "$ac_try_echo") >&5
13512 (eval "$ac_link") 2>conftest.er1
13514 grep -v '^ *+' conftest.er1 >conftest.err
13516 cat conftest.err >&5
13517 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13518 (exit $ac_status); } && {
13519 test -z "$ac_c_werror_flag" ||
13520 test ! -s conftest.err
13521 } && test -s conftest$ac_exeext && {
13522 test "$cross_compiling" = yes ||
13523 $as_test_x conftest$ac_exeext
13525 jm_cv_struct_dirent_d_type=yes
13527 $as_echo "$as_me: failed program was:" >&5
13528 sed 's/^/| /' conftest.$ac_ext >&5
13530 jm_cv_struct_dirent_d_type=no
13533 rm -rf conftest.dSYM
13534 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13535 conftest$ac_exeext conftest.$ac_ext
13539 { $as_echo "$as_me:$LINENO: result: $jm_cv_struct_dirent_d_type" >&5
13540 $as_echo "$jm_cv_struct_dirent_d_type" >&6; }
13541 if test $jm_cv_struct_dirent_d_type = yes; then
13543 cat >>confdefs.h <<\_ACEOF
13544 #define HAVE_STRUCT_DIRENT_D_TYPE 1
13568 { $as_echo "$as_me:$LINENO: checking whether lstat dereferences a symlink specified with a trailing slash" >&5
13569 $as_echo_n "checking whether lstat dereferences a symlink specified with a trailing slash... " >&6; }
13570 if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then
13571 $as_echo_n "(cached) " >&6
13573 rm -f conftest.sym conftest.file
13574 echo >conftest.file
13575 if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
13576 if test "$cross_compiling" = yes; then
13577 ac_cv_func_lstat_dereferences_slashed_symlink=no
13579 cat >conftest.$ac_ext <<_ACEOF
13582 cat confdefs.h >>conftest.$ac_ext
13583 cat >>conftest.$ac_ext <<_ACEOF
13584 /* end confdefs.h. */
13585 $ac_includes_default
13590 /* Linux will dereference the symlink and fail.
13591 That is better in the sense that it means we will not
13592 have to compile and use the lstat wrapper. */
13593 return lstat ("conftest.sym/", &sbuf) == 0;
13598 rm -f conftest$ac_exeext
13599 if { (ac_try="$ac_link"
13600 case "(($ac_try" in
13601 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13602 *) ac_try_echo
=$ac_try;;
13604 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
13605 $as_echo "$ac_try_echo") >&5
13606 (eval "$ac_link") 2>&5
13608 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13609 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
13610 { (case "(($ac_try" in
13611 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13612 *) ac_try_echo=$ac_try;;
13614 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13615 $as_echo "$ac_try_echo") >&5
13616 (eval "$ac_try") 2>&5
13618 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13619 (exit $ac_status); }; }; then
13620 ac_cv_func_lstat_dereferences_slashed_symlink=yes
13622 $as_echo "$as_me: program exited with status $ac_status" >&5
13623 $as_echo "$as_me: failed program was:" >&5
13624 sed 's/^/| /' conftest.$ac_ext >&5
13626 ( exit $ac_status )
13627 ac_cv_func_lstat_dereferences_slashed_symlink=no
13629 rm -rf conftest.dSYM
13630 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13635 # If the `ln -s' command failed, then we probably don't even
13636 # have an lstat function.
13637 ac_cv_func_lstat_dereferences_slashed_symlink
=no
13639 rm -f conftest.sym conftest.
file
13642 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
13643 $as_echo "$ac_cv_func_lstat_dereferences_slashed_symlink" >&6; }
13645 test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
13647 cat >>confdefs.h
<<_ACEOF
13648 #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
13652 if test $ac_cv_func_lstat_dereferences_slashed_symlink = no
; then
13653 case " $LIBOBJS " in
13654 *" lstat.$ac_objext "* ) ;;
13655 *) LIBOBJS
="$LIBOBJS lstat.$ac_objext"
13674 { $as_echo "$as_me:$LINENO: checking for uint32_t" >&5
13675 $as_echo_n "checking for uint32_t... " >&6; }
13676 if test "${gl_cv_c_uint32_t+set}" = set; then
13677 $as_echo_n "(cached) " >&6
13679 gl_cv_c_uint32_t
=no
13680 for ac_type
in "uint32_t" "unsigned int" \
13681 "unsigned long int" "unsigned short int"; do
13682 cat >conftest.
$ac_ext <<_ACEOF
13685 cat confdefs.h
>>conftest.
$ac_ext
13686 cat >>conftest.
$ac_ext <<_ACEOF
13687 /* end confdefs.h. */
13688 $ac_includes_default
13692 static int test_array [1 - 2 * !(($ac_type) -1 == 4294967295U)];
13699 rm -f conftest.
$ac_objext
13700 if { (ac_try
="$ac_compile"
13701 case "(($ac_try" in
13702 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13703 *) ac_try_echo=$ac_try;;
13705 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13706 $as_echo "$ac_try_echo") >&5
13707 (eval "$ac_compile") 2>conftest.er1
13709 grep -v '^ *+' conftest.er1 >conftest.err
13711 cat conftest.err >&5
13712 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13713 (exit $ac_status); } && {
13714 test -z "$ac_c_werror_flag" ||
13715 test ! -s conftest.err
13716 } && test -s conftest.$ac_objext; then
13717 gl_cv_c_uint32_t=$ac_type
13719 $as_echo "$as_me: failed program was:" >&5
13720 sed 's/^/| /' conftest.$ac_ext >&5
13725 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13726 test "$gl_cv_c_uint32_t" != no && break
13729 { $as_echo "$as_me:$LINENO: result: $gl_cv_c_uint32_t" >&5
13730 $as_echo "$gl_cv_c_uint32_t" >&6; }
13731 case "$gl_cv_c_uint32_t" in
13735 cat >>confdefs.h <<\_ACEOF
13736 #define _UINT32_T 1
13740 cat >>confdefs.h <<_ACEOF
13741 #define uint32_t $gl_cv_c_uint32_t
13747 { $as_echo "$as_me:$LINENO: checking for UINT32_MAX" >&5
13748 $as_echo_n "checking for UINT32_MAX... " >&6; }
13749 if test "${gl_cv_c_uint32_max+set}" = set; then
13750 $as_echo_n "(cached) " >&6
13752 cat >conftest.$ac_ext <<_ACEOF
13755 cat confdefs.h >>conftest.$ac_ext
13756 cat >>conftest.$ac_ext <<_ACEOF
13757 /* end confdefs.h. */
13758 $ac_includes_default
13762 static int test_array [1 - 2 * !(UINT32_MAX == 4294967295U)];
13769 rm -f conftest.$ac_objext
13770 if { (ac_try="$ac_compile"
13771 case "(($ac_try" in
13772 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13773 *) ac_try_echo
=$ac_try;;
13775 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
13776 $as_echo "$ac_try_echo") >&5
13777 (eval "$ac_compile") 2>conftest.er1
13779 grep -v '^ *+' conftest.er1
>conftest.err
13781 cat conftest.err
>&5
13782 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13783 (exit $ac_status); } && {
13784 test -z "$ac_c_werror_flag" ||
13785 test ! -s conftest.err
13786 } && test -s conftest.
$ac_objext; then
13787 gl_cv_c_uint32_max
=yes
13789 $as_echo "$as_me: failed program was:" >&5
13790 sed 's/^/| /' conftest.
$ac_ext >&5
13792 gl_cv_c_uint32_max
=no
13795 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13797 { $as_echo "$as_me:$LINENO: result: $gl_cv_c_uint32_max" >&5
13798 $as_echo "$gl_cv_c_uint32_max" >&6; }
13799 case $gl_cv_c_uint32_max,$gl_cv_c_uint32_t in
13804 cat >>confdefs.h
<<\_ACEOF
13805 #define UINT32_MAX 4294967295U
13812 { $as_echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
13813 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
13814 if test "${ac_cv_c_bigendian+set}" = set; then
13815 $as_echo_n "(cached) " >&6
13817 ac_cv_c_bigendian
=unknown
13818 # See if we're dealing with a universal compiler.
13819 cat >conftest.
$ac_ext <<_ACEOF
13822 cat confdefs.h
>>conftest.
$ac_ext
13823 cat >>conftest.
$ac_ext <<_ACEOF
13824 /* end confdefs.h. */
13825 #ifndef __APPLE_CC__
13826 not a universal capable compiler
13831 rm -f conftest.
$ac_objext
13832 if { (ac_try
="$ac_compile"
13833 case "(($ac_try" in
13834 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13835 *) ac_try_echo=$ac_try;;
13837 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13838 $as_echo "$ac_try_echo") >&5
13839 (eval "$ac_compile") 2>conftest.er1
13841 grep -v '^ *+' conftest.er1 >conftest.err
13843 cat conftest.err >&5
13844 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13845 (exit $ac_status); } && {
13846 test -z "$ac_c_werror_flag" ||
13847 test ! -s conftest.err
13848 } && test -s conftest.$ac_objext; then
13850 # Check for potential -arch flags. It is not universal unless
13851 # there are some -arch flags. Note that *ppc* also matches
13852 # ppc64. This check is also rather less than ideal.
13853 case "${CC} ${CFLAGS} ${CPPFLAGS} ${LDFLAGS}" in #(
13854 *-arch*ppc*|*-arch*i386*|*-arch*x86_64*) ac_cv_c_bigendian=universal;;
13857 $as_echo "$as_me: failed program was:" >&5
13858 sed 's/^/| /' conftest.$ac_ext >&5
13863 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13864 if test $ac_cv_c_bigendian = unknown; then
13865 # See if sys/param.h defines the BYTE_ORDER macro.
13866 cat >conftest.$ac_ext <<_ACEOF
13869 cat confdefs.h >>conftest.$ac_ext
13870 cat >>conftest.$ac_ext <<_ACEOF
13871 /* end confdefs.h. */
13872 #include <sys/types.h>
13873 #include <sys/param.h>
13878 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
13879 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
13881 bogus endian macros
13888 rm -f conftest.$ac_objext
13889 if { (ac_try="$ac_compile"
13890 case "(($ac_try" in
13891 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13892 *) ac_try_echo
=$ac_try;;
13894 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
13895 $as_echo "$ac_try_echo") >&5
13896 (eval "$ac_compile") 2>conftest.er1
13898 grep -v '^ *+' conftest.er1
>conftest.err
13900 cat conftest.err
>&5
13901 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13902 (exit $ac_status); } && {
13903 test -z "$ac_c_werror_flag" ||
13904 test ! -s conftest.err
13905 } && test -s conftest.
$ac_objext; then
13906 # It does; now see whether it defined to BIG_ENDIAN or not.
13907 cat >conftest.
$ac_ext <<_ACEOF
13910 cat confdefs.h
>>conftest.
$ac_ext
13911 cat >>conftest.
$ac_ext <<_ACEOF
13912 /* end confdefs.h. */
13913 #include <sys/types.h>
13914 #include <sys/param.h>
13919 #if BYTE_ORDER != BIG_ENDIAN
13927 rm -f conftest.
$ac_objext
13928 if { (ac_try
="$ac_compile"
13929 case "(($ac_try" in
13930 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13931 *) ac_try_echo=$ac_try;;
13933 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13934 $as_echo "$ac_try_echo") >&5
13935 (eval "$ac_compile") 2>conftest.er1
13937 grep -v '^ *+' conftest.er1 >conftest.err
13939 cat conftest.err >&5
13940 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13941 (exit $ac_status); } && {
13942 test -z "$ac_c_werror_flag" ||
13943 test ! -s conftest.err
13944 } && test -s conftest.$ac_objext; then
13945 ac_cv_c_bigendian=yes
13947 $as_echo "$as_me: failed program was:" >&5
13948 sed 's/^/| /' conftest.$ac_ext >&5
13950 ac_cv_c_bigendian=no
13953 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13955 $as_echo "$as_me: failed program was:" >&5
13956 sed 's/^/| /' conftest.$ac_ext >&5
13961 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13963 if test $ac_cv_c_bigendian = unknown; then
13964 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
13965 cat >conftest.$ac_ext <<_ACEOF
13968 cat confdefs.h >>conftest.$ac_ext
13969 cat >>conftest.$ac_ext <<_ACEOF
13970 /* end confdefs.h. */
13971 #include <limits.h>
13976 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
13977 bogus endian macros
13984 rm -f conftest.$ac_objext
13985 if { (ac_try="$ac_compile"
13986 case "(($ac_try" in
13987 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13988 *) ac_try_echo
=$ac_try;;
13990 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
13991 $as_echo "$ac_try_echo") >&5
13992 (eval "$ac_compile") 2>conftest.er1
13994 grep -v '^ *+' conftest.er1
>conftest.err
13996 cat conftest.err
>&5
13997 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13998 (exit $ac_status); } && {
13999 test -z "$ac_c_werror_flag" ||
14000 test ! -s conftest.err
14001 } && test -s conftest.
$ac_objext; then
14002 # It does; now see whether it defined to _BIG_ENDIAN or not.
14003 cat >conftest.
$ac_ext <<_ACEOF
14006 cat confdefs.h
>>conftest.
$ac_ext
14007 cat >>conftest.
$ac_ext <<_ACEOF
14008 /* end confdefs.h. */
14009 #include <limits.h>
14014 #ifndef _BIG_ENDIAN
14022 rm -f conftest.
$ac_objext
14023 if { (ac_try
="$ac_compile"
14024 case "(($ac_try" in
14025 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14026 *) ac_try_echo=$ac_try;;
14028 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14029 $as_echo "$ac_try_echo") >&5
14030 (eval "$ac_compile") 2>conftest.er1
14032 grep -v '^ *+' conftest.er1 >conftest.err
14034 cat conftest.err >&5
14035 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14036 (exit $ac_status); } && {
14037 test -z "$ac_c_werror_flag" ||
14038 test ! -s conftest.err
14039 } && test -s conftest.$ac_objext; then
14040 ac_cv_c_bigendian=yes
14042 $as_echo "$as_me: failed program was:" >&5
14043 sed 's/^/| /' conftest.$ac_ext >&5
14045 ac_cv_c_bigendian=no
14048 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14050 $as_echo "$as_me: failed program was:" >&5
14051 sed 's/^/| /' conftest.$ac_ext >&5
14056 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14058 if test $ac_cv_c_bigendian = unknown; then
14059 # Compile a test program.
14060 if test "$cross_compiling" = yes; then
14061 # Try to guess by grepping values from an object file.
14062 cat >conftest.$ac_ext <<_ACEOF
14065 cat confdefs.h >>conftest.$ac_ext
14066 cat >>conftest.$ac_ext <<_ACEOF
14067 /* end confdefs.h. */
14068 short int ascii_mm[] =
14069 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
14070 short int ascii_ii[] =
14071 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
14072 int use_ascii (int i) {
14073 return ascii_mm[i] + ascii_ii[i];
14075 short int ebcdic_ii[] =
14076 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
14077 short int ebcdic_mm[] =
14078 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
14079 int use_ebcdic (int i) {
14080 return ebcdic_mm[i] + ebcdic_ii[i];
14087 return use_ascii (foo) == use_ebcdic (foo);
14092 rm -f conftest.$ac_objext
14093 if { (ac_try="$ac_compile"
14094 case "(($ac_try" in
14095 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14096 *) ac_try_echo
=$ac_try;;
14098 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
14099 $as_echo "$ac_try_echo") >&5
14100 (eval "$ac_compile") 2>conftest.er1
14102 grep -v '^ *+' conftest.er1
>conftest.err
14104 cat conftest.err
>&5
14105 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14106 (exit $ac_status); } && {
14107 test -z "$ac_c_werror_flag" ||
14108 test ! -s conftest.err
14109 } && test -s conftest.
$ac_objext; then
14110 if grep BIGenDianSyS conftest.
$ac_objext >/dev
/null
; then
14111 ac_cv_c_bigendian
=yes
14113 if grep LiTTleEnDian conftest.
$ac_objext >/dev
/null
; then
14114 if test "$ac_cv_c_bigendian" = unknown
; then
14115 ac_cv_c_bigendian
=no
14117 # finding both strings is unlikely to happen, but who knows?
14118 ac_cv_c_bigendian
=unknown
14122 $as_echo "$as_me: failed program was:" >&5
14123 sed 's/^/| /' conftest.
$ac_ext >&5
14128 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14130 cat >conftest.
$ac_ext <<_ACEOF
14133 cat confdefs.h
>>conftest.
$ac_ext
14134 cat >>conftest.
$ac_ext <<_ACEOF
14135 /* end confdefs.h. */
14136 $ac_includes_default
14141 /* Are we little or big endian? From Harbison&Steele. */
14145 char c[sizeof (long int)];
14148 return u.c[sizeof (long int) - 1] == 1;
14154 rm -f conftest
$ac_exeext
14155 if { (ac_try
="$ac_link"
14156 case "(($ac_try" in
14157 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14158 *) ac_try_echo=$ac_try;;
14160 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14161 $as_echo "$ac_try_echo") >&5
14162 (eval "$ac_link") 2>&5
14164 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14165 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14166 { (case "(($ac_try" in
14167 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14168 *) ac_try_echo
=$ac_try;;
14170 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
14171 $as_echo "$ac_try_echo") >&5
14172 (eval "$ac_try") 2>&5
14174 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14175 (exit $ac_status); }; }; then
14176 ac_cv_c_bigendian
=no
14178 $as_echo "$as_me: program exited with status $ac_status" >&5
14179 $as_echo "$as_me: failed program was:" >&5
14180 sed 's/^/| /' conftest.
$ac_ext >&5
14182 ( exit $ac_status )
14183 ac_cv_c_bigendian
=yes
14185 rm -rf conftest.dSYM
14186 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
14192 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
14193 $as_echo "$ac_cv_c_bigendian" >&6; }
14194 case $ac_cv_c_bigendian in #(
14196 cat >>confdefs.h
<<\_ACEOF
14197 #define WORDS_BIGENDIAN 1
14204 cat >>confdefs.h
<<\_ACEOF
14205 #define AC_APPLE_UNIVERSAL_BUILD 1
14210 { { $as_echo "$as_me:$LINENO: error: unknown endianness
14211 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
14212 $as_echo "$as_me: error: unknown endianness
14213 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
14214 { (exit 1); exit 1; }; } ;;
14221 { $as_echo "$as_me:$LINENO: checking whether <limits.h> defines MIN and MAX" >&5
14222 $as_echo_n "checking whether <limits.h> defines MIN and MAX... " >&6; }
14223 if test "${gl_cv_minmax_in_limits_h+set}" = set; then
14224 $as_echo_n "(cached) " >&6
14226 cat >conftest.
$ac_ext <<_ACEOF
14229 cat confdefs.h
>>conftest.
$ac_ext
14230 cat >>conftest.
$ac_ext <<_ACEOF
14231 /* end confdefs.h. */
14232 #include <limits.h>
14233 int x = MIN (42, 17);
14242 rm -f conftest.
$ac_objext
14243 if { (ac_try
="$ac_compile"
14244 case "(($ac_try" in
14245 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14246 *) ac_try_echo=$ac_try;;
14248 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14249 $as_echo "$ac_try_echo") >&5
14250 (eval "$ac_compile") 2>conftest.er1
14252 grep -v '^ *+' conftest.er1 >conftest.err
14254 cat conftest.err >&5
14255 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14256 (exit $ac_status); } && {
14257 test -z "$ac_c_werror_flag" ||
14258 test ! -s conftest.err
14259 } && test -s conftest.$ac_objext; then
14260 gl_cv_minmax_in_limits_h=yes
14262 $as_echo "$as_me: failed program was:" >&5
14263 sed 's/^/| /' conftest.$ac_ext >&5
14265 gl_cv_minmax_in_limits_h=no
14268 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14270 { $as_echo "$as_me:$LINENO: result: $gl_cv_minmax_in_limits_h" >&5
14271 $as_echo "$gl_cv_minmax_in_limits_h" >&6; }
14272 if test $gl_cv_minmax_in_limits_h = yes; then
14274 cat >>confdefs.h <<\_ACEOF
14275 #define HAVE_MINMAX_IN_LIMITS_H 1
14285 { $as_echo "$as_me:$LINENO: checking whether <sys/param.h> defines MIN and MAX" >&5
14286 $as_echo_n "checking whether <sys/param.h> defines MIN and MAX... " >&6; }
14287 if test "${gl_cv_minmax_in_sys_param_h+set}" = set; then
14288 $as_echo_n "(cached) " >&6
14290 cat >conftest.$ac_ext <<_ACEOF
14293 cat confdefs.h >>conftest.$ac_ext
14294 cat >>conftest.$ac_ext <<_ACEOF
14295 /* end confdefs.h. */
14296 #include <sys/param.h>
14297 int x = MIN (42, 17);
14306 rm -f conftest.$ac_objext
14307 if { (ac_try="$ac_compile"
14308 case "(($ac_try" in
14309 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14310 *) ac_try_echo
=$ac_try;;
14312 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
14313 $as_echo "$ac_try_echo") >&5
14314 (eval "$ac_compile") 2>conftest.er1
14316 grep -v '^ *+' conftest.er1
>conftest.err
14318 cat conftest.err
>&5
14319 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14320 (exit $ac_status); } && {
14321 test -z "$ac_c_werror_flag" ||
14322 test ! -s conftest.err
14323 } && test -s conftest.
$ac_objext; then
14324 gl_cv_minmax_in_sys_param_h
=yes
14326 $as_echo "$as_me: failed program was:" >&5
14327 sed 's/^/| /' conftest.
$ac_ext >&5
14329 gl_cv_minmax_in_sys_param_h
=no
14332 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14334 { $as_echo "$as_me:$LINENO: result: $gl_cv_minmax_in_sys_param_h" >&5
14335 $as_echo "$gl_cv_minmax_in_sys_param_h" >&6; }
14336 if test $gl_cv_minmax_in_sys_param_h = yes; then
14338 cat >>confdefs.h
<<\_ACEOF
14339 #define HAVE_MINMAX_IN_SYS_PARAM_H 1
14354 { $as_echo "$as_me:$LINENO: checking whether getenv is declared" >&5
14355 $as_echo_n "checking whether getenv is declared... " >&6; }
14356 if test "${ac_cv_have_decl_getenv+set}" = set; then
14357 $as_echo_n "(cached) " >&6
14359 cat >conftest.
$ac_ext <<_ACEOF
14362 cat confdefs.h
>>conftest.
$ac_ext
14363 cat >>conftest.
$ac_ext <<_ACEOF
14364 /* end confdefs.h. */
14365 $ac_includes_default
14377 rm -f conftest.
$ac_objext
14378 if { (ac_try
="$ac_compile"
14379 case "(($ac_try" in
14380 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14381 *) ac_try_echo=$ac_try;;
14383 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14384 $as_echo "$ac_try_echo") >&5
14385 (eval "$ac_compile") 2>conftest.er1
14387 grep -v '^ *+' conftest.er1 >conftest.err
14389 cat conftest.err >&5
14390 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14391 (exit $ac_status); } && {
14392 test -z "$ac_c_werror_flag" ||
14393 test ! -s conftest.err
14394 } && test -s conftest.$ac_objext; then
14395 ac_cv_have_decl_getenv=yes
14397 $as_echo "$as_me: failed program was:" >&5
14398 sed 's/^/| /' conftest.$ac_ext >&5
14400 ac_cv_have_decl_getenv=no
14403 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14405 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_getenv" >&5
14406 $as_echo "$ac_cv_have_decl_getenv" >&6; }
14407 if test "x$ac_cv_have_decl_getenv" = x""yes; then
14409 cat >>confdefs.h <<_ACEOF
14410 #define HAVE_DECL_GETENV 1
14415 cat >>confdefs.h <<_ACEOF
14416 #define HAVE_DECL_GETENV 0
14425 { $as_echo "$as_me:$LINENO: checking for inttypes.h" >&5
14426 $as_echo_n "checking for inttypes.h... " >&6; }
14427 if test "${gl_cv_header_inttypes_h+set}" = set; then
14428 $as_echo_n "(cached) " >&6
14430 cat >conftest.$ac_ext <<_ACEOF
14433 cat confdefs.h >>conftest.$ac_ext
14434 cat >>conftest.$ac_ext <<_ACEOF
14435 /* end confdefs.h. */
14436 #include <sys/types.h>
14437 #include <inttypes.h>
14441 uintmax_t i = (uintmax_t) -1;
14446 rm -f conftest.$ac_objext
14447 if { (ac_try="$ac_compile"
14448 case "(($ac_try" in
14449 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14450 *) ac_try_echo
=$ac_try;;
14452 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
14453 $as_echo "$ac_try_echo") >&5
14454 (eval "$ac_compile") 2>conftest.er1
14456 grep -v '^ *+' conftest.er1
>conftest.err
14458 cat conftest.err
>&5
14459 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14460 (exit $ac_status); } && {
14461 test -z "$ac_c_werror_flag" ||
14462 test ! -s conftest.err
14463 } && test -s conftest.
$ac_objext; then
14464 gl_cv_header_inttypes_h
=yes
14466 $as_echo "$as_me: failed program was:" >&5
14467 sed 's/^/| /' conftest.
$ac_ext >&5
14469 gl_cv_header_inttypes_h
=no
14472 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14474 { $as_echo "$as_me:$LINENO: result: $gl_cv_header_inttypes_h" >&5
14475 $as_echo "$gl_cv_header_inttypes_h" >&6; }
14476 if test $gl_cv_header_inttypes_h = yes; then
14478 cat >>confdefs.h
<<_ACEOF
14479 #define HAVE_INTTYPES_H_WITH_UINTMAX 1
14485 { $as_echo "$as_me:$LINENO: checking for stdint.h" >&5
14486 $as_echo_n "checking for stdint.h... " >&6; }
14487 if test "${gl_cv_header_stdint_h+set}" = set; then
14488 $as_echo_n "(cached) " >&6
14490 cat >conftest.
$ac_ext <<_ACEOF
14493 cat confdefs.h
>>conftest.
$ac_ext
14494 cat >>conftest.
$ac_ext <<_ACEOF
14495 /* end confdefs.h. */
14496 #include <sys/types.h>
14497 #include <stdint.h>
14501 uintmax_t i = (uintmax_t) -1;
14506 rm -f conftest.
$ac_objext
14507 if { (ac_try
="$ac_compile"
14508 case "(($ac_try" in
14509 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14510 *) ac_try_echo=$ac_try;;
14512 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14513 $as_echo "$ac_try_echo") >&5
14514 (eval "$ac_compile") 2>conftest.er1
14516 grep -v '^ *+' conftest.er1 >conftest.err
14518 cat conftest.err >&5
14519 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14520 (exit $ac_status); } && {
14521 test -z "$ac_c_werror_flag" ||
14522 test ! -s conftest.err
14523 } && test -s conftest.$ac_objext; then
14524 gl_cv_header_stdint_h=yes
14526 $as_echo "$as_me: failed program was:" >&5
14527 sed 's/^/| /' conftest.$ac_ext >&5
14529 gl_cv_header_stdint_h=no
14532 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14534 { $as_echo "$as_me:$LINENO: result: $gl_cv_header_stdint_h" >&5
14535 $as_echo "$gl_cv_header_stdint_h" >&6; }
14536 if test $gl_cv_header_stdint_h = yes; then
14538 cat >>confdefs.h <<_ACEOF
14539 #define HAVE_STDINT_H_WITH_UINTMAX 1
14545 { $as_echo "$as_me:$LINENO: checking for unsigned long long" >&5
14546 $as_echo_n "checking for unsigned long long... " >&6; }
14547 if test "${ac_cv_type_unsigned_long_long+set}" = set; then
14548 $as_echo_n "(cached) " >&6
14550 cat >conftest.$ac_ext <<_ACEOF
14553 cat confdefs.h >>conftest.$ac_ext
14554 cat >>conftest.$ac_ext <<_ACEOF
14555 /* end confdefs.h. */
14556 unsigned long long ull = 1ULL; int i = 63;
14560 unsigned long long ullmax = (unsigned long long) -1;
14561 return ull << i | ull >> i | ullmax / ull | ullmax % ull;
14566 rm -f conftest.$ac_objext conftest$ac_exeext
14567 if { (ac_try="$ac_link"
14568 case "(($ac_try" in
14569 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14570 *) ac_try_echo
=$ac_try;;
14572 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
14573 $as_echo "$ac_try_echo") >&5
14574 (eval "$ac_link") 2>conftest.er1
14576 grep -v '^ *+' conftest.er1
>conftest.err
14578 cat conftest.err
>&5
14579 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14580 (exit $ac_status); } && {
14581 test -z "$ac_c_werror_flag" ||
14582 test ! -s conftest.err
14583 } && test -s conftest
$ac_exeext && {
14584 test "$cross_compiling" = yes ||
14585 $as_test_x conftest
$ac_exeext
14587 ac_cv_type_unsigned_long_long
=yes
14589 $as_echo "$as_me: failed program was:" >&5
14590 sed 's/^/| /' conftest.
$ac_ext >&5
14592 ac_cv_type_unsigned_long_long
=no
14595 rm -rf conftest.dSYM
14596 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
14597 conftest
$ac_exeext conftest.
$ac_ext
14599 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long_long" >&5
14600 $as_echo "$ac_cv_type_unsigned_long_long" >&6; }
14601 if test $ac_cv_type_unsigned_long_long = yes; then
14603 cat >>confdefs.h
<<\_ACEOF
14604 #define HAVE_UNSIGNED_LONG_LONG 1
14612 if test $gl_cv_header_inttypes_h = no
&& test $gl_cv_header_stdint_h = no
; then
14614 test $ac_cv_type_unsigned_long_long = yes \
14615 && ac_type
='unsigned long long' \
14616 || ac_type
='unsigned long'
14618 cat >>confdefs.h
<<_ACEOF
14619 #define uintmax_t $ac_type
14624 cat >>confdefs.h
<<\_ACEOF
14625 #define HAVE_UINTMAX_T 1
14633 for ac_header
in stdlib.h sys
/time.h unistd.h
14635 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
14636 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14637 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
14638 $as_echo_n "checking for $ac_header... " >&6; }
14639 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14640 $as_echo_n "(cached) " >&6
14642 ac_res
=`eval 'as_val=${'$as_ac_Header'}
14643 $as_echo "$as_val"'`
14644 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
14645 $as_echo "$ac_res" >&6; }
14647 # Is the header compilable?
14648 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
14649 $as_echo_n "checking $ac_header usability... " >&6; }
14650 cat >conftest.
$ac_ext <<_ACEOF
14653 cat confdefs.h
>>conftest.
$ac_ext
14654 cat >>conftest.
$ac_ext <<_ACEOF
14655 /* end confdefs.h. */
14656 $ac_includes_default
14657 #include <$ac_header>
14659 rm -f conftest.
$ac_objext
14660 if { (ac_try
="$ac_compile"
14661 case "(($ac_try" in
14662 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14663 *) ac_try_echo=$ac_try;;
14665 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14666 $as_echo "$ac_try_echo") >&5
14667 (eval "$ac_compile") 2>conftest.er1
14669 grep -v '^ *+' conftest.er1 >conftest.err
14671 cat conftest.err >&5
14672 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14673 (exit $ac_status); } && {
14674 test -z "$ac_c_werror_flag" ||
14675 test ! -s conftest.err
14676 } && test -s conftest.$ac_objext; then
14677 ac_header_compiler=yes
14679 $as_echo "$as_me: failed program was:" >&5
14680 sed 's/^/| /' conftest.$ac_ext >&5
14682 ac_header_compiler=no
14685 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14686 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14687 $as_echo "$ac_header_compiler" >&6; }
14689 # Is the header present?
14690 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
14691 $as_echo_n "checking $ac_header presence... " >&6; }
14692 cat >conftest.$ac_ext <<_ACEOF
14695 cat confdefs.h >>conftest.$ac_ext
14696 cat >>conftest.$ac_ext <<_ACEOF
14697 /* end confdefs.h. */
14698 #include <$ac_header>
14700 if { (ac_try="$ac_cpp conftest.$ac_ext"
14701 case "(($ac_try" in
14702 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14703 *) ac_try_echo
=$ac_try;;
14705 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
14706 $as_echo "$ac_try_echo") >&5
14707 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14709 grep -v '^ *+' conftest.er1
>conftest.err
14711 cat conftest.err
>&5
14712 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14713 (exit $ac_status); } >/dev
/null
&& {
14714 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14715 test ! -s conftest.err
14717 ac_header_preproc
=yes
14719 $as_echo "$as_me: failed program was:" >&5
14720 sed 's/^/| /' conftest.
$ac_ext >&5
14722 ac_header_preproc
=no
14725 rm -f conftest.err conftest.
$ac_ext
14726 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14727 $as_echo "$ac_header_preproc" >&6; }
14729 # So? What about this header?
14730 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14732 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14733 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14734 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14735 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14736 ac_header_preproc
=yes
14739 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14740 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14741 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14742 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14743 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14744 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14745 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14746 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14747 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14748 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14749 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14750 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14752 ## --------------------------------- ##
14753 ## Report this to bug-cvs@nongnu.org ##
14754 ## --------------------------------- ##
14756 ) |
sed "s/^/$as_me: WARNING: /" >&2
14759 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
14760 $as_echo_n "checking for $ac_header... " >&6; }
14761 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14762 $as_echo_n "(cached) " >&6
14764 eval "$as_ac_Header=\$ac_header_preproc"
14766 ac_res
=`eval 'as_val=${'$as_ac_Header'}
14767 $as_echo "$as_val"'`
14768 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
14769 $as_echo "$ac_res" >&6; }
14772 as_val
=`eval 'as_val=${'$as_ac_Header'}
14773 $as_echo "$as_val"'`
14774 if test "x$as_val" = x
""yes; then
14775 cat >>confdefs.h
<<_ACEOF
14776 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
14784 for ac_func
in alarm
14786 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14787 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
14788 $as_echo_n "checking for $ac_func... " >&6; }
14789 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14790 $as_echo_n "(cached) " >&6
14792 cat >conftest.
$ac_ext <<_ACEOF
14795 cat confdefs.h
>>conftest.
$ac_ext
14796 cat >>conftest.
$ac_ext <<_ACEOF
14797 /* end confdefs.h. */
14798 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14799 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14800 #define $ac_func innocuous_$ac_func
14802 /* System header to define __stub macros and hopefully few prototypes,
14803 which can conflict with char $ac_func (); below.
14804 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14805 <limits.h> exists even on freestanding compilers. */
14808 # include <limits.h>
14810 # include <assert.h>
14815 /* Override any GCC internal prototype to avoid an error.
14816 Use char because int might match the return type of a GCC
14817 builtin and then its argument prototype would still apply. */
14822 /* The GNU C library defines this for functions which it implements
14823 to always fail with ENOSYS. Some functions are actually named
14824 something starting with __ and the normal name is an alias. */
14825 #if defined __stub_$ac_func || defined __stub___$ac_func
14832 return $ac_func ();
14837 rm -f conftest.
$ac_objext conftest
$ac_exeext
14838 if { (ac_try
="$ac_link"
14839 case "(($ac_try" in
14840 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14841 *) ac_try_echo=$ac_try;;
14843 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14844 $as_echo "$ac_try_echo") >&5
14845 (eval "$ac_link") 2>conftest.er1
14847 grep -v '^ *+' conftest.er1 >conftest.err
14849 cat conftest.err >&5
14850 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14851 (exit $ac_status); } && {
14852 test -z "$ac_c_werror_flag" ||
14853 test ! -s conftest.err
14854 } && test -s conftest$ac_exeext && {
14855 test "$cross_compiling" = yes ||
14856 $as_test_x conftest$ac_exeext
14858 eval "$as_ac_var=yes"
14860 $as_echo "$as_me: failed program was:" >&5
14861 sed 's/^/| /' conftest.$ac_ext >&5
14863 eval "$as_ac_var=no"
14866 rm -rf conftest.dSYM
14867 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14868 conftest$ac_exeext conftest.$ac_ext
14870 ac_res=`eval 'as_val=${'$as_ac_var'}
14871 $as_echo "$as_val"'`
14872 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
14873 $as_echo "$ac_res" >&6; }
14874 as_val=`eval 'as_val=${'$as_ac_var'}
14875 $as_echo "$as_val"'`
14876 if test "x$as_val" = x""yes; then
14877 cat >>confdefs.h <<_ACEOF
14878 #define `$as_echo "HAVE_$ac_func" |
$as_tr_cpp` 1
14884 { $as_echo "$as_me:$LINENO: checking for working mktime" >&5
14885 $as_echo_n "checking for working mktime... " >&6; }
14886 if test "${ac_cv_func_working_mktime+set}" = set; then
14887 $as_echo_n "(cached) " >&6
14889 if test "$cross_compiling" = yes; then
14890 ac_cv_func_working_mktime=no
14892 cat >conftest.$ac_ext <<_ACEOF
14895 cat confdefs.h >>conftest.$ac_ext
14896 cat >>conftest.$ac_ext <<_ACEOF
14897 /* end confdefs.h. */
14898 /* Test program from Paul Eggert and Tony Leneis. */
14899 #if TIME_WITH_SYS_TIME
14900 # include <sys/time.h>
14903 # if HAVE_SYS_TIME_H
14904 # include <sys/time.h>
14911 # include <stdlib.h>
14915 # include <unistd.h>
14919 # define alarm(X) /* empty */
14922 /* Work around redefinition to rpl_putenv by other config tests. */
14925 static time_t time_t_max;
14926 static time_t time_t_min;
14928 /* Values we'll use to set the TZ environment variable. */
14929 static char *tz_strings[] = {
14930 (char *) 0, "TZ=GMT0", "TZ=JST-9",
14931 "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00"
14933 #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
14935 /* Fail if mktime fails to convert a date in the spring-forward gap.
14936 Based on a problem report from Andreas Jaeger. */
14938 spring_forward_gap ()
14940 /* glibc (up to about 1998-10-07) failed this test. */
14943 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
14944 instead of "TZ=America/Vancouver" in order to detect the bug even
14945 on systems that don't support the Olson extension, or don't have the
14946 full zoneinfo tables installed. */
14947 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
14956 if (mktime (&tm) == (time_t)-1)
14965 if ((lt = localtime (&now)) && mktime (lt) != now)
14973 mktime_test1 (now);
14974 mktime_test1 ((time_t) (time_t_max - now));
14975 mktime_test1 ((time_t) (time_t_min + now));
14981 /* Based on code from Ariel Faigon. */
14991 if (tm.tm_mon != 2 || tm.tm_mday != 31)
15001 tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
15002 now = mktime (&tm);
15003 if (now != (time_t) -1)
15005 struct tm *lt = localtime (&now);
15007 && lt->tm_year == tm.tm_year
15008 && lt->tm_mon == tm.tm_mon
15009 && lt->tm_mday == tm.tm_mday
15010 && lt->tm_hour == tm.tm_hour
15011 && lt->tm_min == tm.tm_min
15012 && lt->tm_sec == tm.tm_sec
15013 && lt->tm_yday == tm.tm_yday
15014 && lt->tm_wday == tm.tm_wday
15015 && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
15016 == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
15027 /* This test makes some buggy mktime implementations loop.
15028 Give up after 60 seconds; a mktime slower than that
15029 isn't worth using anyway. */
15032 for (time_t_max = 1; 0 < time_t_max; time_t_max *= 2)
15035 if ((time_t) -1 < 0)
15036 for (time_t_min = -1; (time_t) (time_t_min * 2) < 0; time_t_min *= 2)
15038 delta = time_t_max / 997; /* a suitable prime number */
15039 for (i = 0; i < N_STRINGS; i++)
15042 putenv (tz_strings[i]);
15044 for (t = 0; t <= time_t_max - delta; t += delta)
15046 mktime_test ((time_t) 1);
15047 mktime_test ((time_t) (60 * 60));
15048 mktime_test ((time_t) (60 * 60 * 24));
15050 for (j = 1; 0 < j; j *= 2)
15052 bigtime_test (j - 1);
15055 spring_forward_gap ();
15059 rm -f conftest$ac_exeext
15060 if { (ac_try="$ac_link"
15061 case "(($ac_try" in
15062 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
15063 *) ac_try_echo
=$ac_try;;
15065 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
15066 $as_echo "$ac_try_echo") >&5
15067 (eval "$ac_link") 2>&5
15069 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15070 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
15071 { (case "(($ac_try" in
15072 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
15073 *) ac_try_echo=$ac_try;;
15075 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15076 $as_echo "$ac_try_echo") >&5
15077 (eval "$ac_try") 2>&5
15079 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15080 (exit $ac_status); }; }; then
15081 ac_cv_func_working_mktime=yes
15083 $as_echo "$as_me: program exited with status $ac_status" >&5
15084 $as_echo "$as_me: failed program was:" >&5
15085 sed 's/^/| /' conftest.$ac_ext >&5
15087 ( exit $ac_status )
15088 ac_cv_func_working_mktime=no
15090 rm -rf conftest.dSYM
15091 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15096 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_working_mktime" >&5
15097 $as_echo "$ac_cv_func_working_mktime" >&6; }
15098 if test $ac_cv_func_working_mktime = no; then
15099 case " $LIBOBJS " in
15100 *" mktime.$ac_objext "* ) ;;
15101 *) LIBOBJS="$LIBOBJS mktime.$ac_objext"
15122 for ac_header in stdlib.h unistd.h
15124 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" |
$as_tr_sh`
15125 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15126 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
15127 $as_echo_n "checking for $ac_header... " >&6; }
15128 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15129 $as_echo_n "(cached) " >&6
15131 ac_res=`eval 'as_val=${'$as_ac_Header'}
15132 $as_echo "$as_val"'`
15133 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
15134 $as_echo "$ac_res" >&6; }
15136 # Is the header compilable?
15137 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
15138 $as_echo_n "checking $ac_header usability... " >&6; }
15139 cat >conftest.$ac_ext <<_ACEOF
15142 cat confdefs.h >>conftest.$ac_ext
15143 cat >>conftest.$ac_ext <<_ACEOF
15144 /* end confdefs.h. */
15145 $ac_includes_default
15146 #include <$ac_header>
15148 rm -f conftest.$ac_objext
15149 if { (ac_try="$ac_compile"
15150 case "(($ac_try" in
15151 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
15152 *) ac_try_echo
=$ac_try;;
15154 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
15155 $as_echo "$ac_try_echo") >&5
15156 (eval "$ac_compile") 2>conftest.er1
15158 grep -v '^ *+' conftest.er1
>conftest.err
15160 cat conftest.err
>&5
15161 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15162 (exit $ac_status); } && {
15163 test -z "$ac_c_werror_flag" ||
15164 test ! -s conftest.err
15165 } && test -s conftest.
$ac_objext; then
15166 ac_header_compiler
=yes
15168 $as_echo "$as_me: failed program was:" >&5
15169 sed 's/^/| /' conftest.
$ac_ext >&5
15171 ac_header_compiler
=no
15174 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15175 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15176 $as_echo "$ac_header_compiler" >&6; }
15178 # Is the header present?
15179 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
15180 $as_echo_n "checking $ac_header presence... " >&6; }
15181 cat >conftest.
$ac_ext <<_ACEOF
15184 cat confdefs.h
>>conftest.
$ac_ext
15185 cat >>conftest.
$ac_ext <<_ACEOF
15186 /* end confdefs.h. */
15187 #include <$ac_header>
15189 if { (ac_try
="$ac_cpp conftest.$ac_ext"
15190 case "(($ac_try" in
15191 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
15192 *) ac_try_echo=$ac_try;;
15194 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15195 $as_echo "$ac_try_echo") >&5
15196 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15198 grep -v '^ *+' conftest.er1 >conftest.err
15200 cat conftest.err >&5
15201 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15202 (exit $ac_status); } >/dev/null && {
15203 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15204 test ! -s conftest.err
15206 ac_header_preproc=yes
15208 $as_echo "$as_me: failed program was:" >&5
15209 sed 's/^/| /' conftest.$ac_ext >&5
15211 ac_header_preproc=no
15214 rm -f conftest.err conftest.$ac_ext
15215 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15216 $as_echo "$ac_header_preproc" >&6; }
15218 # So? What about this header?
15219 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15221 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15222 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15223 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15224 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15225 ac_header_preproc=yes
15228 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15229 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15230 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15231 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15232 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15233 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15234 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15235 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15236 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15237 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15238 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15239 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15241 ## --------------------------------- ##
15242 ## Report this to bug-cvs@nongnu.org ##
15243 ## --------------------------------- ##
15245 ) | sed "s/^/$as_me: WARNING: /" >&2
15248 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
15249 $as_echo_n "checking for $ac_header... " >&6; }
15250 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15251 $as_echo_n "(cached) " >&6
15253 eval "$as_ac_Header=\$ac_header_preproc"
15255 ac_res=`eval 'as_val=${'$as_ac_Header'}
15256 $as_echo "$as_val"'`
15257 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
15258 $as_echo "$ac_res" >&6; }
15261 as_val=`eval 'as_val=${'$as_ac_Header'}
15262 $as_echo "$as_val"'`
15263 if test "x$as_val" = x""yes; then
15264 cat >>confdefs.h <<_ACEOF
15265 #define `$as_echo "HAVE_$ac_header" |
$as_tr_cpp` 1
15273 for ac_func in getpagesize
15275 as_ac_var=`$as_echo "ac_cv_func_$ac_func" |
$as_tr_sh`
15276 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
15277 $as_echo_n "checking for $ac_func... " >&6; }
15278 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
15279 $as_echo_n "(cached) " >&6
15281 cat >conftest.$ac_ext <<_ACEOF
15284 cat confdefs.h >>conftest.$ac_ext
15285 cat >>conftest.$ac_ext <<_ACEOF
15286 /* end confdefs.h. */
15287 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15288 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15289 #define $ac_func innocuous_$ac_func
15291 /* System header to define __stub macros and hopefully few prototypes,
15292 which can conflict with char $ac_func (); below.
15293 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15294 <limits.h> exists even on freestanding compilers. */
15297 # include <limits.h>
15299 # include <assert.h>
15304 /* Override any GCC internal prototype to avoid an error.
15305 Use char because int might match the return type of a GCC
15306 builtin and then its argument prototype would still apply. */
15311 /* The GNU C library defines this for functions which it implements
15312 to always fail with ENOSYS. Some functions are actually named
15313 something starting with __ and the normal name is an alias. */
15314 #if defined __stub_$ac_func || defined __stub___$ac_func
15321 return $ac_func ();
15326 rm -f conftest.$ac_objext conftest$ac_exeext
15327 if { (ac_try="$ac_link"
15328 case "(($ac_try" in
15329 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
15330 *) ac_try_echo
=$ac_try;;
15332 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
15333 $as_echo "$ac_try_echo") >&5
15334 (eval "$ac_link") 2>conftest.er1
15336 grep -v '^ *+' conftest.er1
>conftest.err
15338 cat conftest.err
>&5
15339 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15340 (exit $ac_status); } && {
15341 test -z "$ac_c_werror_flag" ||
15342 test ! -s conftest.err
15343 } && test -s conftest
$ac_exeext && {
15344 test "$cross_compiling" = yes ||
15345 $as_test_x conftest
$ac_exeext
15347 eval "$as_ac_var=yes"
15349 $as_echo "$as_me: failed program was:" >&5
15350 sed 's/^/| /' conftest.
$ac_ext >&5
15352 eval "$as_ac_var=no"
15355 rm -rf conftest.dSYM
15356 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
15357 conftest
$ac_exeext conftest.
$ac_ext
15359 ac_res
=`eval 'as_val=${'$as_ac_var'}
15360 $as_echo "$as_val"'`
15361 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
15362 $as_echo "$ac_res" >&6; }
15363 as_val
=`eval 'as_val=${'$as_ac_var'}
15364 $as_echo "$as_val"'`
15365 if test "x$as_val" = x
""yes; then
15366 cat >>confdefs.h
<<_ACEOF
15367 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
15373 { $as_echo "$as_me:$LINENO: checking for working mmap" >&5
15374 $as_echo_n "checking for working mmap... " >&6; }
15375 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
15376 $as_echo_n "(cached) " >&6
15378 if test "$cross_compiling" = yes; then
15379 ac_cv_func_mmap_fixed_mapped
=no
15381 cat >conftest.
$ac_ext <<_ACEOF
15384 cat confdefs.h
>>conftest.
$ac_ext
15385 cat >>conftest.
$ac_ext <<_ACEOF
15386 /* end confdefs.h. */
15387 $ac_includes_default
15388 /* malloc might have been renamed as rpl_malloc. */
15391 /* Thanks to Mike Haertel and Jim Avera for this test.
15392 Here is a matrix of mmap possibilities:
15393 mmap private not fixed
15394 mmap private fixed at somewhere currently unmapped
15395 mmap private fixed at somewhere already mapped
15396 mmap shared not fixed
15397 mmap shared fixed at somewhere currently unmapped
15398 mmap shared fixed at somewhere already mapped
15399 For private mappings, we should verify that changes cannot be read()
15400 back from the file, nor mmap's back from the file at a different
15401 address. (There have been systems where private was not correctly
15402 implemented like the infamous i386 svr4.0, and systems where the
15403 VM page cache was not coherent with the file system buffer cache
15404 like early versions of FreeBSD and possibly contemporary NetBSD.)
15405 For shared mappings, we should conversely verify that changes get
15406 propagated back to all the places they're supposed to be.
15408 Grep wants private fixed already mapped.
15409 The main things grep needs to know about mmap are:
15410 * does it exist and is it safe to write into the mmap'd area
15411 * how to use it (BSD variants) */
15414 #include <sys/mman.h>
15416 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
15420 /* This mess was copied from the GNU getpagesize.h. */
15421 #ifndef HAVE_GETPAGESIZE
15422 /* Assume that all systems that can run configure have sys/param.h. */
15423 # ifndef HAVE_SYS_PARAM_H
15424 # define HAVE_SYS_PARAM_H 1
15427 # ifdef _SC_PAGESIZE
15428 # define getpagesize() sysconf(_SC_PAGESIZE)
15429 # else /* no _SC_PAGESIZE */
15430 # ifdef HAVE_SYS_PARAM_H
15431 # include <sys/param.h>
15432 # ifdef EXEC_PAGESIZE
15433 # define getpagesize() EXEC_PAGESIZE
15434 # else /* no EXEC_PAGESIZE */
15436 # define getpagesize() NBPG * CLSIZE
15439 # endif /* no CLSIZE */
15440 # else /* no NBPG */
15442 # define getpagesize() NBPC
15443 # else /* no NBPC */
15445 # define getpagesize() PAGESIZE
15446 # endif /* PAGESIZE */
15447 # endif /* no NBPC */
15448 # endif /* no NBPG */
15449 # endif /* no EXEC_PAGESIZE */
15450 # else /* no HAVE_SYS_PARAM_H */
15451 # define getpagesize() 8192 /* punt totally */
15452 # endif /* no HAVE_SYS_PARAM_H */
15453 # endif /* no _SC_PAGESIZE */
15455 #endif /* no HAVE_GETPAGESIZE */
15460 char *data, *data2, *data3;
15464 pagesize = getpagesize ();
15466 /* First, make a file with some known garbage in it. */
15467 data = (char *) malloc (pagesize);
15470 for (i = 0; i < pagesize; ++i)
15471 *(data + i) = rand ();
15473 fd = creat ("conftest.mmap", 0600);
15476 if (write (fd, data, pagesize) != pagesize)
15480 /* Next, try to mmap the file at a fixed address which already has
15481 something else allocated at it. If we can, also make sure that
15482 we see the same garbage. */
15483 fd = open ("conftest.mmap", O_RDWR);
15486 data2 = (char *) malloc (2 * pagesize);
15489 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
15490 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
15491 MAP_PRIVATE | MAP_FIXED, fd, 0L))
15493 for (i = 0; i < pagesize; ++i)
15494 if (*(data + i) != *(data2 + i))
15497 /* Finally, make sure that changes to the mapped area do not
15498 percolate back to the file as seen by read(). (This is a bug on
15499 some variants of i386 svr4.0.) */
15500 for (i = 0; i < pagesize; ++i)
15501 *(data2 + i) = *(data2 + i) + 1;
15502 data3 = (char *) malloc (pagesize);
15505 if (read (fd, data3, pagesize) != pagesize)
15507 for (i = 0; i < pagesize; ++i)
15508 if (*(data + i) != *(data3 + i))
15514 rm -f conftest
$ac_exeext
15515 if { (ac_try
="$ac_link"
15516 case "(($ac_try" in
15517 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
15518 *) ac_try_echo=$ac_try;;
15520 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15521 $as_echo "$ac_try_echo") >&5
15522 (eval "$ac_link") 2>&5
15524 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15525 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15526 { (case "(($ac_try" in
15527 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
15528 *) ac_try_echo
=$ac_try;;
15530 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
15531 $as_echo "$ac_try_echo") >&5
15532 (eval "$ac_try") 2>&5
15534 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15535 (exit $ac_status); }; }; then
15536 ac_cv_func_mmap_fixed_mapped
=yes
15538 $as_echo "$as_me: program exited with status $ac_status" >&5
15539 $as_echo "$as_me: failed program was:" >&5
15540 sed 's/^/| /' conftest.
$ac_ext >&5
15542 ( exit $ac_status )
15543 ac_cv_func_mmap_fixed_mapped
=no
15545 rm -rf conftest.dSYM
15546 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
15551 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
15552 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
15553 if test $ac_cv_func_mmap_fixed_mapped = yes; then
15555 cat >>confdefs.h
<<\_ACEOF
15556 #define HAVE_MMAP 1
15560 rm -f conftest.mmap
15563 # Try to allow MAP_ANONYMOUS.
15564 gl_have_mmap_anonymous
=no
15565 if test $ac_cv_func_mmap_fixed_mapped = yes; then
15566 { $as_echo "$as_me:$LINENO: checking for MAP_ANONYMOUS" >&5
15567 $as_echo_n "checking for MAP_ANONYMOUS... " >&6; }
15568 cat >conftest.
$ac_ext <<_ACEOF
15571 cat confdefs.h
>>conftest.
$ac_ext
15572 cat >>conftest.
$ac_ext <<_ACEOF
15573 /* end confdefs.h. */
15575 #include <sys/mman.h>
15576 #ifdef MAP_ANONYMOUS
15577 I cant identify this map.
15581 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15582 $EGREP "I cant identify this map." >/dev
/null
2>&1; then
15583 gl_have_mmap_anonymous
=yes
15587 if test $gl_have_mmap_anonymous != yes; then
15588 cat >conftest.
$ac_ext <<_ACEOF
15591 cat confdefs.h
>>conftest.
$ac_ext
15592 cat >>conftest.
$ac_ext <<_ACEOF
15593 /* end confdefs.h. */
15595 #include <sys/mman.h>
15597 I cant identify this map.
15601 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15602 $EGREP "I cant identify this map." >/dev
/null
2>&1; then
15604 cat >>confdefs.h
<<\_ACEOF
15605 #define MAP_ANONYMOUS MAP_ANON
15608 gl_have_mmap_anonymous
=yes
15613 { $as_echo "$as_me:$LINENO: result: $gl_have_mmap_anonymous" >&5
15614 $as_echo "$gl_have_mmap_anonymous" >&6; }
15615 if test $gl_have_mmap_anonymous = yes; then
15617 cat >>confdefs.h
<<\_ACEOF
15618 #define HAVE_MAP_ANONYMOUS 1
15643 { $as_echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
15644 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
15645 if test "${am_cv_langinfo_codeset+set}" = set; then
15646 $as_echo_n "(cached) " >&6
15648 cat >conftest.
$ac_ext <<_ACEOF
15651 cat confdefs.h
>>conftest.
$ac_ext
15652 cat >>conftest.
$ac_ext <<_ACEOF
15653 /* end confdefs.h. */
15654 #include <langinfo.h>
15658 char* cs = nl_langinfo(CODESET);
15663 rm -f conftest.
$ac_objext conftest
$ac_exeext
15664 if { (ac_try
="$ac_link"
15665 case "(($ac_try" in
15666 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
15667 *) ac_try_echo=$ac_try;;
15669 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15670 $as_echo "$ac_try_echo") >&5
15671 (eval "$ac_link") 2>conftest.er1
15673 grep -v '^ *+' conftest.er1 >conftest.err
15675 cat conftest.err >&5
15676 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15677 (exit $ac_status); } && {
15678 test -z "$ac_c_werror_flag" ||
15679 test ! -s conftest.err
15680 } && test -s conftest$ac_exeext && {
15681 test "$cross_compiling" = yes ||
15682 $as_test_x conftest$ac_exeext
15684 am_cv_langinfo_codeset=yes
15686 $as_echo "$as_me: failed program was:" >&5
15687 sed 's/^/| /' conftest.$ac_ext >&5
15689 am_cv_langinfo_codeset=no
15692 rm -rf conftest.dSYM
15693 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15694 conftest$ac_exeext conftest.$ac_ext
15697 { $as_echo "$as_me:$LINENO: result: $am_cv_langinfo_codeset" >&5
15698 $as_echo "$am_cv_langinfo_codeset" >&6; }
15699 if test $am_cv_langinfo_codeset = yes; then
15701 cat >>confdefs.h <<\_ACEOF
15702 #define HAVE_LANGINFO_CODESET 1
15738 { $as_echo "$as_me:$LINENO: checking for inttypes.h" >&5
15739 $as_echo_n "checking for inttypes.h... " >&6; }
15740 if test "${gt_cv_header_inttypes_h+set}" = set; then
15741 $as_echo_n "(cached) " >&6
15744 cat >conftest.$ac_ext <<_ACEOF
15747 cat confdefs.h >>conftest.$ac_ext
15748 cat >>conftest.$ac_ext <<_ACEOF
15749 /* end confdefs.h. */
15750 #include <sys/types.h>
15751 #include <inttypes.h>
15760 rm -f conftest.$ac_objext
15761 if { (ac_try="$ac_compile"
15762 case "(($ac_try" in
15763 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
15764 *) ac_try_echo
=$ac_try;;
15766 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
15767 $as_echo "$ac_try_echo") >&5
15768 (eval "$ac_compile") 2>conftest.er1
15770 grep -v '^ *+' conftest.er1
>conftest.err
15772 cat conftest.err
>&5
15773 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15774 (exit $ac_status); } && {
15775 test -z "$ac_c_werror_flag" ||
15776 test ! -s conftest.err
15777 } && test -s conftest.
$ac_objext; then
15778 gt_cv_header_inttypes_h
=yes
15780 $as_echo "$as_me: failed program was:" >&5
15781 sed 's/^/| /' conftest.
$ac_ext >&5
15783 gt_cv_header_inttypes_h
=no
15786 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15789 { $as_echo "$as_me:$LINENO: result: $gt_cv_header_inttypes_h" >&5
15790 $as_echo "$gt_cv_header_inttypes_h" >&6; }
15791 if test $gt_cv_header_inttypes_h = yes; then
15793 cat >>confdefs.h
<<_ACEOF
15794 #define HAVE_INTTYPES_H 1
15800 { $as_echo "$as_me:$LINENO: checking whether strdup is declared" >&5
15801 $as_echo_n "checking whether strdup is declared... " >&6; }
15802 if test "${ac_cv_have_decl_strdup+set}" = set; then
15803 $as_echo_n "(cached) " >&6
15805 cat >conftest.
$ac_ext <<_ACEOF
15808 cat confdefs.h
>>conftest.
$ac_ext
15809 cat >>conftest.
$ac_ext <<_ACEOF
15810 /* end confdefs.h. */
15811 $ac_includes_default
15823 rm -f conftest.
$ac_objext
15824 if { (ac_try
="$ac_compile"
15825 case "(($ac_try" in
15826 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
15827 *) ac_try_echo=$ac_try;;
15829 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15830 $as_echo "$ac_try_echo") >&5
15831 (eval "$ac_compile") 2>conftest.er1
15833 grep -v '^ *+' conftest.er1 >conftest.err
15835 cat conftest.err >&5
15836 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15837 (exit $ac_status); } && {
15838 test -z "$ac_c_werror_flag" ||
15839 test ! -s conftest.err
15840 } && test -s conftest.$ac_objext; then
15841 ac_cv_have_decl_strdup=yes
15843 $as_echo "$as_me: failed program was:" >&5
15844 sed 's/^/| /' conftest.$ac_ext >&5
15846 ac_cv_have_decl_strdup=no
15849 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15851 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_strdup" >&5
15852 $as_echo "$ac_cv_have_decl_strdup" >&6; }
15853 if test "x$ac_cv_have_decl_strdup" = x""yes; then
15855 cat >>confdefs.h <<_ACEOF
15856 #define HAVE_DECL_STRDUP 1
15861 cat >>confdefs.h <<_ACEOF
15862 #define HAVE_DECL_STRDUP 0
15871 for ac_func in strftime
15873 as_ac_var=`$as_echo "ac_cv_func_$ac_func" |
$as_tr_sh`
15874 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
15875 $as_echo_n "checking for $ac_func... " >&6; }
15876 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
15877 $as_echo_n "(cached) " >&6
15879 cat >conftest.$ac_ext <<_ACEOF
15882 cat confdefs.h >>conftest.$ac_ext
15883 cat >>conftest.$ac_ext <<_ACEOF
15884 /* end confdefs.h. */
15885 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15886 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15887 #define $ac_func innocuous_$ac_func
15889 /* System header to define __stub macros and hopefully few prototypes,
15890 which can conflict with char $ac_func (); below.
15891 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15892 <limits.h> exists even on freestanding compilers. */
15895 # include <limits.h>
15897 # include <assert.h>
15902 /* Override any GCC internal prototype to avoid an error.
15903 Use char because int might match the return type of a GCC
15904 builtin and then its argument prototype would still apply. */
15909 /* The GNU C library defines this for functions which it implements
15910 to always fail with ENOSYS. Some functions are actually named
15911 something starting with __ and the normal name is an alias. */
15912 #if defined __stub_$ac_func || defined __stub___$ac_func
15919 return $ac_func ();
15924 rm -f conftest.$ac_objext conftest$ac_exeext
15925 if { (ac_try="$ac_link"
15926 case "(($ac_try" in
15927 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
15928 *) ac_try_echo
=$ac_try;;
15930 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
15931 $as_echo "$ac_try_echo") >&5
15932 (eval "$ac_link") 2>conftest.er1
15934 grep -v '^ *+' conftest.er1
>conftest.err
15936 cat conftest.err
>&5
15937 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15938 (exit $ac_status); } && {
15939 test -z "$ac_c_werror_flag" ||
15940 test ! -s conftest.err
15941 } && test -s conftest
$ac_exeext && {
15942 test "$cross_compiling" = yes ||
15943 $as_test_x conftest
$ac_exeext
15945 eval "$as_ac_var=yes"
15947 $as_echo "$as_me: failed program was:" >&5
15948 sed 's/^/| /' conftest.
$ac_ext >&5
15950 eval "$as_ac_var=no"
15953 rm -rf conftest.dSYM
15954 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
15955 conftest
$ac_exeext conftest.
$ac_ext
15957 ac_res
=`eval 'as_val=${'$as_ac_var'}
15958 $as_echo "$as_val"'`
15959 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
15960 $as_echo "$ac_res" >&6; }
15961 as_val
=`eval 'as_val=${'$as_ac_var'}
15962 $as_echo "$as_val"'`
15963 if test "x$as_val" = x
""yes; then
15964 cat >>confdefs.h
<<_ACEOF
15965 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
15969 # strftime is in -lintl on SCO UNIX.
15970 { $as_echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
15971 $as_echo_n "checking for strftime in -lintl... " >&6; }
15972 if test "${ac_cv_lib_intl_strftime+set}" = set; then
15973 $as_echo_n "(cached) " >&6
15975 ac_check_lib_save_LIBS
=$LIBS
15976 LIBS
="-lintl $LIBS"
15977 cat >conftest.
$ac_ext <<_ACEOF
15980 cat confdefs.h
>>conftest.
$ac_ext
15981 cat >>conftest.
$ac_ext <<_ACEOF
15982 /* end confdefs.h. */
15984 /* Override any GCC internal prototype to avoid an error.
15985 Use char because int might match the return type of a GCC
15986 builtin and then its argument prototype would still apply. */
15994 return strftime ();
15999 rm -f conftest.
$ac_objext conftest
$ac_exeext
16000 if { (ac_try
="$ac_link"
16001 case "(($ac_try" in
16002 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
16003 *) ac_try_echo=$ac_try;;
16005 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16006 $as_echo "$ac_try_echo") >&5
16007 (eval "$ac_link") 2>conftest.er1
16009 grep -v '^ *+' conftest.er1 >conftest.err
16011 cat conftest.err >&5
16012 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16013 (exit $ac_status); } && {
16014 test -z "$ac_c_werror_flag" ||
16015 test ! -s conftest.err
16016 } && test -s conftest$ac_exeext && {
16017 test "$cross_compiling" = yes ||
16018 $as_test_x conftest$ac_exeext
16020 ac_cv_lib_intl_strftime=yes
16022 $as_echo "$as_me: failed program was:" >&5
16023 sed 's/^/| /' conftest.$ac_ext >&5
16025 ac_cv_lib_intl_strftime=no
16028 rm -rf conftest.dSYM
16029 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16030 conftest$ac_exeext conftest.$ac_ext
16031 LIBS=$ac_check_lib_save_LIBS
16033 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
16034 $as_echo "$ac_cv_lib_intl_strftime" >&6; }
16035 if test "x$ac_cv_lib_intl_strftime" = x""yes; then
16036 cat >>confdefs.h <<\_ACEOF
16037 #define HAVE_STRFTIME 1
16040 LIBS="-lintl $LIBS"
16066 case " $LIBOBJS " in
16067 *" strftime.$ac_objext "* ) ;;
16068 *) LIBOBJS="$LIBOBJS strftime.$ac_objext"
16073 # strftime.c uses the underyling system strftime if it exists.
16076 # This defines (or not) HAVE_TZNAME and HAVE_TM_ZONE.
16111 cat >>confdefs.h <<\_ACEOF
16112 #define my_strftime nstrftime
16117 { $as_echo "$as_me:$LINENO: checking whether clearerr_unlocked is declared" >&5
16118 $as_echo_n "checking whether clearerr_unlocked is declared... " >&6; }
16119 if test "${ac_cv_have_decl_clearerr_unlocked+set}" = set; then
16120 $as_echo_n "(cached) " >&6
16122 cat >conftest.$ac_ext <<_ACEOF
16125 cat confdefs.h >>conftest.$ac_ext
16126 cat >>conftest.$ac_ext <<_ACEOF
16127 /* end confdefs.h. */
16128 $ac_includes_default
16132 #ifndef clearerr_unlocked
16133 (void) clearerr_unlocked;
16140 rm -f conftest.$ac_objext
16141 if { (ac_try="$ac_compile"
16142 case "(($ac_try" in
16143 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
16144 *) ac_try_echo
=$ac_try;;
16146 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
16147 $as_echo "$ac_try_echo") >&5
16148 (eval "$ac_compile") 2>conftest.er1
16150 grep -v '^ *+' conftest.er1
>conftest.err
16152 cat conftest.err
>&5
16153 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16154 (exit $ac_status); } && {
16155 test -z "$ac_c_werror_flag" ||
16156 test ! -s conftest.err
16157 } && test -s conftest.
$ac_objext; then
16158 ac_cv_have_decl_clearerr_unlocked
=yes
16160 $as_echo "$as_me: failed program was:" >&5
16161 sed 's/^/| /' conftest.
$ac_ext >&5
16163 ac_cv_have_decl_clearerr_unlocked
=no
16166 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16168 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_clearerr_unlocked" >&5
16169 $as_echo "$ac_cv_have_decl_clearerr_unlocked" >&6; }
16170 if test "x$ac_cv_have_decl_clearerr_unlocked" = x
""yes; then
16172 cat >>confdefs.h
<<_ACEOF
16173 #define HAVE_DECL_CLEARERR_UNLOCKED 1
16178 cat >>confdefs.h
<<_ACEOF
16179 #define HAVE_DECL_CLEARERR_UNLOCKED 0
16188 { $as_echo "$as_me:$LINENO: checking whether feof_unlocked is declared" >&5
16189 $as_echo_n "checking whether feof_unlocked is declared... " >&6; }
16190 if test "${ac_cv_have_decl_feof_unlocked+set}" = set; then
16191 $as_echo_n "(cached) " >&6
16193 cat >conftest.
$ac_ext <<_ACEOF
16196 cat confdefs.h
>>conftest.
$ac_ext
16197 cat >>conftest.
$ac_ext <<_ACEOF
16198 /* end confdefs.h. */
16199 $ac_includes_default
16203 #ifndef feof_unlocked
16204 (void) feof_unlocked;
16211 rm -f conftest.
$ac_objext
16212 if { (ac_try
="$ac_compile"
16213 case "(($ac_try" in
16214 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
16215 *) ac_try_echo=$ac_try;;
16217 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16218 $as_echo "$ac_try_echo") >&5
16219 (eval "$ac_compile") 2>conftest.er1
16221 grep -v '^ *+' conftest.er1 >conftest.err
16223 cat conftest.err >&5
16224 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16225 (exit $ac_status); } && {
16226 test -z "$ac_c_werror_flag" ||
16227 test ! -s conftest.err
16228 } && test -s conftest.$ac_objext; then
16229 ac_cv_have_decl_feof_unlocked=yes
16231 $as_echo "$as_me: failed program was:" >&5
16232 sed 's/^/| /' conftest.$ac_ext >&5
16234 ac_cv_have_decl_feof_unlocked=no
16237 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16239 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_feof_unlocked" >&5
16240 $as_echo "$ac_cv_have_decl_feof_unlocked" >&6; }
16241 if test "x$ac_cv_have_decl_feof_unlocked" = x""yes; then
16243 cat >>confdefs.h <<_ACEOF
16244 #define HAVE_DECL_FEOF_UNLOCKED 1
16249 cat >>confdefs.h <<_ACEOF
16250 #define HAVE_DECL_FEOF_UNLOCKED 0
16259 { $as_echo "$as_me:$LINENO: checking whether ferror_unlocked is declared" >&5
16260 $as_echo_n "checking whether ferror_unlocked is declared... " >&6; }
16261 if test "${ac_cv_have_decl_ferror_unlocked+set}" = set; then
16262 $as_echo_n "(cached) " >&6
16264 cat >conftest.$ac_ext <<_ACEOF
16267 cat confdefs.h >>conftest.$ac_ext
16268 cat >>conftest.$ac_ext <<_ACEOF
16269 /* end confdefs.h. */
16270 $ac_includes_default
16274 #ifndef ferror_unlocked
16275 (void) ferror_unlocked;
16282 rm -f conftest.$ac_objext
16283 if { (ac_try="$ac_compile"
16284 case "(($ac_try" in
16285 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
16286 *) ac_try_echo
=$ac_try;;
16288 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
16289 $as_echo "$ac_try_echo") >&5
16290 (eval "$ac_compile") 2>conftest.er1
16292 grep -v '^ *+' conftest.er1
>conftest.err
16294 cat conftest.err
>&5
16295 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16296 (exit $ac_status); } && {
16297 test -z "$ac_c_werror_flag" ||
16298 test ! -s conftest.err
16299 } && test -s conftest.
$ac_objext; then
16300 ac_cv_have_decl_ferror_unlocked
=yes
16302 $as_echo "$as_me: failed program was:" >&5
16303 sed 's/^/| /' conftest.
$ac_ext >&5
16305 ac_cv_have_decl_ferror_unlocked
=no
16308 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16310 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_ferror_unlocked" >&5
16311 $as_echo "$ac_cv_have_decl_ferror_unlocked" >&6; }
16312 if test "x$ac_cv_have_decl_ferror_unlocked" = x
""yes; then
16314 cat >>confdefs.h
<<_ACEOF
16315 #define HAVE_DECL_FERROR_UNLOCKED 1
16320 cat >>confdefs.h
<<_ACEOF
16321 #define HAVE_DECL_FERROR_UNLOCKED 0
16330 { $as_echo "$as_me:$LINENO: checking whether fgets_unlocked is declared" >&5
16331 $as_echo_n "checking whether fgets_unlocked is declared... " >&6; }
16332 if test "${ac_cv_have_decl_fgets_unlocked+set}" = set; then
16333 $as_echo_n "(cached) " >&6
16335 cat >conftest.
$ac_ext <<_ACEOF
16338 cat confdefs.h
>>conftest.
$ac_ext
16339 cat >>conftest.
$ac_ext <<_ACEOF
16340 /* end confdefs.h. */
16341 $ac_includes_default
16345 #ifndef fgets_unlocked
16346 (void) fgets_unlocked;
16353 rm -f conftest.
$ac_objext
16354 if { (ac_try
="$ac_compile"
16355 case "(($ac_try" in
16356 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
16357 *) ac_try_echo=$ac_try;;
16359 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16360 $as_echo "$ac_try_echo") >&5
16361 (eval "$ac_compile") 2>conftest.er1
16363 grep -v '^ *+' conftest.er1 >conftest.err
16365 cat conftest.err >&5
16366 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16367 (exit $ac_status); } && {
16368 test -z "$ac_c_werror_flag" ||
16369 test ! -s conftest.err
16370 } && test -s conftest.$ac_objext; then
16371 ac_cv_have_decl_fgets_unlocked=yes
16373 $as_echo "$as_me: failed program was:" >&5
16374 sed 's/^/| /' conftest.$ac_ext >&5
16376 ac_cv_have_decl_fgets_unlocked=no
16379 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16381 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_fgets_unlocked" >&5
16382 $as_echo "$ac_cv_have_decl_fgets_unlocked" >&6; }
16383 if test "x$ac_cv_have_decl_fgets_unlocked" = x""yes; then
16385 cat >>confdefs.h <<_ACEOF
16386 #define HAVE_DECL_FGETS_UNLOCKED 1
16391 cat >>confdefs.h <<_ACEOF
16392 #define HAVE_DECL_FGETS_UNLOCKED 0
16401 { $as_echo "$as_me:$LINENO: checking whether fputc_unlocked is declared" >&5
16402 $as_echo_n "checking whether fputc_unlocked is declared... " >&6; }
16403 if test "${ac_cv_have_decl_fputc_unlocked+set}" = set; then
16404 $as_echo_n "(cached) " >&6
16406 cat >conftest.$ac_ext <<_ACEOF
16409 cat confdefs.h >>conftest.$ac_ext
16410 cat >>conftest.$ac_ext <<_ACEOF
16411 /* end confdefs.h. */
16412 $ac_includes_default
16416 #ifndef fputc_unlocked
16417 (void) fputc_unlocked;
16424 rm -f conftest.$ac_objext
16425 if { (ac_try="$ac_compile"
16426 case "(($ac_try" in
16427 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
16428 *) ac_try_echo
=$ac_try;;
16430 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
16431 $as_echo "$ac_try_echo") >&5
16432 (eval "$ac_compile") 2>conftest.er1
16434 grep -v '^ *+' conftest.er1
>conftest.err
16436 cat conftest.err
>&5
16437 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16438 (exit $ac_status); } && {
16439 test -z "$ac_c_werror_flag" ||
16440 test ! -s conftest.err
16441 } && test -s conftest.
$ac_objext; then
16442 ac_cv_have_decl_fputc_unlocked
=yes
16444 $as_echo "$as_me: failed program was:" >&5
16445 sed 's/^/| /' conftest.
$ac_ext >&5
16447 ac_cv_have_decl_fputc_unlocked
=no
16450 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16452 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_fputc_unlocked" >&5
16453 $as_echo "$ac_cv_have_decl_fputc_unlocked" >&6; }
16454 if test "x$ac_cv_have_decl_fputc_unlocked" = x
""yes; then
16456 cat >>confdefs.h
<<_ACEOF
16457 #define HAVE_DECL_FPUTC_UNLOCKED 1
16462 cat >>confdefs.h
<<_ACEOF
16463 #define HAVE_DECL_FPUTC_UNLOCKED 0
16472 { $as_echo "$as_me:$LINENO: checking whether fread_unlocked is declared" >&5
16473 $as_echo_n "checking whether fread_unlocked is declared... " >&6; }
16474 if test "${ac_cv_have_decl_fread_unlocked+set}" = set; then
16475 $as_echo_n "(cached) " >&6
16477 cat >conftest.
$ac_ext <<_ACEOF
16480 cat confdefs.h
>>conftest.
$ac_ext
16481 cat >>conftest.
$ac_ext <<_ACEOF
16482 /* end confdefs.h. */
16483 $ac_includes_default
16487 #ifndef fread_unlocked
16488 (void) fread_unlocked;
16495 rm -f conftest.
$ac_objext
16496 if { (ac_try
="$ac_compile"
16497 case "(($ac_try" in
16498 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
16499 *) ac_try_echo=$ac_try;;
16501 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16502 $as_echo "$ac_try_echo") >&5
16503 (eval "$ac_compile") 2>conftest.er1
16505 grep -v '^ *+' conftest.er1 >conftest.err
16507 cat conftest.err >&5
16508 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16509 (exit $ac_status); } && {
16510 test -z "$ac_c_werror_flag" ||
16511 test ! -s conftest.err
16512 } && test -s conftest.$ac_objext; then
16513 ac_cv_have_decl_fread_unlocked=yes
16515 $as_echo "$as_me: failed program was:" >&5
16516 sed 's/^/| /' conftest.$ac_ext >&5
16518 ac_cv_have_decl_fread_unlocked=no
16521 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16523 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_fread_unlocked" >&5
16524 $as_echo "$ac_cv_have_decl_fread_unlocked" >&6; }
16525 if test "x$ac_cv_have_decl_fread_unlocked" = x""yes; then
16527 cat >>confdefs.h <<_ACEOF
16528 #define HAVE_DECL_FREAD_UNLOCKED 1
16533 cat >>confdefs.h <<_ACEOF
16534 #define HAVE_DECL_FREAD_UNLOCKED 0
16543 { $as_echo "$as_me:$LINENO: checking whether fwrite_unlocked is declared" >&5
16544 $as_echo_n "checking whether fwrite_unlocked is declared... " >&6; }
16545 if test "${ac_cv_have_decl_fwrite_unlocked+set}" = set; then
16546 $as_echo_n "(cached) " >&6
16548 cat >conftest.$ac_ext <<_ACEOF
16551 cat confdefs.h >>conftest.$ac_ext
16552 cat >>conftest.$ac_ext <<_ACEOF
16553 /* end confdefs.h. */
16554 $ac_includes_default
16558 #ifndef fwrite_unlocked
16559 (void) fwrite_unlocked;
16566 rm -f conftest.$ac_objext
16567 if { (ac_try="$ac_compile"
16568 case "(($ac_try" in
16569 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
16570 *) ac_try_echo
=$ac_try;;
16572 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
16573 $as_echo "$ac_try_echo") >&5
16574 (eval "$ac_compile") 2>conftest.er1
16576 grep -v '^ *+' conftest.er1
>conftest.err
16578 cat conftest.err
>&5
16579 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16580 (exit $ac_status); } && {
16581 test -z "$ac_c_werror_flag" ||
16582 test ! -s conftest.err
16583 } && test -s conftest.
$ac_objext; then
16584 ac_cv_have_decl_fwrite_unlocked
=yes
16586 $as_echo "$as_me: failed program was:" >&5
16587 sed 's/^/| /' conftest.
$ac_ext >&5
16589 ac_cv_have_decl_fwrite_unlocked
=no
16592 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16594 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_fwrite_unlocked" >&5
16595 $as_echo "$ac_cv_have_decl_fwrite_unlocked" >&6; }
16596 if test "x$ac_cv_have_decl_fwrite_unlocked" = x
""yes; then
16598 cat >>confdefs.h
<<_ACEOF
16599 #define HAVE_DECL_FWRITE_UNLOCKED 1
16604 cat >>confdefs.h
<<_ACEOF
16605 #define HAVE_DECL_FWRITE_UNLOCKED 0
16614 { $as_echo "$as_me:$LINENO: checking whether getc_unlocked is declared" >&5
16615 $as_echo_n "checking whether getc_unlocked is declared... " >&6; }
16616 if test "${ac_cv_have_decl_getc_unlocked+set}" = set; then
16617 $as_echo_n "(cached) " >&6
16619 cat >conftest.
$ac_ext <<_ACEOF
16622 cat confdefs.h
>>conftest.
$ac_ext
16623 cat >>conftest.
$ac_ext <<_ACEOF
16624 /* end confdefs.h. */
16625 $ac_includes_default
16629 #ifndef getc_unlocked
16630 (void) getc_unlocked;
16637 rm -f conftest.
$ac_objext
16638 if { (ac_try
="$ac_compile"
16639 case "(($ac_try" in
16640 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
16641 *) ac_try_echo=$ac_try;;
16643 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16644 $as_echo "$ac_try_echo") >&5
16645 (eval "$ac_compile") 2>conftest.er1
16647 grep -v '^ *+' conftest.er1 >conftest.err
16649 cat conftest.err >&5
16650 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16651 (exit $ac_status); } && {
16652 test -z "$ac_c_werror_flag" ||
16653 test ! -s conftest.err
16654 } && test -s conftest.$ac_objext; then
16655 ac_cv_have_decl_getc_unlocked=yes
16657 $as_echo "$as_me: failed program was:" >&5
16658 sed 's/^/| /' conftest.$ac_ext >&5
16660 ac_cv_have_decl_getc_unlocked=no
16663 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16665 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_getc_unlocked" >&5
16666 $as_echo "$ac_cv_have_decl_getc_unlocked" >&6; }
16667 if test "x$ac_cv_have_decl_getc_unlocked" = x""yes; then
16669 cat >>confdefs.h <<_ACEOF
16670 #define HAVE_DECL_GETC_UNLOCKED 1
16675 cat >>confdefs.h <<_ACEOF
16676 #define HAVE_DECL_GETC_UNLOCKED 0
16685 { $as_echo "$as_me:$LINENO: checking whether getchar_unlocked is declared" >&5
16686 $as_echo_n "checking whether getchar_unlocked is declared... " >&6; }
16687 if test "${ac_cv_have_decl_getchar_unlocked+set}" = set; then
16688 $as_echo_n "(cached) " >&6
16690 cat >conftest.$ac_ext <<_ACEOF
16693 cat confdefs.h >>conftest.$ac_ext
16694 cat >>conftest.$ac_ext <<_ACEOF
16695 /* end confdefs.h. */
16696 $ac_includes_default
16700 #ifndef getchar_unlocked
16701 (void) getchar_unlocked;
16708 rm -f conftest.$ac_objext
16709 if { (ac_try="$ac_compile"
16710 case "(($ac_try" in
16711 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
16712 *) ac_try_echo
=$ac_try;;
16714 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
16715 $as_echo "$ac_try_echo") >&5
16716 (eval "$ac_compile") 2>conftest.er1
16718 grep -v '^ *+' conftest.er1
>conftest.err
16720 cat conftest.err
>&5
16721 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16722 (exit $ac_status); } && {
16723 test -z "$ac_c_werror_flag" ||
16724 test ! -s conftest.err
16725 } && test -s conftest.
$ac_objext; then
16726 ac_cv_have_decl_getchar_unlocked
=yes
16728 $as_echo "$as_me: failed program was:" >&5
16729 sed 's/^/| /' conftest.
$ac_ext >&5
16731 ac_cv_have_decl_getchar_unlocked
=no
16734 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16736 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_getchar_unlocked" >&5
16737 $as_echo "$ac_cv_have_decl_getchar_unlocked" >&6; }
16738 if test "x$ac_cv_have_decl_getchar_unlocked" = x
""yes; then
16740 cat >>confdefs.h
<<_ACEOF
16741 #define HAVE_DECL_GETCHAR_UNLOCKED 1
16746 cat >>confdefs.h
<<_ACEOF
16747 #define HAVE_DECL_GETCHAR_UNLOCKED 0
16756 { $as_echo "$as_me:$LINENO: checking whether putchar_unlocked is declared" >&5
16757 $as_echo_n "checking whether putchar_unlocked is declared... " >&6; }
16758 if test "${ac_cv_have_decl_putchar_unlocked+set}" = set; then
16759 $as_echo_n "(cached) " >&6
16761 cat >conftest.
$ac_ext <<_ACEOF
16764 cat confdefs.h
>>conftest.
$ac_ext
16765 cat >>conftest.
$ac_ext <<_ACEOF
16766 /* end confdefs.h. */
16767 $ac_includes_default
16771 #ifndef putchar_unlocked
16772 (void) putchar_unlocked;
16779 rm -f conftest.
$ac_objext
16780 if { (ac_try
="$ac_compile"
16781 case "(($ac_try" in
16782 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
16783 *) ac_try_echo=$ac_try;;
16785 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16786 $as_echo "$ac_try_echo") >&5
16787 (eval "$ac_compile") 2>conftest.er1
16789 grep -v '^ *+' conftest.er1 >conftest.err
16791 cat conftest.err >&5
16792 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16793 (exit $ac_status); } && {
16794 test -z "$ac_c_werror_flag" ||
16795 test ! -s conftest.err
16796 } && test -s conftest.$ac_objext; then
16797 ac_cv_have_decl_putchar_unlocked=yes
16799 $as_echo "$as_me: failed program was:" >&5
16800 sed 's/^/| /' conftest.$ac_ext >&5
16802 ac_cv_have_decl_putchar_unlocked=no
16805 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16807 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_putchar_unlocked" >&5
16808 $as_echo "$ac_cv_have_decl_putchar_unlocked" >&6; }
16809 if test "x$ac_cv_have_decl_putchar_unlocked" = x""yes; then
16811 cat >>confdefs.h <<_ACEOF
16812 #define HAVE_DECL_PUTCHAR_UNLOCKED 1
16817 cat >>confdefs.h <<_ACEOF
16818 #define HAVE_DECL_PUTCHAR_UNLOCKED 0
16828 { $as_echo "$as_me:$LINENO: checking for EOVERFLOW" >&5
16829 $as_echo_n "checking for EOVERFLOW... " >&6; }
16830 if test "${ac_cv_decl_EOVERFLOW+set}" = set; then
16831 $as_echo_n "(cached) " >&6
16834 cat >conftest.$ac_ext <<_ACEOF
16837 cat confdefs.h >>conftest.$ac_ext
16838 cat >>conftest.$ac_ext <<_ACEOF
16839 /* end confdefs.h. */
16847 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16848 $EGREP "yes" >/dev/null 2>&1; then
16853 if test -n "$have_eoverflow"; then
16854 ac_cv_decl_EOVERFLOW=yes
16856 cat >conftest.$ac_ext <<_ACEOF
16859 cat confdefs.h >>conftest.$ac_ext
16860 cat >>conftest.$ac_ext <<_ACEOF
16861 /* end confdefs.h. */
16863 #define _XOPEN_SOURCE_EXTENDED 1
16870 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16871 $EGREP "yes" >/dev/null 2>&1; then
16876 if test -n "$have_eoverflow"; then
16877 if test "$cross_compiling" = yes; then
16878 # Depending upon the size, compute the lo and hi bounds.
16879 cat >conftest.$ac_ext <<_ACEOF
16882 cat confdefs.h >>conftest.$ac_ext
16883 cat >>conftest.$ac_ext <<_ACEOF
16884 /* end confdefs.h. */
16886 #define _XOPEN_SOURCE_EXTENDED 1
16888 /* The following two lines are a workaround against an autoconf-2.52 bug. */
16890 #include <stdlib.h>
16895 static int test_array [1 - 2 * !((EOVERFLOW) >= 0)];
16902 rm -f conftest.$ac_objext
16903 if { (ac_try="$ac_compile"
16904 case "(($ac_try" in
16905 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
16906 *) ac_try_echo
=$ac_try;;
16908 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
16909 $as_echo "$ac_try_echo") >&5
16910 (eval "$ac_compile") 2>conftest.er1
16912 grep -v '^ *+' conftest.er1
>conftest.err
16914 cat conftest.err
>&5
16915 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16916 (exit $ac_status); } && {
16917 test -z "$ac_c_werror_flag" ||
16918 test ! -s conftest.err
16919 } && test -s conftest.
$ac_objext; then
16922 cat >conftest.
$ac_ext <<_ACEOF
16925 cat confdefs.h
>>conftest.
$ac_ext
16926 cat >>conftest.
$ac_ext <<_ACEOF
16927 /* end confdefs.h. */
16929 #define _XOPEN_SOURCE_EXTENDED 1
16931 /* The following two lines are a workaround against an autoconf-2.52 bug. */
16933 #include <stdlib.h>
16938 static int test_array [1 - 2 * !((EOVERFLOW) <= $ac_mid)];
16945 rm -f conftest.
$ac_objext
16946 if { (ac_try
="$ac_compile"
16947 case "(($ac_try" in
16948 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
16949 *) ac_try_echo=$ac_try;;
16951 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16952 $as_echo "$ac_try_echo") >&5
16953 (eval "$ac_compile") 2>conftest.er1
16955 grep -v '^ *+' conftest.er1 >conftest.err
16957 cat conftest.err >&5
16958 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16959 (exit $ac_status); } && {
16960 test -z "$ac_c_werror_flag" ||
16961 test ! -s conftest.err
16962 } && test -s conftest.$ac_objext; then
16963 ac_hi=$ac_mid; break
16965 $as_echo "$as_me: failed program was:" >&5
16966 sed 's/^/| /' conftest.$ac_ext >&5
16968 ac_lo=`expr $ac_mid + 1`
16969 if test $ac_lo -le $ac_mid; then
16973 ac_mid=`expr 2 '*' $ac_mid + 1`
16976 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16979 $as_echo "$as_me: failed program was:" >&5
16980 sed 's/^/| /' conftest.$ac_ext >&5
16982 cat >conftest.$ac_ext <<_ACEOF
16985 cat confdefs.h >>conftest.$ac_ext
16986 cat >>conftest.$ac_ext <<_ACEOF
16987 /* end confdefs.h. */
16989 #define _XOPEN_SOURCE_EXTENDED 1
16991 /* The following two lines are a workaround against an autoconf-2.52 bug. */
16993 #include <stdlib.h>
16998 static int test_array [1 - 2 * !((EOVERFLOW) < 0)];
17005 rm -f conftest.$ac_objext
17006 if { (ac_try="$ac_compile"
17007 case "(($ac_try" in
17008 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
17009 *) ac_try_echo
=$ac_try;;
17011 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
17012 $as_echo "$ac_try_echo") >&5
17013 (eval "$ac_compile") 2>conftest.er1
17015 grep -v '^ *+' conftest.er1
>conftest.err
17017 cat conftest.err
>&5
17018 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17019 (exit $ac_status); } && {
17020 test -z "$ac_c_werror_flag" ||
17021 test ! -s conftest.err
17022 } && test -s conftest.
$ac_objext; then
17025 cat >conftest.
$ac_ext <<_ACEOF
17028 cat confdefs.h
>>conftest.
$ac_ext
17029 cat >>conftest.
$ac_ext <<_ACEOF
17030 /* end confdefs.h. */
17032 #define _XOPEN_SOURCE_EXTENDED 1
17034 /* The following two lines are a workaround against an autoconf-2.52 bug. */
17036 #include <stdlib.h>
17041 static int test_array [1 - 2 * !((EOVERFLOW) >= $ac_mid)];
17048 rm -f conftest.
$ac_objext
17049 if { (ac_try
="$ac_compile"
17050 case "(($ac_try" in
17051 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
17052 *) ac_try_echo=$ac_try;;
17054 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17055 $as_echo "$ac_try_echo") >&5
17056 (eval "$ac_compile") 2>conftest.er1
17058 grep -v '^ *+' conftest.er1 >conftest.err
17060 cat conftest.err >&5
17061 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17062 (exit $ac_status); } && {
17063 test -z "$ac_c_werror_flag" ||
17064 test ! -s conftest.err
17065 } && test -s conftest.$ac_objext; then
17066 ac_lo=$ac_mid; break
17068 $as_echo "$as_me: failed program was:" >&5
17069 sed 's/^/| /' conftest.$ac_ext >&5
17071 ac_hi=`expr '(' $ac_mid ')' - 1`
17072 if test $ac_mid -le $ac_hi; then
17076 ac_mid=`expr 2 '*' $ac_mid`
17079 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17082 $as_echo "$as_me: failed program was:" >&5
17083 sed 's/^/| /' conftest.$ac_ext >&5
17088 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17091 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17092 # Binary search between lo and hi bounds.
17093 while test "x$ac_lo" != "x$ac_hi"; do
17094 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
17095 cat >conftest.$ac_ext <<_ACEOF
17098 cat confdefs.h >>conftest.$ac_ext
17099 cat >>conftest.$ac_ext <<_ACEOF
17100 /* end confdefs.h. */
17102 #define _XOPEN_SOURCE_EXTENDED 1
17104 /* The following two lines are a workaround against an autoconf-2.52 bug. */
17106 #include <stdlib.h>
17111 static int test_array [1 - 2 * !((EOVERFLOW) <= $ac_mid)];
17118 rm -f conftest.$ac_objext
17119 if { (ac_try="$ac_compile"
17120 case "(($ac_try" in
17121 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
17122 *) ac_try_echo
=$ac_try;;
17124 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
17125 $as_echo "$ac_try_echo") >&5
17126 (eval "$ac_compile") 2>conftest.er1
17128 grep -v '^ *+' conftest.er1
>conftest.err
17130 cat conftest.err
>&5
17131 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17132 (exit $ac_status); } && {
17133 test -z "$ac_c_werror_flag" ||
17134 test ! -s conftest.err
17135 } && test -s conftest.
$ac_objext; then
17138 $as_echo "$as_me: failed program was:" >&5
17139 sed 's/^/| /' conftest.
$ac_ext >&5
17141 ac_lo
=`expr '(' $ac_mid ')' + 1`
17144 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
17147 ?
*) ac_cv_decl_EOVERFLOW
=$ac_lo;;
17151 cat >conftest.
$ac_ext <<_ACEOF
17154 cat confdefs.h
>>conftest.
$ac_ext
17155 cat >>conftest.
$ac_ext <<_ACEOF
17156 /* end confdefs.h. */
17158 #define _XOPEN_SOURCE_EXTENDED 1
17160 /* The following two lines are a workaround against an autoconf-2.52 bug. */
17162 #include <stdlib.h>
17164 static long int longval () { return EOVERFLOW; }
17165 static unsigned long int ulongval () { return EOVERFLOW; }
17167 #include <stdlib.h>
17172 FILE *f = fopen ("conftest.val", "w");
17175 if ((EOVERFLOW) < 0)
17177 long int i = longval ();
17178 if (i != (EOVERFLOW))
17180 fprintf (f, "%ld", i);
17184 unsigned long int i = ulongval ();
17185 if (i != (EOVERFLOW))
17187 fprintf (f, "%lu", i);
17189 /* Do not output a trailing newline, as this causes \r\n confusion
17190 on some platforms. */
17191 return ferror (f) || fclose (f) != 0;
17197 rm -f conftest
$ac_exeext
17198 if { (ac_try
="$ac_link"
17199 case "(($ac_try" in
17200 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
17201 *) ac_try_echo=$ac_try;;
17203 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17204 $as_echo "$ac_try_echo") >&5
17205 (eval "$ac_link") 2>&5
17207 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17208 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17209 { (case "(($ac_try" in
17210 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
17211 *) ac_try_echo
=$ac_try;;
17213 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
17214 $as_echo "$ac_try_echo") >&5
17215 (eval "$ac_try") 2>&5
17217 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17218 (exit $ac_status); }; }; then
17219 ac_cv_decl_EOVERFLOW
=`cat conftest.val`
17221 $as_echo "$as_me: program exited with status $ac_status" >&5
17222 $as_echo "$as_me: failed program was:" >&5
17223 sed 's/^/| /' conftest.
$ac_ext >&5
17226 rm -rf conftest.dSYM
17227 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
17232 ac_cv_decl_EOVERFLOW
=E2BIG
17237 { $as_echo "$as_me:$LINENO: result: $ac_cv_decl_EOVERFLOW" >&5
17238 $as_echo "$ac_cv_decl_EOVERFLOW" >&6; }
17239 if test "$ac_cv_decl_EOVERFLOW" != yes; then
17241 cat >>confdefs.h
<<_ACEOF
17242 #define EOVERFLOW $ac_cv_decl_EOVERFLOW
17245 EOVERFLOW
="$ac_cv_decl_EOVERFLOW"
17250 { $as_echo "$as_me:$LINENO: checking for signed" >&5
17251 $as_echo_n "checking for signed... " >&6; }
17252 if test "${bh_cv_c_signed+set}" = set; then
17253 $as_echo_n "(cached) " >&6
17255 cat >conftest.
$ac_ext <<_ACEOF
17258 cat confdefs.h
>>conftest.
$ac_ext
17259 cat >>conftest.
$ac_ext <<_ACEOF
17260 /* end confdefs.h. */
17270 rm -f conftest.
$ac_objext
17271 if { (ac_try
="$ac_compile"
17272 case "(($ac_try" in
17273 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
17274 *) ac_try_echo=$ac_try;;
17276 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17277 $as_echo "$ac_try_echo") >&5
17278 (eval "$ac_compile") 2>conftest.er1
17280 grep -v '^ *+' conftest.er1 >conftest.err
17282 cat conftest.err >&5
17283 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17284 (exit $ac_status); } && {
17285 test -z "$ac_c_werror_flag" ||
17286 test ! -s conftest.err
17287 } && test -s conftest.$ac_objext; then
17290 $as_echo "$as_me: failed program was:" >&5
17291 sed 's/^/| /' conftest.$ac_ext >&5
17296 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17298 { $as_echo "$as_me:$LINENO: result: $bh_cv_c_signed" >&5
17299 $as_echo "$bh_cv_c_signed" >&6; }
17300 if test $bh_cv_c_signed = no; then
17302 cat >>confdefs.h <<\_ACEOF
17303 #define signed /**/
17309 { $as_echo "$as_me:$LINENO: checking for wchar_t" >&5
17310 $as_echo_n "checking for wchar_t... " >&6; }
17311 if test "${gt_cv_c_wchar_t+set}" = set; then
17312 $as_echo_n "(cached) " >&6
17314 cat >conftest.$ac_ext <<_ACEOF
17317 cat confdefs.h >>conftest.$ac_ext
17318 cat >>conftest.$ac_ext <<_ACEOF
17319 /* end confdefs.h. */
17320 #include <stddef.h>
17321 wchar_t foo = (wchar_t)'\0';
17330 rm -f conftest.$ac_objext
17331 if { (ac_try="$ac_compile"
17332 case "(($ac_try" in
17333 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
17334 *) ac_try_echo
=$ac_try;;
17336 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
17337 $as_echo "$ac_try_echo") >&5
17338 (eval "$ac_compile") 2>conftest.er1
17340 grep -v '^ *+' conftest.er1
>conftest.err
17342 cat conftest.err
>&5
17343 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17344 (exit $ac_status); } && {
17345 test -z "$ac_c_werror_flag" ||
17346 test ! -s conftest.err
17347 } && test -s conftest.
$ac_objext; then
17348 gt_cv_c_wchar_t
=yes
17350 $as_echo "$as_me: failed program was:" >&5
17351 sed 's/^/| /' conftest.
$ac_ext >&5
17356 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
17358 { $as_echo "$as_me:$LINENO: result: $gt_cv_c_wchar_t" >&5
17359 $as_echo "$gt_cv_c_wchar_t" >&6; }
17360 if test $gt_cv_c_wchar_t = yes; then
17362 cat >>confdefs.h
<<\_ACEOF
17363 #define HAVE_WCHAR_T 1
17369 { $as_echo "$as_me:$LINENO: checking for wint_t" >&5
17370 $as_echo_n "checking for wint_t... " >&6; }
17371 if test "${gt_cv_c_wint_t+set}" = set; then
17372 $as_echo_n "(cached) " >&6
17374 cat >conftest.
$ac_ext <<_ACEOF
17377 cat confdefs.h
>>conftest.
$ac_ext
17378 cat >>conftest.
$ac_ext <<_ACEOF
17379 /* end confdefs.h. */
17381 wint_t foo = (wchar_t)'\0';
17390 rm -f conftest.
$ac_objext
17391 if { (ac_try
="$ac_compile"
17392 case "(($ac_try" in
17393 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
17394 *) ac_try_echo=$ac_try;;
17396 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17397 $as_echo "$ac_try_echo") >&5
17398 (eval "$ac_compile") 2>conftest.er1
17400 grep -v '^ *+' conftest.er1 >conftest.err
17402 cat conftest.err >&5
17403 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17404 (exit $ac_status); } && {
17405 test -z "$ac_c_werror_flag" ||
17406 test ! -s conftest.err
17407 } && test -s conftest.$ac_objext; then
17410 $as_echo "$as_me: failed program was:" >&5
17411 sed 's/^/| /' conftest.$ac_ext >&5
17416 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17418 { $as_echo "$as_me:$LINENO: result: $gt_cv_c_wint_t" >&5
17419 $as_echo "$gt_cv_c_wint_t" >&6; }
17420 if test $gt_cv_c_wint_t = yes; then
17422 cat >>confdefs.h <<\_ACEOF
17423 #define HAVE_WINT_T 1
17428 { $as_echo "$as_me:$LINENO: checking for size_t" >&5
17429 $as_echo_n "checking for size_t... " >&6; }
17430 if test "${ac_cv_type_size_t+set}" = set; then
17431 $as_echo_n "(cached) " >&6
17433 ac_cv_type_size_t=no
17434 cat >conftest.$ac_ext <<_ACEOF
17437 cat confdefs.h >>conftest.$ac_ext
17438 cat >>conftest.$ac_ext <<_ACEOF
17439 /* end confdefs.h. */
17440 $ac_includes_default
17444 if (sizeof (size_t))
17450 rm -f conftest.$ac_objext
17451 if { (ac_try="$ac_compile"
17452 case "(($ac_try" in
17453 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
17454 *) ac_try_echo
=$ac_try;;
17456 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
17457 $as_echo "$ac_try_echo") >&5
17458 (eval "$ac_compile") 2>conftest.er1
17460 grep -v '^ *+' conftest.er1
>conftest.err
17462 cat conftest.err
>&5
17463 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17464 (exit $ac_status); } && {
17465 test -z "$ac_c_werror_flag" ||
17466 test ! -s conftest.err
17467 } && test -s conftest.
$ac_objext; then
17468 cat >conftest.
$ac_ext <<_ACEOF
17471 cat confdefs.h
>>conftest.
$ac_ext
17472 cat >>conftest.
$ac_ext <<_ACEOF
17473 /* end confdefs.h. */
17474 $ac_includes_default
17478 if (sizeof ((size_t)))
17484 rm -f conftest.
$ac_objext
17485 if { (ac_try
="$ac_compile"
17486 case "(($ac_try" in
17487 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
17488 *) ac_try_echo=$ac_try;;
17490 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17491 $as_echo "$ac_try_echo") >&5
17492 (eval "$ac_compile") 2>conftest.er1
17494 grep -v '^ *+' conftest.er1 >conftest.err
17496 cat conftest.err >&5
17497 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17498 (exit $ac_status); } && {
17499 test -z "$ac_c_werror_flag" ||
17500 test ! -s conftest.err
17501 } && test -s conftest.$ac_objext; then
17504 $as_echo "$as_me: failed program was:" >&5
17505 sed 's/^/| /' conftest.$ac_ext >&5
17507 ac_cv_type_size_t=yes
17510 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17512 $as_echo "$as_me: failed program was:" >&5
17513 sed 's/^/| /' conftest.$ac_ext >&5
17518 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17520 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
17521 $as_echo "$ac_cv_type_size_t" >&6; }
17522 if test "x$ac_cv_type_size_t" = x""yes; then
17526 cat >>confdefs.h <<_ACEOF
17527 #define size_t unsigned int
17535 { $as_echo "$as_me:$LINENO: checking for intmax_t" >&5
17536 $as_echo_n "checking for intmax_t... " >&6; }
17537 if test "${gt_cv_c_intmax_t+set}" = set; then
17538 $as_echo_n "(cached) " >&6
17540 cat >conftest.$ac_ext <<_ACEOF
17543 cat confdefs.h >>conftest.$ac_ext
17544 cat >>conftest.$ac_ext <<_ACEOF
17545 /* end confdefs.h. */
17547 #include <stddef.h>
17548 #include <stdlib.h>
17549 #if HAVE_STDINT_H_WITH_UINTMAX
17550 #include <stdint.h>
17552 #if HAVE_INTTYPES_H_WITH_UINTMAX
17553 #include <inttypes.h>
17564 rm -f conftest.$ac_objext
17565 if { (ac_try="$ac_compile"
17566 case "(($ac_try" in
17567 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
17568 *) ac_try_echo
=$ac_try;;
17570 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
17571 $as_echo "$ac_try_echo") >&5
17572 (eval "$ac_compile") 2>conftest.er1
17574 grep -v '^ *+' conftest.er1
>conftest.err
17576 cat conftest.err
>&5
17577 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17578 (exit $ac_status); } && {
17579 test -z "$ac_c_werror_flag" ||
17580 test ! -s conftest.err
17581 } && test -s conftest.
$ac_objext; then
17582 gt_cv_c_intmax_t
=yes
17584 $as_echo "$as_me: failed program was:" >&5
17585 sed 's/^/| /' conftest.
$ac_ext >&5
17587 gt_cv_c_intmax_t
=no
17590 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
17592 { $as_echo "$as_me:$LINENO: result: $gt_cv_c_intmax_t" >&5
17593 $as_echo "$gt_cv_c_intmax_t" >&6; }
17594 if test $gt_cv_c_intmax_t = yes; then
17596 cat >>confdefs.h
<<\_ACEOF
17597 #define HAVE_INTMAX_T 1
17602 test $ac_cv_type_long_long = yes \
17603 && ac_type
='long long' \
17606 cat >>confdefs.h
<<_ACEOF
17607 #define intmax_t $ac_type
17618 if test $ac_cv_func_alloca_works = no
; then
17622 # Define an additional variable used in the Makefile substitution.
17623 if test $ac_cv_working_alloca_h = yes; then
17624 cat >conftest.
$ac_ext <<_ACEOF
17627 cat confdefs.h
>>conftest.
$ac_ext
17628 cat >>conftest.
$ac_ext <<_ACEOF
17629 /* end confdefs.h. */
17631 #if defined __GNUC__ || defined _AIX || defined _MSC_VER
17636 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17637 $EGREP "Need own alloca" >/dev
/null
2>&1; then
17639 cat >>confdefs.h
<<\_ACEOF
17640 #define HAVE_ALLOCA 1
17655 cat >>confdefs.h
<<\_ACEOF
17656 #define HAVE_ALLOCA_H 1
17668 for ac_func
in atexit
17670 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
17671 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
17672 $as_echo_n "checking for $ac_func... " >&6; }
17673 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17674 $as_echo_n "(cached) " >&6
17676 cat >conftest.
$ac_ext <<_ACEOF
17679 cat confdefs.h
>>conftest.
$ac_ext
17680 cat >>conftest.
$ac_ext <<_ACEOF
17681 /* end confdefs.h. */
17682 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17683 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17684 #define $ac_func innocuous_$ac_func
17686 /* System header to define __stub macros and hopefully few prototypes,
17687 which can conflict with char $ac_func (); below.
17688 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17689 <limits.h> exists even on freestanding compilers. */
17692 # include <limits.h>
17694 # include <assert.h>
17699 /* Override any GCC internal prototype to avoid an error.
17700 Use char because int might match the return type of a GCC
17701 builtin and then its argument prototype would still apply. */
17706 /* The GNU C library defines this for functions which it implements
17707 to always fail with ENOSYS. Some functions are actually named
17708 something starting with __ and the normal name is an alias. */
17709 #if defined __stub_$ac_func || defined __stub___$ac_func
17716 return $ac_func ();
17721 rm -f conftest.
$ac_objext conftest
$ac_exeext
17722 if { (ac_try
="$ac_link"
17723 case "(($ac_try" in
17724 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
17725 *) ac_try_echo=$ac_try;;
17727 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17728 $as_echo "$ac_try_echo") >&5
17729 (eval "$ac_link") 2>conftest.er1
17731 grep -v '^ *+' conftest.er1 >conftest.err
17733 cat conftest.err >&5
17734 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17735 (exit $ac_status); } && {
17736 test -z "$ac_c_werror_flag" ||
17737 test ! -s conftest.err
17738 } && test -s conftest$ac_exeext && {
17739 test "$cross_compiling" = yes ||
17740 $as_test_x conftest$ac_exeext
17742 eval "$as_ac_var=yes"
17744 $as_echo "$as_me: failed program was:" >&5
17745 sed 's/^/| /' conftest.$ac_ext >&5
17747 eval "$as_ac_var=no"
17750 rm -rf conftest.dSYM
17751 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17752 conftest$ac_exeext conftest.$ac_ext
17754 ac_res=`eval 'as_val=${'$as_ac_var'}
17755 $as_echo "$as_val"'`
17756 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
17757 $as_echo "$ac_res" >&6; }
17758 as_val=`eval 'as_val=${'$as_ac_var'}
17759 $as_echo "$as_val"'`
17760 if test "x$as_val" = x""yes; then
17761 cat >>confdefs.h <<_ACEOF
17762 #define `$as_echo "HAVE_$ac_func" |
$as_tr_cpp` 1
17766 case " $LIBOBJS " in
17767 *" $ac_func.$ac_objext "* ) ;;
17768 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
17776 if test $ac_cv_func_atexit = no; then
17784 case " $LIBOBJS " in
17785 *" canon-host.$ac_objext "* ) ;;
17786 *) LIBOBJS="$LIBOBJS canon-host.$ac_objext"
17796 case " $LIBOBJS " in
17797 *" canonicalize.$ac_objext "* ) ;;
17798 *) LIBOBJS="$LIBOBJS canonicalize.$ac_objext"
17806 for ac_header in string.h sys/param.h
17808 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" |
$as_tr_sh`
17809 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17810 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
17811 $as_echo_n "checking for $ac_header... " >&6; }
17812 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17813 $as_echo_n "(cached) " >&6
17815 ac_res=`eval 'as_val=${'$as_ac_Header'}
17816 $as_echo "$as_val"'`
17817 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
17818 $as_echo "$ac_res" >&6; }
17820 # Is the header compilable?
17821 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
17822 $as_echo_n "checking $ac_header usability... " >&6; }
17823 cat >conftest.$ac_ext <<_ACEOF
17826 cat confdefs.h >>conftest.$ac_ext
17827 cat >>conftest.$ac_ext <<_ACEOF
17828 /* end confdefs.h. */
17829 $ac_includes_default
17830 #include <$ac_header>
17832 rm -f conftest.$ac_objext
17833 if { (ac_try="$ac_compile"
17834 case "(($ac_try" in
17835 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
17836 *) ac_try_echo
=$ac_try;;
17838 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
17839 $as_echo "$ac_try_echo") >&5
17840 (eval "$ac_compile") 2>conftest.er1
17842 grep -v '^ *+' conftest.er1
>conftest.err
17844 cat conftest.err
>&5
17845 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17846 (exit $ac_status); } && {
17847 test -z "$ac_c_werror_flag" ||
17848 test ! -s conftest.err
17849 } && test -s conftest.
$ac_objext; then
17850 ac_header_compiler
=yes
17852 $as_echo "$as_me: failed program was:" >&5
17853 sed 's/^/| /' conftest.
$ac_ext >&5
17855 ac_header_compiler
=no
17858 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
17859 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17860 $as_echo "$ac_header_compiler" >&6; }
17862 # Is the header present?
17863 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
17864 $as_echo_n "checking $ac_header presence... " >&6; }
17865 cat >conftest.
$ac_ext <<_ACEOF
17868 cat confdefs.h
>>conftest.
$ac_ext
17869 cat >>conftest.
$ac_ext <<_ACEOF
17870 /* end confdefs.h. */
17871 #include <$ac_header>
17873 if { (ac_try
="$ac_cpp conftest.$ac_ext"
17874 case "(($ac_try" in
17875 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
17876 *) ac_try_echo=$ac_try;;
17878 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17879 $as_echo "$ac_try_echo") >&5
17880 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17882 grep -v '^ *+' conftest.er1 >conftest.err
17884 cat conftest.err >&5
17885 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17886 (exit $ac_status); } >/dev/null && {
17887 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17888 test ! -s conftest.err
17890 ac_header_preproc=yes
17892 $as_echo "$as_me: failed program was:" >&5
17893 sed 's/^/| /' conftest.$ac_ext >&5
17895 ac_header_preproc=no
17898 rm -f conftest.err conftest.$ac_ext
17899 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17900 $as_echo "$ac_header_preproc" >&6; }
17902 # So? What about this header?
17903 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17905 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17906 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17907 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17908 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17909 ac_header_preproc=yes
17912 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17913 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17914 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17915 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17916 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17917 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17918 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17919 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
17920 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17921 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17922 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17923 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17925 ## --------------------------------- ##
17926 ## Report this to bug-cvs@nongnu.org ##
17927 ## --------------------------------- ##
17929 ) | sed "s/^/$as_me: WARNING: /" >&2
17932 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
17933 $as_echo_n "checking for $ac_header... " >&6; }
17934 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17935 $as_echo_n "(cached) " >&6
17937 eval "$as_ac_Header=\$ac_header_preproc"
17939 ac_res=`eval 'as_val=${'$as_ac_Header'}
17940 $as_echo "$as_val"'`
17941 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
17942 $as_echo "$ac_res" >&6; }
17945 as_val=`eval 'as_val=${'$as_ac_Header'}
17946 $as_echo "$as_val"'`
17947 if test "x$as_val" = x""yes; then
17948 cat >>confdefs.h <<_ACEOF
17949 #define `$as_echo "HAVE_$ac_header" |
$as_tr_cpp` 1
17958 for ac_func in resolvepath canonicalize_file_name
17960 as_ac_var=`$as_echo "ac_cv_func_$ac_func" |
$as_tr_sh`
17961 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
17962 $as_echo_n "checking for $ac_func... " >&6; }
17963 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17964 $as_echo_n "(cached) " >&6
17966 cat >conftest.$ac_ext <<_ACEOF
17969 cat confdefs.h >>conftest.$ac_ext
17970 cat >>conftest.$ac_ext <<_ACEOF
17971 /* end confdefs.h. */
17972 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17973 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17974 #define $ac_func innocuous_$ac_func
17976 /* System header to define __stub macros and hopefully few prototypes,
17977 which can conflict with char $ac_func (); below.
17978 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17979 <limits.h> exists even on freestanding compilers. */
17982 # include <limits.h>
17984 # include <assert.h>
17989 /* Override any GCC internal prototype to avoid an error.
17990 Use char because int might match the return type of a GCC
17991 builtin and then its argument prototype would still apply. */
17996 /* The GNU C library defines this for functions which it implements
17997 to always fail with ENOSYS. Some functions are actually named
17998 something starting with __ and the normal name is an alias. */
17999 #if defined __stub_$ac_func || defined __stub___$ac_func
18006 return $ac_func ();
18011 rm -f conftest.$ac_objext conftest$ac_exeext
18012 if { (ac_try="$ac_link"
18013 case "(($ac_try" in
18014 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
18015 *) ac_try_echo
=$ac_try;;
18017 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
18018 $as_echo "$ac_try_echo") >&5
18019 (eval "$ac_link") 2>conftest.er1
18021 grep -v '^ *+' conftest.er1
>conftest.err
18023 cat conftest.err
>&5
18024 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18025 (exit $ac_status); } && {
18026 test -z "$ac_c_werror_flag" ||
18027 test ! -s conftest.err
18028 } && test -s conftest
$ac_exeext && {
18029 test "$cross_compiling" = yes ||
18030 $as_test_x conftest
$ac_exeext
18032 eval "$as_ac_var=yes"
18034 $as_echo "$as_me: failed program was:" >&5
18035 sed 's/^/| /' conftest.
$ac_ext >&5
18037 eval "$as_ac_var=no"
18040 rm -rf conftest.dSYM
18041 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
18042 conftest
$ac_exeext conftest.
$ac_ext
18044 ac_res
=`eval 'as_val=${'$as_ac_var'}
18045 $as_echo "$as_val"'`
18046 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
18047 $as_echo "$ac_res" >&6; }
18048 as_val
=`eval 'as_val=${'$as_ac_var'}
18049 $as_echo "$as_val"'`
18050 if test "x$as_val" = x
""yes; then
18051 cat >>confdefs.h
<<_ACEOF
18052 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
18061 { $as_echo "$as_me:$LINENO: checking whether this system has a definition of PATH_MAX" >&5
18062 $as_echo_n "checking whether this system has a definition of PATH_MAX... " >&6; }
18063 if test "${gl_have_path_max_definition+set}" = set; then
18064 $as_echo_n "(cached) " >&6
18066 cat >conftest.
$ac_ext <<_ACEOF
18069 cat confdefs.h
>>conftest.
$ac_ext
18070 cat >>conftest.
$ac_ext <<_ACEOF
18071 /* end confdefs.h. */
18072 #include <unistd.h>
18073 #include <limits.h>
18075 have_path_max_definition
18078 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18079 $EGREP "have_path_max_definition" >/dev
/null
2>&1; then
18080 gl_have_path_max_definition
=yes
18082 gl_have_path_max_definition
=no
18087 { $as_echo "$as_me:$LINENO: result: $gl_have_path_max_definition" >&5
18088 $as_echo "$gl_have_path_max_definition" >&6; }
18090 if test $gl_have_path_max_definition; then
18091 case " $LIBOBJS " in
18092 *" chdir-long.$ac_objext "* ) ;;
18093 *) LIBOBJS
="$LIBOBJS chdir-long.$ac_objext"
18101 # Define two additional variables used in the Makefile substitution.
18103 if test "$ac_cv_header_stdbool_h" = yes; then
18106 STDBOOL_H
='stdbool.h'
18110 if test "$ac_cv_type__Bool" = yes; then
18123 for ac_func
in mempcpy
18125 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
18126 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
18127 $as_echo_n "checking for $ac_func... " >&6; }
18128 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18129 $as_echo_n "(cached) " >&6
18131 cat >conftest.
$ac_ext <<_ACEOF
18134 cat confdefs.h
>>conftest.
$ac_ext
18135 cat >>conftest.
$ac_ext <<_ACEOF
18136 /* end confdefs.h. */
18137 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18138 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18139 #define $ac_func innocuous_$ac_func
18141 /* System header to define __stub macros and hopefully few prototypes,
18142 which can conflict with char $ac_func (); below.
18143 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18144 <limits.h> exists even on freestanding compilers. */
18147 # include <limits.h>
18149 # include <assert.h>
18154 /* Override any GCC internal prototype to avoid an error.
18155 Use char because int might match the return type of a GCC
18156 builtin and then its argument prototype would still apply. */
18161 /* The GNU C library defines this for functions which it implements
18162 to always fail with ENOSYS. Some functions are actually named
18163 something starting with __ and the normal name is an alias. */
18164 #if defined __stub_$ac_func || defined __stub___$ac_func
18171 return $ac_func ();
18176 rm -f conftest.
$ac_objext conftest
$ac_exeext
18177 if { (ac_try
="$ac_link"
18178 case "(($ac_try" in
18179 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
18180 *) ac_try_echo=$ac_try;;
18182 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18183 $as_echo "$ac_try_echo") >&5
18184 (eval "$ac_link") 2>conftest.er1
18186 grep -v '^ *+' conftest.er1 >conftest.err
18188 cat conftest.err >&5
18189 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18190 (exit $ac_status); } && {
18191 test -z "$ac_c_werror_flag" ||
18192 test ! -s conftest.err
18193 } && test -s conftest$ac_exeext && {
18194 test "$cross_compiling" = yes ||
18195 $as_test_x conftest$ac_exeext
18197 eval "$as_ac_var=yes"
18199 $as_echo "$as_me: failed program was:" >&5
18200 sed 's/^/| /' conftest.$ac_ext >&5
18202 eval "$as_ac_var=no"
18205 rm -rf conftest.dSYM
18206 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18207 conftest$ac_exeext conftest.$ac_ext
18209 ac_res=`eval 'as_val=${'$as_ac_var'}
18210 $as_echo "$as_val"'`
18211 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
18212 $as_echo "$ac_res" >&6; }
18213 as_val=`eval 'as_val=${'$as_ac_var'}
18214 $as_echo "$as_val"'`
18215 if test "x$as_val" = x""yes; then
18216 cat >>confdefs.h <<_ACEOF
18217 #define `$as_echo "HAVE_$ac_func" |
$as_tr_cpp` 1
18221 case " $LIBOBJS " in
18222 *" $ac_func.$ac_objext "* ) ;;
18223 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
18231 if test $ac_cv_func_mempcpy = no; then
18241 for ac_func in openat
18243 as_ac_var=`$as_echo "ac_cv_func_$ac_func" |
$as_tr_sh`
18244 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
18245 $as_echo_n "checking for $ac_func... " >&6; }
18246 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18247 $as_echo_n "(cached) " >&6
18249 cat >conftest.$ac_ext <<_ACEOF
18252 cat confdefs.h >>conftest.$ac_ext
18253 cat >>conftest.$ac_ext <<_ACEOF
18254 /* end confdefs.h. */
18255 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18256 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18257 #define $ac_func innocuous_$ac_func
18259 /* System header to define __stub macros and hopefully few prototypes,
18260 which can conflict with char $ac_func (); below.
18261 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18262 <limits.h> exists even on freestanding compilers. */
18265 # include <limits.h>
18267 # include <assert.h>
18272 /* Override any GCC internal prototype to avoid an error.
18273 Use char because int might match the return type of a GCC
18274 builtin and then its argument prototype would still apply. */
18279 /* The GNU C library defines this for functions which it implements
18280 to always fail with ENOSYS. Some functions are actually named
18281 something starting with __ and the normal name is an alias. */
18282 #if defined __stub_$ac_func || defined __stub___$ac_func
18289 return $ac_func ();
18294 rm -f conftest.$ac_objext conftest$ac_exeext
18295 if { (ac_try="$ac_link"
18296 case "(($ac_try" in
18297 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
18298 *) ac_try_echo
=$ac_try;;
18300 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
18301 $as_echo "$ac_try_echo") >&5
18302 (eval "$ac_link") 2>conftest.er1
18304 grep -v '^ *+' conftest.er1
>conftest.err
18306 cat conftest.err
>&5
18307 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18308 (exit $ac_status); } && {
18309 test -z "$ac_c_werror_flag" ||
18310 test ! -s conftest.err
18311 } && test -s conftest
$ac_exeext && {
18312 test "$cross_compiling" = yes ||
18313 $as_test_x conftest
$ac_exeext
18315 eval "$as_ac_var=yes"
18317 $as_echo "$as_me: failed program was:" >&5
18318 sed 's/^/| /' conftest.
$ac_ext >&5
18320 eval "$as_ac_var=no"
18323 rm -rf conftest.dSYM
18324 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
18325 conftest
$ac_exeext conftest.
$ac_ext
18327 ac_res
=`eval 'as_val=${'$as_ac_var'}
18328 $as_echo "$as_val"'`
18329 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
18330 $as_echo "$ac_res" >&6; }
18331 as_val
=`eval 'as_val=${'$as_ac_var'}
18332 $as_echo "$as_val"'`
18333 if test "x$as_val" = x
""yes; then
18334 cat >>confdefs.h
<<_ACEOF
18335 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
18339 case " $LIBOBJS " in
18340 *" $ac_func.$ac_objext "* ) ;;
18341 *) LIBOBJS
="$LIBOBJS $ac_func.$ac_objext"
18349 case $ac_cv_func_openat in
18353 cat >>confdefs.h
<<\_ACEOF
18354 #define __OPENAT_PREFIX rpl_
18376 for ac_func
in memrchr
18378 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
18379 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
18380 $as_echo_n "checking for $ac_func... " >&6; }
18381 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18382 $as_echo_n "(cached) " >&6
18384 cat >conftest.
$ac_ext <<_ACEOF
18387 cat confdefs.h
>>conftest.
$ac_ext
18388 cat >>conftest.
$ac_ext <<_ACEOF
18389 /* end confdefs.h. */
18390 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18391 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18392 #define $ac_func innocuous_$ac_func
18394 /* System header to define __stub macros and hopefully few prototypes,
18395 which can conflict with char $ac_func (); below.
18396 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18397 <limits.h> exists even on freestanding compilers. */
18400 # include <limits.h>
18402 # include <assert.h>
18407 /* Override any GCC internal prototype to avoid an error.
18408 Use char because int might match the return type of a GCC
18409 builtin and then its argument prototype would still apply. */
18414 /* The GNU C library defines this for functions which it implements
18415 to always fail with ENOSYS. Some functions are actually named
18416 something starting with __ and the normal name is an alias. */
18417 #if defined __stub_$ac_func || defined __stub___$ac_func
18424 return $ac_func ();
18429 rm -f conftest.
$ac_objext conftest
$ac_exeext
18430 if { (ac_try
="$ac_link"
18431 case "(($ac_try" in
18432 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
18433 *) ac_try_echo=$ac_try;;
18435 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18436 $as_echo "$ac_try_echo") >&5
18437 (eval "$ac_link") 2>conftest.er1
18439 grep -v '^ *+' conftest.er1 >conftest.err
18441 cat conftest.err >&5
18442 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18443 (exit $ac_status); } && {
18444 test -z "$ac_c_werror_flag" ||
18445 test ! -s conftest.err
18446 } && test -s conftest$ac_exeext && {
18447 test "$cross_compiling" = yes ||
18448 $as_test_x conftest$ac_exeext
18450 eval "$as_ac_var=yes"
18452 $as_echo "$as_me: failed program was:" >&5
18453 sed 's/^/| /' conftest.$ac_ext >&5
18455 eval "$as_ac_var=no"
18458 rm -rf conftest.dSYM
18459 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18460 conftest$ac_exeext conftest.$ac_ext
18462 ac_res=`eval 'as_val=${'$as_ac_var'}
18463 $as_echo "$as_val"'`
18464 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
18465 $as_echo "$ac_res" >&6; }
18466 as_val=`eval 'as_val=${'$as_ac_var'}
18467 $as_echo "$as_val"'`
18468 if test "x$as_val" = x""yes; then
18469 cat >>confdefs.h <<_ACEOF
18470 #define `$as_echo "HAVE_$ac_func" |
$as_tr_cpp` 1
18474 case " $LIBOBJS " in
18475 *" $ac_func.$ac_objext "* ) ;;
18476 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
18484 if test $ac_cv_func_memrchr = no; then
18493 case " $LIBOBJS " in
18494 *" closeout.$ac_objext "* ) ;;
18495 *) LIBOBJS="$LIBOBJS closeout.$ac_objext"
18504 case " $LIBOBJS " in
18505 *" dirname.$ac_objext "* ) ;;
18506 *) LIBOBJS="$LIBOBJS dirname.$ac_objext"
18516 for ac_func in dup2
18518 as_ac_var=`$as_echo "ac_cv_func_$ac_func" |
$as_tr_sh`
18519 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
18520 $as_echo_n "checking for $ac_func... " >&6; }
18521 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18522 $as_echo_n "(cached) " >&6
18524 cat >conftest.$ac_ext <<_ACEOF
18527 cat confdefs.h >>conftest.$ac_ext
18528 cat >>conftest.$ac_ext <<_ACEOF
18529 /* end confdefs.h. */
18530 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18531 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18532 #define $ac_func innocuous_$ac_func
18534 /* System header to define __stub macros and hopefully few prototypes,
18535 which can conflict with char $ac_func (); below.
18536 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18537 <limits.h> exists even on freestanding compilers. */
18540 # include <limits.h>
18542 # include <assert.h>
18547 /* Override any GCC internal prototype to avoid an error.
18548 Use char because int might match the return type of a GCC
18549 builtin and then its argument prototype would still apply. */
18554 /* The GNU C library defines this for functions which it implements
18555 to always fail with ENOSYS. Some functions are actually named
18556 something starting with __ and the normal name is an alias. */
18557 #if defined __stub_$ac_func || defined __stub___$ac_func
18564 return $ac_func ();
18569 rm -f conftest.$ac_objext conftest$ac_exeext
18570 if { (ac_try="$ac_link"
18571 case "(($ac_try" in
18572 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
18573 *) ac_try_echo
=$ac_try;;
18575 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
18576 $as_echo "$ac_try_echo") >&5
18577 (eval "$ac_link") 2>conftest.er1
18579 grep -v '^ *+' conftest.er1
>conftest.err
18581 cat conftest.err
>&5
18582 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18583 (exit $ac_status); } && {
18584 test -z "$ac_c_werror_flag" ||
18585 test ! -s conftest.err
18586 } && test -s conftest
$ac_exeext && {
18587 test "$cross_compiling" = yes ||
18588 $as_test_x conftest
$ac_exeext
18590 eval "$as_ac_var=yes"
18592 $as_echo "$as_me: failed program was:" >&5
18593 sed 's/^/| /' conftest.
$ac_ext >&5
18595 eval "$as_ac_var=no"
18598 rm -rf conftest.dSYM
18599 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
18600 conftest
$ac_exeext conftest.
$ac_ext
18602 ac_res
=`eval 'as_val=${'$as_ac_var'}
18603 $as_echo "$as_val"'`
18604 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
18605 $as_echo "$ac_res" >&6; }
18606 as_val
=`eval 'as_val=${'$as_ac_var'}
18607 $as_echo "$as_val"'`
18608 if test "x$as_val" = x
""yes; then
18609 cat >>confdefs.h
<<_ACEOF
18610 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
18614 case " $LIBOBJS " in
18615 *" $ac_func.$ac_objext "* ) ;;
18616 *) LIBOBJS
="$LIBOBJS $ac_func.$ac_objext"
18624 if test $ac_cv_func_dup2 = no
; then
18644 case " $LIBOBJS " in
18645 *" exitfail.$ac_objext "* ) ;;
18646 *) LIBOBJS
="$LIBOBJS exitfail.$ac_objext"
18655 case " $LIBOBJS " in
18656 *" filenamecat.$ac_objext "* ) ;;
18657 *) LIBOBJS
="$LIBOBJS filenamecat.$ac_objext"
18670 # No macro. You should also use one of fnmatch-posix or fnmatch-gnu.
18673 { $as_echo "$as_me:$LINENO: checking for working POSIX fnmatch" >&5
18674 $as_echo_n "checking for working POSIX fnmatch... " >&6; }
18675 if test "${ac_cv_func_fnmatch_posix+set}" = set; then
18676 $as_echo_n "(cached) " >&6
18678 if test "$cross_compiling" = yes; then
18679 ac_cv_func_fnmatch_posix
=cross
18681 cat >conftest.
$ac_ext <<_ACEOF
18684 cat confdefs.h
>>conftest.
$ac_ext
18685 cat >>conftest.
$ac_ext <<_ACEOF
18686 /* end confdefs.h. */
18688 # include <stdlib.h>
18689 # include <fnmatch.h>
18690 # define y(a, b, c) (fnmatch (a, b, c) == 0)
18691 # define n(a, b, c) (fnmatch (a, b, c) == FNM_NOMATCH)
18697 (!(y ("a*", "abc", 0)
18698 && n ("d*/*1", "d/s/1", FNM_PATHNAME)
18699 && y ("a\\\\bc", "abc", 0)
18700 && n ("a\\\\bc", "abc", FNM_NOESCAPE)
18701 && y ("*x", ".x", 0)
18702 && n ("*x", ".x", FNM_PERIOD)
18708 rm -f conftest
$ac_exeext
18709 if { (ac_try
="$ac_link"
18710 case "(($ac_try" in
18711 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
18712 *) ac_try_echo=$ac_try;;
18714 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18715 $as_echo "$ac_try_echo") >&5
18716 (eval "$ac_link") 2>&5
18718 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18719 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18720 { (case "(($ac_try" in
18721 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
18722 *) ac_try_echo
=$ac_try;;
18724 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
18725 $as_echo "$ac_try_echo") >&5
18726 (eval "$ac_try") 2>&5
18728 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18729 (exit $ac_status); }; }; then
18730 ac_cv_func_fnmatch_posix
=yes
18732 $as_echo "$as_me: program exited with status $ac_status" >&5
18733 $as_echo "$as_me: failed program was:" >&5
18734 sed 's/^/| /' conftest.
$ac_ext >&5
18736 ( exit $ac_status )
18737 ac_cv_func_fnmatch_posix
=no
18739 rm -rf conftest.dSYM
18740 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
18745 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_fnmatch_posix" >&5
18746 $as_echo "$ac_cv_func_fnmatch_posix" >&6; }
18747 if test $ac_cv_func_fnmatch_posix = yes; then
18748 rm -f lib
/fnmatch.h
18750 { $as_echo "$as_me:$LINENO: checking whether getenv is declared" >&5
18751 $as_echo_n "checking whether getenv is declared... " >&6; }
18752 if test "${ac_cv_have_decl_getenv+set}" = set; then
18753 $as_echo_n "(cached) " >&6
18755 cat >conftest.
$ac_ext <<_ACEOF
18758 cat confdefs.h
>>conftest.
$ac_ext
18759 cat >>conftest.
$ac_ext <<_ACEOF
18760 /* end confdefs.h. */
18761 $ac_includes_default
18773 rm -f conftest.
$ac_objext
18774 if { (ac_try
="$ac_compile"
18775 case "(($ac_try" in
18776 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
18777 *) ac_try_echo=$ac_try;;
18779 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18780 $as_echo "$ac_try_echo") >&5
18781 (eval "$ac_compile") 2>conftest.er1
18783 grep -v '^ *+' conftest.er1 >conftest.err
18785 cat conftest.err >&5
18786 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18787 (exit $ac_status); } && {
18788 test -z "$ac_c_werror_flag" ||
18789 test ! -s conftest.err
18790 } && test -s conftest.$ac_objext; then
18791 ac_cv_have_decl_getenv=yes
18793 $as_echo "$as_me: failed program was:" >&5
18794 sed 's/^/| /' conftest.$ac_ext >&5
18796 ac_cv_have_decl_getenv=no
18799 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18801 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_getenv" >&5
18802 $as_echo "$ac_cv_have_decl_getenv" >&6; }
18803 if test "x$ac_cv_have_decl_getenv" = x""yes; then
18805 cat >>confdefs.h <<_ACEOF
18806 #define HAVE_DECL_GETENV 1
18811 cat >>confdefs.h <<_ACEOF
18812 #define HAVE_DECL_GETENV 0
18825 for ac_func in btowc mbsrtowcs mempcpy wmemchr wmemcpy wmempcpy
18827 as_ac_var=`$as_echo "ac_cv_func_$ac_func" |
$as_tr_sh`
18828 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
18829 $as_echo_n "checking for $ac_func... " >&6; }
18830 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18831 $as_echo_n "(cached) " >&6
18833 cat >conftest.$ac_ext <<_ACEOF
18836 cat confdefs.h >>conftest.$ac_ext
18837 cat >>conftest.$ac_ext <<_ACEOF
18838 /* end confdefs.h. */
18839 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18840 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18841 #define $ac_func innocuous_$ac_func
18843 /* System header to define __stub macros and hopefully few prototypes,
18844 which can conflict with char $ac_func (); below.
18845 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18846 <limits.h> exists even on freestanding compilers. */
18849 # include <limits.h>
18851 # include <assert.h>
18856 /* Override any GCC internal prototype to avoid an error.
18857 Use char because int might match the return type of a GCC
18858 builtin and then its argument prototype would still apply. */
18863 /* The GNU C library defines this for functions which it implements
18864 to always fail with ENOSYS. Some functions are actually named
18865 something starting with __ and the normal name is an alias. */
18866 #if defined __stub_$ac_func || defined __stub___$ac_func
18873 return $ac_func ();
18878 rm -f conftest.$ac_objext conftest$ac_exeext
18879 if { (ac_try="$ac_link"
18880 case "(($ac_try" in
18881 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
18882 *) ac_try_echo
=$ac_try;;
18884 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
18885 $as_echo "$ac_try_echo") >&5
18886 (eval "$ac_link") 2>conftest.er1
18888 grep -v '^ *+' conftest.er1
>conftest.err
18890 cat conftest.err
>&5
18891 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18892 (exit $ac_status); } && {
18893 test -z "$ac_c_werror_flag" ||
18894 test ! -s conftest.err
18895 } && test -s conftest
$ac_exeext && {
18896 test "$cross_compiling" = yes ||
18897 $as_test_x conftest
$ac_exeext
18899 eval "$as_ac_var=yes"
18901 $as_echo "$as_me: failed program was:" >&5
18902 sed 's/^/| /' conftest.
$ac_ext >&5
18904 eval "$as_ac_var=no"
18907 rm -rf conftest.dSYM
18908 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
18909 conftest
$ac_exeext conftest.
$ac_ext
18911 ac_res
=`eval 'as_val=${'$as_ac_var'}
18912 $as_echo "$as_val"'`
18913 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
18914 $as_echo "$ac_res" >&6; }
18915 as_val
=`eval 'as_val=${'$as_ac_var'}
18916 $as_echo "$as_val"'`
18917 if test "x$as_val" = x
""yes; then
18918 cat >>confdefs.h
<<_ACEOF
18919 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
18927 for ac_header
in wchar.h wctype.h
18929 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
18930 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18931 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
18932 $as_echo_n "checking for $ac_header... " >&6; }
18933 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18934 $as_echo_n "(cached) " >&6
18936 ac_res
=`eval 'as_val=${'$as_ac_Header'}
18937 $as_echo "$as_val"'`
18938 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
18939 $as_echo "$ac_res" >&6; }
18941 # Is the header compilable?
18942 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
18943 $as_echo_n "checking $ac_header usability... " >&6; }
18944 cat >conftest.
$ac_ext <<_ACEOF
18947 cat confdefs.h
>>conftest.
$ac_ext
18948 cat >>conftest.
$ac_ext <<_ACEOF
18949 /* end confdefs.h. */
18950 $ac_includes_default
18951 #include <$ac_header>
18953 rm -f conftest.
$ac_objext
18954 if { (ac_try
="$ac_compile"
18955 case "(($ac_try" in
18956 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
18957 *) ac_try_echo=$ac_try;;
18959 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18960 $as_echo "$ac_try_echo") >&5
18961 (eval "$ac_compile") 2>conftest.er1
18963 grep -v '^ *+' conftest.er1 >conftest.err
18965 cat conftest.err >&5
18966 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18967 (exit $ac_status); } && {
18968 test -z "$ac_c_werror_flag" ||
18969 test ! -s conftest.err
18970 } && test -s conftest.$ac_objext; then
18971 ac_header_compiler=yes
18973 $as_echo "$as_me: failed program was:" >&5
18974 sed 's/^/| /' conftest.$ac_ext >&5
18976 ac_header_compiler=no
18979 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18980 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18981 $as_echo "$ac_header_compiler" >&6; }
18983 # Is the header present?
18984 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
18985 $as_echo_n "checking $ac_header presence... " >&6; }
18986 cat >conftest.$ac_ext <<_ACEOF
18989 cat confdefs.h >>conftest.$ac_ext
18990 cat >>conftest.$ac_ext <<_ACEOF
18991 /* end confdefs.h. */
18992 #include <$ac_header>
18994 if { (ac_try="$ac_cpp conftest.$ac_ext"
18995 case "(($ac_try" in
18996 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
18997 *) ac_try_echo
=$ac_try;;
18999 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
19000 $as_echo "$ac_try_echo") >&5
19001 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19003 grep -v '^ *+' conftest.er1
>conftest.err
19005 cat conftest.err
>&5
19006 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19007 (exit $ac_status); } >/dev
/null
&& {
19008 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19009 test ! -s conftest.err
19011 ac_header_preproc
=yes
19013 $as_echo "$as_me: failed program was:" >&5
19014 sed 's/^/| /' conftest.
$ac_ext >&5
19016 ac_header_preproc
=no
19019 rm -f conftest.err conftest.
$ac_ext
19020 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19021 $as_echo "$ac_header_preproc" >&6; }
19023 # So? What about this header?
19024 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19026 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19027 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19028 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19029 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19030 ac_header_preproc
=yes
19033 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19034 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19035 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19036 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19037 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19038 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19039 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19040 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19041 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19042 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19043 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19044 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19046 ## --------------------------------- ##
19047 ## Report this to bug-cvs@nongnu.org ##
19048 ## --------------------------------- ##
19050 ) |
sed "s/^/$as_me: WARNING: /" >&2
19053 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
19054 $as_echo_n "checking for $ac_header... " >&6; }
19055 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19056 $as_echo_n "(cached) " >&6
19058 eval "$as_ac_Header=\$ac_header_preproc"
19060 ac_res
=`eval 'as_val=${'$as_ac_Header'}
19061 $as_echo "$as_val"'`
19062 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
19063 $as_echo "$ac_res" >&6; }
19066 as_val
=`eval 'as_val=${'$as_ac_Header'}
19067 $as_echo "$as_val"'`
19068 if test "x$as_val" = x
""yes; then
19069 cat >>confdefs.h
<<_ACEOF
19070 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
19077 case " $LIBOBJS " in
19078 *" fnmatch.$ac_objext "* ) ;;
19079 *) LIBOBJS
="$LIBOBJS fnmatch.$ac_objext"
19083 FNMATCH_H
=fnmatch.h
19088 if test $ac_cv_func_fnmatch_posix != yes; then
19090 cat >>confdefs.h
<<\_ACEOF
19091 #define fnmatch posix_fnmatch
19101 for ac_header
in stdio_ext.h
19103 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
19104 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19105 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
19106 $as_echo_n "checking for $ac_header... " >&6; }
19107 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19108 $as_echo_n "(cached) " >&6
19110 ac_res
=`eval 'as_val=${'$as_ac_Header'}
19111 $as_echo "$as_val"'`
19112 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
19113 $as_echo "$ac_res" >&6; }
19115 # Is the header compilable?
19116 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
19117 $as_echo_n "checking $ac_header usability... " >&6; }
19118 cat >conftest.
$ac_ext <<_ACEOF
19121 cat confdefs.h
>>conftest.
$ac_ext
19122 cat >>conftest.
$ac_ext <<_ACEOF
19123 /* end confdefs.h. */
19124 $ac_includes_default
19125 #include <$ac_header>
19127 rm -f conftest.
$ac_objext
19128 if { (ac_try
="$ac_compile"
19129 case "(($ac_try" in
19130 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
19131 *) ac_try_echo=$ac_try;;
19133 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19134 $as_echo "$ac_try_echo") >&5
19135 (eval "$ac_compile") 2>conftest.er1
19137 grep -v '^ *+' conftest.er1 >conftest.err
19139 cat conftest.err >&5
19140 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19141 (exit $ac_status); } && {
19142 test -z "$ac_c_werror_flag" ||
19143 test ! -s conftest.err
19144 } && test -s conftest.$ac_objext; then
19145 ac_header_compiler=yes
19147 $as_echo "$as_me: failed program was:" >&5
19148 sed 's/^/| /' conftest.$ac_ext >&5
19150 ac_header_compiler=no
19153 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19154 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19155 $as_echo "$ac_header_compiler" >&6; }
19157 # Is the header present?
19158 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
19159 $as_echo_n "checking $ac_header presence... " >&6; }
19160 cat >conftest.$ac_ext <<_ACEOF
19163 cat confdefs.h >>conftest.$ac_ext
19164 cat >>conftest.$ac_ext <<_ACEOF
19165 /* end confdefs.h. */
19166 #include <$ac_header>
19168 if { (ac_try="$ac_cpp conftest.$ac_ext"
19169 case "(($ac_try" in
19170 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
19171 *) ac_try_echo
=$ac_try;;
19173 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
19174 $as_echo "$ac_try_echo") >&5
19175 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19177 grep -v '^ *+' conftest.er1
>conftest.err
19179 cat conftest.err
>&5
19180 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19181 (exit $ac_status); } >/dev
/null
&& {
19182 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19183 test ! -s conftest.err
19185 ac_header_preproc
=yes
19187 $as_echo "$as_me: failed program was:" >&5
19188 sed 's/^/| /' conftest.
$ac_ext >&5
19190 ac_header_preproc
=no
19193 rm -f conftest.err conftest.
$ac_ext
19194 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19195 $as_echo "$ac_header_preproc" >&6; }
19197 # So? What about this header?
19198 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19200 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19201 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19202 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19203 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19204 ac_header_preproc
=yes
19207 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19208 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19209 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19210 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19211 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19212 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19213 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19214 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19215 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19216 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19217 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19218 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19220 ## --------------------------------- ##
19221 ## Report this to bug-cvs@nongnu.org ##
19222 ## --------------------------------- ##
19224 ) |
sed "s/^/$as_me: WARNING: /" >&2
19227 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
19228 $as_echo_n "checking for $ac_header... " >&6; }
19229 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19230 $as_echo_n "(cached) " >&6
19232 eval "$as_ac_Header=\$ac_header_preproc"
19234 ac_res
=`eval 'as_val=${'$as_ac_Header'}
19235 $as_echo "$as_val"'`
19236 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
19237 $as_echo "$ac_res" >&6; }
19240 as_val
=`eval 'as_val=${'$as_ac_Header'}
19241 $as_echo "$as_val"'`
19242 if test "x$as_val" = x
""yes; then
19243 cat >>confdefs.h
<<_ACEOF
19244 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
19252 for ac_func
in __fpending
19254 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
19255 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
19256 $as_echo_n "checking for $ac_func... " >&6; }
19257 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19258 $as_echo_n "(cached) " >&6
19260 cat >conftest.
$ac_ext <<_ACEOF
19263 cat confdefs.h
>>conftest.
$ac_ext
19264 cat >>conftest.
$ac_ext <<_ACEOF
19265 /* end confdefs.h. */
19266 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19267 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19268 #define $ac_func innocuous_$ac_func
19270 /* System header to define __stub macros and hopefully few prototypes,
19271 which can conflict with char $ac_func (); below.
19272 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19273 <limits.h> exists even on freestanding compilers. */
19276 # include <limits.h>
19278 # include <assert.h>
19283 /* Override any GCC internal prototype to avoid an error.
19284 Use char because int might match the return type of a GCC
19285 builtin and then its argument prototype would still apply. */
19290 /* The GNU C library defines this for functions which it implements
19291 to always fail with ENOSYS. Some functions are actually named
19292 something starting with __ and the normal name is an alias. */
19293 #if defined __stub_$ac_func || defined __stub___$ac_func
19300 return $ac_func ();
19305 rm -f conftest.
$ac_objext conftest
$ac_exeext
19306 if { (ac_try
="$ac_link"
19307 case "(($ac_try" in
19308 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
19309 *) ac_try_echo=$ac_try;;
19311 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19312 $as_echo "$ac_try_echo") >&5
19313 (eval "$ac_link") 2>conftest.er1
19315 grep -v '^ *+' conftest.er1 >conftest.err
19317 cat conftest.err >&5
19318 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19319 (exit $ac_status); } && {
19320 test -z "$ac_c_werror_flag" ||
19321 test ! -s conftest.err
19322 } && test -s conftest$ac_exeext && {
19323 test "$cross_compiling" = yes ||
19324 $as_test_x conftest$ac_exeext
19326 eval "$as_ac_var=yes"
19328 $as_echo "$as_me: failed program was:" >&5
19329 sed 's/^/| /' conftest.$ac_ext >&5
19331 eval "$as_ac_var=no"
19334 rm -rf conftest.dSYM
19335 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19336 conftest$ac_exeext conftest.$ac_ext
19338 ac_res=`eval 'as_val=${'$as_ac_var'}
19339 $as_echo "$as_val"'`
19340 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
19341 $as_echo "$ac_res" >&6; }
19342 as_val=`eval 'as_val=${'$as_ac_var'}
19343 $as_echo "$as_val"'`
19344 if test "x$as_val" = x""yes; then
19345 cat >>confdefs.h <<_ACEOF
19346 #define `$as_echo "HAVE_$ac_func" |
$as_tr_cpp` 1
19350 case " $LIBOBJS " in
19351 *" $ac_func.$ac_objext "* ) ;;
19352 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
19361 # if HAVE_STDIO_EXT_H
19362 # include <stdio_ext.h>
19365 { $as_echo "$as_me:$LINENO: checking whether __fpending is declared" >&5
19366 $as_echo_n "checking whether __fpending is declared... " >&6; }
19367 if test "${ac_cv_have_decl___fpending+set}" = set; then
19368 $as_echo_n "(cached) " >&6
19370 cat >conftest.$ac_ext <<_ACEOF
19373 cat confdefs.h >>conftest.$ac_ext
19374 cat >>conftest.$ac_ext <<_ACEOF
19375 /* end confdefs.h. */
19389 rm -f conftest.$ac_objext
19390 if { (ac_try="$ac_compile"
19391 case "(($ac_try" in
19392 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
19393 *) ac_try_echo
=$ac_try;;
19395 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
19396 $as_echo "$ac_try_echo") >&5
19397 (eval "$ac_compile") 2>conftest.er1
19399 grep -v '^ *+' conftest.er1
>conftest.err
19401 cat conftest.err
>&5
19402 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19403 (exit $ac_status); } && {
19404 test -z "$ac_c_werror_flag" ||
19405 test ! -s conftest.err
19406 } && test -s conftest.
$ac_objext; then
19407 ac_cv_have_decl___fpending
=yes
19409 $as_echo "$as_me: failed program was:" >&5
19410 sed 's/^/| /' conftest.
$ac_ext >&5
19412 ac_cv_have_decl___fpending
=no
19415 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
19417 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl___fpending" >&5
19418 $as_echo "$ac_cv_have_decl___fpending" >&6; }
19419 if test "x$ac_cv_have_decl___fpending" = x
""yes; then
19421 cat >>confdefs.h
<<_ACEOF
19422 #define HAVE_DECL___FPENDING 1
19427 cat >>confdefs.h
<<_ACEOF
19428 #define HAVE_DECL___FPENDING 0
19435 if test $ac_cv_func___fpending = no
; then
19436 { $as_echo "$as_me:$LINENO: checking how to determine the number of pending output bytes on a stream" >&5
19437 $as_echo_n "checking how to determine the number of pending output bytes on a stream... " >&6; }
19438 if test "${ac_cv_sys_pending_output_n_bytes+set}" = set; then
19439 $as_echo_n "(cached) " >&6
19445 'fp->_IO_write_ptr - fp->_IO_write_base' \
19447 '# traditional Unix' \
19448 'fp->_ptr - fp->_base' \
19451 'fp->_p - fp->_bf._base' \
19453 '# SCO, Unixware' \
19454 'fp->__ptr - fp->__base' \
19457 'fp->__bufp - fp->__buffer' \
19459 '# old glibc iostream?' \
19460 'fp->_pptr - fp->_pbase' \
19463 '(*fp)->_ptr - (*fp)->_base' \
19465 '# e.g., DGUX R4.11; the info is not available' \
19469 # Skip each embedded comment.
19470 case "$ac_expr" in '#'*) continue;; esac
19472 cat >conftest.
$ac_ext <<_ACEOF
19475 cat confdefs.h
>>conftest.
$ac_ext
19476 cat >>conftest.
$ac_ext <<_ACEOF
19477 /* end confdefs.h. */
19483 FILE *fp = stdin; (void) ($ac_expr);
19488 rm -f conftest.
$ac_objext
19489 if { (ac_try
="$ac_compile"
19490 case "(($ac_try" in
19491 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
19492 *) ac_try_echo=$ac_try;;
19494 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19495 $as_echo "$ac_try_echo") >&5
19496 (eval "$ac_compile") 2>conftest.er1
19498 grep -v '^ *+' conftest.er1 >conftest.err
19500 cat conftest.err >&5
19501 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19502 (exit $ac_status); } && {
19503 test -z "$ac_c_werror_flag" ||
19504 test ! -s conftest.err
19505 } && test -s conftest.$ac_objext; then
19509 $as_echo "$as_me: failed program was:" >&5
19510 sed 's/^/| /' conftest.$ac_ext >&5
19515 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19516 test "$fp_done" = yes && break
19519 ac_cv_sys_pending_output_n_bytes=$ac_expr
19523 { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_pending_output_n_bytes" >&5
19524 $as_echo "$ac_cv_sys_pending_output_n_bytes" >&6; }
19526 cat >>confdefs.h <<_ACEOF
19527 #define PENDING_OUTPUT_N_BYTES $ac_cv_sys_pending_output_n_bytes
19534 for ac_func in ftruncate
19536 as_ac_var=`$as_echo "ac_cv_func_$ac_func" |
$as_tr_sh`
19537 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
19538 $as_echo_n "checking for $ac_func... " >&6; }
19539 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19540 $as_echo_n "(cached) " >&6
19542 cat >conftest.$ac_ext <<_ACEOF
19545 cat confdefs.h >>conftest.$ac_ext
19546 cat >>conftest.$ac_ext <<_ACEOF
19547 /* end confdefs.h. */
19548 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19549 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19550 #define $ac_func innocuous_$ac_func
19552 /* System header to define __stub macros and hopefully few prototypes,
19553 which can conflict with char $ac_func (); below.
19554 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19555 <limits.h> exists even on freestanding compilers. */
19558 # include <limits.h>
19560 # include <assert.h>
19565 /* Override any GCC internal prototype to avoid an error.
19566 Use char because int might match the return type of a GCC
19567 builtin and then its argument prototype would still apply. */
19572 /* The GNU C library defines this for functions which it implements
19573 to always fail with ENOSYS. Some functions are actually named
19574 something starting with __ and the normal name is an alias. */
19575 #if defined __stub_$ac_func || defined __stub___$ac_func
19582 return $ac_func ();
19587 rm -f conftest.$ac_objext conftest$ac_exeext
19588 if { (ac_try="$ac_link"
19589 case "(($ac_try" in
19590 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
19591 *) ac_try_echo
=$ac_try;;
19593 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
19594 $as_echo "$ac_try_echo") >&5
19595 (eval "$ac_link") 2>conftest.er1
19597 grep -v '^ *+' conftest.er1
>conftest.err
19599 cat conftest.err
>&5
19600 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19601 (exit $ac_status); } && {
19602 test -z "$ac_c_werror_flag" ||
19603 test ! -s conftest.err
19604 } && test -s conftest
$ac_exeext && {
19605 test "$cross_compiling" = yes ||
19606 $as_test_x conftest
$ac_exeext
19608 eval "$as_ac_var=yes"
19610 $as_echo "$as_me: failed program was:" >&5
19611 sed 's/^/| /' conftest.
$ac_ext >&5
19613 eval "$as_ac_var=no"
19616 rm -rf conftest.dSYM
19617 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
19618 conftest
$ac_exeext conftest.
$ac_ext
19620 ac_res
=`eval 'as_val=${'$as_ac_var'}
19621 $as_echo "$as_val"'`
19622 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
19623 $as_echo "$ac_res" >&6; }
19624 as_val
=`eval 'as_val=${'$as_ac_var'}
19625 $as_echo "$as_val"'`
19626 if test "x$as_val" = x
""yes; then
19627 cat >>confdefs.h
<<_ACEOF
19628 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
19632 case " $LIBOBJS " in
19633 *" $ac_func.$ac_objext "* ) ;;
19634 *) LIBOBJS
="$LIBOBJS $ac_func.$ac_objext"
19642 if test $ac_cv_func_ftruncate = no
; then
19652 for ac_func
in chsize
19654 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
19655 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
19656 $as_echo_n "checking for $ac_func... " >&6; }
19657 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19658 $as_echo_n "(cached) " >&6
19660 cat >conftest.
$ac_ext <<_ACEOF
19663 cat confdefs.h
>>conftest.
$ac_ext
19664 cat >>conftest.
$ac_ext <<_ACEOF
19665 /* end confdefs.h. */
19666 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19667 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19668 #define $ac_func innocuous_$ac_func
19670 /* System header to define __stub macros and hopefully few prototypes,
19671 which can conflict with char $ac_func (); below.
19672 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19673 <limits.h> exists even on freestanding compilers. */
19676 # include <limits.h>
19678 # include <assert.h>
19683 /* Override any GCC internal prototype to avoid an error.
19684 Use char because int might match the return type of a GCC
19685 builtin and then its argument prototype would still apply. */
19690 /* The GNU C library defines this for functions which it implements
19691 to always fail with ENOSYS. Some functions are actually named
19692 something starting with __ and the normal name is an alias. */
19693 #if defined __stub_$ac_func || defined __stub___$ac_func
19700 return $ac_func ();
19705 rm -f conftest.
$ac_objext conftest
$ac_exeext
19706 if { (ac_try
="$ac_link"
19707 case "(($ac_try" in
19708 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
19709 *) ac_try_echo=$ac_try;;
19711 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19712 $as_echo "$ac_try_echo") >&5
19713 (eval "$ac_link") 2>conftest.er1
19715 grep -v '^ *+' conftest.er1 >conftest.err
19717 cat conftest.err >&5
19718 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19719 (exit $ac_status); } && {
19720 test -z "$ac_c_werror_flag" ||
19721 test ! -s conftest.err
19722 } && test -s conftest$ac_exeext && {
19723 test "$cross_compiling" = yes ||
19724 $as_test_x conftest$ac_exeext
19726 eval "$as_ac_var=yes"
19728 $as_echo "$as_me: failed program was:" >&5
19729 sed 's/^/| /' conftest.$ac_ext >&5
19731 eval "$as_ac_var=no"
19734 rm -rf conftest.dSYM
19735 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19736 conftest$ac_exeext conftest.$ac_ext
19738 ac_res=`eval 'as_val=${'$as_ac_var'}
19739 $as_echo "$as_val"'`
19740 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
19741 $as_echo "$ac_res" >&6; }
19742 as_val=`eval 'as_val=${'$as_ac_var'}
19743 $as_echo "$as_val"'`
19744 if test "x$as_val" = x""yes; then
19745 cat >>confdefs.h <<_ACEOF
19746 #define `$as_echo "HAVE_$ac_func" |
$as_tr_cpp` 1
19756 { $as_echo "$as_me:$LINENO: checking for library containing getaddrinfo" >&5
19757 $as_echo_n "checking for library containing getaddrinfo... " >&6; }
19758 if test "${ac_cv_search_getaddrinfo+set}" = set; then
19759 $as_echo_n "(cached) " >&6
19761 ac_func_search_save_LIBS=$LIBS
19762 cat >conftest.$ac_ext <<_ACEOF
19765 cat confdefs.h >>conftest.$ac_ext
19766 cat >>conftest.$ac_ext <<_ACEOF
19767 /* end confdefs.h. */
19769 /* Override any GCC internal prototype to avoid an error.
19770 Use char because int might match the return type of a GCC
19771 builtin and then its argument prototype would still apply. */
19775 char getaddrinfo ();
19779 return getaddrinfo ();
19784 for ac_lib in '' nsl socket; do
19785 if test -z "$ac_lib"; then
19786 ac_res="none required"
19789 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
19791 rm -f conftest.$ac_objext conftest$ac_exeext
19792 if { (ac_try="$ac_link"
19793 case "(($ac_try" in
19794 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
19795 *) ac_try_echo
=$ac_try;;
19797 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
19798 $as_echo "$ac_try_echo") >&5
19799 (eval "$ac_link") 2>conftest.er1
19801 grep -v '^ *+' conftest.er1
>conftest.err
19803 cat conftest.err
>&5
19804 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19805 (exit $ac_status); } && {
19806 test -z "$ac_c_werror_flag" ||
19807 test ! -s conftest.err
19808 } && test -s conftest
$ac_exeext && {
19809 test "$cross_compiling" = yes ||
19810 $as_test_x conftest
$ac_exeext
19812 ac_cv_search_getaddrinfo
=$ac_res
19814 $as_echo "$as_me: failed program was:" >&5
19815 sed 's/^/| /' conftest.
$ac_ext >&5
19820 rm -rf conftest.dSYM
19821 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
19823 if test "${ac_cv_search_getaddrinfo+set}" = set; then
19827 if test "${ac_cv_search_getaddrinfo+set}" = set; then
19830 ac_cv_search_getaddrinfo
=no
19832 rm conftest.
$ac_ext
19833 LIBS
=$ac_func_search_save_LIBS
19835 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_getaddrinfo" >&5
19836 $as_echo "$ac_cv_search_getaddrinfo" >&6; }
19837 ac_res
=$ac_cv_search_getaddrinfo
19838 if test "$ac_res" != no
; then
19839 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
19845 for ac_func
in getaddrinfo gai_strerror
19847 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
19848 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
19849 $as_echo_n "checking for $ac_func... " >&6; }
19850 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19851 $as_echo_n "(cached) " >&6
19853 cat >conftest.
$ac_ext <<_ACEOF
19856 cat confdefs.h
>>conftest.
$ac_ext
19857 cat >>conftest.
$ac_ext <<_ACEOF
19858 /* end confdefs.h. */
19859 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19860 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19861 #define $ac_func innocuous_$ac_func
19863 /* System header to define __stub macros and hopefully few prototypes,
19864 which can conflict with char $ac_func (); below.
19865 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19866 <limits.h> exists even on freestanding compilers. */
19869 # include <limits.h>
19871 # include <assert.h>
19876 /* Override any GCC internal prototype to avoid an error.
19877 Use char because int might match the return type of a GCC
19878 builtin and then its argument prototype would still apply. */
19883 /* The GNU C library defines this for functions which it implements
19884 to always fail with ENOSYS. Some functions are actually named
19885 something starting with __ and the normal name is an alias. */
19886 #if defined __stub_$ac_func || defined __stub___$ac_func
19893 return $ac_func ();
19898 rm -f conftest.
$ac_objext conftest
$ac_exeext
19899 if { (ac_try
="$ac_link"
19900 case "(($ac_try" in
19901 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
19902 *) ac_try_echo=$ac_try;;
19904 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19905 $as_echo "$ac_try_echo") >&5
19906 (eval "$ac_link") 2>conftest.er1
19908 grep -v '^ *+' conftest.er1 >conftest.err
19910 cat conftest.err >&5
19911 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19912 (exit $ac_status); } && {
19913 test -z "$ac_c_werror_flag" ||
19914 test ! -s conftest.err
19915 } && test -s conftest$ac_exeext && {
19916 test "$cross_compiling" = yes ||
19917 $as_test_x conftest$ac_exeext
19919 eval "$as_ac_var=yes"
19921 $as_echo "$as_me: failed program was:" >&5
19922 sed 's/^/| /' conftest.$ac_ext >&5
19924 eval "$as_ac_var=no"
19927 rm -rf conftest.dSYM
19928 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19929 conftest$ac_exeext conftest.$ac_ext
19931 ac_res=`eval 'as_val=${'$as_ac_var'}
19932 $as_echo "$as_val"'`
19933 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
19934 $as_echo "$ac_res" >&6; }
19935 as_val=`eval 'as_val=${'$as_ac_var'}
19936 $as_echo "$as_val"'`
19937 if test "x$as_val" = x""yes; then
19938 cat >>confdefs.h <<_ACEOF
19939 #define `$as_echo "HAVE_$ac_func" |
$as_tr_cpp` 1
19943 case " $LIBOBJS " in
19944 *" $ac_func.$ac_objext "* ) ;;
19945 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
19962 case $gl_cv_func_getcwd_null in
19972 { $as_echo "$as_me:$LINENO: checking whether getcwd handles long file names properly" >&5
19973 $as_echo_n "checking whether getcwd handles long file names properly... " >&6; }
19974 if test "${gl_cv_func_getcwd_path_max+set}" = set; then
19975 $as_echo_n "(cached) " >&6
19977 # Arrange for deletion of the temporary directory this test creates.
19978 ac_clean_files="$ac_clean_files confdir3"
19979 if test "$cross_compiling" = yes; then
19980 gl_cv_func_getcwd_path_max=no
19982 cat >conftest.$ac_ext <<_ACEOF
19985 cat confdefs.h >>conftest.$ac_ext
19986 cat >>conftest.$ac_ext <<_ACEOF
19987 /* end confdefs.h. */
19990 #include <stdlib.h>
19991 #include <unistd.h>
19992 #include <string.h>
19993 #include <limits.h>
19994 #include <sys/stat.h>
19995 #include <sys/types.h>
19999 # define AT_FDCWD 0
20001 #ifdef ENAMETOOLONG
20002 # define is_ENAMETOOLONG(x) ((x) == ENAMETOOLONG)
20004 # define is_ENAMETOOLONG(x) 0
20007 /* Don't get link errors because mkdir is redefined to rpl_mkdir. */
20011 # define S_IRWXU 0700
20014 /* The length of this name must be 8. */
20015 #define DIR_NAME "confdir3"
20016 #define DIR_NAME_LEN 8
20017 #define DIR_NAME_SIZE (DIR_NAME_LEN + 1)
20019 /* The length of "../". */
20020 #define DOTDOTSLASH_LEN 3
20022 /* Leftover bytes in the buffer, to work around library or OS bugs. */
20023 #define BUF_SLOP 20
20029 /* The Hurd doesn't define this, so getcwd can't exhibit the bug --
20030 at least not on a local file system. And if we were to start worrying
20031 about remote file systems, we'd have to enable the wrapper function
20032 all of the time, just to be safe. That's not worth the cost. */
20034 #elif ((INT_MAX / (DIR_NAME_SIZE / DOTDOTSLASH_LEN + 1) \
20035 - DIR_NAME_SIZE - BUF_SLOP) \
20037 /* FIXME: Assuming there's a system for which this is true,
20038 this should be done in a compile test. */
20041 char buf[PATH_MAX * (DIR_NAME_SIZE / DOTDOTSLASH_LEN + 1)
20042 + DIR_NAME_SIZE + BUF_SLOP];
20043 char *cwd = getcwd (buf, PATH_MAX);
20044 size_t initial_cwd_len;
20047 size_t n_chdirs = 0;
20052 cwd_len = initial_cwd_len = strlen (cwd);
20056 size_t dotdot_max = PATH_MAX * (DIR_NAME_SIZE / DOTDOTSLASH_LEN);
20059 cwd_len += DIR_NAME_SIZE;
20060 /* If mkdir or chdir fails, it could be that this system cannot create
20061 any file with an absolute name longer than PATH_MAX, such as cygwin.
20062 If so, leave fail as 0, because the current working directory can't
20063 be too long for getcwd if it can't even be created. For other
20064 errors, be pessimistic and consider that as a failure, too. */
20065 if (mkdir (DIR_NAME, S_IRWXU) < 0 || chdir (DIR_NAME) < 0)
20067 if (! (errno == ERANGE || is_ENAMETOOLONG (errno)))
20072 if (PATH_MAX <= cwd_len && cwd_len < PATH_MAX + DIR_NAME_SIZE)
20074 c = getcwd (buf, PATH_MAX);
20075 if (!c && errno == ENOENT)
20080 if (c || ! (errno == ERANGE || is_ENAMETOOLONG (errno)))
20087 if (dotdot_max <= cwd_len - initial_cwd_len)
20089 if (dotdot_max + DIR_NAME_SIZE < cwd_len - initial_cwd_len)
20091 c = getcwd (buf, cwd_len + 1);
20094 if (! (errno == ERANGE || errno == ENOENT
20095 || is_ENAMETOOLONG (errno)))
20100 if (AT_FDCWD || errno == ERANGE || errno == ENOENT)
20108 if (c && strlen (c) != cwd_len)
20116 /* Leaving behind such a deep directory is not polite.
20117 So clean up here, right away, even though the driving
20118 shell script would also clean up. */
20122 /* Unlink first, in case the chdir failed. */
20124 for (i = 0; i <= n_chdirs; i++)
20126 if (chdir ("..") < 0)
20137 rm -f conftest$ac_exeext
20138 if { (ac_try="$ac_link"
20139 case "(($ac_try" in
20140 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
20141 *) ac_try_echo
=$ac_try;;
20143 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
20144 $as_echo "$ac_try_echo") >&5
20145 (eval "$ac_link") 2>&5
20147 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20148 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
20149 { (case "(($ac_try" in
20150 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
20151 *) ac_try_echo=$ac_try;;
20153 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20154 $as_echo "$ac_try_echo") >&5
20155 (eval "$ac_try") 2>&5
20157 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20158 (exit $ac_status); }; }; then
20159 gl_cv_func_getcwd_path_max=yes
20161 $as_echo "$as_me: program exited with status $ac_status" >&5
20162 $as_echo "$as_me: failed program was:" >&5
20163 sed 's/^/| /' conftest.$ac_ext >&5
20165 ( exit $ac_status )
20167 1) gl_cv_func_getcwd_path_max='no, but it is partly working';;
20168 *) gl_cv_func_getcwd_path_max=no;;
20171 rm -rf conftest.dSYM
20172 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20178 { $as_echo "$as_me:$LINENO: result: $gl_cv_func_getcwd_path_max" >&5
20179 $as_echo "$gl_cv_func_getcwd_path_max" >&6; }
20180 case $gl_cv_func_getcwd_path_max in
20183 cat >>confdefs.h <<\_ACEOF
20184 #define HAVE_PARTLY_WORKING_GETCWD 1
20191 case $gl_cv_func_getcwd_null,$gl_cv_func_getcwd_path_max in
20194 case " $LIBOBJS " in
20195 *" getcwd.$ac_objext "* ) ;;
20196 *) LIBOBJS="$LIBOBJS getcwd.$ac_objext"
20201 cat >>confdefs.h <<\_ACEOF
20202 #define __GETCWD_PREFIX rpl_
20215 case " $LIBOBJS " in
20216 *" getdate.$ac_objext "* ) ;;
20217 *) LIBOBJS="$LIBOBJS getdate.$ac_objext"
20234 { $as_echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
20235 $as_echo_n "checking for struct tm.tm_zone... " >&6; }
20236 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
20237 $as_echo_n "(cached) " >&6
20239 cat >conftest.$ac_ext <<_ACEOF
20242 cat confdefs.h >>conftest.$ac_ext
20243 cat >>conftest.$ac_ext <<_ACEOF
20244 /* end confdefs.h. */
20245 #include <sys/types.h>
20246 #include <$ac_cv_struct_tm>
20252 static struct tm ac_aggr;
20253 if (ac_aggr.tm_zone)
20259 rm -f conftest.$ac_objext
20260 if { (ac_try="$ac_compile"
20261 case "(($ac_try" in
20262 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
20263 *) ac_try_echo
=$ac_try;;
20265 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
20266 $as_echo "$ac_try_echo") >&5
20267 (eval "$ac_compile") 2>conftest.er1
20269 grep -v '^ *+' conftest.er1
>conftest.err
20271 cat conftest.err
>&5
20272 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20273 (exit $ac_status); } && {
20274 test -z "$ac_c_werror_flag" ||
20275 test ! -s conftest.err
20276 } && test -s conftest.
$ac_objext; then
20277 ac_cv_member_struct_tm_tm_zone
=yes
20279 $as_echo "$as_me: failed program was:" >&5
20280 sed 's/^/| /' conftest.
$ac_ext >&5
20282 cat >conftest.
$ac_ext <<_ACEOF
20285 cat confdefs.h
>>conftest.
$ac_ext
20286 cat >>conftest.
$ac_ext <<_ACEOF
20287 /* end confdefs.h. */
20288 #include <sys/types.h>
20289 #include <$ac_cv_struct_tm>
20295 static struct tm ac_aggr;
20296 if (sizeof ac_aggr.tm_zone)
20302 rm -f conftest.
$ac_objext
20303 if { (ac_try
="$ac_compile"
20304 case "(($ac_try" in
20305 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
20306 *) ac_try_echo=$ac_try;;
20308 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20309 $as_echo "$ac_try_echo") >&5
20310 (eval "$ac_compile") 2>conftest.er1
20312 grep -v '^ *+' conftest.er1 >conftest.err
20314 cat conftest.err >&5
20315 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20316 (exit $ac_status); } && {
20317 test -z "$ac_c_werror_flag" ||
20318 test ! -s conftest.err
20319 } && test -s conftest.$ac_objext; then
20320 ac_cv_member_struct_tm_tm_zone=yes
20322 $as_echo "$as_me: failed program was:" >&5
20323 sed 's/^/| /' conftest.$ac_ext >&5
20325 ac_cv_member_struct_tm_tm_zone=no
20328 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20331 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20333 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
20334 $as_echo "$ac_cv_member_struct_tm_tm_zone" >&6; }
20335 if test "x$ac_cv_member_struct_tm_tm_zone" = x""yes; then
20337 cat >>confdefs.h <<_ACEOF
20338 #define HAVE_STRUCT_TM_TM_ZONE 1
20344 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
20346 cat >>confdefs.h <<\_ACEOF
20347 #define HAVE_TM_ZONE 1
20351 { $as_echo "$as_me:$LINENO: checking whether tzname is declared" >&5
20352 $as_echo_n "checking whether tzname is declared... " >&6; }
20353 if test "${ac_cv_have_decl_tzname+set}" = set; then
20354 $as_echo_n "(cached) " >&6
20356 cat >conftest.$ac_ext <<_ACEOF
20359 cat confdefs.h >>conftest.$ac_ext
20360 cat >>conftest.$ac_ext <<_ACEOF
20361 /* end confdefs.h. */
20375 rm -f conftest.$ac_objext
20376 if { (ac_try="$ac_compile"
20377 case "(($ac_try" in
20378 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
20379 *) ac_try_echo
=$ac_try;;
20381 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
20382 $as_echo "$ac_try_echo") >&5
20383 (eval "$ac_compile") 2>conftest.er1
20385 grep -v '^ *+' conftest.er1
>conftest.err
20387 cat conftest.err
>&5
20388 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20389 (exit $ac_status); } && {
20390 test -z "$ac_c_werror_flag" ||
20391 test ! -s conftest.err
20392 } && test -s conftest.
$ac_objext; then
20393 ac_cv_have_decl_tzname
=yes
20395 $as_echo "$as_me: failed program was:" >&5
20396 sed 's/^/| /' conftest.
$ac_ext >&5
20398 ac_cv_have_decl_tzname
=no
20401 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
20403 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_tzname" >&5
20404 $as_echo "$ac_cv_have_decl_tzname" >&6; }
20405 if test "x$ac_cv_have_decl_tzname" = x
""yes; then
20407 cat >>confdefs.h
<<_ACEOF
20408 #define HAVE_DECL_TZNAME 1
20413 cat >>confdefs.h
<<_ACEOF
20414 #define HAVE_DECL_TZNAME 0
20421 { $as_echo "$as_me:$LINENO: checking for tzname" >&5
20422 $as_echo_n "checking for tzname... " >&6; }
20423 if test "${ac_cv_var_tzname+set}" = set; then
20424 $as_echo_n "(cached) " >&6
20426 cat >conftest.
$ac_ext <<_ACEOF
20429 cat confdefs.h
>>conftest.
$ac_ext
20430 cat >>conftest.
$ac_ext <<_ACEOF
20431 /* end confdefs.h. */
20433 #if !HAVE_DECL_TZNAME
20434 extern char *tzname[];
20440 return tzname[0][0];
20445 rm -f conftest.
$ac_objext conftest
$ac_exeext
20446 if { (ac_try
="$ac_link"
20447 case "(($ac_try" in
20448 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
20449 *) ac_try_echo=$ac_try;;
20451 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20452 $as_echo "$ac_try_echo") >&5
20453 (eval "$ac_link") 2>conftest.er1
20455 grep -v '^ *+' conftest.er1 >conftest.err
20457 cat conftest.err >&5
20458 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20459 (exit $ac_status); } && {
20460 test -z "$ac_c_werror_flag" ||
20461 test ! -s conftest.err
20462 } && test -s conftest$ac_exeext && {
20463 test "$cross_compiling" = yes ||
20464 $as_test_x conftest$ac_exeext
20466 ac_cv_var_tzname=yes
20468 $as_echo "$as_me: failed program was:" >&5
20469 sed 's/^/| /' conftest.$ac_ext >&5
20471 ac_cv_var_tzname=no
20474 rm -rf conftest.dSYM
20475 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20476 conftest$ac_exeext conftest.$ac_ext
20478 { $as_echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
20479 $as_echo "$ac_cv_var_tzname" >&6; }
20480 if test $ac_cv_var_tzname = yes; then
20482 cat >>confdefs.h <<\_ACEOF
20483 #define HAVE_TZNAME 1
20498 for ac_func in getdelim
20500 as_ac_var=`$as_echo "ac_cv_func_$ac_func" |
$as_tr_sh`
20501 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
20502 $as_echo_n "checking for $ac_func... " >&6; }
20503 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20504 $as_echo_n "(cached) " >&6
20506 cat >conftest.$ac_ext <<_ACEOF
20509 cat confdefs.h >>conftest.$ac_ext
20510 cat >>conftest.$ac_ext <<_ACEOF
20511 /* end confdefs.h. */
20512 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20513 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20514 #define $ac_func innocuous_$ac_func
20516 /* System header to define __stub macros and hopefully few prototypes,
20517 which can conflict with char $ac_func (); below.
20518 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20519 <limits.h> exists even on freestanding compilers. */
20522 # include <limits.h>
20524 # include <assert.h>
20529 /* Override any GCC internal prototype to avoid an error.
20530 Use char because int might match the return type of a GCC
20531 builtin and then its argument prototype would still apply. */
20536 /* The GNU C library defines this for functions which it implements
20537 to always fail with ENOSYS. Some functions are actually named
20538 something starting with __ and the normal name is an alias. */
20539 #if defined __stub_$ac_func || defined __stub___$ac_func
20546 return $ac_func ();
20551 rm -f conftest.$ac_objext conftest$ac_exeext
20552 if { (ac_try="$ac_link"
20553 case "(($ac_try" in
20554 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
20555 *) ac_try_echo
=$ac_try;;
20557 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
20558 $as_echo "$ac_try_echo") >&5
20559 (eval "$ac_link") 2>conftest.er1
20561 grep -v '^ *+' conftest.er1
>conftest.err
20563 cat conftest.err
>&5
20564 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20565 (exit $ac_status); } && {
20566 test -z "$ac_c_werror_flag" ||
20567 test ! -s conftest.err
20568 } && test -s conftest
$ac_exeext && {
20569 test "$cross_compiling" = yes ||
20570 $as_test_x conftest
$ac_exeext
20572 eval "$as_ac_var=yes"
20574 $as_echo "$as_me: failed program was:" >&5
20575 sed 's/^/| /' conftest.
$ac_ext >&5
20577 eval "$as_ac_var=no"
20580 rm -rf conftest.dSYM
20581 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
20582 conftest
$ac_exeext conftest.
$ac_ext
20584 ac_res
=`eval 'as_val=${'$as_ac_var'}
20585 $as_echo "$as_val"'`
20586 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
20587 $as_echo "$ac_res" >&6; }
20588 as_val
=`eval 'as_val=${'$as_ac_var'}
20589 $as_echo "$as_val"'`
20590 if test "x$as_val" = x
""yes; then
20591 cat >>confdefs.h
<<_ACEOF
20592 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20596 case " $LIBOBJS " in
20597 *" $ac_func.$ac_objext "* ) ;;
20598 *) LIBOBJS
="$LIBOBJS $ac_func.$ac_objext"
20614 if test $ac_cv_func_getdelim = no
; then
20618 for ac_func
in flockfile funlockfile
20620 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20621 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
20622 $as_echo_n "checking for $ac_func... " >&6; }
20623 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20624 $as_echo_n "(cached) " >&6
20626 cat >conftest.
$ac_ext <<_ACEOF
20629 cat confdefs.h
>>conftest.
$ac_ext
20630 cat >>conftest.
$ac_ext <<_ACEOF
20631 /* end confdefs.h. */
20632 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20633 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20634 #define $ac_func innocuous_$ac_func
20636 /* System header to define __stub macros and hopefully few prototypes,
20637 which can conflict with char $ac_func (); below.
20638 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20639 <limits.h> exists even on freestanding compilers. */
20642 # include <limits.h>
20644 # include <assert.h>
20649 /* Override any GCC internal prototype to avoid an error.
20650 Use char because int might match the return type of a GCC
20651 builtin and then its argument prototype would still apply. */
20656 /* The GNU C library defines this for functions which it implements
20657 to always fail with ENOSYS. Some functions are actually named
20658 something starting with __ and the normal name is an alias. */
20659 #if defined __stub_$ac_func || defined __stub___$ac_func
20666 return $ac_func ();
20671 rm -f conftest.
$ac_objext conftest
$ac_exeext
20672 if { (ac_try
="$ac_link"
20673 case "(($ac_try" in
20674 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
20675 *) ac_try_echo=$ac_try;;
20677 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20678 $as_echo "$ac_try_echo") >&5
20679 (eval "$ac_link") 2>conftest.er1
20681 grep -v '^ *+' conftest.er1 >conftest.err
20683 cat conftest.err >&5
20684 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20685 (exit $ac_status); } && {
20686 test -z "$ac_c_werror_flag" ||
20687 test ! -s conftest.err
20688 } && test -s conftest$ac_exeext && {
20689 test "$cross_compiling" = yes ||
20690 $as_test_x conftest$ac_exeext
20692 eval "$as_ac_var=yes"
20694 $as_echo "$as_me: failed program was:" >&5
20695 sed 's/^/| /' conftest.$ac_ext >&5
20697 eval "$as_ac_var=no"
20700 rm -rf conftest.dSYM
20701 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20702 conftest$ac_exeext conftest.$ac_ext
20704 ac_res=`eval 'as_val=${'$as_ac_var'}
20705 $as_echo "$as_val"'`
20706 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
20707 $as_echo "$ac_res" >&6; }
20708 as_val=`eval 'as_val=${'$as_ac_var'}
20709 $as_echo "$as_val"'`
20710 if test "x$as_val" = x""yes; then
20711 cat >>confdefs.h <<_ACEOF
20712 #define `$as_echo "HAVE_$ac_func" |
$as_tr_cpp` 1
20723 for ac_func in gethostname
20725 as_ac_var=`$as_echo "ac_cv_func_$ac_func" |
$as_tr_sh`
20726 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
20727 $as_echo_n "checking for $ac_func... " >&6; }
20728 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20729 $as_echo_n "(cached) " >&6
20731 cat >conftest.$ac_ext <<_ACEOF
20734 cat confdefs.h >>conftest.$ac_ext
20735 cat >>conftest.$ac_ext <<_ACEOF
20736 /* end confdefs.h. */
20737 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20738 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20739 #define $ac_func innocuous_$ac_func
20741 /* System header to define __stub macros and hopefully few prototypes,
20742 which can conflict with char $ac_func (); below.
20743 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20744 <limits.h> exists even on freestanding compilers. */
20747 # include <limits.h>
20749 # include <assert.h>
20754 /* Override any GCC internal prototype to avoid an error.
20755 Use char because int might match the return type of a GCC
20756 builtin and then its argument prototype would still apply. */
20761 /* The GNU C library defines this for functions which it implements
20762 to always fail with ENOSYS. Some functions are actually named
20763 something starting with __ and the normal name is an alias. */
20764 #if defined __stub_$ac_func || defined __stub___$ac_func
20771 return $ac_func ();
20776 rm -f conftest.$ac_objext conftest$ac_exeext
20777 if { (ac_try="$ac_link"
20778 case "(($ac_try" in
20779 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
20780 *) ac_try_echo
=$ac_try;;
20782 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
20783 $as_echo "$ac_try_echo") >&5
20784 (eval "$ac_link") 2>conftest.er1
20786 grep -v '^ *+' conftest.er1
>conftest.err
20788 cat conftest.err
>&5
20789 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20790 (exit $ac_status); } && {
20791 test -z "$ac_c_werror_flag" ||
20792 test ! -s conftest.err
20793 } && test -s conftest
$ac_exeext && {
20794 test "$cross_compiling" = yes ||
20795 $as_test_x conftest
$ac_exeext
20797 eval "$as_ac_var=yes"
20799 $as_echo "$as_me: failed program was:" >&5
20800 sed 's/^/| /' conftest.
$ac_ext >&5
20802 eval "$as_ac_var=no"
20805 rm -rf conftest.dSYM
20806 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
20807 conftest
$ac_exeext conftest.
$ac_ext
20809 ac_res
=`eval 'as_val=${'$as_ac_var'}
20810 $as_echo "$as_val"'`
20811 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
20812 $as_echo "$ac_res" >&6; }
20813 as_val
=`eval 'as_val=${'$as_ac_var'}
20814 $as_echo "$as_val"'`
20815 if test "x$as_val" = x
""yes; then
20816 cat >>confdefs.h
<<_ACEOF
20817 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20821 case " $LIBOBJS " in
20822 *" $ac_func.$ac_objext "* ) ;;
20823 *) LIBOBJS
="$LIBOBJS $ac_func.$ac_objext"
20831 if test $ac_cv_func_gethostname = no
; then
20834 for ac_func
in uname
20836 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20837 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
20838 $as_echo_n "checking for $ac_func... " >&6; }
20839 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20840 $as_echo_n "(cached) " >&6
20842 cat >conftest.
$ac_ext <<_ACEOF
20845 cat confdefs.h
>>conftest.
$ac_ext
20846 cat >>conftest.
$ac_ext <<_ACEOF
20847 /* end confdefs.h. */
20848 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20849 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20850 #define $ac_func innocuous_$ac_func
20852 /* System header to define __stub macros and hopefully few prototypes,
20853 which can conflict with char $ac_func (); below.
20854 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20855 <limits.h> exists even on freestanding compilers. */
20858 # include <limits.h>
20860 # include <assert.h>
20865 /* Override any GCC internal prototype to avoid an error.
20866 Use char because int might match the return type of a GCC
20867 builtin and then its argument prototype would still apply. */
20872 /* The GNU C library defines this for functions which it implements
20873 to always fail with ENOSYS. Some functions are actually named
20874 something starting with __ and the normal name is an alias. */
20875 #if defined __stub_$ac_func || defined __stub___$ac_func
20882 return $ac_func ();
20887 rm -f conftest.
$ac_objext conftest
$ac_exeext
20888 if { (ac_try
="$ac_link"
20889 case "(($ac_try" in
20890 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
20891 *) ac_try_echo=$ac_try;;
20893 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20894 $as_echo "$ac_try_echo") >&5
20895 (eval "$ac_link") 2>conftest.er1
20897 grep -v '^ *+' conftest.er1 >conftest.err
20899 cat conftest.err >&5
20900 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20901 (exit $ac_status); } && {
20902 test -z "$ac_c_werror_flag" ||
20903 test ! -s conftest.err
20904 } && test -s conftest$ac_exeext && {
20905 test "$cross_compiling" = yes ||
20906 $as_test_x conftest$ac_exeext
20908 eval "$as_ac_var=yes"
20910 $as_echo "$as_me: failed program was:" >&5
20911 sed 's/^/| /' conftest.$ac_ext >&5
20913 eval "$as_ac_var=no"
20916 rm -rf conftest.dSYM
20917 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20918 conftest$ac_exeext conftest.$ac_ext
20920 ac_res=`eval 'as_val=${'$as_ac_var'}
20921 $as_echo "$as_val"'`
20922 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
20923 $as_echo "$ac_res" >&6; }
20924 as_val=`eval 'as_val=${'$as_ac_var'}
20925 $as_echo "$as_val"'`
20926 if test "x$as_val" = x""yes; then
20927 cat >>confdefs.h <<_ACEOF
20928 #define `$as_echo "HAVE_$ac_func" |
$as_tr_cpp` 1
20942 { $as_echo "$as_me:$LINENO: checking whether getline is declared" >&5
20943 $as_echo_n "checking whether getline is declared... " >&6; }
20944 if test "${ac_cv_have_decl_getline+set}" = set; then
20945 $as_echo_n "(cached) " >&6
20947 cat >conftest.$ac_ext <<_ACEOF
20950 cat confdefs.h >>conftest.$ac_ext
20951 cat >>conftest.$ac_ext <<_ACEOF
20952 /* end confdefs.h. */
20953 $ac_includes_default
20965 rm -f conftest.$ac_objext
20966 if { (ac_try="$ac_compile"
20967 case "(($ac_try" in
20968 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
20969 *) ac_try_echo
=$ac_try;;
20971 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
20972 $as_echo "$ac_try_echo") >&5
20973 (eval "$ac_compile") 2>conftest.er1
20975 grep -v '^ *+' conftest.er1
>conftest.err
20977 cat conftest.err
>&5
20978 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20979 (exit $ac_status); } && {
20980 test -z "$ac_c_werror_flag" ||
20981 test ! -s conftest.err
20982 } && test -s conftest.
$ac_objext; then
20983 ac_cv_have_decl_getline
=yes
20985 $as_echo "$as_me: failed program was:" >&5
20986 sed 's/^/| /' conftest.
$ac_ext >&5
20988 ac_cv_have_decl_getline
=no
20991 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
20993 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_getline" >&5
20994 $as_echo "$ac_cv_have_decl_getline" >&6; }
20995 if test "x$ac_cv_have_decl_getline" = x
""yes; then
20997 cat >>confdefs.h
<<_ACEOF
20998 #define HAVE_DECL_GETLINE 1
21003 cat >>confdefs.h
<<_ACEOF
21004 #define HAVE_DECL_GETLINE 0
21012 gl_getline_needs_run_time_check
=no
21013 { $as_echo "$as_me:$LINENO: checking for getline" >&5
21014 $as_echo_n "checking for getline... " >&6; }
21015 if test "${ac_cv_func_getline+set}" = set; then
21016 $as_echo_n "(cached) " >&6
21018 cat >conftest.
$ac_ext <<_ACEOF
21021 cat confdefs.h
>>conftest.
$ac_ext
21022 cat >>conftest.
$ac_ext <<_ACEOF
21023 /* end confdefs.h. */
21024 /* Define getline to an innocuous variant, in case <limits.h> declares getline.
21025 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21026 #define getline innocuous_getline
21028 /* System header to define __stub macros and hopefully few prototypes,
21029 which can conflict with char getline (); below.
21030 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21031 <limits.h> exists even on freestanding compilers. */
21034 # include <limits.h>
21036 # include <assert.h>
21041 /* Override any GCC internal prototype to avoid an error.
21042 Use char because int might match the return type of a GCC
21043 builtin and then its argument prototype would still apply. */
21048 /* The GNU C library defines this for functions which it implements
21049 to always fail with ENOSYS. Some functions are actually named
21050 something starting with __ and the normal name is an alias. */
21051 #if defined __stub_getline || defined __stub___getline
21063 rm -f conftest.
$ac_objext conftest
$ac_exeext
21064 if { (ac_try
="$ac_link"
21065 case "(($ac_try" in
21066 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
21067 *) ac_try_echo=$ac_try;;
21069 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21070 $as_echo "$ac_try_echo") >&5
21071 (eval "$ac_link") 2>conftest.er1
21073 grep -v '^ *+' conftest.er1 >conftest.err
21075 cat conftest.err >&5
21076 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21077 (exit $ac_status); } && {
21078 test -z "$ac_c_werror_flag" ||
21079 test ! -s conftest.err
21080 } && test -s conftest$ac_exeext && {
21081 test "$cross_compiling" = yes ||
21082 $as_test_x conftest$ac_exeext
21084 ac_cv_func_getline=yes
21086 $as_echo "$as_me: failed program was:" >&5
21087 sed 's/^/| /' conftest.$ac_ext >&5
21089 ac_cv_func_getline=no
21092 rm -rf conftest.dSYM
21093 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21094 conftest$ac_exeext conftest.$ac_ext
21096 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_getline" >&5
21097 $as_echo "$ac_cv_func_getline" >&6; }
21098 if test "x$ac_cv_func_getline" = x""yes; then
21099 gl_getline_needs_run_time_check=yes
21101 am_cv_func_working_getline=no
21104 if test $gl_getline_needs_run_time_check = yes; then
21105 { $as_echo "$as_me:$LINENO: checking for working getline function" >&5
21106 $as_echo_n "checking for working getline function... " >&6; }
21107 if test "${am_cv_func_working_getline+set}" = set; then
21108 $as_echo_n "(cached) " >&6
21110 echo fooN |tr -d '\012'|tr N '\012' > conftest.data
21111 if test "$cross_compiling" = yes; then
21112 am_cv_func_working_getline=no
21114 cat >conftest.$ac_ext <<_ACEOF
21117 cat confdefs.h >>conftest.$ac_ext
21118 cat >>conftest.$ac_ext <<_ACEOF
21119 /* end confdefs.h. */
21121 # include <stdio.h>
21122 # include <stdlib.h>
21123 # include <string.h>
21125 { /* Based on a test program from Karl Heuer. */
21129 FILE *in = fopen ("./conftest.data", "r");
21132 len = getline (&line, &siz, in);
21133 exit ((len == 4 && line && strcmp (line, "foo\n") == 0) ? 0 : 1);
21137 rm -f conftest$ac_exeext
21138 if { (ac_try="$ac_link"
21139 case "(($ac_try" in
21140 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
21141 *) ac_try_echo
=$ac_try;;
21143 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
21144 $as_echo "$ac_try_echo") >&5
21145 (eval "$ac_link") 2>&5
21147 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21148 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
21149 { (case "(($ac_try" in
21150 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
21151 *) ac_try_echo=$ac_try;;
21153 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21154 $as_echo "$ac_try_echo") >&5
21155 (eval "$ac_try") 2>&5
21157 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21158 (exit $ac_status); }; }; then
21159 am_cv_func_working_getline=yes
21161 $as_echo "$as_me: program exited with status $ac_status" >&5
21162 $as_echo "$as_me: failed program was:" >&5
21163 sed 's/^/| /' conftest.$ac_ext >&5
21165 ( exit $ac_status )
21166 am_cv_func_working_getline=no
21168 rm -rf conftest.dSYM
21169 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21174 { $as_echo "$as_me:$LINENO: result: $am_cv_func_working_getline" >&5
21175 $as_echo "$am_cv_func_working_getline" >&6; }
21178 if test $am_cv_func_working_getline = no; then
21180 cat >>confdefs.h <<\_ACEOF
21181 #define getline gnu_getline
21184 case " $LIBOBJS " in
21185 *" getline.$ac_objext "* ) ;;
21186 *) LIBOBJS="$LIBOBJS getline.$ac_objext"
21198 for ac_func in getdelim
21200 as_ac_var=`$as_echo "ac_cv_func_$ac_func" |
$as_tr_sh`
21201 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
21202 $as_echo_n "checking for $ac_func... " >&6; }
21203 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21204 $as_echo_n "(cached) " >&6
21206 cat >conftest.$ac_ext <<_ACEOF
21209 cat confdefs.h >>conftest.$ac_ext
21210 cat >>conftest.$ac_ext <<_ACEOF
21211 /* end confdefs.h. */
21212 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21213 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21214 #define $ac_func innocuous_$ac_func
21216 /* System header to define __stub macros and hopefully few prototypes,
21217 which can conflict with char $ac_func (); below.
21218 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21219 <limits.h> exists even on freestanding compilers. */
21222 # include <limits.h>
21224 # include <assert.h>
21229 /* Override any GCC internal prototype to avoid an error.
21230 Use char because int might match the return type of a GCC
21231 builtin and then its argument prototype would still apply. */
21236 /* The GNU C library defines this for functions which it implements
21237 to always fail with ENOSYS. Some functions are actually named
21238 something starting with __ and the normal name is an alias. */
21239 #if defined __stub_$ac_func || defined __stub___$ac_func
21246 return $ac_func ();
21251 rm -f conftest.$ac_objext conftest$ac_exeext
21252 if { (ac_try="$ac_link"
21253 case "(($ac_try" in
21254 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
21255 *) ac_try_echo
=$ac_try;;
21257 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
21258 $as_echo "$ac_try_echo") >&5
21259 (eval "$ac_link") 2>conftest.er1
21261 grep -v '^ *+' conftest.er1
>conftest.err
21263 cat conftest.err
>&5
21264 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21265 (exit $ac_status); } && {
21266 test -z "$ac_c_werror_flag" ||
21267 test ! -s conftest.err
21268 } && test -s conftest
$ac_exeext && {
21269 test "$cross_compiling" = yes ||
21270 $as_test_x conftest
$ac_exeext
21272 eval "$as_ac_var=yes"
21274 $as_echo "$as_me: failed program was:" >&5
21275 sed 's/^/| /' conftest.
$ac_ext >&5
21277 eval "$as_ac_var=no"
21280 rm -rf conftest.dSYM
21281 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
21282 conftest
$ac_exeext conftest.
$ac_ext
21284 ac_res
=`eval 'as_val=${'$as_ac_var'}
21285 $as_echo "$as_val"'`
21286 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
21287 $as_echo "$ac_res" >&6; }
21288 as_val
=`eval 'as_val=${'$as_ac_var'}
21289 $as_echo "$as_val"'`
21290 if test "x$as_val" = x
""yes; then
21291 cat >>confdefs.h
<<_ACEOF
21292 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
21296 case " $LIBOBJS " in
21297 *" $ac_func.$ac_objext "* ) ;;
21298 *) LIBOBJS
="$LIBOBJS $ac_func.$ac_objext"
21314 if test $ac_cv_func_getdelim = no
; then
21318 for ac_func
in flockfile funlockfile
21320 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
21321 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
21322 $as_echo_n "checking for $ac_func... " >&6; }
21323 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21324 $as_echo_n "(cached) " >&6
21326 cat >conftest.
$ac_ext <<_ACEOF
21329 cat confdefs.h
>>conftest.
$ac_ext
21330 cat >>conftest.
$ac_ext <<_ACEOF
21331 /* end confdefs.h. */
21332 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21333 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21334 #define $ac_func innocuous_$ac_func
21336 /* System header to define __stub macros and hopefully few prototypes,
21337 which can conflict with char $ac_func (); below.
21338 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21339 <limits.h> exists even on freestanding compilers. */
21342 # include <limits.h>
21344 # include <assert.h>
21349 /* Override any GCC internal prototype to avoid an error.
21350 Use char because int might match the return type of a GCC
21351 builtin and then its argument prototype would still apply. */
21356 /* The GNU C library defines this for functions which it implements
21357 to always fail with ENOSYS. Some functions are actually named
21358 something starting with __ and the normal name is an alias. */
21359 #if defined __stub_$ac_func || defined __stub___$ac_func
21366 return $ac_func ();
21371 rm -f conftest.
$ac_objext conftest
$ac_exeext
21372 if { (ac_try
="$ac_link"
21373 case "(($ac_try" in
21374 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
21375 *) ac_try_echo=$ac_try;;
21377 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21378 $as_echo "$ac_try_echo") >&5
21379 (eval "$ac_link") 2>conftest.er1
21381 grep -v '^ *+' conftest.er1 >conftest.err
21383 cat conftest.err >&5
21384 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21385 (exit $ac_status); } && {
21386 test -z "$ac_c_werror_flag" ||
21387 test ! -s conftest.err
21388 } && test -s conftest$ac_exeext && {
21389 test "$cross_compiling" = yes ||
21390 $as_test_x conftest$ac_exeext
21392 eval "$as_ac_var=yes"
21394 $as_echo "$as_me: failed program was:" >&5
21395 sed 's/^/| /' conftest.$ac_ext >&5
21397 eval "$as_ac_var=no"
21400 rm -rf conftest.dSYM
21401 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21402 conftest$ac_exeext conftest.$ac_ext
21404 ac_res=`eval 'as_val=${'$as_ac_var'}
21405 $as_echo "$as_val"'`
21406 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
21407 $as_echo "$ac_res" >&6; }
21408 as_val=`eval 'as_val=${'$as_ac_var'}
21409 $as_echo "$as_val"'`
21410 if test "x$as_val" = x""yes; then
21411 cat >>confdefs.h <<_ACEOF
21412 #define `$as_echo "HAVE_$ac_func" |
$as_tr_cpp` 1
21426 for ac_func in getlogin_r
21428 as_ac_var=`$as_echo "ac_cv_func_$ac_func" |
$as_tr_sh`
21429 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
21430 $as_echo_n "checking for $ac_func... " >&6; }
21431 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21432 $as_echo_n "(cached) " >&6
21434 cat >conftest.$ac_ext <<_ACEOF
21437 cat confdefs.h >>conftest.$ac_ext
21438 cat >>conftest.$ac_ext <<_ACEOF
21439 /* end confdefs.h. */
21440 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21441 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21442 #define $ac_func innocuous_$ac_func
21444 /* System header to define __stub macros and hopefully few prototypes,
21445 which can conflict with char $ac_func (); below.
21446 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21447 <limits.h> exists even on freestanding compilers. */
21450 # include <limits.h>
21452 # include <assert.h>
21457 /* Override any GCC internal prototype to avoid an error.
21458 Use char because int might match the return type of a GCC
21459 builtin and then its argument prototype would still apply. */
21464 /* The GNU C library defines this for functions which it implements
21465 to always fail with ENOSYS. Some functions are actually named
21466 something starting with __ and the normal name is an alias. */
21467 #if defined __stub_$ac_func || defined __stub___$ac_func
21474 return $ac_func ();
21479 rm -f conftest.$ac_objext conftest$ac_exeext
21480 if { (ac_try="$ac_link"
21481 case "(($ac_try" in
21482 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
21483 *) ac_try_echo
=$ac_try;;
21485 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
21486 $as_echo "$ac_try_echo") >&5
21487 (eval "$ac_link") 2>conftest.er1
21489 grep -v '^ *+' conftest.er1
>conftest.err
21491 cat conftest.err
>&5
21492 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21493 (exit $ac_status); } && {
21494 test -z "$ac_c_werror_flag" ||
21495 test ! -s conftest.err
21496 } && test -s conftest
$ac_exeext && {
21497 test "$cross_compiling" = yes ||
21498 $as_test_x conftest
$ac_exeext
21500 eval "$as_ac_var=yes"
21502 $as_echo "$as_me: failed program was:" >&5
21503 sed 's/^/| /' conftest.
$ac_ext >&5
21505 eval "$as_ac_var=no"
21508 rm -rf conftest.dSYM
21509 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
21510 conftest
$ac_exeext conftest.
$ac_ext
21512 ac_res
=`eval 'as_val=${'$as_ac_var'}
21513 $as_echo "$as_val"'`
21514 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
21515 $as_echo "$ac_res" >&6; }
21516 as_val
=`eval 'as_val=${'$as_ac_var'}
21517 $as_echo "$as_val"'`
21518 if test "x$as_val" = x
""yes; then
21519 cat >>confdefs.h
<<_ACEOF
21520 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
21524 case " $LIBOBJS " in
21525 *" $ac_func.$ac_objext "* ) ;;
21526 *) LIBOBJS
="$LIBOBJS $ac_func.$ac_objext"
21534 if test $ac_cv_func_getlogin_r = no
; then
21556 case " $LIBOBJS " in
21557 *" getlogin_r.$ac_objext "* ) ;;
21558 *) LIBOBJS
="$LIBOBJS getlogin_r.$ac_objext"
21566 # Avoid multiple inclusions of getndelim2.o into LIBOBJS.
21567 # This hack won't be needed after gnulib requires Autoconf 2.58 or later.
21568 case " $LIBOBJS " in
21569 *" getndelim2.$ac_objext "* ) ;;
21570 *) case " $LIBOBJS " in
21571 *" getndelim2.$ac_objext "* ) ;;
21572 *) LIBOBJS
="$LIBOBJS getndelim2.$ac_objext"
21588 if test -n "$GETOPT_H"; then
21590 case " $LIBOBJS " in
21591 *" getopt.$ac_objext "* ) ;;
21592 *) LIBOBJS
="$LIBOBJS getopt.$ac_objext"
21596 case " $LIBOBJS " in
21597 *" getopt1.$ac_objext "* ) ;;
21598 *) LIBOBJS
="$LIBOBJS getopt1.$ac_objext"
21605 cat >>confdefs.h
<<\_ACEOF
21606 #define __GETOPT_PREFIX rpl_
21630 for ac_header
in OS.h
21632 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
21633 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21634 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
21635 $as_echo_n "checking for $ac_header... " >&6; }
21636 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21637 $as_echo_n "(cached) " >&6
21639 ac_res
=`eval 'as_val=${'$as_ac_Header'}
21640 $as_echo "$as_val"'`
21641 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
21642 $as_echo "$ac_res" >&6; }
21644 # Is the header compilable?
21645 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
21646 $as_echo_n "checking $ac_header usability... " >&6; }
21647 cat >conftest.
$ac_ext <<_ACEOF
21650 cat confdefs.h
>>conftest.
$ac_ext
21651 cat >>conftest.
$ac_ext <<_ACEOF
21652 /* end confdefs.h. */
21653 $ac_includes_default
21654 #include <$ac_header>
21656 rm -f conftest.
$ac_objext
21657 if { (ac_try
="$ac_compile"
21658 case "(($ac_try" in
21659 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
21660 *) ac_try_echo=$ac_try;;
21662 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21663 $as_echo "$ac_try_echo") >&5
21664 (eval "$ac_compile") 2>conftest.er1
21666 grep -v '^ *+' conftest.er1 >conftest.err
21668 cat conftest.err >&5
21669 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21670 (exit $ac_status); } && {
21671 test -z "$ac_c_werror_flag" ||
21672 test ! -s conftest.err
21673 } && test -s conftest.$ac_objext; then
21674 ac_header_compiler=yes
21676 $as_echo "$as_me: failed program was:" >&5
21677 sed 's/^/| /' conftest.$ac_ext >&5
21679 ac_header_compiler=no
21682 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21683 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21684 $as_echo "$ac_header_compiler" >&6; }
21686 # Is the header present?
21687 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
21688 $as_echo_n "checking $ac_header presence... " >&6; }
21689 cat >conftest.$ac_ext <<_ACEOF
21692 cat confdefs.h >>conftest.$ac_ext
21693 cat >>conftest.$ac_ext <<_ACEOF
21694 /* end confdefs.h. */
21695 #include <$ac_header>
21697 if { (ac_try="$ac_cpp conftest.$ac_ext"
21698 case "(($ac_try" in
21699 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
21700 *) ac_try_echo
=$ac_try;;
21702 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
21703 $as_echo "$ac_try_echo") >&5
21704 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21706 grep -v '^ *+' conftest.er1
>conftest.err
21708 cat conftest.err
>&5
21709 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21710 (exit $ac_status); } >/dev
/null
&& {
21711 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21712 test ! -s conftest.err
21714 ac_header_preproc
=yes
21716 $as_echo "$as_me: failed program was:" >&5
21717 sed 's/^/| /' conftest.
$ac_ext >&5
21719 ac_header_preproc
=no
21722 rm -f conftest.err conftest.
$ac_ext
21723 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21724 $as_echo "$ac_header_preproc" >&6; }
21726 # So? What about this header?
21727 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21729 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21730 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21731 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21732 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21733 ac_header_preproc
=yes
21736 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21737 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21738 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21739 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21740 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21741 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21742 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21743 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21744 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21745 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21746 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21747 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21749 ## --------------------------------- ##
21750 ## Report this to bug-cvs@nongnu.org ##
21751 ## --------------------------------- ##
21753 ) |
sed "s/^/$as_me: WARNING: /" >&2
21756 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
21757 $as_echo_n "checking for $ac_header... " >&6; }
21758 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21759 $as_echo_n "(cached) " >&6
21761 eval "$as_ac_Header=\$ac_header_preproc"
21763 ac_res
=`eval 'as_val=${'$as_ac_Header'}
21764 $as_echo "$as_val"'`
21765 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
21766 $as_echo "$ac_res" >&6; }
21769 as_val
=`eval 'as_val=${'$as_ac_Header'}
21770 $as_echo "$as_val"'`
21771 if test "x$as_val" = x
""yes; then
21772 cat >>confdefs.h
<<_ACEOF
21773 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
21781 for ac_func
in getpagesize
21783 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
21784 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
21785 $as_echo_n "checking for $ac_func... " >&6; }
21786 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21787 $as_echo_n "(cached) " >&6
21789 cat >conftest.
$ac_ext <<_ACEOF
21792 cat confdefs.h
>>conftest.
$ac_ext
21793 cat >>conftest.
$ac_ext <<_ACEOF
21794 /* end confdefs.h. */
21795 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21796 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21797 #define $ac_func innocuous_$ac_func
21799 /* System header to define __stub macros and hopefully few prototypes,
21800 which can conflict with char $ac_func (); below.
21801 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21802 <limits.h> exists even on freestanding compilers. */
21805 # include <limits.h>
21807 # include <assert.h>
21812 /* Override any GCC internal prototype to avoid an error.
21813 Use char because int might match the return type of a GCC
21814 builtin and then its argument prototype would still apply. */
21819 /* The GNU C library defines this for functions which it implements
21820 to always fail with ENOSYS. Some functions are actually named
21821 something starting with __ and the normal name is an alias. */
21822 #if defined __stub_$ac_func || defined __stub___$ac_func
21829 return $ac_func ();
21834 rm -f conftest.
$ac_objext conftest
$ac_exeext
21835 if { (ac_try
="$ac_link"
21836 case "(($ac_try" in
21837 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
21838 *) ac_try_echo=$ac_try;;
21840 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21841 $as_echo "$ac_try_echo") >&5
21842 (eval "$ac_link") 2>conftest.er1
21844 grep -v '^ *+' conftest.er1 >conftest.err
21846 cat conftest.err >&5
21847 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21848 (exit $ac_status); } && {
21849 test -z "$ac_c_werror_flag" ||
21850 test ! -s conftest.err
21851 } && test -s conftest$ac_exeext && {
21852 test "$cross_compiling" = yes ||
21853 $as_test_x conftest$ac_exeext
21855 eval "$as_ac_var=yes"
21857 $as_echo "$as_me: failed program was:" >&5
21858 sed 's/^/| /' conftest.$ac_ext >&5
21860 eval "$as_ac_var=no"
21863 rm -rf conftest.dSYM
21864 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21865 conftest$ac_exeext conftest.$ac_ext
21867 ac_res=`eval 'as_val=${'$as_ac_var'}
21868 $as_echo "$as_val"'`
21869 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
21870 $as_echo "$ac_res" >&6; }
21871 as_val=`eval 'as_val=${'$as_ac_var'}
21872 $as_echo "$as_val"'`
21873 if test "x$as_val" = x""yes; then
21874 cat >>confdefs.h <<_ACEOF
21875 #define `$as_echo "HAVE_$ac_func" |
$as_tr_cpp` 1
21892 case " $LIBOBJS " in
21893 *" getpass.$ac_objext "* ) ;;
21894 *) LIBOBJS="$LIBOBJS getpass.$ac_objext"
21943 cat >>confdefs.h <<\_ACEOF
21944 #define getpass gnu_getpass
21950 case " $LIBOBJS " in
21951 *" gettime.$ac_objext "* ) ;;
21952 *) LIBOBJS="$LIBOBJS gettime.$ac_objext"
21972 { $as_echo "$as_me:$LINENO: checking whether gettimeofday clobbers localtime buffer" >&5
21973 $as_echo_n "checking whether gettimeofday clobbers localtime buffer... " >&6; }
21974 if test "${jm_cv_func_gettimeofday_clobber+set}" = set; then
21975 $as_echo_n "(cached) " >&6
21977 if test "$cross_compiling" = yes; then
21978 jm_cv_func_gettimeofday_clobber=yes
21980 cat >conftest.$ac_ext <<_ACEOF
21983 cat confdefs.h >>conftest.$ac_ext
21984 cat >>conftest.$ac_ext <<_ACEOF
21985 /* end confdefs.h. */
21988 #include <string.h>
21990 #if TIME_WITH_SYS_TIME
21991 # include <sys/time.h>
21994 # if HAVE_SYS_TIME_H
21995 # include <sys/time.h>
22001 #include <stdlib.h>
22008 struct tm saved_lt;
22010 lt = localtime (&t);
22012 gettimeofday (&tv, NULL);
22013 if (memcmp (lt, &saved_lt, sizeof (struct tm)) != 0)
22020 rm -f conftest$ac_exeext
22021 if { (ac_try="$ac_link"
22022 case "(($ac_try" in
22023 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
22024 *) ac_try_echo
=$ac_try;;
22026 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
22027 $as_echo "$ac_try_echo") >&5
22028 (eval "$ac_link") 2>&5
22030 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22031 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
22032 { (case "(($ac_try" in
22033 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
22034 *) ac_try_echo=$ac_try;;
22036 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22037 $as_echo "$ac_try_echo") >&5
22038 (eval "$ac_try") 2>&5
22040 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22041 (exit $ac_status); }; }; then
22042 jm_cv_func_gettimeofday_clobber=no
22044 $as_echo "$as_me: program exited with status $ac_status" >&5
22045 $as_echo "$as_me: failed program was:" >&5
22046 sed 's/^/| /' conftest.$ac_ext >&5
22048 ( exit $ac_status )
22049 jm_cv_func_gettimeofday_clobber=yes
22051 rm -rf conftest.dSYM
22052 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22058 { $as_echo "$as_me:$LINENO: result: $jm_cv_func_gettimeofday_clobber" >&5
22059 $as_echo "$jm_cv_func_gettimeofday_clobber" >&6; }
22060 if test $jm_cv_func_gettimeofday_clobber = yes; then
22062 case " $LIBOBJS " in
22063 *" gettimeofday.$ac_objext "* ) ;;
22064 *) LIBOBJS="$LIBOBJS gettimeofday.$ac_objext"
22069 cat >>confdefs.h <<\_ACEOF
22070 #define gmtime rpl_gmtime
22074 cat >>confdefs.h <<\_ACEOF
22075 #define localtime rpl_localtime
22081 cat >>confdefs.h <<\_ACEOF
22082 #define gettimeofday rpl_gettimeofday
22092 for ac_header in glob.h
22094 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" |
$as_tr_sh`
22095 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22096 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
22097 $as_echo_n "checking for $ac_header... " >&6; }
22098 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22099 $as_echo_n "(cached) " >&6
22101 ac_res=`eval 'as_val=${'$as_ac_Header'}
22102 $as_echo "$as_val"'`
22103 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
22104 $as_echo "$ac_res" >&6; }
22106 # Is the header compilable?
22107 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
22108 $as_echo_n "checking $ac_header usability... " >&6; }
22109 cat >conftest.$ac_ext <<_ACEOF
22112 cat confdefs.h >>conftest.$ac_ext
22113 cat >>conftest.$ac_ext <<_ACEOF
22114 /* end confdefs.h. */
22115 $ac_includes_default
22116 #include <$ac_header>
22118 rm -f conftest.$ac_objext
22119 if { (ac_try="$ac_compile"
22120 case "(($ac_try" in
22121 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
22122 *) ac_try_echo
=$ac_try;;
22124 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
22125 $as_echo "$ac_try_echo") >&5
22126 (eval "$ac_compile") 2>conftest.er1
22128 grep -v '^ *+' conftest.er1
>conftest.err
22130 cat conftest.err
>&5
22131 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22132 (exit $ac_status); } && {
22133 test -z "$ac_c_werror_flag" ||
22134 test ! -s conftest.err
22135 } && test -s conftest.
$ac_objext; then
22136 ac_header_compiler
=yes
22138 $as_echo "$as_me: failed program was:" >&5
22139 sed 's/^/| /' conftest.
$ac_ext >&5
22141 ac_header_compiler
=no
22144 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
22145 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22146 $as_echo "$ac_header_compiler" >&6; }
22148 # Is the header present?
22149 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
22150 $as_echo_n "checking $ac_header presence... " >&6; }
22151 cat >conftest.
$ac_ext <<_ACEOF
22154 cat confdefs.h
>>conftest.
$ac_ext
22155 cat >>conftest.
$ac_ext <<_ACEOF
22156 /* end confdefs.h. */
22157 #include <$ac_header>
22159 if { (ac_try
="$ac_cpp conftest.$ac_ext"
22160 case "(($ac_try" in
22161 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
22162 *) ac_try_echo=$ac_try;;
22164 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22165 $as_echo "$ac_try_echo") >&5
22166 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22168 grep -v '^ *+' conftest.er1 >conftest.err
22170 cat conftest.err >&5
22171 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22172 (exit $ac_status); } >/dev/null && {
22173 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22174 test ! -s conftest.err
22176 ac_header_preproc=yes
22178 $as_echo "$as_me: failed program was:" >&5
22179 sed 's/^/| /' conftest.$ac_ext >&5
22181 ac_header_preproc=no
22184 rm -f conftest.err conftest.$ac_ext
22185 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22186 $as_echo "$ac_header_preproc" >&6; }
22188 # So? What about this header?
22189 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22191 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22192 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22193 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22194 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22195 ac_header_preproc=yes
22198 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22199 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22200 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
22201 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
22202 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22203 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22204 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
22205 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
22206 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22207 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22208 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22209 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22211 ## --------------------------------- ##
22212 ## Report this to bug-cvs@nongnu.org ##
22213 ## --------------------------------- ##
22215 ) | sed "s/^/$as_me: WARNING: /" >&2
22218 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
22219 $as_echo_n "checking for $ac_header... " >&6; }
22220 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22221 $as_echo_n "(cached) " >&6
22223 eval "$as_ac_Header=\$ac_header_preproc"
22225 ac_res=`eval 'as_val=${'$as_ac_Header'}
22226 $as_echo "$as_val"'`
22227 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
22228 $as_echo "$ac_res" >&6; }
22231 as_val=`eval 'as_val=${'$as_ac_Header'}
22232 $as_echo "$as_val"'`
22233 if test "x$as_val" = x""yes; then
22234 cat >>confdefs.h <<_ACEOF
22235 #define `$as_echo "HAVE_$ac_header" |
$as_tr_cpp` 1
22245 if test -z "$GLOB_H"; then
22246 { $as_echo "$as_me:$LINENO: checking for GNU glob interface version 1" >&5
22247 $as_echo_n "checking for GNU glob interface version 1... " >&6; }
22248 if test "${gl_cv_gnu_glob_interface_version_1+set}" = set; then
22249 $as_echo_n "(cached) " >&6
22251 cat >conftest.$ac_ext <<_ACEOF
22252 #include <gnu-versions.h>
22253 char a[_GNU_GLOB_INTERFACE_VERSION == 1 ? 1 : -1];
22255 rm -f conftest.$ac_objext
22256 if { (ac_try="$ac_compile"
22257 case "(($ac_try" in
22258 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
22259 *) ac_try_echo
=$ac_try;;
22261 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
22262 $as_echo "$ac_try_echo") >&5
22263 (eval "$ac_compile") 2>conftest.er1
22265 grep -v '^ *+' conftest.er1
>conftest.err
22267 cat conftest.err
>&5
22268 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22269 (exit $ac_status); } && {
22270 test -z "$ac_c_werror_flag" ||
22271 test ! -s conftest.err
22272 } && test -s conftest.
$ac_objext; then
22273 gl_cv_gnu_glob_interface_version_1
=yes
22275 $as_echo "$as_me: failed program was:" >&5
22276 sed 's/^/| /' conftest.
$ac_ext >&5
22278 gl_cv_gnu_glob_interface_version_1
=no
22281 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
22283 { $as_echo "$as_me:$LINENO: result: $gl_cv_gnu_glob_interface_version_1" >&5
22284 $as_echo "$gl_cv_gnu_glob_interface_version_1" >&6; }
22286 if test "$gl_cv_gnu_glob_interface_version_1" = "no"; then
22291 if test -z "$GLOB_H"; then
22292 { $as_echo "$as_me:$LINENO: checking whether glob lists broken symlinks" >&5
22293 $as_echo_n "checking whether glob lists broken symlinks... " >&6; }
22294 if test "${gl_cv_glob_lists_symlinks+set}" = set; then
22295 $as_echo_n "(cached) " >&6
22297 if ln -s conf-doesntexist conf$$
-globtest 2>/dev
/null
; then
22298 gl_cv_glob_lists_symlinks
=maybe
22300 # If we can't make a symlink, then we cannot test this issue. Be
22301 # pessimistic about this.
22302 gl_cv_glob_lists_symlinks
=no
22305 if test $gl_cv_glob_lists_symlinks = maybe
; then
22306 if test "$cross_compiling" = yes; then
22307 gl_cv_glob_lists_symlinks
=no
22309 cat >conftest.
$ac_ext <<_ACEOF
22312 cat confdefs.h
>>conftest.
$ac_ext
22313 cat >>conftest.
$ac_ext <<_ACEOF
22314 /* end confdefs.h. */
22315 #include <stddef.h>
22321 if (glob ("conf*-globtest", 0, NULL, &found) == GLOB_NOMATCH) return 1;
22326 rm -f conftest
$ac_exeext
22327 if { (ac_try
="$ac_link"
22328 case "(($ac_try" in
22329 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
22330 *) ac_try_echo=$ac_try;;
22332 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22333 $as_echo "$ac_try_echo") >&5
22334 (eval "$ac_link") 2>&5
22336 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22337 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22338 { (case "(($ac_try" in
22339 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
22340 *) ac_try_echo
=$ac_try;;
22342 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
22343 $as_echo "$ac_try_echo") >&5
22344 (eval "$ac_try") 2>&5
22346 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22347 (exit $ac_status); }; }; then
22348 gl_cv_glob_lists_symlinks
=yes
22350 $as_echo "$as_me: program exited with status $ac_status" >&5
22351 $as_echo "$as_me: failed program was:" >&5
22352 sed 's/^/| /' conftest.
$ac_ext >&5
22354 ( exit $ac_status )
22355 gl_cv_glob_lists_symlinks
=no
22357 rm -rf conftest.dSYM
22358 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
22364 { $as_echo "$as_me:$LINENO: result: $gl_cv_glob_lists_symlinks" >&5
22365 $as_echo "$gl_cv_glob_lists_symlinks" >&6; }
22367 if test $gl_cv_glob_lists_symlinks = no
; then
22372 rm -f conf$$
-globtest
22374 if test -n "$GLOB_H"; then
22398 case " $LIBOBJS " in
22399 *" glob.$ac_objext "* ) ;;
22400 *) LIBOBJS
="$LIBOBJS glob.$ac_objext"
22415 for ac_header
in stdlib.h
22417 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
22418 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22419 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
22420 $as_echo_n "checking for $ac_header... " >&6; }
22421 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22422 $as_echo_n "(cached) " >&6
22424 ac_res
=`eval 'as_val=${'$as_ac_Header'}
22425 $as_echo "$as_val"'`
22426 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
22427 $as_echo "$ac_res" >&6; }
22429 # Is the header compilable?
22430 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
22431 $as_echo_n "checking $ac_header usability... " >&6; }
22432 cat >conftest.
$ac_ext <<_ACEOF
22435 cat confdefs.h
>>conftest.
$ac_ext
22436 cat >>conftest.
$ac_ext <<_ACEOF
22437 /* end confdefs.h. */
22438 $ac_includes_default
22439 #include <$ac_header>
22441 rm -f conftest.
$ac_objext
22442 if { (ac_try
="$ac_compile"
22443 case "(($ac_try" in
22444 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
22445 *) ac_try_echo=$ac_try;;
22447 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22448 $as_echo "$ac_try_echo") >&5
22449 (eval "$ac_compile") 2>conftest.er1
22451 grep -v '^ *+' conftest.er1 >conftest.err
22453 cat conftest.err >&5
22454 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22455 (exit $ac_status); } && {
22456 test -z "$ac_c_werror_flag" ||
22457 test ! -s conftest.err
22458 } && test -s conftest.$ac_objext; then
22459 ac_header_compiler=yes
22461 $as_echo "$as_me: failed program was:" >&5
22462 sed 's/^/| /' conftest.$ac_ext >&5
22464 ac_header_compiler=no
22467 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22468 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22469 $as_echo "$ac_header_compiler" >&6; }
22471 # Is the header present?
22472 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
22473 $as_echo_n "checking $ac_header presence... " >&6; }
22474 cat >conftest.$ac_ext <<_ACEOF
22477 cat confdefs.h >>conftest.$ac_ext
22478 cat >>conftest.$ac_ext <<_ACEOF
22479 /* end confdefs.h. */
22480 #include <$ac_header>
22482 if { (ac_try="$ac_cpp conftest.$ac_ext"
22483 case "(($ac_try" in
22484 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
22485 *) ac_try_echo
=$ac_try;;
22487 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
22488 $as_echo "$ac_try_echo") >&5
22489 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22491 grep -v '^ *+' conftest.er1
>conftest.err
22493 cat conftest.err
>&5
22494 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22495 (exit $ac_status); } >/dev
/null
&& {
22496 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22497 test ! -s conftest.err
22499 ac_header_preproc
=yes
22501 $as_echo "$as_me: failed program was:" >&5
22502 sed 's/^/| /' conftest.
$ac_ext >&5
22504 ac_header_preproc
=no
22507 rm -f conftest.err conftest.
$ac_ext
22508 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22509 $as_echo "$ac_header_preproc" >&6; }
22511 # So? What about this header?
22512 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22514 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22515 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22516 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22517 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22518 ac_header_preproc
=yes
22521 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22522 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22523 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
22524 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
22525 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22526 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22527 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
22528 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
22529 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22530 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22531 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22532 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22534 ## --------------------------------- ##
22535 ## Report this to bug-cvs@nongnu.org ##
22536 ## --------------------------------- ##
22538 ) |
sed "s/^/$as_me: WARNING: /" >&2
22541 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
22542 $as_echo_n "checking for $ac_header... " >&6; }
22543 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22544 $as_echo_n "(cached) " >&6
22546 eval "$as_ac_Header=\$ac_header_preproc"
22548 ac_res
=`eval 'as_val=${'$as_ac_Header'}
22549 $as_echo "$as_val"'`
22550 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
22551 $as_echo "$ac_res" >&6; }
22554 as_val
=`eval 'as_val=${'$as_ac_Header'}
22555 $as_echo "$as_val"'`
22556 if test "x$as_val" = x
""yes; then
22557 cat >>confdefs.h
<<_ACEOF
22558 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
22565 { $as_echo "$as_me:$LINENO: checking for GNU libc compatible malloc" >&5
22566 $as_echo_n "checking for GNU libc compatible malloc... " >&6; }
22567 if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then
22568 $as_echo_n "(cached) " >&6
22570 if test "$cross_compiling" = yes; then
22571 ac_cv_func_malloc_0_nonnull
=no
22573 cat >conftest.
$ac_ext <<_ACEOF
22576 cat confdefs.h
>>conftest.
$ac_ext
22577 cat >>conftest.
$ac_ext <<_ACEOF
22578 /* end confdefs.h. */
22579 #if defined STDC_HEADERS || defined HAVE_STDLIB_H
22580 # include <stdlib.h>
22588 return ! malloc (0);
22593 rm -f conftest
$ac_exeext
22594 if { (ac_try
="$ac_link"
22595 case "(($ac_try" in
22596 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
22597 *) ac_try_echo=$ac_try;;
22599 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22600 $as_echo "$ac_try_echo") >&5
22601 (eval "$ac_link") 2>&5
22603 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22604 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22605 { (case "(($ac_try" in
22606 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
22607 *) ac_try_echo
=$ac_try;;
22609 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
22610 $as_echo "$ac_try_echo") >&5
22611 (eval "$ac_try") 2>&5
22613 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22614 (exit $ac_status); }; }; then
22615 ac_cv_func_malloc_0_nonnull
=yes
22617 $as_echo "$as_me: program exited with status $ac_status" >&5
22618 $as_echo "$as_me: failed program was:" >&5
22619 sed 's/^/| /' conftest.
$ac_ext >&5
22621 ( exit $ac_status )
22622 ac_cv_func_malloc_0_nonnull
=no
22624 rm -rf conftest.dSYM
22625 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
22630 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_malloc_0_nonnull" >&5
22631 $as_echo "$ac_cv_func_malloc_0_nonnull" >&6; }
22632 if test $ac_cv_func_malloc_0_nonnull = yes; then
22634 cat >>confdefs.h
<<\_ACEOF
22635 #define HAVE_MALLOC 1
22639 cat >>confdefs.h
<<\_ACEOF
22640 #define HAVE_MALLOC 0
22643 case " $LIBOBJS " in
22644 *" malloc.$ac_objext "* ) ;;
22645 *) LIBOBJS
="$LIBOBJS malloc.$ac_objext"
22650 cat >>confdefs.h
<<\_ACEOF
22651 #define malloc rpl_malloc
22671 if test x
$ac_cv_header_wchar_h = xyes
&& test x
$ac_cv_header_wctype_h = xyes
; then
22672 case " $LIBOBJS " in
22673 *" mbchar.$ac_objext "* ) ;;
22674 *) LIBOBJS
="$LIBOBJS mbchar.$ac_objext"
22689 case " $LIBOBJS " in
22690 *" md5.$ac_objext "* ) ;;
22691 *) LIBOBJS
="$LIBOBJS md5.$ac_objext"
22703 for ac_func
in memchr
22705 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
22706 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
22707 $as_echo_n "checking for $ac_func... " >&6; }
22708 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
22709 $as_echo_n "(cached) " >&6
22711 cat >conftest.
$ac_ext <<_ACEOF
22714 cat confdefs.h
>>conftest.
$ac_ext
22715 cat >>conftest.
$ac_ext <<_ACEOF
22716 /* end confdefs.h. */
22717 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22718 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22719 #define $ac_func innocuous_$ac_func
22721 /* System header to define __stub macros and hopefully few prototypes,
22722 which can conflict with char $ac_func (); below.
22723 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22724 <limits.h> exists even on freestanding compilers. */
22727 # include <limits.h>
22729 # include <assert.h>
22734 /* Override any GCC internal prototype to avoid an error.
22735 Use char because int might match the return type of a GCC
22736 builtin and then its argument prototype would still apply. */
22741 /* The GNU C library defines this for functions which it implements
22742 to always fail with ENOSYS. Some functions are actually named
22743 something starting with __ and the normal name is an alias. */
22744 #if defined __stub_$ac_func || defined __stub___$ac_func
22751 return $ac_func ();
22756 rm -f conftest.
$ac_objext conftest
$ac_exeext
22757 if { (ac_try
="$ac_link"
22758 case "(($ac_try" in
22759 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
22760 *) ac_try_echo=$ac_try;;
22762 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22763 $as_echo "$ac_try_echo") >&5
22764 (eval "$ac_link") 2>conftest.er1
22766 grep -v '^ *+' conftest.er1 >conftest.err
22768 cat conftest.err >&5
22769 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22770 (exit $ac_status); } && {
22771 test -z "$ac_c_werror_flag" ||
22772 test ! -s conftest.err
22773 } && test -s conftest$ac_exeext && {
22774 test "$cross_compiling" = yes ||
22775 $as_test_x conftest$ac_exeext
22777 eval "$as_ac_var=yes"
22779 $as_echo "$as_me: failed program was:" >&5
22780 sed 's/^/| /' conftest.$ac_ext >&5
22782 eval "$as_ac_var=no"
22785 rm -rf conftest.dSYM
22786 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22787 conftest$ac_exeext conftest.$ac_ext
22789 ac_res=`eval 'as_val=${'$as_ac_var'}
22790 $as_echo "$as_val"'`
22791 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
22792 $as_echo "$ac_res" >&6; }
22793 as_val=`eval 'as_val=${'$as_ac_var'}
22794 $as_echo "$as_val"'`
22795 if test "x$as_val" = x""yes; then
22796 cat >>confdefs.h <<_ACEOF
22797 #define `$as_echo "HAVE_$ac_func" |
$as_tr_cpp` 1
22801 case " $LIBOBJS " in
22802 *" $ac_func.$ac_objext "* ) ;;
22803 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
22811 if test $ac_cv_func_memchr = no; then
22814 for ac_header in bp-sym.h
22816 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" |
$as_tr_sh`
22817 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22818 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
22819 $as_echo_n "checking for $ac_header... " >&6; }
22820 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22821 $as_echo_n "(cached) " >&6
22823 ac_res=`eval 'as_val=${'$as_ac_Header'}
22824 $as_echo "$as_val"'`
22825 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
22826 $as_echo "$ac_res" >&6; }
22828 # Is the header compilable?
22829 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
22830 $as_echo_n "checking $ac_header usability... " >&6; }
22831 cat >conftest.$ac_ext <<_ACEOF
22834 cat confdefs.h >>conftest.$ac_ext
22835 cat >>conftest.$ac_ext <<_ACEOF
22836 /* end confdefs.h. */
22837 $ac_includes_default
22838 #include <$ac_header>
22840 rm -f conftest.$ac_objext
22841 if { (ac_try="$ac_compile"
22842 case "(($ac_try" in
22843 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
22844 *) ac_try_echo
=$ac_try;;
22846 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
22847 $as_echo "$ac_try_echo") >&5
22848 (eval "$ac_compile") 2>conftest.er1
22850 grep -v '^ *+' conftest.er1
>conftest.err
22852 cat conftest.err
>&5
22853 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22854 (exit $ac_status); } && {
22855 test -z "$ac_c_werror_flag" ||
22856 test ! -s conftest.err
22857 } && test -s conftest.
$ac_objext; then
22858 ac_header_compiler
=yes
22860 $as_echo "$as_me: failed program was:" >&5
22861 sed 's/^/| /' conftest.
$ac_ext >&5
22863 ac_header_compiler
=no
22866 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
22867 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22868 $as_echo "$ac_header_compiler" >&6; }
22870 # Is the header present?
22871 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
22872 $as_echo_n "checking $ac_header presence... " >&6; }
22873 cat >conftest.
$ac_ext <<_ACEOF
22876 cat confdefs.h
>>conftest.
$ac_ext
22877 cat >>conftest.
$ac_ext <<_ACEOF
22878 /* end confdefs.h. */
22879 #include <$ac_header>
22881 if { (ac_try
="$ac_cpp conftest.$ac_ext"
22882 case "(($ac_try" in
22883 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
22884 *) ac_try_echo=$ac_try;;
22886 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22887 $as_echo "$ac_try_echo") >&5
22888 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22890 grep -v '^ *+' conftest.er1 >conftest.err
22892 cat conftest.err >&5
22893 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22894 (exit $ac_status); } >/dev/null && {
22895 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22896 test ! -s conftest.err
22898 ac_header_preproc=yes
22900 $as_echo "$as_me: failed program was:" >&5
22901 sed 's/^/| /' conftest.$ac_ext >&5
22903 ac_header_preproc=no
22906 rm -f conftest.err conftest.$ac_ext
22907 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22908 $as_echo "$ac_header_preproc" >&6; }
22910 # So? What about this header?
22911 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22913 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22914 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22915 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22916 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22917 ac_header_preproc=yes
22920 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22921 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22922 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
22923 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
22924 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22925 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22926 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
22927 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
22928 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22929 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22930 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22931 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22933 ## --------------------------------- ##
22934 ## Report this to bug-cvs@nongnu.org ##
22935 ## --------------------------------- ##
22937 ) | sed "s/^/$as_me: WARNING: /" >&2
22940 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
22941 $as_echo_n "checking for $ac_header... " >&6; }
22942 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22943 $as_echo_n "(cached) " >&6
22945 eval "$as_ac_Header=\$ac_header_preproc"
22947 ac_res=`eval 'as_val=${'$as_ac_Header'}
22948 $as_echo "$as_val"'`
22949 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
22950 $as_echo "$ac_res" >&6; }
22953 as_val=`eval 'as_val=${'$as_ac_Header'}
22954 $as_echo "$as_val"'`
22955 if test "x$as_val" = x""yes; then
22956 cat >>confdefs.h <<_ACEOF
22957 #define `$as_echo "HAVE_$ac_header" |
$as_tr_cpp` 1
22969 for ac_func in memmove
22971 as_ac_var=`$as_echo "ac_cv_func_$ac_func" |
$as_tr_sh`
22972 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
22973 $as_echo_n "checking for $ac_func... " >&6; }
22974 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
22975 $as_echo_n "(cached) " >&6
22977 cat >conftest.$ac_ext <<_ACEOF
22980 cat confdefs.h >>conftest.$ac_ext
22981 cat >>conftest.$ac_ext <<_ACEOF
22982 /* end confdefs.h. */
22983 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22984 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22985 #define $ac_func innocuous_$ac_func
22987 /* System header to define __stub macros and hopefully few prototypes,
22988 which can conflict with char $ac_func (); below.
22989 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22990 <limits.h> exists even on freestanding compilers. */
22993 # include <limits.h>
22995 # include <assert.h>
23000 /* Override any GCC internal prototype to avoid an error.
23001 Use char because int might match the return type of a GCC
23002 builtin and then its argument prototype would still apply. */
23007 /* The GNU C library defines this for functions which it implements
23008 to always fail with ENOSYS. Some functions are actually named
23009 something starting with __ and the normal name is an alias. */
23010 #if defined __stub_$ac_func || defined __stub___$ac_func
23017 return $ac_func ();
23022 rm -f conftest.$ac_objext conftest$ac_exeext
23023 if { (ac_try="$ac_link"
23024 case "(($ac_try" in
23025 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
23026 *) ac_try_echo
=$ac_try;;
23028 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
23029 $as_echo "$ac_try_echo") >&5
23030 (eval "$ac_link") 2>conftest.er1
23032 grep -v '^ *+' conftest.er1
>conftest.err
23034 cat conftest.err
>&5
23035 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23036 (exit $ac_status); } && {
23037 test -z "$ac_c_werror_flag" ||
23038 test ! -s conftest.err
23039 } && test -s conftest
$ac_exeext && {
23040 test "$cross_compiling" = yes ||
23041 $as_test_x conftest
$ac_exeext
23043 eval "$as_ac_var=yes"
23045 $as_echo "$as_me: failed program was:" >&5
23046 sed 's/^/| /' conftest.
$ac_ext >&5
23048 eval "$as_ac_var=no"
23051 rm -rf conftest.dSYM
23052 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
23053 conftest
$ac_exeext conftest.
$ac_ext
23055 ac_res
=`eval 'as_val=${'$as_ac_var'}
23056 $as_echo "$as_val"'`
23057 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
23058 $as_echo "$ac_res" >&6; }
23059 as_val
=`eval 'as_val=${'$as_ac_var'}
23060 $as_echo "$as_val"'`
23061 if test "x$as_val" = x
""yes; then
23062 cat >>confdefs.h
<<_ACEOF
23063 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
23067 case " $LIBOBJS " in
23068 *" $ac_func.$ac_objext "* ) ;;
23069 *) LIBOBJS
="$LIBOBJS $ac_func.$ac_objext"
23077 if test $ac_cv_func_memmove = no
; then
23089 for ac_func
in mempcpy
23091 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
23092 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
23093 $as_echo_n "checking for $ac_func... " >&6; }
23094 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
23095 $as_echo_n "(cached) " >&6
23097 cat >conftest.
$ac_ext <<_ACEOF
23100 cat confdefs.h
>>conftest.
$ac_ext
23101 cat >>conftest.
$ac_ext <<_ACEOF
23102 /* end confdefs.h. */
23103 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
23104 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23105 #define $ac_func innocuous_$ac_func
23107 /* System header to define __stub macros and hopefully few prototypes,
23108 which can conflict with char $ac_func (); below.
23109 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23110 <limits.h> exists even on freestanding compilers. */
23113 # include <limits.h>
23115 # include <assert.h>
23120 /* Override any GCC internal prototype to avoid an error.
23121 Use char because int might match the return type of a GCC
23122 builtin and then its argument prototype would still apply. */
23127 /* The GNU C library defines this for functions which it implements
23128 to always fail with ENOSYS. Some functions are actually named
23129 something starting with __ and the normal name is an alias. */
23130 #if defined __stub_$ac_func || defined __stub___$ac_func
23137 return $ac_func ();
23142 rm -f conftest.
$ac_objext conftest
$ac_exeext
23143 if { (ac_try
="$ac_link"
23144 case "(($ac_try" in
23145 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
23146 *) ac_try_echo=$ac_try;;
23148 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23149 $as_echo "$ac_try_echo") >&5
23150 (eval "$ac_link") 2>conftest.er1
23152 grep -v '^ *+' conftest.er1 >conftest.err
23154 cat conftest.err >&5
23155 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23156 (exit $ac_status); } && {
23157 test -z "$ac_c_werror_flag" ||
23158 test ! -s conftest.err
23159 } && test -s conftest$ac_exeext && {
23160 test "$cross_compiling" = yes ||
23161 $as_test_x conftest$ac_exeext
23163 eval "$as_ac_var=yes"
23165 $as_echo "$as_me: failed program was:" >&5
23166 sed 's/^/| /' conftest.$ac_ext >&5
23168 eval "$as_ac_var=no"
23171 rm -rf conftest.dSYM
23172 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23173 conftest$ac_exeext conftest.$ac_ext
23175 ac_res=`eval 'as_val=${'$as_ac_var'}
23176 $as_echo "$as_val"'`
23177 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
23178 $as_echo "$ac_res" >&6; }
23179 as_val=`eval 'as_val=${'$as_ac_var'}
23180 $as_echo "$as_val"'`
23181 if test "x$as_val" = x""yes; then
23182 cat >>confdefs.h <<_ACEOF
23183 #define `$as_echo "HAVE_$ac_func" |
$as_tr_cpp` 1
23187 case " $LIBOBJS " in
23188 *" $ac_func.$ac_objext "* ) ;;
23189 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
23197 if test $ac_cv_func_mempcpy = no; then
23217 for ac_func in memrchr
23219 as_ac_var=`$as_echo "ac_cv_func_$ac_func" |
$as_tr_sh`
23220 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
23221 $as_echo_n "checking for $ac_func... " >&6; }
23222 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
23223 $as_echo_n "(cached) " >&6
23225 cat >conftest.$ac_ext <<_ACEOF
23228 cat confdefs.h >>conftest.$ac_ext
23229 cat >>conftest.$ac_ext <<_ACEOF
23230 /* end confdefs.h. */
23231 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
23232 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23233 #define $ac_func innocuous_$ac_func
23235 /* System header to define __stub macros and hopefully few prototypes,
23236 which can conflict with char $ac_func (); below.
23237 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23238 <limits.h> exists even on freestanding compilers. */
23241 # include <limits.h>
23243 # include <assert.h>
23248 /* Override any GCC internal prototype to avoid an error.
23249 Use char because int might match the return type of a GCC
23250 builtin and then its argument prototype would still apply. */
23255 /* The GNU C library defines this for functions which it implements
23256 to always fail with ENOSYS. Some functions are actually named
23257 something starting with __ and the normal name is an alias. */
23258 #if defined __stub_$ac_func || defined __stub___$ac_func
23265 return $ac_func ();
23270 rm -f conftest.$ac_objext conftest$ac_exeext
23271 if { (ac_try="$ac_link"
23272 case "(($ac_try" in
23273 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
23274 *) ac_try_echo
=$ac_try;;
23276 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
23277 $as_echo "$ac_try_echo") >&5
23278 (eval "$ac_link") 2>conftest.er1
23280 grep -v '^ *+' conftest.er1
>conftest.err
23282 cat conftest.err
>&5
23283 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23284 (exit $ac_status); } && {
23285 test -z "$ac_c_werror_flag" ||
23286 test ! -s conftest.err
23287 } && test -s conftest
$ac_exeext && {
23288 test "$cross_compiling" = yes ||
23289 $as_test_x conftest
$ac_exeext
23291 eval "$as_ac_var=yes"
23293 $as_echo "$as_me: failed program was:" >&5
23294 sed 's/^/| /' conftest.
$ac_ext >&5
23296 eval "$as_ac_var=no"
23299 rm -rf conftest.dSYM
23300 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
23301 conftest
$ac_exeext conftest.
$ac_ext
23303 ac_res
=`eval 'as_val=${'$as_ac_var'}
23304 $as_echo "$as_val"'`
23305 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
23306 $as_echo "$ac_res" >&6; }
23307 as_val
=`eval 'as_val=${'$as_ac_var'}
23308 $as_echo "$as_val"'`
23309 if test "x$as_val" = x
""yes; then
23310 cat >>confdefs.h
<<_ACEOF
23311 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
23315 case " $LIBOBJS " in
23316 *" $ac_func.$ac_objext "* ) ;;
23317 *) LIBOBJS
="$LIBOBJS $ac_func.$ac_objext"
23325 if test $ac_cv_func_memrchr = no
; then
23332 { $as_echo "$as_me:$LINENO: checking whether mkdir fails due to a trailing slash" >&5
23333 $as_echo_n "checking whether mkdir fails due to a trailing slash... " >&6; }
23334 if test "${gl_cv_func_mkdir_trailing_slash_bug+set}" = set; then
23335 $as_echo_n "(cached) " >&6
23338 # Arrange for deletion of the temporary directory this test might create.
23339 ac_clean_files
="$ac_clean_files confdir-slash"
23340 if test "$cross_compiling" = yes; then
23341 gl_cv_func_mkdir_trailing_slash_bug
=yes
23344 cat >conftest.
$ac_ext <<_ACEOF
23347 cat confdefs.h
>>conftest.
$ac_ext
23348 cat >>conftest.
$ac_ext <<_ACEOF
23349 /* end confdefs.h. */
23351 # include <sys/types.h>
23352 # include <sys/stat.h>
23353 # include <stdlib.h>
23356 rmdir ("confdir-slash");
23357 exit (mkdir ("confdir-slash/", 0700));
23361 rm -f conftest
$ac_exeext
23362 if { (ac_try
="$ac_link"
23363 case "(($ac_try" in
23364 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
23365 *) ac_try_echo=$ac_try;;
23367 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23368 $as_echo "$ac_try_echo") >&5
23369 (eval "$ac_link") 2>&5
23371 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23372 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23373 { (case "(($ac_try" in
23374 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
23375 *) ac_try_echo
=$ac_try;;
23377 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
23378 $as_echo "$ac_try_echo") >&5
23379 (eval "$ac_try") 2>&5
23381 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23382 (exit $ac_status); }; }; then
23383 gl_cv_func_mkdir_trailing_slash_bug
=no
23385 $as_echo "$as_me: program exited with status $ac_status" >&5
23386 $as_echo "$as_me: failed program was:" >&5
23387 sed 's/^/| /' conftest.
$ac_ext >&5
23389 ( exit $ac_status )
23390 gl_cv_func_mkdir_trailing_slash_bug
=yes
23392 rm -rf conftest.dSYM
23393 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
23400 { $as_echo "$as_me:$LINENO: result: $gl_cv_func_mkdir_trailing_slash_bug" >&5
23401 $as_echo "$gl_cv_func_mkdir_trailing_slash_bug" >&6; }
23403 if test $gl_cv_func_mkdir_trailing_slash_bug = yes; then
23404 case " $LIBOBJS " in
23405 *" mkdir.$ac_objext "* ) ;;
23406 *) LIBOBJS
="$LIBOBJS mkdir.$ac_objext"
23411 cat >>confdefs.h
<<\_ACEOF
23412 #define mkdir rpl_mkdir
23419 for ac_func
in mkstemp
23421 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
23422 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
23423 $as_echo_n "checking for $ac_func... " >&6; }
23424 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
23425 $as_echo_n "(cached) " >&6
23427 cat >conftest.
$ac_ext <<_ACEOF
23430 cat confdefs.h
>>conftest.
$ac_ext
23431 cat >>conftest.
$ac_ext <<_ACEOF
23432 /* end confdefs.h. */
23433 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
23434 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23435 #define $ac_func innocuous_$ac_func
23437 /* System header to define __stub macros and hopefully few prototypes,
23438 which can conflict with char $ac_func (); below.
23439 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23440 <limits.h> exists even on freestanding compilers. */
23443 # include <limits.h>
23445 # include <assert.h>
23450 /* Override any GCC internal prototype to avoid an error.
23451 Use char because int might match the return type of a GCC
23452 builtin and then its argument prototype would still apply. */
23457 /* The GNU C library defines this for functions which it implements
23458 to always fail with ENOSYS. Some functions are actually named
23459 something starting with __ and the normal name is an alias. */
23460 #if defined __stub_$ac_func || defined __stub___$ac_func
23467 return $ac_func ();
23472 rm -f conftest.
$ac_objext conftest
$ac_exeext
23473 if { (ac_try
="$ac_link"
23474 case "(($ac_try" in
23475 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
23476 *) ac_try_echo=$ac_try;;
23478 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23479 $as_echo "$ac_try_echo") >&5
23480 (eval "$ac_link") 2>conftest.er1
23482 grep -v '^ *+' conftest.er1 >conftest.err
23484 cat conftest.err >&5
23485 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23486 (exit $ac_status); } && {
23487 test -z "$ac_c_werror_flag" ||
23488 test ! -s conftest.err
23489 } && test -s conftest$ac_exeext && {
23490 test "$cross_compiling" = yes ||
23491 $as_test_x conftest$ac_exeext
23493 eval "$as_ac_var=yes"
23495 $as_echo "$as_me: failed program was:" >&5
23496 sed 's/^/| /' conftest.$ac_ext >&5
23498 eval "$as_ac_var=no"
23501 rm -rf conftest.dSYM
23502 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23503 conftest$ac_exeext conftest.$ac_ext
23505 ac_res=`eval 'as_val=${'$as_ac_var'}
23506 $as_echo "$as_val"'`
23507 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
23508 $as_echo "$ac_res" >&6; }
23509 as_val=`eval 'as_val=${'$as_ac_var'}
23510 $as_echo "$as_val"'`
23511 if test "x$as_val" = x""yes; then
23512 cat >>confdefs.h <<_ACEOF
23513 #define `$as_echo "HAVE_$ac_func" |
$as_tr_cpp` 1
23517 case " $LIBOBJS " in
23518 *" $ac_func.$ac_objext "* ) ;;
23519 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
23527 if test $ac_cv_func_mkstemp = no; then
23528 gl_cv_func_mkstemp_limitations=yes
23530 { $as_echo "$as_me:$LINENO: checking for mkstemp limitations" >&5
23531 $as_echo_n "checking for mkstemp limitations... " >&6; }
23532 if test "${gl_cv_func_mkstemp_limitations+set}" = set; then
23533 $as_echo_n "(cached) " >&6
23536 mkdir conftest.mkstemp
23537 if test "$cross_compiling" = yes; then
23538 gl_cv_func_mkstemp_limitations=yes
23541 cat >conftest.$ac_ext <<_ACEOF
23544 cat confdefs.h >>conftest.$ac_ext
23545 cat >>conftest.$ac_ext <<_ACEOF
23546 /* end confdefs.h. */
23548 # include <stdlib.h>
23549 # include <unistd.h>
23553 for (i = 0; i < 70; i++)
23555 char template[] = "conftest.mkstemp/coXXXXXX";
23556 int fd = mkstemp (template);
23565 rm -f conftest$ac_exeext
23566 if { (ac_try="$ac_link"
23567 case "(($ac_try" in
23568 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
23569 *) ac_try_echo
=$ac_try;;
23571 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
23572 $as_echo "$ac_try_echo") >&5
23573 (eval "$ac_link") 2>&5
23575 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23576 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
23577 { (case "(($ac_try" in
23578 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
23579 *) ac_try_echo=$ac_try;;
23581 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23582 $as_echo "$ac_try_echo") >&5
23583 (eval "$ac_try") 2>&5
23585 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23586 (exit $ac_status); }; }; then
23587 gl_cv_func_mkstemp_limitations=no
23589 $as_echo "$as_me: program exited with status $ac_status" >&5
23590 $as_echo "$as_me: failed program was:" >&5
23591 sed 's/^/| /' conftest.$ac_ext >&5
23593 ( exit $ac_status )
23594 gl_cv_func_mkstemp_limitations=yes
23596 rm -rf conftest.dSYM
23597 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23601 rm -rf conftest.mkstemp
23605 { $as_echo "$as_me:$LINENO: result: $gl_cv_func_mkstemp_limitations" >&5
23606 $as_echo "$gl_cv_func_mkstemp_limitations" >&6; }
23609 if test $gl_cv_func_mkstemp_limitations = yes; then
23610 case " $LIBOBJS " in
23611 *" mkstemp.$ac_objext "* ) ;;
23612 *) LIBOBJS="$LIBOBJS mkstemp.$ac_objext"
23616 case " $LIBOBJS " in
23617 *" tempname.$ac_objext "* ) ;;
23618 *) LIBOBJS="$LIBOBJS tempname.$ac_objext"
23623 cat >>confdefs.h <<\_ACEOF
23624 #define mkstemp rpl_mkstemp
23645 for ac_func in __secure_getenv gettimeofday
23647 as_ac_var=`$as_echo "ac_cv_func_$ac_func" |
$as_tr_sh`
23648 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
23649 $as_echo_n "checking for $ac_func... " >&6; }
23650 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
23651 $as_echo_n "(cached) " >&6
23653 cat >conftest.$ac_ext <<_ACEOF
23656 cat confdefs.h >>conftest.$ac_ext
23657 cat >>conftest.$ac_ext <<_ACEOF
23658 /* end confdefs.h. */
23659 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
23660 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23661 #define $ac_func innocuous_$ac_func
23663 /* System header to define __stub macros and hopefully few prototypes,
23664 which can conflict with char $ac_func (); below.
23665 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23666 <limits.h> exists even on freestanding compilers. */
23669 # include <limits.h>
23671 # include <assert.h>
23676 /* Override any GCC internal prototype to avoid an error.
23677 Use char because int might match the return type of a GCC
23678 builtin and then its argument prototype would still apply. */
23683 /* The GNU C library defines this for functions which it implements
23684 to always fail with ENOSYS. Some functions are actually named
23685 something starting with __ and the normal name is an alias. */
23686 #if defined __stub_$ac_func || defined __stub___$ac_func
23693 return $ac_func ();
23698 rm -f conftest.$ac_objext conftest$ac_exeext
23699 if { (ac_try="$ac_link"
23700 case "(($ac_try" in
23701 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
23702 *) ac_try_echo
=$ac_try;;
23704 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
23705 $as_echo "$ac_try_echo") >&5
23706 (eval "$ac_link") 2>conftest.er1
23708 grep -v '^ *+' conftest.er1
>conftest.err
23710 cat conftest.err
>&5
23711 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23712 (exit $ac_status); } && {
23713 test -z "$ac_c_werror_flag" ||
23714 test ! -s conftest.err
23715 } && test -s conftest
$ac_exeext && {
23716 test "$cross_compiling" = yes ||
23717 $as_test_x conftest
$ac_exeext
23719 eval "$as_ac_var=yes"
23721 $as_echo "$as_me: failed program was:" >&5
23722 sed 's/^/| /' conftest.
$ac_ext >&5
23724 eval "$as_ac_var=no"
23727 rm -rf conftest.dSYM
23728 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
23729 conftest
$ac_exeext conftest.
$ac_ext
23731 ac_res
=`eval 'as_val=${'$as_ac_var'}
23732 $as_echo "$as_val"'`
23733 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
23734 $as_echo "$ac_res" >&6; }
23735 as_val
=`eval 'as_val=${'$as_ac_var'}
23736 $as_echo "$as_val"'`
23737 if test "x$as_val" = x
""yes; then
23738 cat >>confdefs.h
<<_ACEOF
23739 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
23758 if test $ac_cv_func_working_mktime = no
; then
23760 cat >>confdefs.h
<<\_ACEOF
23761 #define mktime rpl_mktime
23770 nanosleep_save_libs
=$LIBS
23772 # Solaris 2.5.1 needs -lposix4 to get the nanosleep function.
23773 # Solaris 7 prefers the library name -lrt to the obsolescent name -lposix4.
23774 { $as_echo "$as_me:$LINENO: checking for library containing nanosleep" >&5
23775 $as_echo_n "checking for library containing nanosleep... " >&6; }
23776 if test "${ac_cv_search_nanosleep+set}" = set; then
23777 $as_echo_n "(cached) " >&6
23779 ac_func_search_save_LIBS
=$LIBS
23780 cat >conftest.
$ac_ext <<_ACEOF
23783 cat confdefs.h
>>conftest.
$ac_ext
23784 cat >>conftest.
$ac_ext <<_ACEOF
23785 /* end confdefs.h. */
23787 /* Override any GCC internal prototype to avoid an error.
23788 Use char because int might match the return type of a GCC
23789 builtin and then its argument prototype would still apply. */
23797 return nanosleep ();
23802 for ac_lib
in '' rt posix4
; do
23803 if test -z "$ac_lib"; then
23804 ac_res
="none required"
23807 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
23809 rm -f conftest.
$ac_objext conftest
$ac_exeext
23810 if { (ac_try
="$ac_link"
23811 case "(($ac_try" in
23812 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
23813 *) ac_try_echo=$ac_try;;
23815 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23816 $as_echo "$ac_try_echo") >&5
23817 (eval "$ac_link") 2>conftest.er1
23819 grep -v '^ *+' conftest.er1 >conftest.err
23821 cat conftest.err >&5
23822 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23823 (exit $ac_status); } && {
23824 test -z "$ac_c_werror_flag" ||
23825 test ! -s conftest.err
23826 } && test -s conftest$ac_exeext && {
23827 test "$cross_compiling" = yes ||
23828 $as_test_x conftest$ac_exeext
23830 ac_cv_search_nanosleep=$ac_res
23832 $as_echo "$as_me: failed program was:" >&5
23833 sed 's/^/| /' conftest.$ac_ext >&5
23838 rm -rf conftest.dSYM
23839 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23841 if test "${ac_cv_search_nanosleep+set}" = set; then
23845 if test "${ac_cv_search_nanosleep+set}" = set; then
23848 ac_cv_search_nanosleep=no
23850 rm conftest.$ac_ext
23851 LIBS=$ac_func_search_save_LIBS
23853 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_nanosleep" >&5
23854 $as_echo "$ac_cv_search_nanosleep" >&6; }
23855 ac_res=$ac_cv_search_nanosleep
23856 if test "$ac_res" != no; then
23857 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
23858 test "$ac_cv_search_nanosleep" = "none required" ||
23859 LIB_NANOSLEEP=$ac_cv_search_nanosleep
23864 { $as_echo "$as_me:$LINENO: checking whether nanosleep works" >&5
23865 $as_echo_n "checking whether nanosleep works... " >&6; }
23866 if test "${jm_cv_func_nanosleep_works+set}" = set; then
23867 $as_echo_n "(cached) " >&6
23878 if test "$cross_compiling" = yes; then
23879 jm_cv_func_nanosleep_works=no
23881 cat >conftest.$ac_ext <<_ACEOF
23884 cat confdefs.h >>conftest.$ac_ext
23885 cat >>conftest.$ac_ext <<_ACEOF
23886 /* end confdefs.h. */
23888 # if TIME_WITH_SYS_TIME
23889 # include <sys/time.h>
23892 # if HAVE_SYS_TIME_H
23893 # include <sys/time.h>
23902 struct timespec ts_sleep, ts_remaining;
23903 ts_sleep.tv_sec = 0;
23904 ts_sleep.tv_nsec = 1;
23905 exit (nanosleep (&ts_sleep, &ts_remaining) == 0 ? 0 : 1);
23909 rm -f conftest$ac_exeext
23910 if { (ac_try="$ac_link"
23911 case "(($ac_try" in
23912 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
23913 *) ac_try_echo
=$ac_try;;
23915 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
23916 $as_echo "$ac_try_echo") >&5
23917 (eval "$ac_link") 2>&5
23919 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23920 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
23921 { (case "(($ac_try" in
23922 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
23923 *) ac_try_echo=$ac_try;;
23925 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23926 $as_echo "$ac_try_echo") >&5
23927 (eval "$ac_try") 2>&5
23929 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23930 (exit $ac_status); }; }; then
23931 jm_cv_func_nanosleep_works=yes
23933 $as_echo "$as_me: program exited with status $ac_status" >&5
23934 $as_echo "$as_me: failed program was:" >&5
23935 sed 's/^/| /' conftest.$ac_ext >&5
23937 ( exit $ac_status )
23938 jm_cv_func_nanosleep_works=no
23940 rm -rf conftest.dSYM
23941 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23947 { $as_echo "$as_me:$LINENO: result: $jm_cv_func_nanosleep_works" >&5
23948 $as_echo "$jm_cv_func_nanosleep_works" >&6; }
23949 if test $jm_cv_func_nanosleep_works = no; then
23950 case " $LIBOBJS " in
23951 *" nanosleep.$ac_objext "* ) ;;
23952 *) LIBOBJS="$LIBOBJS nanosleep.$ac_objext"
23957 cat >>confdefs.h <<\_ACEOF
23958 #define nanosleep rpl_nanosleep
23979 LIBS=$nanosleep_save_libs
23985 for ac_func in openat
23987 as_ac_var=`$as_echo "ac_cv_func_$ac_func" |
$as_tr_sh`
23988 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
23989 $as_echo_n "checking for $ac_func... " >&6; }
23990 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
23991 $as_echo_n "(cached) " >&6
23993 cat >conftest.$ac_ext <<_ACEOF
23996 cat confdefs.h >>conftest.$ac_ext
23997 cat >>conftest.$ac_ext <<_ACEOF
23998 /* end confdefs.h. */
23999 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24000 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24001 #define $ac_func innocuous_$ac_func
24003 /* System header to define __stub macros and hopefully few prototypes,
24004 which can conflict with char $ac_func (); below.
24005 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24006 <limits.h> exists even on freestanding compilers. */
24009 # include <limits.h>
24011 # include <assert.h>
24016 /* Override any GCC internal prototype to avoid an error.
24017 Use char because int might match the return type of a GCC
24018 builtin and then its argument prototype would still apply. */
24023 /* The GNU C library defines this for functions which it implements
24024 to always fail with ENOSYS. Some functions are actually named
24025 something starting with __ and the normal name is an alias. */
24026 #if defined __stub_$ac_func || defined __stub___$ac_func
24033 return $ac_func ();
24038 rm -f conftest.$ac_objext conftest$ac_exeext
24039 if { (ac_try="$ac_link"
24040 case "(($ac_try" in
24041 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
24042 *) ac_try_echo
=$ac_try;;
24044 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
24045 $as_echo "$ac_try_echo") >&5
24046 (eval "$ac_link") 2>conftest.er1
24048 grep -v '^ *+' conftest.er1
>conftest.err
24050 cat conftest.err
>&5
24051 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24052 (exit $ac_status); } && {
24053 test -z "$ac_c_werror_flag" ||
24054 test ! -s conftest.err
24055 } && test -s conftest
$ac_exeext && {
24056 test "$cross_compiling" = yes ||
24057 $as_test_x conftest
$ac_exeext
24059 eval "$as_ac_var=yes"
24061 $as_echo "$as_me: failed program was:" >&5
24062 sed 's/^/| /' conftest.
$ac_ext >&5
24064 eval "$as_ac_var=no"
24067 rm -rf conftest.dSYM
24068 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
24069 conftest
$ac_exeext conftest.
$ac_ext
24071 ac_res
=`eval 'as_val=${'$as_ac_var'}
24072 $as_echo "$as_val"'`
24073 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
24074 $as_echo "$ac_res" >&6; }
24075 as_val
=`eval 'as_val=${'$as_ac_var'}
24076 $as_echo "$as_val"'`
24077 if test "x$as_val" = x
""yes; then
24078 cat >>confdefs.h
<<_ACEOF
24079 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
24083 case " $LIBOBJS " in
24084 *" $ac_func.$ac_objext "* ) ;;
24085 *) LIBOBJS
="$LIBOBJS $ac_func.$ac_objext"
24093 case $ac_cv_func_openat in
24097 cat >>confdefs.h
<<\_ACEOF
24098 #define __OPENAT_PREFIX rpl_
24110 case " $LIBOBJS " in
24111 *" pagealign_alloc.$ac_objext "* ) ;;
24112 *) LIBOBJS
="$LIBOBJS pagealign_alloc.$ac_objext"
24151 case " $LIBOBJS " in
24152 *" quotearg.$ac_objext "* ) ;;
24153 *) LIBOBJS
="$LIBOBJS quotearg.$ac_objext"
24178 { $as_echo "$as_me:$LINENO: checking for mbstate_t" >&5
24179 $as_echo_n "checking for mbstate_t... " >&6; }
24180 if test "${ac_cv_type_mbstate_t+set}" = set; then
24181 $as_echo_n "(cached) " >&6
24183 cat >conftest.
$ac_ext <<_ACEOF
24186 cat confdefs.h
>>conftest.
$ac_ext
24187 cat >>conftest.
$ac_ext <<_ACEOF
24188 /* end confdefs.h. */
24189 $ac_includes_default
24190 # include <wchar.h>
24194 mbstate_t x; return sizeof x;
24199 rm -f conftest.
$ac_objext
24200 if { (ac_try
="$ac_compile"
24201 case "(($ac_try" in
24202 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
24203 *) ac_try_echo=$ac_try;;
24205 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24206 $as_echo "$ac_try_echo") >&5
24207 (eval "$ac_compile") 2>conftest.er1
24209 grep -v '^ *+' conftest.er1 >conftest.err
24211 cat conftest.err >&5
24212 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24213 (exit $ac_status); } && {
24214 test -z "$ac_c_werror_flag" ||
24215 test ! -s conftest.err
24216 } && test -s conftest.$ac_objext; then
24217 ac_cv_type_mbstate_t=yes
24219 $as_echo "$as_me: failed program was:" >&5
24220 sed 's/^/| /' conftest.$ac_ext >&5
24222 ac_cv_type_mbstate_t=no
24225 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24227 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_mbstate_t" >&5
24228 $as_echo "$ac_cv_type_mbstate_t" >&6; }
24229 if test $ac_cv_type_mbstate_t = yes; then
24231 cat >>confdefs.h <<\_ACEOF
24232 #define HAVE_MBSTATE_T 1
24237 cat >>confdefs.h <<\_ACEOF
24238 #define mbstate_t int
24243 { $as_echo "$as_me:$LINENO: checking whether mbrtowc and mbstate_t are properly declared" >&5
24244 $as_echo_n "checking whether mbrtowc and mbstate_t are properly declared... " >&6; }
24245 if test "${gl_cv_func_mbrtowc+set}" = set; then
24246 $as_echo_n "(cached) " >&6
24248 cat >conftest.$ac_ext <<_ACEOF
24251 cat confdefs.h >>conftest.$ac_ext
24252 cat >>conftest.$ac_ext <<_ACEOF
24253 /* end confdefs.h. */
24259 char const s[] = "";
24262 return ! (sizeof state && (mbrtowc) (&wc, s, n, &state));
24267 rm -f conftest.$ac_objext conftest$ac_exeext
24268 if { (ac_try="$ac_link"
24269 case "(($ac_try" in
24270 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
24271 *) ac_try_echo
=$ac_try;;
24273 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
24274 $as_echo "$ac_try_echo") >&5
24275 (eval "$ac_link") 2>conftest.er1
24277 grep -v '^ *+' conftest.er1
>conftest.err
24279 cat conftest.err
>&5
24280 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24281 (exit $ac_status); } && {
24282 test -z "$ac_c_werror_flag" ||
24283 test ! -s conftest.err
24284 } && test -s conftest
$ac_exeext && {
24285 test "$cross_compiling" = yes ||
24286 $as_test_x conftest
$ac_exeext
24288 gl_cv_func_mbrtowc
=yes
24290 $as_echo "$as_me: failed program was:" >&5
24291 sed 's/^/| /' conftest.
$ac_ext >&5
24293 gl_cv_func_mbrtowc
=no
24296 rm -rf conftest.dSYM
24297 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
24298 conftest
$ac_exeext conftest.
$ac_ext
24300 { $as_echo "$as_me:$LINENO: result: $gl_cv_func_mbrtowc" >&5
24301 $as_echo "$gl_cv_func_mbrtowc" >&6; }
24302 if test $gl_cv_func_mbrtowc = yes; then
24304 cat >>confdefs.h
<<\_ACEOF
24305 #define HAVE_MBRTOWC 1
24313 for ac_func
in readlink
24315 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
24316 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
24317 $as_echo_n "checking for $ac_func... " >&6; }
24318 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
24319 $as_echo_n "(cached) " >&6
24321 cat >conftest.
$ac_ext <<_ACEOF
24324 cat confdefs.h
>>conftest.
$ac_ext
24325 cat >>conftest.
$ac_ext <<_ACEOF
24326 /* end confdefs.h. */
24327 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24328 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24329 #define $ac_func innocuous_$ac_func
24331 /* System header to define __stub macros and hopefully few prototypes,
24332 which can conflict with char $ac_func (); below.
24333 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24334 <limits.h> exists even on freestanding compilers. */
24337 # include <limits.h>
24339 # include <assert.h>
24344 /* Override any GCC internal prototype to avoid an error.
24345 Use char because int might match the return type of a GCC
24346 builtin and then its argument prototype would still apply. */
24351 /* The GNU C library defines this for functions which it implements
24352 to always fail with ENOSYS. Some functions are actually named
24353 something starting with __ and the normal name is an alias. */
24354 #if defined __stub_$ac_func || defined __stub___$ac_func
24361 return $ac_func ();
24366 rm -f conftest.
$ac_objext conftest
$ac_exeext
24367 if { (ac_try
="$ac_link"
24368 case "(($ac_try" in
24369 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
24370 *) ac_try_echo=$ac_try;;
24372 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24373 $as_echo "$ac_try_echo") >&5
24374 (eval "$ac_link") 2>conftest.er1
24376 grep -v '^ *+' conftest.er1 >conftest.err
24378 cat conftest.err >&5
24379 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24380 (exit $ac_status); } && {
24381 test -z "$ac_c_werror_flag" ||
24382 test ! -s conftest.err
24383 } && test -s conftest$ac_exeext && {
24384 test "$cross_compiling" = yes ||
24385 $as_test_x conftest$ac_exeext
24387 eval "$as_ac_var=yes"
24389 $as_echo "$as_me: failed program was:" >&5
24390 sed 's/^/| /' conftest.$ac_ext >&5
24392 eval "$as_ac_var=no"
24395 rm -rf conftest.dSYM
24396 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24397 conftest$ac_exeext conftest.$ac_ext
24399 ac_res=`eval 'as_val=${'$as_ac_var'}
24400 $as_echo "$as_val"'`
24401 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
24402 $as_echo "$ac_res" >&6; }
24403 as_val=`eval 'as_val=${'$as_ac_var'}
24404 $as_echo "$as_val"'`
24405 if test "x$as_val" = x""yes; then
24406 cat >>confdefs.h <<_ACEOF
24407 #define `$as_echo "HAVE_$ac_func" |
$as_tr_cpp` 1
24413 if test $ac_cv_func_readlink = no; then
24414 case " $LIBOBJS " in
24415 *" readlink.$ac_objext "* ) ;;
24416 *) LIBOBJS="$LIBOBJS readlink.$ac_objext"
24426 for ac_header in stdlib.h
24428 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" |
$as_tr_sh`
24429 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24430 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
24431 $as_echo_n "checking for $ac_header... " >&6; }
24432 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24433 $as_echo_n "(cached) " >&6
24435 ac_res=`eval 'as_val=${'$as_ac_Header'}
24436 $as_echo "$as_val"'`
24437 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
24438 $as_echo "$ac_res" >&6; }
24440 # Is the header compilable?
24441 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
24442 $as_echo_n "checking $ac_header usability... " >&6; }
24443 cat >conftest.$ac_ext <<_ACEOF
24446 cat confdefs.h >>conftest.$ac_ext
24447 cat >>conftest.$ac_ext <<_ACEOF
24448 /* end confdefs.h. */
24449 $ac_includes_default
24450 #include <$ac_header>
24452 rm -f conftest.$ac_objext
24453 if { (ac_try="$ac_compile"
24454 case "(($ac_try" in
24455 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
24456 *) ac_try_echo
=$ac_try;;
24458 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
24459 $as_echo "$ac_try_echo") >&5
24460 (eval "$ac_compile") 2>conftest.er1
24462 grep -v '^ *+' conftest.er1
>conftest.err
24464 cat conftest.err
>&5
24465 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24466 (exit $ac_status); } && {
24467 test -z "$ac_c_werror_flag" ||
24468 test ! -s conftest.err
24469 } && test -s conftest.
$ac_objext; then
24470 ac_header_compiler
=yes
24472 $as_echo "$as_me: failed program was:" >&5
24473 sed 's/^/| /' conftest.
$ac_ext >&5
24475 ac_header_compiler
=no
24478 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
24479 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24480 $as_echo "$ac_header_compiler" >&6; }
24482 # Is the header present?
24483 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
24484 $as_echo_n "checking $ac_header presence... " >&6; }
24485 cat >conftest.
$ac_ext <<_ACEOF
24488 cat confdefs.h
>>conftest.
$ac_ext
24489 cat >>conftest.
$ac_ext <<_ACEOF
24490 /* end confdefs.h. */
24491 #include <$ac_header>
24493 if { (ac_try
="$ac_cpp conftest.$ac_ext"
24494 case "(($ac_try" in
24495 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
24496 *) ac_try_echo=$ac_try;;
24498 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24499 $as_echo "$ac_try_echo") >&5
24500 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
24502 grep -v '^ *+' conftest.er1 >conftest.err
24504 cat conftest.err >&5
24505 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24506 (exit $ac_status); } >/dev/null && {
24507 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
24508 test ! -s conftest.err
24510 ac_header_preproc=yes
24512 $as_echo "$as_me: failed program was:" >&5
24513 sed 's/^/| /' conftest.$ac_ext >&5
24515 ac_header_preproc=no
24518 rm -f conftest.err conftest.$ac_ext
24519 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24520 $as_echo "$ac_header_preproc" >&6; }
24522 # So? What about this header?
24523 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24525 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
24526 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
24527 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
24528 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
24529 ac_header_preproc=yes
24532 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
24533 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
24534 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
24535 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
24536 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
24537 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
24538 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
24539 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
24540 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
24541 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
24542 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
24543 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
24545 ## --------------------------------- ##
24546 ## Report this to bug-cvs@nongnu.org ##
24547 ## --------------------------------- ##
24549 ) | sed "s/^/$as_me: WARNING: /" >&2
24552 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
24553 $as_echo_n "checking for $ac_header... " >&6; }
24554 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24555 $as_echo_n "(cached) " >&6
24557 eval "$as_ac_Header=\$ac_header_preproc"
24559 ac_res=`eval 'as_val=${'$as_ac_Header'}
24560 $as_echo "$as_val"'`
24561 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
24562 $as_echo "$ac_res" >&6; }
24565 as_val=`eval 'as_val=${'$as_ac_Header'}
24566 $as_echo "$as_val"'`
24567 if test "x$as_val" = x""yes; then
24568 cat >>confdefs.h <<_ACEOF
24569 #define `$as_echo "HAVE_$ac_header" |
$as_tr_cpp` 1
24576 { $as_echo "$as_me:$LINENO: checking for GNU libc compatible realloc" >&5
24577 $as_echo_n "checking for GNU libc compatible realloc... " >&6; }
24578 if test "${ac_cv_func_realloc_0_nonnull+set}" = set; then
24579 $as_echo_n "(cached) " >&6
24581 if test "$cross_compiling" = yes; then
24582 ac_cv_func_realloc_0_nonnull=no
24584 cat >conftest.$ac_ext <<_ACEOF
24587 cat confdefs.h >>conftest.$ac_ext
24588 cat >>conftest.$ac_ext <<_ACEOF
24589 /* end confdefs.h. */
24590 #if defined STDC_HEADERS || defined HAVE_STDLIB_H
24591 # include <stdlib.h>
24599 return ! realloc (0, 0);
24604 rm -f conftest$ac_exeext
24605 if { (ac_try="$ac_link"
24606 case "(($ac_try" in
24607 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
24608 *) ac_try_echo
=$ac_try;;
24610 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
24611 $as_echo "$ac_try_echo") >&5
24612 (eval "$ac_link") 2>&5
24614 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24615 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
24616 { (case "(($ac_try" in
24617 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
24618 *) ac_try_echo=$ac_try;;
24620 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24621 $as_echo "$ac_try_echo") >&5
24622 (eval "$ac_try") 2>&5
24624 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24625 (exit $ac_status); }; }; then
24626 ac_cv_func_realloc_0_nonnull=yes
24628 $as_echo "$as_me: program exited with status $ac_status" >&5
24629 $as_echo "$as_me: failed program was:" >&5
24630 sed 's/^/| /' conftest.$ac_ext >&5
24632 ( exit $ac_status )
24633 ac_cv_func_realloc_0_nonnull=no
24635 rm -rf conftest.dSYM
24636 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24641 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_realloc_0_nonnull" >&5
24642 $as_echo "$ac_cv_func_realloc_0_nonnull" >&6; }
24643 if test $ac_cv_func_realloc_0_nonnull = yes; then
24645 cat >>confdefs.h <<\_ACEOF
24646 #define HAVE_REALLOC 1
24650 cat >>confdefs.h <<\_ACEOF
24651 #define HAVE_REALLOC 0
24654 case " $LIBOBJS " in
24655 *" realloc.$ac_objext "* ) ;;
24656 *) LIBOBJS="$LIBOBJS realloc.$ac_objext"
24661 cat >>confdefs.h <<\_ACEOF
24662 #define realloc rpl_realloc
24671 cat >>confdefs.h <<\_ACEOF
24672 #define _REGEX_LARGE_OFFSETS 1
24679 # Check whether --with-included-regex was given.
24680 if test "${with_included_regex+set}" = set; then
24681 withval=$with_included_regex;
24685 case $with_included_regex in
24686 yes|no) ac_use_included_regex=$with_included_regex
24689 # If the system regex support is good enough that it passes the the
24690 # following run test, then default to *not* using the included regex.c.
24691 # If cross compiling, assume the test would fail and use the included
24692 # regex.c. The first failing regular expression is from `Spencer ere
24693 # test #75' in grep-2.3.
24694 { $as_echo "$as_me:$LINENO: checking for working re_compile_pattern" >&5
24695 $as_echo_n "checking for working re_compile_pattern... " >&6; }
24696 if test "${gl_cv_func_re_compile_pattern_broken+set}" = set; then
24697 $as_echo_n "(cached) " >&6
24699 if test "$cross_compiling" = yes; then
24700 gl_cv_func_re_compile_pattern_broken
=yes
24702 cat >conftest.
$ac_ext <<_ACEOF
24705 cat confdefs.h
>>conftest.
$ac_ext
24706 cat >>conftest.
$ac_ext <<_ACEOF
24707 /* end confdefs.h. */
24708 $ac_includes_default
24713 static struct re_pattern_buffer regex;
24715 struct re_registers regs;
24716 /* Use the POSIX-compliant spelling with leading REG_,
24717 rather than the traditional GNU spelling with leading RE_,
24718 so that we reject older libc implementations. */
24719 re_set_syntax (REG_SYNTAX_POSIX_EGREP);
24720 memset (®ex, 0, sizeof (regex));
24721 s = re_compile_pattern ("a[:]:]b\n", 9, ®ex);
24722 /* This should fail with _Invalid character class name_ error. */
24726 /* This should succeed, but does not for e.g. glibc-2.1.3. */
24727 memset (®ex, 0, sizeof (regex));
24728 s = re_compile_pattern ("{1", 2, ®ex);
24733 /* The following example is derived from a problem report
24734 against gawk from Jorge Stolfi <stolfi@ic.unicamp.br>. */
24735 memset (®ex, 0, sizeof (regex));
24736 s = re_compile_pattern ("[an\371]*n", 7, ®ex);
24740 /* This should match, but does not for e.g. glibc-2.2.1. */
24741 if (re_match (®ex, "an", 2, 0, ®s) != 2)
24744 memset (®ex, 0, sizeof (regex));
24745 s = re_compile_pattern ("x", 1, ®ex);
24749 /* The version of regex.c in e.g. GNU libc-2.2.93 did not
24750 work with a negative RANGE argument. */
24751 if (re_search (®ex, "wxy", 3, 2, -2, ®s) != 1)
24754 /* The version of regex.c in older versions of gnulib
24755 ignored REG_IGNORE_CASE (which was then called RE_ICASE).
24756 Detect that problem too. */
24757 memset (®ex, 0, sizeof (regex));
24758 re_set_syntax (REG_SYNTAX_EMACS | REG_IGNORE_CASE);
24759 s = re_compile_pattern ("x", 1, ®ex);
24763 if (re_search (®ex, "WXY", 3, 0, 3, ®s) < 0)
24766 /* REG_STARTEND was added to glibc on 2004-01-15.
24767 Reject older versions. */
24768 if (! REG_STARTEND)
24771 /* Reject hosts whose regoff_t values are too narrow.
24772 These include glibc 2.3.5 on hosts with 64-bit off_t
24773 and 32-bit int, and Solaris 10 on hosts with 32-bit int
24774 and _FILE_OFFSET_BITS=64. */
24775 if (sizeof (regoff_t) < sizeof (off_t))
24783 rm -f conftest
$ac_exeext
24784 if { (ac_try
="$ac_link"
24785 case "(($ac_try" in
24786 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
24787 *) ac_try_echo=$ac_try;;
24789 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24790 $as_echo "$ac_try_echo") >&5
24791 (eval "$ac_link") 2>&5
24793 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24794 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24795 { (case "(($ac_try" in
24796 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
24797 *) ac_try_echo
=$ac_try;;
24799 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
24800 $as_echo "$ac_try_echo") >&5
24801 (eval "$ac_try") 2>&5
24803 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24804 (exit $ac_status); }; }; then
24805 gl_cv_func_re_compile_pattern_broken
=no
24807 $as_echo "$as_me: program exited with status $ac_status" >&5
24808 $as_echo "$as_me: failed program was:" >&5
24809 sed 's/^/| /' conftest.
$ac_ext >&5
24811 ( exit $ac_status )
24812 gl_cv_func_re_compile_pattern_broken
=yes
24814 rm -rf conftest.dSYM
24815 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
24820 { $as_echo "$as_me:$LINENO: result: $gl_cv_func_re_compile_pattern_broken" >&5
24821 $as_echo "$gl_cv_func_re_compile_pattern_broken" >&6; }
24822 ac_use_included_regex
=$gl_cv_func_re_compile_pattern_broken
24824 *) { { $as_echo "$as_me:$LINENO: error: Invalid value for --with-included-regex: $with_included_regex" >&5
24825 $as_echo "$as_me: error: Invalid value for --with-included-regex: $with_included_regex" >&2;}
24826 { (exit 1); exit 1; }; }
24830 if test $ac_use_included_regex = yes; then
24831 case " $LIBOBJS " in
24832 *" regex.$ac_objext "* ) ;;
24833 *) LIBOBJS
="$LIBOBJS regex.$ac_objext"
24877 { $as_echo "$as_me:$LINENO: checking whether rename is broken" >&5
24878 $as_echo_n "checking whether rename is broken... " >&6; }
24879 if test "${vb_cv_func_rename_trailing_slash_bug+set}" = set; then
24880 $as_echo_n "(cached) " >&6
24883 rm -rf conftest.d1 conftest.d2
24884 mkdir conftest.d1 ||
24885 { { $as_echo "$as_me:$LINENO: error: cannot create temporary directory" >&5
24886 $as_echo "$as_me: error: cannot create temporary directory" >&2;}
24887 { (exit 1); exit 1; }; }
24888 if test "$cross_compiling" = yes; then
24889 vb_cv_func_rename_trailing_slash_bug
=yes
24891 cat >conftest.
$ac_ext <<_ACEOF
24894 cat confdefs.h
>>conftest.
$ac_ext
24895 cat >>conftest.
$ac_ext <<_ACEOF
24896 /* end confdefs.h. */
24898 # include <stdio.h>
24902 exit (rename ("conftest.d1/", "conftest.d2") ? 1 : 0);
24906 rm -f conftest
$ac_exeext
24907 if { (ac_try
="$ac_link"
24908 case "(($ac_try" in
24909 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
24910 *) ac_try_echo=$ac_try;;
24912 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24913 $as_echo "$ac_try_echo") >&5
24914 (eval "$ac_link") 2>&5
24916 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24917 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24918 { (case "(($ac_try" in
24919 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
24920 *) ac_try_echo
=$ac_try;;
24922 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
24923 $as_echo "$ac_try_echo") >&5
24924 (eval "$ac_try") 2>&5
24926 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24927 (exit $ac_status); }; }; then
24928 vb_cv_func_rename_trailing_slash_bug
=no
24930 $as_echo "$as_me: program exited with status $ac_status" >&5
24931 $as_echo "$as_me: failed program was:" >&5
24932 sed 's/^/| /' conftest.
$ac_ext >&5
24934 ( exit $ac_status )
24935 vb_cv_func_rename_trailing_slash_bug
=yes
24937 rm -rf conftest.dSYM
24938 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
24943 rm -rf conftest.d1 conftest.d2
24946 { $as_echo "$as_me:$LINENO: result: $vb_cv_func_rename_trailing_slash_bug" >&5
24947 $as_echo "$vb_cv_func_rename_trailing_slash_bug" >&6; }
24948 if test $vb_cv_func_rename_trailing_slash_bug = yes; then
24949 case " $LIBOBJS " in
24950 *" rename.$ac_objext "* ) ;;
24951 *) LIBOBJS
="$LIBOBJS rename.$ac_objext"
24956 cat >>confdefs.h
<<\_ACEOF
24957 #define rename rpl_rename
24961 cat >>confdefs.h
<<\_ACEOF
24962 #define RENAME_TRAILING_SLASH_BUG 1
24968 { $as_echo "$as_me:$LINENO: checking for C/C++ restrict keyword" >&5
24969 $as_echo_n "checking for C/C++ restrict keyword... " >&6; }
24970 if test "${gl_cv_c_restrict+set}" = set; then
24971 $as_echo_n "(cached) " >&6
24973 gl_cv_c_restrict
=no
24974 # Try the official restrict keyword, then gcc's __restrict, and
24975 # the less common variants.
24976 for ac_kw
in restrict __restrict __restrict__ _Restrict
; do
24977 cat >conftest.
$ac_ext <<_ACEOF
24980 cat confdefs.h
>>conftest.
$ac_ext
24981 cat >>conftest.
$ac_ext <<_ACEOF
24982 /* end confdefs.h. */
24985 rm -f conftest.
$ac_objext
24986 if { (ac_try
="$ac_compile"
24987 case "(($ac_try" in
24988 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
24989 *) ac_try_echo=$ac_try;;
24991 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24992 $as_echo "$ac_try_echo") >&5
24993 (eval "$ac_compile") 2>conftest.er1
24995 grep -v '^ *+' conftest.er1 >conftest.err
24997 cat conftest.err >&5
24998 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24999 (exit $ac_status); } && {
25000 test -z "$ac_c_werror_flag" ||
25001 test ! -s conftest.err
25002 } && test -s conftest.$ac_objext; then
25003 gl_cv_c_restrict=$ac_kw; break
25005 $as_echo "$as_me: failed program was:" >&5
25006 sed 's/^/| /' conftest.$ac_ext >&5
25011 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25015 { $as_echo "$as_me:$LINENO: result: $gl_cv_c_restrict" >&5
25016 $as_echo "$gl_cv_c_restrict" >&6; }
25017 case $gl_cv_c_restrict in
25020 cat >>confdefs.h <<\_ACEOF
25021 #define restrict /**/
25024 *) cat >>confdefs.h <<_ACEOF
25025 #define restrict $gl_cv_c_restrict
25032 for ac_func in rpmatch
25034 as_ac_var=`$as_echo "ac_cv_func_$ac_func" |
$as_tr_sh`
25035 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
25036 $as_echo_n "checking for $ac_func... " >&6; }
25037 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
25038 $as_echo_n "(cached) " >&6
25040 cat >conftest.$ac_ext <<_ACEOF
25043 cat confdefs.h >>conftest.$ac_ext
25044 cat >>conftest.$ac_ext <<_ACEOF
25045 /* end confdefs.h. */
25046 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
25047 For example, HP-UX 11i <limits.h> declares gettimeofday. */
25048 #define $ac_func innocuous_$ac_func
25050 /* System header to define __stub macros and hopefully few prototypes,
25051 which can conflict with char $ac_func (); below.
25052 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25053 <limits.h> exists even on freestanding compilers. */
25056 # include <limits.h>
25058 # include <assert.h>
25063 /* Override any GCC internal prototype to avoid an error.
25064 Use char because int might match the return type of a GCC
25065 builtin and then its argument prototype would still apply. */
25070 /* The GNU C library defines this for functions which it implements
25071 to always fail with ENOSYS. Some functions are actually named
25072 something starting with __ and the normal name is an alias. */
25073 #if defined __stub_$ac_func || defined __stub___$ac_func
25080 return $ac_func ();
25085 rm -f conftest.$ac_objext conftest$ac_exeext
25086 if { (ac_try="$ac_link"
25087 case "(($ac_try" in
25088 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
25089 *) ac_try_echo
=$ac_try;;
25091 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
25092 $as_echo "$ac_try_echo") >&5
25093 (eval "$ac_link") 2>conftest.er1
25095 grep -v '^ *+' conftest.er1
>conftest.err
25097 cat conftest.err
>&5
25098 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25099 (exit $ac_status); } && {
25100 test -z "$ac_c_werror_flag" ||
25101 test ! -s conftest.err
25102 } && test -s conftest
$ac_exeext && {
25103 test "$cross_compiling" = yes ||
25104 $as_test_x conftest
$ac_exeext
25106 eval "$as_ac_var=yes"
25108 $as_echo "$as_me: failed program was:" >&5
25109 sed 's/^/| /' conftest.
$ac_ext >&5
25111 eval "$as_ac_var=no"
25114 rm -rf conftest.dSYM
25115 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
25116 conftest
$ac_exeext conftest.
$ac_ext
25118 ac_res
=`eval 'as_val=${'$as_ac_var'}
25119 $as_echo "$as_val"'`
25120 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
25121 $as_echo "$ac_res" >&6; }
25122 as_val
=`eval 'as_val=${'$as_ac_var'}
25123 $as_echo "$as_val"'`
25124 if test "x$as_val" = x
""yes; then
25125 cat >>confdefs.h
<<_ACEOF
25126 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
25130 case " $LIBOBJS " in
25131 *" $ac_func.$ac_objext "* ) ;;
25132 *) LIBOBJS
="$LIBOBJS $ac_func.$ac_objext"
25140 if test $ac_cv_func_rpmatch = no
; then
25146 case " $LIBOBJS " in
25147 *" save-cwd.$ac_objext "* ) ;;
25148 *) LIBOBJS
="$LIBOBJS save-cwd.$ac_objext"
25170 for ac_func
in setenv unsetenv
25172 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
25173 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
25174 $as_echo_n "checking for $ac_func... " >&6; }
25175 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
25176 $as_echo_n "(cached) " >&6
25178 cat >conftest.
$ac_ext <<_ACEOF
25181 cat confdefs.h
>>conftest.
$ac_ext
25182 cat >>conftest.
$ac_ext <<_ACEOF
25183 /* end confdefs.h. */
25184 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
25185 For example, HP-UX 11i <limits.h> declares gettimeofday. */
25186 #define $ac_func innocuous_$ac_func
25188 /* System header to define __stub macros and hopefully few prototypes,
25189 which can conflict with char $ac_func (); below.
25190 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25191 <limits.h> exists even on freestanding compilers. */
25194 # include <limits.h>
25196 # include <assert.h>
25201 /* Override any GCC internal prototype to avoid an error.
25202 Use char because int might match the return type of a GCC
25203 builtin and then its argument prototype would still apply. */
25208 /* The GNU C library defines this for functions which it implements
25209 to always fail with ENOSYS. Some functions are actually named
25210 something starting with __ and the normal name is an alias. */
25211 #if defined __stub_$ac_func || defined __stub___$ac_func
25218 return $ac_func ();
25223 rm -f conftest.
$ac_objext conftest
$ac_exeext
25224 if { (ac_try
="$ac_link"
25225 case "(($ac_try" in
25226 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
25227 *) ac_try_echo=$ac_try;;
25229 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25230 $as_echo "$ac_try_echo") >&5
25231 (eval "$ac_link") 2>conftest.er1
25233 grep -v '^ *+' conftest.er1 >conftest.err
25235 cat conftest.err >&5
25236 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25237 (exit $ac_status); } && {
25238 test -z "$ac_c_werror_flag" ||
25239 test ! -s conftest.err
25240 } && test -s conftest$ac_exeext && {
25241 test "$cross_compiling" = yes ||
25242 $as_test_x conftest$ac_exeext
25244 eval "$as_ac_var=yes"
25246 $as_echo "$as_me: failed program was:" >&5
25247 sed 's/^/| /' conftest.$ac_ext >&5
25249 eval "$as_ac_var=no"
25252 rm -rf conftest.dSYM
25253 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25254 conftest$ac_exeext conftest.$ac_ext
25256 ac_res=`eval 'as_val=${'$as_ac_var'}
25257 $as_echo "$as_val"'`
25258 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
25259 $as_echo "$ac_res" >&6; }
25260 as_val=`eval 'as_val=${'$as_ac_var'}
25261 $as_echo "$as_val"'`
25262 if test "x$as_val" = x""yes; then
25263 cat >>confdefs.h <<_ACEOF
25264 #define `$as_echo "HAVE_$ac_func" |
$as_tr_cpp` 1
25268 case " $LIBOBJS " in
25269 *" $ac_func.$ac_objext "* ) ;;
25270 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
25278 if test $ac_cv_func_setenv = no; then
25289 for ac_header in search.h
25291 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" |
$as_tr_sh`
25292 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25293 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
25294 $as_echo_n "checking for $ac_header... " >&6; }
25295 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25296 $as_echo_n "(cached) " >&6
25298 ac_res=`eval 'as_val=${'$as_ac_Header'}
25299 $as_echo "$as_val"'`
25300 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
25301 $as_echo "$ac_res" >&6; }
25303 # Is the header compilable?
25304 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
25305 $as_echo_n "checking $ac_header usability... " >&6; }
25306 cat >conftest.$ac_ext <<_ACEOF
25309 cat confdefs.h >>conftest.$ac_ext
25310 cat >>conftest.$ac_ext <<_ACEOF
25311 /* end confdefs.h. */
25312 $ac_includes_default
25313 #include <$ac_header>
25315 rm -f conftest.$ac_objext
25316 if { (ac_try="$ac_compile"
25317 case "(($ac_try" in
25318 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
25319 *) ac_try_echo
=$ac_try;;
25321 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
25322 $as_echo "$ac_try_echo") >&5
25323 (eval "$ac_compile") 2>conftest.er1
25325 grep -v '^ *+' conftest.er1
>conftest.err
25327 cat conftest.err
>&5
25328 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25329 (exit $ac_status); } && {
25330 test -z "$ac_c_werror_flag" ||
25331 test ! -s conftest.err
25332 } && test -s conftest.
$ac_objext; then
25333 ac_header_compiler
=yes
25335 $as_echo "$as_me: failed program was:" >&5
25336 sed 's/^/| /' conftest.
$ac_ext >&5
25338 ac_header_compiler
=no
25341 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
25342 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25343 $as_echo "$ac_header_compiler" >&6; }
25345 # Is the header present?
25346 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
25347 $as_echo_n "checking $ac_header presence... " >&6; }
25348 cat >conftest.
$ac_ext <<_ACEOF
25351 cat confdefs.h
>>conftest.
$ac_ext
25352 cat >>conftest.
$ac_ext <<_ACEOF
25353 /* end confdefs.h. */
25354 #include <$ac_header>
25356 if { (ac_try
="$ac_cpp conftest.$ac_ext"
25357 case "(($ac_try" in
25358 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
25359 *) ac_try_echo=$ac_try;;
25361 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25362 $as_echo "$ac_try_echo") >&5
25363 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
25365 grep -v '^ *+' conftest.er1 >conftest.err
25367 cat conftest.err >&5
25368 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25369 (exit $ac_status); } >/dev/null && {
25370 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
25371 test ! -s conftest.err
25373 ac_header_preproc=yes
25375 $as_echo "$as_me: failed program was:" >&5
25376 sed 's/^/| /' conftest.$ac_ext >&5
25378 ac_header_preproc=no
25381 rm -f conftest.err conftest.$ac_ext
25382 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25383 $as_echo "$ac_header_preproc" >&6; }
25385 # So? What about this header?
25386 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25388 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
25389 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
25390 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
25391 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
25392 ac_header_preproc=yes
25395 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
25396 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
25397 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
25398 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
25399 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
25400 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
25401 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
25402 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
25403 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
25404 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
25405 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
25406 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
25408 ## --------------------------------- ##
25409 ## Report this to bug-cvs@nongnu.org ##
25410 ## --------------------------------- ##
25412 ) | sed "s/^/$as_me: WARNING: /" >&2
25415 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
25416 $as_echo_n "checking for $ac_header... " >&6; }
25417 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25418 $as_echo_n "(cached) " >&6
25420 eval "$as_ac_Header=\$ac_header_preproc"
25422 ac_res=`eval 'as_val=${'$as_ac_Header'}
25423 $as_echo "$as_val"'`
25424 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
25425 $as_echo "$ac_res" >&6; }
25428 as_val=`eval 'as_val=${'$as_ac_Header'}
25429 $as_echo "$as_val"'`
25430 if test "x$as_val" = x""yes; then
25431 cat >>confdefs.h <<_ACEOF
25432 #define `$as_echo "HAVE_$ac_header" |
$as_tr_cpp` 1
25440 for ac_func in tsearch
25442 as_ac_var=`$as_echo "ac_cv_func_$ac_func" |
$as_tr_sh`
25443 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
25444 $as_echo_n "checking for $ac_func... " >&6; }
25445 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
25446 $as_echo_n "(cached) " >&6
25448 cat >conftest.$ac_ext <<_ACEOF
25451 cat confdefs.h >>conftest.$ac_ext
25452 cat >>conftest.$ac_ext <<_ACEOF
25453 /* end confdefs.h. */
25454 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
25455 For example, HP-UX 11i <limits.h> declares gettimeofday. */
25456 #define $ac_func innocuous_$ac_func
25458 /* System header to define __stub macros and hopefully few prototypes,
25459 which can conflict with char $ac_func (); below.
25460 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25461 <limits.h> exists even on freestanding compilers. */
25464 # include <limits.h>
25466 # include <assert.h>
25471 /* Override any GCC internal prototype to avoid an error.
25472 Use char because int might match the return type of a GCC
25473 builtin and then its argument prototype would still apply. */
25478 /* The GNU C library defines this for functions which it implements
25479 to always fail with ENOSYS. Some functions are actually named
25480 something starting with __ and the normal name is an alias. */
25481 #if defined __stub_$ac_func || defined __stub___$ac_func
25488 return $ac_func ();
25493 rm -f conftest.$ac_objext conftest$ac_exeext
25494 if { (ac_try="$ac_link"
25495 case "(($ac_try" in
25496 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
25497 *) ac_try_echo
=$ac_try;;
25499 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
25500 $as_echo "$ac_try_echo") >&5
25501 (eval "$ac_link") 2>conftest.er1
25503 grep -v '^ *+' conftest.er1
>conftest.err
25505 cat conftest.err
>&5
25506 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25507 (exit $ac_status); } && {
25508 test -z "$ac_c_werror_flag" ||
25509 test ! -s conftest.err
25510 } && test -s conftest
$ac_exeext && {
25511 test "$cross_compiling" = yes ||
25512 $as_test_x conftest
$ac_exeext
25514 eval "$as_ac_var=yes"
25516 $as_echo "$as_me: failed program was:" >&5
25517 sed 's/^/| /' conftest.
$ac_ext >&5
25519 eval "$as_ac_var=no"
25522 rm -rf conftest.dSYM
25523 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
25524 conftest
$ac_exeext conftest.
$ac_ext
25526 ac_res
=`eval 'as_val=${'$as_ac_var'}
25527 $as_echo "$as_val"'`
25528 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
25529 $as_echo "$ac_res" >&6; }
25530 as_val
=`eval 'as_val=${'$as_ac_var'}
25531 $as_echo "$as_val"'`
25532 if test "x$as_val" = x
""yes; then
25533 cat >>confdefs.h
<<_ACEOF
25534 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
25542 { $as_echo "$as_me:$LINENO: checking if errno is properly declared" >&5
25543 $as_echo_n "checking if errno is properly declared... " >&6; }
25544 if test "${gt_cv_var_errno_declaration+set}" = set; then
25545 $as_echo_n "(cached) " >&6
25548 cat >conftest.
$ac_ext <<_ACEOF
25551 cat confdefs.h
>>conftest.
$ac_ext
25552 cat >>conftest.
$ac_ext <<_ACEOF
25553 /* end confdefs.h. */
25555 extern struct { int foo; } errno;
25564 rm -f conftest.
$ac_objext
25565 if { (ac_try
="$ac_compile"
25566 case "(($ac_try" in
25567 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
25568 *) ac_try_echo=$ac_try;;
25570 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25571 $as_echo "$ac_try_echo") >&5
25572 (eval "$ac_compile") 2>conftest.er1
25574 grep -v '^ *+' conftest.er1 >conftest.err
25576 cat conftest.err >&5
25577 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25578 (exit $ac_status); } && {
25579 test -z "$ac_c_werror_flag" ||
25580 test ! -s conftest.err
25581 } && test -s conftest.$ac_objext; then
25582 gt_cv_var_errno_declaration=no
25584 $as_echo "$as_me: failed program was:" >&5
25585 sed 's/^/| /' conftest.$ac_ext >&5
25587 gt_cv_var_errno_declaration=yes
25590 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25593 { $as_echo "$as_me:$LINENO: result: $gt_cv_var_errno_declaration" >&5
25594 $as_echo "$gt_cv_var_errno_declaration" >&6; }
25595 if test $gt_cv_var_errno_declaration = yes; then
25597 cat >>confdefs.h <<\_ACEOF
25598 #define HAVE_ERRNO_DECL 1
25605 { $as_echo "$as_me:$LINENO: checking if environ is properly declared" >&5
25606 $as_echo_n "checking if environ is properly declared... " >&6; }
25607 if test "${gt_cv_var_environ_declaration+set}" = set; then
25608 $as_echo_n "(cached) " >&6
25611 cat >conftest.$ac_ext <<_ACEOF
25614 cat confdefs.h >>conftest.$ac_ext
25615 cat >>conftest.$ac_ext <<_ACEOF
25616 /* end confdefs.h. */
25617 #include <unistd.h>
25618 extern struct { int foo; } environ;
25627 rm -f conftest.$ac_objext
25628 if { (ac_try="$ac_compile"
25629 case "(($ac_try" in
25630 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
25631 *) ac_try_echo
=$ac_try;;
25633 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
25634 $as_echo "$ac_try_echo") >&5
25635 (eval "$ac_compile") 2>conftest.er1
25637 grep -v '^ *+' conftest.er1
>conftest.err
25639 cat conftest.err
>&5
25640 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25641 (exit $ac_status); } && {
25642 test -z "$ac_c_werror_flag" ||
25643 test ! -s conftest.err
25644 } && test -s conftest.
$ac_objext; then
25645 gt_cv_var_environ_declaration
=no
25647 $as_echo "$as_me: failed program was:" >&5
25648 sed 's/^/| /' conftest.
$ac_ext >&5
25650 gt_cv_var_environ_declaration
=yes
25653 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
25656 { $as_echo "$as_me:$LINENO: result: $gt_cv_var_environ_declaration" >&5
25657 $as_echo "$gt_cv_var_environ_declaration" >&6; }
25658 if test $gt_cv_var_environ_declaration = yes; then
25660 cat >>confdefs.h
<<\_ACEOF
25661 #define HAVE_ENVIRON_DECL 1
25668 if test $ac_cv_func_unsetenv = no
; then
25679 { $as_echo "$as_me:$LINENO: checking if errno is properly declared" >&5
25680 $as_echo_n "checking if errno is properly declared... " >&6; }
25681 if test "${gt_cv_var_errno_declaration+set}" = set; then
25682 $as_echo_n "(cached) " >&6
25685 cat >conftest.
$ac_ext <<_ACEOF
25688 cat confdefs.h
>>conftest.
$ac_ext
25689 cat >>conftest.
$ac_ext <<_ACEOF
25690 /* end confdefs.h. */
25692 extern struct { int foo; } errno;
25701 rm -f conftest.
$ac_objext
25702 if { (ac_try
="$ac_compile"
25703 case "(($ac_try" in
25704 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
25705 *) ac_try_echo=$ac_try;;
25707 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25708 $as_echo "$ac_try_echo") >&5
25709 (eval "$ac_compile") 2>conftest.er1
25711 grep -v '^ *+' conftest.er1 >conftest.err
25713 cat conftest.err >&5
25714 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25715 (exit $ac_status); } && {
25716 test -z "$ac_c_werror_flag" ||
25717 test ! -s conftest.err
25718 } && test -s conftest.$ac_objext; then
25719 gt_cv_var_errno_declaration=no
25721 $as_echo "$as_me: failed program was:" >&5
25722 sed 's/^/| /' conftest.$ac_ext >&5
25724 gt_cv_var_errno_declaration=yes
25727 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25730 { $as_echo "$as_me:$LINENO: result: $gt_cv_var_errno_declaration" >&5
25731 $as_echo "$gt_cv_var_errno_declaration" >&6; }
25732 if test $gt_cv_var_errno_declaration = yes; then
25734 cat >>confdefs.h <<\_ACEOF
25735 #define HAVE_ERRNO_DECL 1
25742 { $as_echo "$as_me:$LINENO: checking if environ is properly declared" >&5
25743 $as_echo_n "checking if environ is properly declared... " >&6; }
25744 if test "${gt_cv_var_environ_declaration+set}" = set; then
25745 $as_echo_n "(cached) " >&6
25748 cat >conftest.$ac_ext <<_ACEOF
25751 cat confdefs.h >>conftest.$ac_ext
25752 cat >>conftest.$ac_ext <<_ACEOF
25753 /* end confdefs.h. */
25754 #include <unistd.h>
25755 extern struct { int foo; } environ;
25764 rm -f conftest.$ac_objext
25765 if { (ac_try="$ac_compile"
25766 case "(($ac_try" in
25767 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
25768 *) ac_try_echo
=$ac_try;;
25770 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
25771 $as_echo "$ac_try_echo") >&5
25772 (eval "$ac_compile") 2>conftest.er1
25774 grep -v '^ *+' conftest.er1
>conftest.err
25776 cat conftest.err
>&5
25777 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25778 (exit $ac_status); } && {
25779 test -z "$ac_c_werror_flag" ||
25780 test ! -s conftest.err
25781 } && test -s conftest.
$ac_objext; then
25782 gt_cv_var_environ_declaration
=no
25784 $as_echo "$as_me: failed program was:" >&5
25785 sed 's/^/| /' conftest.
$ac_ext >&5
25787 gt_cv_var_environ_declaration
=yes
25790 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
25793 { $as_echo "$as_me:$LINENO: result: $gt_cv_var_environ_declaration" >&5
25794 $as_echo "$gt_cv_var_environ_declaration" >&6; }
25795 if test $gt_cv_var_environ_declaration = yes; then
25797 cat >>confdefs.h
<<\_ACEOF
25798 #define HAVE_ENVIRON_DECL 1
25805 { $as_echo "$as_me:$LINENO: checking for unsetenv() return type" >&5
25806 $as_echo_n "checking for unsetenv() return type... " >&6; }
25807 if test "${gt_cv_func_unsetenv_ret+set}" = set; then
25808 $as_echo_n "(cached) " >&6
25810 cat >conftest.
$ac_ext <<_ACEOF
25813 cat confdefs.h
>>conftest.
$ac_ext
25814 cat >>conftest.
$ac_ext <<_ACEOF
25815 /* end confdefs.h. */
25816 #include <stdlib.h>
25821 #if defined(__STDC__) || defined(__cplusplus)
25822 int unsetenv (const char *name);
25835 rm -f conftest.
$ac_objext
25836 if { (ac_try
="$ac_compile"
25837 case "(($ac_try" in
25838 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
25839 *) ac_try_echo=$ac_try;;
25841 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25842 $as_echo "$ac_try_echo") >&5
25843 (eval "$ac_compile") 2>conftest.er1
25845 grep -v '^ *+' conftest.er1 >conftest.err
25847 cat conftest.err >&5
25848 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25849 (exit $ac_status); } && {
25850 test -z "$ac_c_werror_flag" ||
25851 test ! -s conftest.err
25852 } && test -s conftest.$ac_objext; then
25853 gt_cv_func_unsetenv_ret='int'
25855 $as_echo "$as_me: failed program was:" >&5
25856 sed 's/^/| /' conftest.$ac_ext >&5
25858 gt_cv_func_unsetenv_ret='void'
25861 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25863 { $as_echo "$as_me:$LINENO: result: $gt_cv_func_unsetenv_ret" >&5
25864 $as_echo "$gt_cv_func_unsetenv_ret" >&6; }
25865 if test $gt_cv_func_unsetenv_ret = 'void'; then
25867 cat >>confdefs.h <<\_ACEOF
25868 #define VOID_UNSETENV 1
25876 for ac_header in stdint.h
25878 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" |
$as_tr_sh`
25879 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25880 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
25881 $as_echo_n "checking for $ac_header... " >&6; }
25882 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25883 $as_echo_n "(cached) " >&6
25885 ac_res=`eval 'as_val=${'$as_ac_Header'}
25886 $as_echo "$as_val"'`
25887 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
25888 $as_echo "$ac_res" >&6; }
25890 # Is the header compilable?
25891 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
25892 $as_echo_n "checking $ac_header usability... " >&6; }
25893 cat >conftest.$ac_ext <<_ACEOF
25896 cat confdefs.h >>conftest.$ac_ext
25897 cat >>conftest.$ac_ext <<_ACEOF
25898 /* end confdefs.h. */
25899 $ac_includes_default
25900 #include <$ac_header>
25902 rm -f conftest.$ac_objext
25903 if { (ac_try="$ac_compile"
25904 case "(($ac_try" in
25905 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
25906 *) ac_try_echo
=$ac_try;;
25908 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
25909 $as_echo "$ac_try_echo") >&5
25910 (eval "$ac_compile") 2>conftest.er1
25912 grep -v '^ *+' conftest.er1
>conftest.err
25914 cat conftest.err
>&5
25915 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25916 (exit $ac_status); } && {
25917 test -z "$ac_c_werror_flag" ||
25918 test ! -s conftest.err
25919 } && test -s conftest.
$ac_objext; then
25920 ac_header_compiler
=yes
25922 $as_echo "$as_me: failed program was:" >&5
25923 sed 's/^/| /' conftest.
$ac_ext >&5
25925 ac_header_compiler
=no
25928 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
25929 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25930 $as_echo "$ac_header_compiler" >&6; }
25932 # Is the header present?
25933 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
25934 $as_echo_n "checking $ac_header presence... " >&6; }
25935 cat >conftest.
$ac_ext <<_ACEOF
25938 cat confdefs.h
>>conftest.
$ac_ext
25939 cat >>conftest.
$ac_ext <<_ACEOF
25940 /* end confdefs.h. */
25941 #include <$ac_header>
25943 if { (ac_try
="$ac_cpp conftest.$ac_ext"
25944 case "(($ac_try" in
25945 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
25946 *) ac_try_echo=$ac_try;;
25948 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25949 $as_echo "$ac_try_echo") >&5
25950 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
25952 grep -v '^ *+' conftest.er1 >conftest.err
25954 cat conftest.err >&5
25955 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25956 (exit $ac_status); } >/dev/null && {
25957 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
25958 test ! -s conftest.err
25960 ac_header_preproc=yes
25962 $as_echo "$as_me: failed program was:" >&5
25963 sed 's/^/| /' conftest.$ac_ext >&5
25965 ac_header_preproc=no
25968 rm -f conftest.err conftest.$ac_ext
25969 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25970 $as_echo "$ac_header_preproc" >&6; }
25972 # So? What about this header?
25973 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25975 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
25976 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
25977 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
25978 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
25979 ac_header_preproc=yes
25982 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
25983 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
25984 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
25985 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
25986 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
25987 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
25988 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
25989 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
25990 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
25991 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
25992 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
25993 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
25995 ## --------------------------------- ##
25996 ## Report this to bug-cvs@nongnu.org ##
25997 ## --------------------------------- ##
25999 ) | sed "s/^/$as_me: WARNING: /" >&2
26002 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
26003 $as_echo_n "checking for $ac_header... " >&6; }
26004 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26005 $as_echo_n "(cached) " >&6
26007 eval "$as_ac_Header=\$ac_header_preproc"
26009 ac_res=`eval 'as_val=${'$as_ac_Header'}
26010 $as_echo "$as_val"'`
26011 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
26012 $as_echo "$ac_res" >&6; }
26015 as_val=`eval 'as_val=${'$as_ac_Header'}
26016 $as_echo "$as_val"'`
26017 if test "x$as_val" = x""yes; then
26018 cat >>confdefs.h <<_ACEOF
26019 #define `$as_echo "HAVE_$ac_header" |
$as_tr_cpp` 1
26026 { $as_echo "$as_me:$LINENO: checking for SIZE_MAX" >&5
26027 $as_echo_n "checking for SIZE_MAX... " >&6; }
26029 cat >conftest.$ac_ext <<_ACEOF
26032 cat confdefs.h >>conftest.$ac_ext
26033 cat >>conftest.$ac_ext <<_ACEOF
26034 /* end confdefs.h. */
26036 #include <limits.h>
26038 #include <stdint.h>
26045 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
26046 $EGREP "Found it" >/dev/null 2>&1; then
26051 if test -z "$result"; then
26052 if test "$cross_compiling" = yes; then
26053 # Depending upon the size, compute the lo and hi bounds.
26054 cat >conftest.$ac_ext <<_ACEOF
26057 cat confdefs.h >>conftest.$ac_ext
26058 cat >>conftest.$ac_ext <<_ACEOF
26059 /* end confdefs.h. */
26060 #include <stddef.h>
26064 static int test_array [1 - 2 * !((~(size_t)0 / 10) >= 0)];
26071 rm -f conftest.$ac_objext
26072 if { (ac_try="$ac_compile"
26073 case "(($ac_try" in
26074 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
26075 *) ac_try_echo
=$ac_try;;
26077 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
26078 $as_echo "$ac_try_echo") >&5
26079 (eval "$ac_compile") 2>conftest.er1
26081 grep -v '^ *+' conftest.er1
>conftest.err
26083 cat conftest.err
>&5
26084 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26085 (exit $ac_status); } && {
26086 test -z "$ac_c_werror_flag" ||
26087 test ! -s conftest.err
26088 } && test -s conftest.
$ac_objext; then
26091 cat >conftest.
$ac_ext <<_ACEOF
26094 cat confdefs.h
>>conftest.
$ac_ext
26095 cat >>conftest.
$ac_ext <<_ACEOF
26096 /* end confdefs.h. */
26097 #include <stddef.h>
26101 static int test_array [1 - 2 * !((~(size_t)0 / 10) <= $ac_mid)];
26108 rm -f conftest.
$ac_objext
26109 if { (ac_try
="$ac_compile"
26110 case "(($ac_try" in
26111 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
26112 *) ac_try_echo=$ac_try;;
26114 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26115 $as_echo "$ac_try_echo") >&5
26116 (eval "$ac_compile") 2>conftest.er1
26118 grep -v '^ *+' conftest.er1 >conftest.err
26120 cat conftest.err >&5
26121 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26122 (exit $ac_status); } && {
26123 test -z "$ac_c_werror_flag" ||
26124 test ! -s conftest.err
26125 } && test -s conftest.$ac_objext; then
26126 ac_hi=$ac_mid; break
26128 $as_echo "$as_me: failed program was:" >&5
26129 sed 's/^/| /' conftest.$ac_ext >&5
26131 ac_lo=`expr $ac_mid + 1`
26132 if test $ac_lo -le $ac_mid; then
26136 ac_mid=`expr 2 '*' $ac_mid + 1`
26139 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26142 $as_echo "$as_me: failed program was:" >&5
26143 sed 's/^/| /' conftest.$ac_ext >&5
26145 cat >conftest.$ac_ext <<_ACEOF
26148 cat confdefs.h >>conftest.$ac_ext
26149 cat >>conftest.$ac_ext <<_ACEOF
26150 /* end confdefs.h. */
26151 #include <stddef.h>
26155 static int test_array [1 - 2 * !((~(size_t)0 / 10) < 0)];
26162 rm -f conftest.$ac_objext
26163 if { (ac_try="$ac_compile"
26164 case "(($ac_try" in
26165 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
26166 *) ac_try_echo
=$ac_try;;
26168 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
26169 $as_echo "$ac_try_echo") >&5
26170 (eval "$ac_compile") 2>conftest.er1
26172 grep -v '^ *+' conftest.er1
>conftest.err
26174 cat conftest.err
>&5
26175 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26176 (exit $ac_status); } && {
26177 test -z "$ac_c_werror_flag" ||
26178 test ! -s conftest.err
26179 } && test -s conftest.
$ac_objext; then
26182 cat >conftest.
$ac_ext <<_ACEOF
26185 cat confdefs.h
>>conftest.
$ac_ext
26186 cat >>conftest.
$ac_ext <<_ACEOF
26187 /* end confdefs.h. */
26188 #include <stddef.h>
26192 static int test_array [1 - 2 * !((~(size_t)0 / 10) >= $ac_mid)];
26199 rm -f conftest.
$ac_objext
26200 if { (ac_try
="$ac_compile"
26201 case "(($ac_try" in
26202 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
26203 *) ac_try_echo=$ac_try;;
26205 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26206 $as_echo "$ac_try_echo") >&5
26207 (eval "$ac_compile") 2>conftest.er1
26209 grep -v '^ *+' conftest.er1 >conftest.err
26211 cat conftest.err >&5
26212 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26213 (exit $ac_status); } && {
26214 test -z "$ac_c_werror_flag" ||
26215 test ! -s conftest.err
26216 } && test -s conftest.$ac_objext; then
26217 ac_lo=$ac_mid; break
26219 $as_echo "$as_me: failed program was:" >&5
26220 sed 's/^/| /' conftest.$ac_ext >&5
26222 ac_hi=`expr '(' $ac_mid ')' - 1`
26223 if test $ac_mid -le $ac_hi; then
26227 ac_mid=`expr 2 '*' $ac_mid`
26230 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26233 $as_echo "$as_me: failed program was:" >&5
26234 sed 's/^/| /' conftest.$ac_ext >&5
26239 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26242 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26243 # Binary search between lo and hi bounds.
26244 while test "x$ac_lo" != "x$ac_hi"; do
26245 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
26246 cat >conftest.$ac_ext <<_ACEOF
26249 cat confdefs.h >>conftest.$ac_ext
26250 cat >>conftest.$ac_ext <<_ACEOF
26251 /* end confdefs.h. */
26252 #include <stddef.h>
26256 static int test_array [1 - 2 * !((~(size_t)0 / 10) <= $ac_mid)];
26263 rm -f conftest.$ac_objext
26264 if { (ac_try="$ac_compile"
26265 case "(($ac_try" in
26266 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
26267 *) ac_try_echo
=$ac_try;;
26269 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
26270 $as_echo "$ac_try_echo") >&5
26271 (eval "$ac_compile") 2>conftest.er1
26273 grep -v '^ *+' conftest.er1
>conftest.err
26275 cat conftest.err
>&5
26276 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26277 (exit $ac_status); } && {
26278 test -z "$ac_c_werror_flag" ||
26279 test ! -s conftest.err
26280 } && test -s conftest.
$ac_objext; then
26283 $as_echo "$as_me: failed program was:" >&5
26284 sed 's/^/| /' conftest.
$ac_ext >&5
26286 ac_lo
=`expr '(' $ac_mid ')' + 1`
26289 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
26292 ?
*) res_hi
=$ac_lo;;
26296 cat >conftest.
$ac_ext <<_ACEOF
26299 cat confdefs.h
>>conftest.
$ac_ext
26300 cat >>conftest.
$ac_ext <<_ACEOF
26301 /* end confdefs.h. */
26302 #include <stddef.h>
26303 static long int longval () { return ~(size_t)0 / 10; }
26304 static unsigned long int ulongval () { return ~(size_t)0 / 10; }
26306 #include <stdlib.h>
26311 FILE *f = fopen ("conftest.val", "w");
26314 if ((~(size_t)0 / 10) < 0)
26316 long int i = longval ();
26317 if (i != (~(size_t)0 / 10))
26319 fprintf (f, "%ld", i);
26323 unsigned long int i = ulongval ();
26324 if (i != (~(size_t)0 / 10))
26326 fprintf (f, "%lu", i);
26328 /* Do not output a trailing newline, as this causes \r\n confusion
26329 on some platforms. */
26330 return ferror (f) || fclose (f) != 0;
26336 rm -f conftest
$ac_exeext
26337 if { (ac_try
="$ac_link"
26338 case "(($ac_try" in
26339 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
26340 *) ac_try_echo=$ac_try;;
26342 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26343 $as_echo "$ac_try_echo") >&5
26344 (eval "$ac_link") 2>&5
26346 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26347 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26348 { (case "(($ac_try" in
26349 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
26350 *) ac_try_echo
=$ac_try;;
26352 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
26353 $as_echo "$ac_try_echo") >&5
26354 (eval "$ac_try") 2>&5
26356 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26357 (exit $ac_status); }; }; then
26358 res_hi
=`cat conftest.val`
26360 $as_echo "$as_me: program exited with status $ac_status" >&5
26361 $as_echo "$as_me: failed program was:" >&5
26362 sed 's/^/| /' conftest.
$ac_ext >&5
26364 ( exit $ac_status )
26367 rm -rf conftest.dSYM
26368 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
26372 if test "$cross_compiling" = yes; then
26373 # Depending upon the size, compute the lo and hi bounds.
26374 cat >conftest.
$ac_ext <<_ACEOF
26377 cat confdefs.h
>>conftest.
$ac_ext
26378 cat >>conftest.
$ac_ext <<_ACEOF
26379 /* end confdefs.h. */
26380 #include <stddef.h>
26384 static int test_array [1 - 2 * !((~(size_t)0 % 10) >= 0)];
26391 rm -f conftest.
$ac_objext
26392 if { (ac_try
="$ac_compile"
26393 case "(($ac_try" in
26394 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
26395 *) ac_try_echo=$ac_try;;
26397 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26398 $as_echo "$ac_try_echo") >&5
26399 (eval "$ac_compile") 2>conftest.er1
26401 grep -v '^ *+' conftest.er1 >conftest.err
26403 cat conftest.err >&5
26404 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26405 (exit $ac_status); } && {
26406 test -z "$ac_c_werror_flag" ||
26407 test ! -s conftest.err
26408 } && test -s conftest.$ac_objext; then
26411 cat >conftest.$ac_ext <<_ACEOF
26414 cat confdefs.h >>conftest.$ac_ext
26415 cat >>conftest.$ac_ext <<_ACEOF
26416 /* end confdefs.h. */
26417 #include <stddef.h>
26421 static int test_array [1 - 2 * !((~(size_t)0 % 10) <= $ac_mid)];
26428 rm -f conftest.$ac_objext
26429 if { (ac_try="$ac_compile"
26430 case "(($ac_try" in
26431 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
26432 *) ac_try_echo
=$ac_try;;
26434 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
26435 $as_echo "$ac_try_echo") >&5
26436 (eval "$ac_compile") 2>conftest.er1
26438 grep -v '^ *+' conftest.er1
>conftest.err
26440 cat conftest.err
>&5
26441 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26442 (exit $ac_status); } && {
26443 test -z "$ac_c_werror_flag" ||
26444 test ! -s conftest.err
26445 } && test -s conftest.
$ac_objext; then
26446 ac_hi
=$ac_mid; break
26448 $as_echo "$as_me: failed program was:" >&5
26449 sed 's/^/| /' conftest.
$ac_ext >&5
26451 ac_lo
=`expr $ac_mid + 1`
26452 if test $ac_lo -le $ac_mid; then
26456 ac_mid
=`expr 2 '*' $ac_mid + 1`
26459 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
26462 $as_echo "$as_me: failed program was:" >&5
26463 sed 's/^/| /' conftest.
$ac_ext >&5
26465 cat >conftest.
$ac_ext <<_ACEOF
26468 cat confdefs.h
>>conftest.
$ac_ext
26469 cat >>conftest.
$ac_ext <<_ACEOF
26470 /* end confdefs.h. */
26471 #include <stddef.h>
26475 static int test_array [1 - 2 * !((~(size_t)0 % 10) < 0)];
26482 rm -f conftest.
$ac_objext
26483 if { (ac_try
="$ac_compile"
26484 case "(($ac_try" in
26485 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
26486 *) ac_try_echo=$ac_try;;
26488 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26489 $as_echo "$ac_try_echo") >&5
26490 (eval "$ac_compile") 2>conftest.er1
26492 grep -v '^ *+' conftest.er1 >conftest.err
26494 cat conftest.err >&5
26495 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26496 (exit $ac_status); } && {
26497 test -z "$ac_c_werror_flag" ||
26498 test ! -s conftest.err
26499 } && test -s conftest.$ac_objext; then
26502 cat >conftest.$ac_ext <<_ACEOF
26505 cat confdefs.h >>conftest.$ac_ext
26506 cat >>conftest.$ac_ext <<_ACEOF
26507 /* end confdefs.h. */
26508 #include <stddef.h>
26512 static int test_array [1 - 2 * !((~(size_t)0 % 10) >= $ac_mid)];
26519 rm -f conftest.$ac_objext
26520 if { (ac_try="$ac_compile"
26521 case "(($ac_try" in
26522 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
26523 *) ac_try_echo
=$ac_try;;
26525 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
26526 $as_echo "$ac_try_echo") >&5
26527 (eval "$ac_compile") 2>conftest.er1
26529 grep -v '^ *+' conftest.er1
>conftest.err
26531 cat conftest.err
>&5
26532 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26533 (exit $ac_status); } && {
26534 test -z "$ac_c_werror_flag" ||
26535 test ! -s conftest.err
26536 } && test -s conftest.
$ac_objext; then
26537 ac_lo
=$ac_mid; break
26539 $as_echo "$as_me: failed program was:" >&5
26540 sed 's/^/| /' conftest.
$ac_ext >&5
26542 ac_hi
=`expr '(' $ac_mid ')' - 1`
26543 if test $ac_mid -le $ac_hi; then
26547 ac_mid
=`expr 2 '*' $ac_mid`
26550 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
26553 $as_echo "$as_me: failed program was:" >&5
26554 sed 's/^/| /' conftest.
$ac_ext >&5
26559 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
26562 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
26563 # Binary search between lo and hi bounds.
26564 while test "x$ac_lo" != "x$ac_hi"; do
26565 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
26566 cat >conftest.
$ac_ext <<_ACEOF
26569 cat confdefs.h
>>conftest.
$ac_ext
26570 cat >>conftest.
$ac_ext <<_ACEOF
26571 /* end confdefs.h. */
26572 #include <stddef.h>
26576 static int test_array [1 - 2 * !((~(size_t)0 % 10) <= $ac_mid)];
26583 rm -f conftest.
$ac_objext
26584 if { (ac_try
="$ac_compile"
26585 case "(($ac_try" in
26586 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
26587 *) ac_try_echo=$ac_try;;
26589 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26590 $as_echo "$ac_try_echo") >&5
26591 (eval "$ac_compile") 2>conftest.er1
26593 grep -v '^ *+' conftest.er1 >conftest.err
26595 cat conftest.err >&5
26596 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26597 (exit $ac_status); } && {
26598 test -z "$ac_c_werror_flag" ||
26599 test ! -s conftest.err
26600 } && test -s conftest.$ac_objext; then
26603 $as_echo "$as_me: failed program was:" >&5
26604 sed 's/^/| /' conftest.$ac_ext >&5
26606 ac_lo=`expr '(' $ac_mid ')' + 1`
26609 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26612 ?*) res_lo=$ac_lo;;
26616 cat >conftest.$ac_ext <<_ACEOF
26619 cat confdefs.h >>conftest.$ac_ext
26620 cat >>conftest.$ac_ext <<_ACEOF
26621 /* end confdefs.h. */
26622 #include <stddef.h>
26623 static long int longval () { return ~(size_t)0 % 10; }
26624 static unsigned long int ulongval () { return ~(size_t)0 % 10; }
26626 #include <stdlib.h>
26631 FILE *f = fopen ("conftest.val", "w");
26634 if ((~(size_t)0 % 10) < 0)
26636 long int i = longval ();
26637 if (i != (~(size_t)0 % 10))
26639 fprintf (f, "%ld", i);
26643 unsigned long int i = ulongval ();
26644 if (i != (~(size_t)0 % 10))
26646 fprintf (f, "%lu", i);
26648 /* Do not output a trailing newline, as this causes \r\n confusion
26649 on some platforms. */
26650 return ferror (f) || fclose (f) != 0;
26656 rm -f conftest$ac_exeext
26657 if { (ac_try="$ac_link"
26658 case "(($ac_try" in
26659 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
26660 *) ac_try_echo
=$ac_try;;
26662 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
26663 $as_echo "$ac_try_echo") >&5
26664 (eval "$ac_link") 2>&5
26666 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26667 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
26668 { (case "(($ac_try" in
26669 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
26670 *) ac_try_echo=$ac_try;;
26672 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26673 $as_echo "$ac_try_echo") >&5
26674 (eval "$ac_try") 2>&5
26676 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26677 (exit $ac_status); }; }; then
26678 res_lo=`cat conftest.val
`
26680 $as_echo "$as_me: program exited with status $ac_status" >&5
26681 $as_echo "$as_me: failed program was:" >&5
26682 sed 's/^/| /' conftest.$ac_ext >&5
26684 ( exit $ac_status )
26687 rm -rf conftest.dSYM
26688 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26692 if test "$cross_compiling" = yes; then
26693 # Depending upon the size, compute the lo and hi bounds.
26694 cat >conftest.$ac_ext <<_ACEOF
26697 cat confdefs.h >>conftest.$ac_ext
26698 cat >>conftest.$ac_ext <<_ACEOF
26699 /* end confdefs.h. */
26700 #include <stddef.h>
26704 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) >= 0)];
26711 rm -f conftest.$ac_objext
26712 if { (ac_try="$ac_compile"
26713 case "(($ac_try" in
26714 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
26715 *) ac_try_echo
=$ac_try;;
26717 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
26718 $as_echo "$ac_try_echo") >&5
26719 (eval "$ac_compile") 2>conftest.er1
26721 grep -v '^ *+' conftest.er1
>conftest.err
26723 cat conftest.err
>&5
26724 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26725 (exit $ac_status); } && {
26726 test -z "$ac_c_werror_flag" ||
26727 test ! -s conftest.err
26728 } && test -s conftest.
$ac_objext; then
26731 cat >conftest.
$ac_ext <<_ACEOF
26734 cat confdefs.h
>>conftest.
$ac_ext
26735 cat >>conftest.
$ac_ext <<_ACEOF
26736 /* end confdefs.h. */
26737 #include <stddef.h>
26741 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) <= $ac_mid)];
26748 rm -f conftest.
$ac_objext
26749 if { (ac_try
="$ac_compile"
26750 case "(($ac_try" in
26751 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
26752 *) ac_try_echo=$ac_try;;
26754 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26755 $as_echo "$ac_try_echo") >&5
26756 (eval "$ac_compile") 2>conftest.er1
26758 grep -v '^ *+' conftest.er1 >conftest.err
26760 cat conftest.err >&5
26761 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26762 (exit $ac_status); } && {
26763 test -z "$ac_c_werror_flag" ||
26764 test ! -s conftest.err
26765 } && test -s conftest.$ac_objext; then
26766 ac_hi=$ac_mid; break
26768 $as_echo "$as_me: failed program was:" >&5
26769 sed 's/^/| /' conftest.$ac_ext >&5
26771 ac_lo=`expr $ac_mid + 1`
26772 if test $ac_lo -le $ac_mid; then
26776 ac_mid=`expr 2 '*' $ac_mid + 1`
26779 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26782 $as_echo "$as_me: failed program was:" >&5
26783 sed 's/^/| /' conftest.$ac_ext >&5
26785 cat >conftest.$ac_ext <<_ACEOF
26788 cat confdefs.h >>conftest.$ac_ext
26789 cat >>conftest.$ac_ext <<_ACEOF
26790 /* end confdefs.h. */
26791 #include <stddef.h>
26795 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) < 0)];
26802 rm -f conftest.$ac_objext
26803 if { (ac_try="$ac_compile"
26804 case "(($ac_try" in
26805 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
26806 *) ac_try_echo
=$ac_try;;
26808 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
26809 $as_echo "$ac_try_echo") >&5
26810 (eval "$ac_compile") 2>conftest.er1
26812 grep -v '^ *+' conftest.er1
>conftest.err
26814 cat conftest.err
>&5
26815 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26816 (exit $ac_status); } && {
26817 test -z "$ac_c_werror_flag" ||
26818 test ! -s conftest.err
26819 } && test -s conftest.
$ac_objext; then
26822 cat >conftest.
$ac_ext <<_ACEOF
26825 cat confdefs.h
>>conftest.
$ac_ext
26826 cat >>conftest.
$ac_ext <<_ACEOF
26827 /* end confdefs.h. */
26828 #include <stddef.h>
26832 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) >= $ac_mid)];
26839 rm -f conftest.
$ac_objext
26840 if { (ac_try
="$ac_compile"
26841 case "(($ac_try" in
26842 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
26843 *) ac_try_echo=$ac_try;;
26845 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26846 $as_echo "$ac_try_echo") >&5
26847 (eval "$ac_compile") 2>conftest.er1
26849 grep -v '^ *+' conftest.er1 >conftest.err
26851 cat conftest.err >&5
26852 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26853 (exit $ac_status); } && {
26854 test -z "$ac_c_werror_flag" ||
26855 test ! -s conftest.err
26856 } && test -s conftest.$ac_objext; then
26857 ac_lo=$ac_mid; break
26859 $as_echo "$as_me: failed program was:" >&5
26860 sed 's/^/| /' conftest.$ac_ext >&5
26862 ac_hi=`expr '(' $ac_mid ')' - 1`
26863 if test $ac_mid -le $ac_hi; then
26867 ac_mid=`expr 2 '*' $ac_mid`
26870 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26873 $as_echo "$as_me: failed program was:" >&5
26874 sed 's/^/| /' conftest.$ac_ext >&5
26879 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26882 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26883 # Binary search between lo and hi bounds.
26884 while test "x$ac_lo" != "x$ac_hi"; do
26885 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
26886 cat >conftest.$ac_ext <<_ACEOF
26889 cat confdefs.h >>conftest.$ac_ext
26890 cat >>conftest.$ac_ext <<_ACEOF
26891 /* end confdefs.h. */
26892 #include <stddef.h>
26896 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) <= $ac_mid)];
26903 rm -f conftest.$ac_objext
26904 if { (ac_try="$ac_compile"
26905 case "(($ac_try" in
26906 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
26907 *) ac_try_echo
=$ac_try;;
26909 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
26910 $as_echo "$ac_try_echo") >&5
26911 (eval "$ac_compile") 2>conftest.er1
26913 grep -v '^ *+' conftest.er1
>conftest.err
26915 cat conftest.err
>&5
26916 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26917 (exit $ac_status); } && {
26918 test -z "$ac_c_werror_flag" ||
26919 test ! -s conftest.err
26920 } && test -s conftest.
$ac_objext; then
26923 $as_echo "$as_me: failed program was:" >&5
26924 sed 's/^/| /' conftest.
$ac_ext >&5
26926 ac_lo
=`expr '(' $ac_mid ')' + 1`
26929 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
26932 ?
*) fits_in_uint
=$ac_lo;;
26936 cat >conftest.
$ac_ext <<_ACEOF
26939 cat confdefs.h
>>conftest.
$ac_ext
26940 cat >>conftest.
$ac_ext <<_ACEOF
26941 /* end confdefs.h. */
26942 #include <stddef.h>
26943 static long int longval () { return sizeof (size_t) <= sizeof (unsigned int); }
26944 static unsigned long int ulongval () { return sizeof (size_t) <= sizeof (unsigned int); }
26946 #include <stdlib.h>
26951 FILE *f = fopen ("conftest.val", "w");
26954 if ((sizeof (size_t) <= sizeof (unsigned int)) < 0)
26956 long int i = longval ();
26957 if (i != (sizeof (size_t) <= sizeof (unsigned int)))
26959 fprintf (f, "%ld", i);
26963 unsigned long int i = ulongval ();
26964 if (i != (sizeof (size_t) <= sizeof (unsigned int)))
26966 fprintf (f, "%lu", i);
26968 /* Do not output a trailing newline, as this causes \r\n confusion
26969 on some platforms. */
26970 return ferror (f) || fclose (f) != 0;
26976 rm -f conftest
$ac_exeext
26977 if { (ac_try
="$ac_link"
26978 case "(($ac_try" in
26979 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
26980 *) ac_try_echo=$ac_try;;
26982 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26983 $as_echo "$ac_try_echo") >&5
26984 (eval "$ac_link") 2>&5
26986 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26987 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26988 { (case "(($ac_try" in
26989 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
26990 *) ac_try_echo
=$ac_try;;
26992 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
26993 $as_echo "$ac_try_echo") >&5
26994 (eval "$ac_try") 2>&5
26996 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26997 (exit $ac_status); }; }; then
26998 fits_in_uint
=`cat conftest.val`
27000 $as_echo "$as_me: program exited with status $ac_status" >&5
27001 $as_echo "$as_me: failed program was:" >&5
27002 sed 's/^/| /' conftest.
$ac_ext >&5
27004 ( exit $ac_status )
27007 rm -rf conftest.dSYM
27008 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
27012 if test "$fits_in_uint" = 1; then
27013 cat >conftest.
$ac_ext <<_ACEOF
27016 cat confdefs.h
>>conftest.
$ac_ext
27017 cat >>conftest.
$ac_ext <<_ACEOF
27018 /* end confdefs.h. */
27019 #include <stddef.h>
27021 extern unsigned long foo;
27031 rm -f conftest.
$ac_objext
27032 if { (ac_try
="$ac_compile"
27033 case "(($ac_try" in
27034 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
27035 *) ac_try_echo=$ac_try;;
27037 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27038 $as_echo "$ac_try_echo") >&5
27039 (eval "$ac_compile") 2>conftest.er1
27041 grep -v '^ *+' conftest.er1 >conftest.err
27043 cat conftest.err >&5
27044 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27045 (exit $ac_status); } && {
27046 test -z "$ac_c_werror_flag" ||
27047 test ! -s conftest.err
27048 } && test -s conftest.$ac_objext; then
27051 $as_echo "$as_me: failed program was:" >&5
27052 sed 's/^/| /' conftest.$ac_ext >&5
27057 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27059 if test -z "$result"; then
27060 if test "$fits_in_uint" = 1; then
27061 result="$res_hi$res_lo"U
27063 result="$res_hi$res_lo"UL
27066 result='~(size_t)0'
27069 { $as_echo "$as_me:$LINENO: result: $result" >&5
27070 $as_echo "$result" >&6; }
27071 if test "$result" != yes; then
27073 cat >>confdefs.h <<_ACEOF
27074 #define SIZE_MAX $result
27080 { $as_echo "$as_me:$LINENO: checking for ssize_t" >&5
27081 $as_echo_n "checking for ssize_t... " >&6; }
27082 if test "${gt_cv_ssize_t+set}" = set; then
27083 $as_echo_n "(cached) " >&6
27085 cat >conftest.$ac_ext <<_ACEOF
27088 cat confdefs.h >>conftest.$ac_ext
27089 cat >>conftest.$ac_ext <<_ACEOF
27090 /* end confdefs.h. */
27091 #include <sys/types.h>
27095 int x = sizeof (ssize_t *) + sizeof (ssize_t);
27100 rm -f conftest.$ac_objext
27101 if { (ac_try="$ac_compile"
27102 case "(($ac_try" in
27103 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
27104 *) ac_try_echo
=$ac_try;;
27106 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
27107 $as_echo "$ac_try_echo") >&5
27108 (eval "$ac_compile") 2>conftest.er1
27110 grep -v '^ *+' conftest.er1
>conftest.err
27112 cat conftest.err
>&5
27113 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27114 (exit $ac_status); } && {
27115 test -z "$ac_c_werror_flag" ||
27116 test ! -s conftest.err
27117 } && test -s conftest.
$ac_objext; then
27120 $as_echo "$as_me: failed program was:" >&5
27121 sed 's/^/| /' conftest.
$ac_ext >&5
27126 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
27128 { $as_echo "$as_me:$LINENO: result: $gt_cv_ssize_t" >&5
27129 $as_echo "$gt_cv_ssize_t" >&6; }
27130 if test $gt_cv_ssize_t = no
; then
27132 cat >>confdefs.h
<<\_ACEOF
27133 #define ssize_t int
27146 # Define two additional variables used in the Makefile substitution.
27148 if test "$ac_cv_header_stdbool_h" = yes; then
27151 STDBOOL_H
='stdbool.h'
27155 if test "$ac_cv_type__Bool" = yes; then
27164 for ac_header
in sys
/inttypes.h
27166 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
27167 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27168 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
27169 $as_echo_n "checking for $ac_header... " >&6; }
27170 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27171 $as_echo_n "(cached) " >&6
27173 ac_res
=`eval 'as_val=${'$as_ac_Header'}
27174 $as_echo "$as_val"'`
27175 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
27176 $as_echo "$ac_res" >&6; }
27178 # Is the header compilable?
27179 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
27180 $as_echo_n "checking $ac_header usability... " >&6; }
27181 cat >conftest.
$ac_ext <<_ACEOF
27184 cat confdefs.h
>>conftest.
$ac_ext
27185 cat >>conftest.
$ac_ext <<_ACEOF
27186 /* end confdefs.h. */
27187 $ac_includes_default
27188 #include <$ac_header>
27190 rm -f conftest.
$ac_objext
27191 if { (ac_try
="$ac_compile"
27192 case "(($ac_try" in
27193 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
27194 *) ac_try_echo=$ac_try;;
27196 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27197 $as_echo "$ac_try_echo") >&5
27198 (eval "$ac_compile") 2>conftest.er1
27200 grep -v '^ *+' conftest.er1 >conftest.err
27202 cat conftest.err >&5
27203 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27204 (exit $ac_status); } && {
27205 test -z "$ac_c_werror_flag" ||
27206 test ! -s conftest.err
27207 } && test -s conftest.$ac_objext; then
27208 ac_header_compiler=yes
27210 $as_echo "$as_me: failed program was:" >&5
27211 sed 's/^/| /' conftest.$ac_ext >&5
27213 ac_header_compiler=no
27216 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27217 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27218 $as_echo "$ac_header_compiler" >&6; }
27220 # Is the header present?
27221 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
27222 $as_echo_n "checking $ac_header presence... " >&6; }
27223 cat >conftest.$ac_ext <<_ACEOF
27226 cat confdefs.h >>conftest.$ac_ext
27227 cat >>conftest.$ac_ext <<_ACEOF
27228 /* end confdefs.h. */
27229 #include <$ac_header>
27231 if { (ac_try="$ac_cpp conftest.$ac_ext"
27232 case "(($ac_try" in
27233 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
27234 *) ac_try_echo
=$ac_try;;
27236 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
27237 $as_echo "$ac_try_echo") >&5
27238 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
27240 grep -v '^ *+' conftest.er1
>conftest.err
27242 cat conftest.err
>&5
27243 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27244 (exit $ac_status); } >/dev
/null
&& {
27245 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
27246 test ! -s conftest.err
27248 ac_header_preproc
=yes
27250 $as_echo "$as_me: failed program was:" >&5
27251 sed 's/^/| /' conftest.
$ac_ext >&5
27253 ac_header_preproc
=no
27256 rm -f conftest.err conftest.
$ac_ext
27257 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27258 $as_echo "$ac_header_preproc" >&6; }
27260 # So? What about this header?
27261 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27263 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
27264 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
27265 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
27266 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
27267 ac_header_preproc
=yes
27270 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
27271 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
27272 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
27273 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
27274 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
27275 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
27276 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
27277 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
27278 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
27279 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
27280 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
27281 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
27283 ## --------------------------------- ##
27284 ## Report this to bug-cvs@nongnu.org ##
27285 ## --------------------------------- ##
27287 ) |
sed "s/^/$as_me: WARNING: /" >&2
27290 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
27291 $as_echo_n "checking for $ac_header... " >&6; }
27292 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27293 $as_echo_n "(cached) " >&6
27295 eval "$as_ac_Header=\$ac_header_preproc"
27297 ac_res
=`eval 'as_val=${'$as_ac_Header'}
27298 $as_echo "$as_val"'`
27299 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
27300 $as_echo "$ac_res" >&6; }
27303 as_val
=`eval 'as_val=${'$as_ac_Header'}
27304 $as_echo "$as_val"'`
27305 if test "x$as_val" = x
""yes; then
27306 cat >>confdefs.h
<<_ACEOF
27307 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
27315 { $as_echo "$as_me:$LINENO: checking for stdint.h" >&5
27316 $as_echo_n "checking for stdint.h... " >&6; }
27317 if test "${gl_cv_header_stdint_h+set}" = set; then
27318 $as_echo_n "(cached) " >&6
27321 cat >conftest.
$ac_ext <<_ACEOF
27324 cat confdefs.h
>>conftest.
$ac_ext
27325 cat >>conftest.
$ac_ext <<_ACEOF
27326 /* end confdefs.h. */
27327 #include <stdint.h>
27336 rm -f conftest.
$ac_objext
27337 if { (ac_try
="$ac_compile"
27338 case "(($ac_try" in
27339 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
27340 *) ac_try_echo=$ac_try;;
27342 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27343 $as_echo "$ac_try_echo") >&5
27344 (eval "$ac_compile") 2>conftest.er1
27346 grep -v '^ *+' conftest.er1 >conftest.err
27348 cat conftest.err >&5
27349 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27350 (exit $ac_status); } && {
27351 test -z "$ac_c_werror_flag" ||
27352 test ! -s conftest.err
27353 } && test -s conftest.$ac_objext; then
27354 gl_cv_header_stdint_h=yes
27356 $as_echo "$as_me: failed program was:" >&5
27357 sed 's/^/| /' conftest.$ac_ext >&5
27359 gl_cv_header_stdint_h=no
27362 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27365 { $as_echo "$as_me:$LINENO: result: $gl_cv_header_stdint_h" >&5
27366 $as_echo "$gl_cv_header_stdint_h" >&6; }
27367 if test $gl_cv_header_stdint_h = yes; then
27369 cat >>confdefs.h <<\_ACEOF
27370 #define HAVE_STDINT_H 1
27375 STDINT_H='stdint.h'
27377 { $as_echo "$as_me:$LINENO: checking whether 'long' is 64 bit wide" >&5
27378 $as_echo_n "checking whether 'long' is 64 bit wide... " >&6; }
27379 if test "${gl_cv_long_bitsize_64+set}" = set; then
27380 $as_echo_n "(cached) " >&6
27383 cat >conftest.$ac_ext <<_ACEOF
27386 cat confdefs.h >>conftest.$ac_ext
27387 cat >>conftest.$ac_ext <<_ACEOF
27388 /* end confdefs.h. */
27390 #define POW63 ((((((long) 1 << 15) << 15) << 15) << 15) << 3)
27391 #define POW64 ((((((long) 1 << 15) << 15) << 15) << 15) << 4)
27392 typedef int array [2 * (POW63 != 0 && POW64 == 0) - 1];
27402 rm -f conftest.$ac_objext
27403 if { (ac_try="$ac_compile"
27404 case "(($ac_try" in
27405 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
27406 *) ac_try_echo
=$ac_try;;
27408 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
27409 $as_echo "$ac_try_echo") >&5
27410 (eval "$ac_compile") 2>conftest.er1
27412 grep -v '^ *+' conftest.er1
>conftest.err
27414 cat conftest.err
>&5
27415 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27416 (exit $ac_status); } && {
27417 test -z "$ac_c_werror_flag" ||
27418 test ! -s conftest.err
27419 } && test -s conftest.
$ac_objext; then
27420 gl_cv_long_bitsize_64
=yes
27422 $as_echo "$as_me: failed program was:" >&5
27423 sed 's/^/| /' conftest.
$ac_ext >&5
27425 gl_cv_long_bitsize_64
=no
27428 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
27430 { $as_echo "$as_me:$LINENO: result: $gl_cv_long_bitsize_64" >&5
27431 $as_echo "$gl_cv_long_bitsize_64" >&6; }
27432 if test $gl_cv_long_bitsize_64 = yes; then
27439 { $as_echo "$as_me:$LINENO: checking whether 'long long' is 64 bit wide" >&5
27440 $as_echo_n "checking whether 'long long' is 64 bit wide... " >&6; }
27441 if test "${gl_cv_longlong_bitsize_64+set}" = set; then
27442 $as_echo_n "(cached) " >&6
27445 cat >conftest.
$ac_ext <<_ACEOF
27448 cat confdefs.h
>>conftest.
$ac_ext
27449 cat >>conftest.
$ac_ext <<_ACEOF
27450 /* end confdefs.h. */
27452 #define POW63 ((((((long long) 1 << 15) << 15) << 15) << 15) << 3)
27453 #define POW64 ((((((long long) 1 << 15) << 15) << 15) << 15) << 4)
27454 typedef int array [2 * (POW63 != 0 && POW64 == 0) - 1];
27464 rm -f conftest.
$ac_objext
27465 if { (ac_try
="$ac_compile"
27466 case "(($ac_try" in
27467 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
27468 *) ac_try_echo=$ac_try;;
27470 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27471 $as_echo "$ac_try_echo") >&5
27472 (eval "$ac_compile") 2>conftest.er1
27474 grep -v '^ *+' conftest.er1 >conftest.err
27476 cat conftest.err >&5
27477 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27478 (exit $ac_status); } && {
27479 test -z "$ac_c_werror_flag" ||
27480 test ! -s conftest.err
27481 } && test -s conftest.$ac_objext; then
27482 gl_cv_longlong_bitsize_64=yes
27484 $as_echo "$as_me: failed program was:" >&5
27485 sed 's/^/| /' conftest.$ac_ext >&5
27487 gl_cv_longlong_bitsize_64=no
27490 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27492 { $as_echo "$as_me:$LINENO: result: $gl_cv_longlong_bitsize_64" >&5
27493 $as_echo "$gl_cv_longlong_bitsize_64" >&6; }
27494 if test $gl_cv_longlong_bitsize_64 = yes; then
27495 HAVE_LONG_LONG_64BIT=1
27497 HAVE_LONG_LONG_64BIT=0
27506 case " $LIBOBJS " in
27507 *" strcasecmp.$ac_objext "* ) ;;
27508 *) LIBOBJS="$LIBOBJS strcasecmp.$ac_objext"
27513 cat >>confdefs.h <<\_ACEOF
27514 #define strcasecmp rpl_strcasecmp
27519 { $as_echo "$as_me:$LINENO: checking whether mbrtowc and mbstate_t are properly declared" >&5
27520 $as_echo_n "checking whether mbrtowc and mbstate_t are properly declared... " >&6; }
27521 if test "${gl_cv_func_mbrtowc+set}" = set; then
27522 $as_echo_n "(cached) " >&6
27524 cat >conftest.$ac_ext <<_ACEOF
27527 cat confdefs.h >>conftest.$ac_ext
27528 cat >>conftest.$ac_ext <<_ACEOF
27529 /* end confdefs.h. */
27535 char const s[] = "";
27538 return ! (sizeof state && (mbrtowc) (&wc, s, n, &state));
27543 rm -f conftest.$ac_objext conftest$ac_exeext
27544 if { (ac_try="$ac_link"
27545 case "(($ac_try" in
27546 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
27547 *) ac_try_echo
=$ac_try;;
27549 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
27550 $as_echo "$ac_try_echo") >&5
27551 (eval "$ac_link") 2>conftest.er1
27553 grep -v '^ *+' conftest.er1
>conftest.err
27555 cat conftest.err
>&5
27556 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27557 (exit $ac_status); } && {
27558 test -z "$ac_c_werror_flag" ||
27559 test ! -s conftest.err
27560 } && test -s conftest
$ac_exeext && {
27561 test "$cross_compiling" = yes ||
27562 $as_test_x conftest
$ac_exeext
27564 gl_cv_func_mbrtowc
=yes
27566 $as_echo "$as_me: failed program was:" >&5
27567 sed 's/^/| /' conftest.
$ac_ext >&5
27569 gl_cv_func_mbrtowc
=no
27572 rm -rf conftest.dSYM
27573 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
27574 conftest
$ac_exeext conftest.
$ac_ext
27576 { $as_echo "$as_me:$LINENO: result: $gl_cv_func_mbrtowc" >&5
27577 $as_echo "$gl_cv_func_mbrtowc" >&6; }
27578 if test $gl_cv_func_mbrtowc = yes; then
27580 cat >>confdefs.h
<<\_ACEOF
27581 #define HAVE_MBRTOWC 1
27590 for ac_func
in strncasecmp
27592 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
27593 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
27594 $as_echo_n "checking for $ac_func... " >&6; }
27595 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
27596 $as_echo_n "(cached) " >&6
27598 cat >conftest.
$ac_ext <<_ACEOF
27601 cat confdefs.h
>>conftest.
$ac_ext
27602 cat >>conftest.
$ac_ext <<_ACEOF
27603 /* end confdefs.h. */
27604 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27605 For example, HP-UX 11i <limits.h> declares gettimeofday. */
27606 #define $ac_func innocuous_$ac_func
27608 /* System header to define __stub macros and hopefully few prototypes,
27609 which can conflict with char $ac_func (); below.
27610 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27611 <limits.h> exists even on freestanding compilers. */
27614 # include <limits.h>
27616 # include <assert.h>
27621 /* Override any GCC internal prototype to avoid an error.
27622 Use char because int might match the return type of a GCC
27623 builtin and then its argument prototype would still apply. */
27628 /* The GNU C library defines this for functions which it implements
27629 to always fail with ENOSYS. Some functions are actually named
27630 something starting with __ and the normal name is an alias. */
27631 #if defined __stub_$ac_func || defined __stub___$ac_func
27638 return $ac_func ();
27643 rm -f conftest.
$ac_objext conftest
$ac_exeext
27644 if { (ac_try
="$ac_link"
27645 case "(($ac_try" in
27646 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
27647 *) ac_try_echo=$ac_try;;
27649 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27650 $as_echo "$ac_try_echo") >&5
27651 (eval "$ac_link") 2>conftest.er1
27653 grep -v '^ *+' conftest.er1 >conftest.err
27655 cat conftest.err >&5
27656 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27657 (exit $ac_status); } && {
27658 test -z "$ac_c_werror_flag" ||
27659 test ! -s conftest.err
27660 } && test -s conftest$ac_exeext && {
27661 test "$cross_compiling" = yes ||
27662 $as_test_x conftest$ac_exeext
27664 eval "$as_ac_var=yes"
27666 $as_echo "$as_me: failed program was:" >&5
27667 sed 's/^/| /' conftest.$ac_ext >&5
27669 eval "$as_ac_var=no"
27672 rm -rf conftest.dSYM
27673 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27674 conftest$ac_exeext conftest.$ac_ext
27676 ac_res=`eval 'as_val=${'$as_ac_var'}
27677 $as_echo "$as_val"'`
27678 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
27679 $as_echo "$ac_res" >&6; }
27680 as_val=`eval 'as_val=${'$as_ac_var'}
27681 $as_echo "$as_val"'`
27682 if test "x$as_val" = x""yes; then
27683 cat >>confdefs.h <<_ACEOF
27684 #define `$as_echo "HAVE_$ac_func" |
$as_tr_cpp` 1
27688 case " $LIBOBJS " in
27689 *" $ac_func.$ac_objext "* ) ;;
27690 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
27698 if test $ac_cv_func_strncasecmp = no; then
27709 for ac_func in strdup
27711 as_ac_var=`$as_echo "ac_cv_func_$ac_func" |
$as_tr_sh`
27712 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
27713 $as_echo_n "checking for $ac_func... " >&6; }
27714 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
27715 $as_echo_n "(cached) " >&6
27717 cat >conftest.$ac_ext <<_ACEOF
27720 cat confdefs.h >>conftest.$ac_ext
27721 cat >>conftest.$ac_ext <<_ACEOF
27722 /* end confdefs.h. */
27723 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27724 For example, HP-UX 11i <limits.h> declares gettimeofday. */
27725 #define $ac_func innocuous_$ac_func
27727 /* System header to define __stub macros and hopefully few prototypes,
27728 which can conflict with char $ac_func (); below.
27729 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27730 <limits.h> exists even on freestanding compilers. */
27733 # include <limits.h>
27735 # include <assert.h>
27740 /* Override any GCC internal prototype to avoid an error.
27741 Use char because int might match the return type of a GCC
27742 builtin and then its argument prototype would still apply. */
27747 /* The GNU C library defines this for functions which it implements
27748 to always fail with ENOSYS. Some functions are actually named
27749 something starting with __ and the normal name is an alias. */
27750 #if defined __stub_$ac_func || defined __stub___$ac_func
27757 return $ac_func ();
27762 rm -f conftest.$ac_objext conftest$ac_exeext
27763 if { (ac_try="$ac_link"
27764 case "(($ac_try" in
27765 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
27766 *) ac_try_echo
=$ac_try;;
27768 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
27769 $as_echo "$ac_try_echo") >&5
27770 (eval "$ac_link") 2>conftest.er1
27772 grep -v '^ *+' conftest.er1
>conftest.err
27774 cat conftest.err
>&5
27775 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27776 (exit $ac_status); } && {
27777 test -z "$ac_c_werror_flag" ||
27778 test ! -s conftest.err
27779 } && test -s conftest
$ac_exeext && {
27780 test "$cross_compiling" = yes ||
27781 $as_test_x conftest
$ac_exeext
27783 eval "$as_ac_var=yes"
27785 $as_echo "$as_me: failed program was:" >&5
27786 sed 's/^/| /' conftest.
$ac_ext >&5
27788 eval "$as_ac_var=no"
27791 rm -rf conftest.dSYM
27792 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
27793 conftest
$ac_exeext conftest.
$ac_ext
27795 ac_res
=`eval 'as_val=${'$as_ac_var'}
27796 $as_echo "$as_val"'`
27797 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
27798 $as_echo "$ac_res" >&6; }
27799 as_val
=`eval 'as_val=${'$as_ac_var'}
27800 $as_echo "$as_val"'`
27801 if test "x$as_val" = x
""yes; then
27802 cat >>confdefs.h
<<_ACEOF
27803 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
27807 case " $LIBOBJS " in
27808 *" $ac_func.$ac_objext "* ) ;;
27809 *) LIBOBJS
="$LIBOBJS $ac_func.$ac_objext"
27828 for ac_func
in strerror
27830 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
27831 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
27832 $as_echo_n "checking for $ac_func... " >&6; }
27833 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
27834 $as_echo_n "(cached) " >&6
27836 cat >conftest.
$ac_ext <<_ACEOF
27839 cat confdefs.h
>>conftest.
$ac_ext
27840 cat >>conftest.
$ac_ext <<_ACEOF
27841 /* end confdefs.h. */
27842 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27843 For example, HP-UX 11i <limits.h> declares gettimeofday. */
27844 #define $ac_func innocuous_$ac_func
27846 /* System header to define __stub macros and hopefully few prototypes,
27847 which can conflict with char $ac_func (); below.
27848 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27849 <limits.h> exists even on freestanding compilers. */
27852 # include <limits.h>
27854 # include <assert.h>
27859 /* Override any GCC internal prototype to avoid an error.
27860 Use char because int might match the return type of a GCC
27861 builtin and then its argument prototype would still apply. */
27866 /* The GNU C library defines this for functions which it implements
27867 to always fail with ENOSYS. Some functions are actually named
27868 something starting with __ and the normal name is an alias. */
27869 #if defined __stub_$ac_func || defined __stub___$ac_func
27876 return $ac_func ();
27881 rm -f conftest.
$ac_objext conftest
$ac_exeext
27882 if { (ac_try
="$ac_link"
27883 case "(($ac_try" in
27884 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
27885 *) ac_try_echo=$ac_try;;
27887 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27888 $as_echo "$ac_try_echo") >&5
27889 (eval "$ac_link") 2>conftest.er1
27891 grep -v '^ *+' conftest.er1 >conftest.err
27893 cat conftest.err >&5
27894 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27895 (exit $ac_status); } && {
27896 test -z "$ac_c_werror_flag" ||
27897 test ! -s conftest.err
27898 } && test -s conftest$ac_exeext && {
27899 test "$cross_compiling" = yes ||
27900 $as_test_x conftest$ac_exeext
27902 eval "$as_ac_var=yes"
27904 $as_echo "$as_me: failed program was:" >&5
27905 sed 's/^/| /' conftest.$ac_ext >&5
27907 eval "$as_ac_var=no"
27910 rm -rf conftest.dSYM
27911 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27912 conftest$ac_exeext conftest.$ac_ext
27914 ac_res=`eval 'as_val=${'$as_ac_var'}
27915 $as_echo "$as_val"'`
27916 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
27917 $as_echo "$ac_res" >&6; }
27918 as_val=`eval 'as_val=${'$as_ac_var'}
27919 $as_echo "$as_val"'`
27920 if test "x$as_val" = x""yes; then
27921 cat >>confdefs.h <<_ACEOF
27922 #define `$as_echo "HAVE_$ac_func" |
$as_tr_cpp` 1
27926 case " $LIBOBJS " in
27927 *" $ac_func.$ac_objext "* ) ;;
27928 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
27936 if test $ac_cv_func_strerror = no; then
27944 case " $LIBOBJS " in
27945 *" strstr.$ac_objext "* ) ;;
27946 *) LIBOBJS="$LIBOBJS strstr.$ac_objext"
27952 { $as_echo "$as_me:$LINENO: checking whether mbrtowc and mbstate_t are properly declared" >&5
27953 $as_echo_n "checking whether mbrtowc and mbstate_t are properly declared... " >&6; }
27954 if test "${gl_cv_func_mbrtowc+set}" = set; then
27955 $as_echo_n "(cached) " >&6
27957 cat >conftest.$ac_ext <<_ACEOF
27960 cat confdefs.h >>conftest.$ac_ext
27961 cat >>conftest.$ac_ext <<_ACEOF
27962 /* end confdefs.h. */
27968 char const s[] = "";
27971 return ! (sizeof state && (mbrtowc) (&wc, s, n, &state));
27976 rm -f conftest.$ac_objext conftest$ac_exeext
27977 if { (ac_try="$ac_link"
27978 case "(($ac_try" in
27979 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
27980 *) ac_try_echo
=$ac_try;;
27982 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
27983 $as_echo "$ac_try_echo") >&5
27984 (eval "$ac_link") 2>conftest.er1
27986 grep -v '^ *+' conftest.er1
>conftest.err
27988 cat conftest.err
>&5
27989 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27990 (exit $ac_status); } && {
27991 test -z "$ac_c_werror_flag" ||
27992 test ! -s conftest.err
27993 } && test -s conftest
$ac_exeext && {
27994 test "$cross_compiling" = yes ||
27995 $as_test_x conftest
$ac_exeext
27997 gl_cv_func_mbrtowc
=yes
27999 $as_echo "$as_me: failed program was:" >&5
28000 sed 's/^/| /' conftest.
$ac_ext >&5
28002 gl_cv_func_mbrtowc
=no
28005 rm -rf conftest.dSYM
28006 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
28007 conftest
$ac_exeext conftest.
$ac_ext
28009 { $as_echo "$as_me:$LINENO: result: $gl_cv_func_mbrtowc" >&5
28010 $as_echo "$gl_cv_func_mbrtowc" >&6; }
28011 if test $gl_cv_func_mbrtowc = yes; then
28013 cat >>confdefs.h
<<\_ACEOF
28014 #define HAVE_MBRTOWC 1
28023 for ac_func
in strtol
28025 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
28026 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
28027 $as_echo_n "checking for $ac_func... " >&6; }
28028 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
28029 $as_echo_n "(cached) " >&6
28031 cat >conftest.
$ac_ext <<_ACEOF
28034 cat confdefs.h
>>conftest.
$ac_ext
28035 cat >>conftest.
$ac_ext <<_ACEOF
28036 /* end confdefs.h. */
28037 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
28038 For example, HP-UX 11i <limits.h> declares gettimeofday. */
28039 #define $ac_func innocuous_$ac_func
28041 /* System header to define __stub macros and hopefully few prototypes,
28042 which can conflict with char $ac_func (); below.
28043 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28044 <limits.h> exists even on freestanding compilers. */
28047 # include <limits.h>
28049 # include <assert.h>
28054 /* Override any GCC internal prototype to avoid an error.
28055 Use char because int might match the return type of a GCC
28056 builtin and then its argument prototype would still apply. */
28061 /* The GNU C library defines this for functions which it implements
28062 to always fail with ENOSYS. Some functions are actually named
28063 something starting with __ and the normal name is an alias. */
28064 #if defined __stub_$ac_func || defined __stub___$ac_func
28071 return $ac_func ();
28076 rm -f conftest.
$ac_objext conftest
$ac_exeext
28077 if { (ac_try
="$ac_link"
28078 case "(($ac_try" in
28079 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
28080 *) ac_try_echo=$ac_try;;
28082 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28083 $as_echo "$ac_try_echo") >&5
28084 (eval "$ac_link") 2>conftest.er1
28086 grep -v '^ *+' conftest.er1 >conftest.err
28088 cat conftest.err >&5
28089 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28090 (exit $ac_status); } && {
28091 test -z "$ac_c_werror_flag" ||
28092 test ! -s conftest.err
28093 } && test -s conftest$ac_exeext && {
28094 test "$cross_compiling" = yes ||
28095 $as_test_x conftest$ac_exeext
28097 eval "$as_ac_var=yes"
28099 $as_echo "$as_me: failed program was:" >&5
28100 sed 's/^/| /' conftest.$ac_ext >&5
28102 eval "$as_ac_var=no"
28105 rm -rf conftest.dSYM
28106 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28107 conftest$ac_exeext conftest.$ac_ext
28109 ac_res=`eval 'as_val=${'$as_ac_var'}
28110 $as_echo "$as_val"'`
28111 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
28112 $as_echo "$ac_res" >&6; }
28113 as_val=`eval 'as_val=${'$as_ac_var'}
28114 $as_echo "$as_val"'`
28115 if test "x$as_val" = x""yes; then
28116 cat >>confdefs.h <<_ACEOF
28117 #define `$as_echo "HAVE_$ac_func" |
$as_tr_cpp` 1
28121 case " $LIBOBJS " in
28122 *" $ac_func.$ac_objext "* ) ;;
28123 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
28131 if test $ac_cv_func_strtol = no; then
28146 for ac_func in strtoul
28148 as_ac_var=`$as_echo "ac_cv_func_$ac_func" |
$as_tr_sh`
28149 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
28150 $as_echo_n "checking for $ac_func... " >&6; }
28151 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
28152 $as_echo_n "(cached) " >&6
28154 cat >conftest.$ac_ext <<_ACEOF
28157 cat confdefs.h >>conftest.$ac_ext
28158 cat >>conftest.$ac_ext <<_ACEOF
28159 /* end confdefs.h. */
28160 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
28161 For example, HP-UX 11i <limits.h> declares gettimeofday. */
28162 #define $ac_func innocuous_$ac_func
28164 /* System header to define __stub macros and hopefully few prototypes,
28165 which can conflict with char $ac_func (); below.
28166 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28167 <limits.h> exists even on freestanding compilers. */
28170 # include <limits.h>
28172 # include <assert.h>
28177 /* Override any GCC internal prototype to avoid an error.
28178 Use char because int might match the return type of a GCC
28179 builtin and then its argument prototype would still apply. */
28184 /* The GNU C library defines this for functions which it implements
28185 to always fail with ENOSYS. Some functions are actually named
28186 something starting with __ and the normal name is an alias. */
28187 #if defined __stub_$ac_func || defined __stub___$ac_func
28194 return $ac_func ();
28199 rm -f conftest.$ac_objext conftest$ac_exeext
28200 if { (ac_try="$ac_link"
28201 case "(($ac_try" in
28202 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
28203 *) ac_try_echo
=$ac_try;;
28205 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
28206 $as_echo "$ac_try_echo") >&5
28207 (eval "$ac_link") 2>conftest.er1
28209 grep -v '^ *+' conftest.er1
>conftest.err
28211 cat conftest.err
>&5
28212 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28213 (exit $ac_status); } && {
28214 test -z "$ac_c_werror_flag" ||
28215 test ! -s conftest.err
28216 } && test -s conftest
$ac_exeext && {
28217 test "$cross_compiling" = yes ||
28218 $as_test_x conftest
$ac_exeext
28220 eval "$as_ac_var=yes"
28222 $as_echo "$as_me: failed program was:" >&5
28223 sed 's/^/| /' conftest.
$ac_ext >&5
28225 eval "$as_ac_var=no"
28228 rm -rf conftest.dSYM
28229 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
28230 conftest
$ac_exeext conftest.
$ac_ext
28232 ac_res
=`eval 'as_val=${'$as_ac_var'}
28233 $as_echo "$as_val"'`
28234 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
28235 $as_echo "$ac_res" >&6; }
28236 as_val
=`eval 'as_val=${'$as_ac_var'}
28237 $as_echo "$as_val"'`
28238 if test "x$as_val" = x
""yes; then
28239 cat >>confdefs.h
<<_ACEOF
28240 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
28244 case " $LIBOBJS " in
28245 *" $ac_func.$ac_objext "* ) ;;
28246 *) LIBOBJS
="$LIBOBJS $ac_func.$ac_objext"
28254 if test $ac_cv_func_strtoul = no
; then
28273 { $as_echo "$as_me:$LINENO: checking whether localtime_r is compatible with its POSIX signature" >&5
28274 $as_echo_n "checking whether localtime_r is compatible with its POSIX signature... " >&6; }
28275 if test "${gl_cv_time_r_posix+set}" = set; then
28276 $as_echo_n "(cached) " >&6
28278 cat >conftest.
$ac_ext <<_ACEOF
28281 cat confdefs.h
>>conftest.
$ac_ext
28282 cat >>conftest.
$ac_ext <<_ACEOF
28283 /* end confdefs.h. */
28288 /* We don't need to append 'restrict's to the argument types,
28289 even though the POSIX signature has the 'restrict's,
28290 since C99 says they can't affect type compatibility. */
28291 struct tm * (*ptr) (time_t const *, struct tm *) = localtime_r;
28296 rm -f conftest.
$ac_objext
28297 if { (ac_try
="$ac_compile"
28298 case "(($ac_try" in
28299 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
28300 *) ac_try_echo=$ac_try;;
28302 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28303 $as_echo "$ac_try_echo") >&5
28304 (eval "$ac_compile") 2>conftest.er1
28306 grep -v '^ *+' conftest.er1 >conftest.err
28308 cat conftest.err >&5
28309 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28310 (exit $ac_status); } && {
28311 test -z "$ac_c_werror_flag" ||
28312 test ! -s conftest.err
28313 } && test -s conftest.$ac_objext; then
28314 gl_cv_time_r_posix=yes
28316 $as_echo "$as_me: failed program was:" >&5
28317 sed 's/^/| /' conftest.$ac_ext >&5
28319 gl_cv_time_r_posix=no
28322 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28324 { $as_echo "$as_me:$LINENO: result: $gl_cv_time_r_posix" >&5
28325 $as_echo "$gl_cv_time_r_posix" >&6; }
28326 if test $gl_cv_time_r_posix = yes; then
28328 cat >>confdefs.h <<\_ACEOF
28329 #define HAVE_TIME_R_POSIX 1
28333 case " $LIBOBJS " in
28334 *" time_r.$ac_objext "* ) ;;
28335 *) LIBOBJS="$LIBOBJS time_r.$ac_objext"
28367 { $as_echo "$as_me:$LINENO: checking for struct timespec" >&5
28368 $as_echo_n "checking for struct timespec... " >&6; }
28369 if test "${fu_cv_sys_struct_timespec+set}" = set; then
28370 $as_echo_n "(cached) " >&6
28372 cat >conftest.$ac_ext <<_ACEOF
28375 cat confdefs.h >>conftest.$ac_ext
28376 cat >>conftest.$ac_ext <<_ACEOF
28377 /* end confdefs.h. */
28379 # if TIME_WITH_SYS_TIME
28380 # include <sys/time.h>
28383 # if HAVE_SYS_TIME_H
28384 # include <sys/time.h>
28393 static struct timespec x; x.tv_sec = x.tv_nsec;
28398 rm -f conftest.$ac_objext
28399 if { (ac_try="$ac_compile"
28400 case "(($ac_try" in
28401 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
28402 *) ac_try_echo
=$ac_try;;
28404 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
28405 $as_echo "$ac_try_echo") >&5
28406 (eval "$ac_compile") 2>conftest.er1
28408 grep -v '^ *+' conftest.er1
>conftest.err
28410 cat conftest.err
>&5
28411 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28412 (exit $ac_status); } && {
28413 test -z "$ac_c_werror_flag" ||
28414 test ! -s conftest.err
28415 } && test -s conftest.
$ac_objext; then
28416 fu_cv_sys_struct_timespec
=yes
28418 $as_echo "$as_me: failed program was:" >&5
28419 sed 's/^/| /' conftest.
$ac_ext >&5
28421 fu_cv_sys_struct_timespec
=no
28424 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
28427 { $as_echo "$as_me:$LINENO: result: $fu_cv_sys_struct_timespec" >&5
28428 $as_echo "$fu_cv_sys_struct_timespec" >&6; }
28430 if test $fu_cv_sys_struct_timespec = yes; then
28432 cat >>confdefs.h
<<\_ACEOF
28433 #define HAVE_STRUCT_TIMESPEC 1
28441 { $as_echo "$as_me:$LINENO: checking whether nanosleep is declared" >&5
28442 $as_echo_n "checking whether nanosleep is declared... " >&6; }
28443 if test "${ac_cv_have_decl_nanosleep+set}" = set; then
28444 $as_echo_n "(cached) " >&6
28446 cat >conftest.
$ac_ext <<_ACEOF
28449 cat confdefs.h
>>conftest.
$ac_ext
28450 cat >>conftest.
$ac_ext <<_ACEOF
28451 /* end confdefs.h. */
28465 rm -f conftest.
$ac_objext
28466 if { (ac_try
="$ac_compile"
28467 case "(($ac_try" in
28468 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
28469 *) ac_try_echo=$ac_try;;
28471 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28472 $as_echo "$ac_try_echo") >&5
28473 (eval "$ac_compile") 2>conftest.er1
28475 grep -v '^ *+' conftest.er1 >conftest.err
28477 cat conftest.err >&5
28478 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28479 (exit $ac_status); } && {
28480 test -z "$ac_c_werror_flag" ||
28481 test ! -s conftest.err
28482 } && test -s conftest.$ac_objext; then
28483 ac_cv_have_decl_nanosleep=yes
28485 $as_echo "$as_me: failed program was:" >&5
28486 sed 's/^/| /' conftest.$ac_ext >&5
28488 ac_cv_have_decl_nanosleep=no
28491 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28493 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_nanosleep" >&5
28494 $as_echo "$ac_cv_have_decl_nanosleep" >&6; }
28495 if test "x$ac_cv_have_decl_nanosleep" = x""yes; then
28497 cat >>confdefs.h <<_ACEOF
28498 #define HAVE_DECL_NANOSLEEP 1
28503 cat >>confdefs.h <<_ACEOF
28504 #define HAVE_DECL_NANOSLEEP 0
28514 { $as_echo "$as_me:$LINENO: checking whether tzset clobbers localtime buffer" >&5
28515 $as_echo_n "checking whether tzset clobbers localtime buffer... " >&6; }
28516 if test "${gl_cv_func_tzset_clobber+set}" = set; then
28517 $as_echo_n "(cached) " >&6
28520 if test "$cross_compiling" = yes; then
28521 gl_cv_func_tzset_clobber=yes
28523 cat >conftest.$ac_ext <<_ACEOF
28526 cat confdefs.h >>conftest.$ac_ext
28527 cat >>conftest.$ac_ext <<_ACEOF
28528 /* end confdefs.h. */
28530 #if TIME_WITH_SYS_TIME
28531 # include <sys/time.h>
28534 # if HAVE_SYS_TIME_H
28535 # include <sys/time.h>
28540 #include <stdlib.h>
28545 time_t t1 = 853958121;
28547 putenv ("TZ=GMT0");
28548 p = localtime (&t1);
28550 putenv ("TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00");
28552 exit (p->tm_year != s.tm_year
28553 || p->tm_mon != s.tm_mon
28554 || p->tm_mday != s.tm_mday
28555 || p->tm_hour != s.tm_hour
28556 || p->tm_min != s.tm_min
28557 || p->tm_sec != s.tm_sec);
28561 rm -f conftest$ac_exeext
28562 if { (ac_try="$ac_link"
28563 case "(($ac_try" in
28564 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
28565 *) ac_try_echo
=$ac_try;;
28567 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
28568 $as_echo "$ac_try_echo") >&5
28569 (eval "$ac_link") 2>&5
28571 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28572 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
28573 { (case "(($ac_try" in
28574 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
28575 *) ac_try_echo=$ac_try;;
28577 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28578 $as_echo "$ac_try_echo") >&5
28579 (eval "$ac_try") 2>&5
28581 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28582 (exit $ac_status); }; }; then
28583 gl_cv_func_tzset_clobber=no
28585 $as_echo "$as_me: program exited with status $ac_status" >&5
28586 $as_echo "$as_me: failed program was:" >&5
28587 sed 's/^/| /' conftest.$ac_ext >&5
28589 ( exit $ac_status )
28590 gl_cv_func_tzset_clobber=yes
28592 rm -rf conftest.dSYM
28593 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28598 { $as_echo "$as_me:$LINENO: result: $gl_cv_func_tzset_clobber" >&5
28599 $as_echo "$gl_cv_func_tzset_clobber" >&6; }
28602 cat >>confdefs.h <<\_ACEOF
28603 #define HAVE_RUN_TZSET_TEST 1
28607 if test $gl_cv_func_tzset_clobber = yes; then
28609 case " $LIBOBJS " in
28610 *" gettimeofday.$ac_objext "* ) ;;
28611 *) LIBOBJS="$LIBOBJS gettimeofday.$ac_objext"
28616 cat >>confdefs.h <<\_ACEOF
28617 #define gmtime rpl_gmtime
28621 cat >>confdefs.h <<\_ACEOF
28622 #define localtime rpl_localtime
28628 cat >>confdefs.h <<\_ACEOF
28629 #define tzset rpl_tzset
28633 cat >>confdefs.h <<\_ACEOF
28634 #define TZSET_CLOBBERS_LOCALTIME_BUFFER 1
28641 case " $LIBOBJS " in
28642 *" dup-safer.$ac_objext "* ) ;;
28643 *) LIBOBJS="$LIBOBJS dup-safer.$ac_objext"
28647 case " $LIBOBJS " in
28648 *" fd-safer.$ac_objext "* ) ;;
28649 *) LIBOBJS="$LIBOBJS fd-safer.$ac_objext"
28653 case " $LIBOBJS " in
28654 *" pipe-safer.$ac_objext "* ) ;;
28655 *) LIBOBJS="$LIBOBJS pipe-safer.$ac_objext"
28683 cat >>confdefs.h <<\_ACEOF
28684 #define USE_UNLOCKED_IO 1
28737 for ac_func in vasnprintf
28739 as_ac_var=`$as_echo "ac_cv_func_$ac_func" |
$as_tr_sh`
28740 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
28741 $as_echo_n "checking for $ac_func... " >&6; }
28742 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
28743 $as_echo_n "(cached) " >&6
28745 cat >conftest.$ac_ext <<_ACEOF
28748 cat confdefs.h >>conftest.$ac_ext
28749 cat >>conftest.$ac_ext <<_ACEOF
28750 /* end confdefs.h. */
28751 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
28752 For example, HP-UX 11i <limits.h> declares gettimeofday. */
28753 #define $ac_func innocuous_$ac_func
28755 /* System header to define __stub macros and hopefully few prototypes,
28756 which can conflict with char $ac_func (); below.
28757 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28758 <limits.h> exists even on freestanding compilers. */
28761 # include <limits.h>
28763 # include <assert.h>
28768 /* Override any GCC internal prototype to avoid an error.
28769 Use char because int might match the return type of a GCC
28770 builtin and then its argument prototype would still apply. */
28775 /* The GNU C library defines this for functions which it implements
28776 to always fail with ENOSYS. Some functions are actually named
28777 something starting with __ and the normal name is an alias. */
28778 #if defined __stub_$ac_func || defined __stub___$ac_func
28785 return $ac_func ();
28790 rm -f conftest.$ac_objext conftest$ac_exeext
28791 if { (ac_try="$ac_link"
28792 case "(($ac_try" in
28793 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
28794 *) ac_try_echo
=$ac_try;;
28796 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
28797 $as_echo "$ac_try_echo") >&5
28798 (eval "$ac_link") 2>conftest.er1
28800 grep -v '^ *+' conftest.er1
>conftest.err
28802 cat conftest.err
>&5
28803 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28804 (exit $ac_status); } && {
28805 test -z "$ac_c_werror_flag" ||
28806 test ! -s conftest.err
28807 } && test -s conftest
$ac_exeext && {
28808 test "$cross_compiling" = yes ||
28809 $as_test_x conftest
$ac_exeext
28811 eval "$as_ac_var=yes"
28813 $as_echo "$as_me: failed program was:" >&5
28814 sed 's/^/| /' conftest.
$ac_ext >&5
28816 eval "$as_ac_var=no"
28819 rm -rf conftest.dSYM
28820 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
28821 conftest
$ac_exeext conftest.
$ac_ext
28823 ac_res
=`eval 'as_val=${'$as_ac_var'}
28824 $as_echo "$as_val"'`
28825 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
28826 $as_echo "$ac_res" >&6; }
28827 as_val
=`eval 'as_val=${'$as_ac_var'}
28828 $as_echo "$as_val"'`
28829 if test "x$as_val" = x
""yes; then
28830 cat >>confdefs.h
<<_ACEOF
28831 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
28835 case " $LIBOBJS " in
28836 *" $ac_func.$ac_objext "* ) ;;
28837 *) LIBOBJS
="$LIBOBJS $ac_func.$ac_objext"
28845 if test $ac_cv_func_vasnprintf = no
; then
28846 case " $LIBOBJS " in
28847 *" printf-args.$ac_objext "* ) ;;
28848 *) LIBOBJS
="$LIBOBJS printf-args.$ac_objext"
28852 case " $LIBOBJS " in
28853 *" printf-parse.$ac_objext "* ) ;;
28854 *) LIBOBJS
="$LIBOBJS printf-parse.$ac_objext"
28858 case " $LIBOBJS " in
28859 *" asnprintf.$ac_objext "* ) ;;
28860 *) LIBOBJS
="$LIBOBJS asnprintf.$ac_objext"
28877 { $as_echo "$as_me:$LINENO: checking for ptrdiff_t" >&5
28878 $as_echo_n "checking for ptrdiff_t... " >&6; }
28879 if test "${ac_cv_type_ptrdiff_t+set}" = set; then
28880 $as_echo_n "(cached) " >&6
28882 ac_cv_type_ptrdiff_t
=no
28883 cat >conftest.
$ac_ext <<_ACEOF
28886 cat confdefs.h
>>conftest.
$ac_ext
28887 cat >>conftest.
$ac_ext <<_ACEOF
28888 /* end confdefs.h. */
28889 $ac_includes_default
28893 if (sizeof (ptrdiff_t))
28899 rm -f conftest.
$ac_objext
28900 if { (ac_try
="$ac_compile"
28901 case "(($ac_try" in
28902 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
28903 *) ac_try_echo=$ac_try;;
28905 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28906 $as_echo "$ac_try_echo") >&5
28907 (eval "$ac_compile") 2>conftest.er1
28909 grep -v '^ *+' conftest.er1 >conftest.err
28911 cat conftest.err >&5
28912 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28913 (exit $ac_status); } && {
28914 test -z "$ac_c_werror_flag" ||
28915 test ! -s conftest.err
28916 } && test -s conftest.$ac_objext; then
28917 cat >conftest.$ac_ext <<_ACEOF
28920 cat confdefs.h >>conftest.$ac_ext
28921 cat >>conftest.$ac_ext <<_ACEOF
28922 /* end confdefs.h. */
28923 $ac_includes_default
28927 if (sizeof ((ptrdiff_t)))
28933 rm -f conftest.$ac_objext
28934 if { (ac_try="$ac_compile"
28935 case "(($ac_try" in
28936 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
28937 *) ac_try_echo
=$ac_try;;
28939 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
28940 $as_echo "$ac_try_echo") >&5
28941 (eval "$ac_compile") 2>conftest.er1
28943 grep -v '^ *+' conftest.er1
>conftest.err
28945 cat conftest.err
>&5
28946 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28947 (exit $ac_status); } && {
28948 test -z "$ac_c_werror_flag" ||
28949 test ! -s conftest.err
28950 } && test -s conftest.
$ac_objext; then
28953 $as_echo "$as_me: failed program was:" >&5
28954 sed 's/^/| /' conftest.
$ac_ext >&5
28956 ac_cv_type_ptrdiff_t
=yes
28959 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
28961 $as_echo "$as_me: failed program was:" >&5
28962 sed 's/^/| /' conftest.
$ac_ext >&5
28967 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
28969 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_ptrdiff_t" >&5
28970 $as_echo "$ac_cv_type_ptrdiff_t" >&6; }
28971 if test "x$ac_cv_type_ptrdiff_t" = x
""yes; then
28973 cat >>confdefs.h
<<_ACEOF
28974 #define HAVE_PTRDIFF_T 1
28990 for ac_func
in snprintf wcslen
28992 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
28993 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
28994 $as_echo_n "checking for $ac_func... " >&6; }
28995 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
28996 $as_echo_n "(cached) " >&6
28998 cat >conftest.
$ac_ext <<_ACEOF
29001 cat confdefs.h
>>conftest.
$ac_ext
29002 cat >>conftest.
$ac_ext <<_ACEOF
29003 /* end confdefs.h. */
29004 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
29005 For example, HP-UX 11i <limits.h> declares gettimeofday. */
29006 #define $ac_func innocuous_$ac_func
29008 /* System header to define __stub macros and hopefully few prototypes,
29009 which can conflict with char $ac_func (); below.
29010 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29011 <limits.h> exists even on freestanding compilers. */
29014 # include <limits.h>
29016 # include <assert.h>
29021 /* Override any GCC internal prototype to avoid an error.
29022 Use char because int might match the return type of a GCC
29023 builtin and then its argument prototype would still apply. */
29028 /* The GNU C library defines this for functions which it implements
29029 to always fail with ENOSYS. Some functions are actually named
29030 something starting with __ and the normal name is an alias. */
29031 #if defined __stub_$ac_func || defined __stub___$ac_func
29038 return $ac_func ();
29043 rm -f conftest.
$ac_objext conftest
$ac_exeext
29044 if { (ac_try
="$ac_link"
29045 case "(($ac_try" in
29046 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
29047 *) ac_try_echo=$ac_try;;
29049 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29050 $as_echo "$ac_try_echo") >&5
29051 (eval "$ac_link") 2>conftest.er1
29053 grep -v '^ *+' conftest.er1 >conftest.err
29055 cat conftest.err >&5
29056 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29057 (exit $ac_status); } && {
29058 test -z "$ac_c_werror_flag" ||
29059 test ! -s conftest.err
29060 } && test -s conftest$ac_exeext && {
29061 test "$cross_compiling" = yes ||
29062 $as_test_x conftest$ac_exeext
29064 eval "$as_ac_var=yes"
29066 $as_echo "$as_me: failed program was:" >&5
29067 sed 's/^/| /' conftest.$ac_ext >&5
29069 eval "$as_ac_var=no"
29072 rm -rf conftest.dSYM
29073 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29074 conftest$ac_exeext conftest.$ac_ext
29076 ac_res=`eval 'as_val=${'$as_ac_var'}
29077 $as_echo "$as_val"'`
29078 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
29079 $as_echo "$ac_res" >&6; }
29080 as_val=`eval 'as_val=${'$as_ac_var'}
29081 $as_echo "$as_val"'`
29082 if test "x$as_val" = x""yes; then
29083 cat >>confdefs.h <<_ACEOF
29084 #define `$as_echo "HAVE_$ac_func" |
$as_tr_cpp` 1
29097 for ac_func in vasprintf
29099 as_ac_var=`$as_echo "ac_cv_func_$ac_func" |
$as_tr_sh`
29100 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
29101 $as_echo_n "checking for $ac_func... " >&6; }
29102 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
29103 $as_echo_n "(cached) " >&6
29105 cat >conftest.$ac_ext <<_ACEOF
29108 cat confdefs.h >>conftest.$ac_ext
29109 cat >>conftest.$ac_ext <<_ACEOF
29110 /* end confdefs.h. */
29111 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
29112 For example, HP-UX 11i <limits.h> declares gettimeofday. */
29113 #define $ac_func innocuous_$ac_func
29115 /* System header to define __stub macros and hopefully few prototypes,
29116 which can conflict with char $ac_func (); below.
29117 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29118 <limits.h> exists even on freestanding compilers. */
29121 # include <limits.h>
29123 # include <assert.h>
29128 /* Override any GCC internal prototype to avoid an error.
29129 Use char because int might match the return type of a GCC
29130 builtin and then its argument prototype would still apply. */
29135 /* The GNU C library defines this for functions which it implements
29136 to always fail with ENOSYS. Some functions are actually named
29137 something starting with __ and the normal name is an alias. */
29138 #if defined __stub_$ac_func || defined __stub___$ac_func
29145 return $ac_func ();
29150 rm -f conftest.$ac_objext conftest$ac_exeext
29151 if { (ac_try="$ac_link"
29152 case "(($ac_try" in
29153 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
29154 *) ac_try_echo
=$ac_try;;
29156 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
29157 $as_echo "$ac_try_echo") >&5
29158 (eval "$ac_link") 2>conftest.er1
29160 grep -v '^ *+' conftest.er1
>conftest.err
29162 cat conftest.err
>&5
29163 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29164 (exit $ac_status); } && {
29165 test -z "$ac_c_werror_flag" ||
29166 test ! -s conftest.err
29167 } && test -s conftest
$ac_exeext && {
29168 test "$cross_compiling" = yes ||
29169 $as_test_x conftest
$ac_exeext
29171 eval "$as_ac_var=yes"
29173 $as_echo "$as_me: failed program was:" >&5
29174 sed 's/^/| /' conftest.
$ac_ext >&5
29176 eval "$as_ac_var=no"
29179 rm -rf conftest.dSYM
29180 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
29181 conftest
$ac_exeext conftest.
$ac_ext
29183 ac_res
=`eval 'as_val=${'$as_ac_var'}
29184 $as_echo "$as_val"'`
29185 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
29186 $as_echo "$ac_res" >&6; }
29187 as_val
=`eval 'as_val=${'$as_ac_var'}
29188 $as_echo "$as_val"'`
29189 if test "x$as_val" = x
""yes; then
29190 cat >>confdefs.h
<<_ACEOF
29191 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
29195 case " $LIBOBJS " in
29196 *" $ac_func.$ac_objext "* ) ;;
29197 *) LIBOBJS
="$LIBOBJS $ac_func.$ac_objext"
29205 if test $ac_cv_func_vasprintf = no
; then
29206 case " $LIBOBJS " in
29207 *" asprintf.$ac_objext "* ) ;;
29208 *) LIBOBJS
="$LIBOBJS asprintf.$ac_objext"
29220 case " $LIBOBJS " in
29221 *" xmalloc.$ac_objext "* ) ;;
29222 *) LIBOBJS
="$LIBOBJS xmalloc.$ac_objext"
29237 case " $LIBOBJS " in
29238 *" xgetcwd.$ac_objext "* ) ;;
29239 *) LIBOBJS
="$LIBOBJS xgetcwd.$ac_objext"
29260 for ac_header
in stdint.h
29262 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
29263 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29264 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
29265 $as_echo_n "checking for $ac_header... " >&6; }
29266 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29267 $as_echo_n "(cached) " >&6
29269 ac_res
=`eval 'as_val=${'$as_ac_Header'}
29270 $as_echo "$as_val"'`
29271 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
29272 $as_echo "$ac_res" >&6; }
29274 # Is the header compilable?
29275 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
29276 $as_echo_n "checking $ac_header usability... " >&6; }
29277 cat >conftest.
$ac_ext <<_ACEOF
29280 cat confdefs.h
>>conftest.
$ac_ext
29281 cat >>conftest.
$ac_ext <<_ACEOF
29282 /* end confdefs.h. */
29283 $ac_includes_default
29284 #include <$ac_header>
29286 rm -f conftest.
$ac_objext
29287 if { (ac_try
="$ac_compile"
29288 case "(($ac_try" in
29289 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
29290 *) ac_try_echo=$ac_try;;
29292 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29293 $as_echo "$ac_try_echo") >&5
29294 (eval "$ac_compile") 2>conftest.er1
29296 grep -v '^ *+' conftest.er1 >conftest.err
29298 cat conftest.err >&5
29299 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29300 (exit $ac_status); } && {
29301 test -z "$ac_c_werror_flag" ||
29302 test ! -s conftest.err
29303 } && test -s conftest.$ac_objext; then
29304 ac_header_compiler=yes
29306 $as_echo "$as_me: failed program was:" >&5
29307 sed 's/^/| /' conftest.$ac_ext >&5
29309 ac_header_compiler=no
29312 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29313 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29314 $as_echo "$ac_header_compiler" >&6; }
29316 # Is the header present?
29317 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
29318 $as_echo_n "checking $ac_header presence... " >&6; }
29319 cat >conftest.$ac_ext <<_ACEOF
29322 cat confdefs.h >>conftest.$ac_ext
29323 cat >>conftest.$ac_ext <<_ACEOF
29324 /* end confdefs.h. */
29325 #include <$ac_header>
29327 if { (ac_try="$ac_cpp conftest.$ac_ext"
29328 case "(($ac_try" in
29329 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
29330 *) ac_try_echo
=$ac_try;;
29332 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
29333 $as_echo "$ac_try_echo") >&5
29334 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29336 grep -v '^ *+' conftest.er1
>conftest.err
29338 cat conftest.err
>&5
29339 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29340 (exit $ac_status); } >/dev
/null
&& {
29341 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
29342 test ! -s conftest.err
29344 ac_header_preproc
=yes
29346 $as_echo "$as_me: failed program was:" >&5
29347 sed 's/^/| /' conftest.
$ac_ext >&5
29349 ac_header_preproc
=no
29352 rm -f conftest.err conftest.
$ac_ext
29353 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29354 $as_echo "$ac_header_preproc" >&6; }
29356 # So? What about this header?
29357 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29359 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29360 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29361 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29362 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29363 ac_header_preproc
=yes
29366 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29367 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29368 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
29369 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
29370 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29371 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29372 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
29373 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
29374 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29375 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29376 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29377 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
29379 ## --------------------------------- ##
29380 ## Report this to bug-cvs@nongnu.org ##
29381 ## --------------------------------- ##
29383 ) |
sed "s/^/$as_me: WARNING: /" >&2
29386 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
29387 $as_echo_n "checking for $ac_header... " >&6; }
29388 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29389 $as_echo_n "(cached) " >&6
29391 eval "$as_ac_Header=\$ac_header_preproc"
29393 ac_res
=`eval 'as_val=${'$as_ac_Header'}
29394 $as_echo "$as_val"'`
29395 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
29396 $as_echo "$ac_res" >&6; }
29399 as_val
=`eval 'as_val=${'$as_ac_Header'}
29400 $as_echo "$as_val"'`
29401 if test "x$as_val" = x
""yes; then
29402 cat >>confdefs.h
<<_ACEOF
29403 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
29413 case " $LIBOBJS " in
29414 *" yesno.$ac_objext "* ) ;;
29415 *) LIBOBJS
="$LIBOBJS yesno.$ac_objext"
29426 if test -n "$ac_aux_dir"; then
29427 case "$ac_aux_dir" in
29428 /*) MKINSTALLDIRS
="$ac_aux_dir/mkinstalldirs" ;;
29429 *) MKINSTALLDIRS
="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
29432 if test -z "$MKINSTALLDIRS"; then
29433 MKINSTALLDIRS
="\$(top_srcdir)/mkinstalldirs"
29438 { $as_echo "$as_me:$LINENO: checking whether NLS is requested" >&5
29439 $as_echo_n "checking whether NLS is requested... " >&6; }
29440 # Check whether --enable-nls was given.
29441 if test "${enable_nls+set}" = set; then
29442 enableval
=$enable_nls; USE_NLS
=$enableval
29447 { $as_echo "$as_me:$LINENO: result: $USE_NLS" >&5
29448 $as_echo "$USE_NLS" >&6; }
29455 # Prepare PATH_SEPARATOR.
29456 # The user is always right.
29457 if test "${PATH_SEPARATOR+set}" != set; then
29458 echo "#! /bin/sh" >conf$$.sh
29459 echo "exit 0" >>conf$$.sh
29461 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
29469 # Find out how to test for executable files. Don't use a zero-byte file,
29470 # as systems may use methods other than mode bits to determine executability.
29471 cat >conf$$.
file <<_ASEOF
29475 chmod +x conf$$.
file
29476 if test -x conf$$.
file >/dev
/null
2>&1; then
29477 ac_executable_p
="test -x"
29479 ac_executable_p
="test -f"
29483 # Extract the first word of "msgfmt", so it can be a program name with args.
29484 set dummy msgfmt
; ac_word
=$2
29485 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
29486 $as_echo_n "checking for $ac_word... " >&6; }
29487 if test "${ac_cv_path_MSGFMT+set}" = set; then
29488 $as_echo_n "(cached) " >&6
29492 ac_cv_path_MSGFMT
="$MSGFMT" # Let the user override the test with a path.
29495 ac_save_IFS
="$IFS"; IFS
=$PATH_SEPARATOR
29496 for ac_dir
in $PATH; do
29498 test -z "$ac_dir" && ac_dir
=.
29499 for ac_exec_ext
in '' $ac_executable_extensions; do
29500 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
29501 echo "$as_me: trying $ac_dir/$ac_word..." >&5
29502 if $ac_dir/$ac_word --statistics /dev
/null
>&5 2>&1 &&
29503 (if $ac_dir/$ac_word --statistics /dev
/null
2>&1 >/dev
/null |
grep usage
>/dev
/null
; then exit 1; else exit 0; fi); then
29504 ac_cv_path_MSGFMT
="$ac_dir/$ac_word$ac_exec_ext"
29511 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT
=":"
29515 MSGFMT
="$ac_cv_path_MSGFMT"
29516 if test "$MSGFMT" != ":"; then
29517 { $as_echo "$as_me:$LINENO: result: $MSGFMT" >&5
29518 $as_echo "$MSGFMT" >&6; }
29520 { $as_echo "$as_me:$LINENO: result: no" >&5
29521 $as_echo "no" >&6; }
29524 # Extract the first word of "gmsgfmt", so it can be a program name with args.
29525 set dummy gmsgfmt
; ac_word
=$2
29526 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
29527 $as_echo_n "checking for $ac_word... " >&6; }
29528 if test "${ac_cv_path_GMSGFMT+set}" = set; then
29529 $as_echo_n "(cached) " >&6
29533 ac_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a path.
29536 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
29537 for as_dir
in $PATH
29540 test -z "$as_dir" && as_dir
=.
29541 for ac_exec_ext
in '' $ac_executable_extensions; do
29542 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29543 ac_cv_path_GMSGFMT
="$as_dir/$ac_word$ac_exec_ext"
29544 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
29551 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT
="$MSGFMT"
29555 GMSGFMT
=$ac_cv_path_GMSGFMT
29556 if test -n "$GMSGFMT"; then
29557 { $as_echo "$as_me:$LINENO: result: $GMSGFMT" >&5
29558 $as_echo "$GMSGFMT" >&6; }
29560 { $as_echo "$as_me:$LINENO: result: no" >&5
29561 $as_echo "no" >&6; }
29567 # Prepare PATH_SEPARATOR.
29568 # The user is always right.
29569 if test "${PATH_SEPARATOR+set}" != set; then
29570 echo "#! /bin/sh" >conf$$.sh
29571 echo "exit 0" >>conf$$.sh
29573 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
29581 # Find out how to test for executable files. Don't use a zero-byte file,
29582 # as systems may use methods other than mode bits to determine executability.
29583 cat >conf$$.
file <<_ASEOF
29587 chmod +x conf$$.
file
29588 if test -x conf$$.
file >/dev
/null
2>&1; then
29589 ac_executable_p
="test -x"
29591 ac_executable_p
="test -f"
29595 # Extract the first word of "xgettext", so it can be a program name with args.
29596 set dummy xgettext
; ac_word
=$2
29597 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
29598 $as_echo_n "checking for $ac_word... " >&6; }
29599 if test "${ac_cv_path_XGETTEXT+set}" = set; then
29600 $as_echo_n "(cached) " >&6
29602 case "$XGETTEXT" in
29604 ac_cv_path_XGETTEXT
="$XGETTEXT" # Let the user override the test with a path.
29607 ac_save_IFS
="$IFS"; IFS
=$PATH_SEPARATOR
29608 for ac_dir
in $PATH; do
29610 test -z "$ac_dir" && ac_dir
=.
29611 for ac_exec_ext
in '' $ac_executable_extensions; do
29612 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
29613 echo "$as_me: trying $ac_dir/$ac_word..." >&5
29614 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev
/null
>&5 2>&1 &&
29615 (if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev
/null
2>&1 >/dev
/null |
grep usage
>/dev
/null
; then exit 1; else exit 0; fi); then
29616 ac_cv_path_XGETTEXT
="$ac_dir/$ac_word$ac_exec_ext"
29623 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT
=":"
29627 XGETTEXT
="$ac_cv_path_XGETTEXT"
29628 if test "$XGETTEXT" != ":"; then
29629 { $as_echo "$as_me:$LINENO: result: $XGETTEXT" >&5
29630 $as_echo "$XGETTEXT" >&6; }
29632 { $as_echo "$as_me:$LINENO: result: no" >&5
29633 $as_echo "no" >&6; }
29639 # Prepare PATH_SEPARATOR.
29640 # The user is always right.
29641 if test "${PATH_SEPARATOR+set}" != set; then
29642 echo "#! /bin/sh" >conf$$.sh
29643 echo "exit 0" >>conf$$.sh
29645 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
29653 # Find out how to test for executable files. Don't use a zero-byte file,
29654 # as systems may use methods other than mode bits to determine executability.
29655 cat >conf$$.
file <<_ASEOF
29659 chmod +x conf$$.
file
29660 if test -x conf$$.
file >/dev
/null
2>&1; then
29661 ac_executable_p
="test -x"
29663 ac_executable_p
="test -f"
29667 # Extract the first word of "msgmerge", so it can be a program name with args.
29668 set dummy msgmerge
; ac_word
=$2
29669 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
29670 $as_echo_n "checking for $ac_word... " >&6; }
29671 if test "${ac_cv_path_MSGMERGE+set}" = set; then
29672 $as_echo_n "(cached) " >&6
29674 case "$MSGMERGE" in
29676 ac_cv_path_MSGMERGE
="$MSGMERGE" # Let the user override the test with a path.
29679 ac_save_IFS
="$IFS"; IFS
=$PATH_SEPARATOR
29680 for ac_dir
in $PATH; do
29682 test -z "$ac_dir" && ac_dir
=.
29683 for ac_exec_ext
in '' $ac_executable_extensions; do
29684 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
29685 echo "$as_me: trying $ac_dir/$ac_word..." >&5
29686 if $ac_dir/$ac_word --update -q /dev
/null
/dev
/null
>&5 2>&1; then
29687 ac_cv_path_MSGMERGE
="$ac_dir/$ac_word$ac_exec_ext"
29694 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE
=":"
29698 MSGMERGE
="$ac_cv_path_MSGMERGE"
29699 if test "$MSGMERGE" != ":"; then
29700 { $as_echo "$as_me:$LINENO: result: $MSGMERGE" >&5
29701 $as_echo "$MSGMERGE" >&6; }
29703 { $as_echo "$as_me:$LINENO: result: no" >&5
29704 $as_echo "no" >&6; }
29708 if test "$GMSGFMT" != ":"; then
29709 if $GMSGFMT --statistics /dev
/null
>/dev
/null
2>&1 &&
29710 (if $GMSGFMT --statistics /dev
/null
2>&1 >/dev
/null |
grep usage
>/dev
/null
; then exit 1; else exit 0; fi); then
29713 GMSGFMT
=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
29714 { $as_echo "$as_me:$LINENO: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
29715 $as_echo "found $GMSGFMT program is not GNU msgfmt; ignore it" >&6; }
29720 if test "$XGETTEXT" != ":"; then
29721 if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev
/null
>/dev
/null
2>&1 &&
29722 (if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev
/null
2>&1 >/dev
/null |
grep usage
>/dev
/null
; then exit 1; else exit 0; fi); then
29725 { $as_echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5
29726 $as_echo "found xgettext program is not GNU xgettext; ignore it" >&6; }
29732 ac_config_commands
="$ac_config_commands default-1"
29736 if test "X$prefix" = "XNONE"; then
29737 acl_final_prefix
="$ac_default_prefix"
29739 acl_final_prefix
="$prefix"
29741 if test "X$exec_prefix" = "XNONE"; then
29742 acl_final_exec_prefix
='${prefix}'
29744 acl_final_exec_prefix
="$exec_prefix"
29746 acl_save_prefix
="$prefix"
29747 prefix
="$acl_final_prefix"
29748 eval acl_final_exec_prefix
=\"$acl_final_exec_prefix\"
29749 prefix
="$acl_save_prefix"
29751 # Make sure we can run config.sub.
29752 $SHELL "$ac_aux_dir/config.sub" sun4
>/dev
/null
2>&1 ||
29753 { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
29754 $as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
29755 { (exit 1); exit 1; }; }
29757 { $as_echo "$as_me:$LINENO: checking build system type" >&5
29758 $as_echo_n "checking build system type... " >&6; }
29759 if test "${ac_cv_build+set}" = set; then
29760 $as_echo_n "(cached) " >&6
29762 ac_build_alias
=$build_alias
29763 test "x$ac_build_alias" = x
&&
29764 ac_build_alias
=`$SHELL "$ac_aux_dir/config.guess"`
29765 test "x$ac_build_alias" = x
&&
29766 { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
29767 $as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
29768 { (exit 1); exit 1; }; }
29769 ac_cv_build
=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
29770 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
29771 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
29772 { (exit 1); exit 1; }; }
29775 { $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5
29776 $as_echo "$ac_cv_build" >&6; }
29777 case $ac_cv_build in
29779 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
29780 $as_echo "$as_me: error: invalid value of canonical build" >&2;}
29781 { (exit 1); exit 1; }; };;
29784 ac_save_IFS
=$IFS; IFS
='-'
29790 # Remember, the first character of IFS is used to create $*,
29791 # except with old shells:
29794 case $build_os in *\
*) build_os
=`echo "$build_os" | sed 's/ /-/g'`;; esac
29797 { $as_echo "$as_me:$LINENO: checking host system type" >&5
29798 $as_echo_n "checking host system type... " >&6; }
29799 if test "${ac_cv_host+set}" = set; then
29800 $as_echo_n "(cached) " >&6
29802 if test "x$host_alias" = x
; then
29803 ac_cv_host
=$ac_cv_build
29805 ac_cv_host
=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
29806 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
29807 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
29808 { (exit 1); exit 1; }; }
29812 { $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5
29813 $as_echo "$ac_cv_host" >&6; }
29814 case $ac_cv_host in
29816 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
29817 $as_echo "$as_me: error: invalid value of canonical host" >&2;}
29818 { (exit 1); exit 1; }; };;
29821 ac_save_IFS
=$IFS; IFS
='-'
29827 # Remember, the first character of IFS is used to create $*,
29828 # except with old shells:
29831 case $host_os in *\
*) host_os
=`echo "$host_os" | sed 's/ /-/g'`;; esac
29835 # Check whether --with-gnu-ld was given.
29836 if test "${with_gnu_ld+set}" = set; then
29837 withval
=$with_gnu_ld; test "$withval" = no || with_gnu_ld
=yes
29842 # Prepare PATH_SEPARATOR.
29843 # The user is always right.
29844 if test "${PATH_SEPARATOR+set}" != set; then
29845 echo "#! /bin/sh" >conf$$.sh
29846 echo "exit 0" >>conf$$.sh
29848 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
29856 if test "$GCC" = yes; then
29857 # Check if gcc -print-prog-name=ld gives a path.
29858 { $as_echo "$as_me:$LINENO: checking for ld used by GCC" >&5
29859 $as_echo_n "checking for ld used by GCC... " >&6; }
29862 # gcc leaves a trailing carriage return which upsets mingw
29863 ac_prog
=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
29865 ac_prog
=`($CC -print-prog-name=ld) 2>&5` ;;
29868 # Accept absolute paths.
29869 [\\/]* |
[A-Za-z
]:[\\/]*)
29870 re_direlt
='/[^/][^/]*/\.\./'
29871 # Canonicalize the path of ld
29872 ac_prog
=`echo $ac_prog| sed 's%\\\\%/%g'`
29873 while echo $ac_prog |
grep "$re_direlt" > /dev
/null
2>&1; do
29874 ac_prog
=`echo $ac_prog| sed "s%$re_direlt%/%"`
29876 test -z "$LD" && LD
="$ac_prog"
29879 # If it fails, then pretend we aren't using GCC.
29883 # If it is relative, then search for the first ld in PATH.
29884 with_gnu_ld
=unknown
29887 elif test "$with_gnu_ld" = yes; then
29888 { $as_echo "$as_me:$LINENO: checking for GNU ld" >&5
29889 $as_echo_n "checking for GNU ld... " >&6; }
29891 { $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5
29892 $as_echo_n "checking for non-GNU ld... " >&6; }
29894 if test "${acl_cv_path_LD+set}" = set; then
29895 $as_echo_n "(cached) " >&6
29897 if test -z "$LD"; then
29898 IFS
="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
29899 for ac_dir
in $PATH; do
29900 test -z "$ac_dir" && ac_dir
=.
29901 if test -f "$ac_dir/$ac_prog" ||
test -f "$ac_dir/$ac_prog$ac_exeext"; then
29902 acl_cv_path_LD
="$ac_dir/$ac_prog"
29903 # Check to see if the program is GNU ld. I'd rather use --version,
29904 # but apparently some GNU ld's only accept -v.
29905 # Break only if it was the GNU/non-GNU ld that we prefer.
29906 case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
29907 *GNU
* |
*'with BFD'*)
29908 test "$with_gnu_ld" != no
&& break ;;
29910 test "$with_gnu_ld" != yes && break ;;
29916 acl_cv_path_LD
="$LD" # Let the user override the test with a path.
29920 LD
="$acl_cv_path_LD"
29921 if test -n "$LD"; then
29922 { $as_echo "$as_me:$LINENO: result: $LD" >&5
29923 $as_echo "$LD" >&6; }
29925 { $as_echo "$as_me:$LINENO: result: no" >&5
29926 $as_echo "no" >&6; }
29928 test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
29929 $as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
29930 { (exit 1); exit 1; }; }
29931 { $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
29932 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
29933 if test "${acl_cv_prog_gnu_ld+set}" = set; then
29934 $as_echo_n "(cached) " >&6
29936 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
29937 case `$LD -v 2>&1 </dev/null` in
29938 *GNU
* |
*'with BFD'*)
29939 acl_cv_prog_gnu_ld
=yes ;;
29941 acl_cv_prog_gnu_ld
=no
;;
29944 { $as_echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
29945 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
29946 with_gnu_ld
=$acl_cv_prog_gnu_ld
29951 { $as_echo "$as_me:$LINENO: checking for shared library run path origin" >&5
29952 $as_echo_n "checking for shared library run path origin... " >&6; }
29953 if test "${acl_cv_rpath+set}" = set; then
29954 $as_echo_n "(cached) " >&6
29957 CC
="$CC" GCC
="$GCC" LDFLAGS
="$LDFLAGS" LD
="$LD" with_gnu_ld
="$with_gnu_ld" \
29958 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
29960 rm -f .
/conftest.sh
29964 { $as_echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
29965 $as_echo "$acl_cv_rpath" >&6; }
29967 libext
="$acl_cv_libext"
29968 shlibext
="$acl_cv_shlibext"
29969 hardcode_libdir_flag_spec
="$acl_cv_hardcode_libdir_flag_spec"
29970 hardcode_libdir_separator
="$acl_cv_hardcode_libdir_separator"
29971 hardcode_direct
="$acl_cv_hardcode_direct"
29972 hardcode_minus_L
="$acl_cv_hardcode_minus_L"
29973 # Check whether --enable-rpath was given.
29974 if test "${enable_rpath+set}" = set; then
29975 enableval
=$enable_rpath; :
29989 acl_save_prefix
="$prefix"
29990 prefix
="$acl_final_prefix"
29991 acl_save_exec_prefix
="$exec_prefix"
29992 exec_prefix
="$acl_final_exec_prefix"
29994 eval additional_includedir
=\"$includedir\"
29995 eval additional_libdir
=\"$libdir\"
29997 exec_prefix
="$acl_save_exec_prefix"
29998 prefix
="$acl_save_prefix"
30001 # Check whether --with-libiconv-prefix was given.
30002 if test "${with_libiconv_prefix+set}" = set; then
30003 withval
=$with_libiconv_prefix;
30004 if test "X$withval" = "Xno"; then
30007 if test "X$withval" = "X"; then
30009 acl_save_prefix
="$prefix"
30010 prefix
="$acl_final_prefix"
30011 acl_save_exec_prefix
="$exec_prefix"
30012 exec_prefix
="$acl_final_exec_prefix"
30014 eval additional_includedir
=\"$includedir\"
30015 eval additional_libdir
=\"$libdir\"
30017 exec_prefix
="$acl_save_exec_prefix"
30018 prefix
="$acl_save_prefix"
30021 additional_includedir
="$withval/include"
30022 additional_libdir
="$withval/lib"
30033 names_already_handled
=
30034 names_next_round
='iconv '
30035 while test -n "$names_next_round"; do
30036 names_this_round
="$names_next_round"
30038 for name
in $names_this_round; do
30040 for n
in $names_already_handled; do
30041 if test "$n" = "$name"; then
30042 already_handled
=yes
30046 if test -z "$already_handled"; then
30047 names_already_handled
="$names_already_handled $name"
30048 uppername
=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
30049 eval value
=\"\
$HAVE_LIB$uppername\"
30050 if test -n "$value"; then
30051 if test "$value" = yes; then
30052 eval value
=\"\
$LIB$uppername\"
30053 test -z "$value" || LIBICONV
="${LIBICONV}${LIBICONV:+ }$value"
30054 eval value
=\"\
$LTLIB$uppername\"
30055 test -z "$value" || LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }$value"
30064 if test $use_additional = yes; then
30065 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
30066 found_dir
="$additional_libdir"
30067 found_so
="$additional_libdir/lib$name.$shlibext"
30068 if test -f "$additional_libdir/lib$name.la"; then
30069 found_la
="$additional_libdir/lib$name.la"
30072 if test -f "$additional_libdir/lib$name.$libext"; then
30073 found_dir
="$additional_libdir"
30074 found_a
="$additional_libdir/lib$name.$libext"
30075 if test -f "$additional_libdir/lib$name.la"; then
30076 found_la
="$additional_libdir/lib$name.la"
30081 if test "X$found_dir" = "X"; then
30082 for x
in $LDFLAGS $LTLIBICONV; do
30084 acl_save_prefix
="$prefix"
30085 prefix
="$acl_final_prefix"
30086 acl_save_exec_prefix
="$exec_prefix"
30087 exec_prefix
="$acl_final_exec_prefix"
30089 exec_prefix
="$acl_save_exec_prefix"
30090 prefix
="$acl_save_prefix"
30094 dir
=`echo "X$x" | sed -e 's/^X-L//'`
30095 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
30097 found_so
="$dir/lib$name.$shlibext"
30098 if test -f "$dir/lib$name.la"; then
30099 found_la
="$dir/lib$name.la"
30102 if test -f "$dir/lib$name.$libext"; then
30104 found_a
="$dir/lib$name.$libext"
30105 if test -f "$dir/lib$name.la"; then
30106 found_la
="$dir/lib$name.la"
30112 if test "X$found_dir" != "X"; then
30117 if test "X$found_dir" != "X"; then
30118 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
30119 if test "X$found_so" != "X"; then
30120 if test "$enable_rpath" = no ||
test "X$found_dir" = "X/usr/lib"; then
30121 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
30124 for x
in $ltrpathdirs; do
30125 if test "X$x" = "X$found_dir"; then
30130 if test -z "$haveit"; then
30131 ltrpathdirs
="$ltrpathdirs $found_dir"
30133 if test "$hardcode_direct" = yes; then
30134 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
30136 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no
; then
30137 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
30139 for x
in $rpathdirs; do
30140 if test "X$x" = "X$found_dir"; then
30145 if test -z "$haveit"; then
30146 rpathdirs
="$rpathdirs $found_dir"
30150 for x
in $LDFLAGS $LIBICONV; do
30152 acl_save_prefix
="$prefix"
30153 prefix
="$acl_final_prefix"
30154 acl_save_exec_prefix
="$exec_prefix"
30155 exec_prefix
="$acl_final_exec_prefix"
30157 exec_prefix
="$acl_save_exec_prefix"
30158 prefix
="$acl_save_prefix"
30160 if test "X$x" = "X-L$found_dir"; then
30165 if test -z "$haveit"; then
30166 LIBICONV
="${LIBICONV}${LIBICONV:+ }-L$found_dir"
30168 if test "$hardcode_minus_L" != no
; then
30169 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
30171 LIBICONV
="${LIBICONV}${LIBICONV:+ }-l$name"
30177 if test "X$found_a" != "X"; then
30178 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_a"
30180 LIBICONV
="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
30183 additional_includedir
=
30184 case "$found_dir" in
30186 basedir
=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
30187 additional_includedir
="$basedir/include"
30190 if test "X$additional_includedir" != "X"; then
30191 if test "X$additional_includedir" != "X/usr/include"; then
30193 if test "X$additional_includedir" = "X/usr/local/include"; then
30194 if test -n "$GCC"; then
30196 linux
* | gnu
* | k
*bsd
*-gnu) haveit
=yes;;
30200 if test -z "$haveit"; then
30201 for x
in $CPPFLAGS $INCICONV; do
30203 acl_save_prefix
="$prefix"
30204 prefix
="$acl_final_prefix"
30205 acl_save_exec_prefix
="$exec_prefix"
30206 exec_prefix
="$acl_final_exec_prefix"
30208 exec_prefix
="$acl_save_exec_prefix"
30209 prefix
="$acl_save_prefix"
30211 if test "X$x" = "X-I$additional_includedir"; then
30216 if test -z "$haveit"; then
30217 if test -d "$additional_includedir"; then
30218 INCICONV
="${INCICONV}${INCICONV:+ }-I$additional_includedir"
30224 if test -n "$found_la"; then
30225 save_libdir
="$libdir"
30226 case "$found_la" in
30227 */* |
*\\*) .
"$found_la" ;;
30228 *) .
"./$found_la" ;;
30230 libdir
="$save_libdir"
30231 for dep
in $dependency_libs; do
30234 additional_libdir
=`echo "X$dep" | sed -e 's/^X-L//'`
30235 if test "X$additional_libdir" != "X/usr/lib"; then
30237 if test "X$additional_libdir" = "X/usr/local/lib"; then
30238 if test -n "$GCC"; then
30240 linux
* | gnu
* | k
*bsd
*-gnu) haveit
=yes;;
30244 if test -z "$haveit"; then
30246 for x
in $LDFLAGS $LIBICONV; do
30248 acl_save_prefix
="$prefix"
30249 prefix
="$acl_final_prefix"
30250 acl_save_exec_prefix
="$exec_prefix"
30251 exec_prefix
="$acl_final_exec_prefix"
30253 exec_prefix
="$acl_save_exec_prefix"
30254 prefix
="$acl_save_prefix"
30256 if test "X$x" = "X-L$additional_libdir"; then
30261 if test -z "$haveit"; then
30262 if test -d "$additional_libdir"; then
30263 LIBICONV
="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
30267 for x
in $LDFLAGS $LTLIBICONV; do
30269 acl_save_prefix
="$prefix"
30270 prefix
="$acl_final_prefix"
30271 acl_save_exec_prefix
="$exec_prefix"
30272 exec_prefix
="$acl_final_exec_prefix"
30274 exec_prefix
="$acl_save_exec_prefix"
30275 prefix
="$acl_save_prefix"
30277 if test "X$x" = "X-L$additional_libdir"; then
30282 if test -z "$haveit"; then
30283 if test -d "$additional_libdir"; then
30284 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
30291 dir
=`echo "X$dep" | sed -e 's/^X-R//'`
30292 if test "$enable_rpath" != no
; then
30294 for x
in $rpathdirs; do
30295 if test "X$x" = "X$dir"; then
30300 if test -z "$haveit"; then
30301 rpathdirs
="$rpathdirs $dir"
30304 for x
in $ltrpathdirs; do
30305 if test "X$x" = "X$dir"; then
30310 if test -z "$haveit"; then
30311 ltrpathdirs
="$ltrpathdirs $dir"
30316 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
30319 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
30322 LIBICONV
="${LIBICONV}${LIBICONV:+ }$dep"
30323 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }$dep"
30329 LIBICONV
="${LIBICONV}${LIBICONV:+ }-l$name"
30330 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
30336 if test "X$rpathdirs" != "X"; then
30337 if test -n "$hardcode_libdir_separator"; then
30339 for found_dir
in $rpathdirs; do
30340 alldirs
="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
30342 acl_save_libdir
="$libdir"
30344 eval flag
=\"$hardcode_libdir_flag_spec\"
30345 libdir
="$acl_save_libdir"
30346 LIBICONV
="${LIBICONV}${LIBICONV:+ }$flag"
30348 for found_dir
in $rpathdirs; do
30349 acl_save_libdir
="$libdir"
30350 libdir
="$found_dir"
30351 eval flag
=\"$hardcode_libdir_flag_spec\"
30352 libdir
="$acl_save_libdir"
30353 LIBICONV
="${LIBICONV}${LIBICONV:+ }$flag"
30357 if test "X$ltrpathdirs" != "X"; then
30358 for found_dir
in $ltrpathdirs; do
30359 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
30380 { $as_echo "$as_me:$LINENO: checking for CFPreferencesCopyAppValue" >&5
30381 $as_echo_n "checking for CFPreferencesCopyAppValue... " >&6; }
30382 if test "${gt_cv_func_CFPreferencesCopyAppValue+set}" = set; then
30383 $as_echo_n "(cached) " >&6
30385 gt_save_CPPFLAGS
="$CPPFLAGS"
30386 CPPFLAGS
="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
30387 gt_save_LIBS
="$LIBS"
30388 LIBS
="$LIBS -framework CoreFoundation"
30389 cat >conftest.
$ac_ext <<_ACEOF
30392 cat confdefs.h
>>conftest.
$ac_ext
30393 cat >>conftest.
$ac_ext <<_ACEOF
30394 /* end confdefs.h. */
30395 #include <CFPreferences.h>
30399 CFPreferencesCopyAppValue(NULL, NULL)
30404 rm -f conftest.
$ac_objext conftest
$ac_exeext
30405 if { (ac_try
="$ac_link"
30406 case "(($ac_try" in
30407 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
30408 *) ac_try_echo=$ac_try;;
30410 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30411 $as_echo "$ac_try_echo") >&5
30412 (eval "$ac_link") 2>conftest.er1
30414 grep -v '^ *+' conftest.er1 >conftest.err
30416 cat conftest.err >&5
30417 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30418 (exit $ac_status); } && {
30419 test -z "$ac_c_werror_flag" ||
30420 test ! -s conftest.err
30421 } && test -s conftest$ac_exeext && {
30422 test "$cross_compiling" = yes ||
30423 $as_test_x conftest$ac_exeext
30425 gt_cv_func_CFPreferencesCopyAppValue=yes
30427 $as_echo "$as_me: failed program was:" >&5
30428 sed 's/^/| /' conftest.$ac_ext >&5
30430 gt_cv_func_CFPreferencesCopyAppValue=no
30433 rm -rf conftest.dSYM
30434 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30435 conftest$ac_exeext conftest.$ac_ext
30436 CPPFLAGS="$gt_save_CPPFLAGS"
30437 LIBS="$gt_save_LIBS"
30439 { $as_echo "$as_me:$LINENO: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
30440 $as_echo "$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
30441 if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
30443 cat >>confdefs.h <<\_ACEOF
30444 #define HAVE_CFPREFERENCESCOPYAPPVALUE 1
30448 { $as_echo "$as_me:$LINENO: checking for CFLocaleCopyCurrent" >&5
30449 $as_echo_n "checking for CFLocaleCopyCurrent... " >&6; }
30450 if test "${gt_cv_func_CFLocaleCopyCurrent+set}" = set; then
30451 $as_echo_n "(cached) " >&6
30453 gt_save_CPPFLAGS="$CPPFLAGS"
30454 CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
30455 gt_save_LIBS="$LIBS"
30456 LIBS="$LIBS -framework CoreFoundation"
30457 cat >conftest.$ac_ext <<_ACEOF
30460 cat confdefs.h >>conftest.$ac_ext
30461 cat >>conftest.$ac_ext <<_ACEOF
30462 /* end confdefs.h. */
30463 #include <CFLocale.h>
30467 CFLocaleCopyCurrent();
30472 rm -f conftest.$ac_objext conftest$ac_exeext
30473 if { (ac_try="$ac_link"
30474 case "(($ac_try" in
30475 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
30476 *) ac_try_echo
=$ac_try;;
30478 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
30479 $as_echo "$ac_try_echo") >&5
30480 (eval "$ac_link") 2>conftest.er1
30482 grep -v '^ *+' conftest.er1
>conftest.err
30484 cat conftest.err
>&5
30485 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30486 (exit $ac_status); } && {
30487 test -z "$ac_c_werror_flag" ||
30488 test ! -s conftest.err
30489 } && test -s conftest
$ac_exeext && {
30490 test "$cross_compiling" = yes ||
30491 $as_test_x conftest
$ac_exeext
30493 gt_cv_func_CFLocaleCopyCurrent
=yes
30495 $as_echo "$as_me: failed program was:" >&5
30496 sed 's/^/| /' conftest.
$ac_ext >&5
30498 gt_cv_func_CFLocaleCopyCurrent
=no
30501 rm -rf conftest.dSYM
30502 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
30503 conftest
$ac_exeext conftest.
$ac_ext
30504 CPPFLAGS
="$gt_save_CPPFLAGS"
30505 LIBS
="$gt_save_LIBS"
30507 { $as_echo "$as_me:$LINENO: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
30508 $as_echo "$gt_cv_func_CFLocaleCopyCurrent" >&6; }
30509 if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
30511 cat >>confdefs.h
<<\_ACEOF
30512 #define HAVE_CFLOCALECOPYCURRENT 1
30517 if test $gt_cv_func_CFPreferencesCopyAppValue = yes ||
test $gt_cv_func_CFLocaleCopyCurrent = yes; then
30518 INTL_MACOSX_LIBS
="-Wl,-framework -Wl,CoreFoundation"
30524 { $as_echo "$as_me:$LINENO: checking whether NLS is requested" >&5
30525 $as_echo_n "checking whether NLS is requested... " >&6; }
30526 # Check whether --enable-nls was given.
30527 if test "${enable_nls+set}" = set; then
30528 enableval
=$enable_nls; USE_NLS
=$enableval
30533 { $as_echo "$as_me:$LINENO: result: $USE_NLS" >&5
30534 $as_echo "$USE_NLS" >&6; }
30543 if test "$USE_NLS" = "yes"; then
30544 gt_use_preinstalled_gnugettext
=no
30551 { $as_echo "$as_me:$LINENO: checking for GNU gettext in libc" >&5
30552 $as_echo_n "checking for GNU gettext in libc... " >&6; }
30553 if test "${gt_cv_func_gnugettext1_libc+set}" = set; then
30554 $as_echo_n "(cached) " >&6
30556 cat >conftest.
$ac_ext <<_ACEOF
30559 cat confdefs.h
>>conftest.
$ac_ext
30560 cat >>conftest.
$ac_ext <<_ACEOF
30561 /* end confdefs.h. */
30562 #include <libintl.h>
30563 extern int _nl_msg_cat_cntr;
30564 extern int *_nl_domain_bindings;
30568 bindtextdomain ("", "");
30569 return * gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings
30574 rm -f conftest.
$ac_objext conftest
$ac_exeext
30575 if { (ac_try
="$ac_link"
30576 case "(($ac_try" in
30577 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
30578 *) ac_try_echo=$ac_try;;
30580 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30581 $as_echo "$ac_try_echo") >&5
30582 (eval "$ac_link") 2>conftest.er1
30584 grep -v '^ *+' conftest.er1 >conftest.err
30586 cat conftest.err >&5
30587 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30588 (exit $ac_status); } && {
30589 test -z "$ac_c_werror_flag" ||
30590 test ! -s conftest.err
30591 } && test -s conftest$ac_exeext && {
30592 test "$cross_compiling" = yes ||
30593 $as_test_x conftest$ac_exeext
30595 gt_cv_func_gnugettext1_libc=yes
30597 $as_echo "$as_me: failed program was:" >&5
30598 sed 's/^/| /' conftest.$ac_ext >&5
30600 gt_cv_func_gnugettext1_libc=no
30603 rm -rf conftest.dSYM
30604 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30605 conftest$ac_exeext conftest.$ac_ext
30607 { $as_echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libc" >&5
30608 $as_echo "$gt_cv_func_gnugettext1_libc" >&6; }
30610 if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
30616 am_save_CPPFLAGS="$CPPFLAGS"
30618 for element in $INCICONV; do
30620 for x in $CPPFLAGS; do
30622 acl_save_prefix="$prefix"
30623 prefix="$acl_final_prefix"
30624 acl_save_exec_prefix="$exec_prefix"
30625 exec_prefix="$acl_final_exec_prefix"
30627 exec_prefix="$acl_save_exec_prefix"
30628 prefix="$acl_save_prefix"
30630 if test "X$x" = "X$element"; then
30635 if test -z "$haveit"; then
30636 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
30641 { $as_echo "$as_me:$LINENO: checking for iconv" >&5
30642 $as_echo_n "checking for iconv... " >&6; }
30643 if test "${am_cv_func_iconv+set}" = set; then
30644 $as_echo_n "(cached) " >&6
30647 am_cv_func_iconv="no, consider installing GNU libiconv"
30649 cat >conftest.$ac_ext <<_ACEOF
30652 cat confdefs.h >>conftest.$ac_ext
30653 cat >>conftest.$ac_ext <<_ACEOF
30654 /* end confdefs.h. */
30655 #include <stdlib.h>
30660 iconv_t cd = iconv_open("","");
30661 iconv(cd,NULL,NULL,NULL,NULL);
30667 rm -f conftest.$ac_objext conftest$ac_exeext
30668 if { (ac_try="$ac_link"
30669 case "(($ac_try" in
30670 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
30671 *) ac_try_echo
=$ac_try;;
30673 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
30674 $as_echo "$ac_try_echo") >&5
30675 (eval "$ac_link") 2>conftest.er1
30677 grep -v '^ *+' conftest.er1
>conftest.err
30679 cat conftest.err
>&5
30680 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30681 (exit $ac_status); } && {
30682 test -z "$ac_c_werror_flag" ||
30683 test ! -s conftest.err
30684 } && test -s conftest
$ac_exeext && {
30685 test "$cross_compiling" = yes ||
30686 $as_test_x conftest
$ac_exeext
30688 am_cv_func_iconv
=yes
30690 $as_echo "$as_me: failed program was:" >&5
30691 sed 's/^/| /' conftest.
$ac_ext >&5
30696 rm -rf conftest.dSYM
30697 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
30698 conftest
$ac_exeext conftest.
$ac_ext
30699 if test "$am_cv_func_iconv" != yes; then
30700 am_save_LIBS
="$LIBS"
30701 LIBS
="$LIBS $LIBICONV"
30702 cat >conftest.
$ac_ext <<_ACEOF
30705 cat confdefs.h
>>conftest.
$ac_ext
30706 cat >>conftest.
$ac_ext <<_ACEOF
30707 /* end confdefs.h. */
30708 #include <stdlib.h>
30713 iconv_t cd = iconv_open("","");
30714 iconv(cd,NULL,NULL,NULL,NULL);
30720 rm -f conftest.
$ac_objext conftest
$ac_exeext
30721 if { (ac_try
="$ac_link"
30722 case "(($ac_try" in
30723 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
30724 *) ac_try_echo=$ac_try;;
30726 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30727 $as_echo "$ac_try_echo") >&5
30728 (eval "$ac_link") 2>conftest.er1
30730 grep -v '^ *+' conftest.er1 >conftest.err
30732 cat conftest.err >&5
30733 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30734 (exit $ac_status); } && {
30735 test -z "$ac_c_werror_flag" ||
30736 test ! -s conftest.err
30737 } && test -s conftest$ac_exeext && {
30738 test "$cross_compiling" = yes ||
30739 $as_test_x conftest$ac_exeext
30741 am_cv_lib_iconv=yes
30742 am_cv_func_iconv=yes
30744 $as_echo "$as_me: failed program was:" >&5
30745 sed 's/^/| /' conftest.$ac_ext >&5
30750 rm -rf conftest.dSYM
30751 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30752 conftest$ac_exeext conftest.$ac_ext
30753 LIBS="$am_save_LIBS"
30757 { $as_echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
30758 $as_echo "$am_cv_func_iconv" >&6; }
30759 if test "$am_cv_func_iconv" = yes; then
30761 cat >>confdefs.h <<\_ACEOF
30762 #define HAVE_ICONV 1
30766 if test "$am_cv_lib_iconv" = yes; then
30767 { $as_echo "$as_me:$LINENO: checking how to link with libiconv" >&5
30768 $as_echo_n "checking how to link with libiconv... " >&6; }
30769 { $as_echo "$as_me:$LINENO: result: $LIBICONV" >&5
30770 $as_echo "$LIBICONV" >&6; }
30772 CPPFLAGS="$am_save_CPPFLAGS"
30784 acl_save_prefix="$prefix"
30785 prefix="$acl_final_prefix"
30786 acl_save_exec_prefix="$exec_prefix"
30787 exec_prefix="$acl_final_exec_prefix"
30789 eval additional_includedir=\"$includedir\"
30790 eval additional_libdir=\"$libdir\"
30792 exec_prefix="$acl_save_exec_prefix"
30793 prefix="$acl_save_prefix"
30796 # Check whether --with-libintl-prefix was given.
30797 if test "${with_libintl_prefix+set}" = set; then
30798 withval=$with_libintl_prefix;
30799 if test "X$withval" = "Xno"; then
30802 if test "X$withval" = "X"; then
30804 acl_save_prefix="$prefix"
30805 prefix="$acl_final_prefix"
30806 acl_save_exec_prefix="$exec_prefix"
30807 exec_prefix="$acl_final_exec_prefix"
30809 eval additional_includedir=\"$includedir\"
30810 eval additional_libdir=\"$libdir\"
30812 exec_prefix="$acl_save_exec_prefix"
30813 prefix="$acl_save_prefix"
30816 additional_includedir="$withval/include"
30817 additional_libdir="$withval/lib"
30828 names_already_handled=
30829 names_next_round='intl '
30830 while test -n "$names_next_round"; do
30831 names_this_round="$names_next_round"
30833 for name in $names_this_round; do
30835 for n in $names_already_handled; do
30836 if test "$n" = "$name"; then
30837 already_handled=yes
30841 if test -z "$already_handled"; then
30842 names_already_handled="$names_already_handled $name"
30843 uppername=`echo "$name" |
sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
30844 eval value=\"\$HAVE_LIB$uppername\"
30845 if test -n "$value"; then
30846 if test "$value" = yes; then
30847 eval value=\"\$LIB$uppername\"
30848 test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
30849 eval value=\"\$LTLIB$uppername\"
30850 test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
30859 if test $use_additional = yes; then
30860 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
30861 found_dir="$additional_libdir"
30862 found_so="$additional_libdir/lib$name.$shlibext"
30863 if test -f "$additional_libdir/lib$name.la"; then
30864 found_la="$additional_libdir/lib$name.la"
30867 if test -f "$additional_libdir/lib$name.$libext"; then
30868 found_dir="$additional_libdir"
30869 found_a="$additional_libdir/lib$name.$libext"
30870 if test -f "$additional_libdir/lib$name.la"; then
30871 found_la="$additional_libdir/lib$name.la"
30876 if test "X$found_dir" = "X"; then
30877 for x in $LDFLAGS $LTLIBINTL; do
30879 acl_save_prefix="$prefix"
30880 prefix="$acl_final_prefix"
30881 acl_save_exec_prefix="$exec_prefix"
30882 exec_prefix="$acl_final_exec_prefix"
30884 exec_prefix="$acl_save_exec_prefix"
30885 prefix="$acl_save_prefix"
30889 dir=`echo "X$x" |
sed -e 's/^X-L//'`
30890 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
30892 found_so="$dir/lib$name.$shlibext"
30893 if test -f "$dir/lib$name.la"; then
30894 found_la="$dir/lib$name.la"
30897 if test -f "$dir/lib$name.$libext"; then
30899 found_a="$dir/lib$name.$libext"
30900 if test -f "$dir/lib$name.la"; then
30901 found_la="$dir/lib$name.la"
30907 if test "X$found_dir" != "X"; then
30912 if test "X$found_dir" != "X"; then
30913 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
30914 if test "X$found_so" != "X"; then
30915 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
30916 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
30919 for x in $ltrpathdirs; do
30920 if test "X$x" = "X$found_dir"; then
30925 if test -z "$haveit"; then
30926 ltrpathdirs="$ltrpathdirs $found_dir"
30928 if test "$hardcode_direct" = yes; then
30929 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
30931 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
30932 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
30934 for x in $rpathdirs; do
30935 if test "X$x" = "X$found_dir"; then
30940 if test -z "$haveit"; then
30941 rpathdirs="$rpathdirs $found_dir"
30945 for x in $LDFLAGS $LIBINTL; do
30947 acl_save_prefix="$prefix"
30948 prefix="$acl_final_prefix"
30949 acl_save_exec_prefix="$exec_prefix"
30950 exec_prefix="$acl_final_exec_prefix"
30952 exec_prefix="$acl_save_exec_prefix"
30953 prefix="$acl_save_prefix"
30955 if test "X$x" = "X-L$found_dir"; then
30960 if test -z "$haveit"; then
30961 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
30963 if test "$hardcode_minus_L" != no; then
30964 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
30966 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
30972 if test "X$found_a" != "X"; then
30973 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
30975 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
30978 additional_includedir=
30979 case "$found_dir" in
30981 basedir=`echo "X$found_dir" |
sed -e 's,^X,,' -e 's,/lib/*$,,'`
30982 additional_includedir="$basedir/include"
30985 if test "X$additional_includedir" != "X"; then
30986 if test "X$additional_includedir" != "X/usr/include"; then
30988 if test "X$additional_includedir" = "X/usr/local/include"; then
30989 if test -n "$GCC"; then
30991 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
30995 if test -z "$haveit"; then
30996 for x in $CPPFLAGS $INCINTL; do
30998 acl_save_prefix="$prefix"
30999 prefix="$acl_final_prefix"
31000 acl_save_exec_prefix="$exec_prefix"
31001 exec_prefix="$acl_final_exec_prefix"
31003 exec_prefix="$acl_save_exec_prefix"
31004 prefix="$acl_save_prefix"
31006 if test "X$x" = "X-I$additional_includedir"; then
31011 if test -z "$haveit"; then
31012 if test -d "$additional_includedir"; then
31013 INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
31019 if test -n "$found_la"; then
31020 save_libdir="$libdir"
31021 case "$found_la" in
31022 */* | *\\*) . "$found_la" ;;
31023 *) . "./$found_la" ;;
31025 libdir="$save_libdir"
31026 for dep in $dependency_libs; do
31029 additional_libdir=`echo "X$dep" |
sed -e 's/^X-L//'`
31030 if test "X$additional_libdir" != "X/usr/lib"; then
31032 if test "X$additional_libdir" = "X/usr/local/lib"; then
31033 if test -n "$GCC"; then
31035 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
31039 if test -z "$haveit"; then
31041 for x in $LDFLAGS $LIBINTL; do
31043 acl_save_prefix="$prefix"
31044 prefix="$acl_final_prefix"
31045 acl_save_exec_prefix="$exec_prefix"
31046 exec_prefix="$acl_final_exec_prefix"
31048 exec_prefix="$acl_save_exec_prefix"
31049 prefix="$acl_save_prefix"
31051 if test "X$x" = "X-L$additional_libdir"; then
31056 if test -z "$haveit"; then
31057 if test -d "$additional_libdir"; then
31058 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
31062 for x in $LDFLAGS $LTLIBINTL; do
31064 acl_save_prefix="$prefix"
31065 prefix="$acl_final_prefix"
31066 acl_save_exec_prefix="$exec_prefix"
31067 exec_prefix="$acl_final_exec_prefix"
31069 exec_prefix="$acl_save_exec_prefix"
31070 prefix="$acl_save_prefix"
31072 if test "X$x" = "X-L$additional_libdir"; then
31077 if test -z "$haveit"; then
31078 if test -d "$additional_libdir"; then
31079 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
31086 dir=`echo "X$dep" |
sed -e 's/^X-R//'`
31087 if test "$enable_rpath" != no; then
31089 for x in $rpathdirs; do
31090 if test "X$x" = "X$dir"; then
31095 if test -z "$haveit"; then
31096 rpathdirs="$rpathdirs $dir"
31099 for x in $ltrpathdirs; do
31100 if test "X$x" = "X$dir"; then
31105 if test -z "$haveit"; then
31106 ltrpathdirs="$ltrpathdirs $dir"
31111 names_next_round="$names_next_round "`echo "X$dep" |
sed -e 's/^X-l//'`
31114 names_next_round="$names_next_round "`echo "X$dep" |
sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
31117 LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
31118 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
31124 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
31125 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
31131 if test "X$rpathdirs" != "X"; then
31132 if test -n "$hardcode_libdir_separator"; then
31134 for found_dir in $rpathdirs; do
31135 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
31137 acl_save_libdir="$libdir"
31139 eval flag=\"$hardcode_libdir_flag_spec\"
31140 libdir="$acl_save_libdir"
31141 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
31143 for found_dir in $rpathdirs; do
31144 acl_save_libdir="$libdir"
31145 libdir="$found_dir"
31146 eval flag=\"$hardcode_libdir_flag_spec\"
31147 libdir="$acl_save_libdir"
31148 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
31152 if test "X$ltrpathdirs" != "X"; then
31153 for found_dir in $ltrpathdirs; do
31154 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
31158 { $as_echo "$as_me:$LINENO: checking for GNU gettext in libintl" >&5
31159 $as_echo_n "checking for GNU gettext in libintl... " >&6; }
31160 if test "${gt_cv_func_gnugettext1_libintl+set}" = set; then
31161 $as_echo_n "(cached) " >&6
31163 gt_save_CPPFLAGS="$CPPFLAGS"
31164 CPPFLAGS="$CPPFLAGS $INCINTL"
31165 gt_save_LIBS="$LIBS"
31166 LIBS="$LIBS $LIBINTL"
31167 cat >conftest.$ac_ext <<_ACEOF
31170 cat confdefs.h >>conftest.$ac_ext
31171 cat >>conftest.$ac_ext <<_ACEOF
31172 /* end confdefs.h. */
31173 #include <libintl.h>
31174 extern int _nl_msg_cat_cntr;
31179 const char *_nl_expand_alias (const char *);
31183 bindtextdomain ("", "");
31184 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
31189 rm -f conftest.$ac_objext conftest$ac_exeext
31190 if { (ac_try="$ac_link"
31191 case "(($ac_try" in
31192 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
31193 *) ac_try_echo
=$ac_try;;
31195 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
31196 $as_echo "$ac_try_echo") >&5
31197 (eval "$ac_link") 2>conftest.er1
31199 grep -v '^ *+' conftest.er1
>conftest.err
31201 cat conftest.err
>&5
31202 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
31203 (exit $ac_status); } && {
31204 test -z "$ac_c_werror_flag" ||
31205 test ! -s conftest.err
31206 } && test -s conftest
$ac_exeext && {
31207 test "$cross_compiling" = yes ||
31208 $as_test_x conftest
$ac_exeext
31210 gt_cv_func_gnugettext1_libintl
=yes
31212 $as_echo "$as_me: failed program was:" >&5
31213 sed 's/^/| /' conftest.
$ac_ext >&5
31215 gt_cv_func_gnugettext1_libintl
=no
31218 rm -rf conftest.dSYM
31219 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
31220 conftest
$ac_exeext conftest.
$ac_ext
31221 if test "$gt_cv_func_gnugettext1_libintl" != yes && test -n "$LIBICONV"; then
31222 LIBS
="$LIBS $LIBICONV"
31223 cat >conftest.
$ac_ext <<_ACEOF
31226 cat confdefs.h
>>conftest.
$ac_ext
31227 cat >>conftest.
$ac_ext <<_ACEOF
31228 /* end confdefs.h. */
31229 #include <libintl.h>
31230 extern int _nl_msg_cat_cntr;
31235 const char *_nl_expand_alias (const char *);
31239 bindtextdomain ("", "");
31240 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
31245 rm -f conftest.
$ac_objext conftest
$ac_exeext
31246 if { (ac_try
="$ac_link"
31247 case "(($ac_try" in
31248 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
31249 *) ac_try_echo=$ac_try;;
31251 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
31252 $as_echo "$ac_try_echo") >&5
31253 (eval "$ac_link") 2>conftest.er1
31255 grep -v '^ *+' conftest.er1 >conftest.err
31257 cat conftest.err >&5
31258 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
31259 (exit $ac_status); } && {
31260 test -z "$ac_c_werror_flag" ||
31261 test ! -s conftest.err
31262 } && test -s conftest$ac_exeext && {
31263 test "$cross_compiling" = yes ||
31264 $as_test_x conftest$ac_exeext
31266 LIBINTL="$LIBINTL $LIBICONV"
31267 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
31268 gt_cv_func_gnugettext1_libintl=yes
31271 $as_echo "$as_me: failed program was:" >&5
31272 sed 's/^/| /' conftest.$ac_ext >&5
31277 rm -rf conftest.dSYM
31278 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31279 conftest$ac_exeext conftest.$ac_ext
31281 CPPFLAGS="$gt_save_CPPFLAGS"
31282 LIBS="$gt_save_LIBS"
31284 { $as_echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libintl" >&5
31285 $as_echo "$gt_cv_func_gnugettext1_libintl" >&6; }
31288 if test "$gt_cv_func_gnugettext1_libc" = "yes" \
31289 || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
31290 && test "$PACKAGE" != gettext-runtime \
31291 && test "$PACKAGE" != gettext-tools; }; then
31292 gt_use_preinstalled_gnugettext=yes
31301 if test -n "$INTL_MACOSX_LIBS"; then
31302 if test "$gt_use_preinstalled_gnugettext" = "yes" \
31303 || test "$nls_cv_use_gnu_gettext" = "yes"; then
31304 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
31305 LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
31309 if test "$gt_use_preinstalled_gnugettext" = "yes" \
31310 || test "$nls_cv_use_gnu_gettext" = "yes"; then
31312 cat >>confdefs.h <<\_ACEOF
31313 #define ENABLE_NLS 1
31321 { $as_echo "$as_me:$LINENO: checking whether to use NLS" >&5
31322 $as_echo_n "checking whether to use NLS... " >&6; }
31323 { $as_echo "$as_me:$LINENO: result: $USE_NLS" >&5
31324 $as_echo "$USE_NLS" >&6; }
31325 if test "$USE_NLS" = "yes"; then
31326 { $as_echo "$as_me:$LINENO: checking where the gettext function comes from" >&5
31327 $as_echo_n "checking where the gettext function comes from... " >&6; }
31328 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
31329 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
31330 gt_source="external libintl"
31335 gt_source="included intl directory"
31337 { $as_echo "$as_me:$LINENO: result: $gt_source" >&5
31338 $as_echo "$gt_source" >&6; }
31341 if test "$USE_NLS" = "yes"; then
31343 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
31344 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
31345 { $as_echo "$as_me:$LINENO: checking how to link with libintl" >&5
31346 $as_echo_n "checking how to link with libintl... " >&6; }
31347 { $as_echo "$as_me:$LINENO: result: $LIBINTL" >&5
31348 $as_echo "$LIBINTL" >&6; }
31350 for element in $INCINTL; do
31352 for x in $CPPFLAGS; do
31354 acl_save_prefix="$prefix"
31355 prefix="$acl_final_prefix"
31356 acl_save_exec_prefix="$exec_prefix"
31357 exec_prefix="$acl_final_exec_prefix"
31359 exec_prefix="$acl_save_exec_prefix"
31360 prefix="$acl_save_prefix"
31362 if test "X$x" = "X$element"; then
31367 if test -z "$haveit"; then
31368 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
31375 cat >>confdefs.h <<\_ACEOF
31376 #define HAVE_GETTEXT 1
31380 cat >>confdefs.h <<\_ACEOF
31381 #define HAVE_DCGETTEXT 1
31391 INTLLIBS="$LIBINTL"
31398 # The error module still poses merge problems.
31399 { $as_echo "$as_me:$LINENO: checking whether strerror_r is declared" >&5
31400 $as_echo_n "checking whether strerror_r is declared... " >&6; }
31401 if test "${ac_cv_have_decl_strerror_r+set}" = set; then
31402 $as_echo_n "(cached) " >&6
31404 cat >conftest.$ac_ext <<_ACEOF
31407 cat confdefs.h >>conftest.$ac_ext
31408 cat >>conftest.$ac_ext <<_ACEOF
31409 /* end confdefs.h. */
31410 $ac_includes_default
31422 rm -f conftest.$ac_objext
31423 if { (ac_try="$ac_compile"
31424 case "(($ac_try" in
31425 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
31426 *) ac_try_echo
=$ac_try;;
31428 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
31429 $as_echo "$ac_try_echo") >&5
31430 (eval "$ac_compile") 2>conftest.er1
31432 grep -v '^ *+' conftest.er1
>conftest.err
31434 cat conftest.err
>&5
31435 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
31436 (exit $ac_status); } && {
31437 test -z "$ac_c_werror_flag" ||
31438 test ! -s conftest.err
31439 } && test -s conftest.
$ac_objext; then
31440 ac_cv_have_decl_strerror_r
=yes
31442 $as_echo "$as_me: failed program was:" >&5
31443 sed 's/^/| /' conftest.
$ac_ext >&5
31445 ac_cv_have_decl_strerror_r
=no
31448 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
31450 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_strerror_r" >&5
31451 $as_echo "$ac_cv_have_decl_strerror_r" >&6; }
31452 if test "x$ac_cv_have_decl_strerror_r" = x
""yes; then
31454 cat >>confdefs.h
<<_ACEOF
31455 #define HAVE_DECL_STRERROR_R 1
31460 cat >>confdefs.h
<<_ACEOF
31461 #define HAVE_DECL_STRERROR_R 0
31469 for ac_func
in strerror_r
31471 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
31472 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
31473 $as_echo_n "checking for $ac_func... " >&6; }
31474 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
31475 $as_echo_n "(cached) " >&6
31477 cat >conftest.
$ac_ext <<_ACEOF
31480 cat confdefs.h
>>conftest.
$ac_ext
31481 cat >>conftest.
$ac_ext <<_ACEOF
31482 /* end confdefs.h. */
31483 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31484 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31485 #define $ac_func innocuous_$ac_func
31487 /* System header to define __stub macros and hopefully few prototypes,
31488 which can conflict with char $ac_func (); below.
31489 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31490 <limits.h> exists even on freestanding compilers. */
31493 # include <limits.h>
31495 # include <assert.h>
31500 /* Override any GCC internal prototype to avoid an error.
31501 Use char because int might match the return type of a GCC
31502 builtin and then its argument prototype would still apply. */
31507 /* The GNU C library defines this for functions which it implements
31508 to always fail with ENOSYS. Some functions are actually named
31509 something starting with __ and the normal name is an alias. */
31510 #if defined __stub_$ac_func || defined __stub___$ac_func
31517 return $ac_func ();
31522 rm -f conftest.
$ac_objext conftest
$ac_exeext
31523 if { (ac_try
="$ac_link"
31524 case "(($ac_try" in
31525 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
31526 *) ac_try_echo=$ac_try;;
31528 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
31529 $as_echo "$ac_try_echo") >&5
31530 (eval "$ac_link") 2>conftest.er1
31532 grep -v '^ *+' conftest.er1 >conftest.err
31534 cat conftest.err >&5
31535 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
31536 (exit $ac_status); } && {
31537 test -z "$ac_c_werror_flag" ||
31538 test ! -s conftest.err
31539 } && test -s conftest$ac_exeext && {
31540 test "$cross_compiling" = yes ||
31541 $as_test_x conftest$ac_exeext
31543 eval "$as_ac_var=yes"
31545 $as_echo "$as_me: failed program was:" >&5
31546 sed 's/^/| /' conftest.$ac_ext >&5
31548 eval "$as_ac_var=no"
31551 rm -rf conftest.dSYM
31552 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31553 conftest$ac_exeext conftest.$ac_ext
31555 ac_res=`eval 'as_val=${'$as_ac_var'}
31556 $as_echo "$as_val"'`
31557 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
31558 $as_echo "$ac_res" >&6; }
31559 as_val=`eval 'as_val=${'$as_ac_var'}
31560 $as_echo "$as_val"'`
31561 if test "x$as_val" = x""yes; then
31562 cat >>confdefs.h <<_ACEOF
31563 #define `$as_echo "HAVE_$ac_func" |
$as_tr_cpp` 1
31569 { $as_echo "$as_me:$LINENO: checking whether strerror_r returns char *" >&5
31570 $as_echo_n "checking whether strerror_r returns char *... " >&6; }
31571 if test "${ac_cv_func_strerror_r_char_p+set}" = set; then
31572 $as_echo_n "(cached) " >&6
31575 ac_cv_func_strerror_r_char_p=no
31576 if test $ac_cv_have_decl_strerror_r = yes; then
31577 cat >conftest.$ac_ext <<_ACEOF
31580 cat confdefs.h >>conftest.$ac_ext
31581 cat >>conftest.$ac_ext <<_ACEOF
31582 /* end confdefs.h. */
31583 $ac_includes_default
31589 char x = *strerror_r (0, buf, sizeof buf);
31590 char *p = strerror_r (0, buf, sizeof buf);
31597 rm -f conftest.$ac_objext
31598 if { (ac_try="$ac_compile"
31599 case "(($ac_try" in
31600 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
31601 *) ac_try_echo
=$ac_try;;
31603 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
31604 $as_echo "$ac_try_echo") >&5
31605 (eval "$ac_compile") 2>conftest.er1
31607 grep -v '^ *+' conftest.er1
>conftest.err
31609 cat conftest.err
>&5
31610 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
31611 (exit $ac_status); } && {
31612 test -z "$ac_c_werror_flag" ||
31613 test ! -s conftest.err
31614 } && test -s conftest.
$ac_objext; then
31615 ac_cv_func_strerror_r_char_p
=yes
31617 $as_echo "$as_me: failed program was:" >&5
31618 sed 's/^/| /' conftest.
$ac_ext >&5
31623 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
31625 # strerror_r is not declared. Choose between
31626 # systems that have relatively inaccessible declarations for the
31627 # function. BeOS and DEC UNIX 4.0 fall in this category, but the
31628 # former has a strerror_r that returns char*, while the latter
31629 # has a strerror_r that returns `int'.
31630 # This test should segfault on the DEC system.
31631 if test "$cross_compiling" = yes; then
31634 cat >conftest.
$ac_ext <<_ACEOF
31637 cat confdefs.h
>>conftest.
$ac_ext
31638 cat >>conftest.
$ac_ext <<_ACEOF
31639 /* end confdefs.h. */
31640 $ac_includes_default
31641 extern char *strerror_r ();
31646 char x = *strerror_r (0, buf, sizeof buf);
31647 return ! isalpha (x);
31652 rm -f conftest
$ac_exeext
31653 if { (ac_try
="$ac_link"
31654 case "(($ac_try" in
31655 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
31656 *) ac_try_echo=$ac_try;;
31658 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
31659 $as_echo "$ac_try_echo") >&5
31660 (eval "$ac_link") 2>&5
31662 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
31663 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
31664 { (case "(($ac_try" in
31665 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
31666 *) ac_try_echo
=$ac_try;;
31668 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
31669 $as_echo "$ac_try_echo") >&5
31670 (eval "$ac_try") 2>&5
31672 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
31673 (exit $ac_status); }; }; then
31674 ac_cv_func_strerror_r_char_p
=yes
31676 $as_echo "$as_me: program exited with status $ac_status" >&5
31677 $as_echo "$as_me: failed program was:" >&5
31678 sed 's/^/| /' conftest.
$ac_ext >&5
31681 rm -rf conftest.dSYM
31682 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
31689 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_strerror_r_char_p" >&5
31690 $as_echo "$ac_cv_func_strerror_r_char_p" >&6; }
31691 if test $ac_cv_func_strerror_r_char_p = yes; then
31693 cat >>confdefs.h
<<\_ACEOF
31694 #define STRERROR_R_CHAR_P 1
31703 if test $gl_cv_header_inttypes_h = no
&& test $gl_cv_header_stdint_h = no
; then
31705 test $ac_cv_type_long_long = yes \
31706 && ac_type
='long long' \
31709 cat >>confdefs.h
<<_ACEOF
31710 #define intmax_t $ac_type
31715 cat >>confdefs.h
<<\_ACEOF
31716 #define HAVE_INTMAX_T 1
31729 for ac_header
in glob.h
31731 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
31732 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
31733 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
31734 $as_echo_n "checking for $ac_header... " >&6; }
31735 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
31736 $as_echo_n "(cached) " >&6
31738 ac_res
=`eval 'as_val=${'$as_ac_Header'}
31739 $as_echo "$as_val"'`
31740 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
31741 $as_echo "$ac_res" >&6; }
31743 # Is the header compilable?
31744 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
31745 $as_echo_n "checking $ac_header usability... " >&6; }
31746 cat >conftest.
$ac_ext <<_ACEOF
31749 cat confdefs.h
>>conftest.
$ac_ext
31750 cat >>conftest.
$ac_ext <<_ACEOF
31751 /* end confdefs.h. */
31752 $ac_includes_default
31753 #include <$ac_header>
31755 rm -f conftest.
$ac_objext
31756 if { (ac_try
="$ac_compile"
31757 case "(($ac_try" in
31758 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
31759 *) ac_try_echo=$ac_try;;
31761 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
31762 $as_echo "$ac_try_echo") >&5
31763 (eval "$ac_compile") 2>conftest.er1
31765 grep -v '^ *+' conftest.er1 >conftest.err
31767 cat conftest.err >&5
31768 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
31769 (exit $ac_status); } && {
31770 test -z "$ac_c_werror_flag" ||
31771 test ! -s conftest.err
31772 } && test -s conftest.$ac_objext; then
31773 ac_header_compiler=yes
31775 $as_echo "$as_me: failed program was:" >&5
31776 sed 's/^/| /' conftest.$ac_ext >&5
31778 ac_header_compiler=no
31781 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31782 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
31783 $as_echo "$ac_header_compiler" >&6; }
31785 # Is the header present?
31786 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
31787 $as_echo_n "checking $ac_header presence... " >&6; }
31788 cat >conftest.$ac_ext <<_ACEOF
31791 cat confdefs.h >>conftest.$ac_ext
31792 cat >>conftest.$ac_ext <<_ACEOF
31793 /* end confdefs.h. */
31794 #include <$ac_header>
31796 if { (ac_try="$ac_cpp conftest.$ac_ext"
31797 case "(($ac_try" in
31798 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
31799 *) ac_try_echo
=$ac_try;;
31801 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
31802 $as_echo "$ac_try_echo") >&5
31803 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
31805 grep -v '^ *+' conftest.er1
>conftest.err
31807 cat conftest.err
>&5
31808 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
31809 (exit $ac_status); } >/dev
/null
&& {
31810 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
31811 test ! -s conftest.err
31813 ac_header_preproc
=yes
31815 $as_echo "$as_me: failed program was:" >&5
31816 sed 's/^/| /' conftest.
$ac_ext >&5
31818 ac_header_preproc
=no
31821 rm -f conftest.err conftest.
$ac_ext
31822 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
31823 $as_echo "$ac_header_preproc" >&6; }
31825 # So? What about this header?
31826 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
31828 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
31829 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
31830 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
31831 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
31832 ac_header_preproc
=yes
31835 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
31836 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
31837 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
31838 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
31839 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
31840 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
31841 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
31842 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
31843 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
31844 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
31845 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
31846 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
31848 ## --------------------------------- ##
31849 ## Report this to bug-cvs@nongnu.org ##
31850 ## --------------------------------- ##
31852 ) |
sed "s/^/$as_me: WARNING: /" >&2
31855 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
31856 $as_echo_n "checking for $ac_header... " >&6; }
31857 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
31858 $as_echo_n "(cached) " >&6
31860 eval "$as_ac_Header=\$ac_header_preproc"
31862 ac_res
=`eval 'as_val=${'$as_ac_Header'}
31863 $as_echo "$as_val"'`
31864 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
31865 $as_echo "$ac_res" >&6; }
31868 as_val
=`eval 'as_val=${'$as_ac_Header'}
31869 $as_echo "$as_val"'`
31870 if test "x$as_val" = x
""yes; then
31871 cat >>confdefs.h
<<_ACEOF
31872 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
31882 if test -z "$GLOB_H"; then
31883 { $as_echo "$as_me:$LINENO: checking for GNU glob interface version 1" >&5
31884 $as_echo_n "checking for GNU glob interface version 1... " >&6; }
31885 if test "${gl_cv_gnu_glob_interface_version_1+set}" = set; then
31886 $as_echo_n "(cached) " >&6
31888 cat >conftest.
$ac_ext <<_ACEOF
31889 #include <gnu-versions.h>
31890 char a[_GNU_GLOB_INTERFACE_VERSION == 1 ? 1 : -1];
31892 rm -f conftest.
$ac_objext
31893 if { (ac_try
="$ac_compile"
31894 case "(($ac_try" in
31895 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
31896 *) ac_try_echo=$ac_try;;
31898 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
31899 $as_echo "$ac_try_echo") >&5
31900 (eval "$ac_compile") 2>conftest.er1
31902 grep -v '^ *+' conftest.er1 >conftest.err
31904 cat conftest.err >&5
31905 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
31906 (exit $ac_status); } && {
31907 test -z "$ac_c_werror_flag" ||
31908 test ! -s conftest.err
31909 } && test -s conftest.$ac_objext; then
31910 gl_cv_gnu_glob_interface_version_1=yes
31912 $as_echo "$as_me: failed program was:" >&5
31913 sed 's/^/| /' conftest.$ac_ext >&5
31915 gl_cv_gnu_glob_interface_version_1=no
31918 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31920 { $as_echo "$as_me:$LINENO: result: $gl_cv_gnu_glob_interface_version_1" >&5
31921 $as_echo "$gl_cv_gnu_glob_interface_version_1" >&6; }
31923 if test "$gl_cv_gnu_glob_interface_version_1" = "no"; then
31928 if test -z "$GLOB_H"; then
31929 { $as_echo "$as_me:$LINENO: checking whether glob lists broken symlinks" >&5
31930 $as_echo_n "checking whether glob lists broken symlinks... " >&6; }
31931 if test "${gl_cv_glob_lists_symlinks+set}" = set; then
31932 $as_echo_n "(cached) " >&6
31934 if ln -s conf-doesntexist conf$$-globtest 2>/dev/null; then
31935 gl_cv_glob_lists_symlinks=maybe
31937 # If we can't make a symlink, then we cannot test this issue. Be
31938 # pessimistic about this.
31939 gl_cv_glob_lists_symlinks=no
31942 if test $gl_cv_glob_lists_symlinks = maybe; then
31943 if test "$cross_compiling" = yes; then
31944 gl_cv_glob_lists_symlinks=no
31946 cat >conftest.$ac_ext <<_ACEOF
31949 cat confdefs.h >>conftest.$ac_ext
31950 cat >>conftest.$ac_ext <<_ACEOF
31951 /* end confdefs.h. */
31952 #include <stddef.h>
31958 if (glob ("conf*-globtest", 0, NULL, &found) == GLOB_NOMATCH) return 1;
31963 rm -f conftest$ac_exeext
31964 if { (ac_try="$ac_link"
31965 case "(($ac_try" in
31966 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
31967 *) ac_try_echo
=$ac_try;;
31969 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
31970 $as_echo "$ac_try_echo") >&5
31971 (eval "$ac_link") 2>&5
31973 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
31974 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
31975 { (case "(($ac_try" in
31976 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
31977 *) ac_try_echo=$ac_try;;
31979 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
31980 $as_echo "$ac_try_echo") >&5
31981 (eval "$ac_try") 2>&5
31983 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
31984 (exit $ac_status); }; }; then
31985 gl_cv_glob_lists_symlinks=yes
31987 $as_echo "$as_me: program exited with status $ac_status" >&5
31988 $as_echo "$as_me: failed program was:" >&5
31989 sed 's/^/| /' conftest.$ac_ext >&5
31991 ( exit $ac_status )
31992 gl_cv_glob_lists_symlinks=no
31994 rm -rf conftest.dSYM
31995 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
32001 { $as_echo "$as_me:$LINENO: result: $gl_cv_glob_lists_symlinks" >&5
32002 $as_echo "$gl_cv_glob_lists_symlinks" >&6; }
32004 if test $gl_cv_glob_lists_symlinks = no; then
32009 rm -f conf$$-globtest
32011 if test -n "$GLOB_H"; then
32035 case " $LIBOBJS " in
32036 *" glob.$ac_objext "* ) ;;
32037 *) LIBOBJS="$LIBOBJS glob.$ac_objext"
32047 # End GNULIB stuff.
32052 # Check for function existance.
32106 as_ac_var=`$as_echo "ac_cv_func_$ac_func" |
$as_tr_sh`
32107 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
32108 $as_echo_n "checking for $ac_func... " >&6; }
32109 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
32110 $as_echo_n "(cached) " >&6
32112 cat >conftest.$ac_ext <<_ACEOF
32115 cat confdefs.h >>conftest.$ac_ext
32116 cat >>conftest.$ac_ext <<_ACEOF
32117 /* end confdefs.h. */
32118 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
32119 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32120 #define $ac_func innocuous_$ac_func
32122 /* System header to define __stub macros and hopefully few prototypes,
32123 which can conflict with char $ac_func (); below.
32124 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32125 <limits.h> exists even on freestanding compilers. */
32128 # include <limits.h>
32130 # include <assert.h>
32135 /* Override any GCC internal prototype to avoid an error.
32136 Use char because int might match the return type of a GCC
32137 builtin and then its argument prototype would still apply. */
32142 /* The GNU C library defines this for functions which it implements
32143 to always fail with ENOSYS. Some functions are actually named
32144 something starting with __ and the normal name is an alias. */
32145 #if defined __stub_$ac_func || defined __stub___$ac_func
32152 return $ac_func ();
32157 rm -f conftest.$ac_objext conftest$ac_exeext
32158 if { (ac_try="$ac_link"
32159 case "(($ac_try" in
32160 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
32161 *) ac_try_echo
=$ac_try;;
32163 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
32164 $as_echo "$ac_try_echo") >&5
32165 (eval "$ac_link") 2>conftest.er1
32167 grep -v '^ *+' conftest.er1
>conftest.err
32169 cat conftest.err
>&5
32170 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
32171 (exit $ac_status); } && {
32172 test -z "$ac_c_werror_flag" ||
32173 test ! -s conftest.err
32174 } && test -s conftest
$ac_exeext && {
32175 test "$cross_compiling" = yes ||
32176 $as_test_x conftest
$ac_exeext
32178 eval "$as_ac_var=yes"
32180 $as_echo "$as_me: failed program was:" >&5
32181 sed 's/^/| /' conftest.
$ac_ext >&5
32183 eval "$as_ac_var=no"
32186 rm -rf conftest.dSYM
32187 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
32188 conftest
$ac_exeext conftest.
$ac_ext
32190 ac_res
=`eval 'as_val=${'$as_ac_var'}
32191 $as_echo "$as_val"'`
32192 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
32193 $as_echo "$ac_res" >&6; }
32194 as_val
=`eval 'as_val=${'$as_ac_var'}
32195 $as_echo "$as_val"'`
32196 if test "x$as_val" = x
""yes; then
32197 cat >>confdefs.h
<<_ACEOF
32198 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
32205 if test $cross_compiling = yes ; then
32207 cat >>confdefs.h
<<\_ACEOF
32208 #define CROSS_COMPILING 1
32212 # The cast to long int works around a bug in the HP C Compiler
32213 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
32214 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
32215 # This bug is HP SR number 8606223364.
32216 { $as_echo "$as_me:$LINENO: checking size of char" >&5
32217 $as_echo_n "checking size of char... " >&6; }
32218 if test "${ac_cv_sizeof_char+set}" = set; then
32219 $as_echo_n "(cached) " >&6
32221 if test "$cross_compiling" = yes; then
32222 # Depending upon the size, compute the lo and hi bounds.
32223 cat >conftest.
$ac_ext <<_ACEOF
32226 cat confdefs.h
>>conftest.
$ac_ext
32227 cat >>conftest.
$ac_ext <<_ACEOF
32228 /* end confdefs.h. */
32229 $ac_includes_default
32233 static int test_array [1 - 2 * !(((long int) (sizeof (char))) >= 0)];
32240 rm -f conftest.
$ac_objext
32241 if { (ac_try
="$ac_compile"
32242 case "(($ac_try" in
32243 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
32244 *) ac_try_echo=$ac_try;;
32246 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
32247 $as_echo "$ac_try_echo") >&5
32248 (eval "$ac_compile") 2>conftest.er1
32250 grep -v '^ *+' conftest.er1 >conftest.err
32252 cat conftest.err >&5
32253 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
32254 (exit $ac_status); } && {
32255 test -z "$ac_c_werror_flag" ||
32256 test ! -s conftest.err
32257 } && test -s conftest.$ac_objext; then
32260 cat >conftest.$ac_ext <<_ACEOF
32263 cat confdefs.h >>conftest.$ac_ext
32264 cat >>conftest.$ac_ext <<_ACEOF
32265 /* end confdefs.h. */
32266 $ac_includes_default
32270 static int test_array [1 - 2 * !(((long int) (sizeof (char))) <= $ac_mid)];
32277 rm -f conftest.$ac_objext
32278 if { (ac_try="$ac_compile"
32279 case "(($ac_try" in
32280 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
32281 *) ac_try_echo
=$ac_try;;
32283 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
32284 $as_echo "$ac_try_echo") >&5
32285 (eval "$ac_compile") 2>conftest.er1
32287 grep -v '^ *+' conftest.er1
>conftest.err
32289 cat conftest.err
>&5
32290 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
32291 (exit $ac_status); } && {
32292 test -z "$ac_c_werror_flag" ||
32293 test ! -s conftest.err
32294 } && test -s conftest.
$ac_objext; then
32295 ac_hi
=$ac_mid; break
32297 $as_echo "$as_me: failed program was:" >&5
32298 sed 's/^/| /' conftest.
$ac_ext >&5
32300 ac_lo
=`expr $ac_mid + 1`
32301 if test $ac_lo -le $ac_mid; then
32305 ac_mid
=`expr 2 '*' $ac_mid + 1`
32308 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
32311 $as_echo "$as_me: failed program was:" >&5
32312 sed 's/^/| /' conftest.
$ac_ext >&5
32314 cat >conftest.
$ac_ext <<_ACEOF
32317 cat confdefs.h
>>conftest.
$ac_ext
32318 cat >>conftest.
$ac_ext <<_ACEOF
32319 /* end confdefs.h. */
32320 $ac_includes_default
32324 static int test_array [1 - 2 * !(((long int) (sizeof (char))) < 0)];
32331 rm -f conftest.
$ac_objext
32332 if { (ac_try
="$ac_compile"
32333 case "(($ac_try" in
32334 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
32335 *) ac_try_echo=$ac_try;;
32337 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
32338 $as_echo "$ac_try_echo") >&5
32339 (eval "$ac_compile") 2>conftest.er1
32341 grep -v '^ *+' conftest.er1 >conftest.err
32343 cat conftest.err >&5
32344 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
32345 (exit $ac_status); } && {
32346 test -z "$ac_c_werror_flag" ||
32347 test ! -s conftest.err
32348 } && test -s conftest.$ac_objext; then
32351 cat >conftest.$ac_ext <<_ACEOF
32354 cat confdefs.h >>conftest.$ac_ext
32355 cat >>conftest.$ac_ext <<_ACEOF
32356 /* end confdefs.h. */
32357 $ac_includes_default
32361 static int test_array [1 - 2 * !(((long int) (sizeof (char))) >= $ac_mid)];
32368 rm -f conftest.$ac_objext
32369 if { (ac_try="$ac_compile"
32370 case "(($ac_try" in
32371 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
32372 *) ac_try_echo
=$ac_try;;
32374 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
32375 $as_echo "$ac_try_echo") >&5
32376 (eval "$ac_compile") 2>conftest.er1
32378 grep -v '^ *+' conftest.er1
>conftest.err
32380 cat conftest.err
>&5
32381 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
32382 (exit $ac_status); } && {
32383 test -z "$ac_c_werror_flag" ||
32384 test ! -s conftest.err
32385 } && test -s conftest.
$ac_objext; then
32386 ac_lo
=$ac_mid; break
32388 $as_echo "$as_me: failed program was:" >&5
32389 sed 's/^/| /' conftest.
$ac_ext >&5
32391 ac_hi
=`expr '(' $ac_mid ')' - 1`
32392 if test $ac_mid -le $ac_hi; then
32396 ac_mid
=`expr 2 '*' $ac_mid`
32399 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
32402 $as_echo "$as_me: failed program was:" >&5
32403 sed 's/^/| /' conftest.
$ac_ext >&5
32408 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
32411 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
32412 # Binary search between lo and hi bounds.
32413 while test "x$ac_lo" != "x$ac_hi"; do
32414 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
32415 cat >conftest.
$ac_ext <<_ACEOF
32418 cat confdefs.h
>>conftest.
$ac_ext
32419 cat >>conftest.
$ac_ext <<_ACEOF
32420 /* end confdefs.h. */
32421 $ac_includes_default
32425 static int test_array [1 - 2 * !(((long int) (sizeof (char))) <= $ac_mid)];
32432 rm -f conftest.
$ac_objext
32433 if { (ac_try
="$ac_compile"
32434 case "(($ac_try" in
32435 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
32436 *) ac_try_echo=$ac_try;;
32438 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
32439 $as_echo "$ac_try_echo") >&5
32440 (eval "$ac_compile") 2>conftest.er1
32442 grep -v '^ *+' conftest.er1 >conftest.err
32444 cat conftest.err >&5
32445 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
32446 (exit $ac_status); } && {
32447 test -z "$ac_c_werror_flag" ||
32448 test ! -s conftest.err
32449 } && test -s conftest.$ac_objext; then
32452 $as_echo "$as_me: failed program was:" >&5
32453 sed 's/^/| /' conftest.$ac_ext >&5
32455 ac_lo=`expr '(' $ac_mid ')' + 1`
32458 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32461 ?*) ac_cv_sizeof_char=$ac_lo;;
32462 '') if test "$ac_cv_type_char" = yes; then
32463 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
32464 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
32465 { { $as_echo "$as_me:$LINENO: error
: cannot compute sizeof
(char
)
32466 See \
`config.log' for more details." >&5
32467 $as_echo "$as_me: error: cannot compute sizeof (char)
32468 See \`config.log
' for more details." >&2;}
32469 { (exit 77); exit 77; }; }; }
32471 ac_cv_sizeof_char=0
32475 cat >conftest.$ac_ext <<_ACEOF
32478 cat confdefs.h >>conftest.$ac_ext
32479 cat >>conftest.$ac_ext <<_ACEOF
32480 /* end confdefs.h. */
32481 $ac_includes_default
32482 static long int longval () { return (long int) (sizeof (char)); }
32483 static unsigned long int ulongval () { return (long int) (sizeof (char)); }
32485 #include <stdlib.h>
32490 FILE *f = fopen ("conftest.val", "w");
32493 if (((long int) (sizeof (char))) < 0)
32495 long int i = longval ();
32496 if (i != ((long int) (sizeof (char))))
32498 fprintf (f, "%ld", i);
32502 unsigned long int i = ulongval ();
32503 if (i != ((long int) (sizeof (char))))
32505 fprintf (f, "%lu", i);
32507 /* Do not output a trailing newline, as this causes \r\n confusion
32508 on some platforms. */
32509 return ferror (f) || fclose (f) != 0;
32515 rm -f conftest$ac_exeext
32516 if { (ac_try="$ac_link"
32517 case "(($ac_try" in
32518 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32519 *) ac_try_echo=$ac_try;;
32521 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
32522 $as_echo "$ac_try_echo") >&5
32523 (eval "$ac_link") 2>&5
32525 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
32526 (exit $ac_status); } && { ac_try='.
/conftest
$ac_exeext'
32527 { (case "(($ac_try" in
32528 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32529 *) ac_try_echo=$ac_try;;
32531 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
32532 $as_echo "$ac_try_echo") >&5
32533 (eval "$ac_try") 2>&5
32535 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
32536 (exit $ac_status); }; }; then
32537 ac_cv_sizeof_char=`cat conftest.val`
32539 $as_echo "$as_me: program exited with status $ac_status" >&5
32540 $as_echo "$as_me: failed program was:" >&5
32541 sed 's
/^
/|
/' conftest.$ac_ext >&5
32543 ( exit $ac_status )
32544 if test "$ac_cv_type_char" = yes; then
32545 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
32546 $as_echo "$as_me: error
: in \
`$ac_pwd':" >&2;}
32547 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (char)
32548 See \`config.log
' for more details." >&5
32549 $as_echo "$as_me: error: cannot compute sizeof (char)
32550 See \`config.log' for more details.
" >&2;}
32551 { (exit 77); exit 77; }; }; }
32553 ac_cv_sizeof_char=0
32556 rm -rf conftest.dSYM
32557 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
32561 { $as_echo "$as_me:$LINENO: result
: $ac_cv_sizeof_char" >&5
32562 $as_echo "$ac_cv_sizeof_char" >&6; }
32566 cat >>confdefs.h <<_ACEOF
32567 #define SIZEOF_CHAR $ac_cv_sizeof_char
32571 { $as_echo "$as_me:$LINENO: checking
for uniquely sized char
" >&5
32572 $as_echo_n "checking
for uniquely sized char...
" >&6; }
32573 if test "${ccvs_cv_unique_int_type_char+set}" = set; then
32574 $as_echo_n "(cached
) " >&6
32576 if set |grep ^ccvs_cv_unique_int_type_ \
32577 |grep "($ac_cv_sizeof_char)" >/dev/null ; then
32578 ccvs_cv_unique_int_type_char=no
32580 ccvs_cv_unique_int_type_char=yes\($ac_cv_sizeof_char\)
32583 { $as_echo "$as_me:$LINENO: result
: $ccvs_cv_unique_int_type_char" >&5
32584 $as_echo "$ccvs_cv_unique_int_type_char" >&6; }
32585 if test $ccvs_cv_unique_int_type_char != no ; then
32587 cat >>confdefs.h <<\_ACEOF
32588 #define UNIQUE_INT_TYPE_CHAR 1
32592 # The cast to long int works around a bug in the HP C Compiler
32593 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
32594 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
32595 # This bug is HP SR number 8606223364.
32596 { $as_echo "$as_me:$LINENO: checking size of short
" >&5
32597 $as_echo_n "checking size of short...
" >&6; }
32598 if test "${ac_cv_sizeof_short+set}" = set; then
32599 $as_echo_n "(cached
) " >&6
32601 if test "$cross_compiling" = yes; then
32602 # Depending upon the size, compute the lo and hi bounds.
32603 cat >conftest.$ac_ext <<_ACEOF
32606 cat confdefs.h >>conftest.$ac_ext
32607 cat >>conftest.$ac_ext <<_ACEOF
32608 /* end confdefs.h. */
32609 $ac_includes_default
32613 static int test_array [1 - 2 * !(((long int) (sizeof (short))) >= 0)];
32620 rm -f conftest.$ac_objext
32621 if { (ac_try="$ac_compile"
32622 case "(($ac_try" in
32623 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32624 *) ac_try_echo=$ac_try;;
32626 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
32627 $as_echo "$ac_try_echo") >&5
32628 (eval "$ac_compile") 2>conftest.er1
32630 grep -v '^ *+' conftest.er1 >conftest.err
32632 cat conftest.err >&5
32633 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
32634 (exit $ac_status); } && {
32635 test -z "$ac_c_werror_flag" ||
32636 test ! -s conftest.err
32637 } && test -s conftest.$ac_objext; then
32640 cat >conftest.$ac_ext <<_ACEOF
32643 cat confdefs.h >>conftest.$ac_ext
32644 cat >>conftest.$ac_ext <<_ACEOF
32645 /* end confdefs.h. */
32646 $ac_includes_default
32650 static int test_array [1 - 2 * !(((long int) (sizeof (short))) <= $ac_mid)];
32657 rm -f conftest.$ac_objext
32658 if { (ac_try="$ac_compile"
32659 case "(($ac_try" in
32660 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32661 *) ac_try_echo=$ac_try;;
32663 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
32664 $as_echo "$ac_try_echo") >&5
32665 (eval "$ac_compile") 2>conftest.er1
32667 grep -v '^ *+' conftest.er1 >conftest.err
32669 cat conftest.err >&5
32670 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
32671 (exit $ac_status); } && {
32672 test -z "$ac_c_werror_flag" ||
32673 test ! -s conftest.err
32674 } && test -s conftest.$ac_objext; then
32675 ac_hi=$ac_mid; break
32677 $as_echo "$as_me: failed program was
:" >&5
32678 sed 's/^/| /' conftest.$ac_ext >&5
32680 ac_lo=`expr $ac_mid + 1`
32681 if test $ac_lo -le $ac_mid; then
32685 ac_mid=`expr 2 '*' $ac_mid + 1`
32688 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32691 $as_echo "$as_me: failed program was
:" >&5
32692 sed 's/^/| /' conftest.$ac_ext >&5
32694 cat >conftest.$ac_ext <<_ACEOF
32697 cat confdefs.h >>conftest.$ac_ext
32698 cat >>conftest.$ac_ext <<_ACEOF
32699 /* end confdefs.h. */
32700 $ac_includes_default
32704 static int test_array [1 - 2 * !(((long int) (sizeof (short))) < 0)];
32711 rm -f conftest.$ac_objext
32712 if { (ac_try="$ac_compile"
32713 case "(($ac_try" in
32714 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32715 *) ac_try_echo=$ac_try;;
32717 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
32718 $as_echo "$ac_try_echo") >&5
32719 (eval "$ac_compile") 2>conftest.er1
32721 grep -v '^ *+' conftest.er1 >conftest.err
32723 cat conftest.err >&5
32724 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
32725 (exit $ac_status); } && {
32726 test -z "$ac_c_werror_flag" ||
32727 test ! -s conftest.err
32728 } && test -s conftest.$ac_objext; then
32731 cat >conftest.$ac_ext <<_ACEOF
32734 cat confdefs.h >>conftest.$ac_ext
32735 cat >>conftest.$ac_ext <<_ACEOF
32736 /* end confdefs.h. */
32737 $ac_includes_default
32741 static int test_array [1 - 2 * !(((long int) (sizeof (short))) >= $ac_mid)];
32748 rm -f conftest.$ac_objext
32749 if { (ac_try="$ac_compile"
32750 case "(($ac_try" in
32751 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32752 *) ac_try_echo=$ac_try;;
32754 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
32755 $as_echo "$ac_try_echo") >&5
32756 (eval "$ac_compile") 2>conftest.er1
32758 grep -v '^ *+' conftest.er1 >conftest.err
32760 cat conftest.err >&5
32761 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
32762 (exit $ac_status); } && {
32763 test -z "$ac_c_werror_flag" ||
32764 test ! -s conftest.err
32765 } && test -s conftest.$ac_objext; then
32766 ac_lo=$ac_mid; break
32768 $as_echo "$as_me: failed program was
:" >&5
32769 sed 's/^/| /' conftest.$ac_ext >&5
32771 ac_hi=`expr '(' $ac_mid ')' - 1`
32772 if test $ac_mid -le $ac_hi; then
32776 ac_mid=`expr 2 '*' $ac_mid`
32779 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32782 $as_echo "$as_me: failed program was
:" >&5
32783 sed 's/^/| /' conftest.$ac_ext >&5
32788 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32791 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32792 # Binary search between lo and hi bounds.
32793 while test "x
$ac_lo" != "x
$ac_hi"; do
32794 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
32795 cat >conftest.$ac_ext <<_ACEOF
32798 cat confdefs.h >>conftest.$ac_ext
32799 cat >>conftest.$ac_ext <<_ACEOF
32800 /* end confdefs.h. */
32801 $ac_includes_default
32805 static int test_array [1 - 2 * !(((long int) (sizeof (short))) <= $ac_mid)];
32812 rm -f conftest.$ac_objext
32813 if { (ac_try="$ac_compile"
32814 case "(($ac_try" in
32815 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32816 *) ac_try_echo=$ac_try;;
32818 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
32819 $as_echo "$ac_try_echo") >&5
32820 (eval "$ac_compile") 2>conftest.er1
32822 grep -v '^ *+' conftest.er1 >conftest.err
32824 cat conftest.err >&5
32825 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
32826 (exit $ac_status); } && {
32827 test -z "$ac_c_werror_flag" ||
32828 test ! -s conftest.err
32829 } && test -s conftest.$ac_objext; then
32832 $as_echo "$as_me: failed program was
:" >&5
32833 sed 's/^/| /' conftest.$ac_ext >&5
32835 ac_lo=`expr '(' $ac_mid ')' + 1`
32838 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32841 ?*) ac_cv_sizeof_short=$ac_lo;;
32842 '') if test "$ac_cv_type_short" = yes; then
32843 { { $as_echo "$as_me:$LINENO: error
: in \
`$ac_pwd':" >&5
32844 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
32845 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (short)
32846 See \`config.log' for more details.
" >&5
32847 $as_echo "$as_me: error
: cannot compute sizeof
(short
)
32848 See \
`config.log' for more details." >&2;}
32849 { (exit 77); exit 77; }; }; }
32851 ac_cv_sizeof_short=0
32855 cat >conftest.$ac_ext <<_ACEOF
32858 cat confdefs.h >>conftest.$ac_ext
32859 cat >>conftest.$ac_ext <<_ACEOF
32860 /* end confdefs.h. */
32861 $ac_includes_default
32862 static long int longval () { return (long int) (sizeof (short)); }
32863 static unsigned long int ulongval () { return (long int) (sizeof (short)); }
32865 #include <stdlib.h>
32870 FILE *f = fopen ("conftest.val", "w");
32873 if (((long int) (sizeof (short))) < 0)
32875 long int i = longval ();
32876 if (i != ((long int) (sizeof (short))))
32878 fprintf (f, "%ld", i);
32882 unsigned long int i = ulongval ();
32883 if (i != ((long int) (sizeof (short))))
32885 fprintf (f, "%lu", i);
32887 /* Do not output a trailing newline, as this causes \r\n confusion
32888 on some platforms. */
32889 return ferror (f) || fclose (f) != 0;
32895 rm -f conftest$ac_exeext
32896 if { (ac_try="$ac_link"
32897 case "(($ac_try" in
32898 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
32899 *) ac_try_echo
=$ac_try;;
32901 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
32902 $as_echo "$ac_try_echo") >&5
32903 (eval "$ac_link") 2>&5
32905 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
32906 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
32907 { (case "(($ac_try" in
32908 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
32909 *) ac_try_echo=$ac_try;;
32911 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
32912 $as_echo "$ac_try_echo") >&5
32913 (eval "$ac_try") 2>&5
32915 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
32916 (exit $ac_status); }; }; then
32917 ac_cv_sizeof_short=`cat conftest.val
`
32919 $as_echo "$as_me: program exited with status $ac_status" >&5
32920 $as_echo "$as_me: failed program was:" >&5
32921 sed 's/^/| /' conftest.$ac_ext >&5
32923 ( exit $ac_status )
32924 if test "$ac_cv_type_short" = yes; then
32925 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
32926 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
32927 { { $as_echo "$as_me:$LINENO: error
: cannot compute sizeof
(short
)
32928 See \
`config.log' for more details." >&5
32929 $as_echo "$as_me: error: cannot compute sizeof (short)
32930 See \`config.log
' for more details." >&2;}
32931 { (exit 77); exit 77; }; }; }
32933 ac_cv_sizeof_short=0
32936 rm -rf conftest.dSYM
32937 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
32941 { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
32942 $as_echo "$ac_cv_sizeof_short" >&6; }
32946 cat >>confdefs.h <<_ACEOF
32947 #define SIZEOF_SHORT $ac_cv_sizeof_short
32951 { $as_echo "$as_me:$LINENO: checking for uniquely sized short" >&5
32952 $as_echo_n "checking for uniquely sized short... " >&6; }
32953 if test "${ccvs_cv_unique_int_type_short+set}" = set; then
32954 $as_echo_n "(cached) " >&6
32956 if set |grep ^ccvs_cv_unique_int_type_ \
32957 |grep "($ac_cv_sizeof_short)" >/dev/null ; then
32958 ccvs_cv_unique_int_type_short=no
32960 ccvs_cv_unique_int_type_short=yes\($ac_cv_sizeof_short\)
32963 { $as_echo "$as_me:$LINENO: result: $ccvs_cv_unique_int_type_short" >&5
32964 $as_echo "$ccvs_cv_unique_int_type_short" >&6; }
32965 if test $ccvs_cv_unique_int_type_short != no ; then
32967 cat >>confdefs.h <<\_ACEOF
32968 #define UNIQUE_INT_TYPE_SHORT 1
32972 # The cast to long int works around a bug in the HP C Compiler
32973 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
32974 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
32975 # This bug is HP SR number 8606223364.
32976 { $as_echo "$as_me:$LINENO: checking size of int" >&5
32977 $as_echo_n "checking size of int... " >&6; }
32978 if test "${ac_cv_sizeof_int+set}" = set; then
32979 $as_echo_n "(cached) " >&6
32981 if test "$cross_compiling" = yes; then
32982 # Depending upon the size, compute the lo and hi bounds.
32983 cat >conftest.
$ac_ext <<_ACEOF
32986 cat confdefs.h
>>conftest.
$ac_ext
32987 cat >>conftest.
$ac_ext <<_ACEOF
32988 /* end confdefs.h. */
32989 $ac_includes_default
32993 static int test_array [1 - 2 * !(((long int) (sizeof (int))) >= 0)];
33000 rm -f conftest.
$ac_objext
33001 if { (ac_try
="$ac_compile"
33002 case "(($ac_try" in
33003 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
33004 *) ac_try_echo=$ac_try;;
33006 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
33007 $as_echo "$ac_try_echo") >&5
33008 (eval "$ac_compile") 2>conftest.er1
33010 grep -v '^ *+' conftest.er1 >conftest.err
33012 cat conftest.err >&5
33013 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
33014 (exit $ac_status); } && {
33015 test -z "$ac_c_werror_flag" ||
33016 test ! -s conftest.err
33017 } && test -s conftest.$ac_objext; then
33020 cat >conftest.$ac_ext <<_ACEOF
33023 cat confdefs.h >>conftest.$ac_ext
33024 cat >>conftest.$ac_ext <<_ACEOF
33025 /* end confdefs.h. */
33026 $ac_includes_default
33030 static int test_array [1 - 2 * !(((long int) (sizeof (int))) <= $ac_mid)];
33037 rm -f conftest.$ac_objext
33038 if { (ac_try="$ac_compile"
33039 case "(($ac_try" in
33040 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
33041 *) ac_try_echo
=$ac_try;;
33043 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
33044 $as_echo "$ac_try_echo") >&5
33045 (eval "$ac_compile") 2>conftest.er1
33047 grep -v '^ *+' conftest.er1
>conftest.err
33049 cat conftest.err
>&5
33050 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
33051 (exit $ac_status); } && {
33052 test -z "$ac_c_werror_flag" ||
33053 test ! -s conftest.err
33054 } && test -s conftest.
$ac_objext; then
33055 ac_hi
=$ac_mid; break
33057 $as_echo "$as_me: failed program was:" >&5
33058 sed 's/^/| /' conftest.
$ac_ext >&5
33060 ac_lo
=`expr $ac_mid + 1`
33061 if test $ac_lo -le $ac_mid; then
33065 ac_mid
=`expr 2 '*' $ac_mid + 1`
33068 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
33071 $as_echo "$as_me: failed program was:" >&5
33072 sed 's/^/| /' conftest.
$ac_ext >&5
33074 cat >conftest.
$ac_ext <<_ACEOF
33077 cat confdefs.h
>>conftest.
$ac_ext
33078 cat >>conftest.
$ac_ext <<_ACEOF
33079 /* end confdefs.h. */
33080 $ac_includes_default
33084 static int test_array [1 - 2 * !(((long int) (sizeof (int))) < 0)];
33091 rm -f conftest.
$ac_objext
33092 if { (ac_try
="$ac_compile"
33093 case "(($ac_try" in
33094 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
33095 *) ac_try_echo=$ac_try;;
33097 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
33098 $as_echo "$ac_try_echo") >&5
33099 (eval "$ac_compile") 2>conftest.er1
33101 grep -v '^ *+' conftest.er1 >conftest.err
33103 cat conftest.err >&5
33104 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
33105 (exit $ac_status); } && {
33106 test -z "$ac_c_werror_flag" ||
33107 test ! -s conftest.err
33108 } && test -s conftest.$ac_objext; then
33111 cat >conftest.$ac_ext <<_ACEOF
33114 cat confdefs.h >>conftest.$ac_ext
33115 cat >>conftest.$ac_ext <<_ACEOF
33116 /* end confdefs.h. */
33117 $ac_includes_default
33121 static int test_array [1 - 2 * !(((long int) (sizeof (int))) >= $ac_mid)];
33128 rm -f conftest.$ac_objext
33129 if { (ac_try="$ac_compile"
33130 case "(($ac_try" in
33131 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
33132 *) ac_try_echo
=$ac_try;;
33134 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
33135 $as_echo "$ac_try_echo") >&5
33136 (eval "$ac_compile") 2>conftest.er1
33138 grep -v '^ *+' conftest.er1
>conftest.err
33140 cat conftest.err
>&5
33141 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
33142 (exit $ac_status); } && {
33143 test -z "$ac_c_werror_flag" ||
33144 test ! -s conftest.err
33145 } && test -s conftest.
$ac_objext; then
33146 ac_lo
=$ac_mid; break
33148 $as_echo "$as_me: failed program was:" >&5
33149 sed 's/^/| /' conftest.
$ac_ext >&5
33151 ac_hi
=`expr '(' $ac_mid ')' - 1`
33152 if test $ac_mid -le $ac_hi; then
33156 ac_mid
=`expr 2 '*' $ac_mid`
33159 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
33162 $as_echo "$as_me: failed program was:" >&5
33163 sed 's/^/| /' conftest.
$ac_ext >&5
33168 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
33171 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
33172 # Binary search between lo and hi bounds.
33173 while test "x$ac_lo" != "x$ac_hi"; do
33174 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
33175 cat >conftest.
$ac_ext <<_ACEOF
33178 cat confdefs.h
>>conftest.
$ac_ext
33179 cat >>conftest.
$ac_ext <<_ACEOF
33180 /* end confdefs.h. */
33181 $ac_includes_default
33185 static int test_array [1 - 2 * !(((long int) (sizeof (int))) <= $ac_mid)];
33192 rm -f conftest.
$ac_objext
33193 if { (ac_try
="$ac_compile"
33194 case "(($ac_try" in
33195 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
33196 *) ac_try_echo=$ac_try;;
33198 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
33199 $as_echo "$ac_try_echo") >&5
33200 (eval "$ac_compile") 2>conftest.er1
33202 grep -v '^ *+' conftest.er1 >conftest.err
33204 cat conftest.err >&5
33205 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
33206 (exit $ac_status); } && {
33207 test -z "$ac_c_werror_flag" ||
33208 test ! -s conftest.err
33209 } && test -s conftest.$ac_objext; then
33212 $as_echo "$as_me: failed program was:" >&5
33213 sed 's/^/| /' conftest.$ac_ext >&5
33215 ac_lo=`expr '(' $ac_mid ')' + 1`
33218 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33221 ?*) ac_cv_sizeof_int=$ac_lo;;
33222 '') if test "$ac_cv_type_int" = yes; then
33223 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
33224 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
33225 { { $as_echo "$as_me:$LINENO: error
: cannot compute sizeof
(int
)
33226 See \
`config.log' for more details." >&5
33227 $as_echo "$as_me: error: cannot compute sizeof (int)
33228 See \`config.log
' for more details." >&2;}
33229 { (exit 77); exit 77; }; }; }
33235 cat >conftest.$ac_ext <<_ACEOF
33238 cat confdefs.h >>conftest.$ac_ext
33239 cat >>conftest.$ac_ext <<_ACEOF
33240 /* end confdefs.h. */
33241 $ac_includes_default
33242 static long int longval () { return (long int) (sizeof (int)); }
33243 static unsigned long int ulongval () { return (long int) (sizeof (int)); }
33245 #include <stdlib.h>
33250 FILE *f = fopen ("conftest.val", "w");
33253 if (((long int) (sizeof (int))) < 0)
33255 long int i = longval ();
33256 if (i != ((long int) (sizeof (int))))
33258 fprintf (f, "%ld", i);
33262 unsigned long int i = ulongval ();
33263 if (i != ((long int) (sizeof (int))))
33265 fprintf (f, "%lu", i);
33267 /* Do not output a trailing newline, as this causes \r\n confusion
33268 on some platforms. */
33269 return ferror (f) || fclose (f) != 0;
33275 rm -f conftest$ac_exeext
33276 if { (ac_try="$ac_link"
33277 case "(($ac_try" in
33278 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33279 *) ac_try_echo=$ac_try;;
33281 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
33282 $as_echo "$ac_try_echo") >&5
33283 (eval "$ac_link") 2>&5
33285 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
33286 (exit $ac_status); } && { ac_try='.
/conftest
$ac_exeext'
33287 { (case "(($ac_try" in
33288 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33289 *) ac_try_echo=$ac_try;;
33291 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
33292 $as_echo "$ac_try_echo") >&5
33293 (eval "$ac_try") 2>&5
33295 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
33296 (exit $ac_status); }; }; then
33297 ac_cv_sizeof_int=`cat conftest.val`
33299 $as_echo "$as_me: program exited with status $ac_status" >&5
33300 $as_echo "$as_me: failed program was:" >&5
33301 sed 's
/^
/|
/' conftest.$ac_ext >&5
33303 ( exit $ac_status )
33304 if test "$ac_cv_type_int" = yes; then
33305 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
33306 $as_echo "$as_me: error
: in \
`$ac_pwd':" >&2;}
33307 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (int)
33308 See \`config.log
' for more details." >&5
33309 $as_echo "$as_me: error: cannot compute sizeof (int)
33310 See \`config.log' for more details.
" >&2;}
33311 { (exit 77); exit 77; }; }; }
33316 rm -rf conftest.dSYM
33317 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
33321 { $as_echo "$as_me:$LINENO: result
: $ac_cv_sizeof_int" >&5
33322 $as_echo "$ac_cv_sizeof_int" >&6; }
33326 cat >>confdefs.h <<_ACEOF
33327 #define SIZEOF_INT $ac_cv_sizeof_int
33331 { $as_echo "$as_me:$LINENO: checking
for uniquely sized int
" >&5
33332 $as_echo_n "checking
for uniquely sized int...
" >&6; }
33333 if test "${ccvs_cv_unique_int_type_int+set}" = set; then
33334 $as_echo_n "(cached
) " >&6
33336 if set |grep ^ccvs_cv_unique_int_type_ \
33337 |grep "($ac_cv_sizeof_int)" >/dev/null ; then
33338 ccvs_cv_unique_int_type_int=no
33340 ccvs_cv_unique_int_type_int=yes\($ac_cv_sizeof_int\)
33343 { $as_echo "$as_me:$LINENO: result
: $ccvs_cv_unique_int_type_int" >&5
33344 $as_echo "$ccvs_cv_unique_int_type_int" >&6; }
33345 if test $ccvs_cv_unique_int_type_int != no ; then
33347 cat >>confdefs.h <<\_ACEOF
33348 #define UNIQUE_INT_TYPE_INT 1
33352 # The cast to long int works around a bug in the HP C Compiler
33353 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
33354 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
33355 # This bug is HP SR number 8606223364.
33356 { $as_echo "$as_me:$LINENO: checking size of long
" >&5
33357 $as_echo_n "checking size of long...
" >&6; }
33358 if test "${ac_cv_sizeof_long+set}" = set; then
33359 $as_echo_n "(cached
) " >&6
33361 if test "$cross_compiling" = yes; then
33362 # Depending upon the size, compute the lo and hi bounds.
33363 cat >conftest.$ac_ext <<_ACEOF
33366 cat confdefs.h >>conftest.$ac_ext
33367 cat >>conftest.$ac_ext <<_ACEOF
33368 /* end confdefs.h. */
33369 $ac_includes_default
33373 static int test_array [1 - 2 * !(((long int) (sizeof (long))) >= 0)];
33380 rm -f conftest.$ac_objext
33381 if { (ac_try="$ac_compile"
33382 case "(($ac_try" in
33383 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33384 *) ac_try_echo=$ac_try;;
33386 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
33387 $as_echo "$ac_try_echo") >&5
33388 (eval "$ac_compile") 2>conftest.er1
33390 grep -v '^ *+' conftest.er1 >conftest.err
33392 cat conftest.err >&5
33393 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
33394 (exit $ac_status); } && {
33395 test -z "$ac_c_werror_flag" ||
33396 test ! -s conftest.err
33397 } && test -s conftest.$ac_objext; then
33400 cat >conftest.$ac_ext <<_ACEOF
33403 cat confdefs.h >>conftest.$ac_ext
33404 cat >>conftest.$ac_ext <<_ACEOF
33405 /* end confdefs.h. */
33406 $ac_includes_default
33410 static int test_array [1 - 2 * !(((long int) (sizeof (long))) <= $ac_mid)];
33417 rm -f conftest.$ac_objext
33418 if { (ac_try="$ac_compile"
33419 case "(($ac_try" in
33420 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33421 *) ac_try_echo=$ac_try;;
33423 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
33424 $as_echo "$ac_try_echo") >&5
33425 (eval "$ac_compile") 2>conftest.er1
33427 grep -v '^ *+' conftest.er1 >conftest.err
33429 cat conftest.err >&5
33430 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
33431 (exit $ac_status); } && {
33432 test -z "$ac_c_werror_flag" ||
33433 test ! -s conftest.err
33434 } && test -s conftest.$ac_objext; then
33435 ac_hi=$ac_mid; break
33437 $as_echo "$as_me: failed program was
:" >&5
33438 sed 's/^/| /' conftest.$ac_ext >&5
33440 ac_lo=`expr $ac_mid + 1`
33441 if test $ac_lo -le $ac_mid; then
33445 ac_mid=`expr 2 '*' $ac_mid + 1`
33448 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33451 $as_echo "$as_me: failed program was
:" >&5
33452 sed 's/^/| /' conftest.$ac_ext >&5
33454 cat >conftest.$ac_ext <<_ACEOF
33457 cat confdefs.h >>conftest.$ac_ext
33458 cat >>conftest.$ac_ext <<_ACEOF
33459 /* end confdefs.h. */
33460 $ac_includes_default
33464 static int test_array [1 - 2 * !(((long int) (sizeof (long))) < 0)];
33471 rm -f conftest.$ac_objext
33472 if { (ac_try="$ac_compile"
33473 case "(($ac_try" in
33474 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33475 *) ac_try_echo=$ac_try;;
33477 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
33478 $as_echo "$ac_try_echo") >&5
33479 (eval "$ac_compile") 2>conftest.er1
33481 grep -v '^ *+' conftest.er1 >conftest.err
33483 cat conftest.err >&5
33484 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
33485 (exit $ac_status); } && {
33486 test -z "$ac_c_werror_flag" ||
33487 test ! -s conftest.err
33488 } && test -s conftest.$ac_objext; then
33491 cat >conftest.$ac_ext <<_ACEOF
33494 cat confdefs.h >>conftest.$ac_ext
33495 cat >>conftest.$ac_ext <<_ACEOF
33496 /* end confdefs.h. */
33497 $ac_includes_default
33501 static int test_array [1 - 2 * !(((long int) (sizeof (long))) >= $ac_mid)];
33508 rm -f conftest.$ac_objext
33509 if { (ac_try="$ac_compile"
33510 case "(($ac_try" in
33511 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33512 *) ac_try_echo=$ac_try;;
33514 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
33515 $as_echo "$ac_try_echo") >&5
33516 (eval "$ac_compile") 2>conftest.er1
33518 grep -v '^ *+' conftest.er1 >conftest.err
33520 cat conftest.err >&5
33521 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
33522 (exit $ac_status); } && {
33523 test -z "$ac_c_werror_flag" ||
33524 test ! -s conftest.err
33525 } && test -s conftest.$ac_objext; then
33526 ac_lo=$ac_mid; break
33528 $as_echo "$as_me: failed program was
:" >&5
33529 sed 's/^/| /' conftest.$ac_ext >&5
33531 ac_hi=`expr '(' $ac_mid ')' - 1`
33532 if test $ac_mid -le $ac_hi; then
33536 ac_mid=`expr 2 '*' $ac_mid`
33539 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33542 $as_echo "$as_me: failed program was
:" >&5
33543 sed 's/^/| /' conftest.$ac_ext >&5
33548 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33551 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33552 # Binary search between lo and hi bounds.
33553 while test "x
$ac_lo" != "x
$ac_hi"; do
33554 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
33555 cat >conftest.$ac_ext <<_ACEOF
33558 cat confdefs.h >>conftest.$ac_ext
33559 cat >>conftest.$ac_ext <<_ACEOF
33560 /* end confdefs.h. */
33561 $ac_includes_default
33565 static int test_array [1 - 2 * !(((long int) (sizeof (long))) <= $ac_mid)];
33572 rm -f conftest.$ac_objext
33573 if { (ac_try="$ac_compile"
33574 case "(($ac_try" in
33575 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33576 *) ac_try_echo=$ac_try;;
33578 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
33579 $as_echo "$ac_try_echo") >&5
33580 (eval "$ac_compile") 2>conftest.er1
33582 grep -v '^ *+' conftest.er1 >conftest.err
33584 cat conftest.err >&5
33585 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
33586 (exit $ac_status); } && {
33587 test -z "$ac_c_werror_flag" ||
33588 test ! -s conftest.err
33589 } && test -s conftest.$ac_objext; then
33592 $as_echo "$as_me: failed program was
:" >&5
33593 sed 's/^/| /' conftest.$ac_ext >&5
33595 ac_lo=`expr '(' $ac_mid ')' + 1`
33598 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33601 ?*) ac_cv_sizeof_long=$ac_lo;;
33602 '') if test "$ac_cv_type_long" = yes; then
33603 { { $as_echo "$as_me:$LINENO: error
: in \
`$ac_pwd':" >&5
33604 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
33605 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (long)
33606 See \`config.log' for more details.
" >&5
33607 $as_echo "$as_me: error
: cannot compute sizeof
(long
)
33608 See \
`config.log' for more details." >&2;}
33609 { (exit 77); exit 77; }; }; }
33611 ac_cv_sizeof_long=0
33615 cat >conftest.$ac_ext <<_ACEOF
33618 cat confdefs.h >>conftest.$ac_ext
33619 cat >>conftest.$ac_ext <<_ACEOF
33620 /* end confdefs.h. */
33621 $ac_includes_default
33622 static long int longval () { return (long int) (sizeof (long)); }
33623 static unsigned long int ulongval () { return (long int) (sizeof (long)); }
33625 #include <stdlib.h>
33630 FILE *f = fopen ("conftest.val", "w");
33633 if (((long int) (sizeof (long))) < 0)
33635 long int i = longval ();
33636 if (i != ((long int) (sizeof (long))))
33638 fprintf (f, "%ld", i);
33642 unsigned long int i = ulongval ();
33643 if (i != ((long int) (sizeof (long))))
33645 fprintf (f, "%lu", i);
33647 /* Do not output a trailing newline, as this causes \r\n confusion
33648 on some platforms. */
33649 return ferror (f) || fclose (f) != 0;
33655 rm -f conftest$ac_exeext
33656 if { (ac_try="$ac_link"
33657 case "(($ac_try" in
33658 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
33659 *) ac_try_echo
=$ac_try;;
33661 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
33662 $as_echo "$ac_try_echo") >&5
33663 (eval "$ac_link") 2>&5
33665 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
33666 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
33667 { (case "(($ac_try" in
33668 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
33669 *) ac_try_echo=$ac_try;;
33671 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
33672 $as_echo "$ac_try_echo") >&5
33673 (eval "$ac_try") 2>&5
33675 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
33676 (exit $ac_status); }; }; then
33677 ac_cv_sizeof_long=`cat conftest.val
`
33679 $as_echo "$as_me: program exited with status $ac_status" >&5
33680 $as_echo "$as_me: failed program was:" >&5
33681 sed 's/^/| /' conftest.$ac_ext >&5
33683 ( exit $ac_status )
33684 if test "$ac_cv_type_long" = yes; then
33685 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
33686 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
33687 { { $as_echo "$as_me:$LINENO: error
: cannot compute sizeof
(long
)
33688 See \
`config.log' for more details." >&5
33689 $as_echo "$as_me: error: cannot compute sizeof (long)
33690 See \`config.log
' for more details." >&2;}
33691 { (exit 77); exit 77; }; }; }
33693 ac_cv_sizeof_long=0
33696 rm -rf conftest.dSYM
33697 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
33701 { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
33702 $as_echo "$ac_cv_sizeof_long" >&6; }
33706 cat >>confdefs.h <<_ACEOF
33707 #define SIZEOF_LONG $ac_cv_sizeof_long
33711 { $as_echo "$as_me:$LINENO: checking for uniquely sized long" >&5
33712 $as_echo_n "checking for uniquely sized long... " >&6; }
33713 if test "${ccvs_cv_unique_int_type_long+set}" = set; then
33714 $as_echo_n "(cached) " >&6
33716 if set |grep ^ccvs_cv_unique_int_type_ \
33717 |grep "($ac_cv_sizeof_long)" >/dev/null ; then
33718 ccvs_cv_unique_int_type_long=no
33720 ccvs_cv_unique_int_type_long=yes\($ac_cv_sizeof_long\)
33723 { $as_echo "$as_me:$LINENO: result: $ccvs_cv_unique_int_type_long" >&5
33724 $as_echo "$ccvs_cv_unique_int_type_long" >&6; }
33725 if test $ccvs_cv_unique_int_type_long != no ; then
33727 cat >>confdefs.h <<\_ACEOF
33728 #define UNIQUE_INT_TYPE_LONG 1
33732 if test $ac_cv_type_long_long != no; then
33733 # The cast to long int works around a bug in the HP C Compiler
33734 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
33735 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
33736 # This bug is HP SR number 8606223364.
33737 { $as_echo "$as_me:$LINENO: checking size of long long" >&5
33738 $as_echo_n "checking size of long long... " >&6; }
33739 if test "${ac_cv_sizeof_long_long+set}" = set; then
33740 $as_echo_n "(cached) " >&6
33742 if test "$cross_compiling" = yes; then
33743 # Depending upon the size, compute the lo and hi bounds.
33744 cat >conftest.
$ac_ext <<_ACEOF
33747 cat confdefs.h
>>conftest.
$ac_ext
33748 cat >>conftest.
$ac_ext <<_ACEOF
33749 /* end confdefs.h. */
33750 $ac_includes_default
33754 static int test_array [1 - 2 * !(((long int) (sizeof (long long))) >= 0)];
33761 rm -f conftest.
$ac_objext
33762 if { (ac_try
="$ac_compile"
33763 case "(($ac_try" in
33764 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
33765 *) ac_try_echo=$ac_try;;
33767 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
33768 $as_echo "$ac_try_echo") >&5
33769 (eval "$ac_compile") 2>conftest.er1
33771 grep -v '^ *+' conftest.er1 >conftest.err
33773 cat conftest.err >&5
33774 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
33775 (exit $ac_status); } && {
33776 test -z "$ac_c_werror_flag" ||
33777 test ! -s conftest.err
33778 } && test -s conftest.$ac_objext; then
33781 cat >conftest.$ac_ext <<_ACEOF
33784 cat confdefs.h >>conftest.$ac_ext
33785 cat >>conftest.$ac_ext <<_ACEOF
33786 /* end confdefs.h. */
33787 $ac_includes_default
33791 static int test_array [1 - 2 * !(((long int) (sizeof (long long))) <= $ac_mid)];
33798 rm -f conftest.$ac_objext
33799 if { (ac_try="$ac_compile"
33800 case "(($ac_try" in
33801 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
33802 *) ac_try_echo
=$ac_try;;
33804 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
33805 $as_echo "$ac_try_echo") >&5
33806 (eval "$ac_compile") 2>conftest.er1
33808 grep -v '^ *+' conftest.er1
>conftest.err
33810 cat conftest.err
>&5
33811 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
33812 (exit $ac_status); } && {
33813 test -z "$ac_c_werror_flag" ||
33814 test ! -s conftest.err
33815 } && test -s conftest.
$ac_objext; then
33816 ac_hi
=$ac_mid; break
33818 $as_echo "$as_me: failed program was:" >&5
33819 sed 's/^/| /' conftest.
$ac_ext >&5
33821 ac_lo
=`expr $ac_mid + 1`
33822 if test $ac_lo -le $ac_mid; then
33826 ac_mid
=`expr 2 '*' $ac_mid + 1`
33829 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
33832 $as_echo "$as_me: failed program was:" >&5
33833 sed 's/^/| /' conftest.
$ac_ext >&5
33835 cat >conftest.
$ac_ext <<_ACEOF
33838 cat confdefs.h
>>conftest.
$ac_ext
33839 cat >>conftest.
$ac_ext <<_ACEOF
33840 /* end confdefs.h. */
33841 $ac_includes_default
33845 static int test_array [1 - 2 * !(((long int) (sizeof (long long))) < 0)];
33852 rm -f conftest.
$ac_objext
33853 if { (ac_try
="$ac_compile"
33854 case "(($ac_try" in
33855 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
33856 *) ac_try_echo=$ac_try;;
33858 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
33859 $as_echo "$ac_try_echo") >&5
33860 (eval "$ac_compile") 2>conftest.er1
33862 grep -v '^ *+' conftest.er1 >conftest.err
33864 cat conftest.err >&5
33865 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
33866 (exit $ac_status); } && {
33867 test -z "$ac_c_werror_flag" ||
33868 test ! -s conftest.err
33869 } && test -s conftest.$ac_objext; then
33872 cat >conftest.$ac_ext <<_ACEOF
33875 cat confdefs.h >>conftest.$ac_ext
33876 cat >>conftest.$ac_ext <<_ACEOF
33877 /* end confdefs.h. */
33878 $ac_includes_default
33882 static int test_array [1 - 2 * !(((long int) (sizeof (long long))) >= $ac_mid)];
33889 rm -f conftest.$ac_objext
33890 if { (ac_try="$ac_compile"
33891 case "(($ac_try" in
33892 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
33893 *) ac_try_echo
=$ac_try;;
33895 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
33896 $as_echo "$ac_try_echo") >&5
33897 (eval "$ac_compile") 2>conftest.er1
33899 grep -v '^ *+' conftest.er1
>conftest.err
33901 cat conftest.err
>&5
33902 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
33903 (exit $ac_status); } && {
33904 test -z "$ac_c_werror_flag" ||
33905 test ! -s conftest.err
33906 } && test -s conftest.
$ac_objext; then
33907 ac_lo
=$ac_mid; break
33909 $as_echo "$as_me: failed program was:" >&5
33910 sed 's/^/| /' conftest.
$ac_ext >&5
33912 ac_hi
=`expr '(' $ac_mid ')' - 1`
33913 if test $ac_mid -le $ac_hi; then
33917 ac_mid
=`expr 2 '*' $ac_mid`
33920 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
33923 $as_echo "$as_me: failed program was:" >&5
33924 sed 's/^/| /' conftest.
$ac_ext >&5
33929 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
33932 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
33933 # Binary search between lo and hi bounds.
33934 while test "x$ac_lo" != "x$ac_hi"; do
33935 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
33936 cat >conftest.
$ac_ext <<_ACEOF
33939 cat confdefs.h
>>conftest.
$ac_ext
33940 cat >>conftest.
$ac_ext <<_ACEOF
33941 /* end confdefs.h. */
33942 $ac_includes_default
33946 static int test_array [1 - 2 * !(((long int) (sizeof (long long))) <= $ac_mid)];
33953 rm -f conftest.
$ac_objext
33954 if { (ac_try
="$ac_compile"
33955 case "(($ac_try" in
33956 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
33957 *) ac_try_echo=$ac_try;;
33959 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
33960 $as_echo "$ac_try_echo") >&5
33961 (eval "$ac_compile") 2>conftest.er1
33963 grep -v '^ *+' conftest.er1 >conftest.err
33965 cat conftest.err >&5
33966 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
33967 (exit $ac_status); } && {
33968 test -z "$ac_c_werror_flag" ||
33969 test ! -s conftest.err
33970 } && test -s conftest.$ac_objext; then
33973 $as_echo "$as_me: failed program was:" >&5
33974 sed 's/^/| /' conftest.$ac_ext >&5
33976 ac_lo=`expr '(' $ac_mid ')' + 1`
33979 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33982 ?*) ac_cv_sizeof_long_long=$ac_lo;;
33983 '') if test "$ac_cv_type_long_long" = yes; then
33984 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
33985 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
33986 { { $as_echo "$as_me:$LINENO: error
: cannot compute sizeof
(long long
)
33987 See \
`config.log' for more details." >&5
33988 $as_echo "$as_me: error: cannot compute sizeof (long long)
33989 See \`config.log
' for more details." >&2;}
33990 { (exit 77); exit 77; }; }; }
33992 ac_cv_sizeof_long_long=0
33996 cat >conftest.$ac_ext <<_ACEOF
33999 cat confdefs.h >>conftest.$ac_ext
34000 cat >>conftest.$ac_ext <<_ACEOF
34001 /* end confdefs.h. */
34002 $ac_includes_default
34003 static long int longval () { return (long int) (sizeof (long long)); }
34004 static unsigned long int ulongval () { return (long int) (sizeof (long long)); }
34006 #include <stdlib.h>
34011 FILE *f = fopen ("conftest.val", "w");
34014 if (((long int) (sizeof (long long))) < 0)
34016 long int i = longval ();
34017 if (i != ((long int) (sizeof (long long))))
34019 fprintf (f, "%ld", i);
34023 unsigned long int i = ulongval ();
34024 if (i != ((long int) (sizeof (long long))))
34026 fprintf (f, "%lu", i);
34028 /* Do not output a trailing newline, as this causes \r\n confusion
34029 on some platforms. */
34030 return ferror (f) || fclose (f) != 0;
34036 rm -f conftest$ac_exeext
34037 if { (ac_try="$ac_link"
34038 case "(($ac_try" in
34039 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34040 *) ac_try_echo=$ac_try;;
34042 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
34043 $as_echo "$ac_try_echo") >&5
34044 (eval "$ac_link") 2>&5
34046 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
34047 (exit $ac_status); } && { ac_try='.
/conftest
$ac_exeext'
34048 { (case "(($ac_try" in
34049 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34050 *) ac_try_echo=$ac_try;;
34052 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
34053 $as_echo "$ac_try_echo") >&5
34054 (eval "$ac_try") 2>&5
34056 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
34057 (exit $ac_status); }; }; then
34058 ac_cv_sizeof_long_long=`cat conftest.val`
34060 $as_echo "$as_me: program exited with status $ac_status" >&5
34061 $as_echo "$as_me: failed program was:" >&5
34062 sed 's
/^
/|
/' conftest.$ac_ext >&5
34064 ( exit $ac_status )
34065 if test "$ac_cv_type_long_long" = yes; then
34066 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
34067 $as_echo "$as_me: error
: in \
`$ac_pwd':" >&2;}
34068 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
34069 See \`config.log
' for more details." >&5
34070 $as_echo "$as_me: error: cannot compute sizeof (long long)
34071 See \`config.log' for more details.
" >&2;}
34072 { (exit 77); exit 77; }; }; }
34074 ac_cv_sizeof_long_long=0
34077 rm -rf conftest.dSYM
34078 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
34082 { $as_echo "$as_me:$LINENO: result
: $ac_cv_sizeof_long_long" >&5
34083 $as_echo "$ac_cv_sizeof_long_long" >&6; }
34087 cat >>confdefs.h <<_ACEOF
34088 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
34092 { $as_echo "$as_me:$LINENO: checking
for uniquely sized long long
" >&5
34093 $as_echo_n "checking
for uniquely sized long long...
" >&6; }
34094 if test "${ccvs_cv_unique_int_type_long_long+set}" = set; then
34095 $as_echo_n "(cached
) " >&6
34097 if set |grep ^ccvs_cv_unique_int_type_ \
34098 |grep "($ac_cv_sizeof_long_long)" >/dev/null ; then
34099 ccvs_cv_unique_int_type_long_long=no
34101 ccvs_cv_unique_int_type_long_long=yes\($ac_cv_sizeof_long_long\)
34104 { $as_echo "$as_me:$LINENO: result
: $ccvs_cv_unique_int_type_long_long" >&5
34105 $as_echo "$ccvs_cv_unique_int_type_long_long" >&6; }
34106 if test $ccvs_cv_unique_int_type_long_long != no ; then
34108 cat >>confdefs.h <<\_ACEOF
34109 #define UNIQUE_INT_TYPE_LONG_LONG 1
34114 # The cast to long int works around a bug in the HP C Compiler
34115 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
34116 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
34117 # This bug is HP SR number 8606223364.
34118 { $as_echo "$as_me:$LINENO: checking size of size_t
" >&5
34119 $as_echo_n "checking size of size_t...
" >&6; }
34120 if test "${ac_cv_sizeof_size_t+set}" = set; then
34121 $as_echo_n "(cached
) " >&6
34123 if test "$cross_compiling" = yes; then
34124 # Depending upon the size, compute the lo and hi bounds.
34125 cat >conftest.$ac_ext <<_ACEOF
34128 cat confdefs.h >>conftest.$ac_ext
34129 cat >>conftest.$ac_ext <<_ACEOF
34130 /* end confdefs.h. */
34131 $ac_includes_default
34135 static int test_array [1 - 2 * !(((long int) (sizeof (size_t))) >= 0)];
34142 rm -f conftest.$ac_objext
34143 if { (ac_try="$ac_compile"
34144 case "(($ac_try" in
34145 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34146 *) ac_try_echo=$ac_try;;
34148 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
34149 $as_echo "$ac_try_echo") >&5
34150 (eval "$ac_compile") 2>conftest.er1
34152 grep -v '^ *+' conftest.er1 >conftest.err
34154 cat conftest.err >&5
34155 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
34156 (exit $ac_status); } && {
34157 test -z "$ac_c_werror_flag" ||
34158 test ! -s conftest.err
34159 } && test -s conftest.$ac_objext; then
34162 cat >conftest.$ac_ext <<_ACEOF
34165 cat confdefs.h >>conftest.$ac_ext
34166 cat >>conftest.$ac_ext <<_ACEOF
34167 /* end confdefs.h. */
34168 $ac_includes_default
34172 static int test_array [1 - 2 * !(((long int) (sizeof (size_t))) <= $ac_mid)];
34179 rm -f conftest.$ac_objext
34180 if { (ac_try="$ac_compile"
34181 case "(($ac_try" in
34182 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34183 *) ac_try_echo=$ac_try;;
34185 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
34186 $as_echo "$ac_try_echo") >&5
34187 (eval "$ac_compile") 2>conftest.er1
34189 grep -v '^ *+' conftest.er1 >conftest.err
34191 cat conftest.err >&5
34192 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
34193 (exit $ac_status); } && {
34194 test -z "$ac_c_werror_flag" ||
34195 test ! -s conftest.err
34196 } && test -s conftest.$ac_objext; then
34197 ac_hi=$ac_mid; break
34199 $as_echo "$as_me: failed program was
:" >&5
34200 sed 's/^/| /' conftest.$ac_ext >&5
34202 ac_lo=`expr $ac_mid + 1`
34203 if test $ac_lo -le $ac_mid; then
34207 ac_mid=`expr 2 '*' $ac_mid + 1`
34210 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34213 $as_echo "$as_me: failed program was
:" >&5
34214 sed 's/^/| /' conftest.$ac_ext >&5
34216 cat >conftest.$ac_ext <<_ACEOF
34219 cat confdefs.h >>conftest.$ac_ext
34220 cat >>conftest.$ac_ext <<_ACEOF
34221 /* end confdefs.h. */
34222 $ac_includes_default
34226 static int test_array [1 - 2 * !(((long int) (sizeof (size_t))) < 0)];
34233 rm -f conftest.$ac_objext
34234 if { (ac_try="$ac_compile"
34235 case "(($ac_try" in
34236 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34237 *) ac_try_echo=$ac_try;;
34239 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
34240 $as_echo "$ac_try_echo") >&5
34241 (eval "$ac_compile") 2>conftest.er1
34243 grep -v '^ *+' conftest.er1 >conftest.err
34245 cat conftest.err >&5
34246 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
34247 (exit $ac_status); } && {
34248 test -z "$ac_c_werror_flag" ||
34249 test ! -s conftest.err
34250 } && test -s conftest.$ac_objext; then
34253 cat >conftest.$ac_ext <<_ACEOF
34256 cat confdefs.h >>conftest.$ac_ext
34257 cat >>conftest.$ac_ext <<_ACEOF
34258 /* end confdefs.h. */
34259 $ac_includes_default
34263 static int test_array [1 - 2 * !(((long int) (sizeof (size_t))) >= $ac_mid)];
34270 rm -f conftest.$ac_objext
34271 if { (ac_try="$ac_compile"
34272 case "(($ac_try" in
34273 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34274 *) ac_try_echo=$ac_try;;
34276 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
34277 $as_echo "$ac_try_echo") >&5
34278 (eval "$ac_compile") 2>conftest.er1
34280 grep -v '^ *+' conftest.er1 >conftest.err
34282 cat conftest.err >&5
34283 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
34284 (exit $ac_status); } && {
34285 test -z "$ac_c_werror_flag" ||
34286 test ! -s conftest.err
34287 } && test -s conftest.$ac_objext; then
34288 ac_lo=$ac_mid; break
34290 $as_echo "$as_me: failed program was
:" >&5
34291 sed 's/^/| /' conftest.$ac_ext >&5
34293 ac_hi=`expr '(' $ac_mid ')' - 1`
34294 if test $ac_mid -le $ac_hi; then
34298 ac_mid=`expr 2 '*' $ac_mid`
34301 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34304 $as_echo "$as_me: failed program was
:" >&5
34305 sed 's/^/| /' conftest.$ac_ext >&5
34310 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34313 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34314 # Binary search between lo and hi bounds.
34315 while test "x
$ac_lo" != "x
$ac_hi"; do
34316 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
34317 cat >conftest.$ac_ext <<_ACEOF
34320 cat confdefs.h >>conftest.$ac_ext
34321 cat >>conftest.$ac_ext <<_ACEOF
34322 /* end confdefs.h. */
34323 $ac_includes_default
34327 static int test_array [1 - 2 * !(((long int) (sizeof (size_t))) <= $ac_mid)];
34334 rm -f conftest.$ac_objext
34335 if { (ac_try="$ac_compile"
34336 case "(($ac_try" in
34337 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34338 *) ac_try_echo=$ac_try;;
34340 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
34341 $as_echo "$ac_try_echo") >&5
34342 (eval "$ac_compile") 2>conftest.er1
34344 grep -v '^ *+' conftest.er1 >conftest.err
34346 cat conftest.err >&5
34347 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
34348 (exit $ac_status); } && {
34349 test -z "$ac_c_werror_flag" ||
34350 test ! -s conftest.err
34351 } && test -s conftest.$ac_objext; then
34354 $as_echo "$as_me: failed program was
:" >&5
34355 sed 's/^/| /' conftest.$ac_ext >&5
34357 ac_lo=`expr '(' $ac_mid ')' + 1`
34360 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34363 ?*) ac_cv_sizeof_size_t=$ac_lo;;
34364 '') if test "$ac_cv_type_size_t" = yes; then
34365 { { $as_echo "$as_me:$LINENO: error
: in \
`$ac_pwd':" >&5
34366 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
34367 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (size_t)
34368 See \`config.log' for more details.
" >&5
34369 $as_echo "$as_me: error
: cannot compute sizeof
(size_t
)
34370 See \
`config.log' for more details." >&2;}
34371 { (exit 77); exit 77; }; }; }
34373 ac_cv_sizeof_size_t=0
34377 cat >conftest.$ac_ext <<_ACEOF
34380 cat confdefs.h >>conftest.$ac_ext
34381 cat >>conftest.$ac_ext <<_ACEOF
34382 /* end confdefs.h. */
34383 $ac_includes_default
34384 static long int longval () { return (long int) (sizeof (size_t)); }
34385 static unsigned long int ulongval () { return (long int) (sizeof (size_t)); }
34387 #include <stdlib.h>
34392 FILE *f = fopen ("conftest.val", "w");
34395 if (((long int) (sizeof (size_t))) < 0)
34397 long int i = longval ();
34398 if (i != ((long int) (sizeof (size_t))))
34400 fprintf (f, "%ld", i);
34404 unsigned long int i = ulongval ();
34405 if (i != ((long int) (sizeof (size_t))))
34407 fprintf (f, "%lu", i);
34409 /* Do not output a trailing newline, as this causes \r\n confusion
34410 on some platforms. */
34411 return ferror (f) || fclose (f) != 0;
34417 rm -f conftest$ac_exeext
34418 if { (ac_try="$ac_link"
34419 case "(($ac_try" in
34420 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
34421 *) ac_try_echo
=$ac_try;;
34423 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
34424 $as_echo "$ac_try_echo") >&5
34425 (eval "$ac_link") 2>&5
34427 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
34428 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
34429 { (case "(($ac_try" in
34430 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
34431 *) ac_try_echo=$ac_try;;
34433 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
34434 $as_echo "$ac_try_echo") >&5
34435 (eval "$ac_try") 2>&5
34437 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
34438 (exit $ac_status); }; }; then
34439 ac_cv_sizeof_size_t=`cat conftest.val
`
34441 $as_echo "$as_me: program exited with status $ac_status" >&5
34442 $as_echo "$as_me: failed program was:" >&5
34443 sed 's/^/| /' conftest.$ac_ext >&5
34445 ( exit $ac_status )
34446 if test "$ac_cv_type_size_t" = yes; then
34447 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
34448 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
34449 { { $as_echo "$as_me:$LINENO: error
: cannot compute sizeof
(size_t
)
34450 See \
`config.log' for more details." >&5
34451 $as_echo "$as_me: error: cannot compute sizeof (size_t)
34452 See \`config.log
' for more details." >&2;}
34453 { (exit 77); exit 77; }; }; }
34455 ac_cv_sizeof_size_t=0
34458 rm -rf conftest.dSYM
34459 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
34463 { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_size_t" >&5
34464 $as_echo "$ac_cv_sizeof_size_t" >&6; }
34468 cat >>confdefs.h <<_ACEOF
34469 #define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
34473 { $as_echo "$as_me:$LINENO: checking for uniquely sized size_t" >&5
34474 $as_echo_n "checking for uniquely sized size_t... " >&6; }
34475 if test "${ccvs_cv_unique_int_type_size_t+set}" = set; then
34476 $as_echo_n "(cached) " >&6
34478 if set |grep ^ccvs_cv_unique_int_type_ \
34479 |grep "($ac_cv_sizeof_size_t)" >/dev/null ; then
34480 ccvs_cv_unique_int_type_size_t=no
34482 ccvs_cv_unique_int_type_size_t=yes\($ac_cv_sizeof_size_t\)
34485 { $as_echo "$as_me:$LINENO: result: $ccvs_cv_unique_int_type_size_t" >&5
34486 $as_echo "$ccvs_cv_unique_int_type_size_t" >&6; }
34487 if test $ccvs_cv_unique_int_type_size_t != no ; then
34489 cat >>confdefs.h <<\_ACEOF
34490 #define UNIQUE_INT_TYPE_SIZE_T 1
34494 # The cast to long int works around a bug in the HP C Compiler
34495 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
34496 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
34497 # This bug is HP SR number 8606223364.
34498 { $as_echo "$as_me:$LINENO: checking size of ptrdiff_t" >&5
34499 $as_echo_n "checking size of ptrdiff_t... " >&6; }
34500 if test "${ac_cv_sizeof_ptrdiff_t+set}" = set; then
34501 $as_echo_n "(cached) " >&6
34503 if test "$cross_compiling" = yes; then
34504 # Depending upon the size, compute the lo and hi bounds.
34505 cat >conftest.
$ac_ext <<_ACEOF
34508 cat confdefs.h
>>conftest.
$ac_ext
34509 cat >>conftest.
$ac_ext <<_ACEOF
34510 /* end confdefs.h. */
34511 $ac_includes_default
34515 static int test_array [1 - 2 * !(((long int) (sizeof (ptrdiff_t))) >= 0)];
34522 rm -f conftest.
$ac_objext
34523 if { (ac_try
="$ac_compile"
34524 case "(($ac_try" in
34525 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
34526 *) ac_try_echo=$ac_try;;
34528 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
34529 $as_echo "$ac_try_echo") >&5
34530 (eval "$ac_compile") 2>conftest.er1
34532 grep -v '^ *+' conftest.er1 >conftest.err
34534 cat conftest.err >&5
34535 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
34536 (exit $ac_status); } && {
34537 test -z "$ac_c_werror_flag" ||
34538 test ! -s conftest.err
34539 } && test -s conftest.$ac_objext; then
34542 cat >conftest.$ac_ext <<_ACEOF
34545 cat confdefs.h >>conftest.$ac_ext
34546 cat >>conftest.$ac_ext <<_ACEOF
34547 /* end confdefs.h. */
34548 $ac_includes_default
34552 static int test_array [1 - 2 * !(((long int) (sizeof (ptrdiff_t))) <= $ac_mid)];
34559 rm -f conftest.$ac_objext
34560 if { (ac_try="$ac_compile"
34561 case "(($ac_try" in
34562 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
34563 *) ac_try_echo
=$ac_try;;
34565 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
34566 $as_echo "$ac_try_echo") >&5
34567 (eval "$ac_compile") 2>conftest.er1
34569 grep -v '^ *+' conftest.er1
>conftest.err
34571 cat conftest.err
>&5
34572 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
34573 (exit $ac_status); } && {
34574 test -z "$ac_c_werror_flag" ||
34575 test ! -s conftest.err
34576 } && test -s conftest.
$ac_objext; then
34577 ac_hi
=$ac_mid; break
34579 $as_echo "$as_me: failed program was:" >&5
34580 sed 's/^/| /' conftest.
$ac_ext >&5
34582 ac_lo
=`expr $ac_mid + 1`
34583 if test $ac_lo -le $ac_mid; then
34587 ac_mid
=`expr 2 '*' $ac_mid + 1`
34590 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
34593 $as_echo "$as_me: failed program was:" >&5
34594 sed 's/^/| /' conftest.
$ac_ext >&5
34596 cat >conftest.
$ac_ext <<_ACEOF
34599 cat confdefs.h
>>conftest.
$ac_ext
34600 cat >>conftest.
$ac_ext <<_ACEOF
34601 /* end confdefs.h. */
34602 $ac_includes_default
34606 static int test_array [1 - 2 * !(((long int) (sizeof (ptrdiff_t))) < 0)];
34613 rm -f conftest.
$ac_objext
34614 if { (ac_try
="$ac_compile"
34615 case "(($ac_try" in
34616 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
34617 *) ac_try_echo=$ac_try;;
34619 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
34620 $as_echo "$ac_try_echo") >&5
34621 (eval "$ac_compile") 2>conftest.er1
34623 grep -v '^ *+' conftest.er1 >conftest.err
34625 cat conftest.err >&5
34626 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
34627 (exit $ac_status); } && {
34628 test -z "$ac_c_werror_flag" ||
34629 test ! -s conftest.err
34630 } && test -s conftest.$ac_objext; then
34633 cat >conftest.$ac_ext <<_ACEOF
34636 cat confdefs.h >>conftest.$ac_ext
34637 cat >>conftest.$ac_ext <<_ACEOF
34638 /* end confdefs.h. */
34639 $ac_includes_default
34643 static int test_array [1 - 2 * !(((long int) (sizeof (ptrdiff_t))) >= $ac_mid)];
34650 rm -f conftest.$ac_objext
34651 if { (ac_try="$ac_compile"
34652 case "(($ac_try" in
34653 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
34654 *) ac_try_echo
=$ac_try;;
34656 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
34657 $as_echo "$ac_try_echo") >&5
34658 (eval "$ac_compile") 2>conftest.er1
34660 grep -v '^ *+' conftest.er1
>conftest.err
34662 cat conftest.err
>&5
34663 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
34664 (exit $ac_status); } && {
34665 test -z "$ac_c_werror_flag" ||
34666 test ! -s conftest.err
34667 } && test -s conftest.
$ac_objext; then
34668 ac_lo
=$ac_mid; break
34670 $as_echo "$as_me: failed program was:" >&5
34671 sed 's/^/| /' conftest.
$ac_ext >&5
34673 ac_hi
=`expr '(' $ac_mid ')' - 1`
34674 if test $ac_mid -le $ac_hi; then
34678 ac_mid
=`expr 2 '*' $ac_mid`
34681 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
34684 $as_echo "$as_me: failed program was:" >&5
34685 sed 's/^/| /' conftest.
$ac_ext >&5
34690 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
34693 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
34694 # Binary search between lo and hi bounds.
34695 while test "x$ac_lo" != "x$ac_hi"; do
34696 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
34697 cat >conftest.
$ac_ext <<_ACEOF
34700 cat confdefs.h
>>conftest.
$ac_ext
34701 cat >>conftest.
$ac_ext <<_ACEOF
34702 /* end confdefs.h. */
34703 $ac_includes_default
34707 static int test_array [1 - 2 * !(((long int) (sizeof (ptrdiff_t))) <= $ac_mid)];
34714 rm -f conftest.
$ac_objext
34715 if { (ac_try
="$ac_compile"
34716 case "(($ac_try" in
34717 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
34718 *) ac_try_echo=$ac_try;;
34720 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
34721 $as_echo "$ac_try_echo") >&5
34722 (eval "$ac_compile") 2>conftest.er1
34724 grep -v '^ *+' conftest.er1 >conftest.err
34726 cat conftest.err >&5
34727 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
34728 (exit $ac_status); } && {
34729 test -z "$ac_c_werror_flag" ||
34730 test ! -s conftest.err
34731 } && test -s conftest.$ac_objext; then
34734 $as_echo "$as_me: failed program was:" >&5
34735 sed 's/^/| /' conftest.$ac_ext >&5
34737 ac_lo=`expr '(' $ac_mid ')' + 1`
34740 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34743 ?*) ac_cv_sizeof_ptrdiff_t=$ac_lo;;
34744 '') if test "$ac_cv_type_ptrdiff_t" = yes; then
34745 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
34746 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
34747 { { $as_echo "$as_me:$LINENO: error
: cannot compute sizeof
(ptrdiff_t
)
34748 See \
`config.log' for more details." >&5
34749 $as_echo "$as_me: error: cannot compute sizeof (ptrdiff_t)
34750 See \`config.log
' for more details." >&2;}
34751 { (exit 77); exit 77; }; }; }
34753 ac_cv_sizeof_ptrdiff_t=0
34757 cat >conftest.$ac_ext <<_ACEOF
34760 cat confdefs.h >>conftest.$ac_ext
34761 cat >>conftest.$ac_ext <<_ACEOF
34762 /* end confdefs.h. */
34763 $ac_includes_default
34764 static long int longval () { return (long int) (sizeof (ptrdiff_t)); }
34765 static unsigned long int ulongval () { return (long int) (sizeof (ptrdiff_t)); }
34767 #include <stdlib.h>
34772 FILE *f = fopen ("conftest.val", "w");
34775 if (((long int) (sizeof (ptrdiff_t))) < 0)
34777 long int i = longval ();
34778 if (i != ((long int) (sizeof (ptrdiff_t))))
34780 fprintf (f, "%ld", i);
34784 unsigned long int i = ulongval ();
34785 if (i != ((long int) (sizeof (ptrdiff_t))))
34787 fprintf (f, "%lu", i);
34789 /* Do not output a trailing newline, as this causes \r\n confusion
34790 on some platforms. */
34791 return ferror (f) || fclose (f) != 0;
34797 rm -f conftest$ac_exeext
34798 if { (ac_try="$ac_link"
34799 case "(($ac_try" in
34800 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34801 *) ac_try_echo=$ac_try;;
34803 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
34804 $as_echo "$ac_try_echo") >&5
34805 (eval "$ac_link") 2>&5
34807 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
34808 (exit $ac_status); } && { ac_try='.
/conftest
$ac_exeext'
34809 { (case "(($ac_try" in
34810 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34811 *) ac_try_echo=$ac_try;;
34813 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
34814 $as_echo "$ac_try_echo") >&5
34815 (eval "$ac_try") 2>&5
34817 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
34818 (exit $ac_status); }; }; then
34819 ac_cv_sizeof_ptrdiff_t=`cat conftest.val`
34821 $as_echo "$as_me: program exited with status $ac_status" >&5
34822 $as_echo "$as_me: failed program was:" >&5
34823 sed 's
/^
/|
/' conftest.$ac_ext >&5
34825 ( exit $ac_status )
34826 if test "$ac_cv_type_ptrdiff_t" = yes; then
34827 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
34828 $as_echo "$as_me: error
: in \
`$ac_pwd':" >&2;}
34829 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (ptrdiff_t)
34830 See \`config.log
' for more details." >&5
34831 $as_echo "$as_me: error: cannot compute sizeof (ptrdiff_t)
34832 See \`config.log' for more details.
" >&2;}
34833 { (exit 77); exit 77; }; }; }
34835 ac_cv_sizeof_ptrdiff_t=0
34838 rm -rf conftest.dSYM
34839 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
34843 { $as_echo "$as_me:$LINENO: result
: $ac_cv_sizeof_ptrdiff_t" >&5
34844 $as_echo "$ac_cv_sizeof_ptrdiff_t" >&6; }
34848 cat >>confdefs.h <<_ACEOF
34849 #define SIZEOF_PTRDIFF_T $ac_cv_sizeof_ptrdiff_t
34853 { $as_echo "$as_me:$LINENO: checking
for uniquely sized ptrdiff_t
" >&5
34854 $as_echo_n "checking
for uniquely sized ptrdiff_t...
" >&6; }
34855 if test "${ccvs_cv_unique_int_type_ptrdiff_t+set}" = set; then
34856 $as_echo_n "(cached
) " >&6
34858 if set |grep ^ccvs_cv_unique_int_type_ \
34859 |grep "($ac_cv_sizeof_ptrdiff_t)" >/dev/null ; then
34860 ccvs_cv_unique_int_type_ptrdiff_t=no
34862 ccvs_cv_unique_int_type_ptrdiff_t=yes\($ac_cv_sizeof_ptrdiff_t\)
34865 { $as_echo "$as_me:$LINENO: result
: $ccvs_cv_unique_int_type_ptrdiff_t" >&5
34866 $as_echo "$ccvs_cv_unique_int_type_ptrdiff_t" >&6; }
34867 if test $ccvs_cv_unique_int_type_ptrdiff_t != no ; then
34869 cat >>confdefs.h <<\_ACEOF
34870 #define UNIQUE_INT_TYPE_PTRDIFF_T 1
34874 if test $gt_cv_c_wint_t != no; then
34875 # The cast to long int works around a bug in the HP C Compiler
34876 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
34877 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
34878 # This bug is HP SR number 8606223364.
34879 { $as_echo "$as_me:$LINENO: checking size of wint_t
" >&5
34880 $as_echo_n "checking size of wint_t...
" >&6; }
34881 if test "${ac_cv_sizeof_wint_t+set}" = set; then
34882 $as_echo_n "(cached
) " >&6
34884 if test "$cross_compiling" = yes; then
34885 # Depending upon the size, compute the lo and hi bounds.
34886 cat >conftest.$ac_ext <<_ACEOF
34889 cat confdefs.h >>conftest.$ac_ext
34890 cat >>conftest.$ac_ext <<_ACEOF
34891 /* end confdefs.h. */
34899 static int test_array [1 - 2 * !(((long int) (sizeof (wint_t))) >= 0)];
34906 rm -f conftest.$ac_objext
34907 if { (ac_try="$ac_compile"
34908 case "(($ac_try" in
34909 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34910 *) ac_try_echo=$ac_try;;
34912 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
34913 $as_echo "$ac_try_echo") >&5
34914 (eval "$ac_compile") 2>conftest.er1
34916 grep -v '^ *+' conftest.er1 >conftest.err
34918 cat conftest.err >&5
34919 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
34920 (exit $ac_status); } && {
34921 test -z "$ac_c_werror_flag" ||
34922 test ! -s conftest.err
34923 } && test -s conftest.$ac_objext; then
34926 cat >conftest.$ac_ext <<_ACEOF
34929 cat confdefs.h >>conftest.$ac_ext
34930 cat >>conftest.$ac_ext <<_ACEOF
34931 /* end confdefs.h. */
34939 static int test_array [1 - 2 * !(((long int) (sizeof (wint_t))) <= $ac_mid)];
34946 rm -f conftest.$ac_objext
34947 if { (ac_try="$ac_compile"
34948 case "(($ac_try" in
34949 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34950 *) ac_try_echo=$ac_try;;
34952 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
34953 $as_echo "$ac_try_echo") >&5
34954 (eval "$ac_compile") 2>conftest.er1
34956 grep -v '^ *+' conftest.er1 >conftest.err
34958 cat conftest.err >&5
34959 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
34960 (exit $ac_status); } && {
34961 test -z "$ac_c_werror_flag" ||
34962 test ! -s conftest.err
34963 } && test -s conftest.$ac_objext; then
34964 ac_hi=$ac_mid; break
34966 $as_echo "$as_me: failed program was
:" >&5
34967 sed 's/^/| /' conftest.$ac_ext >&5
34969 ac_lo=`expr $ac_mid + 1`
34970 if test $ac_lo -le $ac_mid; then
34974 ac_mid=`expr 2 '*' $ac_mid + 1`
34977 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34980 $as_echo "$as_me: failed program was
:" >&5
34981 sed 's/^/| /' conftest.$ac_ext >&5
34983 cat >conftest.$ac_ext <<_ACEOF
34986 cat confdefs.h >>conftest.$ac_ext
34987 cat >>conftest.$ac_ext <<_ACEOF
34988 /* end confdefs.h. */
34996 static int test_array [1 - 2 * !(((long int) (sizeof (wint_t))) < 0)];
35003 rm -f conftest.$ac_objext
35004 if { (ac_try="$ac_compile"
35005 case "(($ac_try" in
35006 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35007 *) ac_try_echo=$ac_try;;
35009 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
35010 $as_echo "$ac_try_echo") >&5
35011 (eval "$ac_compile") 2>conftest.er1
35013 grep -v '^ *+' conftest.er1 >conftest.err
35015 cat conftest.err >&5
35016 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
35017 (exit $ac_status); } && {
35018 test -z "$ac_c_werror_flag" ||
35019 test ! -s conftest.err
35020 } && test -s conftest.$ac_objext; then
35023 cat >conftest.$ac_ext <<_ACEOF
35026 cat confdefs.h >>conftest.$ac_ext
35027 cat >>conftest.$ac_ext <<_ACEOF
35028 /* end confdefs.h. */
35036 static int test_array [1 - 2 * !(((long int) (sizeof (wint_t))) >= $ac_mid)];
35043 rm -f conftest.$ac_objext
35044 if { (ac_try="$ac_compile"
35045 case "(($ac_try" in
35046 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35047 *) ac_try_echo=$ac_try;;
35049 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
35050 $as_echo "$ac_try_echo") >&5
35051 (eval "$ac_compile") 2>conftest.er1
35053 grep -v '^ *+' conftest.er1 >conftest.err
35055 cat conftest.err >&5
35056 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
35057 (exit $ac_status); } && {
35058 test -z "$ac_c_werror_flag" ||
35059 test ! -s conftest.err
35060 } && test -s conftest.$ac_objext; then
35061 ac_lo=$ac_mid; break
35063 $as_echo "$as_me: failed program was
:" >&5
35064 sed 's/^/| /' conftest.$ac_ext >&5
35066 ac_hi=`expr '(' $ac_mid ')' - 1`
35067 if test $ac_mid -le $ac_hi; then
35071 ac_mid=`expr 2 '*' $ac_mid`
35074 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35077 $as_echo "$as_me: failed program was
:" >&5
35078 sed 's/^/| /' conftest.$ac_ext >&5
35083 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35086 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35087 # Binary search between lo and hi bounds.
35088 while test "x
$ac_lo" != "x
$ac_hi"; do
35089 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
35090 cat >conftest.$ac_ext <<_ACEOF
35093 cat confdefs.h >>conftest.$ac_ext
35094 cat >>conftest.$ac_ext <<_ACEOF
35095 /* end confdefs.h. */
35103 static int test_array [1 - 2 * !(((long int) (sizeof (wint_t))) <= $ac_mid)];
35110 rm -f conftest.$ac_objext
35111 if { (ac_try="$ac_compile"
35112 case "(($ac_try" in
35113 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35114 *) ac_try_echo=$ac_try;;
35116 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
35117 $as_echo "$ac_try_echo") >&5
35118 (eval "$ac_compile") 2>conftest.er1
35120 grep -v '^ *+' conftest.er1 >conftest.err
35122 cat conftest.err >&5
35123 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
35124 (exit $ac_status); } && {
35125 test -z "$ac_c_werror_flag" ||
35126 test ! -s conftest.err
35127 } && test -s conftest.$ac_objext; then
35130 $as_echo "$as_me: failed program was
:" >&5
35131 sed 's/^/| /' conftest.$ac_ext >&5
35133 ac_lo=`expr '(' $ac_mid ')' + 1`
35136 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35139 ?*) ac_cv_sizeof_wint_t=$ac_lo;;
35140 '') if test "$ac_cv_type_wint_t" = yes; then
35141 { { $as_echo "$as_me:$LINENO: error
: in \
`$ac_pwd':" >&5
35142 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
35143 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (wint_t)
35144 See \`config.log' for more details.
" >&5
35145 $as_echo "$as_me: error
: cannot compute sizeof
(wint_t
)
35146 See \
`config.log' for more details." >&2;}
35147 { (exit 77); exit 77; }; }; }
35149 ac_cv_sizeof_wint_t=0
35153 cat >conftest.$ac_ext <<_ACEOF
35156 cat confdefs.h >>conftest.$ac_ext
35157 cat >>conftest.$ac_ext <<_ACEOF
35158 /* end confdefs.h. */
35163 static long int longval () { return (long int) (sizeof (wint_t)); }
35164 static unsigned long int ulongval () { return (long int) (sizeof (wint_t)); }
35166 #include <stdlib.h>
35171 FILE *f = fopen ("conftest.val", "w");
35174 if (((long int) (sizeof (wint_t))) < 0)
35176 long int i = longval ();
35177 if (i != ((long int) (sizeof (wint_t))))
35179 fprintf (f, "%ld", i);
35183 unsigned long int i = ulongval ();
35184 if (i != ((long int) (sizeof (wint_t))))
35186 fprintf (f, "%lu", i);
35188 /* Do not output a trailing newline, as this causes \r\n confusion
35189 on some platforms. */
35190 return ferror (f) || fclose (f) != 0;
35196 rm -f conftest$ac_exeext
35197 if { (ac_try="$ac_link"
35198 case "(($ac_try" in
35199 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
35200 *) ac_try_echo
=$ac_try;;
35202 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
35203 $as_echo "$ac_try_echo") >&5
35204 (eval "$ac_link") 2>&5
35206 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
35207 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
35208 { (case "(($ac_try" in
35209 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
35210 *) ac_try_echo=$ac_try;;
35212 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
35213 $as_echo "$ac_try_echo") >&5
35214 (eval "$ac_try") 2>&5
35216 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
35217 (exit $ac_status); }; }; then
35218 ac_cv_sizeof_wint_t=`cat conftest.val
`
35220 $as_echo "$as_me: program exited with status $ac_status" >&5
35221 $as_echo "$as_me: failed program was:" >&5
35222 sed 's/^/| /' conftest.$ac_ext >&5
35224 ( exit $ac_status )
35225 if test "$ac_cv_type_wint_t" = yes; then
35226 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
35227 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
35228 { { $as_echo "$as_me:$LINENO: error
: cannot compute sizeof
(wint_t
)
35229 See \
`config.log' for more details." >&5
35230 $as_echo "$as_me: error: cannot compute sizeof (wint_t)
35231 See \`config.log
' for more details." >&2;}
35232 { (exit 77); exit 77; }; }; }
35234 ac_cv_sizeof_wint_t=0
35237 rm -rf conftest.dSYM
35238 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
35242 { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_wint_t" >&5
35243 $as_echo "$ac_cv_sizeof_wint_t" >&6; }
35247 cat >>confdefs.h <<_ACEOF
35248 #define SIZEOF_WINT_T $ac_cv_sizeof_wint_t
35252 { $as_echo "$as_me:$LINENO: checking for uniquely sized wint_t" >&5
35253 $as_echo_n "checking for uniquely sized wint_t... " >&6; }
35254 if test "${ccvs_cv_unique_int_type_wint_t+set}" = set; then
35255 $as_echo_n "(cached) " >&6
35257 if set |grep ^ccvs_cv_unique_int_type_ \
35258 |grep "($ac_cv_sizeof_wint_t)" >/dev/null ; then
35259 ccvs_cv_unique_int_type_wint_t=no
35261 ccvs_cv_unique_int_type_wint_t=yes\($ac_cv_sizeof_wint_t\)
35264 { $as_echo "$as_me:$LINENO: result: $ccvs_cv_unique_int_type_wint_t" >&5
35265 $as_echo "$ccvs_cv_unique_int_type_wint_t" >&6; }
35266 if test $ccvs_cv_unique_int_type_wint_t != no ; then
35268 cat >>confdefs.h <<\_ACEOF
35269 #define UNIQUE_INT_TYPE_WINT_T 1
35274 if test $gt_cv_c_intmax_t != no; then
35275 # The cast to long int works around a bug in the HP C Compiler
35276 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
35277 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
35278 # This bug is HP SR number 8606223364.
35279 { $as_echo "$as_me:$LINENO: checking size of intmax_t" >&5
35280 $as_echo_n "checking size of intmax_t... " >&6; }
35281 if test "${ac_cv_sizeof_intmax_t+set}" = set; then
35282 $as_echo_n "(cached) " >&6
35284 if test "$cross_compiling" = yes; then
35285 # Depending upon the size, compute the lo and hi bounds.
35286 cat >conftest.
$ac_ext <<_ACEOF
35289 cat confdefs.h
>>conftest.
$ac_ext
35290 cat >>conftest.
$ac_ext <<_ACEOF
35291 /* end confdefs.h. */
35293 #ifdef HAVE_INTTYPES_H
35294 #include <inttypes.h>
35296 #ifdef HAVE_STDINT_H
35297 #include <stdint.h>
35305 static int test_array [1 - 2 * !(((long int) (sizeof (intmax_t))) >= 0)];
35312 rm -f conftest.
$ac_objext
35313 if { (ac_try
="$ac_compile"
35314 case "(($ac_try" in
35315 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
35316 *) ac_try_echo=$ac_try;;
35318 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
35319 $as_echo "$ac_try_echo") >&5
35320 (eval "$ac_compile") 2>conftest.er1
35322 grep -v '^ *+' conftest.er1 >conftest.err
35324 cat conftest.err >&5
35325 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
35326 (exit $ac_status); } && {
35327 test -z "$ac_c_werror_flag" ||
35328 test ! -s conftest.err
35329 } && test -s conftest.$ac_objext; then
35332 cat >conftest.$ac_ext <<_ACEOF
35335 cat confdefs.h >>conftest.$ac_ext
35336 cat >>conftest.$ac_ext <<_ACEOF
35337 /* end confdefs.h. */
35339 #ifdef HAVE_INTTYPES_H
35340 #include <inttypes.h>
35342 #ifdef HAVE_STDINT_H
35343 #include <stdint.h>
35351 static int test_array [1 - 2 * !(((long int) (sizeof (intmax_t))) <= $ac_mid)];
35358 rm -f conftest.$ac_objext
35359 if { (ac_try="$ac_compile"
35360 case "(($ac_try" in
35361 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
35362 *) ac_try_echo
=$ac_try;;
35364 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
35365 $as_echo "$ac_try_echo") >&5
35366 (eval "$ac_compile") 2>conftest.er1
35368 grep -v '^ *+' conftest.er1
>conftest.err
35370 cat conftest.err
>&5
35371 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
35372 (exit $ac_status); } && {
35373 test -z "$ac_c_werror_flag" ||
35374 test ! -s conftest.err
35375 } && test -s conftest.
$ac_objext; then
35376 ac_hi
=$ac_mid; break
35378 $as_echo "$as_me: failed program was:" >&5
35379 sed 's/^/| /' conftest.
$ac_ext >&5
35381 ac_lo
=`expr $ac_mid + 1`
35382 if test $ac_lo -le $ac_mid; then
35386 ac_mid
=`expr 2 '*' $ac_mid + 1`
35389 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
35392 $as_echo "$as_me: failed program was:" >&5
35393 sed 's/^/| /' conftest.
$ac_ext >&5
35395 cat >conftest.
$ac_ext <<_ACEOF
35398 cat confdefs.h
>>conftest.
$ac_ext
35399 cat >>conftest.
$ac_ext <<_ACEOF
35400 /* end confdefs.h. */
35402 #ifdef HAVE_INTTYPES_H
35403 #include <inttypes.h>
35405 #ifdef HAVE_STDINT_H
35406 #include <stdint.h>
35414 static int test_array [1 - 2 * !(((long int) (sizeof (intmax_t))) < 0)];
35421 rm -f conftest.
$ac_objext
35422 if { (ac_try
="$ac_compile"
35423 case "(($ac_try" in
35424 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
35425 *) ac_try_echo=$ac_try;;
35427 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
35428 $as_echo "$ac_try_echo") >&5
35429 (eval "$ac_compile") 2>conftest.er1
35431 grep -v '^ *+' conftest.er1 >conftest.err
35433 cat conftest.err >&5
35434 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
35435 (exit $ac_status); } && {
35436 test -z "$ac_c_werror_flag" ||
35437 test ! -s conftest.err
35438 } && test -s conftest.$ac_objext; then
35441 cat >conftest.$ac_ext <<_ACEOF
35444 cat confdefs.h >>conftest.$ac_ext
35445 cat >>conftest.$ac_ext <<_ACEOF
35446 /* end confdefs.h. */
35448 #ifdef HAVE_INTTYPES_H
35449 #include <inttypes.h>
35451 #ifdef HAVE_STDINT_H
35452 #include <stdint.h>
35460 static int test_array [1 - 2 * !(((long int) (sizeof (intmax_t))) >= $ac_mid)];
35467 rm -f conftest.$ac_objext
35468 if { (ac_try="$ac_compile"
35469 case "(($ac_try" in
35470 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
35471 *) ac_try_echo
=$ac_try;;
35473 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
35474 $as_echo "$ac_try_echo") >&5
35475 (eval "$ac_compile") 2>conftest.er1
35477 grep -v '^ *+' conftest.er1
>conftest.err
35479 cat conftest.err
>&5
35480 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
35481 (exit $ac_status); } && {
35482 test -z "$ac_c_werror_flag" ||
35483 test ! -s conftest.err
35484 } && test -s conftest.
$ac_objext; then
35485 ac_lo
=$ac_mid; break
35487 $as_echo "$as_me: failed program was:" >&5
35488 sed 's/^/| /' conftest.
$ac_ext >&5
35490 ac_hi
=`expr '(' $ac_mid ')' - 1`
35491 if test $ac_mid -le $ac_hi; then
35495 ac_mid
=`expr 2 '*' $ac_mid`
35498 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
35501 $as_echo "$as_me: failed program was:" >&5
35502 sed 's/^/| /' conftest.
$ac_ext >&5
35507 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
35510 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
35511 # Binary search between lo and hi bounds.
35512 while test "x$ac_lo" != "x$ac_hi"; do
35513 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
35514 cat >conftest.
$ac_ext <<_ACEOF
35517 cat confdefs.h
>>conftest.
$ac_ext
35518 cat >>conftest.
$ac_ext <<_ACEOF
35519 /* end confdefs.h. */
35521 #ifdef HAVE_INTTYPES_H
35522 #include <inttypes.h>
35524 #ifdef HAVE_STDINT_H
35525 #include <stdint.h>
35533 static int test_array [1 - 2 * !(((long int) (sizeof (intmax_t))) <= $ac_mid)];
35540 rm -f conftest.
$ac_objext
35541 if { (ac_try
="$ac_compile"
35542 case "(($ac_try" in
35543 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
35544 *) ac_try_echo=$ac_try;;
35546 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
35547 $as_echo "$ac_try_echo") >&5
35548 (eval "$ac_compile") 2>conftest.er1
35550 grep -v '^ *+' conftest.er1 >conftest.err
35552 cat conftest.err >&5
35553 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
35554 (exit $ac_status); } && {
35555 test -z "$ac_c_werror_flag" ||
35556 test ! -s conftest.err
35557 } && test -s conftest.$ac_objext; then
35560 $as_echo "$as_me: failed program was:" >&5
35561 sed 's/^/| /' conftest.$ac_ext >&5
35563 ac_lo=`expr '(' $ac_mid ')' + 1`
35566 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35569 ?*) ac_cv_sizeof_intmax_t=$ac_lo;;
35570 '') if test "$ac_cv_type_intmax_t" = yes; then
35571 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
35572 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
35573 { { $as_echo "$as_me:$LINENO: error
: cannot compute sizeof
(intmax_t
)
35574 See \
`config.log' for more details." >&5
35575 $as_echo "$as_me: error: cannot compute sizeof (intmax_t)
35576 See \`config.log
' for more details." >&2;}
35577 { (exit 77); exit 77; }; }; }
35579 ac_cv_sizeof_intmax_t=0
35583 cat >conftest.$ac_ext <<_ACEOF
35586 cat confdefs.h >>conftest.$ac_ext
35587 cat >>conftest.$ac_ext <<_ACEOF
35588 /* end confdefs.h. */
35590 #ifdef HAVE_INTTYPES_H
35591 #include <inttypes.h>
35593 #ifdef HAVE_STDINT_H
35594 #include <stdint.h>
35599 static long int longval () { return (long int) (sizeof (intmax_t)); }
35600 static unsigned long int ulongval () { return (long int) (sizeof (intmax_t)); }
35602 #include <stdlib.h>
35607 FILE *f = fopen ("conftest.val", "w");
35610 if (((long int) (sizeof (intmax_t))) < 0)
35612 long int i = longval ();
35613 if (i != ((long int) (sizeof (intmax_t))))
35615 fprintf (f, "%ld", i);
35619 unsigned long int i = ulongval ();
35620 if (i != ((long int) (sizeof (intmax_t))))
35622 fprintf (f, "%lu", i);
35624 /* Do not output a trailing newline, as this causes \r\n confusion
35625 on some platforms. */
35626 return ferror (f) || fclose (f) != 0;
35632 rm -f conftest$ac_exeext
35633 if { (ac_try="$ac_link"
35634 case "(($ac_try" in
35635 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35636 *) ac_try_echo=$ac_try;;
35638 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
35639 $as_echo "$ac_try_echo") >&5
35640 (eval "$ac_link") 2>&5
35642 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
35643 (exit $ac_status); } && { ac_try='.
/conftest
$ac_exeext'
35644 { (case "(($ac_try" in
35645 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35646 *) ac_try_echo=$ac_try;;
35648 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
35649 $as_echo "$ac_try_echo") >&5
35650 (eval "$ac_try") 2>&5
35652 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
35653 (exit $ac_status); }; }; then
35654 ac_cv_sizeof_intmax_t=`cat conftest.val`
35656 $as_echo "$as_me: program exited with status $ac_status" >&5
35657 $as_echo "$as_me: failed program was:" >&5
35658 sed 's
/^
/|
/' conftest.$ac_ext >&5
35660 ( exit $ac_status )
35661 if test "$ac_cv_type_intmax_t" = yes; then
35662 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
35663 $as_echo "$as_me: error
: in \
`$ac_pwd':" >&2;}
35664 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (intmax_t)
35665 See \`config.log
' for more details." >&5
35666 $as_echo "$as_me: error: cannot compute sizeof (intmax_t)
35667 See \`config.log' for more details.
" >&2;}
35668 { (exit 77); exit 77; }; }; }
35670 ac_cv_sizeof_intmax_t=0
35673 rm -rf conftest.dSYM
35674 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
35678 { $as_echo "$as_me:$LINENO: result
: $ac_cv_sizeof_intmax_t" >&5
35679 $as_echo "$ac_cv_sizeof_intmax_t" >&6; }
35683 cat >>confdefs.h <<_ACEOF
35684 #define SIZEOF_INTMAX_T $ac_cv_sizeof_intmax_t
35688 { $as_echo "$as_me:$LINENO: checking
for uniquely sized intmax_t
" >&5
35689 $as_echo_n "checking
for uniquely sized intmax_t...
" >&6; }
35690 if test "${ccvs_cv_unique_int_type_intmax_t+set}" = set; then
35691 $as_echo_n "(cached
) " >&6
35693 if set |grep ^ccvs_cv_unique_int_type_ \
35694 |grep "($ac_cv_sizeof_intmax_t)" >/dev/null ; then
35695 ccvs_cv_unique_int_type_intmax_t=no
35697 ccvs_cv_unique_int_type_intmax_t=yes\($ac_cv_sizeof_intmax_t\)
35700 { $as_echo "$as_me:$LINENO: result
: $ccvs_cv_unique_int_type_intmax_t" >&5
35701 $as_echo "$ccvs_cv_unique_int_type_intmax_t" >&6; }
35702 if test $ccvs_cv_unique_int_type_intmax_t != no ; then
35704 cat >>confdefs.h <<\_ACEOF
35705 #define UNIQUE_INT_TYPE_INTMAX_T 1
35711 # The cast to long int works around a bug in the HP C Compiler
35712 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
35713 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
35714 # This bug is HP SR number 8606223364.
35715 { $as_echo "$as_me:$LINENO: checking size of float
" >&5
35716 $as_echo_n "checking size of float...
" >&6; }
35717 if test "${ac_cv_sizeof_float+set}" = set; then
35718 $as_echo_n "(cached
) " >&6
35720 if test "$cross_compiling" = yes; then
35721 # Depending upon the size, compute the lo and hi bounds.
35722 cat >conftest.$ac_ext <<_ACEOF
35725 cat confdefs.h >>conftest.$ac_ext
35726 cat >>conftest.$ac_ext <<_ACEOF
35727 /* end confdefs.h. */
35728 $ac_includes_default
35732 static int test_array [1 - 2 * !(((long int) (sizeof (float))) >= 0)];
35739 rm -f conftest.$ac_objext
35740 if { (ac_try="$ac_compile"
35741 case "(($ac_try" in
35742 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35743 *) ac_try_echo=$ac_try;;
35745 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
35746 $as_echo "$ac_try_echo") >&5
35747 (eval "$ac_compile") 2>conftest.er1
35749 grep -v '^ *+' conftest.er1 >conftest.err
35751 cat conftest.err >&5
35752 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
35753 (exit $ac_status); } && {
35754 test -z "$ac_c_werror_flag" ||
35755 test ! -s conftest.err
35756 } && test -s conftest.$ac_objext; then
35759 cat >conftest.$ac_ext <<_ACEOF
35762 cat confdefs.h >>conftest.$ac_ext
35763 cat >>conftest.$ac_ext <<_ACEOF
35764 /* end confdefs.h. */
35765 $ac_includes_default
35769 static int test_array [1 - 2 * !(((long int) (sizeof (float))) <= $ac_mid)];
35776 rm -f conftest.$ac_objext
35777 if { (ac_try="$ac_compile"
35778 case "(($ac_try" in
35779 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35780 *) ac_try_echo=$ac_try;;
35782 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
35783 $as_echo "$ac_try_echo") >&5
35784 (eval "$ac_compile") 2>conftest.er1
35786 grep -v '^ *+' conftest.er1 >conftest.err
35788 cat conftest.err >&5
35789 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
35790 (exit $ac_status); } && {
35791 test -z "$ac_c_werror_flag" ||
35792 test ! -s conftest.err
35793 } && test -s conftest.$ac_objext; then
35794 ac_hi=$ac_mid; break
35796 $as_echo "$as_me: failed program was
:" >&5
35797 sed 's/^/| /' conftest.$ac_ext >&5
35799 ac_lo=`expr $ac_mid + 1`
35800 if test $ac_lo -le $ac_mid; then
35804 ac_mid=`expr 2 '*' $ac_mid + 1`
35807 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35810 $as_echo "$as_me: failed program was
:" >&5
35811 sed 's/^/| /' conftest.$ac_ext >&5
35813 cat >conftest.$ac_ext <<_ACEOF
35816 cat confdefs.h >>conftest.$ac_ext
35817 cat >>conftest.$ac_ext <<_ACEOF
35818 /* end confdefs.h. */
35819 $ac_includes_default
35823 static int test_array [1 - 2 * !(((long int) (sizeof (float))) < 0)];
35830 rm -f conftest.$ac_objext
35831 if { (ac_try="$ac_compile"
35832 case "(($ac_try" in
35833 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35834 *) ac_try_echo=$ac_try;;
35836 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
35837 $as_echo "$ac_try_echo") >&5
35838 (eval "$ac_compile") 2>conftest.er1
35840 grep -v '^ *+' conftest.er1 >conftest.err
35842 cat conftest.err >&5
35843 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
35844 (exit $ac_status); } && {
35845 test -z "$ac_c_werror_flag" ||
35846 test ! -s conftest.err
35847 } && test -s conftest.$ac_objext; then
35850 cat >conftest.$ac_ext <<_ACEOF
35853 cat confdefs.h >>conftest.$ac_ext
35854 cat >>conftest.$ac_ext <<_ACEOF
35855 /* end confdefs.h. */
35856 $ac_includes_default
35860 static int test_array [1 - 2 * !(((long int) (sizeof (float))) >= $ac_mid)];
35867 rm -f conftest.$ac_objext
35868 if { (ac_try="$ac_compile"
35869 case "(($ac_try" in
35870 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35871 *) ac_try_echo=$ac_try;;
35873 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
35874 $as_echo "$ac_try_echo") >&5
35875 (eval "$ac_compile") 2>conftest.er1
35877 grep -v '^ *+' conftest.er1 >conftest.err
35879 cat conftest.err >&5
35880 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
35881 (exit $ac_status); } && {
35882 test -z "$ac_c_werror_flag" ||
35883 test ! -s conftest.err
35884 } && test -s conftest.$ac_objext; then
35885 ac_lo=$ac_mid; break
35887 $as_echo "$as_me: failed program was
:" >&5
35888 sed 's/^/| /' conftest.$ac_ext >&5
35890 ac_hi=`expr '(' $ac_mid ')' - 1`
35891 if test $ac_mid -le $ac_hi; then
35895 ac_mid=`expr 2 '*' $ac_mid`
35898 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35901 $as_echo "$as_me: failed program was
:" >&5
35902 sed 's/^/| /' conftest.$ac_ext >&5
35907 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35910 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35911 # Binary search between lo and hi bounds.
35912 while test "x
$ac_lo" != "x
$ac_hi"; do
35913 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
35914 cat >conftest.$ac_ext <<_ACEOF
35917 cat confdefs.h >>conftest.$ac_ext
35918 cat >>conftest.$ac_ext <<_ACEOF
35919 /* end confdefs.h. */
35920 $ac_includes_default
35924 static int test_array [1 - 2 * !(((long int) (sizeof (float))) <= $ac_mid)];
35931 rm -f conftest.$ac_objext
35932 if { (ac_try="$ac_compile"
35933 case "(($ac_try" in
35934 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35935 *) ac_try_echo=$ac_try;;
35937 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
35938 $as_echo "$ac_try_echo") >&5
35939 (eval "$ac_compile") 2>conftest.er1
35941 grep -v '^ *+' conftest.er1 >conftest.err
35943 cat conftest.err >&5
35944 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
35945 (exit $ac_status); } && {
35946 test -z "$ac_c_werror_flag" ||
35947 test ! -s conftest.err
35948 } && test -s conftest.$ac_objext; then
35951 $as_echo "$as_me: failed program was
:" >&5
35952 sed 's/^/| /' conftest.$ac_ext >&5
35954 ac_lo=`expr '(' $ac_mid ')' + 1`
35957 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35960 ?*) ac_cv_sizeof_float=$ac_lo;;
35961 '') if test "$ac_cv_type_float" = yes; then
35962 { { $as_echo "$as_me:$LINENO: error
: in \
`$ac_pwd':" >&5
35963 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
35964 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (float)
35965 See \`config.log' for more details.
" >&5
35966 $as_echo "$as_me: error
: cannot compute sizeof
(float
)
35967 See \
`config.log' for more details." >&2;}
35968 { (exit 77); exit 77; }; }; }
35970 ac_cv_sizeof_float=0
35974 cat >conftest.$ac_ext <<_ACEOF
35977 cat confdefs.h >>conftest.$ac_ext
35978 cat >>conftest.$ac_ext <<_ACEOF
35979 /* end confdefs.h. */
35980 $ac_includes_default
35981 static long int longval () { return (long int) (sizeof (float)); }
35982 static unsigned long int ulongval () { return (long int) (sizeof (float)); }
35984 #include <stdlib.h>
35989 FILE *f = fopen ("conftest.val", "w");
35992 if (((long int) (sizeof (float))) < 0)
35994 long int i = longval ();
35995 if (i != ((long int) (sizeof (float))))
35997 fprintf (f, "%ld", i);
36001 unsigned long int i = ulongval ();
36002 if (i != ((long int) (sizeof (float))))
36004 fprintf (f, "%lu", i);
36006 /* Do not output a trailing newline, as this causes \r\n confusion
36007 on some platforms. */
36008 return ferror (f) || fclose (f) != 0;
36014 rm -f conftest$ac_exeext
36015 if { (ac_try="$ac_link"
36016 case "(($ac_try" in
36017 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
36018 *) ac_try_echo
=$ac_try;;
36020 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
36021 $as_echo "$ac_try_echo") >&5
36022 (eval "$ac_link") 2>&5
36024 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
36025 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
36026 { (case "(($ac_try" in
36027 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
36028 *) ac_try_echo=$ac_try;;
36030 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
36031 $as_echo "$ac_try_echo") >&5
36032 (eval "$ac_try") 2>&5
36034 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
36035 (exit $ac_status); }; }; then
36036 ac_cv_sizeof_float=`cat conftest.val
`
36038 $as_echo "$as_me: program exited with status $ac_status" >&5
36039 $as_echo "$as_me: failed program was:" >&5
36040 sed 's/^/| /' conftest.$ac_ext >&5
36042 ( exit $ac_status )
36043 if test "$ac_cv_type_float" = yes; then
36044 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
36045 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
36046 { { $as_echo "$as_me:$LINENO: error
: cannot compute sizeof
(float
)
36047 See \
`config.log' for more details." >&5
36048 $as_echo "$as_me: error: cannot compute sizeof (float)
36049 See \`config.log
' for more details." >&2;}
36050 { (exit 77); exit 77; }; }; }
36052 ac_cv_sizeof_float=0
36055 rm -rf conftest.dSYM
36056 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
36060 { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_float" >&5
36061 $as_echo "$ac_cv_sizeof_float" >&6; }
36065 cat >>confdefs.h <<_ACEOF
36066 #define SIZEOF_FLOAT $ac_cv_sizeof_float
36070 { $as_echo "$as_me:$LINENO: checking for uniquely sized float" >&5
36071 $as_echo_n "checking for uniquely sized float... " >&6; }
36072 if test "${ccvs_cv_unique_float_type_float+set}" = set; then
36073 $as_echo_n "(cached) " >&6
36075 if set |grep ^ccvs_cv_unique_float_type_ \
36076 |grep "($ac_cv_sizeof_float)" >/dev/null ; then
36077 ccvs_cv_unique_float_type_float=no
36079 ccvs_cv_unique_float_type_float=yes\($ac_cv_sizeof_float\)
36082 { $as_echo "$as_me:$LINENO: result: $ccvs_cv_unique_float_type_float" >&5
36083 $as_echo "$ccvs_cv_unique_float_type_float" >&6; }
36084 if test $ccvs_cv_unique_float_type_float != no ; then
36086 cat >>confdefs.h <<\_ACEOF
36087 #define UNIQUE_FLOAT_TYPE_FLOAT 1
36091 # The cast to long int works around a bug in the HP C Compiler
36092 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
36093 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
36094 # This bug is HP SR number 8606223364.
36095 { $as_echo "$as_me:$LINENO: checking size of double" >&5
36096 $as_echo_n "checking size of double... " >&6; }
36097 if test "${ac_cv_sizeof_double+set}" = set; then
36098 $as_echo_n "(cached) " >&6
36100 if test "$cross_compiling" = yes; then
36101 # Depending upon the size, compute the lo and hi bounds.
36102 cat >conftest.
$ac_ext <<_ACEOF
36105 cat confdefs.h
>>conftest.
$ac_ext
36106 cat >>conftest.
$ac_ext <<_ACEOF
36107 /* end confdefs.h. */
36108 $ac_includes_default
36112 static int test_array [1 - 2 * !(((long int) (sizeof (double))) >= 0)];
36119 rm -f conftest.
$ac_objext
36120 if { (ac_try
="$ac_compile"
36121 case "(($ac_try" in
36122 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
36123 *) ac_try_echo=$ac_try;;
36125 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
36126 $as_echo "$ac_try_echo") >&5
36127 (eval "$ac_compile") 2>conftest.er1
36129 grep -v '^ *+' conftest.er1 >conftest.err
36131 cat conftest.err >&5
36132 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
36133 (exit $ac_status); } && {
36134 test -z "$ac_c_werror_flag" ||
36135 test ! -s conftest.err
36136 } && test -s conftest.$ac_objext; then
36139 cat >conftest.$ac_ext <<_ACEOF
36142 cat confdefs.h >>conftest.$ac_ext
36143 cat >>conftest.$ac_ext <<_ACEOF
36144 /* end confdefs.h. */
36145 $ac_includes_default
36149 static int test_array [1 - 2 * !(((long int) (sizeof (double))) <= $ac_mid)];
36156 rm -f conftest.$ac_objext
36157 if { (ac_try="$ac_compile"
36158 case "(($ac_try" in
36159 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
36160 *) ac_try_echo
=$ac_try;;
36162 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
36163 $as_echo "$ac_try_echo") >&5
36164 (eval "$ac_compile") 2>conftest.er1
36166 grep -v '^ *+' conftest.er1
>conftest.err
36168 cat conftest.err
>&5
36169 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
36170 (exit $ac_status); } && {
36171 test -z "$ac_c_werror_flag" ||
36172 test ! -s conftest.err
36173 } && test -s conftest.
$ac_objext; then
36174 ac_hi
=$ac_mid; break
36176 $as_echo "$as_me: failed program was:" >&5
36177 sed 's/^/| /' conftest.
$ac_ext >&5
36179 ac_lo
=`expr $ac_mid + 1`
36180 if test $ac_lo -le $ac_mid; then
36184 ac_mid
=`expr 2 '*' $ac_mid + 1`
36187 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
36190 $as_echo "$as_me: failed program was:" >&5
36191 sed 's/^/| /' conftest.
$ac_ext >&5
36193 cat >conftest.
$ac_ext <<_ACEOF
36196 cat confdefs.h
>>conftest.
$ac_ext
36197 cat >>conftest.
$ac_ext <<_ACEOF
36198 /* end confdefs.h. */
36199 $ac_includes_default
36203 static int test_array [1 - 2 * !(((long int) (sizeof (double))) < 0)];
36210 rm -f conftest.
$ac_objext
36211 if { (ac_try
="$ac_compile"
36212 case "(($ac_try" in
36213 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
36214 *) ac_try_echo=$ac_try;;
36216 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
36217 $as_echo "$ac_try_echo") >&5
36218 (eval "$ac_compile") 2>conftest.er1
36220 grep -v '^ *+' conftest.er1 >conftest.err
36222 cat conftest.err >&5
36223 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
36224 (exit $ac_status); } && {
36225 test -z "$ac_c_werror_flag" ||
36226 test ! -s conftest.err
36227 } && test -s conftest.$ac_objext; then
36230 cat >conftest.$ac_ext <<_ACEOF
36233 cat confdefs.h >>conftest.$ac_ext
36234 cat >>conftest.$ac_ext <<_ACEOF
36235 /* end confdefs.h. */
36236 $ac_includes_default
36240 static int test_array [1 - 2 * !(((long int) (sizeof (double))) >= $ac_mid)];
36247 rm -f conftest.$ac_objext
36248 if { (ac_try="$ac_compile"
36249 case "(($ac_try" in
36250 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
36251 *) ac_try_echo
=$ac_try;;
36253 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
36254 $as_echo "$ac_try_echo") >&5
36255 (eval "$ac_compile") 2>conftest.er1
36257 grep -v '^ *+' conftest.er1
>conftest.err
36259 cat conftest.err
>&5
36260 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
36261 (exit $ac_status); } && {
36262 test -z "$ac_c_werror_flag" ||
36263 test ! -s conftest.err
36264 } && test -s conftest.
$ac_objext; then
36265 ac_lo
=$ac_mid; break
36267 $as_echo "$as_me: failed program was:" >&5
36268 sed 's/^/| /' conftest.
$ac_ext >&5
36270 ac_hi
=`expr '(' $ac_mid ')' - 1`
36271 if test $ac_mid -le $ac_hi; then
36275 ac_mid
=`expr 2 '*' $ac_mid`
36278 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
36281 $as_echo "$as_me: failed program was:" >&5
36282 sed 's/^/| /' conftest.
$ac_ext >&5
36287 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
36290 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
36291 # Binary search between lo and hi bounds.
36292 while test "x$ac_lo" != "x$ac_hi"; do
36293 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
36294 cat >conftest.
$ac_ext <<_ACEOF
36297 cat confdefs.h
>>conftest.
$ac_ext
36298 cat >>conftest.
$ac_ext <<_ACEOF
36299 /* end confdefs.h. */
36300 $ac_includes_default
36304 static int test_array [1 - 2 * !(((long int) (sizeof (double))) <= $ac_mid)];
36311 rm -f conftest.
$ac_objext
36312 if { (ac_try
="$ac_compile"
36313 case "(($ac_try" in
36314 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
36315 *) ac_try_echo=$ac_try;;
36317 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
36318 $as_echo "$ac_try_echo") >&5
36319 (eval "$ac_compile") 2>conftest.er1
36321 grep -v '^ *+' conftest.er1 >conftest.err
36323 cat conftest.err >&5
36324 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
36325 (exit $ac_status); } && {
36326 test -z "$ac_c_werror_flag" ||
36327 test ! -s conftest.err
36328 } && test -s conftest.$ac_objext; then
36331 $as_echo "$as_me: failed program was:" >&5
36332 sed 's/^/| /' conftest.$ac_ext >&5
36334 ac_lo=`expr '(' $ac_mid ')' + 1`
36337 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36340 ?*) ac_cv_sizeof_double=$ac_lo;;
36341 '') if test "$ac_cv_type_double" = yes; then
36342 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
36343 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
36344 { { $as_echo "$as_me:$LINENO: error
: cannot compute sizeof
(double
)
36345 See \
`config.log' for more details." >&5
36346 $as_echo "$as_me: error: cannot compute sizeof (double)
36347 See \`config.log
' for more details." >&2;}
36348 { (exit 77); exit 77; }; }; }
36350 ac_cv_sizeof_double=0
36354 cat >conftest.$ac_ext <<_ACEOF
36357 cat confdefs.h >>conftest.$ac_ext
36358 cat >>conftest.$ac_ext <<_ACEOF
36359 /* end confdefs.h. */
36360 $ac_includes_default
36361 static long int longval () { return (long int) (sizeof (double)); }
36362 static unsigned long int ulongval () { return (long int) (sizeof (double)); }
36364 #include <stdlib.h>
36369 FILE *f = fopen ("conftest.val", "w");
36372 if (((long int) (sizeof (double))) < 0)
36374 long int i = longval ();
36375 if (i != ((long int) (sizeof (double))))
36377 fprintf (f, "%ld", i);
36381 unsigned long int i = ulongval ();
36382 if (i != ((long int) (sizeof (double))))
36384 fprintf (f, "%lu", i);
36386 /* Do not output a trailing newline, as this causes \r\n confusion
36387 on some platforms. */
36388 return ferror (f) || fclose (f) != 0;
36394 rm -f conftest$ac_exeext
36395 if { (ac_try="$ac_link"
36396 case "(($ac_try" in
36397 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36398 *) ac_try_echo=$ac_try;;
36400 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
36401 $as_echo "$ac_try_echo") >&5
36402 (eval "$ac_link") 2>&5
36404 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
36405 (exit $ac_status); } && { ac_try='.
/conftest
$ac_exeext'
36406 { (case "(($ac_try" in
36407 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36408 *) ac_try_echo=$ac_try;;
36410 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
36411 $as_echo "$ac_try_echo") >&5
36412 (eval "$ac_try") 2>&5
36414 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
36415 (exit $ac_status); }; }; then
36416 ac_cv_sizeof_double=`cat conftest.val`
36418 $as_echo "$as_me: program exited with status $ac_status" >&5
36419 $as_echo "$as_me: failed program was:" >&5
36420 sed 's
/^
/|
/' conftest.$ac_ext >&5
36422 ( exit $ac_status )
36423 if test "$ac_cv_type_double" = yes; then
36424 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
36425 $as_echo "$as_me: error
: in \
`$ac_pwd':" >&2;}
36426 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (double)
36427 See \`config.log
' for more details." >&5
36428 $as_echo "$as_me: error: cannot compute sizeof (double)
36429 See \`config.log' for more details.
" >&2;}
36430 { (exit 77); exit 77; }; }; }
36432 ac_cv_sizeof_double=0
36435 rm -rf conftest.dSYM
36436 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
36440 { $as_echo "$as_me:$LINENO: result
: $ac_cv_sizeof_double" >&5
36441 $as_echo "$ac_cv_sizeof_double" >&6; }
36445 cat >>confdefs.h <<_ACEOF
36446 #define SIZEOF_DOUBLE $ac_cv_sizeof_double
36450 { $as_echo "$as_me:$LINENO: checking
for uniquely sized double
" >&5
36451 $as_echo_n "checking
for uniquely sized double...
" >&6; }
36452 if test "${ccvs_cv_unique_float_type_double+set}" = set; then
36453 $as_echo_n "(cached
) " >&6
36455 if set |grep ^ccvs_cv_unique_float_type_ \
36456 |grep "($ac_cv_sizeof_double)" >/dev/null ; then
36457 ccvs_cv_unique_float_type_double=no
36459 ccvs_cv_unique_float_type_double=yes\($ac_cv_sizeof_double\)
36462 { $as_echo "$as_me:$LINENO: result
: $ccvs_cv_unique_float_type_double" >&5
36463 $as_echo "$ccvs_cv_unique_float_type_double" >&6; }
36464 if test $ccvs_cv_unique_float_type_double != no ; then
36466 cat >>confdefs.h <<\_ACEOF
36467 #define UNIQUE_FLOAT_TYPE_DOUBLE 1
36471 if test $gt_cv_c_long_double != no; then
36472 # The cast to long int works around a bug in the HP C Compiler
36473 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
36474 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
36475 # This bug is HP SR number 8606223364.
36476 { $as_echo "$as_me:$LINENO: checking size of long double
" >&5
36477 $as_echo_n "checking size of long double...
" >&6; }
36478 if test "${ac_cv_sizeof_long_double+set}" = set; then
36479 $as_echo_n "(cached
) " >&6
36481 if test "$cross_compiling" = yes; then
36482 # Depending upon the size, compute the lo and hi bounds.
36483 cat >conftest.$ac_ext <<_ACEOF
36486 cat confdefs.h >>conftest.$ac_ext
36487 cat >>conftest.$ac_ext <<_ACEOF
36488 /* end confdefs.h. */
36489 $ac_includes_default
36493 static int test_array [1 - 2 * !(((long int) (sizeof (long double))) >= 0)];
36500 rm -f conftest.$ac_objext
36501 if { (ac_try="$ac_compile"
36502 case "(($ac_try" in
36503 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36504 *) ac_try_echo=$ac_try;;
36506 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
36507 $as_echo "$ac_try_echo") >&5
36508 (eval "$ac_compile") 2>conftest.er1
36510 grep -v '^ *+' conftest.er1 >conftest.err
36512 cat conftest.err >&5
36513 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
36514 (exit $ac_status); } && {
36515 test -z "$ac_c_werror_flag" ||
36516 test ! -s conftest.err
36517 } && test -s conftest.$ac_objext; then
36520 cat >conftest.$ac_ext <<_ACEOF
36523 cat confdefs.h >>conftest.$ac_ext
36524 cat >>conftest.$ac_ext <<_ACEOF
36525 /* end confdefs.h. */
36526 $ac_includes_default
36530 static int test_array [1 - 2 * !(((long int) (sizeof (long double))) <= $ac_mid)];
36537 rm -f conftest.$ac_objext
36538 if { (ac_try="$ac_compile"
36539 case "(($ac_try" in
36540 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36541 *) ac_try_echo=$ac_try;;
36543 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
36544 $as_echo "$ac_try_echo") >&5
36545 (eval "$ac_compile") 2>conftest.er1
36547 grep -v '^ *+' conftest.er1 >conftest.err
36549 cat conftest.err >&5
36550 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
36551 (exit $ac_status); } && {
36552 test -z "$ac_c_werror_flag" ||
36553 test ! -s conftest.err
36554 } && test -s conftest.$ac_objext; then
36555 ac_hi=$ac_mid; break
36557 $as_echo "$as_me: failed program was
:" >&5
36558 sed 's/^/| /' conftest.$ac_ext >&5
36560 ac_lo=`expr $ac_mid + 1`
36561 if test $ac_lo -le $ac_mid; then
36565 ac_mid=`expr 2 '*' $ac_mid + 1`
36568 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36571 $as_echo "$as_me: failed program was
:" >&5
36572 sed 's/^/| /' conftest.$ac_ext >&5
36574 cat >conftest.$ac_ext <<_ACEOF
36577 cat confdefs.h >>conftest.$ac_ext
36578 cat >>conftest.$ac_ext <<_ACEOF
36579 /* end confdefs.h. */
36580 $ac_includes_default
36584 static int test_array [1 - 2 * !(((long int) (sizeof (long double))) < 0)];
36591 rm -f conftest.$ac_objext
36592 if { (ac_try="$ac_compile"
36593 case "(($ac_try" in
36594 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36595 *) ac_try_echo=$ac_try;;
36597 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
36598 $as_echo "$ac_try_echo") >&5
36599 (eval "$ac_compile") 2>conftest.er1
36601 grep -v '^ *+' conftest.er1 >conftest.err
36603 cat conftest.err >&5
36604 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
36605 (exit $ac_status); } && {
36606 test -z "$ac_c_werror_flag" ||
36607 test ! -s conftest.err
36608 } && test -s conftest.$ac_objext; then
36611 cat >conftest.$ac_ext <<_ACEOF
36614 cat confdefs.h >>conftest.$ac_ext
36615 cat >>conftest.$ac_ext <<_ACEOF
36616 /* end confdefs.h. */
36617 $ac_includes_default
36621 static int test_array [1 - 2 * !(((long int) (sizeof (long double))) >= $ac_mid)];
36628 rm -f conftest.$ac_objext
36629 if { (ac_try="$ac_compile"
36630 case "(($ac_try" in
36631 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36632 *) ac_try_echo=$ac_try;;
36634 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
36635 $as_echo "$ac_try_echo") >&5
36636 (eval "$ac_compile") 2>conftest.er1
36638 grep -v '^ *+' conftest.er1 >conftest.err
36640 cat conftest.err >&5
36641 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
36642 (exit $ac_status); } && {
36643 test -z "$ac_c_werror_flag" ||
36644 test ! -s conftest.err
36645 } && test -s conftest.$ac_objext; then
36646 ac_lo=$ac_mid; break
36648 $as_echo "$as_me: failed program was
:" >&5
36649 sed 's/^/| /' conftest.$ac_ext >&5
36651 ac_hi=`expr '(' $ac_mid ')' - 1`
36652 if test $ac_mid -le $ac_hi; then
36656 ac_mid=`expr 2 '*' $ac_mid`
36659 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36662 $as_echo "$as_me: failed program was
:" >&5
36663 sed 's/^/| /' conftest.$ac_ext >&5
36668 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36671 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36672 # Binary search between lo and hi bounds.
36673 while test "x
$ac_lo" != "x
$ac_hi"; do
36674 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
36675 cat >conftest.$ac_ext <<_ACEOF
36678 cat confdefs.h >>conftest.$ac_ext
36679 cat >>conftest.$ac_ext <<_ACEOF
36680 /* end confdefs.h. */
36681 $ac_includes_default
36685 static int test_array [1 - 2 * !(((long int) (sizeof (long double))) <= $ac_mid)];
36692 rm -f conftest.$ac_objext
36693 if { (ac_try="$ac_compile"
36694 case "(($ac_try" in
36695 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36696 *) ac_try_echo=$ac_try;;
36698 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
36699 $as_echo "$ac_try_echo") >&5
36700 (eval "$ac_compile") 2>conftest.er1
36702 grep -v '^ *+' conftest.er1 >conftest.err
36704 cat conftest.err >&5
36705 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
36706 (exit $ac_status); } && {
36707 test -z "$ac_c_werror_flag" ||
36708 test ! -s conftest.err
36709 } && test -s conftest.$ac_objext; then
36712 $as_echo "$as_me: failed program was
:" >&5
36713 sed 's/^/| /' conftest.$ac_ext >&5
36715 ac_lo=`expr '(' $ac_mid ')' + 1`
36718 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36721 ?*) ac_cv_sizeof_long_double=$ac_lo;;
36722 '') if test "$ac_cv_type_long_double" = yes; then
36723 { { $as_echo "$as_me:$LINENO: error
: in \
`$ac_pwd':" >&5
36724 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
36725 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (long double)
36726 See \`config.log' for more details.
" >&5
36727 $as_echo "$as_me: error
: cannot compute sizeof
(long double
)
36728 See \
`config.log' for more details." >&2;}
36729 { (exit 77); exit 77; }; }; }
36731 ac_cv_sizeof_long_double=0
36735 cat >conftest.$ac_ext <<_ACEOF
36738 cat confdefs.h >>conftest.$ac_ext
36739 cat >>conftest.$ac_ext <<_ACEOF
36740 /* end confdefs.h. */
36741 $ac_includes_default
36742 static long int longval () { return (long int) (sizeof (long double)); }
36743 static unsigned long int ulongval () { return (long int) (sizeof (long double)); }
36745 #include <stdlib.h>
36750 FILE *f = fopen ("conftest.val", "w");
36753 if (((long int) (sizeof (long double))) < 0)
36755 long int i = longval ();
36756 if (i != ((long int) (sizeof (long double))))
36758 fprintf (f, "%ld", i);
36762 unsigned long int i = ulongval ();
36763 if (i != ((long int) (sizeof (long double))))
36765 fprintf (f, "%lu", i);
36767 /* Do not output a trailing newline, as this causes \r\n confusion
36768 on some platforms. */
36769 return ferror (f) || fclose (f) != 0;
36775 rm -f conftest$ac_exeext
36776 if { (ac_try="$ac_link"
36777 case "(($ac_try" in
36778 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
36779 *) ac_try_echo
=$ac_try;;
36781 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
36782 $as_echo "$ac_try_echo") >&5
36783 (eval "$ac_link") 2>&5
36785 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
36786 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
36787 { (case "(($ac_try" in
36788 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
36789 *) ac_try_echo=$ac_try;;
36791 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
36792 $as_echo "$ac_try_echo") >&5
36793 (eval "$ac_try") 2>&5
36795 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
36796 (exit $ac_status); }; }; then
36797 ac_cv_sizeof_long_double=`cat conftest.val
`
36799 $as_echo "$as_me: program exited with status $ac_status" >&5
36800 $as_echo "$as_me: failed program was:" >&5
36801 sed 's/^/| /' conftest.$ac_ext >&5
36803 ( exit $ac_status )
36804 if test "$ac_cv_type_long_double" = yes; then
36805 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
36806 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
36807 { { $as_echo "$as_me:$LINENO: error
: cannot compute sizeof
(long double
)
36808 See \
`config.log' for more details." >&5
36809 $as_echo "$as_me: error: cannot compute sizeof (long double)
36810 See \`config.log
' for more details." >&2;}
36811 { (exit 77); exit 77; }; }; }
36813 ac_cv_sizeof_long_double=0
36816 rm -rf conftest.dSYM
36817 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
36821 { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_double" >&5
36822 $as_echo "$ac_cv_sizeof_long_double" >&6; }
36826 cat >>confdefs.h <<_ACEOF
36827 #define SIZEOF_LONG_DOUBLE $ac_cv_sizeof_long_double
36831 { $as_echo "$as_me:$LINENO: checking for uniquely sized long double" >&5
36832 $as_echo_n "checking for uniquely sized long double... " >&6; }
36833 if test "${ccvs_cv_unique_float_type_long_double+set}" = set; then
36834 $as_echo_n "(cached) " >&6
36836 if set |grep ^ccvs_cv_unique_float_type_ \
36837 |grep "($ac_cv_sizeof_long_double)" >/dev/null ; then
36838 ccvs_cv_unique_float_type_long_double=no
36840 ccvs_cv_unique_float_type_long_double=yes\($ac_cv_sizeof_long_double\)
36843 { $as_echo "$as_me:$LINENO: result: $ccvs_cv_unique_float_type_long_double" >&5
36844 $as_echo "$ccvs_cv_unique_float_type_long_double" >&6; }
36845 if test $ccvs_cv_unique_float_type_long_double != no ; then
36847 cat >>confdefs.h <<\_ACEOF
36848 #define UNIQUE_FLOAT_TYPE_LONG_DOUBLE 1
36856 cat >>confdefs.h <<\_ACEOF
36857 #define HAVE_STRCHR 1
36861 cat >>confdefs.h <<\_ACEOF
36862 #define HAVE_MEMCHR 1
36867 cat >>confdefs.h <<\_ACEOF
36868 #define REGEX_MALLOC 1
36872 cat >>confdefs.h <<\_ACEOF
36873 #define _REGEX_RE_COMP 1
36877 for ac_header in vfork.h
36879 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
36880 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
36881 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
36882 $as_echo_n "checking for $ac_header... " >&6; }
36883 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
36884 $as_echo_n "(cached) " >&6
36886 ac_res=`eval 'as_val
=${'$as_ac_Header'}
36887 $as_echo "$as_val"'`
36888 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
36889 $as_echo "$ac_res" >&6; }
36891 # Is the header compilable?
36892 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
36893 $as_echo_n "checking $ac_header usability... " >&6; }
36894 cat >conftest.$ac_ext <<_ACEOF
36897 cat confdefs.h >>conftest.$ac_ext
36898 cat >>conftest.$ac_ext <<_ACEOF
36899 /* end confdefs.h. */
36900 $ac_includes_default
36901 #include <$ac_header>
36903 rm -f conftest.$ac_objext
36904 if { (ac_try="$ac_compile"
36905 case "(($ac_try" in
36906 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36907 *) ac_try_echo=$ac_try;;
36909 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
36910 $as_echo "$ac_try_echo") >&5
36911 (eval "$ac_compile") 2>conftest.er1
36913 grep -v '^
*+' conftest.er1 >conftest.err
36915 cat conftest.err >&5
36916 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
36917 (exit $ac_status); } && {
36918 test -z "$ac_c_werror_flag" ||
36919 test ! -s conftest.err
36920 } && test -s conftest.$ac_objext; then
36921 ac_header_compiler=yes
36923 $as_echo "$as_me: failed program was:" >&5
36924 sed 's
/^
/|
/' conftest.$ac_ext >&5
36926 ac_header_compiler=no
36929 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36930 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
36931 $as_echo "$ac_header_compiler" >&6; }
36933 # Is the header present?
36934 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
36935 $as_echo_n "checking $ac_header presence... " >&6; }
36936 cat >conftest.$ac_ext <<_ACEOF
36939 cat confdefs.h >>conftest.$ac_ext
36940 cat >>conftest.$ac_ext <<_ACEOF
36941 /* end confdefs.h. */
36942 #include <$ac_header>
36944 if { (ac_try="$ac_cpp conftest.$ac_ext"
36945 case "(($ac_try" in
36946 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36947 *) ac_try_echo=$ac_try;;
36949 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
36950 $as_echo "$ac_try_echo") >&5
36951 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
36953 grep -v '^
*+' conftest.er1 >conftest.err
36955 cat conftest.err >&5
36956 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
36957 (exit $ac_status); } >/dev/null && {
36958 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
36959 test ! -s conftest.err
36961 ac_header_preproc=yes
36963 $as_echo "$as_me: failed program was:" >&5
36964 sed 's
/^
/|
/' conftest.$ac_ext >&5
36966 ac_header_preproc=no
36969 rm -f conftest.err conftest.$ac_ext
36970 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
36971 $as_echo "$ac_header_preproc" >&6; }
36973 # So? What about this header?
36974 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
36976 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
36977 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
36978 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result
" >&5
36979 $as_echo "$as_me: WARNING
: $ac_header: proceeding with the compiler
's result" >&2;}
36980 ac_header_preproc=yes
36983 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
36984 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
36985 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
36986 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
36987 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
36988 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
36989 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
36990 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
36991 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result
" >&5
36992 $as_echo "$as_me: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&2;}
36993 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
36994 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
36996 ## --------------------------------- ##
36997 ## Report this to bug-cvs@nongnu.org ##
36998 ## --------------------------------- ##
37000 ) | sed "s/^/$as_me: WARNING: /" >&2
37003 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
37004 $as_echo_n "checking for $ac_header... " >&6; }
37005 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
37006 $as_echo_n "(cached) " >&6
37008 eval "$as_ac_Header=\$ac_header_preproc"
37010 ac_res=`eval 'as_val
=${'$as_ac_Header'}
37011 $as_echo "$as_val"'`
37012 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
37013 $as_echo "$ac_res" >&6; }
37016 as_val=`eval 'as_val
=${'$as_ac_Header'}
37017 $as_echo "$as_val"'`
37018 if test "x$as_val" = x""yes; then
37019 cat >>confdefs.h <<_ACEOF
37020 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
37029 for ac_func in fork vfork
37031 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
37032 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
37033 $as_echo_n "checking for $ac_func... " >&6; }
37034 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
37035 $as_echo_n "(cached) " >&6
37037 cat >conftest.$ac_ext <<_ACEOF
37040 cat confdefs.h >>conftest.$ac_ext
37041 cat >>conftest.$ac_ext <<_ACEOF
37042 /* end confdefs.h. */
37043 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37044 For example, HP-UX 11i <limits.h> declares gettimeofday. */
37045 #define $ac_func innocuous_$ac_func
37047 /* System header to define __stub macros and hopefully few prototypes,
37048 which can conflict with char $ac_func (); below.
37049 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37050 <limits.h> exists even on freestanding compilers. */
37053 # include <limits.h>
37055 # include <assert.h>
37060 /* Override any GCC internal prototype to avoid an error.
37061 Use char because int might match the return type of a GCC
37062 builtin and then its argument prototype would still apply. */
37067 /* The GNU C library defines this for functions which it implements
37068 to always fail with ENOSYS. Some functions are actually named
37069 something starting with __ and the normal name is an alias. */
37070 #if defined __stub_$ac_func || defined __stub___$ac_func
37077 return $ac_func ();
37082 rm -f conftest.$ac_objext conftest$ac_exeext
37083 if { (ac_try="$ac_link"
37084 case "(($ac_try" in
37085 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37086 *) ac_try_echo=$ac_try;;
37088 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
37089 $as_echo "$ac_try_echo") >&5
37090 (eval "$ac_link") 2>conftest.er1
37092 grep -v '^
*+' conftest.er1 >conftest.err
37094 cat conftest.err >&5
37095 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
37096 (exit $ac_status); } && {
37097 test -z "$ac_c_werror_flag" ||
37098 test ! -s conftest.err
37099 } && test -s conftest$ac_exeext && {
37100 test "$cross_compiling" = yes ||
37101 $as_test_x conftest$ac_exeext
37103 eval "$as_ac_var=yes"
37105 $as_echo "$as_me: failed program was:" >&5
37106 sed 's
/^
/|
/' conftest.$ac_ext >&5
37108 eval "$as_ac_var=no"
37111 rm -rf conftest.dSYM
37112 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
37113 conftest$ac_exeext conftest.$ac_ext
37115 ac_res=`eval 'as_val
=${'$as_ac_var'}
37116 $as_echo "$as_val"'`
37117 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
37118 $as_echo "$ac_res" >&6; }
37119 as_val=`eval 'as_val
=${'$as_ac_var'}
37120 $as_echo "$as_val"'`
37121 if test "x$as_val" = x""yes; then
37122 cat >>confdefs.h <<_ACEOF
37123 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
37129 if test "x$ac_cv_func_fork" = xyes; then
37130 { $as_echo "$as_me:$LINENO: checking for working fork" >&5
37131 $as_echo_n "checking for working fork... " >&6; }
37132 if test "${ac_cv_func_fork_works+set}" = set; then
37133 $as_echo_n "(cached) " >&6
37135 if test "$cross_compiling" = yes; then
37136 ac_cv_func_fork_works=cross
37138 cat >conftest.$ac_ext <<_ACEOF
37141 cat confdefs.h >>conftest.$ac_ext
37142 cat >>conftest.$ac_ext <<_ACEOF
37143 /* end confdefs.h. */
37144 $ac_includes_default
37149 /* By Ruediger Kuhlmann. */
37150 return fork () < 0;
37156 rm -f conftest$ac_exeext
37157 if { (ac_try="$ac_link"
37158 case "(($ac_try" in
37159 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37160 *) ac_try_echo=$ac_try;;
37162 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
37163 $as_echo "$ac_try_echo") >&5
37164 (eval "$ac_link") 2>&5
37166 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
37167 (exit $ac_status); } && { ac_try='.
/conftest
$ac_exeext'
37168 { (case "(($ac_try" in
37169 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37170 *) ac_try_echo=$ac_try;;
37172 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
37173 $as_echo "$ac_try_echo") >&5
37174 (eval "$ac_try") 2>&5
37176 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
37177 (exit $ac_status); }; }; then
37178 ac_cv_func_fork_works=yes
37180 $as_echo "$as_me: program exited with status $ac_status" >&5
37181 $as_echo "$as_me: failed program was:" >&5
37182 sed 's
/^
/|
/' conftest.$ac_ext >&5
37184 ( exit $ac_status )
37185 ac_cv_func_fork_works=no
37187 rm -rf conftest.dSYM
37188 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
37193 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
37194 $as_echo "$ac_cv_func_fork_works" >&6; }
37197 ac_cv_func_fork_works=$ac_cv_func_fork
37199 if test "x$ac_cv_func_fork_works" = xcross; then
37201 *-*-amigaos* | *-*-msdosdjgpp*)
37202 # Override, as these systems have only a dummy fork() stub
37203 ac_cv_func_fork_works=no
37206 ac_cv_func_fork_works=yes
37209 { $as_echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
37210 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
37212 ac_cv_func_vfork_works=$ac_cv_func_vfork
37213 if test "x$ac_cv_func_vfork" = xyes; then
37214 { $as_echo "$as_me:$LINENO: checking for working vfork" >&5
37215 $as_echo_n "checking for working vfork... " >&6; }
37216 if test "${ac_cv_func_vfork_works+set}" = set; then
37217 $as_echo_n "(cached) " >&6
37219 if test "$cross_compiling" = yes; then
37220 ac_cv_func_vfork_works=cross
37222 cat >conftest.$ac_ext <<_ACEOF
37225 cat confdefs.h >>conftest.$ac_ext
37226 cat >>conftest.$ac_ext <<_ACEOF
37227 /* end confdefs.h. */
37228 /* Thanks to Paul Eggert for this test. */
37229 $ac_includes_default
37230 #include <sys/wait.h>
37231 #ifdef HAVE_VFORK_H
37232 # include <vfork.h>
37234 /* On some sparc systems, changes by the child to local and incoming
37235 argument registers are propagated back to the parent. The compiler
37236 is told about this with #include <vfork.h>, but some compilers
37237 (e.g. gcc -O) don't grok
<vfork.h
>. Test
for this by using a
37238 static variable whose address is put into a register that is
37239 clobbered by the vfork.
*/
37242 sparc_address_test
(int arg
)
37244 sparc_address_test
(arg
) int arg
;
37247 static pid_t child
;
37265 pid_t parent
= getpid
();
37268 sparc_address_test
(0);
37273 /* Here is another
test for sparc vfork register problems. This
37274 test uses lots of
local variables
, at least as many
local
37275 variables as main has allocated so far including compiler
37276 temporaries.
4 locals are enough
for gcc
1.40.3 on a Solaris
37277 4.1.3 sparc
, but we use
8 to be safe. A buggy compiler should
37278 reuse the register of parent
for one of the
local variables
,
37279 since it will think that parent can
't possibly be used any more
37280 in this routine. Assigning to the local variable will thus
37281 munge parent in the parent process. */
37283 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
37284 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
37285 /* Convince the compiler that p..p7 are live; otherwise, it might
37286 use the same hardware register for all 8 local variables. */
37287 if (p != p1 || p != p2 || p != p3 || p != p4
37288 || p != p5 || p != p6 || p != p7)
37291 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
37292 from child
file descriptors. If the child closes a descriptor
37293 before it execs or exits
, this munges the parent
's descriptor
37294 as well. Test for this by closing stdout in the child. */
37295 _exit(close(fileno(stdout)) != 0);
37300 while (wait(&status) != child)
37303 /* Was there some problem with vforking? */
37306 /* Did the child fail? (This shouldn't happen.
) */
37309 /* Did the vfork
/compiler bug occur?
*/
37310 || parent
!= getpid
()
37312 /* Did the
file descriptor bug occur?
*/
37313 || fstat
(fileno
(stdout
), &st
) != 0
37318 rm -f conftest
$ac_exeext
37319 if { (ac_try
="$ac_link"
37320 case "(($ac_try" in
37321 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
37322 *) ac_try_echo=$ac_try;;
37324 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
37325 $as_echo "$ac_try_echo") >&5
37326 (eval "$ac_link") 2>&5
37328 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
37329 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
37330 { (case "(($ac_try" in
37331 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
37332 *) ac_try_echo
=$ac_try;;
37334 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
37335 $as_echo "$ac_try_echo") >&5
37336 (eval "$ac_try") 2>&5
37338 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
37339 (exit $ac_status); }; }; then
37340 ac_cv_func_vfork_works
=yes
37342 $as_echo "$as_me: program exited with status $ac_status" >&5
37343 $as_echo "$as_me: failed program was:" >&5
37344 sed 's/^/| /' conftest.
$ac_ext >&5
37346 ( exit $ac_status )
37347 ac_cv_func_vfork_works
=no
37349 rm -rf conftest.dSYM
37350 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
37355 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
37356 $as_echo "$ac_cv_func_vfork_works" >&6; }
37359 if test "x$ac_cv_func_fork_works" = xcross
; then
37360 ac_cv_func_vfork_works
=$ac_cv_func_vfork
37361 { $as_echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
37362 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
37365 if test "x$ac_cv_func_vfork_works" = xyes
; then
37367 cat >>confdefs.h
<<\_ACEOF
37368 #define HAVE_WORKING_VFORK 1
37373 cat >>confdefs.h
<<\_ACEOF
37378 if test "x$ac_cv_func_fork_works" = xyes
; then
37380 cat >>confdefs.h
<<\_ACEOF
37381 #define HAVE_WORKING_FORK 1
37386 { $as_echo "$as_me:$LINENO: checking whether closedir returns void" >&5
37387 $as_echo_n "checking whether closedir returns void... " >&6; }
37388 if test "${ac_cv_func_closedir_void+set}" = set; then
37389 $as_echo_n "(cached) " >&6
37391 if test "$cross_compiling" = yes; then
37392 ac_cv_func_closedir_void
=yes
37394 cat >conftest.
$ac_ext <<_ACEOF
37397 cat confdefs.h
>>conftest.
$ac_ext
37398 cat >>conftest.
$ac_ext <<_ACEOF
37399 /* end confdefs.h. */
37400 $ac_includes_default
37401 #include <$ac_header_dirent>
37402 #ifndef __cplusplus
37409 return closedir (opendir (".")) != 0;
37414 rm -f conftest
$ac_exeext
37415 if { (ac_try
="$ac_link"
37416 case "(($ac_try" in
37417 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
37418 *) ac_try_echo=$ac_try;;
37420 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
37421 $as_echo "$ac_try_echo") >&5
37422 (eval "$ac_link") 2>&5
37424 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
37425 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
37426 { (case "(($ac_try" in
37427 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
37428 *) ac_try_echo
=$ac_try;;
37430 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
37431 $as_echo "$ac_try_echo") >&5
37432 (eval "$ac_try") 2>&5
37434 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
37435 (exit $ac_status); }; }; then
37436 ac_cv_func_closedir_void
=no
37438 $as_echo "$as_me: program exited with status $ac_status" >&5
37439 $as_echo "$as_me: failed program was:" >&5
37440 sed 's/^/| /' conftest.
$ac_ext >&5
37442 ( exit $ac_status )
37443 ac_cv_func_closedir_void
=yes
37445 rm -rf conftest.dSYM
37446 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
37451 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_closedir_void" >&5
37452 $as_echo "$ac_cv_func_closedir_void" >&6; }
37453 if test $ac_cv_func_closedir_void = yes; then
37455 cat >>confdefs.h
<<\_ACEOF
37456 #define CLOSEDIR_VOID 1
37462 { $as_echo "$as_me:$LINENO: checking for library containing getspnam" >&5
37463 $as_echo_n "checking for library containing getspnam... " >&6; }
37464 if test "${ac_cv_search_getspnam+set}" = set; then
37465 $as_echo_n "(cached) " >&6
37467 ac_func_search_save_LIBS
=$LIBS
37468 cat >conftest.
$ac_ext <<_ACEOF
37471 cat confdefs.h
>>conftest.
$ac_ext
37472 cat >>conftest.
$ac_ext <<_ACEOF
37473 /* end confdefs.h. */
37475 /* Override any GCC internal prototype to avoid an error.
37476 Use char because int might match the return type of a GCC
37477 builtin and then its argument prototype would still apply. */
37485 return getspnam ();
37490 for ac_lib
in '' sec gen
; do
37491 if test -z "$ac_lib"; then
37492 ac_res
="none required"
37495 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
37497 rm -f conftest.
$ac_objext conftest
$ac_exeext
37498 if { (ac_try
="$ac_link"
37499 case "(($ac_try" in
37500 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
37501 *) ac_try_echo=$ac_try;;
37503 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
37504 $as_echo "$ac_try_echo") >&5
37505 (eval "$ac_link") 2>conftest.er1
37507 grep -v '^ *+' conftest.er1 >conftest.err
37509 cat conftest.err >&5
37510 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
37511 (exit $ac_status); } && {
37512 test -z "$ac_c_werror_flag" ||
37513 test ! -s conftest.err
37514 } && test -s conftest$ac_exeext && {
37515 test "$cross_compiling" = yes ||
37516 $as_test_x conftest$ac_exeext
37518 ac_cv_search_getspnam=$ac_res
37520 $as_echo "$as_me: failed program was:" >&5
37521 sed 's/^/| /' conftest.$ac_ext >&5
37526 rm -rf conftest.dSYM
37527 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
37529 if test "${ac_cv_search_getspnam+set}" = set; then
37533 if test "${ac_cv_search_getspnam+set}" = set; then
37536 ac_cv_search_getspnam=no
37538 rm conftest.$ac_ext
37539 LIBS=$ac_func_search_save_LIBS
37541 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_getspnam" >&5
37542 $as_echo "$ac_cv_search_getspnam" >&6; }
37543 ac_res=$ac_cv_search_getspnam
37544 if test "$ac_res" != no; then
37545 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
37547 cat >>confdefs.h <<\_ACEOF
37548 #define HAVE_GETSPNAM 1
37567 { $as_echo "$as_me:$LINENO: checking whether utime accepts a null argument" >&5
37568 $as_echo_n "checking whether utime accepts a null argument... " >&6; }
37569 if test "${ac_cv_func_utime_null+set}" = set; then
37570 $as_echo_n "(cached) " >&6
37572 rm -f conftest.data; >conftest.data
37573 # Sequent interprets utime(file, 0) to mean use start of epoch. Wrong.
37574 if test "$cross_compiling" = yes; then
37575 ac_cv_func_utime_null=no
37577 cat >conftest.$ac_ext <<_ACEOF
37580 cat confdefs.h >>conftest.$ac_ext
37581 cat >>conftest.$ac_ext <<_ACEOF
37582 /* end confdefs.h. */
37583 $ac_includes_default
37584 #ifdef HAVE_UTIME_H
37585 # include <utime.h>
37591 return ! (stat ("conftest.data", &s) == 0
37592 && utime ("conftest.data", 0) == 0
37593 && stat ("conftest.data", &t) == 0
37594 && t.st_mtime >= s.st_mtime
37595 && t.st_mtime - s.st_mtime < 120);
37600 rm -f conftest$ac_exeext
37601 if { (ac_try="$ac_link"
37602 case "(($ac_try" in
37603 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
37604 *) ac_try_echo
=$ac_try;;
37606 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
37607 $as_echo "$ac_try_echo") >&5
37608 (eval "$ac_link") 2>&5
37610 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
37611 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
37612 { (case "(($ac_try" in
37613 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
37614 *) ac_try_echo=$ac_try;;
37616 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
37617 $as_echo "$ac_try_echo") >&5
37618 (eval "$ac_try") 2>&5
37620 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
37621 (exit $ac_status); }; }; then
37622 ac_cv_func_utime_null=yes
37624 $as_echo "$as_me: program exited with status $ac_status" >&5
37625 $as_echo "$as_me: failed program was:" >&5
37626 sed 's/^/| /' conftest.$ac_ext >&5
37628 ( exit $ac_status )
37629 ac_cv_func_utime_null=no
37631 rm -rf conftest.dSYM
37632 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
37637 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_utime_null" >&5
37638 $as_echo "$ac_cv_func_utime_null" >&6; }
37639 if test $ac_cv_func_utime_null = yes; then
37641 cat >>confdefs.h <<\_ACEOF
37642 #define HAVE_UTIME_NULL 1
37646 rm -f conftest.data
37648 { $as_echo "$as_me:$LINENO: checking for long file names" >&5
37649 $as_echo_n "checking for long file names... " >&6; }
37650 if test "${ac_cv_sys_long_file_names+set}" = set; then
37651 $as_echo_n "(cached) " >&6
37653 ac_cv_sys_long_file_names=yes
37654 # Test for long file names in all the places we know might matter:
37655 # . the current directory, where building will happen
37656 # $prefix/lib where we will be installing things
37657 # $exec_prefix/lib likewise
37658 # $TMPDIR if set, where it might want to write temporary files
37659 # /tmp where it might want to write temporary files
37660 # /var/tmp likewise
37661 # /usr/tmp likewise
37662 for ac_dir in . "$TMPDIR" /tmp /var/tmp /usr/tmp "$prefix/lib" "$exec_prefix/lib"; do
37663 # Skip $TMPDIR if it is empty or bogus, and skip $exec_prefix/lib
37664 # in the usual case where exec_prefix is '${prefix}'.
37666 . | /* | ?:[\\/]*) ;; #(
37669 test -w "$ac_dir/." || continue # It is less confusing to not echo anything here.
37670 ac_xdir=$ac_dir/cf$$
37671 (umask 077 && mkdir "$ac_xdir" 2>/dev/null) || continue
37672 ac_tf1=$ac_xdir/conftest9012345
37673 ac_tf2=$ac_xdir/conftest9012346
37674 touch "$ac_tf1" 2>/dev/null && test -f "$ac_tf1" && test ! -f "$ac_tf2" ||
37675 ac_cv_sys_long_file_names=no
37676 rm -f -r "$ac_xdir" 2>/dev/null
37677 test $ac_cv_sys_long_file_names = no && break
37680 { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_long_file_names" >&5
37681 $as_echo "$ac_cv_sys_long_file_names" >&6; }
37682 if test $ac_cv_sys_long_file_names = yes; then
37684 cat >>confdefs.h <<\_ACEOF
37685 #define HAVE_LONG_FILE_NAMES 1
37691 { $as_echo "$as_me:$LINENO: checking whether printf supports %p" >&5
37692 $as_echo_n "checking whether printf supports %p... " >&6; }
37693 if test "${cvs_cv_func_printf_ptr+set}" = set; then
37694 $as_echo_n "(cached) " >&6
37696 if test "$cross_compiling" = yes; then
37697 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
37698 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
37699 { { $as_echo "$as_me:$LINENO: error
: cannot run
test program
while cross compiling
37700 See \
`config.log' for more details." >&5
37701 $as_echo "$as_me: error: cannot run test program while cross compiling
37702 See \`config.log
' for more details." >&2;}
37703 { (exit 1); exit 1; }; }; }
37705 cat >conftest.$ac_ext <<_ACEOF
37708 cat confdefs.h >>conftest.$ac_ext
37709 cat >>conftest.$ac_ext <<_ACEOF
37710 /* end confdefs.h. */
37712 /* If printf supports %p, exit 0. */
37718 p1 = &p1; p2 = &p2;
37719 sprintf(buf, "%p", p1);
37720 exit(sscanf(buf, "%p", &p2) != 1 || p2 != p1);
37723 rm -f conftest$ac_exeext
37724 if { (ac_try="$ac_link"
37725 case "(($ac_try" in
37726 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37727 *) ac_try_echo=$ac_try;;
37729 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
37730 $as_echo "$ac_try_echo") >&5
37731 (eval "$ac_link") 2>&5
37733 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
37734 (exit $ac_status); } && { ac_try='.
/conftest
$ac_exeext'
37735 { (case "(($ac_try" in
37736 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37737 *) ac_try_echo=$ac_try;;
37739 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
37740 $as_echo "$ac_try_echo") >&5
37741 (eval "$ac_try") 2>&5
37743 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
37744 (exit $ac_status); }; }; then
37745 cvs_cv_func_printf_ptr=yes
37747 $as_echo "$as_me: program exited with status $ac_status" >&5
37748 $as_echo "$as_me: failed program was:" >&5
37749 sed 's
/^
/|
/' conftest.$ac_ext >&5
37751 ( exit $ac_status )
37752 cvs_cv_func_printf_ptr=no
37754 rm -rf conftest.dSYM
37755 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
37759 rm -f core core.* *.core
37761 { $as_echo "$as_me:$LINENO: result: $cvs_cv_func_printf_ptr" >&5
37762 $as_echo "$cvs_cv_func_printf_ptr" >&6; }
37763 if test $cvs_cv_func_printf_ptr = yes; then
37765 cat >>confdefs.h <<\_ACEOF
37766 #define HAVE_PRINTF_PTR 1
37772 # Try to find connect and gethostbyname.
37774 { $as_echo "$as_me:$LINENO: checking for main in -lnsl" >&5
37775 $as_echo_n "checking for main in -lnsl... " >&6; }
37776 if test "${ac_cv_lib_nsl_main+set}" = set; then
37777 $as_echo_n "(cached) " >&6
37779 ac_check_lib_save_LIBS=$LIBS
37781 cat >conftest.$ac_ext <<_ACEOF
37784 cat confdefs.h >>conftest.$ac_ext
37785 cat >>conftest.$ac_ext <<_ACEOF
37786 /* end confdefs.h. */
37797 rm -f conftest.$ac_objext conftest$ac_exeext
37798 if { (ac_try="$ac_link"
37799 case "(($ac_try" in
37800 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37801 *) ac_try_echo=$ac_try;;
37803 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
37804 $as_echo "$ac_try_echo") >&5
37805 (eval "$ac_link") 2>conftest.er1
37807 grep -v '^
*+' conftest.er1 >conftest.err
37809 cat conftest.err >&5
37810 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
37811 (exit $ac_status); } && {
37812 test -z "$ac_c_werror_flag" ||
37813 test ! -s conftest.err
37814 } && test -s conftest$ac_exeext && {
37815 test "$cross_compiling" = yes ||
37816 $as_test_x conftest$ac_exeext
37818 ac_cv_lib_nsl_main=yes
37820 $as_echo "$as_me: failed program was:" >&5
37821 sed 's
/^
/|
/' conftest.$ac_ext >&5
37823 ac_cv_lib_nsl_main=no
37826 rm -rf conftest.dSYM
37827 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
37828 conftest$ac_exeext conftest.$ac_ext
37829 LIBS=$ac_check_lib_save_LIBS
37831 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_main" >&5
37832 $as_echo "$ac_cv_lib_nsl_main" >&6; }
37833 if test "x$ac_cv_lib_nsl_main" = x""yes; then
37834 cat >>confdefs.h <<_ACEOF
37835 #define HAVE_LIBNSL 1
37842 { $as_echo "$as_me:$LINENO: checking for library containing connect" >&5
37843 $as_echo_n "checking for library containing connect... " >&6; }
37844 if test "${ac_cv_search_connect+set}" = set; then
37845 $as_echo_n "(cached) " >&6
37847 ac_func_search_save_LIBS=$LIBS
37848 cat >conftest.$ac_ext <<_ACEOF
37851 cat confdefs.h >>conftest.$ac_ext
37852 cat >>conftest.$ac_ext <<_ACEOF
37853 /* end confdefs.h. */
37855 /* Override any GCC internal prototype to avoid an error.
37856 Use char because int might match the return type of a GCC
37857 builtin and then its argument prototype would still apply. */
37870 for ac_lib in '' xnet socket inet; do
37871 if test -z "$ac_lib"; then
37872 ac_res="none required"
37875 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
37877 rm -f conftest.$ac_objext conftest$ac_exeext
37878 if { (ac_try="$ac_link"
37879 case "(($ac_try" in
37880 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37881 *) ac_try_echo=$ac_try;;
37883 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
37884 $as_echo "$ac_try_echo") >&5
37885 (eval "$ac_link") 2>conftest.er1
37887 grep -v '^
*+' conftest.er1 >conftest.err
37889 cat conftest.err >&5
37890 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
37891 (exit $ac_status); } && {
37892 test -z "$ac_c_werror_flag" ||
37893 test ! -s conftest.err
37894 } && test -s conftest$ac_exeext && {
37895 test "$cross_compiling" = yes ||
37896 $as_test_x conftest$ac_exeext
37898 ac_cv_search_connect=$ac_res
37900 $as_echo "$as_me: failed program was:" >&5
37901 sed 's
/^
/|
/' conftest.$ac_ext >&5
37906 rm -rf conftest.dSYM
37907 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
37909 if test "${ac_cv_search_connect+set}" = set; then
37913 if test "${ac_cv_search_connect+set}" = set; then
37916 ac_cv_search_connect=no
37918 rm conftest.$ac_ext
37919 LIBS=$ac_func_search_save_LIBS
37921 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_connect" >&5
37922 $as_echo "$ac_cv_search_connect" >&6; }
37923 ac_res=$ac_cv_search_connect
37924 if test "$ac_res" != no; then
37925 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
37927 cat >>confdefs.h <<\_ACEOF
37928 #define HAVE_CONNECT 1
37933 { $as_echo "$as_me:$LINENO: checking for library containing gethostbyname" >&5
37934 $as_echo_n "checking for library containing gethostbyname... " >&6; }
37935 if test "${ac_cv_search_gethostbyname+set}" = set; then
37936 $as_echo_n "(cached) " >&6
37938 ac_func_search_save_LIBS=$LIBS
37939 cat >conftest.$ac_ext <<_ACEOF
37942 cat confdefs.h >>conftest.$ac_ext
37943 cat >>conftest.$ac_ext <<_ACEOF
37944 /* end confdefs.h. */
37946 /* Override any GCC internal prototype to avoid an error.
37947 Use char because int might match the return type of a GCC
37948 builtin and then its argument prototype would still apply. */
37952 char gethostbyname ();
37956 return gethostbyname ();
37961 for ac_lib in '' netinet; do
37962 if test -z "$ac_lib"; then
37963 ac_res="none required"
37966 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
37968 rm -f conftest.$ac_objext conftest$ac_exeext
37969 if { (ac_try="$ac_link"
37970 case "(($ac_try" in
37971 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37972 *) ac_try_echo=$ac_try;;
37974 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
37975 $as_echo "$ac_try_echo") >&5
37976 (eval "$ac_link") 2>conftest.er1
37978 grep -v '^
*+' conftest.er1 >conftest.err
37980 cat conftest.err >&5
37981 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
37982 (exit $ac_status); } && {
37983 test -z "$ac_c_werror_flag" ||
37984 test ! -s conftest.err
37985 } && test -s conftest$ac_exeext && {
37986 test "$cross_compiling" = yes ||
37987 $as_test_x conftest$ac_exeext
37989 ac_cv_search_gethostbyname=$ac_res
37991 $as_echo "$as_me: failed program was:" >&5
37992 sed 's
/^
/|
/' conftest.$ac_ext >&5
37997 rm -rf conftest.dSYM
37998 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38000 if test "${ac_cv_search_gethostbyname+set}" = set; then
38004 if test "${ac_cv_search_gethostbyname+set}" = set; then
38007 ac_cv_search_gethostbyname=no
38009 rm conftest.$ac_ext
38010 LIBS=$ac_func_search_save_LIBS
38012 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_gethostbyname" >&5
38013 $as_echo "$ac_cv_search_gethostbyname" >&6; }
38014 ac_res=$ac_cv_search_gethostbyname
38015 if test "$ac_res" != no; then
38016 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
38028 # Check whether --with-krb4 was given.
38029 if test "${with_krb4+set}" = set; then
38030 withval=$with_krb4; KRB4=$with_krb4
38032 { $as_echo "$as_me:$LINENO: checking for KRB4 in $KRB4" >&5
38033 $as_echo_n "checking for KRB4 in $KRB4... " >&6; }
38034 { $as_echo "$as_me:$LINENO: result: " >&5
38039 { $as_echo "$as_me:$LINENO: checking for krb.h" >&5
38040 $as_echo_n "checking for krb.h... " >&6; }
38041 if test "$cross_compiling" != yes && test -r $KRB4/include/krb.h; then
38042 hold_cflags=$CFLAGS
38043 CFLAGS="$CFLAGS -I$KRB4/include"
38044 cat >conftest.$ac_ext <<_ACEOF
38047 cat confdefs.h >>conftest.$ac_ext
38048 cat >>conftest.$ac_ext <<_ACEOF
38049 /* end confdefs.h. */
38059 rm -f conftest.$ac_objext conftest$ac_exeext
38060 if { (ac_try="$ac_link"
38061 case "(($ac_try" in
38062 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38063 *) ac_try_echo=$ac_try;;
38065 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
38066 $as_echo "$ac_try_echo") >&5
38067 (eval "$ac_link") 2>conftest.er1
38069 grep -v '^
*+' conftest.er1 >conftest.err
38071 cat conftest.err >&5
38072 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
38073 (exit $ac_status); } && {
38074 test -z "$ac_c_werror_flag" ||
38075 test ! -s conftest.err
38076 } && test -s conftest$ac_exeext && {
38077 test "$cross_compiling" = yes ||
38078 $as_test_x conftest$ac_exeext
38080 krb_h=yes krb_incdir=$KRB4/include
38082 $as_echo "$as_me: failed program was:" >&5
38083 sed 's
/^
/|
/' conftest.$ac_ext >&5
38085 CFLAGS=$hold_cflags
38086 cat >conftest.$ac_ext <<_ACEOF
38089 cat confdefs.h >>conftest.$ac_ext
38090 cat >>conftest.$ac_ext <<_ACEOF
38091 /* end confdefs.h. */
38101 rm -f conftest.$ac_objext conftest$ac_exeext
38102 if { (ac_try="$ac_link"
38103 case "(($ac_try" in
38104 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38105 *) ac_try_echo=$ac_try;;
38107 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
38108 $as_echo "$ac_try_echo") >&5
38109 (eval "$ac_link") 2>conftest.er1
38111 grep -v '^
*+' conftest.er1 >conftest.err
38113 cat conftest.err >&5
38114 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
38115 (exit $ac_status); } && {
38116 test -z "$ac_c_werror_flag" ||
38117 test ! -s conftest.err
38118 } && test -s conftest$ac_exeext && {
38119 test "$cross_compiling" = yes ||
38120 $as_test_x conftest$ac_exeext
38122 krb_h=yes krb_incdir=
38124 $as_echo "$as_me: failed program was:" >&5
38125 sed 's
/^
/|
/' conftest.$ac_ext >&5
38130 rm -rf conftest.dSYM
38131 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38132 conftest$ac_exeext conftest.$ac_ext
38135 rm -rf conftest.dSYM
38136 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38137 conftest$ac_exeext conftest.$ac_ext
38138 CFLAGS=$hold_cflags
38140 cat >conftest.$ac_ext <<_ACEOF
38143 cat confdefs.h >>conftest.$ac_ext
38144 cat >>conftest.$ac_ext <<_ACEOF
38145 /* end confdefs.h. */
38155 rm -f conftest.$ac_objext conftest$ac_exeext
38156 if { (ac_try="$ac_link"
38157 case "(($ac_try" in
38158 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38159 *) ac_try_echo=$ac_try;;
38161 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
38162 $as_echo "$ac_try_echo") >&5
38163 (eval "$ac_link") 2>conftest.er1
38165 grep -v '^
*+' conftest.er1 >conftest.err
38167 cat conftest.err >&5
38168 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
38169 (exit $ac_status); } && {
38170 test -z "$ac_c_werror_flag" ||
38171 test ! -s conftest.err
38172 } && test -s conftest$ac_exeext && {
38173 test "$cross_compiling" = yes ||
38174 $as_test_x conftest$ac_exeext
38176 krb_h=yes krb_incdir=
38178 $as_echo "$as_me: failed program was:" >&5
38179 sed 's
/^
/|
/' conftest.$ac_ext >&5
38184 rm -rf conftest.dSYM
38185 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38186 conftest$ac_exeext conftest.$ac_ext
38188 if test -z "$krb_h"; then
38189 cat >conftest.$ac_ext <<_ACEOF
38192 cat confdefs.h >>conftest.$ac_ext
38193 cat >>conftest.$ac_ext <<_ACEOF
38194 /* end confdefs.h. */
38204 rm -f conftest.$ac_objext conftest$ac_exeext
38205 if { (ac_try="$ac_link"
38206 case "(($ac_try" in
38207 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38208 *) ac_try_echo=$ac_try;;
38210 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
38211 $as_echo "$ac_try_echo") >&5
38212 (eval "$ac_link") 2>conftest.er1
38214 grep -v '^
*+' conftest.er1 >conftest.err
38216 cat conftest.err >&5
38217 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
38218 (exit $ac_status); } && {
38219 test -z "$ac_c_werror_flag" ||
38220 test ! -s conftest.err
38221 } && test -s conftest$ac_exeext && {
38222 test "$cross_compiling" = yes ||
38223 $as_test_x conftest$ac_exeext
38225 krb_h=yes krb_incdir=
38227 $as_echo "$as_me: failed program was:" >&5
38228 sed 's
/^
/|
/' conftest.$ac_ext >&5
38230 if test "$cross_compiling" != yes && test -r $KRB4/include/kerberosIV/krb.h; then
38231 hold_cflags=$CFLAGS
38232 CFLAGS="$CFLAGS -I$KRB4/include/kerberosIV"
38233 cat >conftest.$ac_ext <<_ACEOF
38236 cat confdefs.h >>conftest.$ac_ext
38237 cat >>conftest.$ac_ext <<_ACEOF
38238 /* end confdefs.h. */
38248 rm -f conftest.$ac_objext conftest$ac_exeext
38249 if { (ac_try="$ac_link"
38250 case "(($ac_try" in
38251 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38252 *) ac_try_echo=$ac_try;;
38254 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
38255 $as_echo "$ac_try_echo") >&5
38256 (eval "$ac_link") 2>conftest.er1
38258 grep -v '^
*+' conftest.er1 >conftest.err
38260 cat conftest.err >&5
38261 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
38262 (exit $ac_status); } && {
38263 test -z "$ac_c_werror_flag" ||
38264 test ! -s conftest.err
38265 } && test -s conftest$ac_exeext && {
38266 test "$cross_compiling" = yes ||
38267 $as_test_x conftest$ac_exeext
38269 krb_h=yes krb_incdir=$KRB4/include/kerberosIV
38271 $as_echo "$as_me: failed program was:" >&5
38272 sed 's
/^
/|
/' conftest.$ac_ext >&5
38277 rm -rf conftest.dSYM
38278 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38279 conftest$ac_exeext conftest.$ac_ext
38280 CFLAGS=$hold_cflags
38284 rm -rf conftest.dSYM
38285 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38286 conftest$ac_exeext conftest.$ac_ext
38288 { $as_echo "$as_me:$LINENO: result: $krb_h" >&5
38289 $as_echo "$krb_h" >&6; }
38291 if test -n "$krb_h"; then
38293 if test "$cross_compiling" != yes && test -r $KRB4/lib/libkrb.a; then
38294 hold_ldflags=$LDFLAGS
38295 LDFLAGS="-L${KRB4}/lib $LDFLAGS"
38296 { $as_echo "$as_me:$LINENO: checking for printf in -lkrb" >&5
38297 $as_echo_n "checking for printf in -lkrb... " >&6; }
38298 if test "${ac_cv_lib_krb_printf+set}" = set; then
38299 $as_echo_n "(cached) " >&6
38301 ac_check_lib_save_LIBS=$LIBS
38303 cat >conftest.$ac_ext <<_ACEOF
38306 cat confdefs.h >>conftest.$ac_ext
38307 cat >>conftest.$ac_ext <<_ACEOF
38308 /* end confdefs.h. */
38310 /* Override any GCC internal prototype to avoid an error.
38311 Use char because int might match the return type of a GCC
38312 builtin and then its argument prototype would still apply. */
38325 rm -f conftest.$ac_objext conftest$ac_exeext
38326 if { (ac_try="$ac_link"
38327 case "(($ac_try" in
38328 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38329 *) ac_try_echo=$ac_try;;
38331 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
38332 $as_echo "$ac_try_echo") >&5
38333 (eval "$ac_link") 2>conftest.er1
38335 grep -v '^
*+' conftest.er1 >conftest.err
38337 cat conftest.err >&5
38338 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
38339 (exit $ac_status); } && {
38340 test -z "$ac_c_werror_flag" ||
38341 test ! -s conftest.err
38342 } && test -s conftest$ac_exeext && {
38343 test "$cross_compiling" = yes ||
38344 $as_test_x conftest$ac_exeext
38346 ac_cv_lib_krb_printf=yes
38348 $as_echo "$as_me: failed program was:" >&5
38349 sed 's
/^
/|
/' conftest.$ac_ext >&5
38351 ac_cv_lib_krb_printf=no
38354 rm -rf conftest.dSYM
38355 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38356 conftest$ac_exeext conftest.$ac_ext
38357 LIBS=$ac_check_lib_save_LIBS
38359 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_krb_printf" >&5
38360 $as_echo "$ac_cv_lib_krb_printf" >&6; }
38361 if test "x$ac_cv_lib_krb_printf" = x""yes; then
38362 krb_lib=yes krb_libdir=${KRB4}/lib
38364 LDFLAGS=$hold_ldflags
38365 # Using open here instead of printf so we don't
38366 # get confused by the cached value for printf from above.
38367 { $as_echo "$as_me:$LINENO: checking for open in -lkrb" >&5
38368 $as_echo_n "checking for open in -lkrb... " >&6; }
38369 if test "${ac_cv_lib_krb_open+set}" = set; then
38370 $as_echo_n "(cached) " >&6
38372 ac_check_lib_save_LIBS
=$LIBS
38374 cat >conftest.
$ac_ext <<_ACEOF
38377 cat confdefs.h
>>conftest.
$ac_ext
38378 cat >>conftest.
$ac_ext <<_ACEOF
38379 /* end confdefs.h. */
38381 /* Override any GCC internal prototype to avoid an error.
38382 Use char because int might match the return type of a GCC
38383 builtin and then its argument prototype would still apply. */
38396 rm -f conftest.
$ac_objext conftest
$ac_exeext
38397 if { (ac_try
="$ac_link"
38398 case "(($ac_try" in
38399 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
38400 *) ac_try_echo=$ac_try;;
38402 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
38403 $as_echo "$ac_try_echo") >&5
38404 (eval "$ac_link") 2>conftest.er1
38406 grep -v '^ *+' conftest.er1 >conftest.err
38408 cat conftest.err >&5
38409 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
38410 (exit $ac_status); } && {
38411 test -z "$ac_c_werror_flag" ||
38412 test ! -s conftest.err
38413 } && test -s conftest$ac_exeext && {
38414 test "$cross_compiling" = yes ||
38415 $as_test_x conftest$ac_exeext
38417 ac_cv_lib_krb_open=yes
38419 $as_echo "$as_me: failed program was:" >&5
38420 sed 's/^/| /' conftest.$ac_ext >&5
38422 ac_cv_lib_krb_open=no
38425 rm -rf conftest.dSYM
38426 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38427 conftest$ac_exeext conftest.$ac_ext
38428 LIBS=$ac_check_lib_save_LIBS
38430 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_krb_open" >&5
38431 $as_echo "$ac_cv_lib_krb_open" >&6; }
38432 if test "x$ac_cv_lib_krb_open" = x""yes; then
38433 krb_lib=yes krb_libdir=
38438 LDFLAGS=$hold_ldflags
38440 { $as_echo "$as_me:$LINENO: checking for printf in -lkrb" >&5
38441 $as_echo_n "checking for printf in -lkrb... " >&6; }
38442 if test "${ac_cv_lib_krb_printf+set}" = set; then
38443 $as_echo_n "(cached) " >&6
38445 ac_check_lib_save_LIBS=$LIBS
38447 cat >conftest.$ac_ext <<_ACEOF
38450 cat confdefs.h >>conftest.$ac_ext
38451 cat >>conftest.$ac_ext <<_ACEOF
38452 /* end confdefs.h. */
38454 /* Override any GCC internal prototype to avoid an error.
38455 Use char because int might match the return type of a GCC
38456 builtin and then its argument prototype would still apply. */
38469 rm -f conftest.$ac_objext conftest$ac_exeext
38470 if { (ac_try="$ac_link"
38471 case "(($ac_try" in
38472 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
38473 *) ac_try_echo
=$ac_try;;
38475 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
38476 $as_echo "$ac_try_echo") >&5
38477 (eval "$ac_link") 2>conftest.er1
38479 grep -v '^ *+' conftest.er1
>conftest.err
38481 cat conftest.err
>&5
38482 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
38483 (exit $ac_status); } && {
38484 test -z "$ac_c_werror_flag" ||
38485 test ! -s conftest.err
38486 } && test -s conftest
$ac_exeext && {
38487 test "$cross_compiling" = yes ||
38488 $as_test_x conftest
$ac_exeext
38490 ac_cv_lib_krb_printf
=yes
38492 $as_echo "$as_me: failed program was:" >&5
38493 sed 's/^/| /' conftest.
$ac_ext >&5
38495 ac_cv_lib_krb_printf
=no
38498 rm -rf conftest.dSYM
38499 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
38500 conftest
$ac_exeext conftest.
$ac_ext
38501 LIBS
=$ac_check_lib_save_LIBS
38503 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_krb_printf" >&5
38504 $as_echo "$ac_cv_lib_krb_printf" >&6; }
38505 if test "x$ac_cv_lib_krb_printf" = x
""yes; then
38506 krb_lib
=yes krb_libdir
=
38509 { $as_echo "$as_me:$LINENO: checking for krb_recvauth" >&5
38510 $as_echo_n "checking for krb_recvauth... " >&6; }
38511 if test "${ac_cv_func_krb_recvauth+set}" = set; then
38512 $as_echo_n "(cached) " >&6
38514 cat >conftest.
$ac_ext <<_ACEOF
38517 cat confdefs.h
>>conftest.
$ac_ext
38518 cat >>conftest.
$ac_ext <<_ACEOF
38519 /* end confdefs.h. */
38520 /* Define krb_recvauth to an innocuous variant, in case <limits.h> declares krb_recvauth.
38521 For example, HP-UX 11i <limits.h> declares gettimeofday. */
38522 #define krb_recvauth innocuous_krb_recvauth
38524 /* System header to define __stub macros and hopefully few prototypes,
38525 which can conflict with char krb_recvauth (); below.
38526 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38527 <limits.h> exists even on freestanding compilers. */
38530 # include <limits.h>
38532 # include <assert.h>
38535 #undef krb_recvauth
38537 /* Override any GCC internal prototype to avoid an error.
38538 Use char because int might match the return type of a GCC
38539 builtin and then its argument prototype would still apply. */
38543 char krb_recvauth ();
38544 /* The GNU C library defines this for functions which it implements
38545 to always fail with ENOSYS. Some functions are actually named
38546 something starting with __ and the normal name is an alias. */
38547 #if defined __stub_krb_recvauth || defined __stub___krb_recvauth
38554 return krb_recvauth ();
38559 rm -f conftest.
$ac_objext conftest
$ac_exeext
38560 if { (ac_try
="$ac_link"
38561 case "(($ac_try" in
38562 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
38563 *) ac_try_echo=$ac_try;;
38565 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
38566 $as_echo "$ac_try_echo") >&5
38567 (eval "$ac_link") 2>conftest.er1
38569 grep -v '^ *+' conftest.er1 >conftest.err
38571 cat conftest.err >&5
38572 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
38573 (exit $ac_status); } && {
38574 test -z "$ac_c_werror_flag" ||
38575 test ! -s conftest.err
38576 } && test -s conftest$ac_exeext && {
38577 test "$cross_compiling" = yes ||
38578 $as_test_x conftest$ac_exeext
38580 ac_cv_func_krb_recvauth=yes
38582 $as_echo "$as_me: failed program was:" >&5
38583 sed 's/^/| /' conftest.$ac_ext >&5
38585 ac_cv_func_krb_recvauth=no
38588 rm -rf conftest.dSYM
38589 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38590 conftest$ac_exeext conftest.$ac_ext
38592 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_krb_recvauth" >&5
38593 $as_echo "$ac_cv_func_krb_recvauth" >&6; }
38594 if test "x$ac_cv_func_krb_recvauth" = x""yes; then
38595 krb_lib=yes krb_libdir=
38599 if test -n "$krb_lib"; then
38601 cat >>confdefs.h <<\_ACEOF
38602 #define HAVE_KERBEROS 1
38605 cvs_client_objects="$cvs_client_objects kerberos4-client.o"
38606 test -n "${krb_libdir}" && LIBS="${LIBS} -L${krb_libdir}"
38607 # Put -L${krb_libdir} in LDFLAGS temporarily so that it appears before
38608 # -ldes in the command line. Don't do it permanently so that we honor
38609 # the user's setting for LDFLAGS
38610 hold_ldflags=$LDFLAGS
38611 test -n "${krb_libdir}" && LDFLAGS="$LDFLAGS -L${krb_libdir}"
38612 { $as_echo "$as_me:$LINENO: checking for printf in -ldes" >&5
38613 $as_echo_n "checking for printf in -ldes... " >&6; }
38614 if test "${ac_cv_lib_des_printf+set}" = set; then
38615 $as_echo_n "(cached) " >&6
38617 ac_check_lib_save_LIBS=$LIBS
38619 cat >conftest.$ac_ext <<_ACEOF
38622 cat confdefs.h >>conftest.$ac_ext
38623 cat >>conftest.$ac_ext <<_ACEOF
38624 /* end confdefs.h. */
38626 /* Override any GCC internal prototype to avoid an error.
38627 Use char because int might match the return type of a GCC
38628 builtin and then its argument prototype would still apply. */
38641 rm -f conftest.$ac_objext conftest$ac_exeext
38642 if { (ac_try="$ac_link"
38643 case "(($ac_try" in
38644 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
38645 *) ac_try_echo
=$ac_try;;
38647 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
38648 $as_echo "$ac_try_echo") >&5
38649 (eval "$ac_link") 2>conftest.er1
38651 grep -v '^ *+' conftest.er1
>conftest.err
38653 cat conftest.err
>&5
38654 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
38655 (exit $ac_status); } && {
38656 test -z "$ac_c_werror_flag" ||
38657 test ! -s conftest.err
38658 } && test -s conftest
$ac_exeext && {
38659 test "$cross_compiling" = yes ||
38660 $as_test_x conftest
$ac_exeext
38662 ac_cv_lib_des_printf
=yes
38664 $as_echo "$as_me: failed program was:" >&5
38665 sed 's/^/| /' conftest.
$ac_ext >&5
38667 ac_cv_lib_des_printf
=no
38670 rm -rf conftest.dSYM
38671 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
38672 conftest
$ac_exeext conftest.
$ac_ext
38673 LIBS
=$ac_check_lib_save_LIBS
38675 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_des_printf" >&5
38676 $as_echo "$ac_cv_lib_des_printf" >&6; }
38677 if test "x$ac_cv_lib_des_printf" = x
""yes; then
38678 LIBS
="${LIBS} -ldes"
38682 { $as_echo "$as_me:$LINENO: checking for krb_recvauth in -lkrb" >&5
38683 $as_echo_n "checking for krb_recvauth in -lkrb... " >&6; }
38684 if test "${ac_cv_lib_krb_krb_recvauth+set}" = set; then
38685 $as_echo_n "(cached) " >&6
38687 ac_check_lib_save_LIBS
=$LIBS
38689 cat >conftest.
$ac_ext <<_ACEOF
38692 cat confdefs.h
>>conftest.
$ac_ext
38693 cat >>conftest.
$ac_ext <<_ACEOF
38694 /* end confdefs.h. */
38696 /* Override any GCC internal prototype to avoid an error.
38697 Use char because int might match the return type of a GCC
38698 builtin and then its argument prototype would still apply. */
38702 char krb_recvauth ();
38706 return krb_recvauth ();
38711 rm -f conftest.
$ac_objext conftest
$ac_exeext
38712 if { (ac_try
="$ac_link"
38713 case "(($ac_try" in
38714 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
38715 *) ac_try_echo=$ac_try;;
38717 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
38718 $as_echo "$ac_try_echo") >&5
38719 (eval "$ac_link") 2>conftest.er1
38721 grep -v '^ *+' conftest.er1 >conftest.err
38723 cat conftest.err >&5
38724 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
38725 (exit $ac_status); } && {
38726 test -z "$ac_c_werror_flag" ||
38727 test ! -s conftest.err
38728 } && test -s conftest$ac_exeext && {
38729 test "$cross_compiling" = yes ||
38730 $as_test_x conftest$ac_exeext
38732 ac_cv_lib_krb_krb_recvauth=yes
38734 $as_echo "$as_me: failed program was:" >&5
38735 sed 's/^/| /' conftest.$ac_ext >&5
38737 ac_cv_lib_krb_krb_recvauth=no
38740 rm -rf conftest.dSYM
38741 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38742 conftest$ac_exeext conftest.$ac_ext
38743 LIBS=$ac_check_lib_save_LIBS
38745 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_krb_krb_recvauth" >&5
38746 $as_echo "$ac_cv_lib_krb_krb_recvauth" >&6; }
38747 if test "x$ac_cv_lib_krb_krb_recvauth" = x""yes; then
38748 cat >>confdefs.h <<_ACEOF
38749 #define HAVE_LIBKRB 1
38757 { $as_echo "$as_me:$LINENO: checking for krb_recvauth in -lkrb4" >&5
38758 $as_echo_n "checking for krb_recvauth in -lkrb4... " >&6; }
38759 if test "${ac_cv_lib_krb4_krb_recvauth+set}" = set; then
38760 $as_echo_n "(cached) " >&6
38762 ac_check_lib_save_LIBS=$LIBS
38763 LIBS="-lkrb4 $LIBS"
38764 cat >conftest.$ac_ext <<_ACEOF
38767 cat confdefs.h >>conftest.$ac_ext
38768 cat >>conftest.$ac_ext <<_ACEOF
38769 /* end confdefs.h. */
38771 /* Override any GCC internal prototype to avoid an error.
38772 Use char because int might match the return type of a GCC
38773 builtin and then its argument prototype would still apply. */
38777 char krb_recvauth ();
38781 return krb_recvauth ();
38786 rm -f conftest.$ac_objext conftest$ac_exeext
38787 if { (ac_try="$ac_link"
38788 case "(($ac_try" in
38789 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
38790 *) ac_try_echo
=$ac_try;;
38792 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
38793 $as_echo "$ac_try_echo") >&5
38794 (eval "$ac_link") 2>conftest.er1
38796 grep -v '^ *+' conftest.er1
>conftest.err
38798 cat conftest.err
>&5
38799 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
38800 (exit $ac_status); } && {
38801 test -z "$ac_c_werror_flag" ||
38802 test ! -s conftest.err
38803 } && test -s conftest
$ac_exeext && {
38804 test "$cross_compiling" = yes ||
38805 $as_test_x conftest
$ac_exeext
38807 ac_cv_lib_krb4_krb_recvauth
=yes
38809 $as_echo "$as_me: failed program was:" >&5
38810 sed 's/^/| /' conftest.
$ac_ext >&5
38812 ac_cv_lib_krb4_krb_recvauth
=no
38815 rm -rf conftest.dSYM
38816 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
38817 conftest
$ac_exeext conftest.
$ac_ext
38818 LIBS
=$ac_check_lib_save_LIBS
38820 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_krb4_krb_recvauth" >&5
38821 $as_echo "$ac_cv_lib_krb4_krb_recvauth" >&6; }
38822 if test "x$ac_cv_lib_krb4_krb_recvauth" = x
""yes; then
38823 cat >>confdefs.h
<<_ACEOF
38824 #define HAVE_LIBKRB4 1
38827 LIBS
="-lkrb4 $LIBS"
38831 LDFLAGS
=$hold_ldflags
38832 if test -n "$krb_incdir"; then
38833 CPPFLAGS
="$CPPFLAGS -I$krb_incdir"
38838 for ac_func
in krb_get_err_text
38840 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
38841 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
38842 $as_echo_n "checking for $ac_func... " >&6; }
38843 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
38844 $as_echo_n "(cached) " >&6
38846 cat >conftest.
$ac_ext <<_ACEOF
38849 cat confdefs.h
>>conftest.
$ac_ext
38850 cat >>conftest.
$ac_ext <<_ACEOF
38851 /* end confdefs.h. */
38852 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38853 For example, HP-UX 11i <limits.h> declares gettimeofday. */
38854 #define $ac_func innocuous_$ac_func
38856 /* System header to define __stub macros and hopefully few prototypes,
38857 which can conflict with char $ac_func (); below.
38858 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38859 <limits.h> exists even on freestanding compilers. */
38862 # include <limits.h>
38864 # include <assert.h>
38869 /* Override any GCC internal prototype to avoid an error.
38870 Use char because int might match the return type of a GCC
38871 builtin and then its argument prototype would still apply. */
38876 /* The GNU C library defines this for functions which it implements
38877 to always fail with ENOSYS. Some functions are actually named
38878 something starting with __ and the normal name is an alias. */
38879 #if defined __stub_$ac_func || defined __stub___$ac_func
38886 return $ac_func ();
38891 rm -f conftest.
$ac_objext conftest
$ac_exeext
38892 if { (ac_try
="$ac_link"
38893 case "(($ac_try" in
38894 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
38895 *) ac_try_echo=$ac_try;;
38897 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
38898 $as_echo "$ac_try_echo") >&5
38899 (eval "$ac_link") 2>conftest.er1
38901 grep -v '^ *+' conftest.er1 >conftest.err
38903 cat conftest.err >&5
38904 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
38905 (exit $ac_status); } && {
38906 test -z "$ac_c_werror_flag" ||
38907 test ! -s conftest.err
38908 } && test -s conftest$ac_exeext && {
38909 test "$cross_compiling" = yes ||
38910 $as_test_x conftest$ac_exeext
38912 eval "$as_ac_var=yes"
38914 $as_echo "$as_me: failed program was:" >&5
38915 sed 's/^/| /' conftest.$ac_ext >&5
38917 eval "$as_ac_var=no"
38920 rm -rf conftest.dSYM
38921 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38922 conftest$ac_exeext conftest.$ac_ext
38924 ac_res=`eval 'as_val=${'$as_ac_var'}
38925 $as_echo "$as_val"'`
38926 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
38927 $as_echo "$ac_res" >&6; }
38928 as_val=`eval 'as_val=${'$as_ac_var'}
38929 $as_echo "$as_val"'`
38930 if test "x$as_val" = x""yes; then
38931 cat >>confdefs.h <<_ACEOF
38932 #define `$as_echo "HAVE_$ac_func" |
$as_tr_cpp` 1
38942 # Use --with-gssapi[=DIR] to enable GSSAPI support.
38944 # defaults to enabled with DIR in default list below
38946 # Search for /SUNHEA/ and read the comments about this default below.
38949 # Check whether --with-gssapi was given.
38950 if test "${with_gssapi+set}" = set; then
38951 withval=$with_gssapi;
38957 # Try to locate a GSSAPI installation if no location was specified, assuming
38958 # GSSAPI was enabled (the default).
38960 if test -n "$acx_gssapi_cv_gssapi"; then
38961 # Granted, this is a slightly ugly way to print this info, but the
38962 # AC_CHECK_HEADER used in the search for a GSSAPI installation makes using
38963 # AC_CACHE_CHECK worse
38964 { $as_echo "$as_me:$LINENO: checking for GSSAPI" >&5
38965 $as_echo_n "checking for GSSAPI... " >&6; }
38967 if test "${acx_gssapi_cv_gssapi+set}" = set; then
38968 $as_echo_n "(cached) " >&6
38971 if test x$with_gssapi = xyes; then
38972 # --with but no location specified
38973 # assume a gssapi.h or gssapi/gssapi.h locates our install.
38975 # This isn't always strictly true. For instance Solaris 7's SUNHEA (header)
38976 # package installs gssapi.h whether or not the necessary libraries are
38977 # installed. I'm still not sure whether to consider this a bug. The long
38978 # way around is to not consider GSSPAI installed unless gss_import_name is
38979 # found, but that brings up a lot of other hassles, like continuing to let
38980 # gcc & ld generate the error messages when the user uses --with-gssapi=dir
38981 # as a debugging aid. The short way around is to disable GSSAPI by default,
38982 # but I think Sun users have been faced with this for awhile and I haven't
38983 # heard many complaints.
38984 acx_gssapi_save_CPPFLAGS=$CPPFLAGS
38985 for acx_gssapi_cv_gssapi in yes /usr/kerberos /usr/cygnus/kerbnet no; do
38986 if test x$acx_gssapi_cv_gssapi = xno; then
38989 if test x$acx_gssapi_cv_gssapi = xyes; then
38990 { $as_echo "$as_me:$LINENO: checking for GSSAPI" >&5
38991 $as_echo_n "checking for GSSAPI... " >&6; }
38992 { $as_echo "$as_me:$LINENO: result: " >&5
38995 CPPFLAGS="$acx_gssapi_save_CPPFLAGS -I$acx_gssapi_cv_gssapi/include"
38996 { $as_echo "$as_me:$LINENO: checking for GSSAPI in $acx_gssapi_cv_gssapi" >&5
38997 $as_echo_n "checking for GSSAPI in $acx_gssapi_cv_gssapi... " >&6; }
38998 { $as_echo "$as_me:$LINENO: result: " >&5
39001 unset ac_cv_header_gssapi_h
39002 unset ac_cv_header_gssapi_gssapi_h
39003 unset ac_cv_header_krb5_h
39007 for ac_header in gssapi.h gssapi/gssapi.h krb5.h
39009 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" |
$as_tr_sh`
39010 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
39011 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
39012 $as_echo_n "checking for $ac_header... " >&6; }
39013 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
39014 $as_echo_n "(cached) " >&6
39016 ac_res=`eval 'as_val=${'$as_ac_Header'}
39017 $as_echo "$as_val"'`
39018 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
39019 $as_echo "$ac_res" >&6; }
39021 # Is the header compilable?
39022 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
39023 $as_echo_n "checking $ac_header usability... " >&6; }
39024 cat >conftest.$ac_ext <<_ACEOF
39027 cat confdefs.h >>conftest.$ac_ext
39028 cat >>conftest.$ac_ext <<_ACEOF
39029 /* end confdefs.h. */
39030 $ac_includes_default
39031 #include <$ac_header>
39033 rm -f conftest.$ac_objext
39034 if { (ac_try="$ac_compile"
39035 case "(($ac_try" in
39036 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
39037 *) ac_try_echo
=$ac_try;;
39039 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
39040 $as_echo "$ac_try_echo") >&5
39041 (eval "$ac_compile") 2>conftest.er1
39043 grep -v '^ *+' conftest.er1
>conftest.err
39045 cat conftest.err
>&5
39046 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
39047 (exit $ac_status); } && {
39048 test -z "$ac_c_werror_flag" ||
39049 test ! -s conftest.err
39050 } && test -s conftest.
$ac_objext; then
39051 ac_header_compiler
=yes
39053 $as_echo "$as_me: failed program was:" >&5
39054 sed 's/^/| /' conftest.
$ac_ext >&5
39056 ac_header_compiler
=no
39059 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
39060 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
39061 $as_echo "$ac_header_compiler" >&6; }
39063 # Is the header present?
39064 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
39065 $as_echo_n "checking $ac_header presence... " >&6; }
39066 cat >conftest.
$ac_ext <<_ACEOF
39069 cat confdefs.h
>>conftest.
$ac_ext
39070 cat >>conftest.
$ac_ext <<_ACEOF
39071 /* end confdefs.h. */
39072 #include <$ac_header>
39074 if { (ac_try
="$ac_cpp conftest.$ac_ext"
39075 case "(($ac_try" in
39076 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
39077 *) ac_try_echo=$ac_try;;
39079 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
39080 $as_echo "$ac_try_echo") >&5
39081 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
39083 grep -v '^ *+' conftest.er1 >conftest.err
39085 cat conftest.err >&5
39086 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
39087 (exit $ac_status); } >/dev/null && {
39088 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
39089 test ! -s conftest.err
39091 ac_header_preproc=yes
39093 $as_echo "$as_me: failed program was:" >&5
39094 sed 's/^/| /' conftest.$ac_ext >&5
39096 ac_header_preproc=no
39099 rm -f conftest.err conftest.$ac_ext
39100 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
39101 $as_echo "$ac_header_preproc" >&6; }
39103 # So? What about this header?
39104 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
39106 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
39107 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
39108 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
39109 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
39110 ac_header_preproc=yes
39113 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
39114 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
39115 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
39116 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
39117 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
39118 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
39119 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
39120 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
39121 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
39122 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
39123 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
39124 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
39126 ## --------------------------------- ##
39127 ## Report this to bug-cvs@nongnu.org ##
39128 ## --------------------------------- ##
39130 ) | sed "s/^/$as_me: WARNING: /" >&2
39133 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
39134 $as_echo_n "checking for $ac_header... " >&6; }
39135 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
39136 $as_echo_n "(cached) " >&6
39138 eval "$as_ac_Header=\$ac_header_preproc"
39140 ac_res=`eval 'as_val=${'$as_ac_Header'}
39141 $as_echo "$as_val"'`
39142 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
39143 $as_echo "$ac_res" >&6; }
39146 as_val=`eval 'as_val=${'$as_ac_Header'}
39147 $as_echo "$as_val"'`
39148 if test "x$as_val" = x""yes; then
39149 cat >>confdefs.h <<_ACEOF
39150 #define `$as_echo "HAVE_$ac_header" |
$as_tr_cpp` 1
39157 if (test "$ac_cv_header_gssapi_h" = yes ||
39158 test "$ac_cv_header_gssapi_gssapi_h" = yes) &&
39159 test "$ac_cv_header_krb5_h" = yes; then
39163 CPPFLAGS=$acx_gssapi_save_CPPFLAGS
39165 acx_gssapi_cv_gssapi=$with_gssapi
39167 { $as_echo "$as_me:$LINENO: checking for GSSAPI" >&5
39168 $as_echo_n "checking for GSSAPI... " >&6; }
39171 { $as_echo "$as_me:$LINENO: result: $acx_gssapi_cv_gssapi" >&5
39172 $as_echo "$acx_gssapi_cv_gssapi" >&6; }
39175 # Set up GSSAPI includes for later use. We don't bother to check for
39176 # $acx_gssapi_cv_gssapi=no here since that will be caught later.
39178 if test x$acx_gssapi_cv_gssapi = xyes; then
39179 # no special includes necessary
39182 # GSSAPI at $acx_gssapi_cv_gssapi (could be 'no')
39183 GSSAPI_INCLUDES=" -I$acx_gssapi_cv_gssapi/include"
39187 # Get the rest of the information CVS needs to compile with GSSAPI support
39189 if test x$acx_gssapi_cv_gssapi != xno; then
39190 # define HAVE_GSSAPI and set up the includes
39192 cat >>confdefs.h <<\_ACEOF
39193 #define HAVE_GSSAPI /**/
39196 CPPFLAGS=$CPPFLAGS$GSSAPI_INCLUDES
39198 cvs_client_objects="$cvs_client_objects gssapi-client.o"
39200 # locate any other headers
39205 for ac_header in gssapi.h gssapi/gssapi.h gssapi/gssapi_generic.h krb5.h
39207 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" |
$as_tr_sh`
39208 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
39209 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
39210 $as_echo_n "checking for $ac_header... " >&6; }
39211 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
39212 $as_echo_n "(cached) " >&6
39214 ac_res=`eval 'as_val=${'$as_ac_Header'}
39215 $as_echo "$as_val"'`
39216 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
39217 $as_echo "$ac_res" >&6; }
39219 # Is the header compilable?
39220 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
39221 $as_echo_n "checking $ac_header usability... " >&6; }
39222 cat >conftest.$ac_ext <<_ACEOF
39225 cat confdefs.h >>conftest.$ac_ext
39226 cat >>conftest.$ac_ext <<_ACEOF
39227 /* end confdefs.h. */
39228 $ac_includes_default
39229 #include <$ac_header>
39231 rm -f conftest.$ac_objext
39232 if { (ac_try="$ac_compile"
39233 case "(($ac_try" in
39234 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
39235 *) ac_try_echo
=$ac_try;;
39237 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
39238 $as_echo "$ac_try_echo") >&5
39239 (eval "$ac_compile") 2>conftest.er1
39241 grep -v '^ *+' conftest.er1
>conftest.err
39243 cat conftest.err
>&5
39244 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
39245 (exit $ac_status); } && {
39246 test -z "$ac_c_werror_flag" ||
39247 test ! -s conftest.err
39248 } && test -s conftest.
$ac_objext; then
39249 ac_header_compiler
=yes
39251 $as_echo "$as_me: failed program was:" >&5
39252 sed 's/^/| /' conftest.
$ac_ext >&5
39254 ac_header_compiler
=no
39257 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
39258 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
39259 $as_echo "$ac_header_compiler" >&6; }
39261 # Is the header present?
39262 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
39263 $as_echo_n "checking $ac_header presence... " >&6; }
39264 cat >conftest.
$ac_ext <<_ACEOF
39267 cat confdefs.h
>>conftest.
$ac_ext
39268 cat >>conftest.
$ac_ext <<_ACEOF
39269 /* end confdefs.h. */
39270 #include <$ac_header>
39272 if { (ac_try
="$ac_cpp conftest.$ac_ext"
39273 case "(($ac_try" in
39274 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
39275 *) ac_try_echo=$ac_try;;
39277 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
39278 $as_echo "$ac_try_echo") >&5
39279 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
39281 grep -v '^ *+' conftest.er1 >conftest.err
39283 cat conftest.err >&5
39284 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
39285 (exit $ac_status); } >/dev/null && {
39286 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
39287 test ! -s conftest.err
39289 ac_header_preproc=yes
39291 $as_echo "$as_me: failed program was:" >&5
39292 sed 's/^/| /' conftest.$ac_ext >&5
39294 ac_header_preproc=no
39297 rm -f conftest.err conftest.$ac_ext
39298 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
39299 $as_echo "$ac_header_preproc" >&6; }
39301 # So? What about this header?
39302 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
39304 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
39305 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
39306 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
39307 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
39308 ac_header_preproc=yes
39311 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
39312 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
39313 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
39314 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
39315 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
39316 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
39317 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
39318 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
39319 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
39320 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
39321 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
39322 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
39324 ## --------------------------------- ##
39325 ## Report this to bug-cvs@nongnu.org ##
39326 ## --------------------------------- ##
39328 ) | sed "s/^/$as_me: WARNING: /" >&2
39331 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
39332 $as_echo_n "checking for $ac_header... " >&6; }
39333 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
39334 $as_echo_n "(cached) " >&6
39336 eval "$as_ac_Header=\$ac_header_preproc"
39338 ac_res=`eval 'as_val=${'$as_ac_Header'}
39339 $as_echo "$as_val"'`
39340 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
39341 $as_echo "$ac_res" >&6; }
39344 as_val=`eval 'as_val=${'$as_ac_Header'}
39345 $as_echo "$as_val"'`
39346 if test "x$as_val" = x""yes; then
39347 cat >>confdefs.h <<_ACEOF
39348 #define `$as_echo "HAVE_$ac_header" |
$as_tr_cpp` 1
39355 # And look through them for GSS_C_NT_HOSTBASED_SERVICE or its alternatives
39356 { $as_echo "$as_me:$LINENO: checking for GSS_C_NT_HOSTBASED_SERVICE" >&5
39357 $as_echo_n "checking for GSS_C_NT_HOSTBASED_SERVICE... " >&6; }
39358 if test "${acx_gssapi_cv_gss_c_nt_hostbased_service+set}" = set; then
39359 $as_echo_n "(cached) " >&6
39362 acx_gssapi_cv_gss_c_nt_hostbased_service=no
39363 if test "$ac_cv_header_gssapi_h" = "yes"; then
39364 cat >conftest.$ac_ext <<_ACEOF
39367 cat confdefs.h >>conftest.$ac_ext
39368 cat >>conftest.$ac_ext <<_ACEOF
39369 /* end confdefs.h. */
39370 #include <gssapi.h>
39373 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
39374 $EGREP "GSS_C_NT_HOSTBASED_SERVICE" >/dev/null 2>&1; then
39375 acx_gssapi_cv_gss_c_nt_hostbased_service=yes
39378 cat >conftest.$ac_ext <<_ACEOF
39381 cat confdefs.h >>conftest.$ac_ext
39382 cat >>conftest.$ac_ext <<_ACEOF
39383 /* end confdefs.h. */
39384 #include <gssapi.h>
39387 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
39388 $EGREP "gss_nt_service_name" >/dev/null 2>&1; then
39389 acx_gssapi_cv_gss_c_nt_hostbased_service=gss_nt_service_name
39398 if test $acx_gssapi_cv_gss_c_nt_hostbased_service = no &&
39399 test "$ac_cv_header_gssapi_gssapi_h" = "yes"; then
39400 cat >conftest.$ac_ext <<_ACEOF
39403 cat confdefs.h >>conftest.$ac_ext
39404 cat >>conftest.$ac_ext <<_ACEOF
39405 /* end confdefs.h. */
39406 #include <gssapi/gssapi.h>
39409 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
39410 $EGREP "GSS_C_NT_HOSTBASED_SERVICE" >/dev/null 2>&1; then
39411 acx_gssapi_cv_gss_c_nt_hostbased_service=yes
39414 cat >conftest.$ac_ext <<_ACEOF
39417 cat confdefs.h >>conftest.$ac_ext
39418 cat >>conftest.$ac_ext <<_ACEOF
39419 /* end confdefs.h. */
39420 #include <gssapi/gssapi.h>
39423 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
39424 $EGREP "gss_nt_service_name" >/dev/null 2>&1; then
39425 acx_gssapi_cv_gss_c_nt_hostbased_service=gss_nt_service_name
39434 if test $acx_gssapi_cv_gss_c_nt_hostbased_service = no &&
39435 test "$ac_cv_header_gssapi_gssapi_generic_h" = "yes"; then
39436 cat >conftest.$ac_ext <<_ACEOF
39439 cat confdefs.h >>conftest.$ac_ext
39440 cat >>conftest.$ac_ext <<_ACEOF
39441 /* end confdefs.h. */
39442 #include <gssapi/gssapi_generic.h>
39445 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
39446 $EGREP "GSS_C_NT_HOSTBASED_SERVICE" >/dev/null 2>&1; then
39447 acx_gssapi_cv_gss_c_nt_hostbased_service=yes
39450 cat >conftest.$ac_ext <<_ACEOF
39453 cat confdefs.h >>conftest.$ac_ext
39454 cat >>conftest.$ac_ext <<_ACEOF
39455 /* end confdefs.h. */
39456 #include <gssapi/gssapi_generic.h>
39459 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
39460 $EGREP "gss_nt_service_name" >/dev/null 2>&1; then
39461 acx_gssapi_cv_gss_c_nt_hostbased_service=gss_nt_service_name
39472 { $as_echo "$as_me:$LINENO: result: $acx_gssapi_cv_gss_c_nt_hostbased_service" >&5
39473 $as_echo "$acx_gssapi_cv_gss_c_nt_hostbased_service" >&6; }
39474 if test $acx_gssapi_cv_gss_c_nt_hostbased_service != yes &&
39475 test $acx_gssapi_cv_gss_c_nt_hostbased_service != no; then
39476 # don't define for yes since that means it already means something and
39477 # don't define for no since we'd rather the compiler catch the error
39478 # It's debatable whether we'd prefer that the compiler catch the error
39479 # - it seems our estranged developer is more likely to be familiar with
39480 # the intricacies of the compiler than with those of autoconf, but by
39481 # the same token, maybe we'd rather alert them to the fact that most
39482 # of the support they need to fix the problem is installed if they can
39483 # simply locate the appropriate symbol.
39485 cat >>confdefs.h <<_ACEOF
39486 #define GSS_C_NT_HOSTBASED_SERVICE $acx_gssapi_cv_gss_c_nt_hostbased_service
39491 # Expect the libs to be installed parallel to the headers
39493 # We could try once with and once without, but I'm not sure it's worth the
39495 if test x$acx_gssapi_cv_gssapi != xyes; then
39496 if test -z "$LIBS"; then
39497 LIBS="-L$acx_gssapi_cv_gssapi/lib"
39499 LIBS="-L$acx_gssapi_cv_gssapi/lib $LIBS"
39504 # Some of the order below is particular due to library dependencies
39508 # des Heimdal K 0.3d, but Heimdal seems to be set up such
39509 # that it could have been installed from elsewhere.
39511 { $as_echo "$as_me:$LINENO: checking for library containing des_set_odd_parity" >&5
39512 $as_echo_n "checking for library containing des_set_odd_parity... " >&6; }
39513 if test "${ac_cv_search_des_set_odd_parity+set}" = set; then
39514 $as_echo_n "(cached) " >&6
39516 ac_func_search_save_LIBS=$LIBS
39517 cat >conftest.$ac_ext <<_ACEOF
39520 cat confdefs.h >>conftest.$ac_ext
39521 cat >>conftest.$ac_ext <<_ACEOF
39522 /* end confdefs.h. */
39524 /* Override any GCC internal prototype to avoid an error.
39525 Use char because int might match the return type of a GCC
39526 builtin and then its argument prototype would still apply. */
39530 char des_set_odd_parity ();
39534 return des_set_odd_parity ();
39539 for ac_lib in '' des; do
39540 if test -z "$ac_lib"; then
39541 ac_res="none required"
39544 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
39546 rm -f conftest.$ac_objext conftest$ac_exeext
39547 if { (ac_try="$ac_link"
39548 case "(($ac_try" in
39549 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
39550 *) ac_try_echo
=$ac_try;;
39552 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
39553 $as_echo "$ac_try_echo") >&5
39554 (eval "$ac_link") 2>conftest.er1
39556 grep -v '^ *+' conftest.er1
>conftest.err
39558 cat conftest.err
>&5
39559 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
39560 (exit $ac_status); } && {
39561 test -z "$ac_c_werror_flag" ||
39562 test ! -s conftest.err
39563 } && test -s conftest
$ac_exeext && {
39564 test "$cross_compiling" = yes ||
39565 $as_test_x conftest
$ac_exeext
39567 ac_cv_search_des_set_odd_parity
=$ac_res
39569 $as_echo "$as_me: failed program was:" >&5
39570 sed 's/^/| /' conftest.
$ac_ext >&5
39575 rm -rf conftest.dSYM
39576 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
39578 if test "${ac_cv_search_des_set_odd_parity+set}" = set; then
39582 if test "${ac_cv_search_des_set_odd_parity+set}" = set; then
39585 ac_cv_search_des_set_odd_parity
=no
39587 rm conftest.
$ac_ext
39588 LIBS
=$ac_func_search_save_LIBS
39590 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_des_set_odd_parity" >&5
39591 $as_echo "$ac_cv_search_des_set_odd_parity" >&6; }
39592 ac_res
=$ac_cv_search_des_set_odd_parity
39593 if test "$ac_res" != no
; then
39594 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
39600 # com_err Heimdal K 0.3d
39602 # com_err MIT K5 v1.2.2-beta1
39604 { $as_echo "$as_me:$LINENO: checking for library containing com_err" >&5
39605 $as_echo_n "checking for library containing com_err... " >&6; }
39606 if test "${ac_cv_search_com_err+set}" = set; then
39607 $as_echo_n "(cached) " >&6
39609 ac_func_search_save_LIBS
=$LIBS
39610 cat >conftest.
$ac_ext <<_ACEOF
39613 cat confdefs.h
>>conftest.
$ac_ext
39614 cat >>conftest.
$ac_ext <<_ACEOF
39615 /* end confdefs.h. */
39617 /* Override any GCC internal prototype to avoid an error.
39618 Use char because int might match the return type of a GCC
39619 builtin and then its argument prototype would still apply. */
39632 for ac_lib
in '' com_err
; do
39633 if test -z "$ac_lib"; then
39634 ac_res
="none required"
39637 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
39639 rm -f conftest.
$ac_objext conftest
$ac_exeext
39640 if { (ac_try
="$ac_link"
39641 case "(($ac_try" in
39642 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
39643 *) ac_try_echo=$ac_try;;
39645 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
39646 $as_echo "$ac_try_echo") >&5
39647 (eval "$ac_link") 2>conftest.er1
39649 grep -v '^ *+' conftest.er1 >conftest.err
39651 cat conftest.err >&5
39652 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
39653 (exit $ac_status); } && {
39654 test -z "$ac_c_werror_flag" ||
39655 test ! -s conftest.err
39656 } && test -s conftest$ac_exeext && {
39657 test "$cross_compiling" = yes ||
39658 $as_test_x conftest$ac_exeext
39660 ac_cv_search_com_err=$ac_res
39662 $as_echo "$as_me: failed program was:" >&5
39663 sed 's/^/| /' conftest.$ac_ext >&5
39668 rm -rf conftest.dSYM
39669 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39671 if test "${ac_cv_search_com_err+set}" = set; then
39675 if test "${ac_cv_search_com_err+set}" = set; then
39678 ac_cv_search_com_err=no
39680 rm conftest.$ac_ext
39681 LIBS=$ac_func_search_save_LIBS
39683 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_com_err" >&5
39684 $as_echo "$ac_cv_search_com_err" >&6; }
39685 ac_res=$ac_cv_search_com_err
39686 if test "$ac_res" != no; then
39687 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
39693 # asn1 Heimdal K 0.3d -lcom_err
39695 { $as_echo "$as_me:$LINENO: checking for library containing initialize_asn1_error_table_r" >&5
39696 $as_echo_n "checking for library containing initialize_asn1_error_table_r... " >&6; }
39697 if test "${ac_cv_search_initialize_asn1_error_table_r+set}" = set; then
39698 $as_echo_n "(cached) " >&6
39700 ac_func_search_save_LIBS=$LIBS
39701 cat >conftest.$ac_ext <<_ACEOF
39704 cat confdefs.h >>conftest.$ac_ext
39705 cat >>conftest.$ac_ext <<_ACEOF
39706 /* end confdefs.h. */
39708 /* Override any GCC internal prototype to avoid an error.
39709 Use char because int might match the return type of a GCC
39710 builtin and then its argument prototype would still apply. */
39714 char initialize_asn1_error_table_r ();
39718 return initialize_asn1_error_table_r ();
39723 for ac_lib in '' asn1; do
39724 if test -z "$ac_lib"; then
39725 ac_res="none required"
39728 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
39730 rm -f conftest.$ac_objext conftest$ac_exeext
39731 if { (ac_try="$ac_link"
39732 case "(($ac_try" in
39733 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
39734 *) ac_try_echo
=$ac_try;;
39736 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
39737 $as_echo "$ac_try_echo") >&5
39738 (eval "$ac_link") 2>conftest.er1
39740 grep -v '^ *+' conftest.er1
>conftest.err
39742 cat conftest.err
>&5
39743 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
39744 (exit $ac_status); } && {
39745 test -z "$ac_c_werror_flag" ||
39746 test ! -s conftest.err
39747 } && test -s conftest
$ac_exeext && {
39748 test "$cross_compiling" = yes ||
39749 $as_test_x conftest
$ac_exeext
39751 ac_cv_search_initialize_asn1_error_table_r
=$ac_res
39753 $as_echo "$as_me: failed program was:" >&5
39754 sed 's/^/| /' conftest.
$ac_ext >&5
39759 rm -rf conftest.dSYM
39760 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
39762 if test "${ac_cv_search_initialize_asn1_error_table_r+set}" = set; then
39766 if test "${ac_cv_search_initialize_asn1_error_table_r+set}" = set; then
39769 ac_cv_search_initialize_asn1_error_table_r
=no
39771 rm conftest.
$ac_ext
39772 LIBS
=$ac_func_search_save_LIBS
39774 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_initialize_asn1_error_table_r" >&5
39775 $as_echo "$ac_cv_search_initialize_asn1_error_table_r" >&6; }
39776 ac_res
=$ac_cv_search_initialize_asn1_error_table_r
39777 if test "$ac_res" != no
; then
39778 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
39784 # resolv required, but not installed by Heimdal K 0.3d
39786 # resolv MIT K5 1.2.2-beta1
39789 { $as_echo "$as_me:$LINENO: checking for library containing __dn_expand" >&5
39790 $as_echo_n "checking for library containing __dn_expand... " >&6; }
39791 if test "${ac_cv_search___dn_expand+set}" = set; then
39792 $as_echo_n "(cached) " >&6
39794 ac_func_search_save_LIBS
=$LIBS
39795 cat >conftest.
$ac_ext <<_ACEOF
39798 cat confdefs.h
>>conftest.
$ac_ext
39799 cat >>conftest.
$ac_ext <<_ACEOF
39800 /* end confdefs.h. */
39802 /* Override any GCC internal prototype to avoid an error.
39803 Use char because int might match the return type of a GCC
39804 builtin and then its argument prototype would still apply. */
39808 char __dn_expand ();
39812 return __dn_expand ();
39817 for ac_lib
in '' resolv
; do
39818 if test -z "$ac_lib"; then
39819 ac_res
="none required"
39822 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
39824 rm -f conftest.
$ac_objext conftest
$ac_exeext
39825 if { (ac_try
="$ac_link"
39826 case "(($ac_try" in
39827 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
39828 *) ac_try_echo=$ac_try;;
39830 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
39831 $as_echo "$ac_try_echo") >&5
39832 (eval "$ac_link") 2>conftest.er1
39834 grep -v '^ *+' conftest.er1 >conftest.err
39836 cat conftest.err >&5
39837 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
39838 (exit $ac_status); } && {
39839 test -z "$ac_c_werror_flag" ||
39840 test ! -s conftest.err
39841 } && test -s conftest$ac_exeext && {
39842 test "$cross_compiling" = yes ||
39843 $as_test_x conftest$ac_exeext
39845 ac_cv_search___dn_expand=$ac_res
39847 $as_echo "$as_me: failed program was:" >&5
39848 sed 's/^/| /' conftest.$ac_ext >&5
39853 rm -rf conftest.dSYM
39854 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39856 if test "${ac_cv_search___dn_expand+set}" = set; then
39860 if test "${ac_cv_search___dn_expand+set}" = set; then
39863 ac_cv_search___dn_expand=no
39865 rm conftest.$ac_ext
39866 LIBS=$ac_func_search_save_LIBS
39868 { $as_echo "$as_me:$LINENO: result: $ac_cv_search___dn_expand" >&5
39869 $as_echo "$ac_cv_search___dn_expand" >&6; }
39870 ac_res=$ac_cv_search___dn_expand
39871 if test "$ac_res" != no; then
39872 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
39878 # crypto Need by gssapi under FreeBSD 5.4
39880 { $as_echo "$as_me:$LINENO: checking for library containing RC4" >&5
39881 $as_echo_n "checking for library containing RC4... " >&6; }
39882 if test "${ac_cv_search_RC4+set}" = set; then
39883 $as_echo_n "(cached) " >&6
39885 ac_func_search_save_LIBS=$LIBS
39886 cat >conftest.$ac_ext <<_ACEOF
39889 cat confdefs.h >>conftest.$ac_ext
39890 cat >>conftest.$ac_ext <<_ACEOF
39891 /* end confdefs.h. */
39893 /* Override any GCC internal prototype to avoid an error.
39894 Use char because int might match the return type of a GCC
39895 builtin and then its argument prototype would still apply. */
39908 for ac_lib in '' crypto; do
39909 if test -z "$ac_lib"; then
39910 ac_res="none required"
39913 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
39915 rm -f conftest.$ac_objext conftest$ac_exeext
39916 if { (ac_try="$ac_link"
39917 case "(($ac_try" in
39918 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
39919 *) ac_try_echo
=$ac_try;;
39921 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
39922 $as_echo "$ac_try_echo") >&5
39923 (eval "$ac_link") 2>conftest.er1
39925 grep -v '^ *+' conftest.er1
>conftest.err
39927 cat conftest.err
>&5
39928 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
39929 (exit $ac_status); } && {
39930 test -z "$ac_c_werror_flag" ||
39931 test ! -s conftest.err
39932 } && test -s conftest
$ac_exeext && {
39933 test "$cross_compiling" = yes ||
39934 $as_test_x conftest
$ac_exeext
39936 ac_cv_search_RC4
=$ac_res
39938 $as_echo "$as_me: failed program was:" >&5
39939 sed 's/^/| /' conftest.
$ac_ext >&5
39944 rm -rf conftest.dSYM
39945 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
39947 if test "${ac_cv_search_RC4+set}" = set; then
39951 if test "${ac_cv_search_RC4+set}" = set; then
39954 ac_cv_search_RC4
=no
39956 rm conftest.
$ac_ext
39957 LIBS
=$ac_func_search_save_LIBS
39959 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_RC4" >&5
39960 $as_echo "$ac_cv_search_RC4" >&6; }
39961 ac_res
=$ac_cv_search_RC4
39962 if test "$ac_res" != no
; then
39963 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
39969 # crypt Needed by roken under FreeBSD 4.6.
39971 { $as_echo "$as_me:$LINENO: checking for library containing crypt" >&5
39972 $as_echo_n "checking for library containing crypt... " >&6; }
39973 if test "${ac_cv_search_crypt+set}" = set; then
39974 $as_echo_n "(cached) " >&6
39976 ac_func_search_save_LIBS
=$LIBS
39977 cat >conftest.
$ac_ext <<_ACEOF
39980 cat confdefs.h
>>conftest.
$ac_ext
39981 cat >>conftest.
$ac_ext <<_ACEOF
39982 /* end confdefs.h. */
39984 /* Override any GCC internal prototype to avoid an error.
39985 Use char because int might match the return type of a GCC
39986 builtin and then its argument prototype would still apply. */
39999 for ac_lib
in '' crypt; do
40000 if test -z "$ac_lib"; then
40001 ac_res
="none required"
40004 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
40006 rm -f conftest.
$ac_objext conftest
$ac_exeext
40007 if { (ac_try
="$ac_link"
40008 case "(($ac_try" in
40009 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
40010 *) ac_try_echo=$ac_try;;
40012 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
40013 $as_echo "$ac_try_echo") >&5
40014 (eval "$ac_link") 2>conftest.er1
40016 grep -v '^ *+' conftest.er1 >conftest.err
40018 cat conftest.err >&5
40019 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
40020 (exit $ac_status); } && {
40021 test -z "$ac_c_werror_flag" ||
40022 test ! -s conftest.err
40023 } && test -s conftest$ac_exeext && {
40024 test "$cross_compiling" = yes ||
40025 $as_test_x conftest$ac_exeext
40027 ac_cv_search_crypt=$ac_res
40029 $as_echo "$as_me: failed program was:" >&5
40030 sed 's/^/| /' conftest.$ac_ext >&5
40035 rm -rf conftest.dSYM
40036 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40038 if test "${ac_cv_search_crypt+set}" = set; then
40042 if test "${ac_cv_search_crypt+set}" = set; then
40045 ac_cv_search_crypt=no
40047 rm conftest.$ac_ext
40048 LIBS=$ac_func_search_save_LIBS
40050 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_crypt" >&5
40051 $as_echo "$ac_cv_search_crypt" >&6; }
40052 ac_res=$ac_cv_search_crypt
40053 if test "$ac_res" != no; then
40054 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
40060 # roken Heimdal K 0.3d -lresolv
40061 # roken FreeBSD 4.6 -lcrypt
40063 { $as_echo "$as_me:$LINENO: checking for library containing roken_gethostbyaddr" >&5
40064 $as_echo_n "checking for library containing roken_gethostbyaddr... " >&6; }
40065 if test "${ac_cv_search_roken_gethostbyaddr+set}" = set; then
40066 $as_echo_n "(cached) " >&6
40068 ac_func_search_save_LIBS=$LIBS
40069 cat >conftest.$ac_ext <<_ACEOF
40072 cat confdefs.h >>conftest.$ac_ext
40073 cat >>conftest.$ac_ext <<_ACEOF
40074 /* end confdefs.h. */
40076 /* Override any GCC internal prototype to avoid an error.
40077 Use char because int might match the return type of a GCC
40078 builtin and then its argument prototype would still apply. */
40082 char roken_gethostbyaddr ();
40086 return roken_gethostbyaddr ();
40091 for ac_lib in '' roken; do
40092 if test -z "$ac_lib"; then
40093 ac_res="none required"
40096 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
40098 rm -f conftest.$ac_objext conftest$ac_exeext
40099 if { (ac_try="$ac_link"
40100 case "(($ac_try" in
40101 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
40102 *) ac_try_echo
=$ac_try;;
40104 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
40105 $as_echo "$ac_try_echo") >&5
40106 (eval "$ac_link") 2>conftest.er1
40108 grep -v '^ *+' conftest.er1
>conftest.err
40110 cat conftest.err
>&5
40111 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
40112 (exit $ac_status); } && {
40113 test -z "$ac_c_werror_flag" ||
40114 test ! -s conftest.err
40115 } && test -s conftest
$ac_exeext && {
40116 test "$cross_compiling" = yes ||
40117 $as_test_x conftest
$ac_exeext
40119 ac_cv_search_roken_gethostbyaddr
=$ac_res
40121 $as_echo "$as_me: failed program was:" >&5
40122 sed 's/^/| /' conftest.
$ac_ext >&5
40127 rm -rf conftest.dSYM
40128 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
40130 if test "${ac_cv_search_roken_gethostbyaddr+set}" = set; then
40134 if test "${ac_cv_search_roken_gethostbyaddr+set}" = set; then
40137 ac_cv_search_roken_gethostbyaddr
=no
40139 rm conftest.
$ac_ext
40140 LIBS
=$ac_func_search_save_LIBS
40142 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_roken_gethostbyaddr" >&5
40143 $as_echo "$ac_cv_search_roken_gethostbyaddr" >&6; }
40144 ac_res
=$ac_cv_search_roken_gethostbyaddr
40145 if test "$ac_res" != no
; then
40146 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
40152 # k5crypto MIT K5 v1.2.2-beta1
40154 { $as_echo "$as_me:$LINENO: checking for library containing valid_enctype" >&5
40155 $as_echo_n "checking for library containing valid_enctype... " >&6; }
40156 if test "${ac_cv_search_valid_enctype+set}" = set; then
40157 $as_echo_n "(cached) " >&6
40159 ac_func_search_save_LIBS
=$LIBS
40160 cat >conftest.
$ac_ext <<_ACEOF
40163 cat confdefs.h
>>conftest.
$ac_ext
40164 cat >>conftest.
$ac_ext <<_ACEOF
40165 /* end confdefs.h. */
40167 /* Override any GCC internal prototype to avoid an error.
40168 Use char because int might match the return type of a GCC
40169 builtin and then its argument prototype would still apply. */
40173 char valid_enctype ();
40177 return valid_enctype ();
40182 for ac_lib
in '' k5crypto
; do
40183 if test -z "$ac_lib"; then
40184 ac_res
="none required"
40187 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
40189 rm -f conftest.
$ac_objext conftest
$ac_exeext
40190 if { (ac_try
="$ac_link"
40191 case "(($ac_try" in
40192 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
40193 *) ac_try_echo=$ac_try;;
40195 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
40196 $as_echo "$ac_try_echo") >&5
40197 (eval "$ac_link") 2>conftest.er1
40199 grep -v '^ *+' conftest.er1 >conftest.err
40201 cat conftest.err >&5
40202 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
40203 (exit $ac_status); } && {
40204 test -z "$ac_c_werror_flag" ||
40205 test ! -s conftest.err
40206 } && test -s conftest$ac_exeext && {
40207 test "$cross_compiling" = yes ||
40208 $as_test_x conftest$ac_exeext
40210 ac_cv_search_valid_enctype=$ac_res
40212 $as_echo "$as_me: failed program was:" >&5
40213 sed 's/^/| /' conftest.$ac_ext >&5
40218 rm -rf conftest.dSYM
40219 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40221 if test "${ac_cv_search_valid_enctype+set}" = set; then
40225 if test "${ac_cv_search_valid_enctype+set}" = set; then
40228 ac_cv_search_valid_enctype=no
40230 rm conftest.$ac_ext
40231 LIBS=$ac_func_search_save_LIBS
40233 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_valid_enctype" >&5
40234 $as_echo "$ac_cv_search_valid_enctype" >&6; }
40235 ac_res=$ac_cv_search_valid_enctype
40236 if test "$ac_res" != no; then
40237 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
40243 # gen ? ? ? Needed on Irix 5.3 with some
40244 # Irix 5.3 version of Kerberos. I'm not
40245 # sure which since Irix didn't
40246 # get any testing this time
40247 # around. Original comment:
40249 # This is necessary on Irix 5.3, in order to link against libkrb5 --
40250 # there, an_to_ln.o refers to things defined only in -lgen.
40252 { $as_echo "$as_me:$LINENO: checking for library containing compile" >&5
40253 $as_echo_n "checking for library containing compile... " >&6; }
40254 if test "${ac_cv_search_compile+set}" = set; then
40255 $as_echo_n "(cached) " >&6
40257 ac_func_search_save_LIBS=$LIBS
40258 cat >conftest.$ac_ext <<_ACEOF
40261 cat confdefs.h >>conftest.$ac_ext
40262 cat >>conftest.$ac_ext <<_ACEOF
40263 /* end confdefs.h. */
40265 /* Override any GCC internal prototype to avoid an error.
40266 Use char because int might match the return type of a GCC
40267 builtin and then its argument prototype would still apply. */
40280 for ac_lib in '' gen; do
40281 if test -z "$ac_lib"; then
40282 ac_res="none required"
40285 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
40287 rm -f conftest.$ac_objext conftest$ac_exeext
40288 if { (ac_try="$ac_link"
40289 case "(($ac_try" in
40290 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
40291 *) ac_try_echo
=$ac_try;;
40293 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
40294 $as_echo "$ac_try_echo") >&5
40295 (eval "$ac_link") 2>conftest.er1
40297 grep -v '^ *+' conftest.er1
>conftest.err
40299 cat conftest.err
>&5
40300 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
40301 (exit $ac_status); } && {
40302 test -z "$ac_c_werror_flag" ||
40303 test ! -s conftest.err
40304 } && test -s conftest
$ac_exeext && {
40305 test "$cross_compiling" = yes ||
40306 $as_test_x conftest
$ac_exeext
40308 ac_cv_search_compile
=$ac_res
40310 $as_echo "$as_me: failed program was:" >&5
40311 sed 's/^/| /' conftest.
$ac_ext >&5
40316 rm -rf conftest.dSYM
40317 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
40319 if test "${ac_cv_search_compile+set}" = set; then
40323 if test "${ac_cv_search_compile+set}" = set; then
40326 ac_cv_search_compile
=no
40328 rm conftest.
$ac_ext
40329 LIBS
=$ac_func_search_save_LIBS
40331 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_compile" >&5
40332 $as_echo "$ac_cv_search_compile" >&6; }
40333 ac_res
=$ac_cv_search_compile
40334 if test "$ac_res" != no
; then
40335 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
40341 # krb5 ? ? ? -lgen -l???
40344 # krb5 MIT K5 v1.1.1
40346 # krb5 MIT K5 v1.2.2-beta1 -lcrypto -lcom_err
40349 # krb5 MIT K5 v1.2.2-beta1 -lcrypto -lcom_err -lresolv
40351 # krb5 Heimdal K 0.3d -lasn1 -lroken -ldes
40353 { $as_echo "$as_me:$LINENO: checking for library containing krb5_free_context" >&5
40354 $as_echo_n "checking for library containing krb5_free_context... " >&6; }
40355 if test "${ac_cv_search_krb5_free_context+set}" = set; then
40356 $as_echo_n "(cached) " >&6
40358 ac_func_search_save_LIBS
=$LIBS
40359 cat >conftest.
$ac_ext <<_ACEOF
40362 cat confdefs.h
>>conftest.
$ac_ext
40363 cat >>conftest.
$ac_ext <<_ACEOF
40364 /* end confdefs.h. */
40366 /* Override any GCC internal prototype to avoid an error.
40367 Use char because int might match the return type of a GCC
40368 builtin and then its argument prototype would still apply. */
40372 char krb5_free_context ();
40376 return krb5_free_context ();
40381 for ac_lib
in '' krb5
; do
40382 if test -z "$ac_lib"; then
40383 ac_res
="none required"
40386 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
40388 rm -f conftest.
$ac_objext conftest
$ac_exeext
40389 if { (ac_try
="$ac_link"
40390 case "(($ac_try" in
40391 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
40392 *) ac_try_echo=$ac_try;;
40394 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
40395 $as_echo "$ac_try_echo") >&5
40396 (eval "$ac_link") 2>conftest.er1
40398 grep -v '^ *+' conftest.er1 >conftest.err
40400 cat conftest.err >&5
40401 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
40402 (exit $ac_status); } && {
40403 test -z "$ac_c_werror_flag" ||
40404 test ! -s conftest.err
40405 } && test -s conftest$ac_exeext && {
40406 test "$cross_compiling" = yes ||
40407 $as_test_x conftest$ac_exeext
40409 ac_cv_search_krb5_free_context=$ac_res
40411 $as_echo "$as_me: failed program was:" >&5
40412 sed 's/^/| /' conftest.$ac_ext >&5
40417 rm -rf conftest.dSYM
40418 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40420 if test "${ac_cv_search_krb5_free_context+set}" = set; then
40424 if test "${ac_cv_search_krb5_free_context+set}" = set; then
40427 ac_cv_search_krb5_free_context=no
40429 rm conftest.$ac_ext
40430 LIBS=$ac_func_search_save_LIBS
40432 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_krb5_free_context" >&5
40433 $as_echo "$ac_cv_search_krb5_free_context" >&6; }
40434 ac_res=$ac_cv_search_krb5_free_context
40435 if test "$ac_res" != no; then
40436 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
40442 # gssapi_krb5 Only lib needed with MIT K5 v1.2.1, so find it first in
40443 # order to prefer MIT Kerberos. If both MIT & Heimdal
40444 # Kerberos are installed and in the path, this will leave
40445 # some of the libraries above in LIBS unnecessarily, but
40446 # noone would ever do that, right?
40448 # gssapi_krb5 MIT K5 v1.2.2-beta1 -lkrb5
40450 # gssapi Heimdal K 0.3d -lkrb5
40452 { $as_echo "$as_me:$LINENO: checking for library containing gss_import_name" >&5
40453 $as_echo_n "checking for library containing gss_import_name... " >&6; }
40454 if test "${ac_cv_search_gss_import_name+set}" = set; then
40455 $as_echo_n "(cached) " >&6
40457 ac_func_search_save_LIBS=$LIBS
40458 cat >conftest.$ac_ext <<_ACEOF
40461 cat confdefs.h >>conftest.$ac_ext
40462 cat >>conftest.$ac_ext <<_ACEOF
40463 /* end confdefs.h. */
40465 /* Override any GCC internal prototype to avoid an error.
40466 Use char because int might match the return type of a GCC
40467 builtin and then its argument prototype would still apply. */
40471 char gss_import_name ();
40475 return gss_import_name ();
40480 for ac_lib in '' gssapi_krb5 gssapi; do
40481 if test -z "$ac_lib"; then
40482 ac_res="none required"
40485 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
40487 rm -f conftest.$ac_objext conftest$ac_exeext
40488 if { (ac_try="$ac_link"
40489 case "(($ac_try" in
40490 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
40491 *) ac_try_echo
=$ac_try;;
40493 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
40494 $as_echo "$ac_try_echo") >&5
40495 (eval "$ac_link") 2>conftest.er1
40497 grep -v '^ *+' conftest.er1
>conftest.err
40499 cat conftest.err
>&5
40500 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
40501 (exit $ac_status); } && {
40502 test -z "$ac_c_werror_flag" ||
40503 test ! -s conftest.err
40504 } && test -s conftest
$ac_exeext && {
40505 test "$cross_compiling" = yes ||
40506 $as_test_x conftest
$ac_exeext
40508 ac_cv_search_gss_import_name
=$ac_res
40510 $as_echo "$as_me: failed program was:" >&5
40511 sed 's/^/| /' conftest.
$ac_ext >&5
40516 rm -rf conftest.dSYM
40517 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
40519 if test "${ac_cv_search_gss_import_name+set}" = set; then
40523 if test "${ac_cv_search_gss_import_name+set}" = set; then
40526 ac_cv_search_gss_import_name
=no
40528 rm conftest.
$ac_ext
40529 LIBS
=$ac_func_search_save_LIBS
40531 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_gss_import_name" >&5
40532 $as_echo "$ac_cv_search_gss_import_name" >&6; }
40533 ac_res
=$ac_cv_search_gss_import_name
40534 if test "$ac_res" != no
; then
40535 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
40544 # Use --with-zlib to build with a zlib other than the version distributed
40547 # defaults to the included snapshot of zlib
40550 # Check whether --with-external-zlib was given.
40551 if test "${with_external_zlib+set}" = set; then
40552 withval
=$with_external_zlib; with_external_zlib
=$withval
40554 with_external_zlib
=no
40559 # Try to locate a ZLIB installation if no location was specified, assuming
40560 # external ZLIB was enabled.
40562 if test -n "$acx_zlib_cv_external_zlib"; then
40563 # Granted, this is a slightly ugly way to print this info, but the
40564 # AC_CHECK_HEADER used in the search for a ZLIB installation makes using
40565 # AC_CACHE_CHECK worse
40566 { $as_echo "$as_me:$LINENO: checking for external ZLIB" >&5
40567 $as_echo_n "checking for external ZLIB... " >&6; }
40569 if test "${acx_zlib_cv_external_zlib+set}" = set; then
40570 $as_echo_n "(cached) " >&6
40574 # --with but no location specified
40575 # assume zlib.h locates our install.
40577 acx_zlib_save_CPPFLAGS
=$CPPFLAGS
40578 for acx_zlib_cv_external_zlib
in yes /usr
/local no
; do
40579 if test x
$acx_zlib_cv_external_zlib = xno
; then
40582 if test x
$acx_zlib_cv_external_zlib = xyes
; then
40583 { $as_echo "$as_me:$LINENO: checking for external ZLIB" >&5
40584 $as_echo_n "checking for external ZLIB... " >&6; }
40585 { $as_echo "$as_me:$LINENO: result: " >&5
40588 CPPFLAGS
="$acx_zlib_save_CPPFLAGS -I$acx_zlib_cv_external_zlib/include"
40589 { $as_echo "$as_me:$LINENO: checking for external ZLIB in $acx_zlib_cv_external_zlib" >&5
40590 $as_echo_n "checking for external ZLIB in $acx_zlib_cv_external_zlib... " >&6; }
40591 { $as_echo "$as_me:$LINENO: result: " >&5
40594 unset ac_cv_header_zlib_h
40596 for ac_header
in zlib.h
40598 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
40599 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
40600 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
40601 $as_echo_n "checking for $ac_header... " >&6; }
40602 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
40603 $as_echo_n "(cached) " >&6
40605 ac_res
=`eval 'as_val=${'$as_ac_Header'}
40606 $as_echo "$as_val"'`
40607 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
40608 $as_echo "$ac_res" >&6; }
40610 # Is the header compilable?
40611 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
40612 $as_echo_n "checking $ac_header usability... " >&6; }
40613 cat >conftest.
$ac_ext <<_ACEOF
40616 cat confdefs.h
>>conftest.
$ac_ext
40617 cat >>conftest.
$ac_ext <<_ACEOF
40618 /* end confdefs.h. */
40619 $ac_includes_default
40620 #include <$ac_header>
40622 rm -f conftest.
$ac_objext
40623 if { (ac_try
="$ac_compile"
40624 case "(($ac_try" in
40625 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
40626 *) ac_try_echo=$ac_try;;
40628 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
40629 $as_echo "$ac_try_echo") >&5
40630 (eval "$ac_compile") 2>conftest.er1
40632 grep -v '^ *+' conftest.er1 >conftest.err
40634 cat conftest.err >&5
40635 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
40636 (exit $ac_status); } && {
40637 test -z "$ac_c_werror_flag" ||
40638 test ! -s conftest.err
40639 } && test -s conftest.$ac_objext; then
40640 ac_header_compiler=yes
40642 $as_echo "$as_me: failed program was:" >&5
40643 sed 's/^/| /' conftest.$ac_ext >&5
40645 ac_header_compiler=no
40648 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
40649 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
40650 $as_echo "$ac_header_compiler" >&6; }
40652 # Is the header present?
40653 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
40654 $as_echo_n "checking $ac_header presence... " >&6; }
40655 cat >conftest.$ac_ext <<_ACEOF
40658 cat confdefs.h >>conftest.$ac_ext
40659 cat >>conftest.$ac_ext <<_ACEOF
40660 /* end confdefs.h. */
40661 #include <$ac_header>
40663 if { (ac_try="$ac_cpp conftest.$ac_ext"
40664 case "(($ac_try" in
40665 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
40666 *) ac_try_echo
=$ac_try;;
40668 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
40669 $as_echo "$ac_try_echo") >&5
40670 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
40672 grep -v '^ *+' conftest.er1
>conftest.err
40674 cat conftest.err
>&5
40675 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
40676 (exit $ac_status); } >/dev
/null
&& {
40677 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
40678 test ! -s conftest.err
40680 ac_header_preproc
=yes
40682 $as_echo "$as_me: failed program was:" >&5
40683 sed 's/^/| /' conftest.
$ac_ext >&5
40685 ac_header_preproc
=no
40688 rm -f conftest.err conftest.
$ac_ext
40689 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
40690 $as_echo "$ac_header_preproc" >&6; }
40692 # So? What about this header?
40693 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
40695 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
40696 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
40697 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
40698 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
40699 ac_header_preproc
=yes
40702 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
40703 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
40704 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
40705 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
40706 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
40707 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
40708 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
40709 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
40710 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
40711 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
40712 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
40713 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
40715 ## --------------------------------- ##
40716 ## Report this to bug-cvs@nongnu.org ##
40717 ## --------------------------------- ##
40719 ) |
sed "s/^/$as_me: WARNING: /" >&2
40722 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
40723 $as_echo_n "checking for $ac_header... " >&6; }
40724 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
40725 $as_echo_n "(cached) " >&6
40727 eval "$as_ac_Header=\$ac_header_preproc"
40729 ac_res
=`eval 'as_val=${'$as_ac_Header'}
40730 $as_echo "$as_val"'`
40731 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
40732 $as_echo "$ac_res" >&6; }
40735 as_val
=`eval 'as_val=${'$as_ac_Header'}
40736 $as_echo "$as_val"'`
40737 if test "x$as_val" = x
""yes; then
40738 cat >>confdefs.h
<<_ACEOF
40739 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
40746 if test "$ac_cv_header_zlib_h" = yes; then
40750 CPPFLAGS
=$acx_zlib_save_CPPFLAGS
40751 { $as_echo "$as_me:$LINENO: checking for external ZLIB" >&5
40752 $as_echo_n "checking for external ZLIB... " >&6; }
40755 { $as_echo "$as_me:$LINENO: result: $acx_zlib_cv_external_zlib" >&5
40756 $as_echo "$acx_zlib_cv_external_zlib" >&6; }
40760 # Output a pretty message naming our selected ZLIB "external" or "package"
40761 # so that any warnings printed by the version check make more sense.
40763 { $as_echo "$as_me:$LINENO: checking selected ZLIB" >&5
40764 $as_echo_n "checking selected ZLIB... " >&6; }
40765 if test "x$with_external_zlib" = xno
; then
40766 { $as_echo "$as_me:$LINENO: result: package" >&5
40767 $as_echo "package" >&6; }
40769 { $as_echo "$as_me:$LINENO: result: external" >&5
40770 $as_echo "external" >&6; }
40775 # Verify that the ZLIB we aren't using isn't newer than the one we are.
40777 if test "x$acx_zlib_cv_external_zlib" != xno
; then
40778 LOCAL_ZLIB_VERSION
=`sed -n '/^#define ZLIB_VERSION ".*"$/{
40779 s/^#define ZLIB_VERSION "\(.*\)"$/\1/;
40780 p;}' <$srcdir/zlib/zlib.h 2>&5`
40781 cat >conftest.
$ac_ext <<_ACEOF
40784 cat confdefs.h
>>conftest.
$ac_ext
40785 cat >>conftest.
$ac_ext <<_ACEOF
40786 /* end confdefs.h. */
40790 ac_extract_cpp_result
=`(eval "$ac_cpp -dM conftest.$ac_ext") 2>&5 |
40791 sed -n "/^#define ZLIB_VERSION /{
40792 s/^#define ZLIB_VERSION //;
40796 if test -n "$ac_extract_cpp_result"; then
40797 ZLIB_VERSION
=$ac_extract_cpp_result
40801 ZLIB_VERSION
=`echo "$ZLIB_VERSION" |sed 's/"//g'`
40802 if test "x$LOCAL_ZLIB_VERSION" = "x$ZLIB_VERSION"; then
40803 # the strings are equal. run ACTION-IF-EQUAL and bail
40806 # first unletter the versions
40807 # this only works for a single trailing letter
40808 asx_version_1
=`echo "$LOCAL_ZLIB_VERSION" |
40809 sed 's/\(abcedfghi\)/.\1/;
40810 s/\(jklmnopqrs\)/.1\1/;
40811 s/\(tuvwxyz\)/.2\1/;
40812 y/abcdefghijklmnopqrstuvwxyz/12345678901234567890123456/;'`
40813 asx_version_2
=`echo "$ZLIB_VERSION" |
40814 sed 's/\(abcedfghi\)/.\1/;
40815 s/\(jklmnopqrs\)/.1\1/;
40816 s/\(tuvwxyz\)/.2\1/;
40817 y/abcdefghijklmnopqrstuvwxyz/12345678901234567890123456/;'`
40822 for vsub1
in $asx_version_1; do
40823 vsub2
=`echo "$asx_version_2" |awk -F. "{print \\\$$asx_count}"`
40824 if test -z "$vsub2" ||
test $vsub1 -gt $vsub2; then
40827 elif test $vsub1 -lt $vsub2; then
40830 asx_count
=`expr $asx_count + 1`
40833 if test $asx_retval -eq -1; then
40834 if test "x$with_external_zlib" = xno
; then
40835 { $as_echo "$as_me:$LINENO: WARNING: Found external ZLIB with a more recent version than the
40836 package version ($ZLIB_VERSION > $LOCAL_ZLIB_VERSION). configure with the
40837 --with-external-zlib option to select the more recent version." >&5
40838 $as_echo "$as_me: WARNING: Found external ZLIB with a more recent version than the
40839 package version ($ZLIB_VERSION > $LOCAL_ZLIB_VERSION). configure with the
40840 --with-external-zlib option to select the more recent version." >&2;}
40843 if test "x$with_external_zlib" != xno
; then
40844 { $as_echo "$as_me:$LINENO: WARNING: Package ZLIB is more recent than requested external version
40845 ($LOCAL_ZLIB_VERSION > $ZLIB_VERSION). configure with the --without-external-zlib
40846 option to select the more recent version." >&5
40847 $as_echo "$as_me: WARNING: Package ZLIB is more recent than requested external version
40848 ($LOCAL_ZLIB_VERSION > $ZLIB_VERSION). configure with the --without-external-zlib
40849 option to select the more recent version." >&2;}
40858 # Now set with_external_zlib to our discovered value or the user specified
40859 # value, as appropriate.
40860 if test x
$with_external_zlib = xyes
; then
40861 with_external_zlib
=$acx_zlib_cv_external_zlib
40863 # $with_external_zlib could still be "no"
40867 # Set up ZLIB includes for later use.
40869 if test x
$with_external_zlib != xyes \
40870 && test x
$with_external_zlib != no
; then
40871 if test -z "$CPPFLAGS"; then
40872 CPPFLAGS
="-I$with_external_zlib/include"
40874 CPPFLAGS
="$CPPFLAGS -I$with_external_zlib/include"
40876 if test -z "$LDFLAGS"; then
40877 LDFLAGS
="-L$with_external_zlib/lib"
40879 LDFLAGS
="$LDFLAGS -L$with_external_zlib/lib"
40886 if test x
$with_external_zlib = xno
; then
40887 # We need ZLIB_CPPFLAGS so that later executions of cpp from configure
40888 # don't try to interpret $(top_srcdir)
40889 ZLIB_CPPFLAGS
='-I$(top_srcdir)/zlib'
40890 ZLIB_LIBS
='$(top_builddir)/zlib/libz.a'
40891 # ZLIB_SUBDIRS is only used in the top level Makefiles.
40894 # We know what to do now, so set up the CPPFLAGS, LDFLAGS, and LIBS for later
40896 if test -z "$LIBS"; then
40903 # Verify external installed zlib works
40905 # Ideally, we would also check that the version is newer
40907 { $as_echo "$as_me:$LINENO: checking that ZLIB library works" >&5
40908 $as_echo_n "checking that ZLIB library works... " >&6; }
40909 cat >conftest.
$ac_ext <<_ACEOF
40912 cat confdefs.h
>>conftest.
$ac_ext
40913 cat >>conftest.
$ac_ext <<_ACEOF
40914 /* end confdefs.h. */
40919 int i = Z_OK; const char *version = zlibVersion();
40924 rm -f conftest.
$ac_objext conftest
$ac_exeext
40925 if { (ac_try
="$ac_link"
40926 case "(($ac_try" in
40927 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
40928 *) ac_try_echo=$ac_try;;
40930 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
40931 $as_echo "$ac_try_echo") >&5
40932 (eval "$ac_link") 2>conftest.er1
40934 grep -v '^ *+' conftest.er1 >conftest.err
40936 cat conftest.err >&5
40937 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
40938 (exit $ac_status); } && {
40939 test -z "$ac_c_werror_flag" ||
40940 test ! -s conftest.err
40941 } && test -s conftest$ac_exeext && {
40942 test "$cross_compiling" = yes ||
40943 $as_test_x conftest$ac_exeext
40945 { $as_echo "$as_me:$LINENO: result: yes" >&5
40946 $as_echo "yes" >&6; }
40948 $as_echo "$as_me: failed program was:" >&5
40949 sed 's/^/| /' conftest.$ac_ext >&5
40951 { $as_echo "$as_me:$LINENO: result: no" >&5
40952 $as_echo "no" >&6; }
40953 { { $as_echo "$as_me:$LINENO: error: ZLIB failed to link" >&5
40954 $as_echo "$as_me: error: ZLIB failed to link" >&2;}
40955 { (exit 1); exit 1; }; }
40958 rm -rf conftest.dSYM
40959 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40960 conftest$ac_exeext conftest.$ac_ext
40966 # What remote shell transport should our client cvs default to using?
40968 # Check whether --with-rsh was given.
40969 if test "${with_rsh+set}" = set; then
40976 if test no = "$with_rsh"; then
40977 { $as_echo "$as_me:$LINENO: WARNING: Failed to find usable remote shell. Using 'rsh'." >&5
40978 $as_echo "$as_me: WARNING: Failed to find usable remote shell. Using 'rsh'." >&2;}
40980 elif test yes = "$with_rsh"; then
40981 # Make --with-rsh mean the same thing as --with-rsh=rsh
40985 if echo $with_rsh |grep ^/ >/dev/null; then
40986 # If $with_rsh is an absolute path, issue a warning if the executable
40987 # doesn't exist or isn't usable, but then trust the user and use it
40989 with_default_rsh=$with_rsh
40990 { $as_echo "$as_me:$LINENO: checking for a remote shell" >&5
40991 $as_echo_n "checking for a remote shell... " >&6; }
40992 if ! test -f $with_rsh \
40993 || ! test -x $with_rsh; then
40994 # warn the user that they may encounter problems
40995 { $as_echo "$as_me:$LINENO: WARNING: $with_rsh is not a path to an executable file" >&5
40996 $as_echo "$as_me: WARNING: $with_rsh is not a path to an executable file" >&2;}
40999 # Search for a remote shell
41000 for ac_prog in $with_rsh
41002 # Extract the first word of "$ac_prog", so it can be a program name with args.
41003 set dummy $ac_prog; ac_word=$2
41004 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
41005 $as_echo_n "checking for $ac_word... " >&6; }
41006 if test "${ac_cv_prog_with_default_rsh+set}" = set; then
41007 $as_echo_n "(cached) " >&6
41009 if test -n "$with_default_rsh"; then
41010 ac_cv_prog_with_default_rsh="$with_default_rsh" # Let the user override the test.
41012 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
41013 for as_dir in $PATH
41016 test -z "$as_dir" && as_dir=.
41017 for ac_exec_ext in '' $ac_executable_extensions; do
41018 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
41019 ac_cv_prog_with_default_rsh="$ac_prog"
41020 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
41029 with_default_rsh=$ac_cv_prog_with_default_rsh
41030 if test -n "$with_default_rsh"; then
41031 { $as_echo "$as_me:$LINENO: result: $with_default_rsh" >&5
41032 $as_echo "$with_default_rsh" >&6; }
41034 { $as_echo "$as_me:$LINENO: result: no" >&5
41035 $as_echo "no" >&6; }
41039 test -n "$with_default_rsh" && break
41041 test -n "$with_default_rsh" || with_default_rsh=""rsh""
41046 cat >>confdefs.h <<_ACEOF
41047 #define RSH_DFLT "$with_default_rsh"
41050 RSH_DFLT=$with_default_rsh
41056 # Let the confiscator request a specific editor
41058 # Check whether --with-editor was given.
41059 if test "${with_editor+set}" = set; then
41060 withval=$with_editor;
41066 # If --with-editor was supplied with an argument, let it override $EDITOR from
41067 # the user's environment. We need to unset EDITOR here because AC_CHECK_PROGS
41068 # will let the value of EDITOR ride when it is set rather than searching. We
41069 # ignore the --without-editor case since it will be caught below.
41070 if test -n "$EDITOR" && test yes != $with_editor; then
41071 $as_unset EDITOR || test "${EDITOR+set}" != set || { EDITOR=; export EDITOR; }
41074 # Set the default when --with-editor wasn't supplied or when it was supplied
41075 # without an argument.
41076 if test yes = $with_editor; then
41077 with_editor="vim vi emacs nano pico edit"
41080 if echo $with_editor |grep ^/ >/dev/null; then
41081 # If $with_editor is an absolute path, issue a warning if the executable
41082 # doesn't exist or isn't usable, but then trust the user and use it
41084 EDITOR=$with_editor
41085 { $as_echo "$as_me:$LINENO: checking for an editor" >&5
41086 $as_echo_n "checking for an editor... " >&6; }
41087 { $as_echo "$as_me:$LINENO: result: $EDITOR" >&5
41088 $as_echo "$EDITOR" >&6; }
41089 if ! test -f $with_editor \
41090 || ! test -x $with_editor; then
41091 # warn the user that they may encounter problems
41092 { $as_echo "$as_me:$LINENO: WARNING: \`$with_editor' is not a path to an executable file" >&5
41093 $as_echo "$as_me: WARNING: \`$with_editor' is not a path to an executable
file" >&2;}
41095 elif test no != "${with_editor}"; then
41096 # Search for an editor
41097 for ac_prog in $with_editor
41099 # Extract the first word of "$ac_prog", so it can be a program name with args.
41100 set dummy $ac_prog; ac_word=$2
41101 { $as_echo "$as_me:$LINENO: checking
for $ac_word" >&5
41102 $as_echo_n "checking
for $ac_word...
" >&6; }
41103 if test "${ac_cv_prog_EDITOR+set}" = set; then
41104 $as_echo_n "(cached
) " >&6
41106 if test -n "$EDITOR"; then
41107 ac_cv_prog_EDITOR="$EDITOR" # Let the user override the test.
41109 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
41110 for as_dir in $PATH
41113 test -z "$as_dir" && as_dir=.
41114 for ac_exec_ext in '' $ac_executable_extensions; do
41115 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
41116 ac_cv_prog_EDITOR="$ac_prog"
41117 $as_echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
41126 EDITOR=$ac_cv_prog_EDITOR
41127 if test -n "$EDITOR"; then
41128 { $as_echo "$as_me:$LINENO: result
: $EDITOR" >&5
41129 $as_echo "$EDITOR" >&6; }
41131 { $as_echo "$as_me:$LINENO: result
: no
" >&5
41132 $as_echo "no
" >&6; }
41136 test -n "$EDITOR" && break
41138 test -n "$EDITOR" || EDITOR="no
"
41140 if test no = "${EDITOR}"; then
41141 { { $as_echo "$as_me:$LINENO: error
:
41142 Failed to
find a text
file editor. CVS cannot be compiled
41143 without a default log message editor. Searched
for
41144 \
`$with_editor'. Try \`configure
--with-editor'." >&5
41145 $as_echo "$as_me: error:
41146 Failed to find a text file editor. CVS cannot be compiled
41147 without a default log message editor. Searched for
41148 \`$with_editor'. Try \
`configure --with-editor'." >&2;}
41149 { (exit 1); exit 1; }; }
41152 { { $as_echo "$as_me:$LINENO: error:
41153 CVS cannot be compiled without a default log message editor.
41154 Try \`configure
--with-editor'." >&5
41155 $as_echo "$as_me: error:
41156 CVS cannot be compiled without a default log message editor.
41157 Try \`configure --with-editor'.
" >&2;}
41158 { (exit 1); exit 1; }; }
41162 cat >>confdefs.h <<_ACEOF
41163 #define EDITOR_DFLT "$EDITOR"
41171 # Check whether --with-hardcoded-pam-service-name was given.
41172 if test "${with_hardcoded_pam_service_name+set}" = set; then
41173 withval=$with_hardcoded_pam_service_name;
41175 with_hardcoded_pam_service_name=cvs
41179 if test "x
$with_hardcoded_pam_service_name" = xno ||
41180 test "x
$with_hardcoded_pam_service_name" = xprogram_name; then
41182 cat >>confdefs.h <<\_ACEOF
41183 #define PAM_SERVICE_NAME program_name
41187 if test x"$with_hardcoded_pam_service_name" = xyes; then
41188 with_hardcoded_pam_service_name=cvs
41190 cat >>confdefs.h <<_ACEOF
41191 #define PAM_SERVICE_NAME "$with_hardcoded_pam_service_name"
41199 # Check whether --with-tmpdir was given.
41200 if test "${with_tmpdir+set}" = set; then
41201 withval=$with_tmpdir;
41205 { $as_echo "$as_me:$LINENO: checking
for temporary directory
" >&5
41206 $as_echo_n "checking
for temporary directory...
" >&6; }
41207 if test -z "$with_tmpdir" || test yes = "$with_tmpdir"; then
41208 for with_tmpdir in /tmp /var/tmp no; do
41209 if test -d "$with_tmpdir" && test -x "$with_tmpdir" \
41210 && test -w "$with_tmpdir" && test -r "$with_tmpdir"; then
41214 if test no = "$with_tmpdir"; then
41215 { $as_echo "$as_me:$LINENO: WARNING
: Failed to
find usable temporary directory. Using
'/tmp'.
" >&5
41216 $as_echo "$as_me: WARNING
: Failed to
find usable temporary directory. Using
'/tmp'.
" >&2;}
41219 { $as_echo "$as_me:$LINENO: result
: $with_tmpdir" >&5
41220 $as_echo "$with_tmpdir" >&6; }
41221 elif ! echo "$with_tmpdir" |grep '^[\\/]'; then
41222 { $as_echo "$as_me:$LINENO: result
: $with_tmpdir" >&5
41223 $as_echo "$with_tmpdir" >&6; }
41224 { { $as_echo "$as_me:$LINENO: error
: --with-tmpdir requires an absolute path.
" >&5
41225 $as_echo "$as_me: error
: --with-tmpdir requires an absolute path.
" >&2;}
41226 { (exit 1); exit 1; }; }
41227 elif ! test -d "$with_tmpdir" || ! test -x "$with_tmpdir" \
41228 || ! test -w "$with_tmpdir" || ! test -r "$with_tmpdir"; then
41229 { $as_echo "$as_me:$LINENO: result
: $with_tmpdir" >&5
41230 $as_echo "$with_tmpdir" >&6; }
41231 { $as_echo "$as_me:$LINENO: WARNING
: User supplied temporary directory
('$with_tmpdir') does not
41232 exist or lacks sufficient permissions
for read
/write.
" >&5
41233 $as_echo "$as_me: WARNING
: User supplied temporary directory
('$with_tmpdir') does not
41234 exist or lacks sufficient permissions
for read
/write.
" >&2;}
41238 cat >>confdefs.h <<_ACEOF
41239 #define TMPDIR_DFLT "$with_tmpdir"
41247 # Check whether --with-umask was given.
41248 if test "${with_umask+set}" = set; then
41249 withval=$with_umask;
41253 if test -z "$with_umask" || test yes = "$with_umask"; then
41255 elif test no = "$with_umask"; then
41260 cat >>confdefs.h <<_ACEOF
41261 #define UMASK_DFLT $with_umask
41267 # Check whether --with-cvs-admin-group was given.
41268 if test "${with_cvs_admin_group+set}" = set; then
41269 withval=$with_cvs_admin_group;
41271 with_cvs_admin_group=cvsadmin
41275 if test yes = "$with_cvs_admin_group"; then
41276 with_cvs_admin_group=cvsadmin
41278 if test no != "$with_cvs_admin_group"; then
41280 cat >>confdefs.h <<_ACEOF
41281 #define CVS_ADMIN_GROUP "$with_cvs_admin_group"
41287 # Check whether --enable-cvs-ndbm was given.
41288 if test "${enable_cvs_ndbm+set}" = set; then
41289 enableval=$enable_cvs_ndbm;
41291 enable_cvs_ndbm=yes
41294 if test no != "$enable_cvs_ndbm"; then
41296 cat >>confdefs.h <<\_ACEOF
41310 # Check for options requesting client and server feature. If none are
41311 # given and we have connect(), we want the full client & server arrangement.
41312 # Check whether --enable-client was given.
41313 if test "${enable_client+set}" = set; then
41314 enableval=$enable_client;
41316 enable_client=$ac_cv_search_connect
41319 if test no != "$enable_client"; then
41321 cat >>confdefs.h <<\_ACEOF
41322 #define CLIENT_SUPPORT 1
41329 # Check whether --enable-password-authenticated-client was given.
41330 if test "${enable_password_authenticated_client+set}" = set; then
41331 enableval=$enable_password_authenticated_client;
41333 enable_password_authenticated_client=$enable_client
41337 if test xno != "x
$enable_password_authenticated_client"; then
41338 if test xno != "x
$enable_client"; then
41340 cat >>confdefs.h <<\_ACEOF
41341 #define AUTH_CLIENT_SUPPORT 1
41345 { $as_echo "$as_me:$LINENO: WARNING
: --enable-password-authenticated-client is meaningless with
41346 the CVS client disabled
(--disable-client)" >&5
41347 $as_echo "$as_me: WARNING
: --enable-password-authenticated-client is meaningless with
41348 the CVS client disabled
(--disable-client)" >&2;}
41355 # Check whether --enable-server was given.
41356 if test "${enable_server+set}" = set; then
41357 enableval=$enable_server;
41359 enable_server=$ac_cv_search_connect
41363 if test no != "$enable_server"; then
41365 cat >>confdefs.h <<\_ACEOF
41366 #define SERVER_SUPPORT 1
41370 { $as_echo "$as_me:$LINENO: checking
for library containing
crypt" >&5
41371 $as_echo_n "checking
for library containing
crypt...
" >&6; }
41372 if test "${ac_cv_search_crypt+set}" = set; then
41373 $as_echo_n "(cached
) " >&6
41375 ac_func_search_save_LIBS=$LIBS
41376 cat >conftest.$ac_ext <<_ACEOF
41379 cat confdefs.h >>conftest.$ac_ext
41380 cat >>conftest.$ac_ext <<_ACEOF
41381 /* end confdefs.h. */
41383 /* Override any GCC internal prototype to avoid an error.
41384 Use char because int might match the return type of a GCC
41385 builtin and then its argument prototype would still apply. */
41398 for ac_lib in '' crypt; do
41399 if test -z "$ac_lib"; then
41400 ac_res="none required
"
41403 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
41405 rm -f conftest.$ac_objext conftest$ac_exeext
41406 if { (ac_try="$ac_link"
41407 case "(($ac_try" in
41408 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41409 *) ac_try_echo=$ac_try;;
41411 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
41412 $as_echo "$ac_try_echo") >&5
41413 (eval "$ac_link") 2>conftest.er1
41415 grep -v '^ *+' conftest.er1 >conftest.err
41417 cat conftest.err >&5
41418 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
41419 (exit $ac_status); } && {
41420 test -z "$ac_c_werror_flag" ||
41421 test ! -s conftest.err
41422 } && test -s conftest$ac_exeext && {
41423 test "$cross_compiling" = yes ||
41424 $as_test_x conftest$ac_exeext
41426 ac_cv_search_crypt=$ac_res
41428 $as_echo "$as_me: failed program was
:" >&5
41429 sed 's/^/| /' conftest.$ac_ext >&5
41434 rm -rf conftest.dSYM
41435 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
41437 if test "${ac_cv_search_crypt+set}" = set; then
41441 if test "${ac_cv_search_crypt+set}" = set; then
41444 ac_cv_search_crypt=no
41446 rm conftest.$ac_ext
41447 LIBS=$ac_func_search_save_LIBS
41449 { $as_echo "$as_me:$LINENO: result
: $ac_cv_search_crypt" >&5
41450 $as_echo "$ac_cv_search_crypt" >&6; }
41451 ac_res=$ac_cv_search_crypt
41452 if test "$ac_res" != no; then
41453 test "$ac_res" = "none required
" || LIBS="$ac_res $LIBS"
41455 cat >>confdefs.h <<\_ACEOF
41456 #define HAVE_CRYPT 1
41460 cat >>confdefs.h <<\_ACEOF
41461 #define AUTH_SERVER_SUPPORT 1
41466 # Check whether --enable-server-flow-control was given.
41467 if test "${enable_server_flow_control+set}" = set; then
41468 enableval=$enable_server_flow_control; if test yes = $enable_server_flow_control; then
41469 enable_server_flow_control=1M,2M
41472 enable_server_flow_control=1M,2M
41475 if test no != $enable_server_flow_control; then
41476 ccvs_lwm=`expr "$enable_server_flow_control" : '\(.*\),'`
41477 ccvs_hwm=`expr "$enable_server_flow_control" : '.*,\(.*\)'`
41478 ccvs_lwm_E=`expr "$ccvs_lwm" : '[0-9][0-9]*\(.*\)'`
41479 ccvs_lwm=`expr "$ccvs_lwm" : '\([0-9][0-9]*\)'`
41480 test "" != "$ccvs_lwm" || ccvs_lwm_E="?
"
41481 case $ccvs_lwm_E in
41482 G) ccvs_lwm="$ccvs_lwm * 1024 * 1024 * 1024";;
41483 M) ccvs_lwm="$ccvs_lwm * 1024 * 1024";;
41484 k) ccvs_lwm="$ccvs_lwm * 1024";;
41486 *) { { $as_echo "$as_me:$LINENO: error
: Can
't parse argument to --enable-server-flow-control
41487 ('$enable_server_flow_control') as <lwm>,<hwm>" >&5
41488 $as_echo "$as_me: error: Can't parse argument to
--enable-server-flow-control
41489 ('$enable_server_flow_control') as
<lwm
>,<hwm
>" >&2;}
41490 { (exit 1); exit 1; }; }
41492 ccvs_hwm_E=`expr "$ccvs_hwm" : '[0-9][0-9]*\(.*\)'`
41493 ccvs_hwm=`expr "$ccvs_hwm" : '\([0-9][0-9]*\).*'`
41494 test "" != "$ccvs_hwm" || ccvs_hwm_E="?
"
41495 case $ccvs_hwm_E in
41496 G) ccvs_hwm="$ccvs_hwm * 1024 * 1024 * 1024";;
41497 M) ccvs_hwm="$ccvs_hwm * 1024 * 1024";;
41498 k) ccvs_hwm="$ccvs_hwm * 1024";;
41499 b | '') ccvs_hwm="$ccvs_hwm";;
41500 *) { { $as_echo "$as_me:$LINENO: error
: Can
't parse argument to --enable-server-flow-control
41501 ('$enable_server_flow_control') as <lwm>,<hwm>" >&5
41502 $as_echo "$as_me: error: Can't parse argument to
--enable-server-flow-control
41503 ('$enable_server_flow_control') as
<lwm
>,<hwm
>" >&2;}
41504 { (exit 1); exit 1; }; }
41508 cat >>confdefs.h <<\_ACEOF
41509 #define SERVER_FLOWCONTROL 1
41513 cat >>confdefs.h <<_ACEOF
41514 #define SERVER_LO_WATER ($ccvs_lwm)
41518 cat >>confdefs.h <<_ACEOF
41519 #define SERVER_HI_WATER ($ccvs_hwm)
41522 fi # enable_server_flow_control
41528 # Check whether --enable-proxy was given.
41529 if test "${enable_proxy+set}" = set; then
41530 enableval=$enable_proxy;
41532 if test xno != "x
$enable_client" && test xno != "x
$enable_server"; then
41540 if test no != "$enable_proxy"; then
41541 if test xno = "x
$enable_client" || test xno = "x
$enable_server"; then
41542 { $as_echo "$as_me:$LINENO: WARNING
: --enable-proxy is meaningless when either the CVS client or the
41543 CVS server is disabled
(--disable-client and
--disable-server).
" >&5
41544 $as_echo "$as_me: WARNING
: --enable-proxy is meaningless when either the CVS client or the
41545 CVS server is disabled
(--disable-client and
--disable-server).
" >&2;}
41548 cat >>confdefs.h <<\_ACEOF
41549 #define PROXY_SUPPORT 1
41557 # Check whether --enable-pam was given.
41558 if test "${enable_pam+set}" = set; then
41559 enableval=$enable_pam;
41566 if test yes = $enable_pam; then
41567 ac_pam_header_available=
41569 if test "${ac_cv_header_security_pam_appl_h+set}" = set; then
41570 { $as_echo "$as_me:$LINENO: checking
for security
/pam_appl.h
" >&5
41571 $as_echo_n "checking
for security
/pam_appl.h...
" >&6; }
41572 if test "${ac_cv_header_security_pam_appl_h+set}" = set; then
41573 $as_echo_n "(cached
) " >&6
41575 { $as_echo "$as_me:$LINENO: result
: $ac_cv_header_security_pam_appl_h" >&5
41576 $as_echo "$ac_cv_header_security_pam_appl_h" >&6; }
41578 # Is the header compilable?
41579 { $as_echo "$as_me:$LINENO: checking security
/pam_appl.h usability
" >&5
41580 $as_echo_n "checking security
/pam_appl.h usability...
" >&6; }
41581 cat >conftest.$ac_ext <<_ACEOF
41584 cat confdefs.h >>conftest.$ac_ext
41585 cat >>conftest.$ac_ext <<_ACEOF
41586 /* end confdefs.h. */
41587 $ac_includes_default
41588 #include <security/pam_appl.h>
41590 rm -f conftest.$ac_objext
41591 if { (ac_try="$ac_compile"
41592 case "(($ac_try" in
41593 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41594 *) ac_try_echo=$ac_try;;
41596 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
41597 $as_echo "$ac_try_echo") >&5
41598 (eval "$ac_compile") 2>conftest.er1
41600 grep -v '^ *+' conftest.er1 >conftest.err
41602 cat conftest.err >&5
41603 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
41604 (exit $ac_status); } && {
41605 test -z "$ac_c_werror_flag" ||
41606 test ! -s conftest.err
41607 } && test -s conftest.$ac_objext; then
41608 ac_header_compiler=yes
41610 $as_echo "$as_me: failed program was
:" >&5
41611 sed 's/^/| /' conftest.$ac_ext >&5
41613 ac_header_compiler=no
41616 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
41617 { $as_echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
41618 $as_echo "$ac_header_compiler" >&6; }
41620 # Is the header present?
41621 { $as_echo "$as_me:$LINENO: checking security
/pam_appl.h presence
" >&5
41622 $as_echo_n "checking security
/pam_appl.h presence...
" >&6; }
41623 cat >conftest.$ac_ext <<_ACEOF
41626 cat confdefs.h >>conftest.$ac_ext
41627 cat >>conftest.$ac_ext <<_ACEOF
41628 /* end confdefs.h. */
41629 #include <security/pam_appl.h>
41631 if { (ac_try="$ac_cpp conftest.
$ac_ext"
41632 case "(($ac_try" in
41633 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41634 *) ac_try_echo=$ac_try;;
41636 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
41637 $as_echo "$ac_try_echo") >&5
41638 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
41640 grep -v '^ *+' conftest.er1 >conftest.err
41642 cat conftest.err >&5
41643 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
41644 (exit $ac_status); } >/dev/null && {
41645 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
41646 test ! -s conftest.err
41648 ac_header_preproc=yes
41650 $as_echo "$as_me: failed program was
:" >&5
41651 sed 's/^/| /' conftest.$ac_ext >&5
41653 ac_header_preproc=no
41656 rm -f conftest.err conftest.$ac_ext
41657 { $as_echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
41658 $as_echo "$ac_header_preproc" >&6; }
41660 # So? What about this header?
41661 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
41663 { $as_echo "$as_me:$LINENO: WARNING
: security
/pam_appl.h
: accepted by the compiler
, rejected by the preprocessor
!" >&5
41664 $as_echo "$as_me: WARNING
: security
/pam_appl.h
: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
41665 { $as_echo "$as_me:$LINENO: WARNING
: security
/pam_appl.h
: proceeding with the compiler
's result" >&5
41666 $as_echo "$as_me: WARNING: security/pam_appl.h: proceeding with the compiler's result
" >&2;}
41667 ac_header_preproc=yes
41670 { $as_echo "$as_me:$LINENO: WARNING
: security
/pam_appl.h
: present but cannot be compiled
" >&5
41671 $as_echo "$as_me: WARNING
: security
/pam_appl.h
: present but cannot be compiled
" >&2;}
41672 { $as_echo "$as_me:$LINENO: WARNING
: security
/pam_appl.h
: check
for missing prerequisite headers?
" >&5
41673 $as_echo "$as_me: WARNING
: security
/pam_appl.h
: check
for missing prerequisite headers?
" >&2;}
41674 { $as_echo "$as_me:$LINENO: WARNING
: security
/pam_appl.h
: see the Autoconf documentation
" >&5
41675 $as_echo "$as_me: WARNING
: security
/pam_appl.h
: see the Autoconf documentation
" >&2;}
41676 { $as_echo "$as_me:$LINENO: WARNING
: security
/pam_appl.h
: section
\"Present But Cannot Be Compiled
\"" >&5
41677 $as_echo "$as_me: WARNING
: security
/pam_appl.h
: section
\"Present But Cannot Be Compiled
\"" >&2;}
41678 { $as_echo "$as_me:$LINENO: WARNING
: security
/pam_appl.h
: proceeding with the preprocessor
's result" >&5
41679 $as_echo "$as_me: WARNING: security/pam_appl.h: proceeding with the preprocessor's result
" >&2;}
41680 { $as_echo "$as_me:$LINENO: WARNING
: security
/pam_appl.h
: in the future
, the compiler will take precedence
" >&5
41681 $as_echo "$as_me: WARNING
: security
/pam_appl.h
: in the future
, the compiler will take precedence
" >&2;}
41683 ## --------------------------------- ##
41684 ## Report this to bug-cvs@nongnu.org ##
41685 ## --------------------------------- ##
41687 ) | sed "s
/^
/$as_me: WARNING
: /" >&2
41690 { $as_echo "$as_me:$LINENO: checking
for security
/pam_appl.h
" >&5
41691 $as_echo_n "checking
for security
/pam_appl.h...
" >&6; }
41692 if test "${ac_cv_header_security_pam_appl_h+set}" = set; then
41693 $as_echo_n "(cached
) " >&6
41695 ac_cv_header_security_pam_appl_h=$ac_header_preproc
41697 { $as_echo "$as_me:$LINENO: result
: $ac_cv_header_security_pam_appl_h" >&5
41698 $as_echo "$ac_cv_header_security_pam_appl_h" >&6; }
41701 if test "x
$ac_cv_header_security_pam_appl_h" = x""yes; then
41704 cat >>confdefs.h <<\_ACEOF
41705 #define HAVE_SECURITY_PAM_APPL_H 1
41708 ac_pam_header_available=1
41713 if test -z "$ac_pam_header_available"; then
41714 if test "${ac_cv_header_pam_pam_appl_h+set}" = set; then
41715 { $as_echo "$as_me:$LINENO: checking
for pam
/pam_appl.h
" >&5
41716 $as_echo_n "checking
for pam
/pam_appl.h...
" >&6; }
41717 if test "${ac_cv_header_pam_pam_appl_h+set}" = set; then
41718 $as_echo_n "(cached
) " >&6
41720 { $as_echo "$as_me:$LINENO: result
: $ac_cv_header_pam_pam_appl_h" >&5
41721 $as_echo "$ac_cv_header_pam_pam_appl_h" >&6; }
41723 # Is the header compilable?
41724 { $as_echo "$as_me:$LINENO: checking pam
/pam_appl.h usability
" >&5
41725 $as_echo_n "checking pam
/pam_appl.h usability...
" >&6; }
41726 cat >conftest.$ac_ext <<_ACEOF
41729 cat confdefs.h >>conftest.$ac_ext
41730 cat >>conftest.$ac_ext <<_ACEOF
41731 /* end confdefs.h. */
41732 $ac_includes_default
41733 #include <pam/pam_appl.h>
41735 rm -f conftest.$ac_objext
41736 if { (ac_try="$ac_compile"
41737 case "(($ac_try" in
41738 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41739 *) ac_try_echo=$ac_try;;
41741 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
41742 $as_echo "$ac_try_echo") >&5
41743 (eval "$ac_compile") 2>conftest.er1
41745 grep -v '^ *+' conftest.er1 >conftest.err
41747 cat conftest.err >&5
41748 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
41749 (exit $ac_status); } && {
41750 test -z "$ac_c_werror_flag" ||
41751 test ! -s conftest.err
41752 } && test -s conftest.$ac_objext; then
41753 ac_header_compiler=yes
41755 $as_echo "$as_me: failed program was
:" >&5
41756 sed 's/^/| /' conftest.$ac_ext >&5
41758 ac_header_compiler=no
41761 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
41762 { $as_echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
41763 $as_echo "$ac_header_compiler" >&6; }
41765 # Is the header present?
41766 { $as_echo "$as_me:$LINENO: checking pam
/pam_appl.h presence
" >&5
41767 $as_echo_n "checking pam
/pam_appl.h presence...
" >&6; }
41768 cat >conftest.$ac_ext <<_ACEOF
41771 cat confdefs.h >>conftest.$ac_ext
41772 cat >>conftest.$ac_ext <<_ACEOF
41773 /* end confdefs.h. */
41774 #include <pam/pam_appl.h>
41776 if { (ac_try="$ac_cpp conftest.
$ac_ext"
41777 case "(($ac_try" in
41778 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41779 *) ac_try_echo=$ac_try;;
41781 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
41782 $as_echo "$ac_try_echo") >&5
41783 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
41785 grep -v '^ *+' conftest.er1 >conftest.err
41787 cat conftest.err >&5
41788 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
41789 (exit $ac_status); } >/dev/null && {
41790 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
41791 test ! -s conftest.err
41793 ac_header_preproc=yes
41795 $as_echo "$as_me: failed program was
:" >&5
41796 sed 's/^/| /' conftest.$ac_ext >&5
41798 ac_header_preproc=no
41801 rm -f conftest.err conftest.$ac_ext
41802 { $as_echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
41803 $as_echo "$ac_header_preproc" >&6; }
41805 # So? What about this header?
41806 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
41808 { $as_echo "$as_me:$LINENO: WARNING
: pam
/pam_appl.h
: accepted by the compiler
, rejected by the preprocessor
!" >&5
41809 $as_echo "$as_me: WARNING
: pam
/pam_appl.h
: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
41810 { $as_echo "$as_me:$LINENO: WARNING
: pam
/pam_appl.h
: proceeding with the compiler
's result" >&5
41811 $as_echo "$as_me: WARNING: pam/pam_appl.h: proceeding with the compiler's result
" >&2;}
41812 ac_header_preproc=yes
41815 { $as_echo "$as_me:$LINENO: WARNING
: pam
/pam_appl.h
: present but cannot be compiled
" >&5
41816 $as_echo "$as_me: WARNING
: pam
/pam_appl.h
: present but cannot be compiled
" >&2;}
41817 { $as_echo "$as_me:$LINENO: WARNING
: pam
/pam_appl.h
: check
for missing prerequisite headers?
" >&5
41818 $as_echo "$as_me: WARNING
: pam
/pam_appl.h
: check
for missing prerequisite headers?
" >&2;}
41819 { $as_echo "$as_me:$LINENO: WARNING
: pam
/pam_appl.h
: see the Autoconf documentation
" >&5
41820 $as_echo "$as_me: WARNING
: pam
/pam_appl.h
: see the Autoconf documentation
" >&2;}
41821 { $as_echo "$as_me:$LINENO: WARNING
: pam
/pam_appl.h
: section
\"Present But Cannot Be Compiled
\"" >&5
41822 $as_echo "$as_me: WARNING
: pam
/pam_appl.h
: section
\"Present But Cannot Be Compiled
\"" >&2;}
41823 { $as_echo "$as_me:$LINENO: WARNING
: pam
/pam_appl.h
: proceeding with the preprocessor
's result" >&5
41824 $as_echo "$as_me: WARNING: pam/pam_appl.h: proceeding with the preprocessor's result
" >&2;}
41825 { $as_echo "$as_me:$LINENO: WARNING
: pam
/pam_appl.h
: in the future
, the compiler will take precedence
" >&5
41826 $as_echo "$as_me: WARNING
: pam
/pam_appl.h
: in the future
, the compiler will take precedence
" >&2;}
41828 ## --------------------------------- ##
41829 ## Report this to bug-cvs@nongnu.org ##
41830 ## --------------------------------- ##
41832 ) | sed "s
/^
/$as_me: WARNING
: /" >&2
41835 { $as_echo "$as_me:$LINENO: checking
for pam
/pam_appl.h
" >&5
41836 $as_echo_n "checking
for pam
/pam_appl.h...
" >&6; }
41837 if test "${ac_cv_header_pam_pam_appl_h+set}" = set; then
41838 $as_echo_n "(cached
) " >&6
41840 ac_cv_header_pam_pam_appl_h=$ac_header_preproc
41842 { $as_echo "$as_me:$LINENO: result
: $ac_cv_header_pam_pam_appl_h" >&5
41843 $as_echo "$ac_cv_header_pam_pam_appl_h" >&6; }
41846 if test "x
$ac_cv_header_pam_pam_appl_h" = x""yes; then
41849 cat >>confdefs.h <<\_ACEOF
41850 #define HAVE_PAM_PAM_APPL_H 1
41853 ac_pam_header_available=1
41859 if test -z "$ac_pam_header_available"; then
41860 { { $as_echo "$as_me:$LINENO: error
: Could not
find PAM headers
" >&5
41861 $as_echo "$as_me: error
: Could not
find PAM headers
" >&2;}
41862 { (exit 1); exit 1; }; }
41865 cat >>confdefs.h <<\_ACEOF
41869 { $as_echo "$as_me:$LINENO: checking
for pam_start
in -lpam" >&5
41870 $as_echo_n "checking
for pam_start
in -lpam...
" >&6; }
41871 if test "${ac_cv_lib_pam_pam_start+set}" = set; then
41872 $as_echo_n "(cached
) " >&6
41874 ac_check_lib_save_LIBS=$LIBS
41876 cat >conftest.$ac_ext <<_ACEOF
41879 cat confdefs.h >>conftest.$ac_ext
41880 cat >>conftest.$ac_ext <<_ACEOF
41881 /* end confdefs.h. */
41883 /* Override any GCC internal prototype to avoid an error.
41884 Use char because int might match the return type of a GCC
41885 builtin and then its argument prototype would still apply. */
41893 return pam_start ();
41898 rm -f conftest.$ac_objext conftest$ac_exeext
41899 if { (ac_try="$ac_link"
41900 case "(($ac_try" in
41901 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41902 *) ac_try_echo=$ac_try;;
41904 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
41905 $as_echo "$ac_try_echo") >&5
41906 (eval "$ac_link") 2>conftest.er1
41908 grep -v '^ *+' conftest.er1 >conftest.err
41910 cat conftest.err >&5
41911 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
41912 (exit $ac_status); } && {
41913 test -z "$ac_c_werror_flag" ||
41914 test ! -s conftest.err
41915 } && test -s conftest$ac_exeext && {
41916 test "$cross_compiling" = yes ||
41917 $as_test_x conftest$ac_exeext
41919 ac_cv_lib_pam_pam_start=yes
41921 $as_echo "$as_me: failed program was
:" >&5
41922 sed 's/^/| /' conftest.$ac_ext >&5
41924 ac_cv_lib_pam_pam_start=no
41927 rm -rf conftest.dSYM
41928 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
41929 conftest$ac_exeext conftest.$ac_ext
41930 LIBS=$ac_check_lib_save_LIBS
41932 { $as_echo "$as_me:$LINENO: result
: $ac_cv_lib_pam_pam_start" >&5
41933 $as_echo "$ac_cv_lib_pam_pam_start" >&6; }
41934 if test "x
$ac_cv_lib_pam_pam_start" = x""yes; then
41935 LIBS="${LIBS} -lpam"
41937 { { $as_echo "$as_me:$LINENO: error
: Could not
find PAM libraries but the headers exist.
41938 Give the
--disable-pam option to compile without PAM support
(or fix
41939 your broken configuration
)" >&5
41940 $as_echo "$as_me: error
: Could not
find PAM libraries but the headers exist.
41941 Give the
--disable-pam option to compile without PAM support
(or fix
41942 your broken configuration
)" >&2;}
41943 { (exit 1); exit 1; }; }
41953 # Check whether --enable-case-sensitivity was given.
41954 if test "${enable_case_sensitivity+set}" = set; then
41955 enableval=$enable_case_sensitivity; case "$enable_case_sensitivity" in
41956 yes | no | auto) ;;
41958 { { $as_echo "$as_me:$LINENO: error
: Unrecognized argument to
--enable-case-sensitivity: \
`$enable_case_sensitivity'. Acceptable values are \`yes', \`no', and \
`auto'." >&5
41959 $as_echo "$as_me: error: Unrecognized argument to --enable-case-sensitivity: \`$enable_case_sensitivity'. Acceptable values are \`yes', \
`no', and \`auto
'." >&2;}
41960 { (exit 1); exit 1; }; }
41964 enable_case_sensitivity=auto
41968 acx_forced=' (forced
)'
41969 { $as_echo "$as_me:$LINENO: checking for a case sensitive file system" >&5
41970 $as_echo_n "checking for a case sensitive file system... " >&6; }
41971 if test $enable_case_sensitivity = auto; then
41972 if test "${acx_cv_case_sensitive+set}" = set; then
41973 $as_echo_n "(cached) " >&6
41975 rm -f ac_TEST_filenames_CASE_sensitive
41976 echo foo >ac_test_filenames_case_sensitive
41977 if test -f ac_TEST_filenames_CASE_sensitive; then
41978 acx_cv_case_sensitive=no
41980 acx_cv_case_sensitive=yes
41982 rm ac_test_filenames_case_sensitive
41986 enable_case_sensitivity=$acx_cv_case_sensitive
41989 { $as_echo "$as_me:$LINENO: result: $enable_case_sensitivity$acx_forced" >&5
41990 $as_echo "$enable_case_sensitivity$acx_forced" >&6; }
41991 if test $enable_case_sensitivity = no; then
41993 cat >>confdefs.h <<\_ACEOF
41994 #define FILENAMES_CASE_INSENSITIVE 1
41997 case " $LIBOBJS " in
41998 *" fncase.$ac_objext "* ) ;;
41999 *) LIBOBJS="$LIBOBJS fncase.$ac_objext"
42008 # Check whether --enable-encryption was given.
42009 if test "${enable_encryption+set}" = set; then
42010 enableval=$enable_encryption;
42012 enable_encryption=no
42015 if test "x$enable_encryption" = xyes; then
42016 if test xno = "x$with_client" && test xno = "x$with_server"; then
42017 { $as_echo "$as_me:$LINENO: WARNING: --enable-encryption is meaningless when neither the CVS client
42018 nor the CVS server is enabled (--disable-client and --disable-server)." >&5
42019 $as_echo "$as_me: WARNING: --enable-encryption is meaningless when neither the CVS client
42020 nor the CVS server is enabled (--disable-client and --disable-server)." >&2;}
42023 cat >>confdefs.h <<\_ACEOF
42024 #define ENCRYPTION 1
42033 # Check whether --enable-force-editor was given.
42034 if test "${enable_force_editor+set}" = set; then
42035 enableval=$enable_force_editor;
42037 enable_force_editor=no
42041 if test yes = "$enable_force_editor"; then
42043 cat >>confdefs.h <<\_ACEOF
42044 #define FORCE_USE_EDITOR 1
42052 # Check for options requesting client and server feature. If none are
42053 # given and we have connect(), we want the full client & server arrangement.
42054 # Check whether --enable-lock-compatibility was given.
42055 if test "${enable_lock_compatibility+set}" = set; then
42056 enableval=$enable_lock_compatibility;
42058 enable_lock_compatibility=yes
42062 if test x$enable_lock_compatibility = xyes; then
42064 cat >>confdefs.h <<\_ACEOF
42065 #define LOCK_COMPATIBILITY 1
42073 # Check whether --enable-rootcommit was given.
42074 if test "${enable_rootcommit+set}" = set; then
42075 enableval=$enable_rootcommit;
42077 enable_rootcommit=no
42080 if test "$enable_rootcommit" = no; then
42082 cat >>confdefs.h <<\_ACEOF
42083 #define CVS_BADROOT 1
42089 # Check whether --enable-old-info-support was given.
42090 if test "${enable_old_info_support+set}" = set; then
42091 enableval=$enable_old_info_support;
42093 enable_old_info_format_support=yes
42096 if test "$enable_old_info_format_support" = yes; then
42098 cat >>confdefs.h <<\_ACEOF
42099 #define SUPPORT_OLD_INFO_FMT_STRINGS 1
42107 # Check whether --enable-config-override was given.
42108 if test "${enable_config_override+set}" = set; then
42109 enableval=$enable_config_override;
42111 # $sysconfdir may still contain variable references. By default, this will
42112 # be to $prefix, and $prefix won't be
set to its default value
until later.
42113 # Compromise without setting $prefix for the rest of the file.
42114 cvs_save_prefix
=$prefix
42115 if test "X$prefix" = XNONE
; then
42116 prefix
=$ac_prefix_default
42118 eval enable_config_override
=`echo $sysconfdir/cvs.conf,$sysconfdir/cvs/`
42119 prefix
=$cvs_save_prefix
42123 if test x
"$enable_config_override" = xyes
; then
42124 enable_config_override
=/
42127 if test x
"$enable_config_override" = xno
; then :; else
42131 for path
in $enable_config_override; do
42134 [\\/$
]* | ?
:[\\/]* )
42135 arrayinit
="$arrayinit\"$path\", "
42137 *) { { $as_echo "$as_me:$LINENO: error: expected comma separated list of absolute directory
42138 names for --enable-config-override, or \`no', not:
42139 \`$enable_config_override'
42140 (\`$path' invalid.)" >&5
42141 $as_echo "$as_me: error: expected comma separated list of absolute directory
42142 names for --enable-config-override, or \`no', not:
42143 \`$enable_config_override'
42144 (\`$path' invalid.)" >&2;}
42145 { (exit 1); exit 1; }; };;
42148 arrayinit
="${arrayinit}NULL"
42151 cat >>confdefs.h
<<_ACEOF
42152 #define ALLOW_CONFIG_OVERRIDE $arrayinit
42164 { $as_echo "$as_me:$LINENO: checking for cygwin32" >&5
42165 $as_echo_n "checking for cygwin32... " >&6; }
42166 if test "${ccvs_cv_sys_cygwin32+set}" = set; then
42167 $as_echo_n "(cached) " >&6
42169 cat >conftest.
$ac_ext <<_ACEOF
42172 cat confdefs.h
>>conftest.
$ac_ext
42173 cat >>conftest.
$ac_ext <<_ACEOF
42174 /* end confdefs.h. */
42179 return __CYGWIN32__;
42184 rm -f conftest.
$ac_objext
42185 if { (ac_try
="$ac_compile"
42186 case "(($ac_try" in
42187 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
42188 *) ac_try_echo=$ac_try;;
42190 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
42191 $as_echo "$ac_try_echo") >&5
42192 (eval "$ac_compile") 2>conftest.er1
42194 grep -v '^ *+' conftest.er1 >conftest.err
42196 cat conftest.err >&5
42197 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
42198 (exit $ac_status); } && {
42199 test -z "$ac_c_werror_flag" ||
42200 test ! -s conftest.err
42201 } && test -s conftest.$ac_objext; then
42202 ccvs_cv_sys_cygwin32=yes
42204 $as_echo "$as_me: failed program was:" >&5
42205 sed 's/^/| /' conftest.$ac_ext >&5
42207 ccvs_cv_sys_cygwin32=no
42210 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
42212 { $as_echo "$as_me:$LINENO: result: $ccvs_cv_sys_cygwin32" >&5
42213 $as_echo "$ccvs_cv_sys_cygwin32" >&6; }
42214 if test $ccvs_cv_sys_cygwin32 = yes; then
42215 LIBS="$LIBS -ladvapi32"
42218 cat >>confdefs.h <<\_ACEOF
42219 #define UTIME_EXPECTS_WRITABLE 1
42224 cat >>confdefs.h <<\_ACEOF
42225 #define USE_SETMODE_STDOUT 1
42229 cat >>confdefs.h <<\_ACEOF
42230 #define HAVE_SETMODE 1
42235 ac_config_files="$ac_config_files contrib/validate_repo"
42237 ac_config_files="$ac_config_files contrib/clmerge"
42239 ac_config_files="$ac_config_files contrib/cln_hist"
42241 ac_config_files="$ac_config_files contrib/commit_prep"
42243 ac_config_files="$ac_config_files contrib/cvs_acls"
42245 ac_config_files="$ac_config_files contrib/log"
42247 ac_config_files="$ac_config_files contrib/log_accum"
42249 ac_config_files="$ac_config_files contrib/mfpipe"
42251 ac_config_files="$ac_config_files contrib/pvcs2rcs"
42253 ac_config_files="$ac_config_files contrib/rcs2log:contrib/rcs2log.sh"
42255 ac_config_files="$ac_config_files contrib/rcslock"
42257 ac_config_files="$ac_config_files contrib/sccs2rcs"
42259 ac_config_files="$ac_config_files doc/mkman:doc/mkman.pl"
42261 ac_config_files="$ac_config_files src/cvsbug"
42264 ac_config_files="$ac_config_files Makefile contrib/Makefile contrib/pam/Makefile cvs.spec diff/Makefile doc/Makefile doc/i18n/Makefile doc/i18n/pt_BR/Makefile lib/Makefile maint-aux/Makefile man/Makefile src/Makefile src/sanity.config.sh tools/Makefile zlib/Makefile"
42267 cat >confcache <<\_ACEOF
42268 # This file is a shell script that caches the results of configure
42269 # tests run on this system so they can be shared between configure
42270 # scripts and configure runs, see configure's option --config-cache.
42271 # It is not useful on other systems. If it contains results you don't
42272 # want to keep, you may remove or edit it.
42274 # config.status only pays attention to the cache file if you give it
42275 # the --recheck option to rerun configure.
42277 # `ac_cv_env_foo
' variables (set or unset) will be overridden when
42278 # loading this file, other *unset* `ac_cv_foo' will be assigned the
42279 # following values.
42283 # The following way of writing the cache mishandles newlines in values,
42284 # but we know of no workaround that is simple, portable, and efficient.
42285 # So, we kill variables containing newlines.
42286 # Ultrix sh set writes to stderr and can't be redirected directly,
42287 # and sets the high bit in the cache file unless we assign to the vars.
42289 for ac_var
in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
42290 eval ac_val
=\$
$ac_var
42294 *_cv_
*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
42295 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
42298 _ | IFS | as_nl
) ;; #(
42299 BASH_ARGV | BASH_SOURCE
) eval $ac_var= ;; #(
42300 *) $as_unset $ac_var ;;
42306 case $as_nl`(ac_space=' '; set) 2>&1` in #(
42307 *${as_nl}ac_space
=\
*)
42308 # `set' does not quote correctly, so add quotes (double-quote
42309 # substitution turns \\\\ into \\, and sed turns \\ into \).
42312 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
42315 # `set' quotes correctly as required by POSIX, so do not add quotes.
42316 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
42325 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
42327 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
42329 if diff "$cache_file" confcache
>/dev
/null
2>&1; then :; else
42330 if test -w "$cache_file"; then
42331 test "x$cache_file" != "x/dev/null" &&
42332 { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
42333 $as_echo "$as_me: updating cache $cache_file" >&6;}
42334 cat confcache
>$cache_file
42336 { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
42337 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
42342 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
42343 # Let make expand exec_prefix.
42344 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
42346 DEFS
=-DHAVE_CONFIG_H
42350 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
42351 # 1. Remove the extension, and $U if already installed.
42352 ac_script
='s/\$U\././;s/\.o$//;s/\.obj$//'
42353 ac_i
=`$as_echo "$ac_i" | sed "$ac_script"`
42354 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
42355 # will be set to the directory where LIBOBJS objects are built.
42356 ac_libobjs
="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
42357 ac_ltlibobjs
="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
42359 LIBOBJS
=$ac_libobjs
42361 LTLIBOBJS
=$ac_ltlibobjs
42364 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
42365 { { $as_echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
42366 Usually this means the macro was only invoked conditionally." >&5
42367 $as_echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
42368 Usually this means the macro was only invoked conditionally." >&2;}
42369 { (exit 1); exit 1; }; }
42371 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
42372 { { $as_echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
42373 Usually this means the macro was only invoked conditionally." >&5
42374 $as_echo "$as_me: error: conditional \"AMDEP\" was never defined.
42375 Usually this means the macro was only invoked conditionally." >&2;}
42376 { (exit 1); exit 1; }; }
42378 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
42379 { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
42380 Usually this means the macro was only invoked conditionally." >&5
42381 $as_echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
42382 Usually this means the macro was only invoked conditionally." >&2;}
42383 { (exit 1); exit 1; }; }
42385 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
42386 { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
42387 Usually this means the macro was only invoked conditionally." >&5
42388 $as_echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
42389 Usually this means the macro was only invoked conditionally." >&2;}
42390 { (exit 1); exit 1; }; }
42392 if test -z "${MAKE_TARGETS_IN_VPATH_TRUE}" && test -z "${MAKE_TARGETS_IN_VPATH_FALSE}"; then
42393 { { $as_echo "$as_me:$LINENO: error: conditional \"MAKE_TARGETS_IN_VPATH\" was never defined.
42394 Usually this means the macro was only invoked conditionally." >&5
42395 $as_echo "$as_me: error: conditional \"MAKE_TARGETS_IN_VPATH\" was never defined.
42396 Usually this means the macro was only invoked conditionally." >&2;}
42397 { (exit 1); exit 1; }; }
42401 : ${CONFIG_STATUS=./config.status}
42403 ac_clean_files_save
=$ac_clean_files
42404 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
42405 { $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
42406 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
42407 cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
42409 # Generated by $as_me.
42410 # Run this file to recreate the current configuration.
42411 # Compiler output produced by configure, useful for debugging
42412 # configure, is in config.log if it exists.
42415 ac_cs_recheck=false
42417 SHELL=\${CONFIG_SHELL-$SHELL}
42420 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
42421 ## --------------------- ##
42422 ## M4sh Initialization. ##
42423 ## --------------------- ##
42425 # Be more Bourne compatible
42426 DUALCASE
=1; export DUALCASE
# for MKS sh
42427 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
42430 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
42431 # is contrary to our usage. Disable this feature.
42432 alias -g '${1+"$@"}'='"$@"'
42433 setopt NO_GLOB_SUBST
42435 case `(set -o) 2>/dev/null` in
42436 *posix
*) set -o posix
;;
42445 # Avoid depending upon Character Ranges.
42446 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
42447 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
42448 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
42449 as_cr_digits
='0123456789'
42450 as_cr_alnum
=$as_cr_Letters$as_cr_digits
42455 # Printing a long string crashes Solaris 7 /usr/bin/printf.
42456 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
42457 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42458 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
42459 if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
42460 as_echo='printf %s
\n'
42461 as_echo_n='printf %s
'
42463 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
42464 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
42465 as_echo_n='/usr
/ucb
/echo -n'
42467 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
42468 as_echo_n_body='eval
42472 expr "X$arg" : "X\\(.*\\)$as_nl";
42473 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
42475 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
42477 export as_echo_n_body
42478 as_echo_n='sh
-c $as_echo_n_body as_echo
'
42480 export as_echo_body
42481 as_echo='sh
-c $as_echo_body as_echo
'
42484 # The user is always right.
42485 if test "${PATH_SEPARATOR+set}" != set; then
42487 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
42488 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
42493 # Support unset when possible.
42494 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
42502 # We need space, tab and new line, in precisely that order. Quoting is
42503 # there to prevent editors from complaining about space-tab.
42504 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
42505 # splitting by setting IFS to empty value.)
42508 # Find who we are. Look in the path if we contain no directory separator.
42510 *[\\/]* ) as_myself=$0 ;;
42511 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
42512 for as_dir in $PATH
42515 test -z "$as_dir" && as_dir=.
42516 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
42522 # We did not find ourselves, most probably we were run as `sh COMMAND'
42523 # in which case we are not to be found in the path.
42524 if test "x$as_myself" = x
; then
42527 if test ! -f "$as_myself"; then
42528 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
42529 { (exit 1); exit 1; }
42532 # Work around bugs in pre-3.0 UWIN ksh.
42533 for as_var
in ENV MAIL MAILPATH
42534 do ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
42546 # Required to use basename.
42547 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
42548 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
42554 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
42555 as_basename
=basename
42561 # Name of the executable.
42562 as_me
=`$as_basename -- "$0" ||
42563 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
42564 X"$0" : 'X\(//\)$' \| \
42565 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
42567 sed '/^.*\/\([^/][^/]*\)\/*$/{
42586 as_lineno_1
=$LINENO
42587 as_lineno_2
=$LINENO
42588 test "x$as_lineno_1" != "x$as_lineno_2" &&
42589 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" ||
{
42591 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
42592 # uniformly replaced by the line number. The first 'sed' inserts a
42593 # line-number line after each line using $LINENO; the second 'sed'
42594 # does the real work. The second script uses 'N' to pair each
42595 # line-number line with the line containing $LINENO, and appends
42596 # trailing '-' during substitution so that $LINENO is not a special
42597 # case at line end.
42598 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
42599 # scripts with optimization help from Paolo Bonzini. Blame Lee
42600 # E. McMahon (1931-1989) for sed's syntax. :-)
42612 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
42615 ' >$as_me.lineno
&&
42616 chmod +x
"$as_me.lineno" ||
42617 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
42618 { (exit 1); exit 1; }; }
42620 # Don't try to exec as it changes $[0], causing all sort of problems
42621 # (the dirname of $[0] is not the place where we might find the
42622 # original and so on. Autoconf is especially sensitive to this).
42623 .
"./$as_me.lineno"
42624 # Exit status is that of the last command.
42629 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
42635 ECHO_C
= ECHO_N
= ECHO_T
=
42636 case `echo -n x` in
42638 case `echo 'x\c'` in
42639 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
42645 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
42646 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
42652 rm -f conf$$ conf$$.exe conf$$.
file
42653 if test -d conf$$.dir
; then
42654 rm -f conf$$.dir
/conf$$.
file
42657 mkdir conf$$.dir
2>/dev
/null
42659 if (echo >conf$$.
file) 2>/dev
/null
; then
42660 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
42662 # ... but there are two gotchas:
42663 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
42664 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
42665 # In both cases, we have to default to `cp -p'.
42666 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
42668 elif ln conf$$.
file conf$$
2>/dev
/null
; then
42676 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
42677 rmdir conf$$.dir
2>/dev
/null
42679 if mkdir
-p .
2>/dev
/null
; then
42682 test -d .
/-p && rmdir .
/-p
42686 if test -x / >/dev
/null
2>&1; then
42687 as_test_x
='test -x'
42689 if ls -dL / >/dev
/null
2>&1; then
42696 if test -d "$1"; then
42702 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
42703 ???[sx]*):;;*)false;;esac;fi
42707 as_executable_p
=$as_test_x
42709 # Sed expression to map a string onto a valid CPP name.
42710 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
42712 # Sed expression to map a string onto a valid variable name.
42713 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
42718 # Save the log message, to keep $[0] and so on meaningful, and to
42719 # report actual input values of CONFIG_FILES etc. instead of their
42720 # values after options handling.
42722 This file was extended by Concurrent Versions System (CVS) $as_me 1.12.13, which was
42723 generated by GNU Autoconf 2.63. Invocation command line was
42725 CONFIG_FILES = $CONFIG_FILES
42726 CONFIG_HEADERS = $CONFIG_HEADERS
42727 CONFIG_LINKS = $CONFIG_LINKS
42728 CONFIG_COMMANDS = $CONFIG_COMMANDS
42731 on `(hostname || uname -n) 2>/dev/null | sed 1q`
42736 case $ac_config_files in *"
42737 "*) set x
$ac_config_files; shift; ac_config_files
=$
*;;
42740 case $ac_config_headers in *"
42741 "*) set x
$ac_config_headers; shift; ac_config_headers
=$
*;;
42745 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
42746 # Files that config.status was made for.
42747 config_files="$ac_config_files"
42748 config_headers="$ac_config_headers"
42749 config_commands="$ac_config_commands"
42753 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
42755 \`$as_me' instantiates files from templates according to the
42756 current configuration.
42758 Usage: $0 [OPTION]... [FILE]...
42760 -h, --help print this help, then exit
42761 -V, --version print version number and configuration settings, then exit
42762 -q, --quiet, --silent
42763 do not print progress messages
42764 -d, --debug don't remove temporary files
42765 --recheck update $as_me by reconfiguring in the same conditions
42766 --file=FILE[:TEMPLATE]
42767 instantiate the configuration file FILE
42768 --header=FILE[:TEMPLATE]
42769 instantiate the configuration header FILE
42771 Configuration files:
42774 Configuration headers:
42777 Configuration commands:
42780 Report bugs to <bug-autoconf@gnu.org>."
42783 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
42785 Concurrent Versions System (CVS) config.status 1.12.13
42786 configured by $0, generated by GNU Autoconf 2.63,
42787 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
42789 Copyright (C) 2008 Free Software Foundation, Inc.
42790 This config.status script is free software; the Free Software Foundation
42791 gives unlimited permission to copy, distribute and modify it."
42798 test -n "\$AWK" || AWK=awk
42801 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
42802 # The default lists apply if the user does not specify any file.
42808 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
42809 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
42820 # Handling of the options.
42821 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
42823 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
42824 $as_echo "$ac_cs_version"; exit ;;
42825 --debug |
--debu |
--deb |
--de |
--d |
-d )
42827 --file |
--fil |
--fi |
--f )
42830 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
42832 CONFIG_FILES
="$CONFIG_FILES '$ac_optarg'"
42833 ac_need_defaults
=false
;;
42834 --header |
--heade |
--head |
--hea )
42837 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
42839 CONFIG_HEADERS
="$CONFIG_HEADERS '$ac_optarg'"
42840 ac_need_defaults
=false
;;
42842 # Conflict between --help and --header
42843 { $as_echo "$as_me: error: ambiguous option: $1
42844 Try \`$0 --help' for more information." >&2
42845 { (exit 1); exit 1; }; };;
42846 --help |
--hel |
-h )
42847 $as_echo "$ac_cs_usage"; exit ;;
42848 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
42849 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
42852 # This is an error.
42853 -*) { $as_echo "$as_me: error: unrecognized option: $1
42854 Try \`$0 --help' for more information." >&2
42855 { (exit 1); exit 1; }; } ;;
42857 *) ac_config_targets
="$ac_config_targets $1"
42858 ac_need_defaults
=false
;;
42864 ac_configure_extra_args
=
42866 if $ac_cs_silent; then
42868 ac_configure_extra_args
="$ac_configure_extra_args --silent"
42872 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
42873 if \$ac_cs_recheck; then
42874 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
42876 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
42877 CONFIG_SHELL='$SHELL'
42878 export CONFIG_SHELL
42883 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
42887 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
42888 ## Running $as_me. ##
42894 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
42898 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
42899 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
42900 # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
42902 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
42903 # Capture the value of LINGUAS because we need it to compute CATALOGS.
42904 LINGUAS="${LINGUAS-%UNSET%}"
42909 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
42911 # Handling of arguments.
42912 for ac_config_target
in $ac_config_targets
42914 case $ac_config_target in
42915 "config.h") CONFIG_HEADERS
="$CONFIG_HEADERS config.h" ;;
42916 "depfiles") CONFIG_COMMANDS
="$CONFIG_COMMANDS depfiles" ;;
42917 "default-1") CONFIG_COMMANDS
="$CONFIG_COMMANDS default-1" ;;
42918 "contrib/validate_repo") CONFIG_FILES
="$CONFIG_FILES contrib/validate_repo" ;;
42919 "contrib/clmerge") CONFIG_FILES
="$CONFIG_FILES contrib/clmerge" ;;
42920 "contrib/cln_hist") CONFIG_FILES
="$CONFIG_FILES contrib/cln_hist" ;;
42921 "contrib/commit_prep") CONFIG_FILES
="$CONFIG_FILES contrib/commit_prep" ;;
42922 "contrib/cvs_acls") CONFIG_FILES
="$CONFIG_FILES contrib/cvs_acls" ;;
42923 "contrib/log") CONFIG_FILES
="$CONFIG_FILES contrib/log" ;;
42924 "contrib/log_accum") CONFIG_FILES
="$CONFIG_FILES contrib/log_accum" ;;
42925 "contrib/mfpipe") CONFIG_FILES
="$CONFIG_FILES contrib/mfpipe" ;;
42926 "contrib/pvcs2rcs") CONFIG_FILES
="$CONFIG_FILES contrib/pvcs2rcs" ;;
42927 "contrib/rcs2log") CONFIG_FILES
="$CONFIG_FILES contrib/rcs2log:contrib/rcs2log.sh" ;;
42928 "contrib/rcslock") CONFIG_FILES
="$CONFIG_FILES contrib/rcslock" ;;
42929 "contrib/sccs2rcs") CONFIG_FILES
="$CONFIG_FILES contrib/sccs2rcs" ;;
42930 "doc/mkman") CONFIG_FILES
="$CONFIG_FILES doc/mkman:doc/mkman.pl" ;;
42931 "src/cvsbug") CONFIG_FILES
="$CONFIG_FILES src/cvsbug" ;;
42932 "Makefile") CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
42933 "contrib/Makefile") CONFIG_FILES
="$CONFIG_FILES contrib/Makefile" ;;
42934 "contrib/pam/Makefile") CONFIG_FILES
="$CONFIG_FILES contrib/pam/Makefile" ;;
42935 "cvs.spec") CONFIG_FILES
="$CONFIG_FILES cvs.spec" ;;
42936 "diff/Makefile") CONFIG_FILES
="$CONFIG_FILES diff/Makefile" ;;
42937 "doc/Makefile") CONFIG_FILES
="$CONFIG_FILES doc/Makefile" ;;
42938 "doc/i18n/Makefile") CONFIG_FILES
="$CONFIG_FILES doc/i18n/Makefile" ;;
42939 "doc/i18n/pt_BR/Makefile") CONFIG_FILES
="$CONFIG_FILES doc/i18n/pt_BR/Makefile" ;;
42940 "emx/Makefile") CONFIG_FILES
="$CONFIG_FILES emx/Makefile" ;;
42941 "lib/Makefile") CONFIG_FILES
="$CONFIG_FILES lib/Makefile" ;;
42942 "maint-aux/Makefile") CONFIG_FILES
="$CONFIG_FILES maint-aux/Makefile" ;;
42943 "man/Makefile") CONFIG_FILES
="$CONFIG_FILES man/Makefile" ;;
42944 "os2/Makefile") CONFIG_FILES
="$CONFIG_FILES os2/Makefile" ;;
42945 "src/Makefile") CONFIG_FILES
="$CONFIG_FILES src/Makefile" ;;
42946 "src/sanity.config.sh") CONFIG_FILES
="$CONFIG_FILES src/sanity.config.sh" ;;
42947 "tools/Makefile") CONFIG_FILES
="$CONFIG_FILES tools/Makefile" ;;
42948 "vms/Makefile") CONFIG_FILES
="$CONFIG_FILES vms/Makefile" ;;
42949 "windows-NT/Makefile") CONFIG_FILES
="$CONFIG_FILES windows-NT/Makefile" ;;
42950 "windows-NT/SCC/Makefile") CONFIG_FILES
="$CONFIG_FILES windows-NT/SCC/Makefile" ;;
42951 "zlib/Makefile") CONFIG_FILES
="$CONFIG_FILES zlib/Makefile" ;;
42953 *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
42954 $as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
42955 { (exit 1); exit 1; }; };;
42960 # If the user did not use the arguments to specify the items to instantiate,
42961 # then the envvar interface is used. Set only those that are not.
42962 # We use the long form for the default assignment because of an extremely
42963 # bizarre bug on SunOS 4.1.3.
42964 if $ac_need_defaults; then
42965 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
42966 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
42967 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
42970 # Have a temporary directory for convenience. Make it in the build tree
42971 # simply because there is no reason against having it here, and in addition,
42972 # creating and moving files from /tmp can sometimes cause problems.
42973 # Hook for its removal unless debugging.
42974 # Note that there is a small window in which the directory will not be cleaned:
42975 # after its creation but before its name has been assigned to `$tmp'.
42979 trap 'exit_status=$?
42980 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
42982 trap '{ (exit 1); exit 1; }' 1 2 13 15
42984 # Create a (secure) tmp directory for tmp files.
42987 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
42988 test -n "$tmp" && test -d "$tmp"
42991 tmp
=.
/conf$$
-$RANDOM
42992 (umask 077 && mkdir
"$tmp")
42995 $as_echo "$as_me: cannot create a temporary directory in ." >&2
42996 { (exit 1); exit 1; }
42999 # Set up the scripts for CONFIG_FILES section.
43000 # No need to generate them if there are no CONFIG_FILES.
43001 # This happens for instance with `./config.status config.h'.
43002 if test -n "$CONFIG_FILES"; then
43004 if $AWK 'BEGIN { getline <"/dev/null" }' </dev
/null
2>/dev
/null
; then
43005 ac_cs_awk_getline
=:
43006 ac_cs_awk_pipe_init
=
43007 ac_cs_awk_read_file
='
43008 while ((getline aline < (F[key])) > 0)
43011 ac_cs_awk_pipe_fini
=
43013 ac_cs_awk_getline
=false
43014 ac_cs_awk_pipe_init
="print \"cat <<'|#_!!_#|' &&\""
43015 ac_cs_awk_read_file
='
43017 print "cat " F[key] " &&"
43018 '$ac_cs_awk_pipe_init
43019 # The final `:' finishes the AND list.
43020 ac_cs_awk_pipe_fini
='END { print "|#_!!_#|"; print ":" }'
43023 ac_cs_awk_cr
=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
43024 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
43027 ac_cs_awk_cr
=$ac_cr
43030 echo 'BEGIN {' >"$tmp/subs1.awk" &&
43033 # Create commands to substitute file output variables.
43035 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
43036 echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' &&
43037 echo "$ac_subst_files" |
sed 's/.*/F["&"]="$&"/' &&
43040 } >conf$
$files.sh
&&
43041 . .
/conf$
$files.sh ||
43042 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
43043 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
43044 { (exit 1); exit 1; }; }
43045 rm -f conf$
$files.sh
43048 echo "cat >conf$$subs.awk <<_ACEOF" &&
43049 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
43051 } >conf$$subs.sh ||
43052 { { $as_echo "$as_me:$LINENO: error
: could not
make $CONFIG_STATUS" >&5
43053 $as_echo "$as_me: error
: could not
make $CONFIG_STATUS" >&2;}
43054 { (exit 1); exit 1; }; }
43055 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
43057 for ac_last_try in false false false false false :; do
43058 . ./conf$$subs.sh ||
43059 { { $as_echo "$as_me:$LINENO: error
: could not
make $CONFIG_STATUS" >&5
43060 $as_echo "$as_me: error
: could not
make $CONFIG_STATUS" >&2;}
43061 { (exit 1); exit 1; }; }
43063 ac_delim_n=`sed -n "s
/.
*$ac_delim\$
/X
/p
" conf$$subs.awk | grep -c X`
43064 if test $ac_delim_n = $ac_delim_num; then
43066 elif $ac_last_try; then
43067 { { $as_echo "$as_me:$LINENO: error
: could not
make $CONFIG_STATUS" >&5
43068 $as_echo "$as_me: error
: could not
make $CONFIG_STATUS" >&2;}
43069 { (exit 1); exit 1; }; }
43071 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
43074 rm -f conf$$subs.sh
43076 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
43077 cat >>"\
$tmp/subs1.
awk" <<\\_ACAWK &&
43081 s/^/S["/; s
/!.
*/"]=/
43091 s/\(.\{148\}\).*/\1/
43093 s/["\\]/\\&/g
; s
/^
/"/; s/$/\\n"\\/
43098 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
43105 s/\(.\{148\}\).*/\1/
43107 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/
43111 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
43116 ' <conf$$subs.awk | sed '
43121 ' >>$CONFIG_STATUS || ac_write_fail=1
43122 rm -f conf$$subs.awk
43123 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
43125 cat >>"\
$tmp/subs1.
awk" <<_ACAWK &&
43126 for (key in S) S_is_set[key] = 1
43128 \$ac_cs_awk_pipe_init
43132 nfields = split(line, field, "@
")
43134 len = length(field[1])
43135 for (i = 2; i < nfields; i++) {
43137 keylen = length(key)
43138 if (S_is_set[key]) {
43140 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
43141 len += length(value) + length(field[++i])
43146 if (nfields == 3 && !substed) {
43148 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
43149 \$ac_cs_awk_read_file
43155 \$ac_cs_awk_pipe_fini
43158 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
43159 if sed "s
/$ac_cr//" < /dev/null > /dev/null 2>&1; then
43160 sed "s
/$ac_cr\$
//; s
/$ac_cr/$ac_cs_awk_cr/g
"
43163 fi < "$tmp/subs1.
awk" > "$tmp/subs.
awk" \
43164 || { { $as_echo "$as_me:$LINENO: error
: could not setup config files machinery
" >&5
43165 $as_echo "$as_me: error
: could not setup config files machinery
" >&2;}
43166 { (exit 1); exit 1; }; }
43169 # VPATH may cause trouble with some makes, so we remove $(srcdir),
43170 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".
", strip leading and
43171 # trailing colons and then remove the whole line if VPATH becomes empty
43172 # (actually we leave an empty line to preserve line numbers).
43173 if test "x
$srcdir" = x.; then
43174 ac_vpsub='/^[ ]*VPATH[ ]*=/{
43175 s/:*\$(srcdir):*/:/
43176 s/:*\${srcdir}:*/:/
43178 s/^\([^=]*=[ ]*\):*/\1/
43184 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
43185 fi # test -n "$CONFIG_FILES"
43187 # Set up the scripts for CONFIG_HEADERS section.
43188 # No need to generate them if there are no CONFIG_HEADERS.
43189 # This happens for instance with `./config.status Makefile'.
43190 if test -n "$CONFIG_HEADERS"; then
43191 cat >"$tmp/defines.
awk" <<\_ACAWK ||
43195 # Transform confdefs.h into an awk script `defines.awk', embedded as
43196 # here-document in config.status, that substitutes the proper values into
43197 # config.h.in to produce config.h.
43199 # Create a delimiter string that does not exist in confdefs.h, to ease
43200 # handling of long lines.
43202 for ac_last_try in false false :; do
43203 ac_t=`sed -n "/$ac_delim/p
" confdefs.h`
43204 if test -z "$ac_t"; then
43206 elif $ac_last_try; then
43207 { { $as_echo "$as_me:$LINENO: error
: could not
make $CONFIG_HEADERS" >&5
43208 $as_echo "$as_me: error
: could not
make $CONFIG_HEADERS" >&2;}
43209 { (exit 1); exit 1; }; }
43211 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
43215 # For the awk script, D is an array of macro values keyed by name,
43216 # likewise P contains macro parameters if any. Preserve backslash
43217 # newline sequences.
43219 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
43221 s/.\{148\}/&'"$ac_delim"'/g
43224 s/^[ ]*#[ ]*define[ ][ ]*/ /
43231 s
/^ \
('"$ac_word_re"'\
)\
(([^
()]*)\
)[ ]*\
(.
*\
)/P
["\1"]="\2"\
43233 s
/^ \
('"$ac_word_re"'\
)[ ]*\
(.
*\
)/D
["\1"]=" \2"/p
43237 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\
1"]="\
2"\
43238 D["\
1"]=" \
3\\\\\\n
"\\/p
43240 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\
1"]=" \
2\\\\\\n
"\\/p
43245 s/.\{148\}/&'"$ac_delim"'/g
43250 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/p
43253 s
/["\\]/\\&/g; s/^/"/; s
/$
/\\\\\\n
"\\/p
43255 ' <confdefs.h | sed '
43256 s/'"$ac_delim"'/"\\\
43257 "/g' >>$CONFIG_STATUS || ac_write_fail=1
43259 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
43260 for (key in D) D_is_set[key] = 1
43263 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
43265 split(line, arg, " ")
43266 if (arg[1] == "#") {
43270 defundef
= substr
(arg
[1], 2)
43273 split(mac1
, mac2
, "(") #)
43275 prefix
= substr
(line
, 1, index
(line
, defundef
) - 1)
43276 if (D_is_set
[macro
]) {
43277 # Preserve the white space surrounding the "#".
43278 print prefix
"define", macro P
[macro
] D
[macro
]
43281 # Replace #undef with comments. This is necessary, for example,
43282 # in the case of _POSIX_SOURCE, which is predefined and required
43283 # on some systems where configure will not decide to define it.
43284 if (defundef
== "undef") {
43285 print
"/*", prefix defundef
, macro
, "*/"
43293 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
43294 { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5
43295 $as_echo "$as_me: error: could not setup config headers machinery" >&2;}
43296 { (exit 1); exit 1; }; }
43297 fi # test -n "$CONFIG_HEADERS"
43300 eval set X
" :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
43305 :[FHLC
]) ac_mode
=$ac_tag; continue;;
43307 case $ac_mode$ac_tag in
43309 :L
* |
:C
*:*) { { $as_echo "$as_me:$LINENO: error: invalid tag $ac_tag" >&5
43310 $as_echo "$as_me: error: invalid tag $ac_tag" >&2;}
43311 { (exit 1); exit 1; }; };;
43312 :[FH
]-) ac_tag
=-:-;;
43313 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
43330 -) ac_f
="$tmp/stdin";;
43331 *) # Look for the file first in the build tree, then in the source tree
43332 # (if the path is not absolute). The absolute path cannot be DOS-style,
43333 # because $ac_f cannot contain `:'.
43337 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
43339 { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
43340 $as_echo "$as_me: error: cannot find input file: $ac_f" >&2;}
43341 { (exit 1); exit 1; }; };;
43343 case $ac_f in *\'*) ac_f
=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
43344 ac_file_inputs
="$ac_file_inputs '$ac_f'"
43347 # Let's still pretend it is `configure' which instantiates (i.e., don't
43348 # use $as_me), people would be surprised to read:
43349 # /* config.h. Generated by config.status. */
43350 configure_input
='Generated from '`
43351 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
43353 if test x
"$ac_file" != x-
; then
43354 configure_input
="$ac_file. $configure_input"
43355 { $as_echo "$as_me:$LINENO: creating $ac_file" >&5
43356 $as_echo "$as_me: creating $ac_file" >&6;}
43358 # Neutralize special characters interpreted by sed in replacement strings.
43359 case $configure_input in #(
43360 *\
&* |
*\|
* |
*\\* )
43361 ac_sed_conf_input
=`$as_echo "$configure_input" |
43362 sed 's/[\\\\&|]/\\\\&/g'`;; #(
43363 *) ac_sed_conf_input
=$configure_input;;
43367 *:-:* |
*:-) cat >"$tmp/stdin" \
43368 ||
{ { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
43369 $as_echo "$as_me: error: could not create $ac_file" >&2;}
43370 { (exit 1); exit 1; }; } ;;
43375 ac_dir
=`$as_dirname -- "$ac_file" ||
43376 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
43377 X"$ac_file" : 'X\(//\)[^/]' \| \
43378 X"$ac_file" : 'X\(//\)$' \| \
43379 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
43380 $as_echo X"$ac_file" |
43381 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
43385 /^X\(\/\/\)[^/].*/{
43400 -*) as_dir
=.
/$as_dir;;
43402 test -d "$as_dir" ||
{ $as_mkdir_p && mkdir
-p "$as_dir"; } ||
{
43406 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
43407 *) as_qdir
=$as_dir;;
43409 as_dirs
="'$as_qdir' $as_dirs"
43410 as_dir
=`$as_dirname -- "$as_dir" ||
43411 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
43412 X"$as_dir" : 'X\(//\)[^/]' \| \
43413 X"$as_dir" : 'X\(//\)$' \| \
43414 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
43415 $as_echo X"$as_dir" |
43416 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
43420 /^X\(\/\/\)[^/].*/{
43433 test -d "$as_dir" && break
43435 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
43436 } ||
test -d "$as_dir" ||
{ { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
43437 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
43438 { (exit 1); exit 1; }; }; }
43442 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
43444 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
43445 # A ".." for each directory in $ac_dir_suffix.
43446 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
43447 case $ac_top_builddir_sub in
43448 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
43449 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
43452 ac_abs_top_builddir
=$ac_pwd
43453 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
43454 # for backward compatibility:
43455 ac_top_builddir
=$ac_top_build_prefix
43458 .
) # We are building in place.
43460 ac_top_srcdir
=$ac_top_builddir_sub
43461 ac_abs_top_srcdir
=$ac_pwd ;;
43462 [\\/]* | ?
:[\\/]* ) # Absolute name.
43463 ac_srcdir
=$srcdir$ac_dir_suffix;
43464 ac_top_srcdir
=$srcdir
43465 ac_abs_top_srcdir
=$srcdir ;;
43466 *) # Relative name.
43467 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
43468 ac_top_srcdir
=$ac_top_build_prefix$srcdir
43469 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
43471 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
43481 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
43482 *) ac_INSTALL
=$ac_top_build_prefix$INSTALL ;;
43484 ac_MKDIR_P
=$MKDIR_P
43486 [\\/$
]* | ?
:[\\/]* ) ;;
43487 */*) ac_MKDIR_P
=$ac_top_build_prefix$MKDIR_P ;;
43491 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
43492 # If the template does not know about datarootdir, expand it.
43493 # FIXME: This hack should be removed a few years after 2.60.
43494 ac_datarootdir_hack
=; ac_datarootdir_seen
=
43507 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
43508 *datarootdir
*) ac_datarootdir_seen
=yes;;
43509 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
43510 { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
43511 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
43513 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
43514 ac_datarootdir_hack='
43515 s&@datadir@&$datadir&g
43516 s&@docdir@&$docdir&g
43517 s&@infodir@&$infodir&g
43518 s&@localedir@&$localedir&g
43519 s&@mandir@&$mandir&g
43520 s&\\\${datarootdir}&$datarootdir&g' ;;
43524 # Neutralize VPATH when `$srcdir' = `.'.
43525 # Shell code in configure.ac might set extrasub.
43526 # FIXME: do we really want to maintain this feature?
43527 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
43528 ac_sed_extra="$ac_vpsub
43531 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
43533 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
43534 s|@configure_input@|
$ac_sed_conf_input|
;t t
43535 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
43536 s
&@top_build_prefix@
&$ac_top_build_prefix&;t t
43537 s
&@srcdir@
&$ac_srcdir&;t t
43538 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
43539 s
&@top_srcdir@
&$ac_top_srcdir&;t t
43540 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
43541 s
&@builddir@
&$ac_builddir&;t t
43542 s
&@abs_builddir@
&$ac_abs_builddir&;t t
43543 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
43544 s
&@INSTALL@
&$ac_INSTALL&;t t
43545 s
&@MKDIR_P@
&$ac_MKDIR_P&;t t
43546 $ac_datarootdir_hack
43548 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
43549 if $ac_cs_awk_getline; then
43550 $AWK -f "$tmp/subs.
awk"
43552 $AWK -f "$tmp/subs.
awk" | $SHELL
43554 || { { $as_echo "$as_me:$LINENO: error
: could not create
$ac_file" >&5
43555 $as_echo "$as_me: error
: could not create
$ac_file" >&2;}
43556 { (exit 1); exit 1; }; }
43558 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
43559 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out
"`; test -n "$ac_out"; } &&
43560 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out
"`; test -z "$ac_out"; } &&
43561 { $as_echo "$as_me:$LINENO: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
43562 which seems to be undefined. Please make sure it is defined." >&5
43563 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
43564 which seems to be undefined. Please make sure it is defined." >&2;}
43568 -) cat "$tmp/out" && rm -f "$tmp/out";;
43569 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
43571 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
43572 $as_echo "$as_me: error: could not create $ac_file" >&2;}
43573 { (exit 1); exit 1; }; }
43579 if test x"$ac_file" != x-; then
43581 $as_echo "/* $configure_input */" \
43582 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
43583 } >"$tmp/config.h" \
43584 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
43585 $as_echo "$as_me: error: could not create $ac_file" >&2;}
43586 { (exit 1); exit 1; }; }
43587 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
43588 { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5
43589 $as_echo "$as_me: $ac_file is unchanged" >&6;}
43592 mv "$tmp/config.h" "$ac_file" \
43593 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
43594 $as_echo "$as_me: error: could not create $ac_file" >&2;}
43595 { (exit 1); exit 1; }; }
43598 $as_echo "/* $configure_input */" \
43599 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
43600 || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5
43601 $as_echo "$as_me: error: could not create -" >&2;}
43602 { (exit 1); exit 1; }; }
43604 # Compute "$ac_file"'s index
in $config_headers.
43607 for _am_header
in $config_headers :; do
43608 case $_am_header in
43609 $_am_arg |
$_am_arg:* )
43612 _am_stamp_count
=`expr $_am_stamp_count + 1` ;;
43615 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
43616 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
43617 X"$_am_arg" : 'X\(//\)[^/]' \| \
43618 X"$_am_arg" : 'X\(//\)$' \| \
43619 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
43620 $as_echo X"$_am_arg" |
43621 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
43625 /^X\(\/\/\)[^/].*/{
43637 s/.*/./; q'`/stamp-h
$_am_stamp_count
43640 :C
) { $as_echo "$as_me:$LINENO: executing $ac_file commands" >&5
43641 $as_echo "$as_me: executing $ac_file commands" >&6;}
43646 case $ac_file$ac_mode in
43647 "depfiles":C
) test x
"$AMDEP_TRUE" != x
"" ||
for mf
in $CONFIG_FILES; do
43648 # Strip MF so we end up with the name of the file.
43649 mf
=`echo "$mf" | sed -e 's/:.*$//'`
43650 # Check whether this is an Automake generated Makefile or not.
43651 # We used to match only the files named `Makefile.in', but
43652 # some people rename them; so instead we look at the file content.
43653 # Grep'ing the first line is not enough: some people post-process
43654 # each Makefile.in and add a new line on top of each file to say so.
43655 # Grep'ing the whole file is not good either: AIX grep has a line
43656 # limit of 2048, but all sed's we know have understand at least 4000.
43657 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" |
grep X
>/dev
/null
2>&1; then
43658 dirpart
=`$as_dirname -- "$mf" ||
43659 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
43660 X"$mf" : 'X\(//\)[^/]' \| \
43661 X"$mf" : 'X\(//\)$' \| \
43662 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
43664 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
43668 /^X\(\/\/\)[^/].*/{
43684 # Extract the definition of DEPDIR, am__include, and am__quote
43685 # from the Makefile without running `make'.
43686 DEPDIR
=`sed -n 's/^DEPDIR = //p' < "$mf"`
43687 test -z "$DEPDIR" && continue
43688 am__include
=`sed -n 's/^am__include = //p' < "$mf"`
43689 test -z "am__include" && continue
43690 am__quote
=`sed -n 's/^am__quote = //p' < "$mf"`
43691 # When using ansi2knr, U may be empty or an underscore; expand it
43692 U
=`sed -n 's/^U = //p' < "$mf"`
43693 # Find all dependency output files, they are included files with
43694 # $(DEPDIR) in their names. We invoke sed twice because it is the
43695 # simplest approach to changing $(DEPDIR) to its actual value in the
43697 for file in `sed -n "
43698 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
43699 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
43700 # Make sure the directory exists.
43701 test -f "$dirpart/$file" && continue
43702 fdir
=`$as_dirname -- "$file" ||
43703 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
43704 X"$file" : 'X\(//\)[^/]' \| \
43705 X"$file" : 'X\(//\)$' \| \
43706 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
43707 $as_echo X"$file" |
43708 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
43712 /^X\(\/\/\)[^/].*/{
43725 { as_dir
=$dirpart/$fdir
43727 -*) as_dir
=.
/$as_dir;;
43729 test -d "$as_dir" ||
{ $as_mkdir_p && mkdir
-p "$as_dir"; } ||
{
43733 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
43734 *) as_qdir
=$as_dir;;
43736 as_dirs
="'$as_qdir' $as_dirs"
43737 as_dir
=`$as_dirname -- "$as_dir" ||
43738 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
43739 X"$as_dir" : 'X\(//\)[^/]' \| \
43740 X"$as_dir" : 'X\(//\)$' \| \
43741 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
43742 $as_echo X"$as_dir" |
43743 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
43747 /^X\(\/\/\)[^/].*/{
43760 test -d "$as_dir" && break
43762 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
43763 } ||
test -d "$as_dir" ||
{ { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
43764 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
43765 { (exit 1); exit 1; }; }; }
43766 # echo "creating $dirpart/$file"
43767 echo '# dummy' > "$dirpart/$file"
43772 for ac_file
in $CONFIG_FILES; do
43773 # Support "outfile[:infile[:infile...]]"
43775 *:*) ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
43777 # PO directories have a Makefile.in generated from Makefile.in.in.
43778 case "$ac_file" in */Makefile.
in)
43779 # Adjust a relative srcdir.
43780 ac_dir
=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
43781 ac_dir_suffix
="/`echo "$ac_dir"|sed 's%^\./%%'`"
43782 ac_dots
=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
43783 # In autoconf-2.13 it is called $ac_given_srcdir.
43784 # In autoconf-2.50 it is called $srcdir.
43785 test -n "$ac_given_srcdir" || ac_given_srcdir
="$srcdir"
43786 case "$ac_given_srcdir" in
43787 .
) top_srcdir
=`echo $ac_dots|sed 's%/$%%'` ;;
43788 /*) top_srcdir
="$ac_given_srcdir" ;;
43789 *) top_srcdir
="$ac_dots$ac_given_srcdir" ;;
43791 # Treat a directory as a PO directory if and only if it has a
43792 # POTFILES.in file. This allows packages to have multiple PO
43793 # directories under different names or in different locations.
43794 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
43795 rm -f "$ac_dir/POTFILES"
43796 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" ||
echo "creating $ac_dir/POTFILES"
43797 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" |
sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," |
sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
43798 POMAKEFILEDEPS
="POTFILES.in"
43799 # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
43800 # on $ac_dir but don't depend on user-specified configuration
43802 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
43803 # The LINGUAS file contains the set of available languages.
43804 if test -n "$OBSOLETE_ALL_LINGUAS"; then
43805 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" ||
echo "setting ALL_LINGUAS in configure.in is obsolete"
43807 ALL_LINGUAS_
=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
43808 # Hide the ALL_LINGUAS assigment from automake.
43809 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
43810 POMAKEFILEDEPS
="$POMAKEFILEDEPS LINGUAS"
43812 # The set of available languages was given in configure.in.
43813 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
43816 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
43817 # Compute UPDATEPOFILES
43818 # as $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
43819 # Compute DUMMYPOFILES
43820 # as $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
43822 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
43823 case "$ac_given_srcdir" in
43825 *) srcdirpre
='$(srcdir)/' ;;
43831 for lang
in $ALL_LINGUAS; do
43832 POFILES
="$POFILES $srcdirpre$lang.po"
43833 UPDATEPOFILES
="$UPDATEPOFILES $lang.po-update"
43834 DUMMYPOFILES
="$DUMMYPOFILES $lang.nop"
43835 GMOFILES
="$GMOFILES $srcdirpre$lang.gmo"
43837 # CATALOGS depends on both $ac_dir and the user's LINGUAS
43838 # environment variable.
43840 if test -n "$ALL_LINGUAS"; then
43841 for presentlang
in $ALL_LINGUAS; do
43843 if test "%UNSET%" != "$LINGUAS"; then
43844 desiredlanguages
="$LINGUAS"
43846 desiredlanguages
="$ALL_LINGUAS"
43848 for desiredlang
in $desiredlanguages; do
43849 # Use the presentlang catalog if desiredlang is
43850 # a. equal to presentlang, or
43851 # b. a variant of presentlang (because in this case,
43852 # presentlang can be used as a fallback for messages
43853 # which are not translated in the desiredlang catalog).
43854 case "$desiredlang" in
43855 "$presentlang"*) useit
=yes;;
43858 if test $useit = yes; then
43859 INST_LINGUAS
="$INST_LINGUAS $presentlang"
43864 if test -n "$INST_LINGUAS"; then
43865 for lang
in $INST_LINGUAS; do
43866 CATALOGS
="$CATALOGS $lang.gmo"
43869 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" ||
echo "creating $ac_dir/Makefile"
43870 sed -e "/^POTFILES =/r $ac_dir/POTFILES" -e "/^# Makevars/r $ac_given_srcdir/$ac_dir/Makevars" -e "s|@POFILES@|$POFILES|g" -e "s|@UPDATEPOFILES@|$UPDATEPOFILES|g" -e "s|@DUMMYPOFILES@|$DUMMYPOFILES|g" -e "s|@GMOFILES@|$GMOFILES|g" -e "s|@CATALOGS@|$CATALOGS|g" -e "s|@POMAKEFILEDEPS@|$POMAKEFILEDEPS|g" "$ac_dir/Makefile.in" > "$ac_dir/Makefile"
43871 for f
in "$ac_given_srcdir/$ac_dir"/Rules-
*; do
43872 if test -f "$f"; then
43874 *.orig |
*.bak |
*~
) ;;
43875 *) cat "$f" >> "$ac_dir/Makefile" ;;
43883 "contrib/validate_repo":F
) chmod +x contrib
/validate_repo
;;
43884 "contrib/clmerge":F
) chmod +x contrib
/clmerge
;;
43885 "contrib/cln_hist":F
) chmod +x contrib
/cln_hist
;;
43886 "contrib/commit_prep":F
) chmod +x contrib
/commit_prep
;;
43887 "contrib/cvs_acls":F
) chmod +x contrib
/cvs_acls
;;
43888 "contrib/log":F
) chmod +x contrib
/log
;;
43889 "contrib/log_accum":F
) chmod +x contrib
/log_accum
;;
43890 "contrib/mfpipe":F
) chmod +x contrib
/mfpipe
;;
43891 "contrib/pvcs2rcs":F
) chmod +x contrib
/pvcs2rcs
;;
43892 "contrib/rcs2log":F
) chmod +x contrib
/rcs2log
;;
43893 "contrib/rcslock":F
) chmod +x contrib
/rcslock
;;
43894 "contrib/sccs2rcs":F
) chmod +x contrib
/sccs2rcs
;;
43895 "doc/mkman":F
) chmod +x
doc
/mkman
;;
43896 "src/cvsbug":F
) chmod +x src
/cvsbug
;;
43902 { (exit 0); exit 0; }
43904 chmod +x
$CONFIG_STATUS
43905 ac_clean_files
=$ac_clean_files_save
43907 test $ac_write_fail = 0 ||
43908 { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5
43909 $as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;}
43910 { (exit 1); exit 1; }; }
43913 # configure is writing to config.log, and then calls config.status.
43914 # config.status does its own redirection, appending to config.log.
43915 # Unfortunately, on DOS this fails, as config.log is still kept open
43916 # by configure, so config.status won't be able to write to it; its
43917 # output is simply discarded. So we exec the FD to /dev/null,
43918 # effectively closing config.log, so it can be properly (re)opened and
43919 # appended to by config.status. When coming back to configure, we
43920 # need to make the FD available again.
43921 if test "$no_create" != yes; then
43923 ac_config_status_args
=
43924 test "$silent" = yes &&
43925 ac_config_status_args
="$ac_config_status_args --quiet"
43927 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
43929 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
43930 # would make configure fail if this is the last instruction.
43931 $ac_cs_success ||
{ (exit 1); exit 1; }
43933 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no
; then
43934 { $as_echo "$as_me:$LINENO: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
43935 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
43941 # Report the state of this version of CVS if this is from dev.