Expand PMF_FN_* macros.
[netbsd-mini2440.git] / external / gpl2 / xcvs / dist / configure
blobb1843c0876ba656b29df52b68098bc184e17db63
1 #! /bin/sh
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)
14 # any later version.
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
32 emulate sh
33 NULLCMD=:
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+"$@"}'='"$@"'
37 setopt NO_GLOB_SUBST
38 else
39 case `(set -o) 2>/dev/null` in
40 *posix*) set -o posix ;;
41 esac
48 # PATH needs CR
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
56 as_nl='
58 export as_nl
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
64 as_echo='printf %s\n'
65 as_echo_n='printf %s'
66 else
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'
70 else
71 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
72 as_echo_n_body='eval
73 arg=$1;
74 case $arg in
75 *"$as_nl"*)
76 expr "X$arg" : "X\\(.*\\)$as_nl";
77 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
78 esac;
79 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
81 export as_echo_n_body
82 as_echo_n='sh -c $as_echo_n_body as_echo'
84 export as_echo_body
85 as_echo='sh -c $as_echo_body as_echo'
88 # The user is always right.
89 if test "${PATH_SEPARATOR+set}" != set; then
90 PATH_SEPARATOR=:
91 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
92 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
93 PATH_SEPARATOR=';'
97 # Support unset when possible.
98 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
99 as_unset=unset
100 else
101 as_unset=false
105 # IFS
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.)
110 IFS=" "" $as_nl"
112 # Find who we are. Look in the path if we contain no directory separator.
113 case $0 in
114 *[\\/]* ) as_myself=$0 ;;
115 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
116 for as_dir in $PATH
118 IFS=$as_save_IFS
119 test -z "$as_dir" && as_dir=.
120 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
121 done
122 IFS=$as_save_IFS
125 esac
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
129 as_myself=$0
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
139 done
140 PS1='$ '
141 PS2='> '
142 PS4='+ '
144 # NLS nuisances.
145 LC_ALL=C
146 export LC_ALL
147 LANGUAGE=C
148 export LANGUAGE
150 # Required to use basename.
151 if expr a : '\(a\)' >/dev/null 2>&1 &&
152 test "X`expr 00001 : '.*\(...\)'`" = X001; then
153 as_expr=expr
154 else
155 as_expr=false
158 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
159 as_basename=basename
160 else
161 as_basename=false
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 ||
170 $as_echo X/"$0" |
171 sed '/^.*\/\([^/][^/]*\)\/*$/{
172 s//\1/
175 /^X\/\(\/\/\)$/{
176 s//\1/
179 /^X\/\(\/\).*/{
180 s//\1/
183 s/.*/./; q'`
185 # CDPATH.
186 $as_unset CDPATH
189 if test "x$CONFIG_SHELL" = x; then
190 if (eval ":") 2>/dev/null; then
191 as_have_required=yes
192 else
193 as_have_required=no
196 if test $as_have_required = yes && (eval ":
197 (as_func_return () {
198 (exit \$1)
200 as_func_success () {
201 as_func_return 0
203 as_func_failure () {
204 as_func_return 1
206 as_func_ret_success () {
207 return 0
209 as_func_ret_failure () {
210 return 1
213 exitcode=0
214 if as_func_success; then
216 else
217 exitcode=1
218 echo as_func_success failed.
221 if as_func_failure; then
222 exitcode=1
223 echo as_func_failure succeeded.
226 if as_func_ret_success; then
228 else
229 exitcode=1
230 echo as_func_ret_success failed.
233 if as_func_ret_failure; then
234 exitcode=1
235 echo as_func_ret_failure succeeded.
238 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
240 else
241 exitcode=1
242 echo positional parameters were not saved.
245 test \$exitcode = 0) || { (exit 1); exit 1; }
248 as_lineno_1=\$LINENO
249 as_lineno_2=\$LINENO
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
254 else
255 as_candidate_shells=
256 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
257 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
259 IFS=$as_save_IFS
260 test -z "$as_dir" && as_dir=.
261 case $as_dir in
263 for as_base in sh bash ksh sh5; do
264 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
265 done;;
266 esac
267 done
268 IFS=$as_save_IFS
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
276 emulate sh
277 NULLCMD=:
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+"$@"}'='"$@"'
281 setopt NO_GLOB_SUBST
282 else
283 case `(set -o) 2>/dev/null` in
284 *posix*) set -o posix ;;
285 esac
291 _ASEOF
292 }; then
293 CONFIG_SHELL=$as_shell
294 as_have_required=yes
295 if { "$as_shell" 2> /dev/null <<\_ASEOF
296 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
297 emulate sh
298 NULLCMD=:
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+"$@"}'='"$@"'
302 setopt NO_GLOB_SUBST
303 else
304 case `(set -o) 2>/dev/null` in
305 *posix*) set -o posix ;;
306 esac
312 (as_func_return () {
313 (exit $1)
315 as_func_success () {
316 as_func_return 0
318 as_func_failure () {
319 as_func_return 1
321 as_func_ret_success () {
322 return 0
324 as_func_ret_failure () {
325 return 1
328 exitcode=0
329 if as_func_success; then
331 else
332 exitcode=1
333 echo as_func_success failed.
336 if as_func_failure; then
337 exitcode=1
338 echo as_func_failure succeeded.
341 if as_func_ret_success; then
343 else
344 exitcode=1
345 echo as_func_ret_success failed.
348 if as_func_ret_failure; then
349 exitcode=1
350 echo as_func_ret_failure succeeded.
353 if ( set x; as_func_ret_success y && test x = "$1" ); then
355 else
356 exitcode=1
357 echo positional parameters were not saved.
360 test $exitcode = 0) || { (exit 1); exit 1; }
363 as_lineno_1=$LINENO
364 as_lineno_2=$LINENO
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; }
368 _ASEOF
369 }; then
370 break
375 done
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
380 done
381 export CONFIG_SHELL
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 () {
402 (exit \$1)
404 as_func_success () {
405 as_func_return 0
407 as_func_failure () {
408 as_func_return 1
410 as_func_ret_success () {
411 return 0
413 as_func_ret_failure () {
414 return 1
417 exitcode=0
418 if as_func_success; then
420 else
421 exitcode=1
422 echo as_func_success failed.
425 if as_func_failure; then
426 exitcode=1
427 echo as_func_failure succeeded.
430 if as_func_ret_success; then
432 else
433 exitcode=1
434 echo as_func_ret_success failed.
437 if as_func_ret_failure; then
438 exitcode=1
439 echo as_func_ret_failure succeeded.
442 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
444 else
445 exitcode=1
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.
459 as_lineno_1=$LINENO
460 as_lineno_2=$LINENO
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
470 # case at line end.
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. :-)
474 sed -n '
476 /[$]LINENO/=
477 ' <$as_myself |
478 sed '
479 s/[$]LINENO.*/&-/
480 t lineno
482 :lineno
484 :loop
485 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
486 t loop
487 s/-\n.*//
488 ' >$as_me.lineno &&
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).
496 . "./$as_me.lineno"
497 # Exit status is that of the last command.
498 exit
502 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
503 as_dirname=dirname
504 else
505 as_dirname=false
508 ECHO_C= ECHO_N= ECHO_T=
509 case `echo -n x` in
510 -n*)
511 case `echo 'x\c'` in
512 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
513 *) ECHO_C='\c';;
514 esac;;
516 ECHO_N='-n';;
517 esac
518 if expr a : '\(a\)' >/dev/null 2>&1 &&
519 test "X`expr 00001 : '.*\(...\)'`" = X001; then
520 as_expr=expr
521 else
522 as_expr=false
525 rm -f conf$$ conf$$.exe conf$$.file
526 if test -d conf$$.dir; then
527 rm -f conf$$.dir/conf$$.file
528 else
529 rm -f conf$$.dir
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
534 as_ln_s='ln -s'
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 ||
540 as_ln_s='cp -p'
541 elif ln conf$$.file conf$$ 2>/dev/null; then
542 as_ln_s=ln
543 else
544 as_ln_s='cp -p'
546 else
547 as_ln_s='cp -p'
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
553 as_mkdir_p=:
554 else
555 test -d ./-p && rmdir ./-p
556 as_mkdir_p=false
559 if test -x / >/dev/null 2>&1; then
560 as_test_x='test -x'
561 else
562 if ls -dL / >/dev/null 2>&1; then
563 as_ls_L_option=L
564 else
565 as_ls_L_option=
567 as_test_x='
568 eval sh -c '\''
569 if test -d "$1"; then
570 test -d "$1/.";
571 else
572 case $1 in
573 -*)set "./$1";;
574 esac;
575 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
576 ???[sx]*):;;*)false;;esac;fi
577 '\'' sh
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
592 # Name of the host.
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`
598 # Initializations.
600 ac_default_prefix=/usr/local
601 ac_clean_files=
602 ac_config_libobj_dir=.
603 LIBOBJS=
604 cross_compiling=no
605 subdirs=
606 MFLAGS=
607 MAKEFLAGS=
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="\
620 #include <stdio.h>
621 #ifdef HAVE_SYS_TYPES_H
622 # include <sys/types.h>
623 #endif
624 #ifdef HAVE_SYS_STAT_H
625 # include <sys/stat.h>
626 #endif
627 #ifdef STDC_HEADERS
628 # include <stdlib.h>
629 # include <stddef.h>
630 #else
631 # ifdef HAVE_STDLIB_H
632 # include <stdlib.h>
633 # endif
634 #endif
635 #ifdef HAVE_STRING_H
636 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
637 # include <memory.h>
638 # endif
639 # include <string.h>
640 #endif
641 #ifdef HAVE_STRINGS_H
642 # include <strings.h>
643 #endif
644 #ifdef HAVE_INTTYPES_H
645 # include <inttypes.h>
646 #endif
647 #ifdef HAVE_STDINT_H
648 # include <stdint.h>
649 #endif
650 #ifdef HAVE_UNISTD_H
651 # include <unistd.h>
652 #endif"
654 gl_func_list=
655 gl_header_list=
656 ac_subst_vars='LTLIBOBJS
657 EDITOR
658 RSH_DFLT
659 with_default_rsh
660 ZLIB_LIBS
661 ZLIB_CPPFLAGS
662 ZLIB_SUBDIRS
663 KRB4
664 cvs_client_objects
665 POSUB
666 LTLIBINTL
667 LIBINTL
668 INTLLIBS
669 LTLIBICONV
670 LIBICONV
671 INTL_MACOSX_LIBS
672 host_os
673 host_vendor
674 host_cpu
675 host
676 build_os
677 build_vendor
678 build_cpu
679 build
680 MSGMERGE
681 XGETTEXT
682 GMSGFMT
683 MSGFMT
684 USE_NLS
685 MKINSTALLDIRS
686 EOVERFLOW
687 STDINT_H
688 HAVE_LONG_LONG_64BIT
689 HAVE_LONG_64BIT
690 LIB_NANOSLEEP
691 GLOB_H
692 GETOPT_H
693 LIB_CLOCK_GETTIME
694 YFLAGS
695 YACC
696 FNMATCH_H
697 HAVE__BOOL
698 STDBOOL_H
699 ALLOCA_H
700 ALLOCA
701 LIBOBJS
702 MAKE_TARGETS_IN_VPATH_FALSE
703 MAKE_TARGETS_IN_VPATH_TRUE
704 TEXI2DVI
705 PS2PDF
706 ROFF
708 SENDMAIL
709 MKTEMP
711 PERL
712 LN_S
713 RANLIB
714 EGREP
715 GREP
717 am__fastdepCC_FALSE
718 am__fastdepCC_TRUE
719 CCDEPMODE
720 AMDEPBACKSLASH
721 AMDEP_FALSE
722 AMDEP_TRUE
723 am__quote
724 am__include
725 DEPDIR
726 OBJEXT
727 EXEEXT
728 ac_ct_CC
729 CPPFLAGS
730 LDFLAGS
731 CFLAGS
733 MAINT
734 MAINTAINER_MODE_FALSE
735 MAINTAINER_MODE_TRUE
736 ac_prefix_program
737 am__untar
738 am__tar
739 AMTAR
740 am__leading_dot
741 SET_MAKE
743 mkdir_p
744 MKDIR_P
745 INSTALL_STRIP_PROGRAM
746 STRIP
747 install_sh
748 MAKEINFO
749 AUTOHEADER
750 AUTOMAKE
751 AUTOCONF
752 ACLOCAL
753 VERSION
754 PACKAGE
755 CYGPATH_W
756 am__isrc
757 INSTALL_DATA
758 INSTALL_SCRIPT
759 INSTALL_PROGRAM
760 target_alias
761 host_alias
762 build_alias
763 LIBS
764 ECHO_T
765 ECHO_N
766 ECHO_C
767 DEFS
768 mandir
769 localedir
770 libdir
771 psdir
772 pdfdir
773 dvidir
774 htmldir
775 infodir
776 docdir
777 oldincludedir
778 includedir
779 localstatedir
780 sharedstatedir
781 sysconfdir
782 datadir
783 datarootdir
784 libexecdir
785 sbindir
786 bindir
787 program_transform_name
788 prefix
789 exec_prefix
790 PACKAGE_BUGREPORT
791 PACKAGE_STRING
792 PACKAGE_VERSION
793 PACKAGE_TARNAME
794 PACKAGE_NAME
795 PATH_SEPARATOR
796 SHELL'
797 ac_subst_files='MKTEMP_SH_FUNCTION'
798 ac_user_opts='
799 enable_option_checking
800 enable_maintainer_mode
801 enable_dependency_tracking
802 enable_largefile
803 with_included_regex
804 enable_nls
805 with_gnu_ld
806 enable_rpath
807 with_libiconv_prefix
808 with_libintl_prefix
809 with_krb4
810 with_gssapi
811 with_external_zlib
812 with_rsh
813 with_editor
814 with_hardcoded_pam_service_name
815 with_tmpdir
816 with_umask
817 with_cvs_admin_group
818 enable_cvs_ndbm
819 enable_client
820 enable_password_authenticated_client
821 enable_server
822 enable_server_flow_control
823 enable_proxy
824 enable_pam
825 enable_case_sensitivity
826 enable_encryption
827 enable_force_editor
828 enable_lock_compatibility
829 enable_rootcommit
830 enable_old_info_support
831 enable_config_override
833 ac_precious_vars='build_alias
834 host_alias
835 target_alias
837 CFLAGS
838 LDFLAGS
839 LIBS
840 CPPFLAGS
842 YACC
843 YFLAGS
844 EDITOR'
847 # Initialize some variables set by options.
848 ac_init_help=
849 ac_init_version=false
850 ac_unrecognized_opts=
851 ac_unrecognized_sep=
852 # The variables have the same names as the options, with
853 # dashes changed to underlines.
854 cache_file=/dev/null
855 exec_prefix=NONE
856 no_create=
857 no_recursion=
858 prefix=NONE
859 program_prefix=NONE
860 program_suffix=NONE
861 program_transform_name=s,x,x,
862 silent=
863 site=
864 srcdir=
865 verbose=
866 x_includes=NONE
867 x_libraries=NONE
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'
887 htmldir='${docdir}'
888 dvidir='${docdir}'
889 pdfdir='${docdir}'
890 psdir='${docdir}'
891 libdir='${exec_prefix}/lib'
892 localedir='${datarootdir}/locale'
893 mandir='${datarootdir}/man'
895 ac_prev=
896 ac_dashdash=
897 for ac_option
899 # If the previous option needs an argument, assign it.
900 if test -n "$ac_prev"; then
901 eval $ac_prev=\$ac_option
902 ac_prev=
903 continue
906 case $ac_option in
907 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
908 *) ac_optarg=yes ;;
909 esac
911 # Accept the important Cygnus configure options, so we can diagnose typos.
913 case $ac_dashdash$ac_option in
915 ac_dashdash=yes ;;
917 -bindir | --bindir | --bindi | --bind | --bin | --bi)
918 ac_prev=bindir ;;
919 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
920 bindir=$ac_optarg ;;
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 ;;
934 --config-cache | -C)
935 cache_file=config.cache ;;
937 -datadir | --datadir | --datadi | --datad)
938 ac_prev=datadir ;;
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
959 "enable_$ac_useropt"
960 "*) ;;
961 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
962 ac_unrecognized_sep=', ';;
963 esac
964 eval enable_$ac_useropt=no ;;
966 -docdir | --docdir | --docdi | --doc | --do)
967 ac_prev=docdir ;;
968 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
969 docdir=$ac_optarg ;;
971 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
972 ac_prev=dvidir ;;
973 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
974 dvidir=$ac_optarg ;;
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
986 "enable_$ac_useropt"
987 "*) ;;
988 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
989 ac_unrecognized_sep=', ';;
990 esac
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.
1004 with_gas=yes ;;
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)
1019 ac_prev=htmldir ;;
1020 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1021 | --ht=*)
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)
1032 ac_prev=infodir ;;
1033 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1034 infodir=$ac_optarg ;;
1036 -libdir | --libdir | --libdi | --libd)
1037 ac_prev=libdir ;;
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)
1061 ac_prev=mandir ;;
1062 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1063 mandir=$ac_optarg ;;
1065 -nfp | --nfp | --nf)
1066 # Obsolete; use --without-fp.
1067 with_fp=no ;;
1069 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1070 | --no-cr | --no-c | -n)
1071 no_create=yes ;;
1073 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1074 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1075 no_recursion=yes ;;
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)
1087 ac_prev=prefix ;;
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)
1123 ac_prev=pdfdir ;;
1124 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1125 pdfdir=$ac_optarg ;;
1127 -psdir | --psdir | --psdi | --psd | --ps)
1128 ac_prev=psdir ;;
1129 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1130 psdir=$ac_optarg ;;
1132 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1133 | -silent | --silent | --silen | --sile | --sil)
1134 silent=yes ;;
1136 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1137 ac_prev=sbindir ;;
1138 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1139 | --sbi=* | --sb=*)
1140 sbindir=$ac_optarg ;;
1142 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1143 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1144 | --sharedst | --shareds | --shared | --share | --shar \
1145 | --sha | --sh)
1146 ac_prev=sharedstatedir ;;
1147 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1148 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1149 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1150 | --sha=* | --sh=*)
1151 sharedstatedir=$ac_optarg ;;
1153 -site | --site | --sit)
1154 ac_prev=site ;;
1155 -site=* | --site=* | --sit=*)
1156 site=$ac_optarg ;;
1158 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1159 ac_prev=srcdir ;;
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)
1176 verbose=yes ;;
1178 -version | --version | --versio | --versi | --vers | -V)
1179 ac_init_version=: ;;
1181 -with-* | --with-*)
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
1191 "with_$ac_useropt"
1192 "*) ;;
1193 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1194 ac_unrecognized_sep=', ';;
1195 esac
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
1208 "with_$ac_useropt"
1209 "*) ;;
1210 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1211 ac_unrecognized_sep=', ';;
1212 esac
1213 eval with_$ac_useropt=no ;;
1215 --x)
1216 # Obsolete; use --with-x.
1217 with_x=yes ;;
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; }; }
1238 *=*)
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}
1255 esac
1256 done
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
1266 no) ;;
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 ;;
1270 esac
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.
1281 case $ac_val in
1282 */ )
1283 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1284 eval $ac_var=\$ac_val;;
1285 esac
1286 # Be sure to have absolute directory names.
1287 case $ac_val in
1288 [\\/$]* | ?:[\\/]* ) continue;;
1289 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1290 esac
1291 { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1292 { (exit 1); exit 1; }; }
1293 done
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.
1298 build=$build_alias
1299 host=$host_alias
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
1309 cross_compiling=yes
1313 ac_tool_prefix=
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\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1340 s//\1/
1343 /^X\(\/\/\)[^/].*/{
1344 s//\1/
1347 /^X\(\/\/\)$/{
1348 s//\1/
1351 /^X\(\/\).*/{
1352 s//\1/
1355 s/.*/./; q'`
1356 srcdir=$ac_confdir
1357 if test ! -r "$srcdir/$ac_unique_file"; then
1358 srcdir=..
1360 else
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"
1369 ac_abs_confdir=`(
1370 cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2
1371 { (exit 1); exit 1; }; }
1372 pwd)`
1373 # When building in place, set srcdir=.
1374 if test "$ac_abs_confdir" = "$ac_pwd"; then
1375 srcdir=.
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.
1380 case $srcdir in
1381 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1382 esac
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}
1388 done
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.
1396 cat <<_ACEOF
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.
1406 Configuration:
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
1421 [PREFIX]
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]
1450 _ACEOF
1452 cat <<\_ACEOF
1454 Program names:
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
1459 System types:
1460 --build=BUILD configure for building on BUILD [guessed]
1461 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1462 _ACEOF
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:";;
1468 esac
1469 cat <<\_ACEOF
1471 Optional Features:
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
1486 (default)
1487 --enable-password-authenticated-client
1488 Enable pserver as a remote access method in the CVS
1489 client (default)
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
1497 is enabled 1M,2M)
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
1548 default)
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
1554 (default).
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/')
1567 Optional Packages:
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>
1614 CPP C preprocessor
1615 YACC The `Yet Another C Compiler' implementation to use. Defaults to
1616 `bison -y'. Values other than `bison -y' will most likely break
1617 on most systems.
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
1621 applications.
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>.
1628 _ACEOF
1629 ac_status=$?
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"; } ||
1637 continue
1638 ac_builddir=.
1640 case "$ac_dir" in
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/ ;;
1649 esac ;;
1650 esac
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
1656 case $srcdir in
1657 .) # We are building in place.
1658 ac_srcdir=.
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 ;;
1665 *) # Relative name.
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 ;;
1669 esac
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
1675 echo &&
1676 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1677 elif test -f "$ac_srcdir/configure"; then
1678 echo &&
1679 $SHELL "$ac_srcdir/configure" --help=recursive
1680 else
1681 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1682 fi || ac_status=$?
1683 cd "$ac_pwd" || { ac_status=$?; break; }
1684 done
1687 test -n "$ac_init_help" && exit $ac_status
1688 if $ac_init_version; then
1689 cat <<\_ACEOF
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)
1705 any later version.
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.
1711 _ACEOF
1712 exit
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
1721 $ $0 $@
1723 _ACEOF
1724 exec 5>>config.log
1726 cat <<_ASUNAME
1727 ## --------- ##
1728 ## Platform. ##
1729 ## --------- ##
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`
1748 _ASUNAME
1750 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1751 for as_dir in $PATH
1753 IFS=$as_save_IFS
1754 test -z "$as_dir" && as_dir=.
1755 $as_echo "PATH: $as_dir"
1756 done
1757 IFS=$as_save_IFS
1759 } >&5
1761 cat >&5 <<_ACEOF
1764 ## ----------- ##
1765 ## Core tests. ##
1766 ## ----------- ##
1768 _ACEOF
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.
1776 ac_configure_args=
1777 ac_configure_args0=
1778 ac_configure_args1=
1779 ac_must_keep_next=false
1780 for ac_pass in 1 2
1782 for ac_arg
1784 case $ac_arg in
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)
1788 continue ;;
1789 *\'*)
1790 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1791 esac
1792 case $ac_pass in
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.
1798 else
1799 case $ac_arg in
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 ;;
1806 esac
1808 -* ) ac_must_keep_next=true ;;
1809 esac
1811 ac_configure_args="$ac_configure_args '$ac_arg'"
1813 esac
1814 done
1815 done
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.
1827 echo
1829 cat <<\_ASBOX
1830 ## ---------------- ##
1831 ## Cache variables. ##
1832 ## ---------------- ##
1833 _ASBOX
1834 echo
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
1839 case $ac_val in #(
1840 *${as_nl}*)
1841 case $ac_var in #(
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;} ;;
1844 esac
1845 case $ac_var in #(
1846 _ | IFS | as_nl) ;; #(
1847 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1848 *) $as_unset $ac_var ;;
1849 esac ;;
1850 esac
1851 done
1852 (set) 2>&1 |
1853 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1854 *${as_nl}ac_space=\ *)
1855 sed -n \
1856 "s/'\''/'\''\\\\'\'''\''/g;
1857 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1858 ;; #(
1860 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1862 esac |
1863 sort
1865 echo
1867 cat <<\_ASBOX
1868 ## ----------------- ##
1869 ## Output variables. ##
1870 ## ----------------- ##
1871 _ASBOX
1872 echo
1873 for ac_var in $ac_subst_vars
1875 eval ac_val=\$$ac_var
1876 case $ac_val in
1877 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1878 esac
1879 $as_echo "$ac_var='\''$ac_val'\''"
1880 done | sort
1881 echo
1883 if test -n "$ac_subst_files"; then
1884 cat <<\_ASBOX
1885 ## ------------------- ##
1886 ## File substitutions. ##
1887 ## ------------------- ##
1888 _ASBOX
1889 echo
1890 for ac_var in $ac_subst_files
1892 eval ac_val=\$$ac_var
1893 case $ac_val in
1894 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1895 esac
1896 $as_echo "$ac_var='\''$ac_val'\''"
1897 done | sort
1898 echo
1901 if test -s confdefs.h; then
1902 cat <<\_ASBOX
1903 ## ----------- ##
1904 ## confdefs.h. ##
1905 ## ----------- ##
1906 _ASBOX
1907 echo
1908 cat confdefs.h
1909 echo
1911 test "$ac_signal" != 0 &&
1912 $as_echo "$as_me: caught signal $ac_signal"
1913 $as_echo "$as_me: exit $exit_status"
1914 } >&5
1915 rm -f core *.core core.conftest.* &&
1916 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1917 exit $exit_status
1919 for ac_signal in 1 2 13 15; do
1920 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1921 done
1922 ac_signal=0
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"
1931 _ACEOF
1934 cat >>confdefs.h <<_ACEOF
1935 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1936 _ACEOF
1939 cat >>confdefs.h <<_ACEOF
1940 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1941 _ACEOF
1944 cat >>confdefs.h <<_ACEOF
1945 #define PACKAGE_STRING "$PACKAGE_STRING"
1946 _ACEOF
1949 cat >>confdefs.h <<_ACEOF
1950 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1951 _ACEOF
1954 # Let the site file select an alternate cache file if it wants to.
1955 # Prefer an explicitly selected file to automatically selected ones.
1956 ac_site_file1=NONE
1957 ac_site_file2=NONE
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
1963 else
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
1974 . "$ac_site_file"
1976 done
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;}
1984 case $cache_file in
1985 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1986 *) . "./$cache_file";;
1987 esac
1989 else
1990 { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5
1991 $as_echo "$as_me: creating cache $cache_file" >&6;}
1992 >$cache_file
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
2028 # value.
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
2036 set,)
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=: ;;
2040 ,set)
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=: ;;
2044 ,);;
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=:
2054 else
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;}
2063 fi;;
2064 esac
2065 # Pass precious variables to config.status.
2066 if test "$ac_new_set" = set; then
2067 case $ac_new_val in
2068 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2069 *) ac_arg=$ac_var=$ac_new_val ;;
2070 esac
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'" ;;
2074 esac
2076 done
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; }; }
2111 ac_ext=c
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
2119 ac_aux_dir=
2120 for ac_dir in build-aux "$srcdir"/build-aux; do
2121 if test -f "$ac_dir/install-sh"; then
2122 ac_aux_dir=$ac_dir
2123 ac_install_sh="$ac_aux_dir/install-sh -c"
2124 break
2125 elif test -f "$ac_dir/install.sh"; then
2126 ac_aux_dir=$ac_dir
2127 ac_install_sh="$ac_aux_dir/install.sh -c"
2128 break
2129 elif test -f "$ac_dir/shtool"; then
2130 ac_aux_dir=$ac_dir
2131 ac_install_sh="$ac_aux_dir/shtool install -c"
2132 break
2134 done
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
2158 # AIX /bin/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
2171 else
2172 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2173 for as_dir in $PATH
2175 IFS=$as_save_IFS
2176 test -z "$as_dir" && as_dir=.
2177 # Account for people who put trailing slashes in PATH elements.
2178 case $as_dir/ in
2179 ./ | .// | /cC/* | \
2180 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2181 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2182 /usr/ucb/* ) ;;
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
2186 # by default.
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.
2198 else
2199 rm -rf conftest.one conftest.two conftest.dir
2200 echo one > conftest.one
2201 echo two > conftest.two
2202 mkdir conftest.dir
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
2207 then
2208 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2209 break 3
2213 done
2214 done
2216 esac
2218 done
2219 IFS=$as_save_IFS
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
2226 else
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; }
2247 # Just in case
2248 sleep 1
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
2254 # directory).
2255 if (
2256 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2257 if test "$*" = "X"; then
2258 # -L didn't work.
2259 set X `ls -t $srcdir/configure conftest.file`
2261 rm -f 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
2278 then
2279 # Ok.
2281 else
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 "
2307 else
2308 am_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
2318 else
2319 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2320 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2322 IFS=$as_save_IFS
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
2332 break 3;;
2333 esac
2334 done
2335 done
2336 done
2337 IFS=$as_save_IFS
2341 if test "${ac_cv_path_mkdir+set}" = set; then
2342 MKDIR_P="$ac_cv_path_mkdir -p"
2343 else
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; }
2355 mkdir_p="$MKDIR_P"
2356 case $mkdir_p in
2357 [\\/$]* | ?:[\\/]*) ;;
2358 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2359 esac
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
2369 else
2370 if test -n "$AWK"; then
2371 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2372 else
2373 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2374 for as_dir in $PATH
2376 IFS=$as_save_IFS
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
2382 break 2
2384 done
2385 done
2386 IFS=$as_save_IFS
2390 AWK=$ac_cv_prog_AWK
2391 if test -n "$AWK"; then
2392 { $as_echo "$as_me:$LINENO: result: $AWK" >&5
2393 $as_echo "$AWK" >&6; }
2394 else
2395 { $as_echo "$as_me:$LINENO: result: no" >&5
2396 $as_echo "no" >&6; }
2400 test -n "$AWK" && break
2401 done
2403 { $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2404 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2405 set x ${MAKE-make}
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
2409 else
2410 cat >conftest.make <<\_ACEOF
2411 SHELL = /bin/sh
2412 all:
2413 @echo '@@@%%%=$(MAKE)=@@@%%%'
2414 _ACEOF
2415 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2416 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2417 *@@@%%%=?*=@@@%%%*)
2418 eval ac_cv_prog_make_${ac_make}_set=yes;;
2420 eval ac_cv_prog_make_${ac_make}_set=no;;
2421 esac
2422 rm -f conftest.make
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; }
2427 SET_MAKE=
2428 else
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
2437 am__leading_dot=.
2438 else
2439 am__leading_dot=_
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'
2459 else
2460 CYGPATH_W=echo
2465 # Define the identity of the package.
2466 PACKAGE='cvs'
2467 VERSION='1.12.13'
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
2500 else
2501 if test -n "$STRIP"; then
2502 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2503 else
2504 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2505 for as_dir in $PATH
2507 IFS=$as_save_IFS
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
2513 break 2
2515 done
2516 done
2517 IFS=$as_save_IFS
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; }
2525 else
2526 { $as_echo "$as_me:$LINENO: result: no" >&5
2527 $as_echo "no" >&6; }
2532 if test -z "$ac_cv_prog_STRIP"; then
2533 ac_ct_STRIP=$STRIP
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
2540 else
2541 if test -n "$ac_ct_STRIP"; then
2542 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2543 else
2544 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2545 for as_dir in $PATH
2547 IFS=$as_save_IFS
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
2553 break 2
2555 done
2556 done
2557 IFS=$as_save_IFS
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; }
2565 else
2566 { $as_echo "$as_me:$LINENO: result: no" >&5
2567 $as_echo "no" >&6; }
2570 if test "x$ac_ct_STRIP" = x; then
2571 STRIP=":"
2572 else
2573 case $cross_compiling:$ac_tool_warned in
2574 yes:)
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 ;;
2578 esac
2579 STRIP=$ac_ct_STRIP
2581 else
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
2589 # some platforms.
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
2611 else
2612 case $ac_prefix_program in
2613 [\\/]* | ?:[\\/]*)
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
2618 for as_dir in $PATH
2620 IFS=$as_save_IFS
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
2626 break 2
2628 done
2629 done
2630 IFS=$as_save_IFS
2633 esac
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; }
2639 else
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\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
2653 s//\1/
2656 /^X\(\/\/\)[^/].*/{
2657 s//\1/
2660 /^X\(\/\/\)$/{
2661 s//\1/
2664 /^X\(\/\).*/{
2665 s//\1/
2668 s/.*/./; q'`
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\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
2676 s//\1/
2679 /^X\(\/\/\)[^/].*/{
2680 s//\1/
2683 /^X\(\/\/\)$/{
2684 s//\1/
2687 /^X\(\/\).*/{
2688 s//\1/
2691 s/.*/./; q'`
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
2702 else
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='#'
2711 else
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'
2727 am__doit:
2728 @echo done
2729 .PHONY: am__doit
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; }
2734 am__include="#"
2735 am__quote=
2736 _am_result=none
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
2745 am__include=include
2746 am__quote=
2747 _am_result=GNU
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
2754 am__quote="\""
2755 _am_result=BSD
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"
2771 AMDEPBACKSLASH='\'
2773 if test "x$enable_dependency_tracking" != xno; then
2774 AMDEP_TRUE=
2775 AMDEP_FALSE='#'
2776 else
2777 AMDEP_TRUE='#'
2778 AMDEP_FALSE=
2782 ac_ext=c
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
2794 else
2795 if test -n "$CC"; then
2796 ac_cv_prog_CC="$CC" # Let the user override the test.
2797 else
2798 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2799 for as_dir in $PATH
2801 IFS=$as_save_IFS
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
2807 break 2
2809 done
2810 done
2811 IFS=$as_save_IFS
2815 CC=$ac_cv_prog_CC
2816 if test -n "$CC"; then
2817 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2818 $as_echo "$CC" >&6; }
2819 else
2820 { $as_echo "$as_me:$LINENO: result: no" >&5
2821 $as_echo "no" >&6; }
2826 if test -z "$ac_cv_prog_CC"; then
2827 ac_ct_CC=$CC
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
2834 else
2835 if test -n "$ac_ct_CC"; then
2836 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2837 else
2838 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2839 for as_dir in $PATH
2841 IFS=$as_save_IFS
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
2847 break 2
2849 done
2850 done
2851 IFS=$as_save_IFS
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; }
2859 else
2860 { $as_echo "$as_me:$LINENO: result: no" >&5
2861 $as_echo "no" >&6; }
2864 if test "x$ac_ct_CC" = x; then
2865 CC=""
2866 else
2867 case $cross_compiling:$ac_tool_warned in
2868 yes:)
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 ;;
2872 esac
2873 CC=$ac_ct_CC
2875 else
2876 CC="$ac_cv_prog_CC"
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
2887 else
2888 if test -n "$CC"; then
2889 ac_cv_prog_CC="$CC" # Let the user override the test.
2890 else
2891 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2892 for as_dir in $PATH
2894 IFS=$as_save_IFS
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
2900 break 2
2902 done
2903 done
2904 IFS=$as_save_IFS
2908 CC=$ac_cv_prog_CC
2909 if test -n "$CC"; then
2910 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2911 $as_echo "$CC" >&6; }
2912 else
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
2927 else
2928 if test -n "$CC"; then
2929 ac_cv_prog_CC="$CC" # Let the user override the test.
2930 else
2931 ac_prog_rejected=no
2932 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2933 for as_dir in $PATH
2935 IFS=$as_save_IFS
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
2941 continue
2943 ac_cv_prog_CC="cc"
2944 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2945 break 2
2947 done
2948 done
2949 IFS=$as_save_IFS
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
2954 shift
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.
2959 shift
2960 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2965 CC=$ac_cv_prog_CC
2966 if test -n "$CC"; then
2967 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2968 $as_echo "$CC" >&6; }
2969 else
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
2986 else
2987 if test -n "$CC"; then
2988 ac_cv_prog_CC="$CC" # Let the user override the test.
2989 else
2990 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2991 for as_dir in $PATH
2993 IFS=$as_save_IFS
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
2999 break 2
3001 done
3002 done
3003 IFS=$as_save_IFS
3007 CC=$ac_cv_prog_CC
3008 if test -n "$CC"; then
3009 { $as_echo "$as_me:$LINENO: result: $CC" >&5
3010 $as_echo "$CC" >&6; }
3011 else
3012 { $as_echo "$as_me:$LINENO: result: no" >&5
3013 $as_echo "no" >&6; }
3017 test -n "$CC" && break
3018 done
3020 if test -z "$CC"; then
3021 ac_ct_CC=$CC
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
3030 else
3031 if test -n "$ac_ct_CC"; then
3032 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3033 else
3034 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3035 for as_dir in $PATH
3037 IFS=$as_save_IFS
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
3043 break 2
3045 done
3046 done
3047 IFS=$as_save_IFS
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; }
3055 else
3056 { $as_echo "$as_me:$LINENO: result: no" >&5
3057 $as_echo "no" >&6; }
3061 test -n "$ac_ct_CC" && break
3062 done
3064 if test "x$ac_ct_CC" = x; then
3065 CC=""
3066 else
3067 case $cross_compiling:$ac_tool_warned in
3068 yes:)
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 ;;
3072 esac
3073 CC=$ac_ct_CC
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
3090 set X $ac_compile
3091 ac_compiler=$2
3092 { (ac_try="$ac_compiler --version >&5"
3093 case "(($ac_try" in
3094 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3095 *) ac_try_echo=$ac_try;;
3096 esac
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
3100 ac_status=$?
3101 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3102 (exit $ac_status); }
3103 { (ac_try="$ac_compiler -v >&5"
3104 case "(($ac_try" in
3105 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3106 *) ac_try_echo=$ac_try;;
3107 esac
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
3111 ac_status=$?
3112 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3113 (exit $ac_status); }
3114 { (ac_try="$ac_compiler -V >&5"
3115 case "(($ac_try" in
3116 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3117 *) ac_try_echo=$ac_try;;
3118 esac
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
3122 ac_status=$?
3123 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3124 (exit $ac_status); }
3126 cat >conftest.$ac_ext <<_ACEOF
3127 /* confdefs.h. */
3128 _ACEOF
3129 cat confdefs.h >>conftest.$ac_ext
3130 cat >>conftest.$ac_ext <<_ACEOF
3131 /* end confdefs.h. */
3134 main ()
3138 return 0;
3140 _ACEOF
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
3145 # of exeext.
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.*"
3153 ac_rmfiles=
3154 for ac_file in $ac_files
3156 case $ac_file in
3157 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3158 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3159 esac
3160 done
3161 rm -f $ac_rmfiles
3163 if { (ac_try="$ac_link_default"
3164 case "(($ac_try" in
3165 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3166 *) ac_try_echo=$ac_try;;
3167 esac
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
3171 ac_status=$?
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
3178 # Autoconf.
3179 for ac_file in $ac_files ''
3181 test -f "$ac_file" || continue
3182 case $ac_file in
3183 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3185 [ab].out )
3186 # We found the default executable, but exeext='' is most
3187 # certainly right.
3188 break;;
3189 *.* )
3190 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3191 then :; else
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
3198 # actually working.
3199 break;;
3201 break;;
3202 esac
3203 done
3204 test "$ac_cv_exeext" = no && ac_cv_exeext=
3206 else
3207 ac_file=''
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;;
3238 esac
3239 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3240 $as_echo "$ac_try_echo") >&5
3241 (eval "$ac_try") 2>&5
3242 ac_status=$?
3243 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3244 (exit $ac_status); }; }; then
3245 cross_compiling=no
3246 else
3247 if test "$cross_compiling" = maybe; then
3248 cross_compiling=yes
3249 else
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"
3277 case "(($ac_try" in
3278 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3279 *) ac_try_echo=$ac_try;;
3280 esac
3281 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3282 $as_echo "$ac_try_echo") >&5
3283 (eval "$ac_link") 2>&5
3284 ac_status=$?
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
3290 # `rm'.
3291 for ac_file in conftest.exe conftest conftest.*; do
3292 test -f "$ac_file" || continue
3293 case $ac_file in
3294 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3295 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3296 break;;
3297 * ) break;;
3298 esac
3299 done
3300 else
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
3316 ac_exeext=$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
3321 else
3322 cat >conftest.$ac_ext <<_ACEOF
3323 /* confdefs.h. */
3324 _ACEOF
3325 cat confdefs.h >>conftest.$ac_ext
3326 cat >>conftest.$ac_ext <<_ACEOF
3327 /* end confdefs.h. */
3330 main ()
3334 return 0;
3336 _ACEOF
3337 rm -f conftest.o conftest.obj
3338 if { (ac_try="$ac_compile"
3339 case "(($ac_try" in
3340 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3341 *) ac_try_echo=$ac_try;;
3342 esac
3343 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3344 $as_echo "$ac_try_echo") >&5
3345 (eval "$ac_compile") 2>&5
3346 ac_status=$?
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;
3351 case $ac_file in
3352 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3353 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3354 break;;
3355 esac
3356 done
3357 else
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
3375 ac_objext=$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
3380 else
3381 cat >conftest.$ac_ext <<_ACEOF
3382 /* confdefs.h. */
3383 _ACEOF
3384 cat confdefs.h >>conftest.$ac_ext
3385 cat >>conftest.$ac_ext <<_ACEOF
3386 /* end confdefs.h. */
3389 main ()
3391 #ifndef __GNUC__
3392 choke me
3393 #endif
3396 return 0;
3398 _ACEOF
3399 rm -f conftest.$ac_objext
3400 if { (ac_try="$ac_compile"
3401 case "(($ac_try" in
3402 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3403 *) ac_try_echo=$ac_try;;
3404 esac
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
3408 ac_status=$?
3409 grep -v '^ *+' conftest.er1 >conftest.err
3410 rm -f conftest.er1
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
3417 ac_compiler_gnu=yes
3418 else
3419 $as_echo "$as_me: failed program was:" >&5
3420 sed 's/^/| /' conftest.$ac_ext >&5
3422 ac_compiler_gnu=no
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
3432 GCC=yes
3433 else
3434 GCC=
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
3442 else
3443 ac_save_c_werror_flag=$ac_c_werror_flag
3444 ac_c_werror_flag=yes
3445 ac_cv_prog_cc_g=no
3446 CFLAGS="-g"
3447 cat >conftest.$ac_ext <<_ACEOF
3448 /* confdefs.h. */
3449 _ACEOF
3450 cat confdefs.h >>conftest.$ac_ext
3451 cat >>conftest.$ac_ext <<_ACEOF
3452 /* end confdefs.h. */
3455 main ()
3459 return 0;
3461 _ACEOF
3462 rm -f conftest.$ac_objext
3463 if { (ac_try="$ac_compile"
3464 case "(($ac_try" in
3465 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3466 *) ac_try_echo=$ac_try;;
3467 esac
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
3471 ac_status=$?
3472 grep -v '^ *+' conftest.er1 >conftest.err
3473 rm -f conftest.er1
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
3480 ac_cv_prog_cc_g=yes
3481 else
3482 $as_echo "$as_me: failed program was:" >&5
3483 sed 's/^/| /' conftest.$ac_ext >&5
3485 CFLAGS=""
3486 cat >conftest.$ac_ext <<_ACEOF
3487 /* confdefs.h. */
3488 _ACEOF
3489 cat confdefs.h >>conftest.$ac_ext
3490 cat >>conftest.$ac_ext <<_ACEOF
3491 /* end confdefs.h. */
3494 main ()
3498 return 0;
3500 _ACEOF
3501 rm -f conftest.$ac_objext
3502 if { (ac_try="$ac_compile"
3503 case "(($ac_try" in
3504 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3505 *) ac_try_echo=$ac_try;;
3506 esac
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
3510 ac_status=$?
3511 grep -v '^ *+' conftest.er1 >conftest.err
3512 rm -f conftest.er1
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
3520 else
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
3525 CFLAGS="-g"
3526 cat >conftest.$ac_ext <<_ACEOF
3527 /* confdefs.h. */
3528 _ACEOF
3529 cat confdefs.h >>conftest.$ac_ext
3530 cat >>conftest.$ac_ext <<_ACEOF
3531 /* end confdefs.h. */
3534 main ()
3538 return 0;
3540 _ACEOF
3541 rm -f conftest.$ac_objext
3542 if { (ac_try="$ac_compile"
3543 case "(($ac_try" in
3544 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3545 *) ac_try_echo=$ac_try;;
3546 esac
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
3550 ac_status=$?
3551 grep -v '^ *+' conftest.er1 >conftest.err
3552 rm -f conftest.er1
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
3559 ac_cv_prog_cc_g=yes
3560 else
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
3582 CFLAGS="-g -O2"
3583 else
3584 CFLAGS="-g"
3586 else
3587 if test "$GCC" = yes; then
3588 CFLAGS="-O2"
3589 else
3590 CFLAGS=
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
3597 else
3598 ac_cv_prog_cc_c89=no
3599 ac_save_CC=$CC
3600 cat >conftest.$ac_ext <<_ACEOF
3601 /* confdefs.h. */
3602 _ACEOF
3603 cat confdefs.h >>conftest.$ac_ext
3604 cat >>conftest.$ac_ext <<_ACEOF
3605 /* end confdefs.h. */
3606 #include <stdarg.h>
3607 #include <stdio.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)
3614 char **p;
3615 int i;
3617 return p[i];
3619 static char *f (char * (*g) (char **, int), char **p, ...)
3621 char *s;
3622 va_list v;
3623 va_start (v,p);
3624 s = g (p, va_arg (v,int));
3625 va_end (v);
3626 return s;
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. */
3640 #define FOO(x) 'x'
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);
3647 int argc;
3648 char **argv;
3650 main ()
3652 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3654 return 0;
3656 _ACEOF
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"
3663 case "(($ac_try" in
3664 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3665 *) ac_try_echo=$ac_try;;
3666 esac
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
3670 ac_status=$?
3671 grep -v '^ *+' conftest.er1 >conftest.err
3672 rm -f conftest.er1
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
3680 else
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
3689 done
3690 rm -f conftest.$ac_ext
3691 CC=$ac_save_CC
3694 # AC_CACHE_VAL
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; } ;;
3699 xno)
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; } ;;
3706 esac
3709 ac_ext=c
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
3721 else
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
3727 # in D'.
3728 mkdir conftest.dir
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
3732 cd 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
3738 # directory.
3739 mkdir sub
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.
3753 : > sub/conftest.c
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
3759 done
3760 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3762 case $depmode in
3763 nosideeffect)
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
3767 continue
3768 else
3769 break
3772 none) break ;;
3773 esac
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
3796 break
3799 done
3801 cd ..
3802 rm -rf conftest.dir
3803 else
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
3815 am__fastdepCC_TRUE=
3816 am__fastdepCC_FALSE='#'
3817 else
3818 am__fastdepCC_TRUE='#'
3819 am__fastdepCC_FALSE=
3824 ac_ext=c
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
3833 CPP=
3835 if test -z "$CPP"; then
3836 if test "${ac_cv_prog_CPP+set}" = set; then
3837 $as_echo_n "(cached) " >&6
3838 else
3839 # Double quotes because CPP needs to be expanded
3840 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3842 ac_preproc_ok=false
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
3852 /* confdefs.h. */
3853 _ACEOF
3854 cat confdefs.h >>conftest.$ac_ext
3855 cat >>conftest.$ac_ext <<_ACEOF
3856 /* end confdefs.h. */
3857 #ifdef __STDC__
3858 # include <limits.h>
3859 #else
3860 # include <assert.h>
3861 #endif
3862 Syntax error
3863 _ACEOF
3864 if { (ac_try="$ac_cpp conftest.$ac_ext"
3865 case "(($ac_try" in
3866 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3867 *) ac_try_echo=$ac_try;;
3868 esac
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
3872 ac_status=$?
3873 grep -v '^ *+' conftest.er1 >conftest.err
3874 rm -f conftest.er1
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
3880 }; then
3882 else
3883 $as_echo "$as_me: failed program was:" >&5
3884 sed 's/^/| /' conftest.$ac_ext >&5
3886 # Broken: fails on valid input.
3887 continue
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
3895 /* confdefs.h. */
3896 _ACEOF
3897 cat confdefs.h >>conftest.$ac_ext
3898 cat >>conftest.$ac_ext <<_ACEOF
3899 /* end confdefs.h. */
3900 #include <ac_nonexistent.h>
3901 _ACEOF
3902 if { (ac_try="$ac_cpp conftest.$ac_ext"
3903 case "(($ac_try" in
3904 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3905 *) ac_try_echo=$ac_try;;
3906 esac
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
3910 ac_status=$?
3911 grep -v '^ *+' conftest.er1 >conftest.err
3912 rm -f conftest.er1
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
3918 }; then
3919 # Broken: success on invalid input.
3920 continue
3921 else
3922 $as_echo "$as_me: failed program was:" >&5
3923 sed 's/^/| /' conftest.$ac_ext >&5
3925 # Passes both tests.
3926 ac_preproc_ok=:
3927 break
3930 rm -f conftest.err conftest.$ac_ext
3932 done
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
3936 break
3939 done
3940 ac_cv_prog_CPP=$CPP
3943 CPP=$ac_cv_prog_CPP
3944 else
3945 ac_cv_prog_CPP=$CPP
3947 { $as_echo "$as_me:$LINENO: result: $CPP" >&5
3948 $as_echo "$CPP" >&6; }
3949 ac_preproc_ok=false
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
3959 /* confdefs.h. */
3960 _ACEOF
3961 cat confdefs.h >>conftest.$ac_ext
3962 cat >>conftest.$ac_ext <<_ACEOF
3963 /* end confdefs.h. */
3964 #ifdef __STDC__
3965 # include <limits.h>
3966 #else
3967 # include <assert.h>
3968 #endif
3969 Syntax error
3970 _ACEOF
3971 if { (ac_try="$ac_cpp conftest.$ac_ext"
3972 case "(($ac_try" in
3973 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3974 *) ac_try_echo=$ac_try;;
3975 esac
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
3979 ac_status=$?
3980 grep -v '^ *+' conftest.er1 >conftest.err
3981 rm -f conftest.er1
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
3987 }; then
3989 else
3990 $as_echo "$as_me: failed program was:" >&5
3991 sed 's/^/| /' conftest.$ac_ext >&5
3993 # Broken: fails on valid input.
3994 continue
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
4002 /* confdefs.h. */
4003 _ACEOF
4004 cat confdefs.h >>conftest.$ac_ext
4005 cat >>conftest.$ac_ext <<_ACEOF
4006 /* end confdefs.h. */
4007 #include <ac_nonexistent.h>
4008 _ACEOF
4009 if { (ac_try="$ac_cpp conftest.$ac_ext"
4010 case "(($ac_try" in
4011 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4012 *) ac_try_echo=$ac_try;;
4013 esac
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
4017 ac_status=$?
4018 grep -v '^ *+' conftest.er1 >conftest.err
4019 rm -f conftest.er1
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
4025 }; then
4026 # Broken: success on invalid input.
4027 continue
4028 else
4029 $as_echo "$as_me: failed program was:" >&5
4030 sed 's/^/| /' conftest.$ac_ext >&5
4032 # Passes both tests.
4033 ac_preproc_ok=:
4034 break
4037 rm -f conftest.err conftest.$ac_ext
4039 done
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
4044 else
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; }; }; }
4054 ac_ext=c
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
4065 else
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/xpg4/bin
4072 IFS=$as_save_IFS
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
4081 *GNU*)
4082 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4084 ac_count=0
4085 $as_echo_n 0123456789 >"conftest.in"
4086 while :
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
4102 done
4103 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4104 esac
4106 $ac_path_GREP_found && break 3
4107 done
4108 done
4109 done
4110 IFS=$as_save_IFS
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; }; }
4116 else
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
4130 else
4131 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4132 then ac_cv_path_EGREP="$GREP -E"
4133 else
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/xpg4/bin
4140 IFS=$as_save_IFS
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
4149 *GNU*)
4150 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4152 ac_count=0
4153 $as_echo_n 0123456789 >"conftest.in"
4154 while :
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
4170 done
4171 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4172 esac
4174 $ac_path_EGREP_found && break 3
4175 done
4176 done
4177 done
4178 IFS=$as_save_IFS
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; }; }
4184 else
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
4199 else
4200 cat >conftest.$ac_ext <<_ACEOF
4201 /* confdefs.h. */
4202 _ACEOF
4203 cat confdefs.h >>conftest.$ac_ext
4204 cat >>conftest.$ac_ext <<_ACEOF
4205 /* end confdefs.h. */
4206 #include <stdlib.h>
4207 #include <stdarg.h>
4208 #include <string.h>
4209 #include <float.h>
4212 main ()
4216 return 0;
4218 _ACEOF
4219 rm -f conftest.$ac_objext
4220 if { (ac_try="$ac_compile"
4221 case "(($ac_try" in
4222 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4223 *) ac_try_echo=$ac_try;;
4224 esac
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
4228 ac_status=$?
4229 grep -v '^ *+' conftest.er1 >conftest.err
4230 rm -f conftest.er1
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
4238 else
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
4250 /* confdefs.h. */
4251 _ACEOF
4252 cat confdefs.h >>conftest.$ac_ext
4253 cat >>conftest.$ac_ext <<_ACEOF
4254 /* end confdefs.h. */
4255 #include <string.h>
4257 _ACEOF
4258 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4259 $EGREP "memchr" >/dev/null 2>&1; then
4261 else
4262 ac_cv_header_stdc=no
4264 rm -f conftest*
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
4271 /* confdefs.h. */
4272 _ACEOF
4273 cat confdefs.h >>conftest.$ac_ext
4274 cat >>conftest.$ac_ext <<_ACEOF
4275 /* end confdefs.h. */
4276 #include <stdlib.h>
4278 _ACEOF
4279 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4280 $EGREP "free" >/dev/null 2>&1; then
4282 else
4283 ac_cv_header_stdc=no
4285 rm -f conftest*
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
4293 else
4294 cat >conftest.$ac_ext <<_ACEOF
4295 /* confdefs.h. */
4296 _ACEOF
4297 cat confdefs.h >>conftest.$ac_ext
4298 cat >>conftest.$ac_ext <<_ACEOF
4299 /* end confdefs.h. */
4300 #include <ctype.h>
4301 #include <stdlib.h>
4302 #if ((' ' & 0x0FF) == 0x020)
4303 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4304 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4305 #else
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))
4311 #endif
4313 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4315 main ()
4317 int i;
4318 for (i = 0; i < 256; i++)
4319 if (XOR (islower (i), ISLOWER (i))
4320 || toupper (i) != TOUPPER (i))
4321 return 2;
4322 return 0;
4324 _ACEOF
4325 rm -f conftest$ac_exeext
4326 if { (ac_try="$ac_link"
4327 case "(($ac_try" in
4328 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4329 *) ac_try_echo=$ac_try;;
4330 esac
4331 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4332 $as_echo "$ac_try_echo") >&5
4333 (eval "$ac_link") 2>&5
4334 ac_status=$?
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;;
4340 esac
4341 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4342 $as_echo "$ac_try_echo") >&5
4343 (eval "$ac_try") 2>&5
4344 ac_status=$?
4345 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4346 (exit $ac_status); }; }; then
4348 else
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
4353 ( exit $ac_status )
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
4369 _ACEOF
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
4391 else
4392 cat >conftest.$ac_ext <<_ACEOF
4393 /* confdefs.h. */
4394 _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>
4401 _ACEOF
4402 rm -f conftest.$ac_objext
4403 if { (ac_try="$ac_compile"
4404 case "(($ac_try" in
4405 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4406 *) ac_try_echo=$ac_try;;
4407 esac
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
4411 ac_status=$?
4412 grep -v '^ *+' conftest.er1 >conftest.err
4413 rm -f conftest.er1
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"
4421 else
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
4439 _ACEOF
4443 done
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; }
4455 else
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
4460 /* confdefs.h. */
4461 _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>
4467 _ACEOF
4468 rm -f conftest.$ac_objext
4469 if { (ac_try="$ac_compile"
4470 case "(($ac_try" in
4471 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4472 *) ac_try_echo=$ac_try;;
4473 esac
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
4477 ac_status=$?
4478 grep -v '^ *+' conftest.er1 >conftest.err
4479 rm -f conftest.er1
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
4487 else
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
4502 /* confdefs.h. */
4503 _ACEOF
4504 cat confdefs.h >>conftest.$ac_ext
4505 cat >>conftest.$ac_ext <<_ACEOF
4506 /* end confdefs.h. */
4507 #include <minix/config.h>
4508 _ACEOF
4509 if { (ac_try="$ac_cpp conftest.$ac_ext"
4510 case "(($ac_try" in
4511 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4512 *) ac_try_echo=$ac_try;;
4513 esac
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
4517 ac_status=$?
4518 grep -v '^ *+' conftest.er1 >conftest.err
4519 rm -f conftest.er1
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
4525 }; then
4526 ac_header_preproc=yes
4527 else
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
4540 yes:no: )
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
4547 no: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;}
4560 ( cat <<\_ASBOX
4561 ## --------------------------------- ##
4562 ## Report this to bug-cvs@nongnu.org ##
4563 ## --------------------------------- ##
4564 _ASBOX
4565 ) | sed "s/^/$as_me: WARNING: /" >&2
4567 esac
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
4572 else
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
4580 MINIX=yes
4581 else
4582 MINIX=
4586 if test "$MINIX" = yes; then
4588 cat >>confdefs.h <<\_ACEOF
4589 #define _POSIX_SOURCE 1
4590 _ACEOF
4593 cat >>confdefs.h <<\_ACEOF
4594 #define _POSIX_1_SOURCE 2
4595 _ACEOF
4598 cat >>confdefs.h <<\_ACEOF
4599 #define _MINIX 1
4600 _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
4610 else
4611 cat >conftest.$ac_ext <<_ACEOF
4612 /* confdefs.h. */
4613 _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
4621 main ()
4625 return 0;
4627 _ACEOF
4628 rm -f conftest.$ac_objext
4629 if { (ac_try="$ac_compile"
4630 case "(($ac_try" in
4631 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4632 *) ac_try_echo=$ac_try;;
4633 esac
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
4637 ac_status=$?
4638 grep -v '^ *+' conftest.er1 >conftest.err
4639 rm -f conftest.er1
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
4647 else
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
4661 _ACEOF
4663 cat >>confdefs.h <<\_ACEOF
4664 #define _ALL_SOURCE 1
4665 _ACEOF
4667 cat >>confdefs.h <<\_ACEOF
4668 #define _GNU_SOURCE 1
4669 _ACEOF
4671 cat >>confdefs.h <<\_ACEOF
4672 #define _POSIX_PTHREAD_SEMANTICS 1
4673 _ACEOF
4675 cat >>confdefs.h <<\_ACEOF
4676 #define _TANDEM_SOURCE 1
4677 _ACEOF
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; }
4689 else
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
4694 /* confdefs.h. */
4695 _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>
4701 _ACEOF
4702 rm -f conftest.$ac_objext
4703 if { (ac_try="$ac_compile"
4704 case "(($ac_try" in
4705 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4706 *) ac_try_echo=$ac_try;;
4707 esac
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
4711 ac_status=$?
4712 grep -v '^ *+' conftest.er1 >conftest.err
4713 rm -f conftest.er1
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
4721 else
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
4736 /* confdefs.h. */
4737 _ACEOF
4738 cat confdefs.h >>conftest.$ac_ext
4739 cat >>conftest.$ac_ext <<_ACEOF
4740 /* end confdefs.h. */
4741 #include <minix/config.h>
4742 _ACEOF
4743 if { (ac_try="$ac_cpp conftest.$ac_ext"
4744 case "(($ac_try" in
4745 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4746 *) ac_try_echo=$ac_try;;
4747 esac
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
4751 ac_status=$?
4752 grep -v '^ *+' conftest.er1 >conftest.err
4753 rm -f conftest.er1
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
4759 }; then
4760 ac_header_preproc=yes
4761 else
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
4774 yes:no: )
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
4781 no: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;}
4794 ( cat <<\_ASBOX
4795 ## --------------------------------- ##
4796 ## Report this to bug-cvs@nongnu.org ##
4797 ## --------------------------------- ##
4798 _ASBOX
4799 ) | sed "s/^/$as_me: WARNING: /" >&2
4801 esac
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
4806 else
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
4814 MINIX=yes
4815 else
4816 MINIX=
4820 if test "$MINIX" = yes; then
4822 cat >>confdefs.h <<\_ACEOF
4823 #define _POSIX_SOURCE 1
4824 _ACEOF
4827 cat >>confdefs.h <<\_ACEOF
4828 #define _POSIX_1_SOURCE 2
4829 _ACEOF
4832 cat >>confdefs.h <<\_ACEOF
4833 #define _MINIX 1
4834 _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
4844 else
4845 cat >conftest.$ac_ext <<_ACEOF
4846 /* confdefs.h. */
4847 _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
4855 main ()
4859 return 0;
4861 _ACEOF
4862 rm -f conftest.$ac_objext
4863 if { (ac_try="$ac_compile"
4864 case "(($ac_try" in
4865 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4866 *) ac_try_echo=$ac_try;;
4867 esac
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
4871 ac_status=$?
4872 grep -v '^ *+' conftest.er1 >conftest.err
4873 rm -f conftest.er1
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
4881 else
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
4895 _ACEOF
4897 cat >>confdefs.h <<\_ACEOF
4898 #define _ALL_SOURCE 1
4899 _ACEOF
4901 cat >>confdefs.h <<\_ACEOF
4902 #define _GNU_SOURCE 1
4903 _ACEOF
4905 cat >>confdefs.h <<\_ACEOF
4906 #define _POSIX_PTHREAD_SEMANTICS 1
4907 _ACEOF
4909 cat >>confdefs.h <<\_ACEOF
4910 #define _TANDEM_SOURCE 1
4911 _ACEOF
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; }
4923 else
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
4928 /* confdefs.h. */
4929 _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>
4935 _ACEOF
4936 rm -f conftest.$ac_objext
4937 if { (ac_try="$ac_compile"
4938 case "(($ac_try" in
4939 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4940 *) ac_try_echo=$ac_try;;
4941 esac
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
4945 ac_status=$?
4946 grep -v '^ *+' conftest.er1 >conftest.err
4947 rm -f conftest.er1
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
4955 else
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
4970 /* confdefs.h. */
4971 _ACEOF
4972 cat confdefs.h >>conftest.$ac_ext
4973 cat >>conftest.$ac_ext <<_ACEOF
4974 /* end confdefs.h. */
4975 #include <minix/config.h>
4976 _ACEOF
4977 if { (ac_try="$ac_cpp conftest.$ac_ext"
4978 case "(($ac_try" in
4979 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4980 *) ac_try_echo=$ac_try;;
4981 esac
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
4985 ac_status=$?
4986 grep -v '^ *+' conftest.er1 >conftest.err
4987 rm -f conftest.er1
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
4993 }; then
4994 ac_header_preproc=yes
4995 else
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
5008 yes:no: )
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
5015 no: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;}
5028 ( cat <<\_ASBOX
5029 ## --------------------------------- ##
5030 ## Report this to bug-cvs@nongnu.org ##
5031 ## --------------------------------- ##
5032 _ASBOX
5033 ) | sed "s/^/$as_me: WARNING: /" >&2
5035 esac
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
5040 else
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
5048 MINIX=yes
5049 else
5050 MINIX=
5054 if test "$MINIX" = yes; then
5056 cat >>confdefs.h <<\_ACEOF
5057 #define _POSIX_SOURCE 1
5058 _ACEOF
5061 cat >>confdefs.h <<\_ACEOF
5062 #define _POSIX_1_SOURCE 2
5063 _ACEOF
5066 cat >>confdefs.h <<\_ACEOF
5067 #define _MINIX 1
5068 _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
5078 else
5079 cat >conftest.$ac_ext <<_ACEOF
5080 /* confdefs.h. */
5081 _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
5089 main ()
5093 return 0;
5095 _ACEOF
5096 rm -f conftest.$ac_objext
5097 if { (ac_try="$ac_compile"
5098 case "(($ac_try" in
5099 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5100 *) ac_try_echo=$ac_try;;
5101 esac
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
5105 ac_status=$?
5106 grep -v '^ *+' conftest.er1 >conftest.err
5107 rm -f conftest.er1
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
5115 else
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
5129 _ACEOF
5131 cat >>confdefs.h <<\_ACEOF
5132 #define _ALL_SOURCE 1
5133 _ACEOF
5135 cat >>confdefs.h <<\_ACEOF
5136 #define _GNU_SOURCE 1
5137 _ACEOF
5139 cat >>confdefs.h <<\_ACEOF
5140 #define _POSIX_PTHREAD_SEMANTICS 1
5141 _ACEOF
5143 cat >>confdefs.h <<\_ACEOF
5144 #define _TANDEM_SOURCE 1
5145 _ACEOF
5158 cat >>confdefs.h <<\_ACEOF
5159 #define __EXTENSIONS__ 1
5160 _ACEOF
5162 cat >>confdefs.h <<\_ACEOF
5163 #define _POSIX_PTHREAD_SEMANTICS 1
5164 _ACEOF
5172 ac_ext=c
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
5184 else
5185 if test -n "$CC"; then
5186 ac_cv_prog_CC="$CC" # Let the user override the test.
5187 else
5188 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5189 for as_dir in $PATH
5191 IFS=$as_save_IFS
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
5197 break 2
5199 done
5200 done
5201 IFS=$as_save_IFS
5205 CC=$ac_cv_prog_CC
5206 if test -n "$CC"; then
5207 { $as_echo "$as_me:$LINENO: result: $CC" >&5
5208 $as_echo "$CC" >&6; }
5209 else
5210 { $as_echo "$as_me:$LINENO: result: no" >&5
5211 $as_echo "no" >&6; }
5216 if test -z "$ac_cv_prog_CC"; then
5217 ac_ct_CC=$CC
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
5224 else
5225 if test -n "$ac_ct_CC"; then
5226 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5227 else
5228 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5229 for as_dir in $PATH
5231 IFS=$as_save_IFS
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
5237 break 2
5239 done
5240 done
5241 IFS=$as_save_IFS
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; }
5249 else
5250 { $as_echo "$as_me:$LINENO: result: no" >&5
5251 $as_echo "no" >&6; }
5254 if test "x$ac_ct_CC" = x; then
5255 CC=""
5256 else
5257 case $cross_compiling:$ac_tool_warned in
5258 yes:)
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 ;;
5262 esac
5263 CC=$ac_ct_CC
5265 else
5266 CC="$ac_cv_prog_CC"
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
5277 else
5278 if test -n "$CC"; then
5279 ac_cv_prog_CC="$CC" # Let the user override the test.
5280 else
5281 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5282 for as_dir in $PATH
5284 IFS=$as_save_IFS
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
5290 break 2
5292 done
5293 done
5294 IFS=$as_save_IFS
5298 CC=$ac_cv_prog_CC
5299 if test -n "$CC"; then
5300 { $as_echo "$as_me:$LINENO: result: $CC" >&5
5301 $as_echo "$CC" >&6; }
5302 else
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
5317 else
5318 if test -n "$CC"; then
5319 ac_cv_prog_CC="$CC" # Let the user override the test.
5320 else
5321 ac_prog_rejected=no
5322 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5323 for as_dir in $PATH
5325 IFS=$as_save_IFS
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
5331 continue
5333 ac_cv_prog_CC="cc"
5334 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5335 break 2
5337 done
5338 done
5339 IFS=$as_save_IFS
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
5344 shift
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.
5349 shift
5350 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
5355 CC=$ac_cv_prog_CC
5356 if test -n "$CC"; then
5357 { $as_echo "$as_me:$LINENO: result: $CC" >&5
5358 $as_echo "$CC" >&6; }
5359 else
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
5376 else
5377 if test -n "$CC"; then
5378 ac_cv_prog_CC="$CC" # Let the user override the test.
5379 else
5380 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5381 for as_dir in $PATH
5383 IFS=$as_save_IFS
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
5389 break 2
5391 done
5392 done
5393 IFS=$as_save_IFS
5397 CC=$ac_cv_prog_CC
5398 if test -n "$CC"; then
5399 { $as_echo "$as_me:$LINENO: result: $CC" >&5
5400 $as_echo "$CC" >&6; }
5401 else
5402 { $as_echo "$as_me:$LINENO: result: no" >&5
5403 $as_echo "no" >&6; }
5407 test -n "$CC" && break
5408 done
5410 if test -z "$CC"; then
5411 ac_ct_CC=$CC
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
5420 else
5421 if test -n "$ac_ct_CC"; then
5422 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5423 else
5424 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5425 for as_dir in $PATH
5427 IFS=$as_save_IFS
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
5433 break 2
5435 done
5436 done
5437 IFS=$as_save_IFS
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; }
5445 else
5446 { $as_echo "$as_me:$LINENO: result: no" >&5
5447 $as_echo "no" >&6; }
5451 test -n "$ac_ct_CC" && break
5452 done
5454 if test "x$ac_ct_CC" = x; then
5455 CC=""
5456 else
5457 case $cross_compiling:$ac_tool_warned in
5458 yes:)
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 ;;
5462 esac
5463 CC=$ac_ct_CC
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
5480 set X $ac_compile
5481 ac_compiler=$2
5482 { (ac_try="$ac_compiler --version >&5"
5483 case "(($ac_try" in
5484 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5485 *) ac_try_echo=$ac_try;;
5486 esac
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
5490 ac_status=$?
5491 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5492 (exit $ac_status); }
5493 { (ac_try="$ac_compiler -v >&5"
5494 case "(($ac_try" in
5495 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5496 *) ac_try_echo=$ac_try;;
5497 esac
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
5501 ac_status=$?
5502 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5503 (exit $ac_status); }
5504 { (ac_try="$ac_compiler -V >&5"
5505 case "(($ac_try" in
5506 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5507 *) ac_try_echo=$ac_try;;
5508 esac
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
5512 ac_status=$?
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
5520 else
5521 cat >conftest.$ac_ext <<_ACEOF
5522 /* confdefs.h. */
5523 _ACEOF
5524 cat confdefs.h >>conftest.$ac_ext
5525 cat >>conftest.$ac_ext <<_ACEOF
5526 /* end confdefs.h. */
5529 main ()
5531 #ifndef __GNUC__
5532 choke me
5533 #endif
5536 return 0;
5538 _ACEOF
5539 rm -f conftest.$ac_objext
5540 if { (ac_try="$ac_compile"
5541 case "(($ac_try" in
5542 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5543 *) ac_try_echo=$ac_try;;
5544 esac
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
5548 ac_status=$?
5549 grep -v '^ *+' conftest.er1 >conftest.err
5550 rm -f conftest.er1
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
5557 ac_compiler_gnu=yes
5558 else
5559 $as_echo "$as_me: failed program was:" >&5
5560 sed 's/^/| /' conftest.$ac_ext >&5
5562 ac_compiler_gnu=no
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
5572 GCC=yes
5573 else
5574 GCC=
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
5582 else
5583 ac_save_c_werror_flag=$ac_c_werror_flag
5584 ac_c_werror_flag=yes
5585 ac_cv_prog_cc_g=no
5586 CFLAGS="-g"
5587 cat >conftest.$ac_ext <<_ACEOF
5588 /* confdefs.h. */
5589 _ACEOF
5590 cat confdefs.h >>conftest.$ac_ext
5591 cat >>conftest.$ac_ext <<_ACEOF
5592 /* end confdefs.h. */
5595 main ()
5599 return 0;
5601 _ACEOF
5602 rm -f conftest.$ac_objext
5603 if { (ac_try="$ac_compile"
5604 case "(($ac_try" in
5605 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5606 *) ac_try_echo=$ac_try;;
5607 esac
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
5611 ac_status=$?
5612 grep -v '^ *+' conftest.er1 >conftest.err
5613 rm -f conftest.er1
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
5620 ac_cv_prog_cc_g=yes
5621 else
5622 $as_echo "$as_me: failed program was:" >&5
5623 sed 's/^/| /' conftest.$ac_ext >&5
5625 CFLAGS=""
5626 cat >conftest.$ac_ext <<_ACEOF
5627 /* confdefs.h. */
5628 _ACEOF
5629 cat confdefs.h >>conftest.$ac_ext
5630 cat >>conftest.$ac_ext <<_ACEOF
5631 /* end confdefs.h. */
5634 main ()
5638 return 0;
5640 _ACEOF
5641 rm -f conftest.$ac_objext
5642 if { (ac_try="$ac_compile"
5643 case "(($ac_try" in
5644 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5645 *) ac_try_echo=$ac_try;;
5646 esac
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
5650 ac_status=$?
5651 grep -v '^ *+' conftest.er1 >conftest.err
5652 rm -f conftest.er1
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
5660 else
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
5665 CFLAGS="-g"
5666 cat >conftest.$ac_ext <<_ACEOF
5667 /* confdefs.h. */
5668 _ACEOF
5669 cat confdefs.h >>conftest.$ac_ext
5670 cat >>conftest.$ac_ext <<_ACEOF
5671 /* end confdefs.h. */
5674 main ()
5678 return 0;
5680 _ACEOF
5681 rm -f conftest.$ac_objext
5682 if { (ac_try="$ac_compile"
5683 case "(($ac_try" in
5684 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5685 *) ac_try_echo=$ac_try;;
5686 esac
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
5690 ac_status=$?
5691 grep -v '^ *+' conftest.er1 >conftest.err
5692 rm -f conftest.er1
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
5699 ac_cv_prog_cc_g=yes
5700 else
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
5722 CFLAGS="-g -O2"
5723 else
5724 CFLAGS="-g"
5726 else
5727 if test "$GCC" = yes; then
5728 CFLAGS="-O2"
5729 else
5730 CFLAGS=
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
5737 else
5738 ac_cv_prog_cc_c89=no
5739 ac_save_CC=$CC
5740 cat >conftest.$ac_ext <<_ACEOF
5741 /* confdefs.h. */
5742 _ACEOF
5743 cat confdefs.h >>conftest.$ac_ext
5744 cat >>conftest.$ac_ext <<_ACEOF
5745 /* end confdefs.h. */
5746 #include <stdarg.h>
5747 #include <stdio.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)
5754 char **p;
5755 int i;
5757 return p[i];
5759 static char *f (char * (*g) (char **, int), char **p, ...)
5761 char *s;
5762 va_list v;
5763 va_start (v,p);
5764 s = g (p, va_arg (v,int));
5765 va_end (v);
5766 return s;
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. */
5780 #define FOO(x) 'x'
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);
5787 int argc;
5788 char **argv;
5790 main ()
5792 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5794 return 0;
5796 _ACEOF
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"
5803 case "(($ac_try" in
5804 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5805 *) ac_try_echo=$ac_try;;
5806 esac
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
5810 ac_status=$?
5811 grep -v '^ *+' conftest.er1 >conftest.err
5812 rm -f conftest.er1
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
5820 else
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
5829 done
5830 rm -f conftest.$ac_ext
5831 CC=$ac_save_CC
5834 # AC_CACHE_VAL
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; } ;;
5839 xno)
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; } ;;
5846 esac
5849 ac_ext=c
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
5861 else
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
5867 # in D'.
5868 mkdir conftest.dir
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
5872 cd 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
5878 # directory.
5879 mkdir sub
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.
5893 : > sub/conftest.c
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
5899 done
5900 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5902 case $depmode in
5903 nosideeffect)
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
5907 continue
5908 else
5909 break
5912 none) break ;;
5913 esac
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
5936 break
5939 done
5941 cd ..
5942 rm -rf conftest.dir
5943 else
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
5955 am__fastdepCC_TRUE=
5956 am__fastdepCC_FALSE='#'
5957 else
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; }
5966 else
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
5974 else
5975 cat >conftest.$ac_ext <<_ACEOF
5976 /* confdefs.h. */
5977 _ACEOF
5978 cat confdefs.h >>conftest.$ac_ext
5979 cat >>conftest.$ac_ext <<_ACEOF
5980 /* end confdefs.h. */
5983 main ()
5987 return 0;
5989 _ACEOF
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'
5994 rm -f conftest2.*
5995 if { (case "(($ac_try" in
5996 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5997 *) ac_try_echo=$ac_try;;
5998 esac
5999 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6000 $as_echo "$ac_try_echo") >&5
6001 (eval "$ac_try") 2>&5
6002 ac_status=$?
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;;
6008 esac
6009 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6010 $as_echo "$ac_try_echo") >&5
6011 (eval "$ac_try") 2>&5
6012 ac_status=$?
6013 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6014 (exit $ac_status); };
6015 then
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;;
6023 esac
6024 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6025 $as_echo "$ac_try_echo") >&5
6026 (eval "$ac_try") 2>&5
6027 ac_status=$?
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'
6031 rm -f conftest2.*
6032 if { (case "(($ac_try" in
6033 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6034 *) ac_try_echo=$ac_try;;
6035 esac
6036 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6037 $as_echo "$ac_try_echo") >&5
6038 (eval "$ac_try") 2>&5
6039 ac_status=$?
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;;
6045 esac
6046 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6047 $as_echo "$ac_try_echo") >&5
6048 (eval "$ac_try") 2>&5
6049 ac_status=$?
6050 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6051 (exit $ac_status); };
6052 then
6053 # cc works too.
6055 else
6056 # cc exists but doesn't like -o.
6057 eval ac_cv_prog_cc_${ac_cc}_c_o=no
6061 else
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; }
6070 else
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
6076 _ACEOF
6080 # FIXME: we rely on the cache variable name because
6081 # there is no other way.
6082 set dummy $CC
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
6100 else
6101 ac_func_search_save_LIBS=$LIBS
6102 cat >conftest.$ac_ext <<_ACEOF
6103 /* confdefs.h. */
6104 _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. */
6112 #ifdef __cplusplus
6113 extern "C"
6114 #endif
6115 char strerror ();
6117 main ()
6119 return strerror ();
6121 return 0;
6123 _ACEOF
6124 for ac_lib in '' cposix; do
6125 if test -z "$ac_lib"; then
6126 ac_res="none required"
6127 else
6128 ac_res=-l$ac_lib
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"
6133 case "(($ac_try" in
6134 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6135 *) ac_try_echo=$ac_try;;
6136 esac
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
6140 ac_status=$?
6141 grep -v '^ *+' conftest.er1 >conftest.err
6142 rm -f conftest.er1
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
6151 }; then
6152 ac_cv_search_strerror=$ac_res
6153 else
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 \
6162 conftest$ac_exeext
6163 if test "${ac_cv_search_strerror+set}" = set; then
6164 break
6166 done
6167 if test "${ac_cv_search_strerror+set}" = set; then
6169 else
6170 ac_cv_search_strerror=no
6172 rm conftest.$ac_ext
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
6192 else
6193 if test -n "$RANLIB"; then
6194 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6195 else
6196 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6197 for as_dir in $PATH
6199 IFS=$as_save_IFS
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
6205 break 2
6207 done
6208 done
6209 IFS=$as_save_IFS
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; }
6217 else
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
6232 else
6233 if test -n "$ac_ct_RANLIB"; then
6234 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6235 else
6236 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6237 for as_dir in $PATH
6239 IFS=$as_save_IFS
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
6245 break 2
6247 done
6248 done
6249 IFS=$as_save_IFS
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; }
6257 else
6258 { $as_echo "$as_me:$LINENO: result: no" >&5
6259 $as_echo "no" >&6; }
6262 if test "x$ac_ct_RANLIB" = x; then
6263 RANLIB=":"
6264 else
6265 case $cross_compiling:$ac_tool_warned in
6266 yes:)
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 ;;
6270 esac
6271 RANLIB=$ac_ct_RANLIB
6273 else
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; }
6279 LN_S=$as_ln_s
6280 if test "$LN_S" = "ln -s"; then
6281 { $as_echo "$as_me:$LINENO: result: yes" >&5
6282 $as_echo "yes" >&6; }
6283 else
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
6299 else
6300 ac_cv_sys_largefile_CC=no
6301 if test "$GCC" != yes; then
6302 ac_save_CC=$CC
6303 while :; do
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
6307 /* confdefs.h. */
6308 _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)
6320 ? 1 : -1];
6322 main ()
6326 return 0;
6328 _ACEOF
6329 rm -f conftest.$ac_objext
6330 if { (ac_try="$ac_compile"
6331 case "(($ac_try" in
6332 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6333 *) ac_try_echo=$ac_try;;
6334 esac
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
6338 ac_status=$?
6339 grep -v '^ *+' conftest.er1 >conftest.err
6340 rm -f conftest.er1
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
6347 break
6348 else
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
6356 CC="$CC -n32"
6357 rm -f conftest.$ac_objext
6358 if { (ac_try="$ac_compile"
6359 case "(($ac_try" in
6360 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6361 *) ac_try_echo=$ac_try;;
6362 esac
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
6366 ac_status=$?
6367 grep -v '^ *+' conftest.er1 >conftest.err
6368 rm -f conftest.er1
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
6376 else
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
6384 break
6385 done
6386 CC=$ac_save_CC
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
6400 else
6401 while :; do
6402 cat >conftest.$ac_ext <<_ACEOF
6403 /* confdefs.h. */
6404 _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)
6416 ? 1 : -1];
6418 main ()
6422 return 0;
6424 _ACEOF
6425 rm -f conftest.$ac_objext
6426 if { (ac_try="$ac_compile"
6427 case "(($ac_try" in
6428 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6429 *) ac_try_echo=$ac_try;;
6430 esac
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
6434 ac_status=$?
6435 grep -v '^ *+' conftest.er1 >conftest.err
6436 rm -f conftest.er1
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
6444 else
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
6453 /* confdefs.h. */
6454 _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)
6467 ? 1 : -1];
6469 main ()
6473 return 0;
6475 _ACEOF
6476 rm -f conftest.$ac_objext
6477 if { (ac_try="$ac_compile"
6478 case "(($ac_try" in
6479 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6480 *) ac_try_echo=$ac_try;;
6481 esac
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
6485 ac_status=$?
6486 grep -v '^ *+' conftest.er1 >conftest.err
6487 rm -f conftest.er1
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
6495 else
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
6504 break
6505 done
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 #(
6510 no | unknown) ;;
6512 cat >>confdefs.h <<_ACEOF
6513 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
6514 _ACEOF
6516 esac
6517 rm -rf conftest*
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
6523 else
6524 while :; do
6525 cat >conftest.$ac_ext <<_ACEOF
6526 /* confdefs.h. */
6527 _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)
6539 ? 1 : -1];
6541 main ()
6545 return 0;
6547 _ACEOF
6548 rm -f conftest.$ac_objext
6549 if { (ac_try="$ac_compile"
6550 case "(($ac_try" in
6551 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6552 *) ac_try_echo=$ac_try;;
6553 esac
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
6557 ac_status=$?
6558 grep -v '^ *+' conftest.er1 >conftest.err
6559 rm -f conftest.er1
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
6567 else
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
6576 /* confdefs.h. */
6577 _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)
6590 ? 1 : -1];
6592 main ()
6596 return 0;
6598 _ACEOF
6599 rm -f conftest.$ac_objext
6600 if { (ac_try="$ac_compile"
6601 case "(($ac_try" in
6602 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6603 *) ac_try_echo=$ac_try;;
6604 esac
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
6608 ac_status=$?
6609 grep -v '^ *+' conftest.er1 >conftest.err
6610 rm -f conftest.er1
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
6618 else
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
6627 break
6628 done
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 #(
6633 no | unknown) ;;
6635 cat >>confdefs.h <<_ACEOF
6636 #define _LARGE_FILES $ac_cv_sys_large_files
6637 _ACEOF
6639 esac
6640 rm -rf conftest*
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
6652 else
6653 case $PERL in
6654 [\\/]* | ?:[\\/]*)
6655 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
6658 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6659 for as_dir in $PATH
6661 IFS=$as_save_IFS
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
6667 break 2
6669 done
6670 done
6671 IFS=$as_save_IFS
6673 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="no"
6675 esac
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; }
6681 else
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
6693 else
6694 case $CSH in
6695 [\\/]* | ?:[\\/]*)
6696 ac_cv_path_CSH="$CSH" # Let the user override the test with a path.
6699 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6700 for as_dir in $PATH
6702 IFS=$as_save_IFS
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
6708 break 2
6710 done
6711 done
6712 IFS=$as_save_IFS
6714 test -z "$ac_cv_path_CSH" && ac_cv_path_CSH="no"
6716 esac
6718 CSH=$ac_cv_path_CSH
6719 if test -n "$CSH"; then
6720 { $as_echo "$as_me:$LINENO: result: $CSH" >&5
6721 $as_echo "$CSH" >&6; }
6722 else
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
6735 else
6736 case $MKTEMP in
6737 [\\/]* | ?:[\\/]*)
6738 ac_cv_path_MKTEMP="$MKTEMP" # Let the user override the test with a path.
6741 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6742 for as_dir in $PATH
6744 IFS=$as_save_IFS
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
6750 break 2
6752 done
6753 done
6754 IFS=$as_save_IFS
6756 test -z "$ac_cv_path_MKTEMP" && ac_cv_path_MKTEMP="mktemp"
6758 esac
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; }
6764 else
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
6772 else
6773 MKTEMP_SH_FUNCTION=/dev/null
6776 # for src/cvsbug.in
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
6783 else
6784 case $SENDMAIL in
6785 [\\/]* | ?:[\\/]*)
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
6793 IFS=$as_save_IFS
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
6799 break 2
6801 done
6802 done
6803 IFS=$as_save_IFS
6805 test -z "$ac_cv_path_SENDMAIL" && ac_cv_path_SENDMAIL="no"
6807 esac
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; }
6813 else
6814 { $as_echo "$as_me:$LINENO: result: no" >&5
6815 $as_echo "no" >&6; }
6819 # For diff/util.c
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
6826 else
6827 case $PR in
6828 [\\/]* | ?:[\\/]*)
6829 ac_cv_path_PR="$PR" # Let the user override the test with a path.
6832 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6833 for as_dir in $PATH
6835 IFS=$as_save_IFS
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
6841 break 2
6843 done
6844 done
6845 IFS=$as_save_IFS
6847 test -z "$ac_cv_path_PR" && ac_cv_path_PR="no"
6849 esac
6851 PR=$ac_cv_path_PR
6852 if test -n "$PR"; then
6853 { $as_echo "$as_me:$LINENO: result: $PR" >&5
6854 $as_echo "$PR" >&6; }
6855 else
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"
6865 _ACEOF
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
6879 else
6880 case $ROFF in
6881 [\\/]* | ?:[\\/]*)
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
6888 IFS=$as_save_IFS
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
6894 break 2
6896 done
6897 done
6898 IFS=$as_save_IFS
6901 esac
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; }
6907 else
6908 { $as_echo "$as_me:$LINENO: result: no" >&5
6909 $as_echo "no" >&6; }
6913 test -n "$ROFF" && break
6914 done
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
6923 else
6924 case $PS2PDF in
6925 [\\/]* | ?:[\\/]*)
6926 ac_cv_path_PS2PDF="$PS2PDF" # Let the user override the test with a path.
6929 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6930 for as_dir in $PATH
6932 IFS=$as_save_IFS
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
6938 break 2
6940 done
6941 done
6942 IFS=$as_save_IFS
6944 test -z "$ac_cv_path_PS2PDF" && ac_cv_path_PS2PDF="$missing_dir/missing ps2pdf"
6946 esac
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; }
6952 else
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
6964 else
6965 case $TEXI2DVI in
6966 [\\/]* | ?:[\\/]*)
6967 ac_cv_path_TEXI2DVI="$TEXI2DVI" # Let the user override the test with a path.
6970 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6971 for as_dir in $PATH
6973 IFS=$as_save_IFS
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
6979 break 2
6981 done
6982 done
6983 IFS=$as_save_IFS
6985 test -z "$ac_cv_path_TEXI2DVI" && ac_cv_path_TEXI2DVI="$missing_dir/missing texi2dvi"
6987 esac
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; }
6993 else
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
7004 else
7005 echo '#! /bin/cat
7006 exit 69
7007 ' >conftest
7008 chmod u+x conftest
7009 (SHELL=/bin/sh; export SHELL; ./conftest >/dev/null 2>&1)
7010 if test $? -ne 69; then
7011 ac_cv_sys_interpreter=yes
7012 else
7013 ac_cv_sys_interpreter=no
7015 rm -f conftest
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
7033 else
7034 if test ! -d ac_test_dir ; then
7035 { ac_try='mkdir ac_test_dir'
7036 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7037 (eval $ac_try) 2>&5
7038 ac_status=$?
7039 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7040 (exit $ac_status); }; }
7042 cat >conftestmake <<EOF
7043 VPATH = ac_test_dir
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
7053 sleep 1
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
7056 (eval $ac_try) 2>&5
7057 ac_status=$?
7058 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7059 (exit $ac_status); }; } ; then
7060 ccvs_cv_bsd_make_vpath_bug=yes
7061 else
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
7066 (eval $ac_try) 2>&5
7067 ac_status=$?
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
7074 if \
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='#'
7079 else
7080 MAKE_TARGETS_IN_VPATH_TRUE='#'
7081 MAKE_TARGETS_IN_VPATH_FALSE=
7090 ac_header_dirent=no
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
7097 else
7098 cat >conftest.$ac_ext <<_ACEOF
7099 /* confdefs.h. */
7100 _ACEOF
7101 cat confdefs.h >>conftest.$ac_ext
7102 cat >>conftest.$ac_ext <<_ACEOF
7103 /* end confdefs.h. */
7104 #include <sys/types.h>
7105 #include <$ac_hdr>
7108 main ()
7110 if ((DIR *) 0)
7111 return 0;
7113 return 0;
7115 _ACEOF
7116 rm -f conftest.$ac_objext
7117 if { (ac_try="$ac_compile"
7118 case "(($ac_try" in
7119 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7120 *) ac_try_echo=$ac_try;;
7121 esac
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
7125 ac_status=$?
7126 grep -v '^ *+' conftest.er1 >conftest.err
7127 rm -f conftest.er1
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"
7135 else
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
7153 _ACEOF
7155 ac_header_dirent=$ac_hdr; break
7158 done
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
7165 else
7166 ac_func_search_save_LIBS=$LIBS
7167 cat >conftest.$ac_ext <<_ACEOF
7168 /* confdefs.h. */
7169 _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. */
7177 #ifdef __cplusplus
7178 extern "C"
7179 #endif
7180 char opendir ();
7182 main ()
7184 return opendir ();
7186 return 0;
7188 _ACEOF
7189 for ac_lib in '' dir; do
7190 if test -z "$ac_lib"; then
7191 ac_res="none required"
7192 else
7193 ac_res=-l$ac_lib
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"
7198 case "(($ac_try" in
7199 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7200 *) ac_try_echo=$ac_try;;
7201 esac
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
7205 ac_status=$?
7206 grep -v '^ *+' conftest.er1 >conftest.err
7207 rm -f conftest.er1
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
7216 }; then
7217 ac_cv_search_opendir=$ac_res
7218 else
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 \
7227 conftest$ac_exeext
7228 if test "${ac_cv_search_opendir+set}" = set; then
7229 break
7231 done
7232 if test "${ac_cv_search_opendir+set}" = set; then
7234 else
7235 ac_cv_search_opendir=no
7237 rm conftest.$ac_ext
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"
7248 else
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
7253 else
7254 ac_func_search_save_LIBS=$LIBS
7255 cat >conftest.$ac_ext <<_ACEOF
7256 /* confdefs.h. */
7257 _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. */
7265 #ifdef __cplusplus
7266 extern "C"
7267 #endif
7268 char opendir ();
7270 main ()
7272 return opendir ();
7274 return 0;
7276 _ACEOF
7277 for ac_lib in '' x; do
7278 if test -z "$ac_lib"; then
7279 ac_res="none required"
7280 else
7281 ac_res=-l$ac_lib
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"
7286 case "(($ac_try" in
7287 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7288 *) ac_try_echo=$ac_try;;
7289 esac
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
7293 ac_status=$?
7294 grep -v '^ *+' conftest.er1 >conftest.err
7295 rm -f conftest.er1
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
7304 }; then
7305 ac_cv_search_opendir=$ac_res
7306 else
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 \
7315 conftest$ac_exeext
7316 if test "${ac_cv_search_opendir+set}" = set; then
7317 break
7319 done
7320 if test "${ac_cv_search_opendir+set}" = set; then
7322 else
7323 ac_cv_search_opendir=no
7325 rm conftest.$ac_ext
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
7342 else
7343 cat >conftest.$ac_ext <<_ACEOF
7344 /* confdefs.h. */
7345 _ACEOF
7346 cat confdefs.h >>conftest.$ac_ext
7347 cat >>conftest.$ac_ext <<_ACEOF
7348 /* end confdefs.h. */
7349 #include <stdlib.h>
7350 #include <stdarg.h>
7351 #include <string.h>
7352 #include <float.h>
7355 main ()
7359 return 0;
7361 _ACEOF
7362 rm -f conftest.$ac_objext
7363 if { (ac_try="$ac_compile"
7364 case "(($ac_try" in
7365 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7366 *) ac_try_echo=$ac_try;;
7367 esac
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
7371 ac_status=$?
7372 grep -v '^ *+' conftest.er1 >conftest.err
7373 rm -f conftest.er1
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
7381 else
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
7393 /* confdefs.h. */
7394 _ACEOF
7395 cat confdefs.h >>conftest.$ac_ext
7396 cat >>conftest.$ac_ext <<_ACEOF
7397 /* end confdefs.h. */
7398 #include <string.h>
7400 _ACEOF
7401 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7402 $EGREP "memchr" >/dev/null 2>&1; then
7404 else
7405 ac_cv_header_stdc=no
7407 rm -f conftest*
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
7414 /* confdefs.h. */
7415 _ACEOF
7416 cat confdefs.h >>conftest.$ac_ext
7417 cat >>conftest.$ac_ext <<_ACEOF
7418 /* end confdefs.h. */
7419 #include <stdlib.h>
7421 _ACEOF
7422 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7423 $EGREP "free" >/dev/null 2>&1; then
7425 else
7426 ac_cv_header_stdc=no
7428 rm -f conftest*
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
7436 else
7437 cat >conftest.$ac_ext <<_ACEOF
7438 /* confdefs.h. */
7439 _ACEOF
7440 cat confdefs.h >>conftest.$ac_ext
7441 cat >>conftest.$ac_ext <<_ACEOF
7442 /* end confdefs.h. */
7443 #include <ctype.h>
7444 #include <stdlib.h>
7445 #if ((' ' & 0x0FF) == 0x020)
7446 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7447 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7448 #else
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))
7454 #endif
7456 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7458 main ()
7460 int i;
7461 for (i = 0; i < 256; i++)
7462 if (XOR (islower (i), ISLOWER (i))
7463 || toupper (i) != TOUPPER (i))
7464 return 2;
7465 return 0;
7467 _ACEOF
7468 rm -f conftest$ac_exeext
7469 if { (ac_try="$ac_link"
7470 case "(($ac_try" in
7471 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7472 *) ac_try_echo=$ac_try;;
7473 esac
7474 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7475 $as_echo "$ac_try_echo") >&5
7476 (eval "$ac_link") 2>&5
7477 ac_status=$?
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;;
7483 esac
7484 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7485 $as_echo "$ac_try_echo") >&5
7486 (eval "$ac_try") 2>&5
7487 ac_status=$?
7488 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7489 (exit $ac_status); }; }; then
7491 else
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
7496 ( exit $ac_status )
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
7512 _ACEOF
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
7520 else
7521 cat >conftest.$ac_ext <<_ACEOF
7522 /* confdefs.h. */
7523 _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>
7529 #ifndef WEXITSTATUS
7530 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
7531 #endif
7532 #ifndef WIFEXITED
7533 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
7534 #endif
7537 main ()
7539 int s;
7540 wait (&s);
7541 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
7543 return 0;
7545 _ACEOF
7546 rm -f conftest.$ac_objext
7547 if { (ac_try="$ac_compile"
7548 case "(($ac_try" in
7549 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7550 *) ac_try_echo=$ac_try;;
7551 esac
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
7555 ac_status=$?
7556 grep -v '^ *+' conftest.er1 >conftest.err
7557 rm -f conftest.er1
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
7565 else
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
7580 _ACEOF
7598 for ac_header in \
7599 direct.h \
7600 fcntl.h \
7601 io.h \
7602 memory.h \
7603 ndbm.h \
7604 stdint.h \
7605 syslog.h \
7606 sys/bsdtypes.h \
7607 sys/file.h \
7608 sys/param.h \
7609 sys/resource.h \
7610 sys/select.h \
7611 unistd.h \
7612 utime.h\
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; }
7626 else
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
7631 /* confdefs.h. */
7632 _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>
7638 _ACEOF
7639 rm -f conftest.$ac_objext
7640 if { (ac_try="$ac_compile"
7641 case "(($ac_try" in
7642 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7643 *) ac_try_echo=$ac_try;;
7644 esac
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
7648 ac_status=$?
7649 grep -v '^ *+' conftest.er1 >conftest.err
7650 rm -f conftest.er1
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
7658 else
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
7673 /* confdefs.h. */
7674 _ACEOF
7675 cat confdefs.h >>conftest.$ac_ext
7676 cat >>conftest.$ac_ext <<_ACEOF
7677 /* end confdefs.h. */
7678 #include <$ac_header>
7679 _ACEOF
7680 if { (ac_try="$ac_cpp conftest.$ac_ext"
7681 case "(($ac_try" in
7682 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7683 *) ac_try_echo=$ac_try;;
7684 esac
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
7688 ac_status=$?
7689 grep -v '^ *+' conftest.er1 >conftest.err
7690 rm -f conftest.er1
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
7696 }; then
7697 ac_header_preproc=yes
7698 else
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
7711 yes:no: )
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
7718 no: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;}
7731 ( cat <<\_ASBOX
7732 ## --------------------------------- ##
7733 ## Report this to bug-cvs@nongnu.org ##
7734 ## --------------------------------- ##
7735 _ASBOX
7736 ) | sed "s/^/$as_me: WARNING: /" >&2
7738 esac
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
7743 else
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
7757 _ACEOF
7761 done
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
7767 else
7768 cat >conftest.$ac_ext <<_ACEOF
7769 /* confdefs.h. */
7770 _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];
7779 #endif
7781 #if defined S_ISBLK && defined S_IFCHR
7782 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
7783 #endif
7785 #if defined S_ISLNK && defined S_IFREG
7786 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
7787 #endif
7789 #if defined S_ISSOCK && defined S_IFREG
7790 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
7791 #endif
7793 _ACEOF
7794 rm -f conftest.$ac_objext
7795 if { (ac_try="$ac_compile"
7796 case "(($ac_try" in
7797 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7798 *) ac_try_echo=$ac_try;;
7799 esac
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
7803 ac_status=$?
7804 grep -v '^ *+' conftest.er1 >conftest.err
7805 rm -f conftest.er1
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
7813 else
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
7828 _ACEOF
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
7837 else
7838 cat >conftest.$ac_ext <<_ACEOF
7839 /* confdefs.h. */
7840 _ACEOF
7841 cat confdefs.h >>conftest.$ac_ext
7842 cat >>conftest.$ac_ext <<_ACEOF
7843 /* end confdefs.h. */
7846 main ()
7848 /* FIXME: Include the comments suggested by Paul. */
7849 #ifndef __cplusplus
7850 /* Ultrix mips cc rejects this. */
7851 typedef int charset[2];
7852 const charset cs;
7853 /* SunOS 4.1.1 cc rejects this. */
7854 char const *const *pcpcc;
7855 char **ppc;
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
7862 expression */
7863 const char *g = "string";
7864 pcpcc = &g + (g ? g-g : 0);
7865 /* HPUX 7.0 cc rejects these. */
7866 ++pcpcc;
7867 ppc = (char**) pcpcc;
7868 pcpcc = (char const *const *) ppc;
7869 { /* SCO 3.2v4 cc rejects this. */
7870 char *t;
7871 char const *s = 0 ? (char *) 0 : (char const *) 0;
7873 *t++ = 0;
7874 if (s) return 0;
7876 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
7877 int x[] = {25, 17};
7878 const int *foo = &x[0];
7879 ++foo;
7881 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
7882 typedef const int *iptr;
7883 iptr p = 0;
7884 ++p;
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 */
7892 const int foo = 10;
7893 if (!foo) return 0;
7895 return !cs[0] && !zero.x;
7896 #endif
7899 return 0;
7901 _ACEOF
7902 rm -f conftest.$ac_objext
7903 if { (ac_try="$ac_compile"
7904 case "(($ac_try" in
7905 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7906 *) ac_try_echo=$ac_try;;
7907 esac
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
7911 ac_status=$?
7912 grep -v '^ *+' conftest.er1 >conftest.err
7913 rm -f conftest.er1
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
7920 ac_cv_c_const=yes
7921 else
7922 $as_echo "$as_me: failed program was:" >&5
7923 sed 's/^/| /' conftest.$ac_ext >&5
7925 ac_cv_c_const=no
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
7935 #define const /**/
7936 _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
7944 else
7945 cat >conftest.$ac_ext <<_ACEOF
7946 /* confdefs.h. */
7947 _ACEOF
7948 cat confdefs.h >>conftest.$ac_ext
7949 cat >>conftest.$ac_ext <<_ACEOF
7950 /* end confdefs.h. */
7951 #include <sys/types.h>
7953 _ACEOF
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
7957 else
7958 ac_cv_type_uid_t=no
7960 rm -f conftest*
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
7968 #define uid_t int
7969 _ACEOF
7972 cat >>confdefs.h <<\_ACEOF
7973 #define gid_t int
7974 _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
7982 else
7983 ac_cv_type_mode_t=no
7984 cat >conftest.$ac_ext <<_ACEOF
7985 /* confdefs.h. */
7986 _ACEOF
7987 cat confdefs.h >>conftest.$ac_ext
7988 cat >>conftest.$ac_ext <<_ACEOF
7989 /* end confdefs.h. */
7990 $ac_includes_default
7992 main ()
7994 if (sizeof (mode_t))
7995 return 0;
7997 return 0;
7999 _ACEOF
8000 rm -f conftest.$ac_objext
8001 if { (ac_try="$ac_compile"
8002 case "(($ac_try" in
8003 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8004 *) ac_try_echo=$ac_try;;
8005 esac
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
8009 ac_status=$?
8010 grep -v '^ *+' conftest.er1 >conftest.err
8011 rm -f conftest.er1
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
8019 /* confdefs.h. */
8020 _ACEOF
8021 cat confdefs.h >>conftest.$ac_ext
8022 cat >>conftest.$ac_ext <<_ACEOF
8023 /* end confdefs.h. */
8024 $ac_includes_default
8026 main ()
8028 if (sizeof ((mode_t)))
8029 return 0;
8031 return 0;
8033 _ACEOF
8034 rm -f conftest.$ac_objext
8035 if { (ac_try="$ac_compile"
8036 case "(($ac_try" in
8037 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8038 *) ac_try_echo=$ac_try;;
8039 esac
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
8043 ac_status=$?
8044 grep -v '^ *+' conftest.er1 >conftest.err
8045 rm -f conftest.er1
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
8053 else
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
8061 else
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
8074 else
8076 cat >>confdefs.h <<_ACEOF
8077 #define mode_t int
8078 _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
8086 else
8087 ac_cv_type_pid_t=no
8088 cat >conftest.$ac_ext <<_ACEOF
8089 /* confdefs.h. */
8090 _ACEOF
8091 cat confdefs.h >>conftest.$ac_ext
8092 cat >>conftest.$ac_ext <<_ACEOF
8093 /* end confdefs.h. */
8094 $ac_includes_default
8096 main ()
8098 if (sizeof (pid_t))
8099 return 0;
8101 return 0;
8103 _ACEOF
8104 rm -f conftest.$ac_objext
8105 if { (ac_try="$ac_compile"
8106 case "(($ac_try" in
8107 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8108 *) ac_try_echo=$ac_try;;
8109 esac
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
8113 ac_status=$?
8114 grep -v '^ *+' conftest.er1 >conftest.err
8115 rm -f conftest.er1
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
8123 /* confdefs.h. */
8124 _ACEOF
8125 cat confdefs.h >>conftest.$ac_ext
8126 cat >>conftest.$ac_ext <<_ACEOF
8127 /* end confdefs.h. */
8128 $ac_includes_default
8130 main ()
8132 if (sizeof ((pid_t)))
8133 return 0;
8135 return 0;
8137 _ACEOF
8138 rm -f conftest.$ac_objext
8139 if { (ac_try="$ac_compile"
8140 case "(($ac_try" in
8141 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8142 *) ac_try_echo=$ac_try;;
8143 esac
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
8147 ac_status=$?
8148 grep -v '^ *+' conftest.er1 >conftest.err
8149 rm -f conftest.er1
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
8157 else
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
8165 else
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
8178 else
8180 cat >>confdefs.h <<_ACEOF
8181 #define pid_t int
8182 _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
8190 else
8191 cat >conftest.$ac_ext <<_ACEOF
8192 /* confdefs.h. */
8193 _ACEOF
8194 cat confdefs.h >>conftest.$ac_ext
8195 cat >>conftest.$ac_ext <<_ACEOF
8196 /* end confdefs.h. */
8197 #include <sys/types.h>
8198 #include <signal.h>
8201 main ()
8203 return *(signal (0, 0)) (0) == 1;
8205 return 0;
8207 _ACEOF
8208 rm -f conftest.$ac_objext
8209 if { (ac_try="$ac_compile"
8210 case "(($ac_try" in
8211 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8212 *) ac_try_echo=$ac_try;;
8213 esac
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
8217 ac_status=$?
8218 grep -v '^ *+' conftest.er1 >conftest.err
8219 rm -f conftest.er1
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
8227 else
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
8241 _ACEOF
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
8249 else
8250 cat >conftest.$ac_ext <<_ACEOF
8251 /* confdefs.h. */
8252 _ACEOF
8253 cat confdefs.h >>conftest.$ac_ext
8254 cat >>conftest.$ac_ext <<_ACEOF
8255 /* end confdefs.h. */
8256 $ac_includes_default
8258 main ()
8260 static struct stat ac_aggr;
8261 if (ac_aggr.st_blksize)
8262 return 0;
8264 return 0;
8266 _ACEOF
8267 rm -f conftest.$ac_objext
8268 if { (ac_try="$ac_compile"
8269 case "(($ac_try" in
8270 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8271 *) ac_try_echo=$ac_try;;
8272 esac
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
8276 ac_status=$?
8277 grep -v '^ *+' conftest.er1 >conftest.err
8278 rm -f conftest.er1
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
8286 else
8287 $as_echo "$as_me: failed program was:" >&5
8288 sed 's/^/| /' conftest.$ac_ext >&5
8290 cat >conftest.$ac_ext <<_ACEOF
8291 /* confdefs.h. */
8292 _ACEOF
8293 cat confdefs.h >>conftest.$ac_ext
8294 cat >>conftest.$ac_ext <<_ACEOF
8295 /* end confdefs.h. */
8296 $ac_includes_default
8298 main ()
8300 static struct stat ac_aggr;
8301 if (sizeof ac_aggr.st_blksize)
8302 return 0;
8304 return 0;
8306 _ACEOF
8307 rm -f conftest.$ac_objext
8308 if { (ac_try="$ac_compile"
8309 case "(($ac_try" in
8310 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8311 *) ac_try_echo=$ac_try;;
8312 esac
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
8316 ac_status=$?
8317 grep -v '^ *+' conftest.er1 >conftest.err
8318 rm -f conftest.er1
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
8326 else
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
8344 _ACEOF
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
8353 else
8354 cat >conftest.$ac_ext <<_ACEOF
8355 /* confdefs.h. */
8356 _ACEOF
8357 cat confdefs.h >>conftest.$ac_ext
8358 cat >>conftest.$ac_ext <<_ACEOF
8359 /* end confdefs.h. */
8360 $ac_includes_default
8362 main ()
8364 static struct stat ac_aggr;
8365 if (ac_aggr.st_rdev)
8366 return 0;
8368 return 0;
8370 _ACEOF
8371 rm -f conftest.$ac_objext
8372 if { (ac_try="$ac_compile"
8373 case "(($ac_try" in
8374 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8375 *) ac_try_echo=$ac_try;;
8376 esac
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
8380 ac_status=$?
8381 grep -v '^ *+' conftest.er1 >conftest.err
8382 rm -f conftest.er1
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
8390 else
8391 $as_echo "$as_me: failed program was:" >&5
8392 sed 's/^/| /' conftest.$ac_ext >&5
8394 cat >conftest.$ac_ext <<_ACEOF
8395 /* confdefs.h. */
8396 _ACEOF
8397 cat confdefs.h >>conftest.$ac_ext
8398 cat >>conftest.$ac_ext <<_ACEOF
8399 /* end confdefs.h. */
8400 $ac_includes_default
8402 main ()
8404 static struct stat ac_aggr;
8405 if (sizeof ac_aggr.st_rdev)
8406 return 0;
8408 return 0;
8410 _ACEOF
8411 rm -f conftest.$ac_objext
8412 if { (ac_try="$ac_compile"
8413 case "(($ac_try" in
8414 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8415 *) ac_try_echo=$ac_try;;
8416 esac
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
8420 ac_status=$?
8421 grep -v '^ *+' conftest.er1 >conftest.err
8422 rm -f conftest.er1
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
8430 else
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
8448 _ACEOF
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
8458 else
8459 while :; do
8460 cat >conftest.$ac_ext <<_ACEOF
8461 /* confdefs.h. */
8462 _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 */
8467 #include <stdio.h>
8469 main ()
8471 int (*fp) (FILE *, off_t, int) = fseeko;
8472 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
8474 return 0;
8476 _ACEOF
8477 rm -f conftest.$ac_objext conftest$ac_exeext
8478 if { (ac_try="$ac_link"
8479 case "(($ac_try" in
8480 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8481 *) ac_try_echo=$ac_try;;
8482 esac
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
8486 ac_status=$?
8487 grep -v '^ *+' conftest.er1 >conftest.err
8488 rm -f conftest.er1
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
8497 }; then
8498 ac_cv_sys_largefile_source=no; break
8499 else
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
8510 /* confdefs.h. */
8511 _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 */
8517 #include <stdio.h>
8519 main ()
8521 int (*fp) (FILE *, off_t, int) = fseeko;
8522 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
8524 return 0;
8526 _ACEOF
8527 rm -f conftest.$ac_objext conftest$ac_exeext
8528 if { (ac_try="$ac_link"
8529 case "(($ac_try" in
8530 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8531 *) ac_try_echo=$ac_try;;
8532 esac
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
8536 ac_status=$?
8537 grep -v '^ *+' conftest.er1 >conftest.err
8538 rm -f conftest.er1
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
8547 }; then
8548 ac_cv_sys_largefile_source=1; break
8549 else
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
8560 break
8561 done
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 #(
8566 no | unknown) ;;
8568 cat >>confdefs.h <<_ACEOF
8569 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
8570 _ACEOF
8572 esac
8573 rm -rf conftest*
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
8582 _ACEOF
8586 if test $ac_cv_func_fseeko = no; then
8587 case " $LIBOBJS " in
8588 *" fseeko.$ac_objext "* ) ;;
8589 *) LIBOBJS="$LIBOBJS fseeko.$ac_objext"
8591 esac
8593 case " $LIBOBJS " in
8594 *" ftello.$ac_objext "* ) ;;
8595 *) LIBOBJS="$LIBOBJS ftello.$ac_objext"
8597 esac
8601 # Replace functions with versions in lib/ when they can't be found.
8603 for ac_func in \
8604 waitpid \
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
8612 else
8613 cat >conftest.$ac_ext <<_ACEOF
8614 /* confdefs.h. */
8615 _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. */
8628 #ifdef __STDC__
8629 # include <limits.h>
8630 #else
8631 # include <assert.h>
8632 #endif
8634 #undef $ac_func
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. */
8639 #ifdef __cplusplus
8640 extern "C"
8641 #endif
8642 char $ac_func ();
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
8647 choke me
8648 #endif
8651 main ()
8653 return $ac_func ();
8655 return 0;
8657 _ACEOF
8658 rm -f conftest.$ac_objext conftest$ac_exeext
8659 if { (ac_try="$ac_link"
8660 case "(($ac_try" in
8661 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8662 *) ac_try_echo=$ac_try;;
8663 esac
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
8667 ac_status=$?
8668 grep -v '^ *+' conftest.er1 >conftest.err
8669 rm -f conftest.er1
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
8678 }; then
8679 eval "$as_ac_var=yes"
8680 else
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
8700 _ACEOF
8702 else
8703 case " $LIBOBJS " in
8704 *" $ac_func.$ac_objext "* ) ;;
8705 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
8707 esac
8710 done
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
8718 else
8720 cat >conftest.$ac_ext <<_ACEOF
8721 /* confdefs.h. */
8722 _ACEOF
8723 cat confdefs.h >>conftest.$ac_ext
8724 cat >>conftest.$ac_ext <<_ACEOF
8725 /* end confdefs.h. */
8726 #include <unistd.h>
8728 main ()
8730 extern int optreset; optreset = 1;
8732 return 0;
8734 _ACEOF
8735 rm -f conftest.$ac_objext conftest$ac_exeext
8736 if { (ac_try="$ac_link"
8737 case "(($ac_try" in
8738 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8739 *) ac_try_echo=$ac_try;;
8740 esac
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
8744 ac_status=$?
8745 grep -v '^ *+' conftest.er1 >conftest.err
8746 rm -f conftest.er1
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
8755 }; then
8756 db_cv_optreset=yes
8757 else
8758 $as_echo "$as_me: failed program was:" >&5
8759 sed 's/^/| /' conftest.$ac_ext >&5
8761 db_cv_optreset=no
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
8773 _ACEOF
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; }
8797 else
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
8802 /* confdefs.h. */
8803 _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>
8809 _ACEOF
8810 rm -f conftest.$ac_objext
8811 if { (ac_try="$ac_compile"
8812 case "(($ac_try" in
8813 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8814 *) ac_try_echo=$ac_try;;
8815 esac
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
8819 ac_status=$?
8820 grep -v '^ *+' conftest.er1 >conftest.err
8821 rm -f conftest.er1
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
8829 else
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
8844 /* confdefs.h. */
8845 _ACEOF
8846 cat confdefs.h >>conftest.$ac_ext
8847 cat >>conftest.$ac_ext <<_ACEOF
8848 /* end confdefs.h. */
8849 #include <$ac_header>
8850 _ACEOF
8851 if { (ac_try="$ac_cpp conftest.$ac_ext"
8852 case "(($ac_try" in
8853 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8854 *) ac_try_echo=$ac_try;;
8855 esac
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
8859 ac_status=$?
8860 grep -v '^ *+' conftest.er1 >conftest.err
8861 rm -f conftest.er1
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
8867 }; then
8868 ac_header_preproc=yes
8869 else
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
8882 yes:no: )
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
8889 no: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;}
8902 ( cat <<\_ASBOX
8903 ## --------------------------------- ##
8904 ## Report this to bug-cvs@nongnu.org ##
8905 ## --------------------------------- ##
8906 _ASBOX
8907 ) | sed "s/^/$as_me: WARNING: /" >&2
8909 esac
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
8914 else
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
8928 _ACEOF
8932 done
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
8938 else
8939 if test "$cross_compiling" = yes; then
8940 ccvs_cv_func_select_hang=yes
8941 else
8942 cat >conftest.$ac_ext <<_ACEOF
8943 /* confdefs.h. */
8944 _ACEOF
8945 cat confdefs.h >>conftest.$ac_ext
8946 cat >>conftest.$ac_ext <<_ACEOF
8947 /* end confdefs.h. */
8949 #include <stdio.h>
8950 #include <sys/select.h>
8951 #ifdef HAVE_FCNTL_H
8952 # include <fcntl.h>
8953 #endif
8954 #include <errno.h>
8956 main ()
8959 int numfds;
8960 fd_set readfds;
8961 struct timeval timeout;
8962 int fd = open ("/dev/null", O_RDONLY);
8964 FD_ZERO (&readfds);
8965 FD_SET (fd, &readfds);
8966 timeout.tv_sec = 0;
8967 timeout.tv_usec = 1;
8969 while ((numfds = select (fd + 1, &readfds, NULL, NULL, &timeout)) < 0
8970 && errno == EINTR);
8971 return (numfds <= 0);
8974 return 0;
8976 _ACEOF
8977 rm -f conftest$ac_exeext
8978 if { (ac_try="$ac_link"
8979 case "(($ac_try" in
8980 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8981 *) ac_try_echo=$ac_try;;
8982 esac
8983 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8984 $as_echo "$ac_try_echo") >&5
8985 (eval "$ac_link") 2>&5
8986 ac_status=$?
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;;
8992 esac
8993 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8994 $as_echo "$ac_try_echo") >&5
8995 (eval "$ac_try") 2>&5
8996 ac_status=$?
8997 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8998 (exit $ac_status); }; }; then
8999 ccvs_cv_func_select_hang=no
9000 else
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
9005 ( exit $ac_status )
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; }
9034 else
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
9039 /* confdefs.h. */
9040 _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>
9046 _ACEOF
9047 rm -f conftest.$ac_objext
9048 if { (ac_try="$ac_compile"
9049 case "(($ac_try" in
9050 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9051 *) ac_try_echo=$ac_try;;
9052 esac
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
9056 ac_status=$?
9057 grep -v '^ *+' conftest.er1 >conftest.err
9058 rm -f conftest.er1
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
9066 else
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
9081 /* confdefs.h. */
9082 _ACEOF
9083 cat confdefs.h >>conftest.$ac_ext
9084 cat >>conftest.$ac_ext <<_ACEOF
9085 /* end confdefs.h. */
9086 #include <$ac_header>
9087 _ACEOF
9088 if { (ac_try="$ac_cpp conftest.$ac_ext"
9089 case "(($ac_try" in
9090 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9091 *) ac_try_echo=$ac_try;;
9092 esac
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
9096 ac_status=$?
9097 grep -v '^ *+' conftest.er1 >conftest.err
9098 rm -f conftest.er1
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
9104 }; then
9105 ac_header_preproc=yes
9106 else
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
9119 yes:no: )
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
9126 no: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;}
9139 ( cat <<\_ASBOX
9140 ## --------------------------------- ##
9141 ## Report this to bug-cvs@nongnu.org ##
9142 ## --------------------------------- ##
9143 _ASBOX
9144 ) | sed "s/^/$as_me: WARNING: /" >&2
9146 esac
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
9151 else
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
9165 _ACEOF
9169 done
9172 case " $LIBOBJS " in
9173 *" sunos57-select.$ac_objext "* ) ;;
9174 *) LIBOBJS="$LIBOBJS sunos57-select.$ac_objext"
9176 esac
9179 cat >>confdefs.h <<\_ACEOF
9180 #define select rpl_select
9181 _ACEOF
9187 # Begin GNULIB stuff.
9190 # Look for functions from GNULIB and replace with versions in lib/ when
9191 # necessary.
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
9198 else
9199 cat >conftest.$ac_ext <<_ACEOF
9200 /* confdefs.h. */
9201 _ACEOF
9202 cat confdefs.h >>conftest.$ac_ext
9203 cat >>conftest.$ac_ext <<_ACEOF
9204 /* end confdefs.h. */
9205 #include <alloca.h>
9207 main ()
9209 char *p = (char *) alloca (2 * sizeof (int));
9210 if (p) return 0;
9212 return 0;
9214 _ACEOF
9215 rm -f conftest.$ac_objext conftest$ac_exeext
9216 if { (ac_try="$ac_link"
9217 case "(($ac_try" in
9218 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9219 *) ac_try_echo=$ac_try;;
9220 esac
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
9224 ac_status=$?
9225 grep -v '^ *+' conftest.er1 >conftest.err
9226 rm -f conftest.er1
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
9235 }; then
9236 ac_cv_working_alloca_h=yes
9237 else
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
9254 _ACEOF
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
9262 else
9263 cat >conftest.$ac_ext <<_ACEOF
9264 /* confdefs.h. */
9265 _ACEOF
9266 cat confdefs.h >>conftest.$ac_ext
9267 cat >>conftest.$ac_ext <<_ACEOF
9268 /* end confdefs.h. */
9269 #ifdef __GNUC__
9270 # define alloca __builtin_alloca
9271 #else
9272 # ifdef _MSC_VER
9273 # include <malloc.h>
9274 # define alloca _alloca
9275 # else
9276 # ifdef HAVE_ALLOCA_H
9277 # include <alloca.h>
9278 # else
9279 # ifdef _AIX
9280 #pragma alloca
9281 # else
9282 # ifndef alloca /* predefined by HP cc +Olibcalls */
9283 char *alloca ();
9284 # endif
9285 # endif
9286 # endif
9287 # endif
9288 #endif
9291 main ()
9293 char *p = (char *) alloca (1);
9294 if (p) return 0;
9296 return 0;
9298 _ACEOF
9299 rm -f conftest.$ac_objext conftest$ac_exeext
9300 if { (ac_try="$ac_link"
9301 case "(($ac_try" in
9302 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9303 *) ac_try_echo=$ac_try;;
9304 esac
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
9308 ac_status=$?
9309 grep -v '^ *+' conftest.er1 >conftest.err
9310 rm -f conftest.er1
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
9319 }; then
9320 ac_cv_func_alloca_works=yes
9321 else
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
9339 _ACEOF
9341 else
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
9350 #define C_ALLOCA 1
9351 _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
9358 else
9359 cat >conftest.$ac_ext <<_ACEOF
9360 /* confdefs.h. */
9361 _ACEOF
9362 cat confdefs.h >>conftest.$ac_ext
9363 cat >>conftest.$ac_ext <<_ACEOF
9364 /* end confdefs.h. */
9365 #if defined CRAY && ! defined CRAY2
9366 webecray
9367 #else
9368 wenotbecray
9369 #endif
9371 _ACEOF
9372 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9373 $EGREP "webecray" >/dev/null 2>&1; then
9374 ac_cv_os_cray=yes
9375 else
9376 ac_cv_os_cray=no
9378 rm -f conftest*
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
9390 else
9391 cat >conftest.$ac_ext <<_ACEOF
9392 /* confdefs.h. */
9393 _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. */
9406 #ifdef __STDC__
9407 # include <limits.h>
9408 #else
9409 # include <assert.h>
9410 #endif
9412 #undef $ac_func
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. */
9417 #ifdef __cplusplus
9418 extern "C"
9419 #endif
9420 char $ac_func ();
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
9425 choke me
9426 #endif
9429 main ()
9431 return $ac_func ();
9433 return 0;
9435 _ACEOF
9436 rm -f conftest.$ac_objext conftest$ac_exeext
9437 if { (ac_try="$ac_link"
9438 case "(($ac_try" in
9439 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9440 *) ac_try_echo=$ac_try;;
9441 esac
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
9445 ac_status=$?
9446 grep -v '^ *+' conftest.er1 >conftest.err
9447 rm -f conftest.er1
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
9456 }; then
9457 eval "$as_ac_var=yes"
9458 else
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
9479 _ACEOF
9481 break
9484 done
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
9491 else
9492 if test "$cross_compiling" = yes; then
9493 ac_cv_c_stack_direction=0
9494 else
9495 cat >conftest.$ac_ext <<_ACEOF
9496 /* confdefs.h. */
9497 _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;
9506 auto char dummy;
9507 if (addr == 0)
9509 addr = &dummy;
9510 return find_stack_direction ();
9512 else
9513 return (&dummy > addr) ? 1 : -1;
9517 main ()
9519 return find_stack_direction () < 0;
9521 _ACEOF
9522 rm -f conftest$ac_exeext
9523 if { (ac_try="$ac_link"
9524 case "(($ac_try" in
9525 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9526 *) ac_try_echo=$ac_try;;
9527 esac
9528 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9529 $as_echo "$ac_try_echo") >&5
9530 (eval "$ac_link") 2>&5
9531 ac_status=$?
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;;
9537 esac
9538 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9539 $as_echo "$ac_try_echo") >&5
9540 (eval "$ac_try") 2>&5
9541 ac_status=$?
9542 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9543 (exit $ac_status); }; }; then
9544 ac_cv_c_stack_direction=1
9545 else
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
9550 ( exit $ac_status )
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
9564 _ACEOF
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; }
9584 else
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
9589 /* confdefs.h. */
9590 _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>
9596 _ACEOF
9597 rm -f conftest.$ac_objext
9598 if { (ac_try="$ac_compile"
9599 case "(($ac_try" in
9600 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9601 *) ac_try_echo=$ac_try;;
9602 esac
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
9606 ac_status=$?
9607 grep -v '^ *+' conftest.er1 >conftest.err
9608 rm -f conftest.er1
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
9616 else
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
9631 /* confdefs.h. */
9632 _ACEOF
9633 cat confdefs.h >>conftest.$ac_ext
9634 cat >>conftest.$ac_ext <<_ACEOF
9635 /* end confdefs.h. */
9636 #include <$ac_header>
9637 _ACEOF
9638 if { (ac_try="$ac_cpp conftest.$ac_ext"
9639 case "(($ac_try" in
9640 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9641 *) ac_try_echo=$ac_try;;
9642 esac
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
9646 ac_status=$?
9647 grep -v '^ *+' conftest.er1 >conftest.err
9648 rm -f conftest.er1
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
9654 }; then
9655 ac_header_preproc=yes
9656 else
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
9669 yes:no: )
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
9676 no: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;}
9689 ( cat <<\_ASBOX
9690 ## --------------------------------- ##
9691 ## Report this to bug-cvs@nongnu.org ##
9692 ## --------------------------------- ##
9693 _ASBOX
9694 ) | sed "s/^/$as_me: WARNING: /" >&2
9696 esac
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
9701 else
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
9715 _ACEOF
9719 done
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
9725 else
9726 if test "$cross_compiling" = yes; then
9727 ac_cv_func_malloc_0_nonnull=no
9728 else
9729 cat >conftest.$ac_ext <<_ACEOF
9730 /* confdefs.h. */
9731 _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>
9737 #else
9738 char *malloc ();
9739 #endif
9742 main ()
9744 return ! malloc (0);
9746 return 0;
9748 _ACEOF
9749 rm -f conftest$ac_exeext
9750 if { (ac_try="$ac_link"
9751 case "(($ac_try" in
9752 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9753 *) ac_try_echo=$ac_try;;
9754 esac
9755 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9756 $as_echo "$ac_try_echo") >&5
9757 (eval "$ac_link") 2>&5
9758 ac_status=$?
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;;
9764 esac
9765 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9766 $as_echo "$ac_try_echo") >&5
9767 (eval "$ac_try") 2>&5
9768 ac_status=$?
9769 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9770 (exit $ac_status); }; }; then
9771 ac_cv_func_malloc_0_nonnull=yes
9772 else
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
9777 ( exit $ac_status )
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
9790 else
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
9798 _ACEOF
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
9806 else
9807 cat >conftest.$ac_ext <<_ACEOF
9808 /* confdefs.h. */
9809 _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;
9815 main ()
9817 long long llmax = (long long) -1;
9818 return ll << i | ll >> i | llmax / ll | llmax % ll;
9820 return 0;
9822 _ACEOF
9823 rm -f conftest.$ac_objext conftest$ac_exeext
9824 if { (ac_try="$ac_link"
9825 case "(($ac_try" in
9826 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9827 *) ac_try_echo=$ac_try;;
9828 esac
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
9832 ac_status=$?
9833 grep -v '^ *+' conftest.er1 >conftest.err
9834 rm -f conftest.er1
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
9843 }; then
9844 ac_cv_type_long_long=yes
9845 else
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
9862 _ACEOF
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
9871 else
9872 if test "$GCC" = yes; then
9873 gt_cv_c_long_double=yes
9874 else
9875 cat >conftest.$ac_ext <<_ACEOF
9876 /* confdefs.h. */
9877 _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];
9888 main ()
9892 return 0;
9894 _ACEOF
9895 rm -f conftest.$ac_objext
9896 if { (ac_try="$ac_compile"
9897 case "(($ac_try" in
9898 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9899 *) ac_try_echo=$ac_try;;
9900 esac
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
9904 ac_status=$?
9905 grep -v '^ *+' conftest.er1 >conftest.err
9906 rm -f conftest.er1
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
9914 else
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
9930 _ACEOF
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
9938 else
9939 gl_cv_c_restrict=no
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
9944 /* confdefs.h. */
9945 _ACEOF
9946 cat confdefs.h >>conftest.$ac_ext
9947 cat >>conftest.$ac_ext <<_ACEOF
9948 /* end confdefs.h. */
9949 float * $ac_kw x;
9950 _ACEOF
9951 rm -f conftest.$ac_objext
9952 if { (ac_try="$ac_compile"
9953 case "(($ac_try" in
9954 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9955 *) ac_try_echo=$ac_try;;
9956 esac
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
9960 ac_status=$?
9961 grep -v '^ *+' conftest.er1 >conftest.err
9962 rm -f conftest.er1
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
9970 else
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
9978 done
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
9984 restrict) ;;
9986 cat >>confdefs.h <<\_ACEOF
9987 #define restrict /**/
9988 _ACEOF
9990 *) cat >>confdefs.h <<_ACEOF
9991 #define restrict $gl_cv_c_restrict
9992 _ACEOF
9994 esac
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
10001 else
10002 cat >conftest.$ac_ext <<_ACEOF
10003 /* confdefs.h. */
10004 _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>
10012 main ()
10014 int x = AF_INET; struct in_addr y; struct sockaddr_in z;
10016 return 0;
10018 _ACEOF
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;;
10024 esac
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
10028 ac_status=$?
10029 grep -v '^ *+' conftest.er1 >conftest.err
10030 rm -f conftest.er1
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
10038 else
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
10054 _ACEOF
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
10062 else
10063 cat >conftest.$ac_ext <<_ACEOF
10064 /* confdefs.h. */
10065 _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>
10073 main ()
10075 int x = AF_INET6; struct in6_addr y; struct sockaddr_in6 z;
10077 return 0;
10079 _ACEOF
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;;
10085 esac
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
10089 ac_status=$?
10090 grep -v '^ *+' conftest.er1 >conftest.err
10091 rm -f conftest.er1
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
10099 else
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
10115 _ACEOF
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
10123 else
10124 ac_cv_c_inline=no
10125 for ac_kw in inline __inline__ __inline; do
10126 cat >conftest.$ac_ext <<_ACEOF
10127 /* confdefs.h. */
10128 _ACEOF
10129 cat confdefs.h >>conftest.$ac_ext
10130 cat >>conftest.$ac_ext <<_ACEOF
10131 /* end confdefs.h. */
10132 #ifndef __cplusplus
10133 typedef int foo_t;
10134 static $ac_kw foo_t static_foo () {return 0; }
10135 $ac_kw foo_t foo () {return 0; }
10136 #endif
10138 _ACEOF
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;;
10144 esac
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
10148 ac_status=$?
10149 grep -v '^ *+' conftest.er1 >conftest.err
10150 rm -f conftest.er1
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
10158 else
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
10167 done
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
10175 inline | yes) ;;
10177 case $ac_cv_c_inline in
10178 no) ac_val=;;
10179 *) ac_val=$ac_cv_c_inline;;
10180 esac
10181 cat >>confdefs.h <<_ACEOF
10182 #ifndef __cplusplus
10183 #define inline $ac_val
10184 #endif
10185 _ACEOF
10187 esac
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
10194 else
10195 ac_func_search_save_LIBS=$LIBS
10196 cat >conftest.$ac_ext <<_ACEOF
10197 /* confdefs.h. */
10198 _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. */
10206 #ifdef __cplusplus
10207 extern "C"
10208 #endif
10209 char getaddrinfo ();
10211 main ()
10213 return getaddrinfo ();
10215 return 0;
10217 _ACEOF
10218 for ac_lib in '' nsl socket; do
10219 if test -z "$ac_lib"; then
10220 ac_res="none required"
10221 else
10222 ac_res=-l$ac_lib
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;;
10230 esac
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
10234 ac_status=$?
10235 grep -v '^ *+' conftest.er1 >conftest.err
10236 rm -f conftest.er1
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
10245 }; then
10246 ac_cv_search_getaddrinfo=$ac_res
10247 else
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 \
10256 conftest$ac_exeext
10257 if test "${ac_cv_search_getaddrinfo+set}" = set; then
10258 break
10260 done
10261 if test "${ac_cv_search_getaddrinfo+set}" = set; then
10263 else
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
10286 else
10287 cat >conftest.$ac_ext <<_ACEOF
10288 /* confdefs.h. */
10289 _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. */
10302 #ifdef __STDC__
10303 # include <limits.h>
10304 #else
10305 # include <assert.h>
10306 #endif
10308 #undef $ac_func
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. */
10313 #ifdef __cplusplus
10314 extern "C"
10315 #endif
10316 char $ac_func ();
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
10321 choke me
10322 #endif
10325 main ()
10327 return $ac_func ();
10329 return 0;
10331 _ACEOF
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;;
10337 esac
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
10341 ac_status=$?
10342 grep -v '^ *+' conftest.er1 >conftest.err
10343 rm -f conftest.er1
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
10352 }; then
10353 eval "$as_ac_var=yes"
10354 else
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
10374 _ACEOF
10376 else
10377 case " $LIBOBJS " in
10378 *" $ac_func.$ac_objext "* ) ;;
10379 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
10381 esac
10384 done
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
10397 else
10398 cat >conftest.$ac_ext <<_ACEOF
10399 /* confdefs.h. */
10400 _ACEOF
10401 cat confdefs.h >>conftest.$ac_ext
10402 cat >>conftest.$ac_ext <<_ACEOF
10403 /* end confdefs.h. */
10405 #include <stdbool.h>
10406 #ifndef bool
10407 "error: bool is not defined"
10408 #endif
10409 #ifndef false
10410 "error: false is not defined"
10411 #endif
10412 #if false
10413 "error: false is not 0"
10414 #endif
10415 #ifndef true
10416 "error: true is not defined"
10417 #endif
10418 #if true != 1
10419 "error: true is not 1"
10420 #endif
10421 #ifndef __bool_true_false_are_defined
10422 "error: __bool_true_false_are_defined is not defined"
10423 #endif
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];
10431 bool e = &s;
10432 char f[(_Bool) -0.0 == false ? 1 : -1];
10433 char g[true];
10434 char h[sizeof (_Bool)];
10435 char i[sizeof s.t];
10436 enum { j = false, k = true, l = false * true, m = true * 256 };
10437 _Bool n[m];
10438 char o[sizeof n == m * sizeof n[0] ? 1 : -1];
10441 main ()
10444 return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !j + !k + !l
10445 + !m + !n + !o);
10448 return 0;
10450 _ACEOF
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;;
10456 esac
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
10460 ac_status=$?
10461 grep -v '^ *+' conftest.er1 >conftest.err
10462 rm -f conftest.er1
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
10470 else
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
10485 else
10486 ac_cv_type__Bool=no
10487 cat >conftest.$ac_ext <<_ACEOF
10488 /* confdefs.h. */
10489 _ACEOF
10490 cat confdefs.h >>conftest.$ac_ext
10491 cat >>conftest.$ac_ext <<_ACEOF
10492 /* end confdefs.h. */
10493 $ac_includes_default
10495 main ()
10497 if (sizeof (_Bool))
10498 return 0;
10500 return 0;
10502 _ACEOF
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;;
10508 esac
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
10512 ac_status=$?
10513 grep -v '^ *+' conftest.er1 >conftest.err
10514 rm -f conftest.er1
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
10522 /* confdefs.h. */
10523 _ACEOF
10524 cat confdefs.h >>conftest.$ac_ext
10525 cat >>conftest.$ac_ext <<_ACEOF
10526 /* end confdefs.h. */
10527 $ac_includes_default
10529 main ()
10531 if (sizeof ((_Bool)))
10532 return 0;
10534 return 0;
10536 _ACEOF
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;;
10542 esac
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
10546 ac_status=$?
10547 grep -v '^ *+' conftest.er1 >conftest.err
10548 rm -f conftest.er1
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
10556 else
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
10564 else
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
10579 _ACEOF
10584 if test $ac_cv_header_stdbool_h = yes; then
10586 cat >>confdefs.h <<\_ACEOF
10587 #define HAVE_STDBOOL_H 1
10588 _ACEOF
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
10603 else
10604 cat >conftest.$ac_ext <<_ACEOF
10605 /* confdefs.h. */
10606 _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. */
10619 #ifdef __STDC__
10620 # include <limits.h>
10621 #else
10622 # include <assert.h>
10623 #endif
10625 #undef $ac_func
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. */
10630 #ifdef __cplusplus
10631 extern "C"
10632 #endif
10633 char $ac_func ();
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
10638 choke me
10639 #endif
10642 main ()
10644 return $ac_func ();
10646 return 0;
10648 _ACEOF
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;;
10654 esac
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
10658 ac_status=$?
10659 grep -v '^ *+' conftest.er1 >conftest.err
10660 rm -f conftest.er1
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
10669 }; then
10670 eval "$as_ac_var=yes"
10671 else
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
10691 _ACEOF
10694 done
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; }
10719 else
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
10724 /* confdefs.h. */
10725 _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>
10731 _ACEOF
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;;
10737 esac
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
10741 ac_status=$?
10742 grep -v '^ *+' conftest.er1 >conftest.err
10743 rm -f conftest.er1
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
10751 else
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
10766 /* confdefs.h. */
10767 _ACEOF
10768 cat confdefs.h >>conftest.$ac_ext
10769 cat >>conftest.$ac_ext <<_ACEOF
10770 /* end confdefs.h. */
10771 #include <$ac_header>
10772 _ACEOF
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;;
10777 esac
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
10781 ac_status=$?
10782 grep -v '^ *+' conftest.er1 >conftest.err
10783 rm -f conftest.er1
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
10789 }; then
10790 ac_header_preproc=yes
10791 else
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
10804 yes:no: )
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
10811 no: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;}
10824 ( cat <<\_ASBOX
10825 ## --------------------------------- ##
10826 ## Report this to bug-cvs@nongnu.org ##
10827 ## --------------------------------- ##
10828 _ASBOX
10829 ) | sed "s/^/$as_me: WARNING: /" >&2
10831 esac
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
10836 else
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
10850 _ACEOF
10854 done
10863 case " $LIBOBJS " in
10864 *" save-cwd.$ac_objext "* ) ;;
10865 *) LIBOBJS="$LIBOBJS save-cwd.$ac_objext"
10867 esac
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
10889 else
10890 cat >conftest.$ac_ext <<_ACEOF
10891 /* confdefs.h. */
10892 _ACEOF
10893 cat confdefs.h >>conftest.$ac_ext
10894 cat >>conftest.$ac_ext <<_ACEOF
10895 /* end confdefs.h. */
10896 $ac_includes_default
10898 main ()
10900 #ifndef memrchr
10901 (void) memrchr;
10902 #endif
10905 return 0;
10907 _ACEOF
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;;
10913 esac
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
10917 ac_status=$?
10918 grep -v '^ *+' conftest.er1 >conftest.err
10919 rm -f conftest.er1
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
10927 else
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
10942 _ACEOF
10945 else
10946 cat >>confdefs.h <<_ACEOF
10947 #define HAVE_DECL_MEMRCHR 0
10948 _ACEOF
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
10960 else
10962 cat >conftest.$ac_ext <<_ACEOF
10963 /* confdefs.h. */
10964 _ACEOF
10965 cat confdefs.h >>conftest.$ac_ext
10966 cat >>conftest.$ac_ext <<_ACEOF
10967 /* end confdefs.h. */
10970 main ()
10972 #if !defined _WIN32 && !defined __WIN32__ && !defined __MSDOS__ && !defined __CYGWIN__
10973 neither MSDOS nor Windows
10974 #endif
10976 return 0;
10978 _ACEOF
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;;
10984 esac
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
10988 ac_status=$?
10989 grep -v '^ *+' conftest.er1 >conftest.err
10990 rm -f conftest.er1
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
10998 else
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
11014 else
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
11025 _ACEOF
11032 cat >>confdefs.h <<_ACEOF
11033 #define FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR $ac_fs_backslash_is_file_name_separator
11034 _ACEOF
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
11041 else
11042 cat >conftest.$ac_ext <<_ACEOF
11043 /* confdefs.h. */
11044 _ACEOF
11045 cat confdefs.h >>conftest.$ac_ext
11046 cat >>conftest.$ac_ext <<_ACEOF
11047 /* end confdefs.h. */
11048 $ac_includes_default
11050 main ()
11052 #ifndef strerror_r
11053 (void) strerror_r;
11054 #endif
11057 return 0;
11059 _ACEOF
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;;
11065 esac
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
11069 ac_status=$?
11070 grep -v '^ *+' conftest.er1 >conftest.err
11071 rm -f conftest.er1
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
11079 else
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
11094 _ACEOF
11097 else
11098 cat >>confdefs.h <<_ACEOF
11099 #define HAVE_DECL_STRERROR_R 0
11100 _ACEOF
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
11114 else
11115 cat >conftest.$ac_ext <<_ACEOF
11116 /* confdefs.h. */
11117 _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. */
11130 #ifdef __STDC__
11131 # include <limits.h>
11132 #else
11133 # include <assert.h>
11134 #endif
11136 #undef $ac_func
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. */
11141 #ifdef __cplusplus
11142 extern "C"
11143 #endif
11144 char $ac_func ();
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
11149 choke me
11150 #endif
11153 main ()
11155 return $ac_func ();
11157 return 0;
11159 _ACEOF
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;;
11165 esac
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
11169 ac_status=$?
11170 grep -v '^ *+' conftest.er1 >conftest.err
11171 rm -f conftest.er1
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
11180 }; then
11181 eval "$as_ac_var=yes"
11182 else
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
11202 _ACEOF
11205 done
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
11211 else
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
11216 /* confdefs.h. */
11217 _ACEOF
11218 cat confdefs.h >>conftest.$ac_ext
11219 cat >>conftest.$ac_ext <<_ACEOF
11220 /* end confdefs.h. */
11221 $ac_includes_default
11223 main ()
11226 char buf[100];
11227 char x = *strerror_r (0, buf, sizeof buf);
11228 char *p = strerror_r (0, buf, sizeof buf);
11229 return !p || x;
11232 return 0;
11234 _ACEOF
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;;
11240 esac
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
11244 ac_status=$?
11245 grep -v '^ *+' conftest.er1 >conftest.err
11246 rm -f conftest.er1
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
11254 else
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
11262 else
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
11271 else
11272 cat >conftest.$ac_ext <<_ACEOF
11273 /* confdefs.h. */
11274 _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 ();
11281 main ()
11283 char buf[100];
11284 char x = *strerror_r (0, buf, sizeof buf);
11285 return ! isalpha (x);
11287 return 0;
11289 _ACEOF
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;;
11295 esac
11296 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11297 $as_echo "$ac_try_echo") >&5
11298 (eval "$ac_link") 2>&5
11299 ac_status=$?
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;;
11305 esac
11306 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11307 $as_echo "$ac_try_echo") >&5
11308 (eval "$ac_try") 2>&5
11309 ac_status=$?
11310 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11311 (exit $ac_status); }; }; then
11312 ac_cv_func_strerror_r_char_p=yes
11313 else
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
11333 _ACEOF
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
11347 else
11348 cat >conftest.$ac_ext <<_ACEOF
11349 /* confdefs.h. */
11350 _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>
11357 main ()
11359 mbstate_t x; return sizeof x;
11361 return 0;
11363 _ACEOF
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;;
11369 esac
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
11373 ac_status=$?
11374 grep -v '^ *+' conftest.er1 >conftest.err
11375 rm -f conftest.er1
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
11383 else
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
11398 _ACEOF
11400 else
11402 cat >>confdefs.h <<\_ACEOF
11403 #define mbstate_t int
11404 _ACEOF
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
11421 else
11422 if test "$cross_compiling" = yes; then
11423 gl_cv_func_getcwd_null=no
11424 else
11425 cat >conftest.$ac_ext <<_ACEOF
11426 /* confdefs.h. */
11427 _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>
11435 # endif
11436 # ifndef getcwd
11437 char *getcwd ();
11438 # endif
11440 main ()
11442 if (chdir ("/") != 0)
11443 exit (1);
11444 else
11446 char *f = getcwd (NULL, 0);
11447 exit (! (f && f[0] == '/' && !f[1]));
11450 _ACEOF
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;;
11456 esac
11457 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11458 $as_echo "$ac_try_echo") >&5
11459 (eval "$ac_link") 2>&5
11460 ac_status=$?
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;;
11466 esac
11467 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11468 $as_echo "$ac_try_echo") >&5
11469 (eval "$ac_try") 2>&5
11470 ac_status=$?
11471 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11472 (exit $ac_status); }; }; then
11473 gl_cv_func_getcwd_null=yes
11474 else
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
11496 else
11497 cat >conftest.$ac_ext <<_ACEOF
11498 /* confdefs.h. */
11499 _ACEOF
11500 cat confdefs.h >>conftest.$ac_ext
11501 cat >>conftest.$ac_ext <<_ACEOF
11502 /* end confdefs.h. */
11503 $ac_includes_default
11505 main ()
11507 #ifndef getcwd
11508 (void) getcwd;
11509 #endif
11512 return 0;
11514 _ACEOF
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;;
11520 esac
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
11524 ac_status=$?
11525 grep -v '^ *+' conftest.er1 >conftest.err
11526 rm -f conftest.er1
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
11534 else
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
11549 _ACEOF
11552 else
11553 cat >>confdefs.h <<_ACEOF
11554 #define HAVE_DECL_GETCWD 0
11555 _ACEOF
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
11566 else
11567 cat >conftest.$ac_ext <<_ACEOF
11568 /* confdefs.h. */
11569 _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
11586 # include <ndir.h>
11587 # endif /* HAVE_NDIR_H */
11588 #endif /* HAVE_DIRENT_H */
11591 main ()
11593 struct dirent dp; dp.d_ino = 0;
11595 return 0;
11597 _ACEOF
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;;
11603 esac
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
11607 ac_status=$?
11608 grep -v '^ *+' conftest.er1 >conftest.err
11609 rm -f conftest.er1
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
11618 }; then
11619 jm_cv_struct_dirent_d_ino=yes
11620 else
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
11639 _ACEOF
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
11648 else
11649 cat >conftest.$ac_ext <<_ACEOF
11650 /* confdefs.h. */
11651 _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>
11657 #include <time.h>
11660 main ()
11662 if ((struct tm *) 0)
11663 return 0;
11665 return 0;
11667 _ACEOF
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;;
11673 esac
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
11677 ac_status=$?
11678 grep -v '^ *+' conftest.er1 >conftest.err
11679 rm -f conftest.er1
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
11687 else
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
11702 _ACEOF
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
11739 else
11740 cat >conftest.$ac_ext <<_ACEOF
11741 /* confdefs.h. */
11742 _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>
11749 # include <time.h>
11750 # else
11751 # if HAVE_SYS_TIME_H
11752 # include <sys/time.h>
11753 # else
11754 # include <time.h>
11755 # endif
11756 # endif
11759 main ()
11761 static struct timespec x; x.tv_sec = x.tv_nsec;
11763 return 0;
11765 _ACEOF
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;;
11771 esac
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
11775 ac_status=$?
11776 grep -v '^ *+' conftest.er1 >conftest.err
11777 rm -f conftest.er1
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
11785 else
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
11802 _ACEOF
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
11813 else
11814 cat >conftest.$ac_ext <<_ACEOF
11815 /* confdefs.h. */
11816 _ACEOF
11817 cat confdefs.h >>conftest.$ac_ext
11818 cat >>conftest.$ac_ext <<_ACEOF
11819 /* end confdefs.h. */
11820 #include <time.h>
11823 main ()
11825 #ifndef nanosleep
11826 (void) nanosleep;
11827 #endif
11830 return 0;
11832 _ACEOF
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;;
11838 esac
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
11842 ac_status=$?
11843 grep -v '^ *+' conftest.er1 >conftest.err
11844 rm -f conftest.er1
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
11852 else
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
11867 _ACEOF
11870 else
11871 cat >>confdefs.h <<_ACEOF
11872 #define HAVE_DECL_NANOSLEEP 0
11873 _ACEOF
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
11896 else
11897 cat >conftest.$ac_ext <<_ACEOF
11898 /* confdefs.h. */
11899 _ACEOF
11900 cat confdefs.h >>conftest.$ac_ext
11901 cat >>conftest.$ac_ext <<_ACEOF
11902 /* end confdefs.h. */
11903 #include <sys/types.h>
11904 #include <time.h>
11907 main ()
11909 struct tm tm;
11910 int *p = &tm.tm_sec;
11911 return !p;
11913 return 0;
11915 _ACEOF
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;;
11921 esac
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
11925 ac_status=$?
11926 grep -v '^ *+' conftest.er1 >conftest.err
11927 rm -f conftest.er1
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
11935 else
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
11950 _ACEOF
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
11969 else
11970 ac_func_search_save_LIBS=$LIBS
11971 cat >conftest.$ac_ext <<_ACEOF
11972 /* confdefs.h. */
11973 _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. */
11981 #ifdef __cplusplus
11982 extern "C"
11983 #endif
11984 char clock_gettime ();
11986 main ()
11988 return clock_gettime ();
11990 return 0;
11992 _ACEOF
11993 for ac_lib in '' rt posix4; do
11994 if test -z "$ac_lib"; then
11995 ac_res="none required"
11996 else
11997 ac_res=-l$ac_lib
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;;
12005 esac
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
12009 ac_status=$?
12010 grep -v '^ *+' conftest.er1 >conftest.err
12011 rm -f conftest.er1
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
12020 }; then
12021 ac_cv_search_clock_gettime=$ac_res
12022 else
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 \
12031 conftest$ac_exeext
12032 if test "${ac_cv_search_clock_gettime+set}" = set; then
12033 break
12035 done
12036 if test "${ac_cv_search_clock_gettime+set}" = set; then
12038 else
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
12063 else
12064 cat >conftest.$ac_ext <<_ACEOF
12065 /* confdefs.h. */
12066 _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. */
12079 #ifdef __STDC__
12080 # include <limits.h>
12081 #else
12082 # include <assert.h>
12083 #endif
12085 #undef $ac_func
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. */
12090 #ifdef __cplusplus
12091 extern "C"
12092 #endif
12093 char $ac_func ();
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
12098 choke me
12099 #endif
12102 main ()
12104 return $ac_func ();
12106 return 0;
12108 _ACEOF
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;;
12114 esac
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
12118 ac_status=$?
12119 grep -v '^ *+' conftest.er1 >conftest.err
12120 rm -f conftest.er1
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
12129 }; then
12130 eval "$as_ac_var=yes"
12131 else
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
12151 _ACEOF
12154 done
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
12163 else
12164 cat >conftest.$ac_ext <<_ACEOF
12165 /* confdefs.h. */
12166 _ACEOF
12167 cat confdefs.h >>conftest.$ac_ext
12168 cat >>conftest.$ac_ext <<_ACEOF
12169 /* end confdefs.h. */
12170 #include <time.h>
12173 main ()
12175 static struct tm ac_aggr;
12176 if (ac_aggr.tm_gmtoff)
12177 return 0;
12179 return 0;
12181 _ACEOF
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;;
12187 esac
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
12191 ac_status=$?
12192 grep -v '^ *+' conftest.er1 >conftest.err
12193 rm -f conftest.er1
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
12201 else
12202 $as_echo "$as_me: failed program was:" >&5
12203 sed 's/^/| /' conftest.$ac_ext >&5
12205 cat >conftest.$ac_ext <<_ACEOF
12206 /* confdefs.h. */
12207 _ACEOF
12208 cat confdefs.h >>conftest.$ac_ext
12209 cat >>conftest.$ac_ext <<_ACEOF
12210 /* end confdefs.h. */
12211 #include <time.h>
12214 main ()
12216 static struct tm ac_aggr;
12217 if (sizeof ac_aggr.tm_gmtoff)
12218 return 0;
12220 return 0;
12222 _ACEOF
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;;
12228 esac
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
12232 ac_status=$?
12233 grep -v '^ *+' conftest.er1 >conftest.err
12234 rm -f conftest.er1
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
12242 else
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
12260 _ACEOF
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
12270 else
12271 cat >conftest.$ac_ext <<_ACEOF
12272 /* confdefs.h. */
12273 _ACEOF
12274 cat confdefs.h >>conftest.$ac_ext
12275 cat >>conftest.$ac_ext <<_ACEOF
12276 /* end confdefs.h. */
12277 $ac_includes_default
12279 main ()
12281 #ifndef getdelim
12282 (void) getdelim;
12283 #endif
12286 return 0;
12288 _ACEOF
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;;
12294 esac
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
12298 ac_status=$?
12299 grep -v '^ *+' conftest.er1 >conftest.err
12300 rm -f conftest.er1
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
12308 else
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
12323 _ACEOF
12326 else
12327 cat >>confdefs.h <<_ACEOF
12328 #define HAVE_DECL_GETDELIM 0
12329 _ACEOF
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
12341 else
12342 cat >conftest.$ac_ext <<_ACEOF
12343 /* confdefs.h. */
12344 _ACEOF
12345 cat confdefs.h >>conftest.$ac_ext
12346 cat >>conftest.$ac_ext <<_ACEOF
12347 /* end confdefs.h. */
12348 $ac_includes_default
12350 main ()
12352 #ifndef getlogin
12353 (void) getlogin;
12354 #endif
12357 return 0;
12359 _ACEOF
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;;
12365 esac
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
12369 ac_status=$?
12370 grep -v '^ *+' conftest.er1 >conftest.err
12371 rm -f conftest.er1
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
12379 else
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
12394 _ACEOF
12397 else
12398 cat >>confdefs.h <<_ACEOF
12399 #define HAVE_DECL_GETLOGIN 0
12400 _ACEOF
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
12412 else
12413 cat >conftest.$ac_ext <<_ACEOF
12414 /* confdefs.h. */
12415 _ACEOF
12416 cat confdefs.h >>conftest.$ac_ext
12417 cat >>conftest.$ac_ext <<_ACEOF
12418 /* end confdefs.h. */
12419 $ac_includes_default
12421 main ()
12423 #ifndef getlogin_r
12424 (void) getlogin_r;
12425 #endif
12428 return 0;
12430 _ACEOF
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;;
12436 esac
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
12440 ac_status=$?
12441 grep -v '^ *+' conftest.er1 >conftest.err
12442 rm -f conftest.er1
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
12450 else
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
12465 _ACEOF
12468 else
12469 cat >>confdefs.h <<_ACEOF
12470 #define HAVE_DECL_GETLOGIN_R 0
12471 _ACEOF
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
12483 else
12484 cat >conftest.$ac_ext <<_ACEOF
12485 /* confdefs.h. */
12486 _ACEOF
12487 cat confdefs.h >>conftest.$ac_ext
12488 cat >>conftest.$ac_ext <<_ACEOF
12489 /* end confdefs.h. */
12490 #include <sys/types.h>
12492 main ()
12494 int x = sizeof (ssize_t *) + sizeof (ssize_t);
12496 return 0;
12498 _ACEOF
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;;
12504 esac
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
12508 ac_status=$?
12509 grep -v '^ *+' conftest.er1 >conftest.err
12510 rm -f conftest.er1
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
12517 gt_cv_ssize_t=yes
12518 else
12519 $as_echo "$as_me: failed program was:" >&5
12520 sed 's/^/| /' conftest.$ac_ext >&5
12522 gt_cv_ssize_t=no
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
12533 _ACEOF
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; }
12553 else
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
12558 /* confdefs.h. */
12559 _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>
12565 _ACEOF
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;;
12571 esac
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
12575 ac_status=$?
12576 grep -v '^ *+' conftest.er1 >conftest.err
12577 rm -f conftest.er1
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
12585 else
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
12600 /* confdefs.h. */
12601 _ACEOF
12602 cat confdefs.h >>conftest.$ac_ext
12603 cat >>conftest.$ac_ext <<_ACEOF
12604 /* end confdefs.h. */
12605 #include <$ac_header>
12606 _ACEOF
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;;
12611 esac
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
12615 ac_status=$?
12616 grep -v '^ *+' conftest.er1 >conftest.err
12617 rm -f conftest.er1
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
12623 }; then
12624 ac_header_preproc=yes
12625 else
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
12638 yes:no: )
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
12645 no: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;}
12658 ( cat <<\_ASBOX
12659 ## --------------------------------- ##
12660 ## Report this to bug-cvs@nongnu.org ##
12661 ## --------------------------------- ##
12662 _ASBOX
12663 ) | sed "s/^/$as_me: WARNING: /" >&2
12665 esac
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
12670 else
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
12684 _ACEOF
12686 else
12687 GETOPT_H=getopt.h
12690 done
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
12703 else
12704 cat >conftest.$ac_ext <<_ACEOF
12705 /* confdefs.h. */
12706 _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. */
12719 #ifdef __STDC__
12720 # include <limits.h>
12721 #else
12722 # include <assert.h>
12723 #endif
12725 #undef $ac_func
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. */
12730 #ifdef __cplusplus
12731 extern "C"
12732 #endif
12733 char $ac_func ();
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
12738 choke me
12739 #endif
12742 main ()
12744 return $ac_func ();
12746 return 0;
12748 _ACEOF
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;;
12754 esac
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
12758 ac_status=$?
12759 grep -v '^ *+' conftest.er1 >conftest.err
12760 rm -f conftest.er1
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
12769 }; then
12770 eval "$as_ac_var=yes"
12771 else
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
12791 _ACEOF
12793 else
12794 GETOPT_H=getopt.h
12796 done
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
12805 else
12806 cat >conftest.$ac_ext <<_ACEOF
12807 /* confdefs.h. */
12808 _ACEOF
12809 cat confdefs.h >>conftest.$ac_ext
12810 cat >>conftest.$ac_ext <<_ACEOF
12811 /* end confdefs.h. */
12812 #include <getopt.h>
12815 main ()
12817 #ifndef optreset
12818 (void) optreset;
12819 #endif
12822 return 0;
12824 _ACEOF
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;;
12830 esac
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
12834 ac_status=$?
12835 grep -v '^ *+' conftest.er1 >conftest.err
12836 rm -f conftest.er1
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
12844 else
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
12856 GETOPT_H=getopt.h
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
12866 else
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
12872 else
12873 cat >conftest.$ac_ext <<_ACEOF
12874 /* confdefs.h. */
12875 _ACEOF
12876 cat confdefs.h >>conftest.$ac_ext
12877 cat >>conftest.$ac_ext <<_ACEOF
12878 /* end confdefs.h. */
12879 #include <getopt.h>
12882 main ()
12884 #ifndef getopt_clip
12885 (void) getopt_clip;
12886 #endif
12889 return 0;
12891 _ACEOF
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;;
12897 esac
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
12901 ac_status=$?
12902 grep -v '^ *+' conftest.er1 >conftest.err
12903 rm -f conftest.er1
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
12911 else
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
12924 else
12925 gl_cv_func_gnu_getopt=yes
12928 else
12929 cat >conftest.$ac_ext <<_ACEOF
12930 /* confdefs.h. */
12931 _ACEOF
12932 cat confdefs.h >>conftest.$ac_ext
12933 cat >>conftest.$ac_ext <<_ACEOF
12934 /* end confdefs.h. */
12935 #include <getopt.h>
12937 main ()
12940 char *myargv[3];
12941 myargv[0] = "conftest";
12942 myargv[1] = "-+";
12943 myargv[2] = 0;
12944 return getopt (2, myargv, "+a") != '?';
12947 return 0;
12949 _ACEOF
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;;
12955 esac
12956 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12957 $as_echo "$ac_try_echo") >&5
12958 (eval "$ac_link") 2>&5
12959 ac_status=$?
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;;
12965 esac
12966 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12967 $as_echo "$ac_try_echo") >&5
12968 (eval "$ac_try") 2>&5
12969 ac_status=$?
12970 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12971 (exit $ac_status); }; }; then
12972 gl_cv_func_gnu_getopt=yes
12973 else
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
12990 GETOPT_H=getopt.h
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
13005 else
13006 cat >conftest.$ac_ext <<_ACEOF
13007 /* confdefs.h. */
13008 _ACEOF
13009 cat confdefs.h >>conftest.$ac_ext
13010 cat >>conftest.$ac_ext <<_ACEOF
13011 /* end confdefs.h. */
13012 $ac_includes_default
13014 main ()
13016 #ifndef getpass
13017 (void) getpass;
13018 #endif
13021 return 0;
13023 _ACEOF
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;;
13029 esac
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
13033 ac_status=$?
13034 grep -v '^ *+' conftest.er1 >conftest.err
13035 rm -f conftest.er1
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
13043 else
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
13058 _ACEOF
13061 else
13062 cat >>confdefs.h <<_ACEOF
13063 #define HAVE_DECL_GETPASS 0
13064 _ACEOF
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
13106 else
13107 cat >conftest.$ac_ext <<_ACEOF
13108 /* confdefs.h. */
13109 _ACEOF
13110 cat confdefs.h >>conftest.$ac_ext
13111 cat >>conftest.$ac_ext <<_ACEOF
13112 /* end confdefs.h. */
13113 $ac_includes_default
13115 main ()
13117 #ifndef fflush_unlocked
13118 (void) fflush_unlocked;
13119 #endif
13122 return 0;
13124 _ACEOF
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;;
13130 esac
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
13134 ac_status=$?
13135 grep -v '^ *+' conftest.er1 >conftest.err
13136 rm -f conftest.er1
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
13144 else
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
13159 _ACEOF
13162 else
13163 cat >>confdefs.h <<_ACEOF
13164 #define HAVE_DECL_FFLUSH_UNLOCKED 0
13165 _ACEOF
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
13177 else
13178 cat >conftest.$ac_ext <<_ACEOF
13179 /* confdefs.h. */
13180 _ACEOF
13181 cat confdefs.h >>conftest.$ac_ext
13182 cat >>conftest.$ac_ext <<_ACEOF
13183 /* end confdefs.h. */
13184 $ac_includes_default
13186 main ()
13188 #ifndef flockfile
13189 (void) flockfile;
13190 #endif
13193 return 0;
13195 _ACEOF
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;;
13201 esac
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
13205 ac_status=$?
13206 grep -v '^ *+' conftest.er1 >conftest.err
13207 rm -f conftest.er1
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
13215 else
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
13230 _ACEOF
13233 else
13234 cat >>confdefs.h <<_ACEOF
13235 #define HAVE_DECL_FLOCKFILE 0
13236 _ACEOF
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
13248 else
13249 cat >conftest.$ac_ext <<_ACEOF
13250 /* confdefs.h. */
13251 _ACEOF
13252 cat confdefs.h >>conftest.$ac_ext
13253 cat >>conftest.$ac_ext <<_ACEOF
13254 /* end confdefs.h. */
13255 $ac_includes_default
13257 main ()
13259 #ifndef fputs_unlocked
13260 (void) fputs_unlocked;
13261 #endif
13264 return 0;
13266 _ACEOF
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;;
13272 esac
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
13276 ac_status=$?
13277 grep -v '^ *+' conftest.er1 >conftest.err
13278 rm -f conftest.er1
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
13286 else
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
13301 _ACEOF
13304 else
13305 cat >>confdefs.h <<_ACEOF
13306 #define HAVE_DECL_FPUTS_UNLOCKED 0
13307 _ACEOF
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
13319 else
13320 cat >conftest.$ac_ext <<_ACEOF
13321 /* confdefs.h. */
13322 _ACEOF
13323 cat confdefs.h >>conftest.$ac_ext
13324 cat >>conftest.$ac_ext <<_ACEOF
13325 /* end confdefs.h. */
13326 $ac_includes_default
13328 main ()
13330 #ifndef funlockfile
13331 (void) funlockfile;
13332 #endif
13335 return 0;
13337 _ACEOF
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;;
13343 esac
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
13347 ac_status=$?
13348 grep -v '^ *+' conftest.er1 >conftest.err
13349 rm -f conftest.er1
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
13357 else
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
13372 _ACEOF
13375 else
13376 cat >>confdefs.h <<_ACEOF
13377 #define HAVE_DECL_FUNLOCKFILE 0
13378 _ACEOF
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
13390 else
13391 cat >conftest.$ac_ext <<_ACEOF
13392 /* confdefs.h. */
13393 _ACEOF
13394 cat confdefs.h >>conftest.$ac_ext
13395 cat >>conftest.$ac_ext <<_ACEOF
13396 /* end confdefs.h. */
13397 $ac_includes_default
13399 main ()
13401 #ifndef putc_unlocked
13402 (void) putc_unlocked;
13403 #endif
13406 return 0;
13408 _ACEOF
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;;
13414 esac
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
13418 ac_status=$?
13419 grep -v '^ *+' conftest.er1 >conftest.err
13420 rm -f conftest.er1
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
13428 else
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
13443 _ACEOF
13446 else
13447 cat >>confdefs.h <<_ACEOF
13448 #define HAVE_DECL_PUTC_UNLOCKED 0
13449 _ACEOF
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
13472 else
13473 cat >conftest.$ac_ext <<_ACEOF
13474 /* confdefs.h. */
13475 _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
13492 # include <ndir.h>
13493 # endif /* HAVE_NDIR_H */
13494 #endif /* HAVE_DIRENT_H */
13497 main ()
13499 struct dirent dp; dp.d_type = 0;
13501 return 0;
13503 _ACEOF
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;;
13509 esac
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
13513 ac_status=$?
13514 grep -v '^ *+' conftest.er1 >conftest.err
13515 rm -f conftest.er1
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
13524 }; then
13525 jm_cv_struct_dirent_d_type=yes
13526 else
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
13545 _ACEOF
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
13572 else
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
13578 else
13579 cat >conftest.$ac_ext <<_ACEOF
13580 /* confdefs.h. */
13581 _ACEOF
13582 cat confdefs.h >>conftest.$ac_ext
13583 cat >>conftest.$ac_ext <<_ACEOF
13584 /* end confdefs.h. */
13585 $ac_includes_default
13587 main ()
13589 struct stat sbuf;
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;
13595 return 0;
13597 _ACEOF
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;;
13603 esac
13604 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13605 $as_echo "$ac_try_echo") >&5
13606 (eval "$ac_link") 2>&5
13607 ac_status=$?
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;;
13613 esac
13614 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13615 $as_echo "$ac_try_echo") >&5
13616 (eval "$ac_try") 2>&5
13617 ac_status=$?
13618 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13619 (exit $ac_status); }; }; then
13620 ac_cv_func_lstat_dereferences_slashed_symlink=yes
13621 else
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
13634 else
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
13649 _ACEOF
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"
13657 esac
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
13678 else
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
13683 /* confdefs.h. */
13684 _ACEOF
13685 cat confdefs.h >>conftest.$ac_ext
13686 cat >>conftest.$ac_ext <<_ACEOF
13687 /* end confdefs.h. */
13688 $ac_includes_default
13690 main ()
13692 static int test_array [1 - 2 * !(($ac_type) -1 == 4294967295U)];
13693 test_array [0] = 0
13696 return 0;
13698 _ACEOF
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;;
13704 esac
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
13708 ac_status=$?
13709 grep -v '^ *+' conftest.er1 >conftest.err
13710 rm -f conftest.er1
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
13718 else
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
13727 done
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
13732 no|uint32_t) ;;
13735 cat >>confdefs.h <<\_ACEOF
13736 #define _UINT32_T 1
13737 _ACEOF
13740 cat >>confdefs.h <<_ACEOF
13741 #define uint32_t $gl_cv_c_uint32_t
13742 _ACEOF
13745 esac
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
13751 else
13752 cat >conftest.$ac_ext <<_ACEOF
13753 /* confdefs.h. */
13754 _ACEOF
13755 cat confdefs.h >>conftest.$ac_ext
13756 cat >>conftest.$ac_ext <<_ACEOF
13757 /* end confdefs.h. */
13758 $ac_includes_default
13760 main ()
13762 static int test_array [1 - 2 * !(UINT32_MAX == 4294967295U)];
13763 test_array [0] = 0
13766 return 0;
13768 _ACEOF
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;;
13774 esac
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
13778 ac_status=$?
13779 grep -v '^ *+' conftest.er1 >conftest.err
13780 rm -f conftest.er1
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
13788 else
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
13800 yes,*) ;;
13801 *,no) ;;
13804 cat >>confdefs.h <<\_ACEOF
13805 #define UINT32_MAX 4294967295U
13806 _ACEOF
13809 esac
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
13816 else
13817 ac_cv_c_bigendian=unknown
13818 # See if we're dealing with a universal compiler.
13819 cat >conftest.$ac_ext <<_ACEOF
13820 /* confdefs.h. */
13821 _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
13827 #endif
13828 typedef int dummy;
13830 _ACEOF
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;;
13836 esac
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
13840 ac_status=$?
13841 grep -v '^ *+' conftest.er1 >conftest.err
13842 rm -f conftest.er1
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;;
13855 esac
13856 else
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
13867 /* confdefs.h. */
13868 _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>
13876 main ()
13878 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
13879 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
13880 && LITTLE_ENDIAN)
13881 bogus endian macros
13882 #endif
13885 return 0;
13887 _ACEOF
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;;
13893 esac
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
13897 ac_status=$?
13898 grep -v '^ *+' conftest.er1 >conftest.err
13899 rm -f conftest.er1
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
13908 /* confdefs.h. */
13909 _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>
13917 main ()
13919 #if BYTE_ORDER != BIG_ENDIAN
13920 not big endian
13921 #endif
13924 return 0;
13926 _ACEOF
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;;
13932 esac
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
13936 ac_status=$?
13937 grep -v '^ *+' conftest.er1 >conftest.err
13938 rm -f conftest.er1
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
13946 else
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
13954 else
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
13966 /* confdefs.h. */
13967 _ACEOF
13968 cat confdefs.h >>conftest.$ac_ext
13969 cat >>conftest.$ac_ext <<_ACEOF
13970 /* end confdefs.h. */
13971 #include <limits.h>
13974 main ()
13976 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
13977 bogus endian macros
13978 #endif
13981 return 0;
13983 _ACEOF
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;;
13989 esac
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
13993 ac_status=$?
13994 grep -v '^ *+' conftest.er1 >conftest.err
13995 rm -f conftest.er1
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
14004 /* confdefs.h. */
14005 _ACEOF
14006 cat confdefs.h >>conftest.$ac_ext
14007 cat >>conftest.$ac_ext <<_ACEOF
14008 /* end confdefs.h. */
14009 #include <limits.h>
14012 main ()
14014 #ifndef _BIG_ENDIAN
14015 not big endian
14016 #endif
14019 return 0;
14021 _ACEOF
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;;
14027 esac
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
14031 ac_status=$?
14032 grep -v '^ *+' conftest.er1 >conftest.err
14033 rm -f conftest.er1
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
14041 else
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
14049 else
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
14063 /* confdefs.h. */
14064 _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];
14082 extern int foo;
14085 main ()
14087 return use_ascii (foo) == use_ebcdic (foo);
14089 return 0;
14091 _ACEOF
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;;
14097 esac
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
14101 ac_status=$?
14102 grep -v '^ *+' conftest.er1 >conftest.err
14103 rm -f conftest.er1
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
14116 else
14117 # finding both strings is unlikely to happen, but who knows?
14118 ac_cv_c_bigendian=unknown
14121 else
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
14129 else
14130 cat >conftest.$ac_ext <<_ACEOF
14131 /* confdefs.h. */
14132 _ACEOF
14133 cat confdefs.h >>conftest.$ac_ext
14134 cat >>conftest.$ac_ext <<_ACEOF
14135 /* end confdefs.h. */
14136 $ac_includes_default
14138 main ()
14141 /* Are we little or big endian? From Harbison&Steele. */
14142 union
14144 long int l;
14145 char c[sizeof (long int)];
14146 } u;
14147 u.l = 1;
14148 return u.c[sizeof (long int) - 1] == 1;
14151 return 0;
14153 _ACEOF
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;;
14159 esac
14160 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14161 $as_echo "$ac_try_echo") >&5
14162 (eval "$ac_link") 2>&5
14163 ac_status=$?
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;;
14169 esac
14170 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14171 $as_echo "$ac_try_echo") >&5
14172 (eval "$ac_try") 2>&5
14173 ac_status=$?
14174 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14175 (exit $ac_status); }; }; then
14176 ac_cv_c_bigendian=no
14177 else
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 #(
14195 yes)
14196 cat >>confdefs.h <<\_ACEOF
14197 #define WORDS_BIGENDIAN 1
14198 _ACEOF
14199 ;; #(
14201 ;; #(
14202 universal)
14204 cat >>confdefs.h <<\_ACEOF
14205 #define AC_APPLE_UNIVERSAL_BUILD 1
14206 _ACEOF
14208 ;; #(
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; }; } ;;
14215 esac
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
14225 else
14226 cat >conftest.$ac_ext <<_ACEOF
14227 /* confdefs.h. */
14228 _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);
14235 main ()
14239 return 0;
14241 _ACEOF
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;;
14247 esac
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
14251 ac_status=$?
14252 grep -v '^ *+' conftest.er1 >conftest.err
14253 rm -f conftest.er1
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
14261 else
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
14276 _ACEOF
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
14289 else
14290 cat >conftest.$ac_ext <<_ACEOF
14291 /* confdefs.h. */
14292 _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);
14299 main ()
14303 return 0;
14305 _ACEOF
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;;
14311 esac
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
14315 ac_status=$?
14316 grep -v '^ *+' conftest.er1 >conftest.err
14317 rm -f conftest.er1
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
14325 else
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
14340 _ACEOF
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
14358 else
14359 cat >conftest.$ac_ext <<_ACEOF
14360 /* confdefs.h. */
14361 _ACEOF
14362 cat confdefs.h >>conftest.$ac_ext
14363 cat >>conftest.$ac_ext <<_ACEOF
14364 /* end confdefs.h. */
14365 $ac_includes_default
14367 main ()
14369 #ifndef getenv
14370 (void) getenv;
14371 #endif
14374 return 0;
14376 _ACEOF
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;;
14382 esac
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
14386 ac_status=$?
14387 grep -v '^ *+' conftest.er1 >conftest.err
14388 rm -f conftest.er1
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
14396 else
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
14411 _ACEOF
14414 else
14415 cat >>confdefs.h <<_ACEOF
14416 #define HAVE_DECL_GETENV 0
14417 _ACEOF
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
14429 else
14430 cat >conftest.$ac_ext <<_ACEOF
14431 /* confdefs.h. */
14432 _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>
14439 main ()
14441 uintmax_t i = (uintmax_t) -1;
14443 return 0;
14445 _ACEOF
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;;
14451 esac
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
14455 ac_status=$?
14456 grep -v '^ *+' conftest.er1 >conftest.err
14457 rm -f conftest.er1
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
14465 else
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
14480 _ACEOF
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
14489 else
14490 cat >conftest.$ac_ext <<_ACEOF
14491 /* confdefs.h. */
14492 _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>
14499 main ()
14501 uintmax_t i = (uintmax_t) -1;
14503 return 0;
14505 _ACEOF
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;;
14511 esac
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
14515 ac_status=$?
14516 grep -v '^ *+' conftest.er1 >conftest.err
14517 rm -f conftest.er1
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
14525 else
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
14540 _ACEOF
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
14549 else
14550 cat >conftest.$ac_ext <<_ACEOF
14551 /* confdefs.h. */
14552 _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;
14558 main ()
14560 unsigned long long ullmax = (unsigned long long) -1;
14561 return ull << i | ull >> i | ullmax / ull | ullmax % ull;
14563 return 0;
14565 _ACEOF
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;;
14571 esac
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
14575 ac_status=$?
14576 grep -v '^ *+' conftest.er1 >conftest.err
14577 rm -f conftest.er1
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
14586 }; then
14587 ac_cv_type_unsigned_long_long=yes
14588 else
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
14605 _ACEOF
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
14620 _ACEOF
14622 else
14624 cat >>confdefs.h <<\_ACEOF
14625 #define HAVE_UINTMAX_T 1
14626 _ACEOF
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; }
14646 else
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
14651 /* confdefs.h. */
14652 _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>
14658 _ACEOF
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;;
14664 esac
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
14668 ac_status=$?
14669 grep -v '^ *+' conftest.er1 >conftest.err
14670 rm -f conftest.er1
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
14678 else
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
14693 /* confdefs.h. */
14694 _ACEOF
14695 cat confdefs.h >>conftest.$ac_ext
14696 cat >>conftest.$ac_ext <<_ACEOF
14697 /* end confdefs.h. */
14698 #include <$ac_header>
14699 _ACEOF
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;;
14704 esac
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
14708 ac_status=$?
14709 grep -v '^ *+' conftest.er1 >conftest.err
14710 rm -f conftest.er1
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
14716 }; then
14717 ac_header_preproc=yes
14718 else
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
14731 yes:no: )
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
14738 no: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;}
14751 ( cat <<\_ASBOX
14752 ## --------------------------------- ##
14753 ## Report this to bug-cvs@nongnu.org ##
14754 ## --------------------------------- ##
14755 _ASBOX
14756 ) | sed "s/^/$as_me: WARNING: /" >&2
14758 esac
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
14763 else
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
14777 _ACEOF
14781 done
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
14791 else
14792 cat >conftest.$ac_ext <<_ACEOF
14793 /* confdefs.h. */
14794 _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. */
14807 #ifdef __STDC__
14808 # include <limits.h>
14809 #else
14810 # include <assert.h>
14811 #endif
14813 #undef $ac_func
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. */
14818 #ifdef __cplusplus
14819 extern "C"
14820 #endif
14821 char $ac_func ();
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
14826 choke me
14827 #endif
14830 main ()
14832 return $ac_func ();
14834 return 0;
14836 _ACEOF
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;;
14842 esac
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
14846 ac_status=$?
14847 grep -v '^ *+' conftest.er1 >conftest.err
14848 rm -f conftest.er1
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
14857 }; then
14858 eval "$as_ac_var=yes"
14859 else
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
14879 _ACEOF
14882 done
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
14888 else
14889 if test "$cross_compiling" = yes; then
14890 ac_cv_func_working_mktime=no
14891 else
14892 cat >conftest.$ac_ext <<_ACEOF
14893 /* confdefs.h. */
14894 _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>
14901 # include <time.h>
14902 #else
14903 # if HAVE_SYS_TIME_H
14904 # include <sys/time.h>
14905 # else
14906 # include <time.h>
14907 # endif
14908 #endif
14910 #if HAVE_STDLIB_H
14911 # include <stdlib.h>
14912 #endif
14914 #if HAVE_UNISTD_H
14915 # include <unistd.h>
14916 #endif
14918 #if !HAVE_ALARM
14919 # define alarm(X) /* empty */
14920 #endif
14922 /* Work around redefinition to rpl_putenv by other config tests. */
14923 #undef putenv
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. */
14937 static void
14938 spring_forward_gap ()
14940 /* glibc (up to about 1998-10-07) failed this test. */
14941 struct tm tm;
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");
14949 tm.tm_year = 98;
14950 tm.tm_mon = 3;
14951 tm.tm_mday = 5;
14952 tm.tm_hour = 2;
14953 tm.tm_min = 0;
14954 tm.tm_sec = 0;
14955 tm.tm_isdst = -1;
14956 if (mktime (&tm) == (time_t)-1)
14957 exit (1);
14960 static void
14961 mktime_test1 (now)
14962 time_t now;
14964 struct tm *lt;
14965 if ((lt = localtime (&now)) && mktime (lt) != now)
14966 exit (1);
14969 static void
14970 mktime_test (now)
14971 time_t now;
14973 mktime_test1 (now);
14974 mktime_test1 ((time_t) (time_t_max - now));
14975 mktime_test1 ((time_t) (time_t_min + now));
14978 static void
14979 irix_6_4_bug ()
14981 /* Based on code from Ariel Faigon. */
14982 struct tm tm;
14983 tm.tm_year = 96;
14984 tm.tm_mon = 3;
14985 tm.tm_mday = 0;
14986 tm.tm_hour = 0;
14987 tm.tm_min = 0;
14988 tm.tm_sec = 0;
14989 tm.tm_isdst = -1;
14990 mktime (&tm);
14991 if (tm.tm_mon != 2 || tm.tm_mday != 31)
14992 exit (1);
14995 static void
14996 bigtime_test (j)
14997 int j;
14999 struct tm tm;
15000 time_t now;
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);
15006 if (! (lt
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))))
15017 exit (1);
15022 main ()
15024 time_t t, delta;
15025 int i, j;
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. */
15030 alarm (60);
15032 for (time_t_max = 1; 0 < time_t_max; time_t_max *= 2)
15033 continue;
15034 time_t_max--;
15035 if ((time_t) -1 < 0)
15036 for (time_t_min = -1; (time_t) (time_t_min * 2) < 0; time_t_min *= 2)
15037 continue;
15038 delta = time_t_max / 997; /* a suitable prime number */
15039 for (i = 0; i < N_STRINGS; i++)
15041 if (tz_strings[i])
15042 putenv (tz_strings[i]);
15044 for (t = 0; t <= time_t_max - delta; t += delta)
15045 mktime_test (t);
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)
15051 bigtime_test (j);
15052 bigtime_test (j - 1);
15054 irix_6_4_bug ();
15055 spring_forward_gap ();
15056 exit (0);
15058 _ACEOF
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;;
15064 esac
15065 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15066 $as_echo "$ac_try_echo") >&5
15067 (eval "$ac_link") 2>&5
15068 ac_status=$?
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;;
15074 esac
15075 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15076 $as_echo "$ac_try_echo") >&5
15077 (eval "$ac_try") 2>&5
15078 ac_status=$?
15079 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15080 (exit $ac_status); }; }; then
15081 ac_cv_func_working_mktime=yes
15082 else
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"
15103 esac
15119 # Check for mmap()
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; }
15135 else
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
15140 /* confdefs.h. */
15141 _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>
15147 _ACEOF
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;;
15153 esac
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
15157 ac_status=$?
15158 grep -v '^ *+' conftest.er1 >conftest.err
15159 rm -f conftest.er1
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
15167 else
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
15182 /* confdefs.h. */
15183 _ACEOF
15184 cat confdefs.h >>conftest.$ac_ext
15185 cat >>conftest.$ac_ext <<_ACEOF
15186 /* end confdefs.h. */
15187 #include <$ac_header>
15188 _ACEOF
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;;
15193 esac
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
15197 ac_status=$?
15198 grep -v '^ *+' conftest.er1 >conftest.err
15199 rm -f conftest.er1
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
15205 }; then
15206 ac_header_preproc=yes
15207 else
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
15220 yes:no: )
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
15227 no: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;}
15240 ( cat <<\_ASBOX
15241 ## --------------------------------- ##
15242 ## Report this to bug-cvs@nongnu.org ##
15243 ## --------------------------------- ##
15244 _ASBOX
15245 ) | sed "s/^/$as_me: WARNING: /" >&2
15247 esac
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
15252 else
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
15266 _ACEOF
15270 done
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
15280 else
15281 cat >conftest.$ac_ext <<_ACEOF
15282 /* confdefs.h. */
15283 _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. */
15296 #ifdef __STDC__
15297 # include <limits.h>
15298 #else
15299 # include <assert.h>
15300 #endif
15302 #undef $ac_func
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. */
15307 #ifdef __cplusplus
15308 extern "C"
15309 #endif
15310 char $ac_func ();
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
15315 choke me
15316 #endif
15319 main ()
15321 return $ac_func ();
15323 return 0;
15325 _ACEOF
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;;
15331 esac
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
15335 ac_status=$?
15336 grep -v '^ *+' conftest.er1 >conftest.err
15337 rm -f conftest.er1
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
15346 }; then
15347 eval "$as_ac_var=yes"
15348 else
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
15368 _ACEOF
15371 done
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
15377 else
15378 if test "$cross_compiling" = yes; then
15379 ac_cv_func_mmap_fixed_mapped=no
15380 else
15381 cat >conftest.$ac_ext <<_ACEOF
15382 /* confdefs.h. */
15383 _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. */
15389 #undef 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) */
15413 #include <fcntl.h>
15414 #include <sys/mman.h>
15416 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
15417 char *malloc ();
15418 #endif
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
15425 # endif
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 */
15435 # ifdef NBPG
15436 # define getpagesize() NBPG * CLSIZE
15437 # ifndef CLSIZE
15438 # define CLSIZE 1
15439 # endif /* no CLSIZE */
15440 # else /* no NBPG */
15441 # ifdef NBPC
15442 # define getpagesize() NBPC
15443 # else /* no NBPC */
15444 # ifdef PAGESIZE
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 */
15458 main ()
15460 char *data, *data2, *data3;
15461 int i, pagesize;
15462 int fd;
15464 pagesize = getpagesize ();
15466 /* First, make a file with some known garbage in it. */
15467 data = (char *) malloc (pagesize);
15468 if (!data)
15469 return 1;
15470 for (i = 0; i < pagesize; ++i)
15471 *(data + i) = rand ();
15472 umask (0);
15473 fd = creat ("conftest.mmap", 0600);
15474 if (fd < 0)
15475 return 1;
15476 if (write (fd, data, pagesize) != pagesize)
15477 return 1;
15478 close (fd);
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);
15484 if (fd < 0)
15485 return 1;
15486 data2 = (char *) malloc (2 * pagesize);
15487 if (!data2)
15488 return 1;
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))
15492 return 1;
15493 for (i = 0; i < pagesize; ++i)
15494 if (*(data + i) != *(data2 + i))
15495 return 1;
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);
15503 if (!data3)
15504 return 1;
15505 if (read (fd, data3, pagesize) != pagesize)
15506 return 1;
15507 for (i = 0; i < pagesize; ++i)
15508 if (*(data + i) != *(data3 + i))
15509 return 1;
15510 close (fd);
15511 return 0;
15513 _ACEOF
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;;
15519 esac
15520 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15521 $as_echo "$ac_try_echo") >&5
15522 (eval "$ac_link") 2>&5
15523 ac_status=$?
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;;
15529 esac
15530 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15531 $as_echo "$ac_try_echo") >&5
15532 (eval "$ac_try") 2>&5
15533 ac_status=$?
15534 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15535 (exit $ac_status); }; }; then
15536 ac_cv_func_mmap_fixed_mapped=yes
15537 else
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
15557 _ACEOF
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
15569 /* confdefs.h. */
15570 _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.
15578 #endif
15580 _ACEOF
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
15585 rm -f conftest*
15587 if test $gl_have_mmap_anonymous != yes; then
15588 cat >conftest.$ac_ext <<_ACEOF
15589 /* confdefs.h. */
15590 _ACEOF
15591 cat confdefs.h >>conftest.$ac_ext
15592 cat >>conftest.$ac_ext <<_ACEOF
15593 /* end confdefs.h. */
15595 #include <sys/mman.h>
15596 #ifdef MAP_ANON
15597 I cant identify this map.
15598 #endif
15600 _ACEOF
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
15606 _ACEOF
15608 gl_have_mmap_anonymous=yes
15610 rm -f conftest*
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
15619 _ACEOF
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
15647 else
15648 cat >conftest.$ac_ext <<_ACEOF
15649 /* confdefs.h. */
15650 _ACEOF
15651 cat confdefs.h >>conftest.$ac_ext
15652 cat >>conftest.$ac_ext <<_ACEOF
15653 /* end confdefs.h. */
15654 #include <langinfo.h>
15656 main ()
15658 char* cs = nl_langinfo(CODESET);
15660 return 0;
15662 _ACEOF
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;;
15668 esac
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
15672 ac_status=$?
15673 grep -v '^ *+' conftest.er1 >conftest.err
15674 rm -f conftest.er1
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
15683 }; then
15684 am_cv_langinfo_codeset=yes
15685 else
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
15703 _ACEOF
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
15742 else
15744 cat >conftest.$ac_ext <<_ACEOF
15745 /* confdefs.h. */
15746 _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>
15753 main ()
15757 return 0;
15759 _ACEOF
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;;
15765 esac
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
15769 ac_status=$?
15770 grep -v '^ *+' conftest.er1 >conftest.err
15771 rm -f conftest.er1
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
15779 else
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
15795 _ACEOF
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
15804 else
15805 cat >conftest.$ac_ext <<_ACEOF
15806 /* confdefs.h. */
15807 _ACEOF
15808 cat confdefs.h >>conftest.$ac_ext
15809 cat >>conftest.$ac_ext <<_ACEOF
15810 /* end confdefs.h. */
15811 $ac_includes_default
15813 main ()
15815 #ifndef strdup
15816 (void) strdup;
15817 #endif
15820 return 0;
15822 _ACEOF
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;;
15828 esac
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
15832 ac_status=$?
15833 grep -v '^ *+' conftest.er1 >conftest.err
15834 rm -f conftest.er1
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
15842 else
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
15857 _ACEOF
15860 else
15861 cat >>confdefs.h <<_ACEOF
15862 #define HAVE_DECL_STRDUP 0
15863 _ACEOF
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
15878 else
15879 cat >conftest.$ac_ext <<_ACEOF
15880 /* confdefs.h. */
15881 _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. */
15894 #ifdef __STDC__
15895 # include <limits.h>
15896 #else
15897 # include <assert.h>
15898 #endif
15900 #undef $ac_func
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. */
15905 #ifdef __cplusplus
15906 extern "C"
15907 #endif
15908 char $ac_func ();
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
15913 choke me
15914 #endif
15917 main ()
15919 return $ac_func ();
15921 return 0;
15923 _ACEOF
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;;
15929 esac
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
15933 ac_status=$?
15934 grep -v '^ *+' conftest.er1 >conftest.err
15935 rm -f conftest.er1
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
15944 }; then
15945 eval "$as_ac_var=yes"
15946 else
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
15966 _ACEOF
15968 else
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
15974 else
15975 ac_check_lib_save_LIBS=$LIBS
15976 LIBS="-lintl $LIBS"
15977 cat >conftest.$ac_ext <<_ACEOF
15978 /* confdefs.h. */
15979 _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. */
15987 #ifdef __cplusplus
15988 extern "C"
15989 #endif
15990 char strftime ();
15992 main ()
15994 return strftime ();
15996 return 0;
15998 _ACEOF
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;;
16004 esac
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
16008 ac_status=$?
16009 grep -v '^ *+' conftest.er1 >conftest.err
16010 rm -f conftest.er1
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
16019 }; then
16020 ac_cv_lib_intl_strftime=yes
16021 else
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
16038 _ACEOF
16040 LIBS="-lintl $LIBS"
16044 done
16066 case " $LIBOBJS " in
16067 *" strftime.$ac_objext "* ) ;;
16068 *) LIBOBJS="$LIBOBJS strftime.$ac_objext"
16070 esac
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
16113 _ACEOF
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
16121 else
16122 cat >conftest.$ac_ext <<_ACEOF
16123 /* confdefs.h. */
16124 _ACEOF
16125 cat confdefs.h >>conftest.$ac_ext
16126 cat >>conftest.$ac_ext <<_ACEOF
16127 /* end confdefs.h. */
16128 $ac_includes_default
16130 main ()
16132 #ifndef clearerr_unlocked
16133 (void) clearerr_unlocked;
16134 #endif
16137 return 0;
16139 _ACEOF
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;;
16145 esac
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
16149 ac_status=$?
16150 grep -v '^ *+' conftest.er1 >conftest.err
16151 rm -f conftest.er1
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
16159 else
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
16174 _ACEOF
16177 else
16178 cat >>confdefs.h <<_ACEOF
16179 #define HAVE_DECL_CLEARERR_UNLOCKED 0
16180 _ACEOF
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
16192 else
16193 cat >conftest.$ac_ext <<_ACEOF
16194 /* confdefs.h. */
16195 _ACEOF
16196 cat confdefs.h >>conftest.$ac_ext
16197 cat >>conftest.$ac_ext <<_ACEOF
16198 /* end confdefs.h. */
16199 $ac_includes_default
16201 main ()
16203 #ifndef feof_unlocked
16204 (void) feof_unlocked;
16205 #endif
16208 return 0;
16210 _ACEOF
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;;
16216 esac
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
16220 ac_status=$?
16221 grep -v '^ *+' conftest.er1 >conftest.err
16222 rm -f conftest.er1
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
16230 else
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
16245 _ACEOF
16248 else
16249 cat >>confdefs.h <<_ACEOF
16250 #define HAVE_DECL_FEOF_UNLOCKED 0
16251 _ACEOF
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
16263 else
16264 cat >conftest.$ac_ext <<_ACEOF
16265 /* confdefs.h. */
16266 _ACEOF
16267 cat confdefs.h >>conftest.$ac_ext
16268 cat >>conftest.$ac_ext <<_ACEOF
16269 /* end confdefs.h. */
16270 $ac_includes_default
16272 main ()
16274 #ifndef ferror_unlocked
16275 (void) ferror_unlocked;
16276 #endif
16279 return 0;
16281 _ACEOF
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;;
16287 esac
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
16291 ac_status=$?
16292 grep -v '^ *+' conftest.er1 >conftest.err
16293 rm -f conftest.er1
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
16301 else
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
16316 _ACEOF
16319 else
16320 cat >>confdefs.h <<_ACEOF
16321 #define HAVE_DECL_FERROR_UNLOCKED 0
16322 _ACEOF
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
16334 else
16335 cat >conftest.$ac_ext <<_ACEOF
16336 /* confdefs.h. */
16337 _ACEOF
16338 cat confdefs.h >>conftest.$ac_ext
16339 cat >>conftest.$ac_ext <<_ACEOF
16340 /* end confdefs.h. */
16341 $ac_includes_default
16343 main ()
16345 #ifndef fgets_unlocked
16346 (void) fgets_unlocked;
16347 #endif
16350 return 0;
16352 _ACEOF
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;;
16358 esac
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
16362 ac_status=$?
16363 grep -v '^ *+' conftest.er1 >conftest.err
16364 rm -f conftest.er1
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
16372 else
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
16387 _ACEOF
16390 else
16391 cat >>confdefs.h <<_ACEOF
16392 #define HAVE_DECL_FGETS_UNLOCKED 0
16393 _ACEOF
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
16405 else
16406 cat >conftest.$ac_ext <<_ACEOF
16407 /* confdefs.h. */
16408 _ACEOF
16409 cat confdefs.h >>conftest.$ac_ext
16410 cat >>conftest.$ac_ext <<_ACEOF
16411 /* end confdefs.h. */
16412 $ac_includes_default
16414 main ()
16416 #ifndef fputc_unlocked
16417 (void) fputc_unlocked;
16418 #endif
16421 return 0;
16423 _ACEOF
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;;
16429 esac
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
16433 ac_status=$?
16434 grep -v '^ *+' conftest.er1 >conftest.err
16435 rm -f conftest.er1
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
16443 else
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
16458 _ACEOF
16461 else
16462 cat >>confdefs.h <<_ACEOF
16463 #define HAVE_DECL_FPUTC_UNLOCKED 0
16464 _ACEOF
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
16476 else
16477 cat >conftest.$ac_ext <<_ACEOF
16478 /* confdefs.h. */
16479 _ACEOF
16480 cat confdefs.h >>conftest.$ac_ext
16481 cat >>conftest.$ac_ext <<_ACEOF
16482 /* end confdefs.h. */
16483 $ac_includes_default
16485 main ()
16487 #ifndef fread_unlocked
16488 (void) fread_unlocked;
16489 #endif
16492 return 0;
16494 _ACEOF
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;;
16500 esac
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
16504 ac_status=$?
16505 grep -v '^ *+' conftest.er1 >conftest.err
16506 rm -f conftest.er1
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
16514 else
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
16529 _ACEOF
16532 else
16533 cat >>confdefs.h <<_ACEOF
16534 #define HAVE_DECL_FREAD_UNLOCKED 0
16535 _ACEOF
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
16547 else
16548 cat >conftest.$ac_ext <<_ACEOF
16549 /* confdefs.h. */
16550 _ACEOF
16551 cat confdefs.h >>conftest.$ac_ext
16552 cat >>conftest.$ac_ext <<_ACEOF
16553 /* end confdefs.h. */
16554 $ac_includes_default
16556 main ()
16558 #ifndef fwrite_unlocked
16559 (void) fwrite_unlocked;
16560 #endif
16563 return 0;
16565 _ACEOF
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;;
16571 esac
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
16575 ac_status=$?
16576 grep -v '^ *+' conftest.er1 >conftest.err
16577 rm -f conftest.er1
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
16585 else
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
16600 _ACEOF
16603 else
16604 cat >>confdefs.h <<_ACEOF
16605 #define HAVE_DECL_FWRITE_UNLOCKED 0
16606 _ACEOF
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
16618 else
16619 cat >conftest.$ac_ext <<_ACEOF
16620 /* confdefs.h. */
16621 _ACEOF
16622 cat confdefs.h >>conftest.$ac_ext
16623 cat >>conftest.$ac_ext <<_ACEOF
16624 /* end confdefs.h. */
16625 $ac_includes_default
16627 main ()
16629 #ifndef getc_unlocked
16630 (void) getc_unlocked;
16631 #endif
16634 return 0;
16636 _ACEOF
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;;
16642 esac
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
16646 ac_status=$?
16647 grep -v '^ *+' conftest.er1 >conftest.err
16648 rm -f conftest.er1
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
16656 else
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
16671 _ACEOF
16674 else
16675 cat >>confdefs.h <<_ACEOF
16676 #define HAVE_DECL_GETC_UNLOCKED 0
16677 _ACEOF
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
16689 else
16690 cat >conftest.$ac_ext <<_ACEOF
16691 /* confdefs.h. */
16692 _ACEOF
16693 cat confdefs.h >>conftest.$ac_ext
16694 cat >>conftest.$ac_ext <<_ACEOF
16695 /* end confdefs.h. */
16696 $ac_includes_default
16698 main ()
16700 #ifndef getchar_unlocked
16701 (void) getchar_unlocked;
16702 #endif
16705 return 0;
16707 _ACEOF
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;;
16713 esac
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
16717 ac_status=$?
16718 grep -v '^ *+' conftest.er1 >conftest.err
16719 rm -f conftest.er1
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
16727 else
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
16742 _ACEOF
16745 else
16746 cat >>confdefs.h <<_ACEOF
16747 #define HAVE_DECL_GETCHAR_UNLOCKED 0
16748 _ACEOF
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
16760 else
16761 cat >conftest.$ac_ext <<_ACEOF
16762 /* confdefs.h. */
16763 _ACEOF
16764 cat confdefs.h >>conftest.$ac_ext
16765 cat >>conftest.$ac_ext <<_ACEOF
16766 /* end confdefs.h. */
16767 $ac_includes_default
16769 main ()
16771 #ifndef putchar_unlocked
16772 (void) putchar_unlocked;
16773 #endif
16776 return 0;
16778 _ACEOF
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;;
16784 esac
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
16788 ac_status=$?
16789 grep -v '^ *+' conftest.er1 >conftest.err
16790 rm -f conftest.er1
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
16798 else
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
16813 _ACEOF
16816 else
16817 cat >>confdefs.h <<_ACEOF
16818 #define HAVE_DECL_PUTCHAR_UNLOCKED 0
16819 _ACEOF
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
16832 else
16834 cat >conftest.$ac_ext <<_ACEOF
16835 /* confdefs.h. */
16836 _ACEOF
16837 cat confdefs.h >>conftest.$ac_ext
16838 cat >>conftest.$ac_ext <<_ACEOF
16839 /* end confdefs.h. */
16841 #include <errno.h>
16842 #ifdef EOVERFLOW
16844 #endif
16846 _ACEOF
16847 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16848 $EGREP "yes" >/dev/null 2>&1; then
16849 have_eoverflow=1
16851 rm -f conftest*
16853 if test -n "$have_eoverflow"; then
16854 ac_cv_decl_EOVERFLOW=yes
16855 else
16856 cat >conftest.$ac_ext <<_ACEOF
16857 /* confdefs.h. */
16858 _ACEOF
16859 cat confdefs.h >>conftest.$ac_ext
16860 cat >>conftest.$ac_ext <<_ACEOF
16861 /* end confdefs.h. */
16863 #define _XOPEN_SOURCE_EXTENDED 1
16864 #include <errno.h>
16865 #ifdef EOVERFLOW
16867 #endif
16869 _ACEOF
16870 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16871 $EGREP "yes" >/dev/null 2>&1; then
16872 have_eoverflow=1
16874 rm -f conftest*
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
16880 /* confdefs.h. */
16881 _ACEOF
16882 cat confdefs.h >>conftest.$ac_ext
16883 cat >>conftest.$ac_ext <<_ACEOF
16884 /* end confdefs.h. */
16886 #define _XOPEN_SOURCE_EXTENDED 1
16887 #include <errno.h>
16888 /* The following two lines are a workaround against an autoconf-2.52 bug. */
16889 #include <stdio.h>
16890 #include <stdlib.h>
16893 main ()
16895 static int test_array [1 - 2 * !((EOVERFLOW) >= 0)];
16896 test_array [0] = 0
16899 return 0;
16901 _ACEOF
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;;
16907 esac
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
16911 ac_status=$?
16912 grep -v '^ *+' conftest.er1 >conftest.err
16913 rm -f conftest.er1
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
16920 ac_lo=0 ac_mid=0
16921 while :; do
16922 cat >conftest.$ac_ext <<_ACEOF
16923 /* confdefs.h. */
16924 _ACEOF
16925 cat confdefs.h >>conftest.$ac_ext
16926 cat >>conftest.$ac_ext <<_ACEOF
16927 /* end confdefs.h. */
16929 #define _XOPEN_SOURCE_EXTENDED 1
16930 #include <errno.h>
16931 /* The following two lines are a workaround against an autoconf-2.52 bug. */
16932 #include <stdio.h>
16933 #include <stdlib.h>
16936 main ()
16938 static int test_array [1 - 2 * !((EOVERFLOW) <= $ac_mid)];
16939 test_array [0] = 0
16942 return 0;
16944 _ACEOF
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;;
16950 esac
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
16954 ac_status=$?
16955 grep -v '^ *+' conftest.er1 >conftest.err
16956 rm -f conftest.er1
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
16964 else
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
16970 ac_lo= ac_hi=
16971 break
16973 ac_mid=`expr 2 '*' $ac_mid + 1`
16976 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16977 done
16978 else
16979 $as_echo "$as_me: failed program was:" >&5
16980 sed 's/^/| /' conftest.$ac_ext >&5
16982 cat >conftest.$ac_ext <<_ACEOF
16983 /* confdefs.h. */
16984 _ACEOF
16985 cat confdefs.h >>conftest.$ac_ext
16986 cat >>conftest.$ac_ext <<_ACEOF
16987 /* end confdefs.h. */
16989 #define _XOPEN_SOURCE_EXTENDED 1
16990 #include <errno.h>
16991 /* The following two lines are a workaround against an autoconf-2.52 bug. */
16992 #include <stdio.h>
16993 #include <stdlib.h>
16996 main ()
16998 static int test_array [1 - 2 * !((EOVERFLOW) < 0)];
16999 test_array [0] = 0
17002 return 0;
17004 _ACEOF
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;;
17010 esac
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
17014 ac_status=$?
17015 grep -v '^ *+' conftest.er1 >conftest.err
17016 rm -f conftest.er1
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
17023 ac_hi=-1 ac_mid=-1
17024 while :; do
17025 cat >conftest.$ac_ext <<_ACEOF
17026 /* confdefs.h. */
17027 _ACEOF
17028 cat confdefs.h >>conftest.$ac_ext
17029 cat >>conftest.$ac_ext <<_ACEOF
17030 /* end confdefs.h. */
17032 #define _XOPEN_SOURCE_EXTENDED 1
17033 #include <errno.h>
17034 /* The following two lines are a workaround against an autoconf-2.52 bug. */
17035 #include <stdio.h>
17036 #include <stdlib.h>
17039 main ()
17041 static int test_array [1 - 2 * !((EOVERFLOW) >= $ac_mid)];
17042 test_array [0] = 0
17045 return 0;
17047 _ACEOF
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;;
17053 esac
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
17057 ac_status=$?
17058 grep -v '^ *+' conftest.er1 >conftest.err
17059 rm -f conftest.er1
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
17067 else
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
17073 ac_lo= ac_hi=
17074 break
17076 ac_mid=`expr 2 '*' $ac_mid`
17079 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17080 done
17081 else
17082 $as_echo "$as_me: failed program was:" >&5
17083 sed 's/^/| /' conftest.$ac_ext >&5
17085 ac_lo= ac_hi=
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
17096 /* confdefs.h. */
17097 _ACEOF
17098 cat confdefs.h >>conftest.$ac_ext
17099 cat >>conftest.$ac_ext <<_ACEOF
17100 /* end confdefs.h. */
17102 #define _XOPEN_SOURCE_EXTENDED 1
17103 #include <errno.h>
17104 /* The following two lines are a workaround against an autoconf-2.52 bug. */
17105 #include <stdio.h>
17106 #include <stdlib.h>
17109 main ()
17111 static int test_array [1 - 2 * !((EOVERFLOW) <= $ac_mid)];
17112 test_array [0] = 0
17115 return 0;
17117 _ACEOF
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;;
17123 esac
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
17127 ac_status=$?
17128 grep -v '^ *+' conftest.er1 >conftest.err
17129 rm -f conftest.er1
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
17136 ac_hi=$ac_mid
17137 else
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
17145 done
17146 case $ac_lo in
17147 ?*) ac_cv_decl_EOVERFLOW=$ac_lo;;
17148 '') ;;
17149 esac
17150 else
17151 cat >conftest.$ac_ext <<_ACEOF
17152 /* confdefs.h. */
17153 _ACEOF
17154 cat confdefs.h >>conftest.$ac_ext
17155 cat >>conftest.$ac_ext <<_ACEOF
17156 /* end confdefs.h. */
17158 #define _XOPEN_SOURCE_EXTENDED 1
17159 #include <errno.h>
17160 /* The following two lines are a workaround against an autoconf-2.52 bug. */
17161 #include <stdio.h>
17162 #include <stdlib.h>
17164 static long int longval () { return EOVERFLOW; }
17165 static unsigned long int ulongval () { return EOVERFLOW; }
17166 #include <stdio.h>
17167 #include <stdlib.h>
17169 main ()
17172 FILE *f = fopen ("conftest.val", "w");
17173 if (! f)
17174 return 1;
17175 if ((EOVERFLOW) < 0)
17177 long int i = longval ();
17178 if (i != (EOVERFLOW))
17179 return 1;
17180 fprintf (f, "%ld", i);
17182 else
17184 unsigned long int i = ulongval ();
17185 if (i != (EOVERFLOW))
17186 return 1;
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;
17194 return 0;
17196 _ACEOF
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;;
17202 esac
17203 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17204 $as_echo "$ac_try_echo") >&5
17205 (eval "$ac_link") 2>&5
17206 ac_status=$?
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;;
17212 esac
17213 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17214 $as_echo "$ac_try_echo") >&5
17215 (eval "$ac_try") 2>&5
17216 ac_status=$?
17217 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17218 (exit $ac_status); }; }; then
17219 ac_cv_decl_EOVERFLOW=`cat conftest.val`
17220 else
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
17229 rm -f conftest.val
17231 else
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
17243 _ACEOF
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
17254 else
17255 cat >conftest.$ac_ext <<_ACEOF
17256 /* confdefs.h. */
17257 _ACEOF
17258 cat confdefs.h >>conftest.$ac_ext
17259 cat >>conftest.$ac_ext <<_ACEOF
17260 /* end confdefs.h. */
17263 main ()
17265 signed char x;
17267 return 0;
17269 _ACEOF
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;;
17275 esac
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
17279 ac_status=$?
17280 grep -v '^ *+' conftest.er1 >conftest.err
17281 rm -f conftest.er1
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
17288 bh_cv_c_signed=yes
17289 else
17290 $as_echo "$as_me: failed program was:" >&5
17291 sed 's/^/| /' conftest.$ac_ext >&5
17293 bh_cv_c_signed=no
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 /**/
17304 _ACEOF
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
17313 else
17314 cat >conftest.$ac_ext <<_ACEOF
17315 /* confdefs.h. */
17316 _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';
17323 main ()
17327 return 0;
17329 _ACEOF
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;;
17335 esac
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
17339 ac_status=$?
17340 grep -v '^ *+' conftest.er1 >conftest.err
17341 rm -f conftest.er1
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
17349 else
17350 $as_echo "$as_me: failed program was:" >&5
17351 sed 's/^/| /' conftest.$ac_ext >&5
17353 gt_cv_c_wchar_t=no
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
17364 _ACEOF
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
17373 else
17374 cat >conftest.$ac_ext <<_ACEOF
17375 /* confdefs.h. */
17376 _ACEOF
17377 cat confdefs.h >>conftest.$ac_ext
17378 cat >>conftest.$ac_ext <<_ACEOF
17379 /* end confdefs.h. */
17380 #include <wchar.h>
17381 wint_t foo = (wchar_t)'\0';
17383 main ()
17387 return 0;
17389 _ACEOF
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;;
17395 esac
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
17399 ac_status=$?
17400 grep -v '^ *+' conftest.er1 >conftest.err
17401 rm -f conftest.er1
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
17408 gt_cv_c_wint_t=yes
17409 else
17410 $as_echo "$as_me: failed program was:" >&5
17411 sed 's/^/| /' conftest.$ac_ext >&5
17413 gt_cv_c_wint_t=no
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
17424 _ACEOF
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
17432 else
17433 ac_cv_type_size_t=no
17434 cat >conftest.$ac_ext <<_ACEOF
17435 /* confdefs.h. */
17436 _ACEOF
17437 cat confdefs.h >>conftest.$ac_ext
17438 cat >>conftest.$ac_ext <<_ACEOF
17439 /* end confdefs.h. */
17440 $ac_includes_default
17442 main ()
17444 if (sizeof (size_t))
17445 return 0;
17447 return 0;
17449 _ACEOF
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;;
17455 esac
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
17459 ac_status=$?
17460 grep -v '^ *+' conftest.er1 >conftest.err
17461 rm -f conftest.er1
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
17469 /* confdefs.h. */
17470 _ACEOF
17471 cat confdefs.h >>conftest.$ac_ext
17472 cat >>conftest.$ac_ext <<_ACEOF
17473 /* end confdefs.h. */
17474 $ac_includes_default
17476 main ()
17478 if (sizeof ((size_t)))
17479 return 0;
17481 return 0;
17483 _ACEOF
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;;
17489 esac
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
17493 ac_status=$?
17494 grep -v '^ *+' conftest.er1 >conftest.err
17495 rm -f conftest.er1
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
17503 else
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
17511 else
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
17524 else
17526 cat >>confdefs.h <<_ACEOF
17527 #define size_t unsigned int
17528 _ACEOF
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
17539 else
17540 cat >conftest.$ac_ext <<_ACEOF
17541 /* confdefs.h. */
17542 _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>
17551 #endif
17552 #if HAVE_INTTYPES_H_WITH_UINTMAX
17553 #include <inttypes.h>
17554 #endif
17557 main ()
17559 intmax_t x = -1;
17561 return 0;
17563 _ACEOF
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;;
17569 esac
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
17573 ac_status=$?
17574 grep -v '^ *+' conftest.er1 >conftest.err
17575 rm -f conftest.er1
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
17583 else
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
17598 _ACEOF
17600 else
17602 test $ac_cv_type_long_long = yes \
17603 && ac_type='long long' \
17604 || ac_type='long'
17606 cat >>confdefs.h <<_ACEOF
17607 #define intmax_t $ac_type
17608 _ACEOF
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
17625 /* confdefs.h. */
17626 _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
17632 Need own alloca
17633 #endif
17635 _ACEOF
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
17641 _ACEOF
17643 ALLOCA_H=alloca.h
17644 else
17645 ALLOCA_H=
17647 rm -f conftest*
17649 else
17650 ALLOCA_H=alloca.h
17655 cat >>confdefs.h <<\_ACEOF
17656 #define HAVE_ALLOCA_H 1
17657 _ACEOF
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
17675 else
17676 cat >conftest.$ac_ext <<_ACEOF
17677 /* confdefs.h. */
17678 _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. */
17691 #ifdef __STDC__
17692 # include <limits.h>
17693 #else
17694 # include <assert.h>
17695 #endif
17697 #undef $ac_func
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. */
17702 #ifdef __cplusplus
17703 extern "C"
17704 #endif
17705 char $ac_func ();
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
17710 choke me
17711 #endif
17714 main ()
17716 return $ac_func ();
17718 return 0;
17720 _ACEOF
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;;
17726 esac
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
17730 ac_status=$?
17731 grep -v '^ *+' conftest.er1 >conftest.err
17732 rm -f conftest.er1
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
17741 }; then
17742 eval "$as_ac_var=yes"
17743 else
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
17763 _ACEOF
17765 else
17766 case " $LIBOBJS " in
17767 *" $ac_func.$ac_objext "* ) ;;
17768 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
17770 esac
17773 done
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"
17788 esac
17796 case " $LIBOBJS " in
17797 *" canonicalize.$ac_objext "* ) ;;
17798 *) LIBOBJS="$LIBOBJS canonicalize.$ac_objext"
17800 esac
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; }
17819 else
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
17824 /* confdefs.h. */
17825 _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>
17831 _ACEOF
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;;
17837 esac
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
17841 ac_status=$?
17842 grep -v '^ *+' conftest.er1 >conftest.err
17843 rm -f conftest.er1
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
17851 else
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
17866 /* confdefs.h. */
17867 _ACEOF
17868 cat confdefs.h >>conftest.$ac_ext
17869 cat >>conftest.$ac_ext <<_ACEOF
17870 /* end confdefs.h. */
17871 #include <$ac_header>
17872 _ACEOF
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;;
17877 esac
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
17881 ac_status=$?
17882 grep -v '^ *+' conftest.er1 >conftest.err
17883 rm -f conftest.er1
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
17889 }; then
17890 ac_header_preproc=yes
17891 else
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
17904 yes:no: )
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
17911 no: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;}
17924 ( cat <<\_ASBOX
17925 ## --------------------------------- ##
17926 ## Report this to bug-cvs@nongnu.org ##
17927 ## --------------------------------- ##
17928 _ASBOX
17929 ) | sed "s/^/$as_me: WARNING: /" >&2
17931 esac
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
17936 else
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
17950 _ACEOF
17954 done
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
17965 else
17966 cat >conftest.$ac_ext <<_ACEOF
17967 /* confdefs.h. */
17968 _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. */
17981 #ifdef __STDC__
17982 # include <limits.h>
17983 #else
17984 # include <assert.h>
17985 #endif
17987 #undef $ac_func
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. */
17992 #ifdef __cplusplus
17993 extern "C"
17994 #endif
17995 char $ac_func ();
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
18000 choke me
18001 #endif
18004 main ()
18006 return $ac_func ();
18008 return 0;
18010 _ACEOF
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;;
18016 esac
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
18020 ac_status=$?
18021 grep -v '^ *+' conftest.er1 >conftest.err
18022 rm -f conftest.er1
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
18031 }; then
18032 eval "$as_ac_var=yes"
18033 else
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
18053 _ACEOF
18056 done
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
18065 else
18066 cat >conftest.$ac_ext <<_ACEOF
18067 /* confdefs.h. */
18068 _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>
18074 #ifdef PATH_MAX
18075 have_path_max_definition
18076 #endif
18077 _ACEOF
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
18081 else
18082 gl_have_path_max_definition=no
18084 rm -f conftest*
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"
18095 esac
18101 # Define two additional variables used in the Makefile substitution.
18103 if test "$ac_cv_header_stdbool_h" = yes; then
18104 STDBOOL_H=''
18105 else
18106 STDBOOL_H='stdbool.h'
18110 if test "$ac_cv_type__Bool" = yes; then
18111 HAVE__BOOL=1
18112 else
18113 HAVE__BOOL=0
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
18130 else
18131 cat >conftest.$ac_ext <<_ACEOF
18132 /* confdefs.h. */
18133 _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. */
18146 #ifdef __STDC__
18147 # include <limits.h>
18148 #else
18149 # include <assert.h>
18150 #endif
18152 #undef $ac_func
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. */
18157 #ifdef __cplusplus
18158 extern "C"
18159 #endif
18160 char $ac_func ();
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
18165 choke me
18166 #endif
18169 main ()
18171 return $ac_func ();
18173 return 0;
18175 _ACEOF
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;;
18181 esac
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
18185 ac_status=$?
18186 grep -v '^ *+' conftest.er1 >conftest.err
18187 rm -f conftest.er1
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
18196 }; then
18197 eval "$as_ac_var=yes"
18198 else
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
18218 _ACEOF
18220 else
18221 case " $LIBOBJS " in
18222 *" $ac_func.$ac_objext "* ) ;;
18223 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
18225 esac
18228 done
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
18248 else
18249 cat >conftest.$ac_ext <<_ACEOF
18250 /* confdefs.h. */
18251 _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. */
18264 #ifdef __STDC__
18265 # include <limits.h>
18266 #else
18267 # include <assert.h>
18268 #endif
18270 #undef $ac_func
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. */
18275 #ifdef __cplusplus
18276 extern "C"
18277 #endif
18278 char $ac_func ();
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
18283 choke me
18284 #endif
18287 main ()
18289 return $ac_func ();
18291 return 0;
18293 _ACEOF
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;;
18299 esac
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
18303 ac_status=$?
18304 grep -v '^ *+' conftest.er1 >conftest.err
18305 rm -f conftest.er1
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
18314 }; then
18315 eval "$as_ac_var=yes"
18316 else
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
18336 _ACEOF
18338 else
18339 case " $LIBOBJS " in
18340 *" $ac_func.$ac_objext "* ) ;;
18341 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
18343 esac
18346 done
18349 case $ac_cv_func_openat in
18350 yes) ;;
18353 cat >>confdefs.h <<\_ACEOF
18354 #define __OPENAT_PREFIX rpl_
18355 _ACEOF
18360 esac
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
18383 else
18384 cat >conftest.$ac_ext <<_ACEOF
18385 /* confdefs.h. */
18386 _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. */
18399 #ifdef __STDC__
18400 # include <limits.h>
18401 #else
18402 # include <assert.h>
18403 #endif
18405 #undef $ac_func
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. */
18410 #ifdef __cplusplus
18411 extern "C"
18412 #endif
18413 char $ac_func ();
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
18418 choke me
18419 #endif
18422 main ()
18424 return $ac_func ();
18426 return 0;
18428 _ACEOF
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;;
18434 esac
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
18438 ac_status=$?
18439 grep -v '^ *+' conftest.er1 >conftest.err
18440 rm -f conftest.er1
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
18449 }; then
18450 eval "$as_ac_var=yes"
18451 else
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
18471 _ACEOF
18473 else
18474 case " $LIBOBJS " in
18475 *" $ac_func.$ac_objext "* ) ;;
18476 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
18478 esac
18481 done
18484 if test $ac_cv_func_memrchr = no; then
18493 case " $LIBOBJS " in
18494 *" closeout.$ac_objext "* ) ;;
18495 *) LIBOBJS="$LIBOBJS closeout.$ac_objext"
18497 esac
18504 case " $LIBOBJS " in
18505 *" dirname.$ac_objext "* ) ;;
18506 *) LIBOBJS="$LIBOBJS dirname.$ac_objext"
18508 esac
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
18523 else
18524 cat >conftest.$ac_ext <<_ACEOF
18525 /* confdefs.h. */
18526 _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. */
18539 #ifdef __STDC__
18540 # include <limits.h>
18541 #else
18542 # include <assert.h>
18543 #endif
18545 #undef $ac_func
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. */
18550 #ifdef __cplusplus
18551 extern "C"
18552 #endif
18553 char $ac_func ();
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
18558 choke me
18559 #endif
18562 main ()
18564 return $ac_func ();
18566 return 0;
18568 _ACEOF
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;;
18574 esac
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
18578 ac_status=$?
18579 grep -v '^ *+' conftest.er1 >conftest.err
18580 rm -f conftest.er1
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
18589 }; then
18590 eval "$as_ac_var=yes"
18591 else
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
18611 _ACEOF
18613 else
18614 case " $LIBOBJS " in
18615 *" $ac_func.$ac_objext "* ) ;;
18616 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
18618 esac
18621 done
18624 if test $ac_cv_func_dup2 = no; then
18644 case " $LIBOBJS " in
18645 *" exitfail.$ac_objext "* ) ;;
18646 *) LIBOBJS="$LIBOBJS exitfail.$ac_objext"
18648 esac
18655 case " $LIBOBJS " in
18656 *" filenamecat.$ac_objext "* ) ;;
18657 *) LIBOBJS="$LIBOBJS filenamecat.$ac_objext"
18659 esac
18670 # No macro. You should also use one of fnmatch-posix or fnmatch-gnu.
18672 FNMATCH_H=
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
18677 else
18678 if test "$cross_compiling" = yes; then
18679 ac_cv_func_fnmatch_posix=cross
18680 else
18681 cat >conftest.$ac_ext <<_ACEOF
18682 /* confdefs.h. */
18683 _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)
18694 main ()
18696 exit
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)
18703 && 1));
18705 return 0;
18707 _ACEOF
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;;
18713 esac
18714 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18715 $as_echo "$ac_try_echo") >&5
18716 (eval "$ac_link") 2>&5
18717 ac_status=$?
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;;
18723 esac
18724 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18725 $as_echo "$ac_try_echo") >&5
18726 (eval "$ac_try") 2>&5
18727 ac_status=$?
18728 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18729 (exit $ac_status); }; }; then
18730 ac_cv_func_fnmatch_posix=yes
18731 else
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
18749 else
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
18754 else
18755 cat >conftest.$ac_ext <<_ACEOF
18756 /* confdefs.h. */
18757 _ACEOF
18758 cat confdefs.h >>conftest.$ac_ext
18759 cat >>conftest.$ac_ext <<_ACEOF
18760 /* end confdefs.h. */
18761 $ac_includes_default
18763 main ()
18765 #ifndef getenv
18766 (void) getenv;
18767 #endif
18770 return 0;
18772 _ACEOF
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;;
18778 esac
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
18782 ac_status=$?
18783 grep -v '^ *+' conftest.er1 >conftest.err
18784 rm -f conftest.er1
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
18792 else
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
18807 _ACEOF
18810 else
18811 cat >>confdefs.h <<_ACEOF
18812 #define HAVE_DECL_GETENV 0
18813 _ACEOF
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
18832 else
18833 cat >conftest.$ac_ext <<_ACEOF
18834 /* confdefs.h. */
18835 _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. */
18848 #ifdef __STDC__
18849 # include <limits.h>
18850 #else
18851 # include <assert.h>
18852 #endif
18854 #undef $ac_func
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. */
18859 #ifdef __cplusplus
18860 extern "C"
18861 #endif
18862 char $ac_func ();
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
18867 choke me
18868 #endif
18871 main ()
18873 return $ac_func ();
18875 return 0;
18877 _ACEOF
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;;
18883 esac
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
18887 ac_status=$?
18888 grep -v '^ *+' conftest.er1 >conftest.err
18889 rm -f conftest.er1
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
18898 }; then
18899 eval "$as_ac_var=yes"
18900 else
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
18920 _ACEOF
18923 done
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; }
18940 else
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
18945 /* confdefs.h. */
18946 _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>
18952 _ACEOF
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;;
18958 esac
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
18962 ac_status=$?
18963 grep -v '^ *+' conftest.er1 >conftest.err
18964 rm -f conftest.er1
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
18972 else
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
18987 /* confdefs.h. */
18988 _ACEOF
18989 cat confdefs.h >>conftest.$ac_ext
18990 cat >>conftest.$ac_ext <<_ACEOF
18991 /* end confdefs.h. */
18992 #include <$ac_header>
18993 _ACEOF
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;;
18998 esac
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
19002 ac_status=$?
19003 grep -v '^ *+' conftest.er1 >conftest.err
19004 rm -f conftest.er1
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
19010 }; then
19011 ac_header_preproc=yes
19012 else
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
19025 yes:no: )
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
19032 no: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;}
19045 ( cat <<\_ASBOX
19046 ## --------------------------------- ##
19047 ## Report this to bug-cvs@nongnu.org ##
19048 ## --------------------------------- ##
19049 _ASBOX
19050 ) | sed "s/^/$as_me: WARNING: /" >&2
19052 esac
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
19057 else
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
19071 _ACEOF
19075 done
19077 case " $LIBOBJS " in
19078 *" fnmatch.$ac_objext "* ) ;;
19079 *) LIBOBJS="$LIBOBJS fnmatch.$ac_objext"
19081 esac
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
19092 _ACEOF
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; }
19114 else
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
19119 /* confdefs.h. */
19120 _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>
19126 _ACEOF
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;;
19132 esac
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
19136 ac_status=$?
19137 grep -v '^ *+' conftest.er1 >conftest.err
19138 rm -f conftest.er1
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
19146 else
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
19161 /* confdefs.h. */
19162 _ACEOF
19163 cat confdefs.h >>conftest.$ac_ext
19164 cat >>conftest.$ac_ext <<_ACEOF
19165 /* end confdefs.h. */
19166 #include <$ac_header>
19167 _ACEOF
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;;
19172 esac
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
19176 ac_status=$?
19177 grep -v '^ *+' conftest.er1 >conftest.err
19178 rm -f conftest.er1
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
19184 }; then
19185 ac_header_preproc=yes
19186 else
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
19199 yes:no: )
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
19206 no: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;}
19219 ( cat <<\_ASBOX
19220 ## --------------------------------- ##
19221 ## Report this to bug-cvs@nongnu.org ##
19222 ## --------------------------------- ##
19223 _ASBOX
19224 ) | sed "s/^/$as_me: WARNING: /" >&2
19226 esac
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
19231 else
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
19245 _ACEOF
19249 done
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
19259 else
19260 cat >conftest.$ac_ext <<_ACEOF
19261 /* confdefs.h. */
19262 _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. */
19275 #ifdef __STDC__
19276 # include <limits.h>
19277 #else
19278 # include <assert.h>
19279 #endif
19281 #undef $ac_func
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. */
19286 #ifdef __cplusplus
19287 extern "C"
19288 #endif
19289 char $ac_func ();
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
19294 choke me
19295 #endif
19298 main ()
19300 return $ac_func ();
19302 return 0;
19304 _ACEOF
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;;
19310 esac
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
19314 ac_status=$?
19315 grep -v '^ *+' conftest.er1 >conftest.err
19316 rm -f conftest.er1
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
19325 }; then
19326 eval "$as_ac_var=yes"
19327 else
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
19347 _ACEOF
19349 else
19350 case " $LIBOBJS " in
19351 *" $ac_func.$ac_objext "* ) ;;
19352 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
19354 esac
19357 done
19360 fp_headers='
19361 # if HAVE_STDIO_EXT_H
19362 # include <stdio_ext.h>
19363 # endif
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
19369 else
19370 cat >conftest.$ac_ext <<_ACEOF
19371 /* confdefs.h. */
19372 _ACEOF
19373 cat confdefs.h >>conftest.$ac_ext
19374 cat >>conftest.$ac_ext <<_ACEOF
19375 /* end confdefs.h. */
19376 $fp_headers
19379 main ()
19381 #ifndef __fpending
19382 (void) __fpending;
19383 #endif
19386 return 0;
19388 _ACEOF
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;;
19394 esac
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
19398 ac_status=$?
19399 grep -v '^ *+' conftest.er1 >conftest.err
19400 rm -f conftest.er1
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
19408 else
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
19423 _ACEOF
19426 else
19427 cat >>confdefs.h <<_ACEOF
19428 #define HAVE_DECL___FPENDING 0
19429 _ACEOF
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
19440 else
19442 for ac_expr in \
19444 '# glibc2' \
19445 'fp->_IO_write_ptr - fp->_IO_write_base' \
19447 '# traditional Unix' \
19448 'fp->_ptr - fp->_base' \
19450 '# BSD' \
19451 'fp->_p - fp->_bf._base' \
19453 '# SCO, Unixware' \
19454 'fp->__ptr - fp->__base' \
19456 '# old glibc?' \
19457 'fp->__bufp - fp->__buffer' \
19459 '# old glibc iostream?' \
19460 'fp->_pptr - fp->_pbase' \
19462 '# VMS' \
19463 '(*fp)->_ptr - (*fp)->_base' \
19465 '# e.g., DGUX R4.11; the info is not available' \
19467 ; do
19469 # Skip each embedded comment.
19470 case "$ac_expr" in '#'*) continue;; esac
19472 cat >conftest.$ac_ext <<_ACEOF
19473 /* confdefs.h. */
19474 _ACEOF
19475 cat confdefs.h >>conftest.$ac_ext
19476 cat >>conftest.$ac_ext <<_ACEOF
19477 /* end confdefs.h. */
19478 #include <stdio.h>
19481 main ()
19483 FILE *fp = stdin; (void) ($ac_expr);
19485 return 0;
19487 _ACEOF
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;;
19493 esac
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
19497 ac_status=$?
19498 grep -v '^ *+' conftest.er1 >conftest.err
19499 rm -f conftest.er1
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
19506 fp_done=yes
19508 else
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
19517 done
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
19528 _ACEOF
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
19541 else
19542 cat >conftest.$ac_ext <<_ACEOF
19543 /* confdefs.h. */
19544 _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. */
19557 #ifdef __STDC__
19558 # include <limits.h>
19559 #else
19560 # include <assert.h>
19561 #endif
19563 #undef $ac_func
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. */
19568 #ifdef __cplusplus
19569 extern "C"
19570 #endif
19571 char $ac_func ();
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
19576 choke me
19577 #endif
19580 main ()
19582 return $ac_func ();
19584 return 0;
19586 _ACEOF
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;;
19592 esac
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
19596 ac_status=$?
19597 grep -v '^ *+' conftest.er1 >conftest.err
19598 rm -f conftest.er1
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
19607 }; then
19608 eval "$as_ac_var=yes"
19609 else
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
19629 _ACEOF
19631 else
19632 case " $LIBOBJS " in
19633 *" $ac_func.$ac_objext "* ) ;;
19634 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
19636 esac
19639 done
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
19659 else
19660 cat >conftest.$ac_ext <<_ACEOF
19661 /* confdefs.h. */
19662 _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. */
19675 #ifdef __STDC__
19676 # include <limits.h>
19677 #else
19678 # include <assert.h>
19679 #endif
19681 #undef $ac_func
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. */
19686 #ifdef __cplusplus
19687 extern "C"
19688 #endif
19689 char $ac_func ();
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
19694 choke me
19695 #endif
19698 main ()
19700 return $ac_func ();
19702 return 0;
19704 _ACEOF
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;;
19710 esac
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
19714 ac_status=$?
19715 grep -v '^ *+' conftest.er1 >conftest.err
19716 rm -f conftest.er1
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
19725 }; then
19726 eval "$as_ac_var=yes"
19727 else
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
19747 _ACEOF
19750 done
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
19760 else
19761 ac_func_search_save_LIBS=$LIBS
19762 cat >conftest.$ac_ext <<_ACEOF
19763 /* confdefs.h. */
19764 _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. */
19772 #ifdef __cplusplus
19773 extern "C"
19774 #endif
19775 char getaddrinfo ();
19777 main ()
19779 return getaddrinfo ();
19781 return 0;
19783 _ACEOF
19784 for ac_lib in '' nsl socket; do
19785 if test -z "$ac_lib"; then
19786 ac_res="none required"
19787 else
19788 ac_res=-l$ac_lib
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;;
19796 esac
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
19800 ac_status=$?
19801 grep -v '^ *+' conftest.er1 >conftest.err
19802 rm -f conftest.er1
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
19811 }; then
19812 ac_cv_search_getaddrinfo=$ac_res
19813 else
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 \
19822 conftest$ac_exeext
19823 if test "${ac_cv_search_getaddrinfo+set}" = set; then
19824 break
19826 done
19827 if test "${ac_cv_search_getaddrinfo+set}" = set; then
19829 else
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
19852 else
19853 cat >conftest.$ac_ext <<_ACEOF
19854 /* confdefs.h. */
19855 _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. */
19868 #ifdef __STDC__
19869 # include <limits.h>
19870 #else
19871 # include <assert.h>
19872 #endif
19874 #undef $ac_func
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. */
19879 #ifdef __cplusplus
19880 extern "C"
19881 #endif
19882 char $ac_func ();
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
19887 choke me
19888 #endif
19891 main ()
19893 return $ac_func ();
19895 return 0;
19897 _ACEOF
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;;
19903 esac
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
19907 ac_status=$?
19908 grep -v '^ *+' conftest.er1 >conftest.err
19909 rm -f conftest.er1
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
19918 }; then
19919 eval "$as_ac_var=yes"
19920 else
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
19940 _ACEOF
19942 else
19943 case " $LIBOBJS " in
19944 *" $ac_func.$ac_objext "* ) ;;
19945 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
19947 esac
19950 done
19962 case $gl_cv_func_getcwd_null in
19963 yes)
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
19976 else
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
19981 else
19982 cat >conftest.$ac_ext <<_ACEOF
19983 /* confdefs.h. */
19984 _ACEOF
19985 cat confdefs.h >>conftest.$ac_ext
19986 cat >>conftest.$ac_ext <<_ACEOF
19987 /* end confdefs.h. */
19989 #include <errno.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>
19996 #include <fcntl.h>
19998 #ifndef AT_FDCWD
19999 # define AT_FDCWD 0
20000 #endif
20001 #ifdef ENAMETOOLONG
20002 # define is_ENAMETOOLONG(x) ((x) == ENAMETOOLONG)
20003 #else
20004 # define is_ENAMETOOLONG(x) 0
20005 #endif
20007 /* Don't get link errors because mkdir is redefined to rpl_mkdir. */
20008 #undef mkdir
20010 #ifndef S_IRWXU
20011 # define S_IRWXU 0700
20012 #endif
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
20026 main (void)
20028 #ifndef PATH_MAX
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. */
20033 exit (0);
20034 #elif ((INT_MAX / (DIR_NAME_SIZE / DOTDOTSLASH_LEN + 1) \
20035 - DIR_NAME_SIZE - BUF_SLOP) \
20036 <= PATH_MAX)
20037 /* FIXME: Assuming there's a system for which this is true,
20038 this should be done in a compile test. */
20039 exit (0);
20040 #else
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;
20045 size_t cwd_len;
20046 int fail = 0;
20047 size_t n_chdirs = 0;
20049 if (cwd == NULL)
20050 exit (1);
20052 cwd_len = initial_cwd_len = strlen (cwd);
20054 while (1)
20056 size_t dotdot_max = PATH_MAX * (DIR_NAME_SIZE / DOTDOTSLASH_LEN);
20057 char *c = NULL;
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)))
20068 fail = 2;
20069 break;
20072 if (PATH_MAX <= cwd_len && cwd_len < PATH_MAX + DIR_NAME_SIZE)
20074 c = getcwd (buf, PATH_MAX);
20075 if (!c && errno == ENOENT)
20077 fail = 1;
20078 break;
20080 if (c || ! (errno == ERANGE || is_ENAMETOOLONG (errno)))
20082 fail = 2;
20083 break;
20087 if (dotdot_max <= cwd_len - initial_cwd_len)
20089 if (dotdot_max + DIR_NAME_SIZE < cwd_len - initial_cwd_len)
20090 break;
20091 c = getcwd (buf, cwd_len + 1);
20092 if (!c)
20094 if (! (errno == ERANGE || errno == ENOENT
20095 || is_ENAMETOOLONG (errno)))
20097 fail = 2;
20098 break;
20100 if (AT_FDCWD || errno == ERANGE || errno == ENOENT)
20102 fail = 1;
20103 break;
20108 if (c && strlen (c) != cwd_len)
20110 fail = 2;
20111 break;
20113 ++n_chdirs;
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. */
20120 size_t i;
20122 /* Unlink first, in case the chdir failed. */
20123 unlink (DIR_NAME);
20124 for (i = 0; i <= n_chdirs; i++)
20126 if (chdir ("..") < 0)
20127 break;
20128 rmdir (DIR_NAME);
20132 exit (fail);
20133 #endif
20136 _ACEOF
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;;
20142 esac
20143 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20144 $as_echo "$ac_try_echo") >&5
20145 (eval "$ac_link") 2>&5
20146 ac_status=$?
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;;
20152 esac
20153 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20154 $as_echo "$ac_try_echo") >&5
20155 (eval "$ac_try") 2>&5
20156 ac_status=$?
20157 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20158 (exit $ac_status); }; }; then
20159 gl_cv_func_getcwd_path_max=yes
20160 else
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 )
20166 case $? in
20167 1) gl_cv_func_getcwd_path_max='no, but it is partly working';;
20168 *) gl_cv_func_getcwd_path_max=no;;
20169 esac
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
20181 no,*)
20183 cat >>confdefs.h <<\_ACEOF
20184 #define HAVE_PARTLY_WORKING_GETCWD 1
20185 _ACEOF
20187 esac
20189 esac
20191 case $gl_cv_func_getcwd_null,$gl_cv_func_getcwd_path_max in
20192 yes,yes) ;;
20194 case " $LIBOBJS " in
20195 *" getcwd.$ac_objext "* ) ;;
20196 *) LIBOBJS="$LIBOBJS getcwd.$ac_objext"
20198 esac
20201 cat >>confdefs.h <<\_ACEOF
20202 #define __GETCWD_PREFIX rpl_
20203 _ACEOF
20211 esac
20215 case " $LIBOBJS " in
20216 *" getdate.$ac_objext "* ) ;;
20217 *) LIBOBJS="$LIBOBJS getdate.$ac_objext"
20219 esac
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
20238 else
20239 cat >conftest.$ac_ext <<_ACEOF
20240 /* confdefs.h. */
20241 _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>
20250 main ()
20252 static struct tm ac_aggr;
20253 if (ac_aggr.tm_zone)
20254 return 0;
20256 return 0;
20258 _ACEOF
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;;
20264 esac
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
20268 ac_status=$?
20269 grep -v '^ *+' conftest.er1 >conftest.err
20270 rm -f conftest.er1
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
20278 else
20279 $as_echo "$as_me: failed program was:" >&5
20280 sed 's/^/| /' conftest.$ac_ext >&5
20282 cat >conftest.$ac_ext <<_ACEOF
20283 /* confdefs.h. */
20284 _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>
20293 main ()
20295 static struct tm ac_aggr;
20296 if (sizeof ac_aggr.tm_zone)
20297 return 0;
20299 return 0;
20301 _ACEOF
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;;
20307 esac
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
20311 ac_status=$?
20312 grep -v '^ *+' conftest.er1 >conftest.err
20313 rm -f conftest.er1
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
20321 else
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
20339 _ACEOF
20344 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
20346 cat >>confdefs.h <<\_ACEOF
20347 #define HAVE_TM_ZONE 1
20348 _ACEOF
20350 else
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
20355 else
20356 cat >conftest.$ac_ext <<_ACEOF
20357 /* confdefs.h. */
20358 _ACEOF
20359 cat confdefs.h >>conftest.$ac_ext
20360 cat >>conftest.$ac_ext <<_ACEOF
20361 /* end confdefs.h. */
20362 #include <time.h>
20365 main ()
20367 #ifndef tzname
20368 (void) tzname;
20369 #endif
20372 return 0;
20374 _ACEOF
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;;
20380 esac
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
20384 ac_status=$?
20385 grep -v '^ *+' conftest.er1 >conftest.err
20386 rm -f conftest.er1
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
20394 else
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
20409 _ACEOF
20412 else
20413 cat >>confdefs.h <<_ACEOF
20414 #define HAVE_DECL_TZNAME 0
20415 _ACEOF
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
20425 else
20426 cat >conftest.$ac_ext <<_ACEOF
20427 /* confdefs.h. */
20428 _ACEOF
20429 cat confdefs.h >>conftest.$ac_ext
20430 cat >>conftest.$ac_ext <<_ACEOF
20431 /* end confdefs.h. */
20432 #include <time.h>
20433 #if !HAVE_DECL_TZNAME
20434 extern char *tzname[];
20435 #endif
20438 main ()
20440 return tzname[0][0];
20442 return 0;
20444 _ACEOF
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;;
20450 esac
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
20454 ac_status=$?
20455 grep -v '^ *+' conftest.er1 >conftest.err
20456 rm -f conftest.er1
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
20465 }; then
20466 ac_cv_var_tzname=yes
20467 else
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
20484 _ACEOF
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
20505 else
20506 cat >conftest.$ac_ext <<_ACEOF
20507 /* confdefs.h. */
20508 _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. */
20521 #ifdef __STDC__
20522 # include <limits.h>
20523 #else
20524 # include <assert.h>
20525 #endif
20527 #undef $ac_func
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. */
20532 #ifdef __cplusplus
20533 extern "C"
20534 #endif
20535 char $ac_func ();
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
20540 choke me
20541 #endif
20544 main ()
20546 return $ac_func ();
20548 return 0;
20550 _ACEOF
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;;
20556 esac
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
20560 ac_status=$?
20561 grep -v '^ *+' conftest.er1 >conftest.err
20562 rm -f conftest.er1
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
20571 }; then
20572 eval "$as_ac_var=yes"
20573 else
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
20593 _ACEOF
20595 else
20596 case " $LIBOBJS " in
20597 *" $ac_func.$ac_objext "* ) ;;
20598 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
20600 esac
20603 done
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
20625 else
20626 cat >conftest.$ac_ext <<_ACEOF
20627 /* confdefs.h. */
20628 _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. */
20641 #ifdef __STDC__
20642 # include <limits.h>
20643 #else
20644 # include <assert.h>
20645 #endif
20647 #undef $ac_func
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. */
20652 #ifdef __cplusplus
20653 extern "C"
20654 #endif
20655 char $ac_func ();
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
20660 choke me
20661 #endif
20664 main ()
20666 return $ac_func ();
20668 return 0;
20670 _ACEOF
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;;
20676 esac
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
20680 ac_status=$?
20681 grep -v '^ *+' conftest.er1 >conftest.err
20682 rm -f conftest.er1
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
20691 }; then
20692 eval "$as_ac_var=yes"
20693 else
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
20713 _ACEOF
20716 done
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
20730 else
20731 cat >conftest.$ac_ext <<_ACEOF
20732 /* confdefs.h. */
20733 _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. */
20746 #ifdef __STDC__
20747 # include <limits.h>
20748 #else
20749 # include <assert.h>
20750 #endif
20752 #undef $ac_func
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. */
20757 #ifdef __cplusplus
20758 extern "C"
20759 #endif
20760 char $ac_func ();
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
20765 choke me
20766 #endif
20769 main ()
20771 return $ac_func ();
20773 return 0;
20775 _ACEOF
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;;
20781 esac
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
20785 ac_status=$?
20786 grep -v '^ *+' conftest.er1 >conftest.err
20787 rm -f conftest.er1
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
20796 }; then
20797 eval "$as_ac_var=yes"
20798 else
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
20818 _ACEOF
20820 else
20821 case " $LIBOBJS " in
20822 *" $ac_func.$ac_objext "* ) ;;
20823 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
20825 esac
20828 done
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
20841 else
20842 cat >conftest.$ac_ext <<_ACEOF
20843 /* confdefs.h. */
20844 _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. */
20857 #ifdef __STDC__
20858 # include <limits.h>
20859 #else
20860 # include <assert.h>
20861 #endif
20863 #undef $ac_func
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. */
20868 #ifdef __cplusplus
20869 extern "C"
20870 #endif
20871 char $ac_func ();
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
20876 choke me
20877 #endif
20880 main ()
20882 return $ac_func ();
20884 return 0;
20886 _ACEOF
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;;
20892 esac
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
20896 ac_status=$?
20897 grep -v '^ *+' conftest.er1 >conftest.err
20898 rm -f conftest.er1
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
20907 }; then
20908 eval "$as_ac_var=yes"
20909 else
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
20929 _ACEOF
20932 done
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
20946 else
20947 cat >conftest.$ac_ext <<_ACEOF
20948 /* confdefs.h. */
20949 _ACEOF
20950 cat confdefs.h >>conftest.$ac_ext
20951 cat >>conftest.$ac_ext <<_ACEOF
20952 /* end confdefs.h. */
20953 $ac_includes_default
20955 main ()
20957 #ifndef getline
20958 (void) getline;
20959 #endif
20962 return 0;
20964 _ACEOF
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;;
20970 esac
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
20974 ac_status=$?
20975 grep -v '^ *+' conftest.er1 >conftest.err
20976 rm -f conftest.er1
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
20984 else
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
20999 _ACEOF
21002 else
21003 cat >>confdefs.h <<_ACEOF
21004 #define HAVE_DECL_GETLINE 0
21005 _ACEOF
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
21017 else
21018 cat >conftest.$ac_ext <<_ACEOF
21019 /* confdefs.h. */
21020 _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. */
21033 #ifdef __STDC__
21034 # include <limits.h>
21035 #else
21036 # include <assert.h>
21037 #endif
21039 #undef getline
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. */
21044 #ifdef __cplusplus
21045 extern "C"
21046 #endif
21047 char getline ();
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
21052 choke me
21053 #endif
21056 main ()
21058 return getline ();
21060 return 0;
21062 _ACEOF
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;;
21068 esac
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
21072 ac_status=$?
21073 grep -v '^ *+' conftest.er1 >conftest.err
21074 rm -f conftest.er1
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
21083 }; then
21084 ac_cv_func_getline=yes
21085 else
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
21100 else
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
21109 else
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
21113 else
21114 cat >conftest.$ac_ext <<_ACEOF
21115 /* confdefs.h. */
21116 _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>
21124 int main ()
21125 { /* Based on a test program from Karl Heuer. */
21126 char *line = NULL;
21127 size_t siz = 0;
21128 int len;
21129 FILE *in = fopen ("./conftest.data", "r");
21130 if (!in)
21131 return 1;
21132 len = getline (&line, &siz, in);
21133 exit ((len == 4 && line && strcmp (line, "foo\n") == 0) ? 0 : 1);
21136 _ACEOF
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;;
21142 esac
21143 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21144 $as_echo "$ac_try_echo") >&5
21145 (eval "$ac_link") 2>&5
21146 ac_status=$?
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;;
21152 esac
21153 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21154 $as_echo "$ac_try_echo") >&5
21155 (eval "$ac_try") 2>&5
21156 ac_status=$?
21157 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21158 (exit $ac_status); }; }; then
21159 am_cv_func_working_getline=yes
21160 else
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
21182 _ACEOF
21184 case " $LIBOBJS " in
21185 *" getline.$ac_objext "* ) ;;
21186 *) LIBOBJS="$LIBOBJS getline.$ac_objext"
21188 esac
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
21205 else
21206 cat >conftest.$ac_ext <<_ACEOF
21207 /* confdefs.h. */
21208 _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. */
21221 #ifdef __STDC__
21222 # include <limits.h>
21223 #else
21224 # include <assert.h>
21225 #endif
21227 #undef $ac_func
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. */
21232 #ifdef __cplusplus
21233 extern "C"
21234 #endif
21235 char $ac_func ();
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
21240 choke me
21241 #endif
21244 main ()
21246 return $ac_func ();
21248 return 0;
21250 _ACEOF
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;;
21256 esac
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
21260 ac_status=$?
21261 grep -v '^ *+' conftest.er1 >conftest.err
21262 rm -f conftest.er1
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
21271 }; then
21272 eval "$as_ac_var=yes"
21273 else
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
21293 _ACEOF
21295 else
21296 case " $LIBOBJS " in
21297 *" $ac_func.$ac_objext "* ) ;;
21298 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
21300 esac
21303 done
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
21325 else
21326 cat >conftest.$ac_ext <<_ACEOF
21327 /* confdefs.h. */
21328 _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. */
21341 #ifdef __STDC__
21342 # include <limits.h>
21343 #else
21344 # include <assert.h>
21345 #endif
21347 #undef $ac_func
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. */
21352 #ifdef __cplusplus
21353 extern "C"
21354 #endif
21355 char $ac_func ();
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
21360 choke me
21361 #endif
21364 main ()
21366 return $ac_func ();
21368 return 0;
21370 _ACEOF
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;;
21376 esac
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
21380 ac_status=$?
21381 grep -v '^ *+' conftest.er1 >conftest.err
21382 rm -f conftest.er1
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
21391 }; then
21392 eval "$as_ac_var=yes"
21393 else
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
21413 _ACEOF
21416 done
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
21433 else
21434 cat >conftest.$ac_ext <<_ACEOF
21435 /* confdefs.h. */
21436 _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. */
21449 #ifdef __STDC__
21450 # include <limits.h>
21451 #else
21452 # include <assert.h>
21453 #endif
21455 #undef $ac_func
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. */
21460 #ifdef __cplusplus
21461 extern "C"
21462 #endif
21463 char $ac_func ();
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
21468 choke me
21469 #endif
21472 main ()
21474 return $ac_func ();
21476 return 0;
21478 _ACEOF
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;;
21484 esac
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
21488 ac_status=$?
21489 grep -v '^ *+' conftest.er1 >conftest.err
21490 rm -f conftest.er1
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
21499 }; then
21500 eval "$as_ac_var=yes"
21501 else
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
21521 _ACEOF
21523 else
21524 case " $LIBOBJS " in
21525 *" $ac_func.$ac_objext "* ) ;;
21526 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
21528 esac
21531 done
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"
21560 esac
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"
21574 esac
21576 esac
21588 if test -n "$GETOPT_H"; then
21590 case " $LIBOBJS " in
21591 *" getopt.$ac_objext "* ) ;;
21592 *) LIBOBJS="$LIBOBJS getopt.$ac_objext"
21594 esac
21596 case " $LIBOBJS " in
21597 *" getopt1.$ac_objext "* ) ;;
21598 *) LIBOBJS="$LIBOBJS getopt1.$ac_objext"
21600 esac
21603 GETOPT_H=getopt.h
21605 cat >>confdefs.h <<\_ACEOF
21606 #define __GETOPT_PREFIX rpl_
21607 _ACEOF
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; }
21643 else
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
21648 /* confdefs.h. */
21649 _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>
21655 _ACEOF
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;;
21661 esac
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
21665 ac_status=$?
21666 grep -v '^ *+' conftest.er1 >conftest.err
21667 rm -f conftest.er1
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
21675 else
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
21690 /* confdefs.h. */
21691 _ACEOF
21692 cat confdefs.h >>conftest.$ac_ext
21693 cat >>conftest.$ac_ext <<_ACEOF
21694 /* end confdefs.h. */
21695 #include <$ac_header>
21696 _ACEOF
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;;
21701 esac
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
21705 ac_status=$?
21706 grep -v '^ *+' conftest.er1 >conftest.err
21707 rm -f conftest.er1
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
21713 }; then
21714 ac_header_preproc=yes
21715 else
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
21728 yes:no: )
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
21735 no: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;}
21748 ( cat <<\_ASBOX
21749 ## --------------------------------- ##
21750 ## Report this to bug-cvs@nongnu.org ##
21751 ## --------------------------------- ##
21752 _ASBOX
21753 ) | sed "s/^/$as_me: WARNING: /" >&2
21755 esac
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
21760 else
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
21774 _ACEOF
21778 done
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
21788 else
21789 cat >conftest.$ac_ext <<_ACEOF
21790 /* confdefs.h. */
21791 _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. */
21804 #ifdef __STDC__
21805 # include <limits.h>
21806 #else
21807 # include <assert.h>
21808 #endif
21810 #undef $ac_func
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. */
21815 #ifdef __cplusplus
21816 extern "C"
21817 #endif
21818 char $ac_func ();
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
21823 choke me
21824 #endif
21827 main ()
21829 return $ac_func ();
21831 return 0;
21833 _ACEOF
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;;
21839 esac
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
21843 ac_status=$?
21844 grep -v '^ *+' conftest.er1 >conftest.err
21845 rm -f conftest.er1
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
21854 }; then
21855 eval "$as_ac_var=yes"
21856 else
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
21876 _ACEOF
21879 done
21892 case " $LIBOBJS " in
21893 *" getpass.$ac_objext "* ) ;;
21894 *) LIBOBJS="$LIBOBJS getpass.$ac_objext"
21896 esac
21943 cat >>confdefs.h <<\_ACEOF
21944 #define getpass gnu_getpass
21945 _ACEOF
21950 case " $LIBOBJS " in
21951 *" gettime.$ac_objext "* ) ;;
21952 *) LIBOBJS="$LIBOBJS gettime.$ac_objext"
21954 esac
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
21976 else
21977 if test "$cross_compiling" = yes; then
21978 jm_cv_func_gettimeofday_clobber=yes
21979 else
21980 cat >conftest.$ac_ext <<_ACEOF
21981 /* confdefs.h. */
21982 _ACEOF
21983 cat confdefs.h >>conftest.$ac_ext
21984 cat >>conftest.$ac_ext <<_ACEOF
21985 /* end confdefs.h. */
21987 #include <stdio.h>
21988 #include <string.h>
21990 #if TIME_WITH_SYS_TIME
21991 # include <sys/time.h>
21992 # include <time.h>
21993 #else
21994 # if HAVE_SYS_TIME_H
21995 # include <sys/time.h>
21996 # else
21997 # include <time.h>
21998 # endif
21999 #endif
22001 #include <stdlib.h>
22004 main ()
22006 time_t t = 0;
22007 struct tm *lt;
22008 struct tm saved_lt;
22009 struct timeval tv;
22010 lt = localtime (&t);
22011 saved_lt = *lt;
22012 gettimeofday (&tv, NULL);
22013 if (memcmp (lt, &saved_lt, sizeof (struct tm)) != 0)
22014 exit (1);
22016 exit (0);
22019 _ACEOF
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;;
22025 esac
22026 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22027 $as_echo "$ac_try_echo") >&5
22028 (eval "$ac_link") 2>&5
22029 ac_status=$?
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;;
22035 esac
22036 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22037 $as_echo "$ac_try_echo") >&5
22038 (eval "$ac_try") 2>&5
22039 ac_status=$?
22040 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22041 (exit $ac_status); }; }; then
22042 jm_cv_func_gettimeofday_clobber=no
22043 else
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"
22066 esac
22069 cat >>confdefs.h <<\_ACEOF
22070 #define gmtime rpl_gmtime
22071 _ACEOF
22074 cat >>confdefs.h <<\_ACEOF
22075 #define localtime rpl_localtime
22076 _ACEOF
22081 cat >>confdefs.h <<\_ACEOF
22082 #define gettimeofday rpl_gettimeofday
22083 _ACEOF
22090 GLOB_H=
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; }
22105 else
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
22110 /* confdefs.h. */
22111 _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>
22117 _ACEOF
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;;
22123 esac
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
22127 ac_status=$?
22128 grep -v '^ *+' conftest.er1 >conftest.err
22129 rm -f conftest.er1
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
22137 else
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
22152 /* confdefs.h. */
22153 _ACEOF
22154 cat confdefs.h >>conftest.$ac_ext
22155 cat >>conftest.$ac_ext <<_ACEOF
22156 /* end confdefs.h. */
22157 #include <$ac_header>
22158 _ACEOF
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;;
22163 esac
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
22167 ac_status=$?
22168 grep -v '^ *+' conftest.er1 >conftest.err
22169 rm -f conftest.er1
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
22175 }; then
22176 ac_header_preproc=yes
22177 else
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
22190 yes:no: )
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
22197 no: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;}
22210 ( cat <<\_ASBOX
22211 ## --------------------------------- ##
22212 ## Report this to bug-cvs@nongnu.org ##
22213 ## --------------------------------- ##
22214 _ASBOX
22215 ) | sed "s/^/$as_me: WARNING: /" >&2
22217 esac
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
22222 else
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
22236 _ACEOF
22238 else
22239 GLOB_H=glob.h
22242 done
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
22250 else
22251 cat >conftest.$ac_ext <<_ACEOF
22252 #include <gnu-versions.h>
22253 char a[_GNU_GLOB_INTERFACE_VERSION == 1 ? 1 : -1];
22254 _ACEOF
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;;
22260 esac
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
22264 ac_status=$?
22265 grep -v '^ *+' conftest.er1 >conftest.err
22266 rm -f conftest.er1
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
22274 else
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
22287 GLOB_H=glob.h
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
22296 else
22297 if ln -s conf-doesntexist conf$$-globtest 2>/dev/null; then
22298 gl_cv_glob_lists_symlinks=maybe
22299 else
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
22308 else
22309 cat >conftest.$ac_ext <<_ACEOF
22310 /* confdefs.h. */
22311 _ACEOF
22312 cat confdefs.h >>conftest.$ac_ext
22313 cat >>conftest.$ac_ext <<_ACEOF
22314 /* end confdefs.h. */
22315 #include <stddef.h>
22316 #include <glob.h>
22318 main ()
22320 glob_t found;
22321 if (glob ("conf*-globtest", 0, NULL, &found) == GLOB_NOMATCH) return 1;
22323 return 0;
22325 _ACEOF
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;;
22331 esac
22332 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22333 $as_echo "$ac_try_echo") >&5
22334 (eval "$ac_link") 2>&5
22335 ac_status=$?
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;;
22341 esac
22342 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22343 $as_echo "$ac_try_echo") >&5
22344 (eval "$ac_try") 2>&5
22345 ac_status=$?
22346 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22347 (exit $ac_status); }; }; then
22348 gl_cv_glob_lists_symlinks=yes
22349 else
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
22368 GLOB_H=glob.h
22372 rm -f conf$$-globtest
22374 if test -n "$GLOB_H"; then
22396 GLOB_H=glob.h
22398 case " $LIBOBJS " in
22399 *" glob.$ac_objext "* ) ;;
22400 *) LIBOBJS="$LIBOBJS glob.$ac_objext"
22402 esac
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; }
22428 else
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
22433 /* confdefs.h. */
22434 _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>
22440 _ACEOF
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;;
22446 esac
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
22450 ac_status=$?
22451 grep -v '^ *+' conftest.er1 >conftest.err
22452 rm -f conftest.er1
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
22460 else
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
22475 /* confdefs.h. */
22476 _ACEOF
22477 cat confdefs.h >>conftest.$ac_ext
22478 cat >>conftest.$ac_ext <<_ACEOF
22479 /* end confdefs.h. */
22480 #include <$ac_header>
22481 _ACEOF
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;;
22486 esac
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
22490 ac_status=$?
22491 grep -v '^ *+' conftest.er1 >conftest.err
22492 rm -f conftest.er1
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
22498 }; then
22499 ac_header_preproc=yes
22500 else
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
22513 yes:no: )
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
22520 no: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;}
22533 ( cat <<\_ASBOX
22534 ## --------------------------------- ##
22535 ## Report this to bug-cvs@nongnu.org ##
22536 ## --------------------------------- ##
22537 _ASBOX
22538 ) | sed "s/^/$as_me: WARNING: /" >&2
22540 esac
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
22545 else
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
22559 _ACEOF
22563 done
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
22569 else
22570 if test "$cross_compiling" = yes; then
22571 ac_cv_func_malloc_0_nonnull=no
22572 else
22573 cat >conftest.$ac_ext <<_ACEOF
22574 /* confdefs.h. */
22575 _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>
22581 #else
22582 char *malloc ();
22583 #endif
22586 main ()
22588 return ! malloc (0);
22590 return 0;
22592 _ACEOF
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;;
22598 esac
22599 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22600 $as_echo "$ac_try_echo") >&5
22601 (eval "$ac_link") 2>&5
22602 ac_status=$?
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;;
22608 esac
22609 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22610 $as_echo "$ac_try_echo") >&5
22611 (eval "$ac_try") 2>&5
22612 ac_status=$?
22613 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22614 (exit $ac_status); }; }; then
22615 ac_cv_func_malloc_0_nonnull=yes
22616 else
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
22636 _ACEOF
22638 else
22639 cat >>confdefs.h <<\_ACEOF
22640 #define HAVE_MALLOC 0
22641 _ACEOF
22643 case " $LIBOBJS " in
22644 *" malloc.$ac_objext "* ) ;;
22645 *) LIBOBJS="$LIBOBJS malloc.$ac_objext"
22647 esac
22650 cat >>confdefs.h <<\_ACEOF
22651 #define malloc rpl_malloc
22652 _ACEOF
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"
22676 esac
22689 case " $LIBOBJS " in
22690 *" md5.$ac_objext "* ) ;;
22691 *) LIBOBJS="$LIBOBJS md5.$ac_objext"
22693 esac
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
22710 else
22711 cat >conftest.$ac_ext <<_ACEOF
22712 /* confdefs.h. */
22713 _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. */
22726 #ifdef __STDC__
22727 # include <limits.h>
22728 #else
22729 # include <assert.h>
22730 #endif
22732 #undef $ac_func
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. */
22737 #ifdef __cplusplus
22738 extern "C"
22739 #endif
22740 char $ac_func ();
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
22745 choke me
22746 #endif
22749 main ()
22751 return $ac_func ();
22753 return 0;
22755 _ACEOF
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;;
22761 esac
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
22765 ac_status=$?
22766 grep -v '^ *+' conftest.er1 >conftest.err
22767 rm -f conftest.er1
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
22776 }; then
22777 eval "$as_ac_var=yes"
22778 else
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
22798 _ACEOF
22800 else
22801 case " $LIBOBJS " in
22802 *" $ac_func.$ac_objext "* ) ;;
22803 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
22805 esac
22808 done
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; }
22827 else
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
22832 /* confdefs.h. */
22833 _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>
22839 _ACEOF
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;;
22845 esac
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
22849 ac_status=$?
22850 grep -v '^ *+' conftest.er1 >conftest.err
22851 rm -f conftest.er1
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
22859 else
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
22874 /* confdefs.h. */
22875 _ACEOF
22876 cat confdefs.h >>conftest.$ac_ext
22877 cat >>conftest.$ac_ext <<_ACEOF
22878 /* end confdefs.h. */
22879 #include <$ac_header>
22880 _ACEOF
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;;
22885 esac
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
22889 ac_status=$?
22890 grep -v '^ *+' conftest.er1 >conftest.err
22891 rm -f conftest.er1
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
22897 }; then
22898 ac_header_preproc=yes
22899 else
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
22912 yes:no: )
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
22919 no: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;}
22932 ( cat <<\_ASBOX
22933 ## --------------------------------- ##
22934 ## Report this to bug-cvs@nongnu.org ##
22935 ## --------------------------------- ##
22936 _ASBOX
22937 ) | sed "s/^/$as_me: WARNING: /" >&2
22939 esac
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
22944 else
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
22958 _ACEOF
22962 done
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
22976 else
22977 cat >conftest.$ac_ext <<_ACEOF
22978 /* confdefs.h. */
22979 _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. */
22992 #ifdef __STDC__
22993 # include <limits.h>
22994 #else
22995 # include <assert.h>
22996 #endif
22998 #undef $ac_func
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. */
23003 #ifdef __cplusplus
23004 extern "C"
23005 #endif
23006 char $ac_func ();
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
23011 choke me
23012 #endif
23015 main ()
23017 return $ac_func ();
23019 return 0;
23021 _ACEOF
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;;
23027 esac
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
23031 ac_status=$?
23032 grep -v '^ *+' conftest.er1 >conftest.err
23033 rm -f conftest.er1
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
23042 }; then
23043 eval "$as_ac_var=yes"
23044 else
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
23064 _ACEOF
23066 else
23067 case " $LIBOBJS " in
23068 *" $ac_func.$ac_objext "* ) ;;
23069 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
23071 esac
23074 done
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
23096 else
23097 cat >conftest.$ac_ext <<_ACEOF
23098 /* confdefs.h. */
23099 _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. */
23112 #ifdef __STDC__
23113 # include <limits.h>
23114 #else
23115 # include <assert.h>
23116 #endif
23118 #undef $ac_func
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. */
23123 #ifdef __cplusplus
23124 extern "C"
23125 #endif
23126 char $ac_func ();
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
23131 choke me
23132 #endif
23135 main ()
23137 return $ac_func ();
23139 return 0;
23141 _ACEOF
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;;
23147 esac
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
23151 ac_status=$?
23152 grep -v '^ *+' conftest.er1 >conftest.err
23153 rm -f conftest.er1
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
23162 }; then
23163 eval "$as_ac_var=yes"
23164 else
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
23184 _ACEOF
23186 else
23187 case " $LIBOBJS " in
23188 *" $ac_func.$ac_objext "* ) ;;
23189 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
23191 esac
23194 done
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
23224 else
23225 cat >conftest.$ac_ext <<_ACEOF
23226 /* confdefs.h. */
23227 _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. */
23240 #ifdef __STDC__
23241 # include <limits.h>
23242 #else
23243 # include <assert.h>
23244 #endif
23246 #undef $ac_func
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. */
23251 #ifdef __cplusplus
23252 extern "C"
23253 #endif
23254 char $ac_func ();
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
23259 choke me
23260 #endif
23263 main ()
23265 return $ac_func ();
23267 return 0;
23269 _ACEOF
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;;
23275 esac
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
23279 ac_status=$?
23280 grep -v '^ *+' conftest.er1 >conftest.err
23281 rm -f conftest.er1
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
23290 }; then
23291 eval "$as_ac_var=yes"
23292 else
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
23312 _ACEOF
23314 else
23315 case " $LIBOBJS " in
23316 *" $ac_func.$ac_objext "* ) ;;
23317 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
23319 esac
23322 done
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
23336 else
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
23343 else
23344 cat >conftest.$ac_ext <<_ACEOF
23345 /* confdefs.h. */
23346 _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>
23354 int main ()
23356 rmdir ("confdir-slash");
23357 exit (mkdir ("confdir-slash/", 0700));
23360 _ACEOF
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;;
23366 esac
23367 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23368 $as_echo "$ac_try_echo") >&5
23369 (eval "$ac_link") 2>&5
23370 ac_status=$?
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;;
23376 esac
23377 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23378 $as_echo "$ac_try_echo") >&5
23379 (eval "$ac_try") 2>&5
23380 ac_status=$?
23381 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23382 (exit $ac_status); }; }; then
23383 gl_cv_func_mkdir_trailing_slash_bug=no
23384 else
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"
23408 esac
23411 cat >>confdefs.h <<\_ACEOF
23412 #define mkdir rpl_mkdir
23413 _ACEOF
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
23426 else
23427 cat >conftest.$ac_ext <<_ACEOF
23428 /* confdefs.h. */
23429 _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. */
23442 #ifdef __STDC__
23443 # include <limits.h>
23444 #else
23445 # include <assert.h>
23446 #endif
23448 #undef $ac_func
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. */
23453 #ifdef __cplusplus
23454 extern "C"
23455 #endif
23456 char $ac_func ();
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
23461 choke me
23462 #endif
23465 main ()
23467 return $ac_func ();
23469 return 0;
23471 _ACEOF
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;;
23477 esac
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
23481 ac_status=$?
23482 grep -v '^ *+' conftest.er1 >conftest.err
23483 rm -f conftest.er1
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
23492 }; then
23493 eval "$as_ac_var=yes"
23494 else
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
23514 _ACEOF
23516 else
23517 case " $LIBOBJS " in
23518 *" $ac_func.$ac_objext "* ) ;;
23519 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
23521 esac
23524 done
23527 if test $ac_cv_func_mkstemp = no; then
23528 gl_cv_func_mkstemp_limitations=yes
23529 else
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
23534 else
23536 mkdir conftest.mkstemp
23537 if test "$cross_compiling" = yes; then
23538 gl_cv_func_mkstemp_limitations=yes
23540 else
23541 cat >conftest.$ac_ext <<_ACEOF
23542 /* confdefs.h. */
23543 _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>
23550 int main ()
23552 int i;
23553 for (i = 0; i < 70; i++)
23555 char template[] = "conftest.mkstemp/coXXXXXX";
23556 int fd = mkstemp (template);
23557 if (fd == -1)
23558 exit (1);
23559 close (fd);
23561 exit (0);
23564 _ACEOF
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;;
23570 esac
23571 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23572 $as_echo "$ac_try_echo") >&5
23573 (eval "$ac_link") 2>&5
23574 ac_status=$?
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;;
23580 esac
23581 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23582 $as_echo "$ac_try_echo") >&5
23583 (eval "$ac_try") 2>&5
23584 ac_status=$?
23585 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23586 (exit $ac_status); }; }; then
23587 gl_cv_func_mkstemp_limitations=no
23588 else
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"
23614 esac
23616 case " $LIBOBJS " in
23617 *" tempname.$ac_objext "* ) ;;
23618 *) LIBOBJS="$LIBOBJS tempname.$ac_objext"
23620 esac
23623 cat >>confdefs.h <<\_ACEOF
23624 #define mkstemp rpl_mkstemp
23625 _ACEOF
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
23652 else
23653 cat >conftest.$ac_ext <<_ACEOF
23654 /* confdefs.h. */
23655 _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. */
23668 #ifdef __STDC__
23669 # include <limits.h>
23670 #else
23671 # include <assert.h>
23672 #endif
23674 #undef $ac_func
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. */
23679 #ifdef __cplusplus
23680 extern "C"
23681 #endif
23682 char $ac_func ();
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
23687 choke me
23688 #endif
23691 main ()
23693 return $ac_func ();
23695 return 0;
23697 _ACEOF
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;;
23703 esac
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
23707 ac_status=$?
23708 grep -v '^ *+' conftest.er1 >conftest.err
23709 rm -f conftest.er1
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
23718 }; then
23719 eval "$as_ac_var=yes"
23720 else
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
23740 _ACEOF
23743 done
23758 if test $ac_cv_func_working_mktime = no; then
23760 cat >>confdefs.h <<\_ACEOF
23761 #define mktime rpl_mktime
23762 _ACEOF
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
23778 else
23779 ac_func_search_save_LIBS=$LIBS
23780 cat >conftest.$ac_ext <<_ACEOF
23781 /* confdefs.h. */
23782 _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. */
23790 #ifdef __cplusplus
23791 extern "C"
23792 #endif
23793 char nanosleep ();
23795 main ()
23797 return nanosleep ();
23799 return 0;
23801 _ACEOF
23802 for ac_lib in '' rt posix4; do
23803 if test -z "$ac_lib"; then
23804 ac_res="none required"
23805 else
23806 ac_res=-l$ac_lib
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;;
23814 esac
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
23818 ac_status=$?
23819 grep -v '^ *+' conftest.er1 >conftest.err
23820 rm -f conftest.er1
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
23829 }; then
23830 ac_cv_search_nanosleep=$ac_res
23831 else
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 \
23840 conftest$ac_exeext
23841 if test "${ac_cv_search_nanosleep+set}" = set; then
23842 break
23844 done
23845 if test "${ac_cv_search_nanosleep+set}" = set; then
23847 else
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
23868 else
23878 if test "$cross_compiling" = yes; then
23879 jm_cv_func_nanosleep_works=no
23880 else
23881 cat >conftest.$ac_ext <<_ACEOF
23882 /* confdefs.h. */
23883 _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>
23890 # include <time.h>
23891 # else
23892 # if HAVE_SYS_TIME_H
23893 # include <sys/time.h>
23894 # else
23895 # include <time.h>
23896 # endif
23897 # endif
23900 main ()
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);
23908 _ACEOF
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;;
23914 esac
23915 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23916 $as_echo "$ac_try_echo") >&5
23917 (eval "$ac_link") 2>&5
23918 ac_status=$?
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;;
23924 esac
23925 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23926 $as_echo "$ac_try_echo") >&5
23927 (eval "$ac_try") 2>&5
23928 ac_status=$?
23929 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23930 (exit $ac_status); }; }; then
23931 jm_cv_func_nanosleep_works=yes
23932 else
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"
23954 esac
23957 cat >>confdefs.h <<\_ACEOF
23958 #define nanosleep rpl_nanosleep
23959 _ACEOF
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
23992 else
23993 cat >conftest.$ac_ext <<_ACEOF
23994 /* confdefs.h. */
23995 _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. */
24008 #ifdef __STDC__
24009 # include <limits.h>
24010 #else
24011 # include <assert.h>
24012 #endif
24014 #undef $ac_func
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. */
24019 #ifdef __cplusplus
24020 extern "C"
24021 #endif
24022 char $ac_func ();
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
24027 choke me
24028 #endif
24031 main ()
24033 return $ac_func ();
24035 return 0;
24037 _ACEOF
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;;
24043 esac
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
24047 ac_status=$?
24048 grep -v '^ *+' conftest.er1 >conftest.err
24049 rm -f conftest.er1
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
24058 }; then
24059 eval "$as_ac_var=yes"
24060 else
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
24080 _ACEOF
24082 else
24083 case " $LIBOBJS " in
24084 *" $ac_func.$ac_objext "* ) ;;
24085 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
24087 esac
24090 done
24093 case $ac_cv_func_openat in
24094 yes) ;;
24097 cat >>confdefs.h <<\_ACEOF
24098 #define __OPENAT_PREFIX rpl_
24099 _ACEOF
24104 esac
24110 case " $LIBOBJS " in
24111 *" pagealign_alloc.$ac_objext "* ) ;;
24112 *) LIBOBJS="$LIBOBJS pagealign_alloc.$ac_objext"
24114 esac
24151 case " $LIBOBJS " in
24152 *" quotearg.$ac_objext "* ) ;;
24153 *) LIBOBJS="$LIBOBJS quotearg.$ac_objext"
24155 esac
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
24182 else
24183 cat >conftest.$ac_ext <<_ACEOF
24184 /* confdefs.h. */
24185 _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>
24192 main ()
24194 mbstate_t x; return sizeof x;
24196 return 0;
24198 _ACEOF
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;;
24204 esac
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
24208 ac_status=$?
24209 grep -v '^ *+' conftest.er1 >conftest.err
24210 rm -f conftest.er1
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
24218 else
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
24233 _ACEOF
24235 else
24237 cat >>confdefs.h <<\_ACEOF
24238 #define mbstate_t int
24239 _ACEOF
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
24247 else
24248 cat >conftest.$ac_ext <<_ACEOF
24249 /* confdefs.h. */
24250 _ACEOF
24251 cat confdefs.h >>conftest.$ac_ext
24252 cat >>conftest.$ac_ext <<_ACEOF
24253 /* end confdefs.h. */
24254 #include <wchar.h>
24256 main ()
24258 wchar_t wc;
24259 char const s[] = "";
24260 size_t n = 1;
24261 mbstate_t state;
24262 return ! (sizeof state && (mbrtowc) (&wc, s, n, &state));
24264 return 0;
24266 _ACEOF
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;;
24272 esac
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
24276 ac_status=$?
24277 grep -v '^ *+' conftest.er1 >conftest.err
24278 rm -f conftest.er1
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
24287 }; then
24288 gl_cv_func_mbrtowc=yes
24289 else
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
24306 _ACEOF
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
24320 else
24321 cat >conftest.$ac_ext <<_ACEOF
24322 /* confdefs.h. */
24323 _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. */
24336 #ifdef __STDC__
24337 # include <limits.h>
24338 #else
24339 # include <assert.h>
24340 #endif
24342 #undef $ac_func
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. */
24347 #ifdef __cplusplus
24348 extern "C"
24349 #endif
24350 char $ac_func ();
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
24355 choke me
24356 #endif
24359 main ()
24361 return $ac_func ();
24363 return 0;
24365 _ACEOF
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;;
24371 esac
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
24375 ac_status=$?
24376 grep -v '^ *+' conftest.er1 >conftest.err
24377 rm -f conftest.er1
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
24386 }; then
24387 eval "$as_ac_var=yes"
24388 else
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
24408 _ACEOF
24411 done
24413 if test $ac_cv_func_readlink = no; then
24414 case " $LIBOBJS " in
24415 *" readlink.$ac_objext "* ) ;;
24416 *) LIBOBJS="$LIBOBJS readlink.$ac_objext"
24418 esac
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; }
24439 else
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
24444 /* confdefs.h. */
24445 _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>
24451 _ACEOF
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;;
24457 esac
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
24461 ac_status=$?
24462 grep -v '^ *+' conftest.er1 >conftest.err
24463 rm -f conftest.er1
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
24471 else
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
24486 /* confdefs.h. */
24487 _ACEOF
24488 cat confdefs.h >>conftest.$ac_ext
24489 cat >>conftest.$ac_ext <<_ACEOF
24490 /* end confdefs.h. */
24491 #include <$ac_header>
24492 _ACEOF
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;;
24497 esac
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
24501 ac_status=$?
24502 grep -v '^ *+' conftest.er1 >conftest.err
24503 rm -f conftest.er1
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
24509 }; then
24510 ac_header_preproc=yes
24511 else
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
24524 yes:no: )
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
24531 no: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;}
24544 ( cat <<\_ASBOX
24545 ## --------------------------------- ##
24546 ## Report this to bug-cvs@nongnu.org ##
24547 ## --------------------------------- ##
24548 _ASBOX
24549 ) | sed "s/^/$as_me: WARNING: /" >&2
24551 esac
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
24556 else
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
24570 _ACEOF
24574 done
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
24580 else
24581 if test "$cross_compiling" = yes; then
24582 ac_cv_func_realloc_0_nonnull=no
24583 else
24584 cat >conftest.$ac_ext <<_ACEOF
24585 /* confdefs.h. */
24586 _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>
24592 #else
24593 char *realloc ();
24594 #endif
24597 main ()
24599 return ! realloc (0, 0);
24601 return 0;
24603 _ACEOF
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;;
24609 esac
24610 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24611 $as_echo "$ac_try_echo") >&5
24612 (eval "$ac_link") 2>&5
24613 ac_status=$?
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;;
24619 esac
24620 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24621 $as_echo "$ac_try_echo") >&5
24622 (eval "$ac_try") 2>&5
24623 ac_status=$?
24624 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24625 (exit $ac_status); }; }; then
24626 ac_cv_func_realloc_0_nonnull=yes
24627 else
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
24647 _ACEOF
24649 else
24650 cat >>confdefs.h <<\_ACEOF
24651 #define HAVE_REALLOC 0
24652 _ACEOF
24654 case " $LIBOBJS " in
24655 *" realloc.$ac_objext "* ) ;;
24656 *) LIBOBJS="$LIBOBJS realloc.$ac_objext"
24658 esac
24661 cat >>confdefs.h <<\_ACEOF
24662 #define realloc rpl_realloc
24663 _ACEOF
24671 cat >>confdefs.h <<\_ACEOF
24672 #define _REGEX_LARGE_OFFSETS 1
24673 _ACEOF
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
24698 else
24699 if test "$cross_compiling" = yes; then
24700 gl_cv_func_re_compile_pattern_broken=yes
24701 else
24702 cat >conftest.$ac_ext <<_ACEOF
24703 /* confdefs.h. */
24704 _ACEOF
24705 cat confdefs.h >>conftest.$ac_ext
24706 cat >>conftest.$ac_ext <<_ACEOF
24707 /* end confdefs.h. */
24708 $ac_includes_default
24709 #include <regex.h>
24711 main ()
24713 static struct re_pattern_buffer regex;
24714 const char *s;
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 (&regex, 0, sizeof (regex));
24721 s = re_compile_pattern ("a[:]:]b\n", 9, &regex);
24722 /* This should fail with _Invalid character class name_ error. */
24723 if (!s)
24724 exit (1);
24726 /* This should succeed, but does not for e.g. glibc-2.1.3. */
24727 memset (&regex, 0, sizeof (regex));
24728 s = re_compile_pattern ("{1", 2, &regex);
24730 if (s)
24731 exit (1);
24733 /* The following example is derived from a problem report
24734 against gawk from Jorge Stolfi <stolfi@ic.unicamp.br>. */
24735 memset (&regex, 0, sizeof (regex));
24736 s = re_compile_pattern ("[an\371]*n", 7, &regex);
24737 if (s)
24738 exit (1);
24740 /* This should match, but does not for e.g. glibc-2.2.1. */
24741 if (re_match (&regex, "an", 2, 0, &regs) != 2)
24742 exit (1);
24744 memset (&regex, 0, sizeof (regex));
24745 s = re_compile_pattern ("x", 1, &regex);
24746 if (s)
24747 exit (1);
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 (&regex, "wxy", 3, 2, -2, &regs) != 1)
24752 exit (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 (&regex, 0, sizeof (regex));
24758 re_set_syntax (REG_SYNTAX_EMACS | REG_IGNORE_CASE);
24759 s = re_compile_pattern ("x", 1, &regex);
24760 if (s)
24761 exit (1);
24763 if (re_search (&regex, "WXY", 3, 0, 3, &regs) < 0)
24764 exit (1);
24766 /* REG_STARTEND was added to glibc on 2004-01-15.
24767 Reject older versions. */
24768 if (! REG_STARTEND)
24769 exit (1);
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))
24776 exit (1);
24778 exit (0);
24780 return 0;
24782 _ACEOF
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;;
24788 esac
24789 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24790 $as_echo "$ac_try_echo") >&5
24791 (eval "$ac_link") 2>&5
24792 ac_status=$?
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;;
24798 esac
24799 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24800 $as_echo "$ac_try_echo") >&5
24801 (eval "$ac_try") 2>&5
24802 ac_status=$?
24803 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24804 (exit $ac_status); }; }; then
24805 gl_cv_func_re_compile_pattern_broken=no
24806 else
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; }; }
24828 esac
24830 if test $ac_use_included_regex = yes; then
24831 case " $LIBOBJS " in
24832 *" regex.$ac_objext "* ) ;;
24833 *) LIBOBJS="$LIBOBJS regex.$ac_objext"
24835 esac
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
24881 else
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
24890 else
24891 cat >conftest.$ac_ext <<_ACEOF
24892 /* confdefs.h. */
24893 _ACEOF
24894 cat confdefs.h >>conftest.$ac_ext
24895 cat >>conftest.$ac_ext <<_ACEOF
24896 /* end confdefs.h. */
24898 # include <stdio.h>
24900 main ()
24902 exit (rename ("conftest.d1/", "conftest.d2") ? 1 : 0);
24905 _ACEOF
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;;
24911 esac
24912 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24913 $as_echo "$ac_try_echo") >&5
24914 (eval "$ac_link") 2>&5
24915 ac_status=$?
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;;
24921 esac
24922 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24923 $as_echo "$ac_try_echo") >&5
24924 (eval "$ac_try") 2>&5
24925 ac_status=$?
24926 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24927 (exit $ac_status); }; }; then
24928 vb_cv_func_rename_trailing_slash_bug=no
24929 else
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"
24953 esac
24956 cat >>confdefs.h <<\_ACEOF
24957 #define rename rpl_rename
24958 _ACEOF
24961 cat >>confdefs.h <<\_ACEOF
24962 #define RENAME_TRAILING_SLASH_BUG 1
24963 _ACEOF
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
24972 else
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
24978 /* confdefs.h. */
24979 _ACEOF
24980 cat confdefs.h >>conftest.$ac_ext
24981 cat >>conftest.$ac_ext <<_ACEOF
24982 /* end confdefs.h. */
24983 float * $ac_kw x;
24984 _ACEOF
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;;
24990 esac
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
24994 ac_status=$?
24995 grep -v '^ *+' conftest.er1 >conftest.err
24996 rm -f conftest.er1
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
25004 else
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
25012 done
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
25018 restrict) ;;
25020 cat >>confdefs.h <<\_ACEOF
25021 #define restrict /**/
25022 _ACEOF
25024 *) cat >>confdefs.h <<_ACEOF
25025 #define restrict $gl_cv_c_restrict
25026 _ACEOF
25028 esac
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
25039 else
25040 cat >conftest.$ac_ext <<_ACEOF
25041 /* confdefs.h. */
25042 _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. */
25055 #ifdef __STDC__
25056 # include <limits.h>
25057 #else
25058 # include <assert.h>
25059 #endif
25061 #undef $ac_func
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. */
25066 #ifdef __cplusplus
25067 extern "C"
25068 #endif
25069 char $ac_func ();
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
25074 choke me
25075 #endif
25078 main ()
25080 return $ac_func ();
25082 return 0;
25084 _ACEOF
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;;
25090 esac
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
25094 ac_status=$?
25095 grep -v '^ *+' conftest.er1 >conftest.err
25096 rm -f conftest.er1
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
25105 }; then
25106 eval "$as_ac_var=yes"
25107 else
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
25127 _ACEOF
25129 else
25130 case " $LIBOBJS " in
25131 *" $ac_func.$ac_objext "* ) ;;
25132 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
25134 esac
25137 done
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"
25150 esac
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
25177 else
25178 cat >conftest.$ac_ext <<_ACEOF
25179 /* confdefs.h. */
25180 _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. */
25193 #ifdef __STDC__
25194 # include <limits.h>
25195 #else
25196 # include <assert.h>
25197 #endif
25199 #undef $ac_func
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. */
25204 #ifdef __cplusplus
25205 extern "C"
25206 #endif
25207 char $ac_func ();
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
25212 choke me
25213 #endif
25216 main ()
25218 return $ac_func ();
25220 return 0;
25222 _ACEOF
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;;
25228 esac
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
25232 ac_status=$?
25233 grep -v '^ *+' conftest.er1 >conftest.err
25234 rm -f conftest.er1
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
25243 }; then
25244 eval "$as_ac_var=yes"
25245 else
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
25265 _ACEOF
25267 else
25268 case " $LIBOBJS " in
25269 *" $ac_func.$ac_objext "* ) ;;
25270 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
25272 esac
25275 done
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; }
25302 else
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
25307 /* confdefs.h. */
25308 _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>
25314 _ACEOF
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;;
25320 esac
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
25324 ac_status=$?
25325 grep -v '^ *+' conftest.er1 >conftest.err
25326 rm -f conftest.er1
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
25334 else
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
25349 /* confdefs.h. */
25350 _ACEOF
25351 cat confdefs.h >>conftest.$ac_ext
25352 cat >>conftest.$ac_ext <<_ACEOF
25353 /* end confdefs.h. */
25354 #include <$ac_header>
25355 _ACEOF
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;;
25360 esac
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
25364 ac_status=$?
25365 grep -v '^ *+' conftest.er1 >conftest.err
25366 rm -f conftest.er1
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
25372 }; then
25373 ac_header_preproc=yes
25374 else
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
25387 yes:no: )
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
25394 no: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;}
25407 ( cat <<\_ASBOX
25408 ## --------------------------------- ##
25409 ## Report this to bug-cvs@nongnu.org ##
25410 ## --------------------------------- ##
25411 _ASBOX
25412 ) | sed "s/^/$as_me: WARNING: /" >&2
25414 esac
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
25419 else
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
25433 _ACEOF
25437 done
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
25447 else
25448 cat >conftest.$ac_ext <<_ACEOF
25449 /* confdefs.h. */
25450 _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. */
25463 #ifdef __STDC__
25464 # include <limits.h>
25465 #else
25466 # include <assert.h>
25467 #endif
25469 #undef $ac_func
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. */
25474 #ifdef __cplusplus
25475 extern "C"
25476 #endif
25477 char $ac_func ();
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
25482 choke me
25483 #endif
25486 main ()
25488 return $ac_func ();
25490 return 0;
25492 _ACEOF
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;;
25498 esac
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
25502 ac_status=$?
25503 grep -v '^ *+' conftest.er1 >conftest.err
25504 rm -f conftest.er1
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
25513 }; then
25514 eval "$as_ac_var=yes"
25515 else
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
25535 _ACEOF
25538 done
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
25546 else
25548 cat >conftest.$ac_ext <<_ACEOF
25549 /* confdefs.h. */
25550 _ACEOF
25551 cat confdefs.h >>conftest.$ac_ext
25552 cat >>conftest.$ac_ext <<_ACEOF
25553 /* end confdefs.h. */
25554 #include <errno.h>
25555 extern struct { int foo; } errno;
25557 main ()
25559 errno.foo = 1;
25561 return 0;
25563 _ACEOF
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;;
25569 esac
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
25573 ac_status=$?
25574 grep -v '^ *+' conftest.er1 >conftest.err
25575 rm -f conftest.er1
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
25583 else
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
25599 _ACEOF
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
25609 else
25611 cat >conftest.$ac_ext <<_ACEOF
25612 /* confdefs.h. */
25613 _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;
25620 main ()
25622 environ.foo = 1;
25624 return 0;
25626 _ACEOF
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;;
25632 esac
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
25636 ac_status=$?
25637 grep -v '^ *+' conftest.er1 >conftest.err
25638 rm -f conftest.er1
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
25646 else
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
25662 _ACEOF
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
25683 else
25685 cat >conftest.$ac_ext <<_ACEOF
25686 /* confdefs.h. */
25687 _ACEOF
25688 cat confdefs.h >>conftest.$ac_ext
25689 cat >>conftest.$ac_ext <<_ACEOF
25690 /* end confdefs.h. */
25691 #include <errno.h>
25692 extern struct { int foo; } errno;
25694 main ()
25696 errno.foo = 1;
25698 return 0;
25700 _ACEOF
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;;
25706 esac
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
25710 ac_status=$?
25711 grep -v '^ *+' conftest.er1 >conftest.err
25712 rm -f conftest.er1
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
25720 else
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
25736 _ACEOF
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
25746 else
25748 cat >conftest.$ac_ext <<_ACEOF
25749 /* confdefs.h. */
25750 _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;
25757 main ()
25759 environ.foo = 1;
25761 return 0;
25763 _ACEOF
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;;
25769 esac
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
25773 ac_status=$?
25774 grep -v '^ *+' conftest.er1 >conftest.err
25775 rm -f conftest.er1
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
25783 else
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
25799 _ACEOF
25804 else
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
25809 else
25810 cat >conftest.$ac_ext <<_ACEOF
25811 /* confdefs.h. */
25812 _ACEOF
25813 cat confdefs.h >>conftest.$ac_ext
25814 cat >>conftest.$ac_ext <<_ACEOF
25815 /* end confdefs.h. */
25816 #include <stdlib.h>
25817 extern
25818 #ifdef __cplusplus
25820 #endif
25821 #if defined(__STDC__) || defined(__cplusplus)
25822 int unsetenv (const char *name);
25823 #else
25824 int unsetenv();
25825 #endif
25828 main ()
25832 return 0;
25834 _ACEOF
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;;
25840 esac
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
25844 ac_status=$?
25845 grep -v '^ *+' conftest.er1 >conftest.err
25846 rm -f conftest.er1
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'
25854 else
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
25869 _ACEOF
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; }
25889 else
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
25894 /* confdefs.h. */
25895 _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>
25901 _ACEOF
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;;
25907 esac
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
25911 ac_status=$?
25912 grep -v '^ *+' conftest.er1 >conftest.err
25913 rm -f conftest.er1
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
25921 else
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
25936 /* confdefs.h. */
25937 _ACEOF
25938 cat confdefs.h >>conftest.$ac_ext
25939 cat >>conftest.$ac_ext <<_ACEOF
25940 /* end confdefs.h. */
25941 #include <$ac_header>
25942 _ACEOF
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;;
25947 esac
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
25951 ac_status=$?
25952 grep -v '^ *+' conftest.er1 >conftest.err
25953 rm -f conftest.er1
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
25959 }; then
25960 ac_header_preproc=yes
25961 else
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
25974 yes:no: )
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
25981 no: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;}
25994 ( cat <<\_ASBOX
25995 ## --------------------------------- ##
25996 ## Report this to bug-cvs@nongnu.org ##
25997 ## --------------------------------- ##
25998 _ASBOX
25999 ) | sed "s/^/$as_me: WARNING: /" >&2
26001 esac
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
26006 else
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
26020 _ACEOF
26024 done
26026 { $as_echo "$as_me:$LINENO: checking for SIZE_MAX" >&5
26027 $as_echo_n "checking for SIZE_MAX... " >&6; }
26028 result=
26029 cat >conftest.$ac_ext <<_ACEOF
26030 /* confdefs.h. */
26031 _ACEOF
26032 cat confdefs.h >>conftest.$ac_ext
26033 cat >>conftest.$ac_ext <<_ACEOF
26034 /* end confdefs.h. */
26036 #include <limits.h>
26037 #if HAVE_STDINT_H
26038 #include <stdint.h>
26039 #endif
26040 #ifdef SIZE_MAX
26041 Found it
26042 #endif
26044 _ACEOF
26045 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
26046 $EGREP "Found it" >/dev/null 2>&1; then
26047 result=yes
26049 rm -f conftest*
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
26055 /* confdefs.h. */
26056 _ACEOF
26057 cat confdefs.h >>conftest.$ac_ext
26058 cat >>conftest.$ac_ext <<_ACEOF
26059 /* end confdefs.h. */
26060 #include <stddef.h>
26062 main ()
26064 static int test_array [1 - 2 * !((~(size_t)0 / 10) >= 0)];
26065 test_array [0] = 0
26068 return 0;
26070 _ACEOF
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;;
26076 esac
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
26080 ac_status=$?
26081 grep -v '^ *+' conftest.er1 >conftest.err
26082 rm -f conftest.er1
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
26089 ac_lo=0 ac_mid=0
26090 while :; do
26091 cat >conftest.$ac_ext <<_ACEOF
26092 /* confdefs.h. */
26093 _ACEOF
26094 cat confdefs.h >>conftest.$ac_ext
26095 cat >>conftest.$ac_ext <<_ACEOF
26096 /* end confdefs.h. */
26097 #include <stddef.h>
26099 main ()
26101 static int test_array [1 - 2 * !((~(size_t)0 / 10) <= $ac_mid)];
26102 test_array [0] = 0
26105 return 0;
26107 _ACEOF
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;;
26113 esac
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
26117 ac_status=$?
26118 grep -v '^ *+' conftest.er1 >conftest.err
26119 rm -f conftest.er1
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
26127 else
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
26133 ac_lo= ac_hi=
26134 break
26136 ac_mid=`expr 2 '*' $ac_mid + 1`
26139 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26140 done
26141 else
26142 $as_echo "$as_me: failed program was:" >&5
26143 sed 's/^/| /' conftest.$ac_ext >&5
26145 cat >conftest.$ac_ext <<_ACEOF
26146 /* confdefs.h. */
26147 _ACEOF
26148 cat confdefs.h >>conftest.$ac_ext
26149 cat >>conftest.$ac_ext <<_ACEOF
26150 /* end confdefs.h. */
26151 #include <stddef.h>
26153 main ()
26155 static int test_array [1 - 2 * !((~(size_t)0 / 10) < 0)];
26156 test_array [0] = 0
26159 return 0;
26161 _ACEOF
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;;
26167 esac
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
26171 ac_status=$?
26172 grep -v '^ *+' conftest.er1 >conftest.err
26173 rm -f conftest.er1
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
26180 ac_hi=-1 ac_mid=-1
26181 while :; do
26182 cat >conftest.$ac_ext <<_ACEOF
26183 /* confdefs.h. */
26184 _ACEOF
26185 cat confdefs.h >>conftest.$ac_ext
26186 cat >>conftest.$ac_ext <<_ACEOF
26187 /* end confdefs.h. */
26188 #include <stddef.h>
26190 main ()
26192 static int test_array [1 - 2 * !((~(size_t)0 / 10) >= $ac_mid)];
26193 test_array [0] = 0
26196 return 0;
26198 _ACEOF
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;;
26204 esac
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
26208 ac_status=$?
26209 grep -v '^ *+' conftest.er1 >conftest.err
26210 rm -f conftest.er1
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
26218 else
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
26224 ac_lo= ac_hi=
26225 break
26227 ac_mid=`expr 2 '*' $ac_mid`
26230 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26231 done
26232 else
26233 $as_echo "$as_me: failed program was:" >&5
26234 sed 's/^/| /' conftest.$ac_ext >&5
26236 ac_lo= ac_hi=
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
26247 /* confdefs.h. */
26248 _ACEOF
26249 cat confdefs.h >>conftest.$ac_ext
26250 cat >>conftest.$ac_ext <<_ACEOF
26251 /* end confdefs.h. */
26252 #include <stddef.h>
26254 main ()
26256 static int test_array [1 - 2 * !((~(size_t)0 / 10) <= $ac_mid)];
26257 test_array [0] = 0
26260 return 0;
26262 _ACEOF
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;;
26268 esac
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
26272 ac_status=$?
26273 grep -v '^ *+' conftest.er1 >conftest.err
26274 rm -f conftest.er1
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
26281 ac_hi=$ac_mid
26282 else
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
26290 done
26291 case $ac_lo in
26292 ?*) res_hi=$ac_lo;;
26293 '') result=? ;;
26294 esac
26295 else
26296 cat >conftest.$ac_ext <<_ACEOF
26297 /* confdefs.h. */
26298 _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; }
26305 #include <stdio.h>
26306 #include <stdlib.h>
26308 main ()
26311 FILE *f = fopen ("conftest.val", "w");
26312 if (! f)
26313 return 1;
26314 if ((~(size_t)0 / 10) < 0)
26316 long int i = longval ();
26317 if (i != (~(size_t)0 / 10))
26318 return 1;
26319 fprintf (f, "%ld", i);
26321 else
26323 unsigned long int i = ulongval ();
26324 if (i != (~(size_t)0 / 10))
26325 return 1;
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;
26333 return 0;
26335 _ACEOF
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;;
26341 esac
26342 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26343 $as_echo "$ac_try_echo") >&5
26344 (eval "$ac_link") 2>&5
26345 ac_status=$?
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;;
26351 esac
26352 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26353 $as_echo "$ac_try_echo") >&5
26354 (eval "$ac_try") 2>&5
26355 ac_status=$?
26356 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26357 (exit $ac_status); }; }; then
26358 res_hi=`cat conftest.val`
26359 else
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 )
26365 result=?
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
26370 rm -f conftest.val
26372 if test "$cross_compiling" = yes; then
26373 # Depending upon the size, compute the lo and hi bounds.
26374 cat >conftest.$ac_ext <<_ACEOF
26375 /* confdefs.h. */
26376 _ACEOF
26377 cat confdefs.h >>conftest.$ac_ext
26378 cat >>conftest.$ac_ext <<_ACEOF
26379 /* end confdefs.h. */
26380 #include <stddef.h>
26382 main ()
26384 static int test_array [1 - 2 * !((~(size_t)0 % 10) >= 0)];
26385 test_array [0] = 0
26388 return 0;
26390 _ACEOF
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;;
26396 esac
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
26400 ac_status=$?
26401 grep -v '^ *+' conftest.er1 >conftest.err
26402 rm -f conftest.er1
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
26409 ac_lo=0 ac_mid=0
26410 while :; do
26411 cat >conftest.$ac_ext <<_ACEOF
26412 /* confdefs.h. */
26413 _ACEOF
26414 cat confdefs.h >>conftest.$ac_ext
26415 cat >>conftest.$ac_ext <<_ACEOF
26416 /* end confdefs.h. */
26417 #include <stddef.h>
26419 main ()
26421 static int test_array [1 - 2 * !((~(size_t)0 % 10) <= $ac_mid)];
26422 test_array [0] = 0
26425 return 0;
26427 _ACEOF
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;;
26433 esac
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
26437 ac_status=$?
26438 grep -v '^ *+' conftest.er1 >conftest.err
26439 rm -f conftest.er1
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
26447 else
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
26453 ac_lo= ac_hi=
26454 break
26456 ac_mid=`expr 2 '*' $ac_mid + 1`
26459 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26460 done
26461 else
26462 $as_echo "$as_me: failed program was:" >&5
26463 sed 's/^/| /' conftest.$ac_ext >&5
26465 cat >conftest.$ac_ext <<_ACEOF
26466 /* confdefs.h. */
26467 _ACEOF
26468 cat confdefs.h >>conftest.$ac_ext
26469 cat >>conftest.$ac_ext <<_ACEOF
26470 /* end confdefs.h. */
26471 #include <stddef.h>
26473 main ()
26475 static int test_array [1 - 2 * !((~(size_t)0 % 10) < 0)];
26476 test_array [0] = 0
26479 return 0;
26481 _ACEOF
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;;
26487 esac
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
26491 ac_status=$?
26492 grep -v '^ *+' conftest.er1 >conftest.err
26493 rm -f conftest.er1
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
26500 ac_hi=-1 ac_mid=-1
26501 while :; do
26502 cat >conftest.$ac_ext <<_ACEOF
26503 /* confdefs.h. */
26504 _ACEOF
26505 cat confdefs.h >>conftest.$ac_ext
26506 cat >>conftest.$ac_ext <<_ACEOF
26507 /* end confdefs.h. */
26508 #include <stddef.h>
26510 main ()
26512 static int test_array [1 - 2 * !((~(size_t)0 % 10) >= $ac_mid)];
26513 test_array [0] = 0
26516 return 0;
26518 _ACEOF
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;;
26524 esac
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
26528 ac_status=$?
26529 grep -v '^ *+' conftest.er1 >conftest.err
26530 rm -f conftest.er1
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
26538 else
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
26544 ac_lo= ac_hi=
26545 break
26547 ac_mid=`expr 2 '*' $ac_mid`
26550 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26551 done
26552 else
26553 $as_echo "$as_me: failed program was:" >&5
26554 sed 's/^/| /' conftest.$ac_ext >&5
26556 ac_lo= ac_hi=
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
26567 /* confdefs.h. */
26568 _ACEOF
26569 cat confdefs.h >>conftest.$ac_ext
26570 cat >>conftest.$ac_ext <<_ACEOF
26571 /* end confdefs.h. */
26572 #include <stddef.h>
26574 main ()
26576 static int test_array [1 - 2 * !((~(size_t)0 % 10) <= $ac_mid)];
26577 test_array [0] = 0
26580 return 0;
26582 _ACEOF
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;;
26588 esac
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
26592 ac_status=$?
26593 grep -v '^ *+' conftest.er1 >conftest.err
26594 rm -f conftest.er1
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
26601 ac_hi=$ac_mid
26602 else
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
26610 done
26611 case $ac_lo in
26612 ?*) res_lo=$ac_lo;;
26613 '') result=? ;;
26614 esac
26615 else
26616 cat >conftest.$ac_ext <<_ACEOF
26617 /* confdefs.h. */
26618 _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; }
26625 #include <stdio.h>
26626 #include <stdlib.h>
26628 main ()
26631 FILE *f = fopen ("conftest.val", "w");
26632 if (! f)
26633 return 1;
26634 if ((~(size_t)0 % 10) < 0)
26636 long int i = longval ();
26637 if (i != (~(size_t)0 % 10))
26638 return 1;
26639 fprintf (f, "%ld", i);
26641 else
26643 unsigned long int i = ulongval ();
26644 if (i != (~(size_t)0 % 10))
26645 return 1;
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;
26653 return 0;
26655 _ACEOF
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;;
26661 esac
26662 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26663 $as_echo "$ac_try_echo") >&5
26664 (eval "$ac_link") 2>&5
26665 ac_status=$?
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;;
26671 esac
26672 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26673 $as_echo "$ac_try_echo") >&5
26674 (eval "$ac_try") 2>&5
26675 ac_status=$?
26676 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26677 (exit $ac_status); }; }; then
26678 res_lo=`cat conftest.val`
26679 else
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 )
26685 result=?
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
26690 rm -f conftest.val
26692 if test "$cross_compiling" = yes; then
26693 # Depending upon the size, compute the lo and hi bounds.
26694 cat >conftest.$ac_ext <<_ACEOF
26695 /* confdefs.h. */
26696 _ACEOF
26697 cat confdefs.h >>conftest.$ac_ext
26698 cat >>conftest.$ac_ext <<_ACEOF
26699 /* end confdefs.h. */
26700 #include <stddef.h>
26702 main ()
26704 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) >= 0)];
26705 test_array [0] = 0
26708 return 0;
26710 _ACEOF
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;;
26716 esac
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
26720 ac_status=$?
26721 grep -v '^ *+' conftest.er1 >conftest.err
26722 rm -f conftest.er1
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
26729 ac_lo=0 ac_mid=0
26730 while :; do
26731 cat >conftest.$ac_ext <<_ACEOF
26732 /* confdefs.h. */
26733 _ACEOF
26734 cat confdefs.h >>conftest.$ac_ext
26735 cat >>conftest.$ac_ext <<_ACEOF
26736 /* end confdefs.h. */
26737 #include <stddef.h>
26739 main ()
26741 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) <= $ac_mid)];
26742 test_array [0] = 0
26745 return 0;
26747 _ACEOF
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;;
26753 esac
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
26757 ac_status=$?
26758 grep -v '^ *+' conftest.er1 >conftest.err
26759 rm -f conftest.er1
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
26767 else
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
26773 ac_lo= ac_hi=
26774 break
26776 ac_mid=`expr 2 '*' $ac_mid + 1`
26779 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26780 done
26781 else
26782 $as_echo "$as_me: failed program was:" >&5
26783 sed 's/^/| /' conftest.$ac_ext >&5
26785 cat >conftest.$ac_ext <<_ACEOF
26786 /* confdefs.h. */
26787 _ACEOF
26788 cat confdefs.h >>conftest.$ac_ext
26789 cat >>conftest.$ac_ext <<_ACEOF
26790 /* end confdefs.h. */
26791 #include <stddef.h>
26793 main ()
26795 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) < 0)];
26796 test_array [0] = 0
26799 return 0;
26801 _ACEOF
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;;
26807 esac
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
26811 ac_status=$?
26812 grep -v '^ *+' conftest.er1 >conftest.err
26813 rm -f conftest.er1
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
26820 ac_hi=-1 ac_mid=-1
26821 while :; do
26822 cat >conftest.$ac_ext <<_ACEOF
26823 /* confdefs.h. */
26824 _ACEOF
26825 cat confdefs.h >>conftest.$ac_ext
26826 cat >>conftest.$ac_ext <<_ACEOF
26827 /* end confdefs.h. */
26828 #include <stddef.h>
26830 main ()
26832 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) >= $ac_mid)];
26833 test_array [0] = 0
26836 return 0;
26838 _ACEOF
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;;
26844 esac
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
26848 ac_status=$?
26849 grep -v '^ *+' conftest.er1 >conftest.err
26850 rm -f conftest.er1
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
26858 else
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
26864 ac_lo= ac_hi=
26865 break
26867 ac_mid=`expr 2 '*' $ac_mid`
26870 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26871 done
26872 else
26873 $as_echo "$as_me: failed program was:" >&5
26874 sed 's/^/| /' conftest.$ac_ext >&5
26876 ac_lo= ac_hi=
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
26887 /* confdefs.h. */
26888 _ACEOF
26889 cat confdefs.h >>conftest.$ac_ext
26890 cat >>conftest.$ac_ext <<_ACEOF
26891 /* end confdefs.h. */
26892 #include <stddef.h>
26894 main ()
26896 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) <= $ac_mid)];
26897 test_array [0] = 0
26900 return 0;
26902 _ACEOF
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;;
26908 esac
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
26912 ac_status=$?
26913 grep -v '^ *+' conftest.er1 >conftest.err
26914 rm -f conftest.er1
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
26921 ac_hi=$ac_mid
26922 else
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
26930 done
26931 case $ac_lo in
26932 ?*) fits_in_uint=$ac_lo;;
26933 '') result=? ;;
26934 esac
26935 else
26936 cat >conftest.$ac_ext <<_ACEOF
26937 /* confdefs.h. */
26938 _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); }
26945 #include <stdio.h>
26946 #include <stdlib.h>
26948 main ()
26951 FILE *f = fopen ("conftest.val", "w");
26952 if (! f)
26953 return 1;
26954 if ((sizeof (size_t) <= sizeof (unsigned int)) < 0)
26956 long int i = longval ();
26957 if (i != (sizeof (size_t) <= sizeof (unsigned int)))
26958 return 1;
26959 fprintf (f, "%ld", i);
26961 else
26963 unsigned long int i = ulongval ();
26964 if (i != (sizeof (size_t) <= sizeof (unsigned int)))
26965 return 1;
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;
26973 return 0;
26975 _ACEOF
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;;
26981 esac
26982 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26983 $as_echo "$ac_try_echo") >&5
26984 (eval "$ac_link") 2>&5
26985 ac_status=$?
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;;
26991 esac
26992 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26993 $as_echo "$ac_try_echo") >&5
26994 (eval "$ac_try") 2>&5
26995 ac_status=$?
26996 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26997 (exit $ac_status); }; }; then
26998 fits_in_uint=`cat conftest.val`
26999 else
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 )
27005 result=?
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
27010 rm -f conftest.val
27012 if test "$fits_in_uint" = 1; then
27013 cat >conftest.$ac_ext <<_ACEOF
27014 /* confdefs.h. */
27015 _ACEOF
27016 cat confdefs.h >>conftest.$ac_ext
27017 cat >>conftest.$ac_ext <<_ACEOF
27018 /* end confdefs.h. */
27019 #include <stddef.h>
27020 extern size_t foo;
27021 extern unsigned long foo;
27024 main ()
27028 return 0;
27030 _ACEOF
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;;
27036 esac
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
27040 ac_status=$?
27041 grep -v '^ *+' conftest.er1 >conftest.err
27042 rm -f conftest.er1
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
27049 fits_in_uint=0
27050 else
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
27062 else
27063 result="$res_hi$res_lo"UL
27065 else
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
27075 _ACEOF
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
27084 else
27085 cat >conftest.$ac_ext <<_ACEOF
27086 /* confdefs.h. */
27087 _ACEOF
27088 cat confdefs.h >>conftest.$ac_ext
27089 cat >>conftest.$ac_ext <<_ACEOF
27090 /* end confdefs.h. */
27091 #include <sys/types.h>
27093 main ()
27095 int x = sizeof (ssize_t *) + sizeof (ssize_t);
27097 return 0;
27099 _ACEOF
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;;
27105 esac
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
27109 ac_status=$?
27110 grep -v '^ *+' conftest.er1 >conftest.err
27111 rm -f conftest.er1
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
27118 gt_cv_ssize_t=yes
27119 else
27120 $as_echo "$as_me: failed program was:" >&5
27121 sed 's/^/| /' conftest.$ac_ext >&5
27123 gt_cv_ssize_t=no
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
27134 _ACEOF
27146 # Define two additional variables used in the Makefile substitution.
27148 if test "$ac_cv_header_stdbool_h" = yes; then
27149 STDBOOL_H=''
27150 else
27151 STDBOOL_H='stdbool.h'
27155 if test "$ac_cv_type__Bool" = yes; then
27156 HAVE__BOOL=1
27157 else
27158 HAVE__BOOL=0
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; }
27177 else
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
27182 /* confdefs.h. */
27183 _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>
27189 _ACEOF
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;;
27195 esac
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
27199 ac_status=$?
27200 grep -v '^ *+' conftest.er1 >conftest.err
27201 rm -f conftest.er1
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
27209 else
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
27224 /* confdefs.h. */
27225 _ACEOF
27226 cat confdefs.h >>conftest.$ac_ext
27227 cat >>conftest.$ac_ext <<_ACEOF
27228 /* end confdefs.h. */
27229 #include <$ac_header>
27230 _ACEOF
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;;
27235 esac
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
27239 ac_status=$?
27240 grep -v '^ *+' conftest.er1 >conftest.err
27241 rm -f conftest.er1
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
27247 }; then
27248 ac_header_preproc=yes
27249 else
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
27262 yes:no: )
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
27269 no: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;}
27282 ( cat <<\_ASBOX
27283 ## --------------------------------- ##
27284 ## Report this to bug-cvs@nongnu.org ##
27285 ## --------------------------------- ##
27286 _ASBOX
27287 ) | sed "s/^/$as_me: WARNING: /" >&2
27289 esac
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
27294 else
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
27308 _ACEOF
27312 done
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
27319 else
27321 cat >conftest.$ac_ext <<_ACEOF
27322 /* confdefs.h. */
27323 _ACEOF
27324 cat confdefs.h >>conftest.$ac_ext
27325 cat >>conftest.$ac_ext <<_ACEOF
27326 /* end confdefs.h. */
27327 #include <stdint.h>
27329 main ()
27333 return 0;
27335 _ACEOF
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;;
27341 esac
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
27345 ac_status=$?
27346 grep -v '^ *+' conftest.er1 >conftest.err
27347 rm -f conftest.er1
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
27355 else
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
27371 _ACEOF
27373 STDINT_H=''
27374 else
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
27381 else
27383 cat >conftest.$ac_ext <<_ACEOF
27384 /* confdefs.h. */
27385 _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];
27395 main ()
27399 return 0;
27401 _ACEOF
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;;
27407 esac
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
27411 ac_status=$?
27412 grep -v '^ *+' conftest.er1 >conftest.err
27413 rm -f conftest.er1
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
27421 else
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
27433 HAVE_LONG_64BIT=1
27434 else
27435 HAVE_LONG_64BIT=0
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
27443 else
27445 cat >conftest.$ac_ext <<_ACEOF
27446 /* confdefs.h. */
27447 _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];
27457 main ()
27461 return 0;
27463 _ACEOF
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;;
27469 esac
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
27473 ac_status=$?
27474 grep -v '^ *+' conftest.er1 >conftest.err
27475 rm -f conftest.er1
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
27483 else
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
27496 else
27497 HAVE_LONG_LONG_64BIT=0
27506 case " $LIBOBJS " in
27507 *" strcasecmp.$ac_objext "* ) ;;
27508 *) LIBOBJS="$LIBOBJS strcasecmp.$ac_objext"
27510 esac
27513 cat >>confdefs.h <<\_ACEOF
27514 #define strcasecmp rpl_strcasecmp
27515 _ACEOF
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
27523 else
27524 cat >conftest.$ac_ext <<_ACEOF
27525 /* confdefs.h. */
27526 _ACEOF
27527 cat confdefs.h >>conftest.$ac_ext
27528 cat >>conftest.$ac_ext <<_ACEOF
27529 /* end confdefs.h. */
27530 #include <wchar.h>
27532 main ()
27534 wchar_t wc;
27535 char const s[] = "";
27536 size_t n = 1;
27537 mbstate_t state;
27538 return ! (sizeof state && (mbrtowc) (&wc, s, n, &state));
27540 return 0;
27542 _ACEOF
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;;
27548 esac
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
27552 ac_status=$?
27553 grep -v '^ *+' conftest.er1 >conftest.err
27554 rm -f conftest.er1
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
27563 }; then
27564 gl_cv_func_mbrtowc=yes
27565 else
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
27582 _ACEOF
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
27597 else
27598 cat >conftest.$ac_ext <<_ACEOF
27599 /* confdefs.h. */
27600 _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. */
27613 #ifdef __STDC__
27614 # include <limits.h>
27615 #else
27616 # include <assert.h>
27617 #endif
27619 #undef $ac_func
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. */
27624 #ifdef __cplusplus
27625 extern "C"
27626 #endif
27627 char $ac_func ();
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
27632 choke me
27633 #endif
27636 main ()
27638 return $ac_func ();
27640 return 0;
27642 _ACEOF
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;;
27648 esac
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
27652 ac_status=$?
27653 grep -v '^ *+' conftest.er1 >conftest.err
27654 rm -f conftest.er1
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
27663 }; then
27664 eval "$as_ac_var=yes"
27665 else
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
27685 _ACEOF
27687 else
27688 case " $LIBOBJS " in
27689 *" $ac_func.$ac_objext "* ) ;;
27690 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
27692 esac
27695 done
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
27716 else
27717 cat >conftest.$ac_ext <<_ACEOF
27718 /* confdefs.h. */
27719 _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. */
27732 #ifdef __STDC__
27733 # include <limits.h>
27734 #else
27735 # include <assert.h>
27736 #endif
27738 #undef $ac_func
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. */
27743 #ifdef __cplusplus
27744 extern "C"
27745 #endif
27746 char $ac_func ();
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
27751 choke me
27752 #endif
27755 main ()
27757 return $ac_func ();
27759 return 0;
27761 _ACEOF
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;;
27767 esac
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
27771 ac_status=$?
27772 grep -v '^ *+' conftest.er1 >conftest.err
27773 rm -f conftest.er1
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
27782 }; then
27783 eval "$as_ac_var=yes"
27784 else
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
27804 _ACEOF
27806 else
27807 case " $LIBOBJS " in
27808 *" $ac_func.$ac_objext "* ) ;;
27809 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
27811 esac
27814 done
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
27835 else
27836 cat >conftest.$ac_ext <<_ACEOF
27837 /* confdefs.h. */
27838 _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. */
27851 #ifdef __STDC__
27852 # include <limits.h>
27853 #else
27854 # include <assert.h>
27855 #endif
27857 #undef $ac_func
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. */
27862 #ifdef __cplusplus
27863 extern "C"
27864 #endif
27865 char $ac_func ();
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
27870 choke me
27871 #endif
27874 main ()
27876 return $ac_func ();
27878 return 0;
27880 _ACEOF
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;;
27886 esac
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
27890 ac_status=$?
27891 grep -v '^ *+' conftest.er1 >conftest.err
27892 rm -f conftest.er1
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
27901 }; then
27902 eval "$as_ac_var=yes"
27903 else
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
27923 _ACEOF
27925 else
27926 case " $LIBOBJS " in
27927 *" $ac_func.$ac_objext "* ) ;;
27928 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
27930 esac
27933 done
27936 if test $ac_cv_func_strerror = no; then
27944 case " $LIBOBJS " in
27945 *" strstr.$ac_objext "* ) ;;
27946 *) LIBOBJS="$LIBOBJS strstr.$ac_objext"
27948 esac
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
27956 else
27957 cat >conftest.$ac_ext <<_ACEOF
27958 /* confdefs.h. */
27959 _ACEOF
27960 cat confdefs.h >>conftest.$ac_ext
27961 cat >>conftest.$ac_ext <<_ACEOF
27962 /* end confdefs.h. */
27963 #include <wchar.h>
27965 main ()
27967 wchar_t wc;
27968 char const s[] = "";
27969 size_t n = 1;
27970 mbstate_t state;
27971 return ! (sizeof state && (mbrtowc) (&wc, s, n, &state));
27973 return 0;
27975 _ACEOF
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;;
27981 esac
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
27985 ac_status=$?
27986 grep -v '^ *+' conftest.er1 >conftest.err
27987 rm -f conftest.er1
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
27996 }; then
27997 gl_cv_func_mbrtowc=yes
27998 else
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
28015 _ACEOF
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
28030 else
28031 cat >conftest.$ac_ext <<_ACEOF
28032 /* confdefs.h. */
28033 _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. */
28046 #ifdef __STDC__
28047 # include <limits.h>
28048 #else
28049 # include <assert.h>
28050 #endif
28052 #undef $ac_func
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. */
28057 #ifdef __cplusplus
28058 extern "C"
28059 #endif
28060 char $ac_func ();
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
28065 choke me
28066 #endif
28069 main ()
28071 return $ac_func ();
28073 return 0;
28075 _ACEOF
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;;
28081 esac
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
28085 ac_status=$?
28086 grep -v '^ *+' conftest.er1 >conftest.err
28087 rm -f conftest.er1
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
28096 }; then
28097 eval "$as_ac_var=yes"
28098 else
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
28118 _ACEOF
28120 else
28121 case " $LIBOBJS " in
28122 *" $ac_func.$ac_objext "* ) ;;
28123 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
28125 esac
28128 done
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
28153 else
28154 cat >conftest.$ac_ext <<_ACEOF
28155 /* confdefs.h. */
28156 _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. */
28169 #ifdef __STDC__
28170 # include <limits.h>
28171 #else
28172 # include <assert.h>
28173 #endif
28175 #undef $ac_func
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. */
28180 #ifdef __cplusplus
28181 extern "C"
28182 #endif
28183 char $ac_func ();
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
28188 choke me
28189 #endif
28192 main ()
28194 return $ac_func ();
28196 return 0;
28198 _ACEOF
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;;
28204 esac
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
28208 ac_status=$?
28209 grep -v '^ *+' conftest.er1 >conftest.err
28210 rm -f conftest.er1
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
28219 }; then
28220 eval "$as_ac_var=yes"
28221 else
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
28241 _ACEOF
28243 else
28244 case " $LIBOBJS " in
28245 *" $ac_func.$ac_objext "* ) ;;
28246 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
28248 esac
28251 done
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
28277 else
28278 cat >conftest.$ac_ext <<_ACEOF
28279 /* confdefs.h. */
28280 _ACEOF
28281 cat confdefs.h >>conftest.$ac_ext
28282 cat >>conftest.$ac_ext <<_ACEOF
28283 /* end confdefs.h. */
28284 #include <time.h>
28286 main ()
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;
28293 return 0;
28295 _ACEOF
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;;
28301 esac
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
28305 ac_status=$?
28306 grep -v '^ *+' conftest.er1 >conftest.err
28307 rm -f conftest.er1
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
28315 else
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
28330 _ACEOF
28332 else
28333 case " $LIBOBJS " in
28334 *" time_r.$ac_objext "* ) ;;
28335 *) LIBOBJS="$LIBOBJS time_r.$ac_objext"
28337 esac
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
28371 else
28372 cat >conftest.$ac_ext <<_ACEOF
28373 /* confdefs.h. */
28374 _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>
28381 # include <time.h>
28382 # else
28383 # if HAVE_SYS_TIME_H
28384 # include <sys/time.h>
28385 # else
28386 # include <time.h>
28387 # endif
28388 # endif
28391 main ()
28393 static struct timespec x; x.tv_sec = x.tv_nsec;
28395 return 0;
28397 _ACEOF
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;;
28403 esac
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
28407 ac_status=$?
28408 grep -v '^ *+' conftest.er1 >conftest.err
28409 rm -f conftest.er1
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
28417 else
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
28434 _ACEOF
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
28445 else
28446 cat >conftest.$ac_ext <<_ACEOF
28447 /* confdefs.h. */
28448 _ACEOF
28449 cat confdefs.h >>conftest.$ac_ext
28450 cat >>conftest.$ac_ext <<_ACEOF
28451 /* end confdefs.h. */
28452 #include <time.h>
28455 main ()
28457 #ifndef nanosleep
28458 (void) nanosleep;
28459 #endif
28462 return 0;
28464 _ACEOF
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;;
28470 esac
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
28474 ac_status=$?
28475 grep -v '^ *+' conftest.er1 >conftest.err
28476 rm -f conftest.er1
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
28484 else
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
28499 _ACEOF
28502 else
28503 cat >>confdefs.h <<_ACEOF
28504 #define HAVE_DECL_NANOSLEEP 0
28505 _ACEOF
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
28518 else
28520 if test "$cross_compiling" = yes; then
28521 gl_cv_func_tzset_clobber=yes
28522 else
28523 cat >conftest.$ac_ext <<_ACEOF
28524 /* confdefs.h. */
28525 _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>
28532 # include <time.h>
28533 #else
28534 # if HAVE_SYS_TIME_H
28535 # include <sys/time.h>
28536 # else
28537 # include <time.h>
28538 # endif
28539 #endif
28540 #include <stdlib.h>
28543 main ()
28545 time_t t1 = 853958121;
28546 struct tm *p, s;
28547 putenv ("TZ=GMT0");
28548 p = localtime (&t1);
28549 s = *p;
28550 putenv ("TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00");
28551 tzset ();
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);
28560 _ACEOF
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;;
28566 esac
28567 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28568 $as_echo "$ac_try_echo") >&5
28569 (eval "$ac_link") 2>&5
28570 ac_status=$?
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;;
28576 esac
28577 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28578 $as_echo "$ac_try_echo") >&5
28579 (eval "$ac_try") 2>&5
28580 ac_status=$?
28581 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28582 (exit $ac_status); }; }; then
28583 gl_cv_func_tzset_clobber=no
28584 else
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
28604 _ACEOF
28607 if test $gl_cv_func_tzset_clobber = yes; then
28609 case " $LIBOBJS " in
28610 *" gettimeofday.$ac_objext "* ) ;;
28611 *) LIBOBJS="$LIBOBJS gettimeofday.$ac_objext"
28613 esac
28616 cat >>confdefs.h <<\_ACEOF
28617 #define gmtime rpl_gmtime
28618 _ACEOF
28621 cat >>confdefs.h <<\_ACEOF
28622 #define localtime rpl_localtime
28623 _ACEOF
28628 cat >>confdefs.h <<\_ACEOF
28629 #define tzset rpl_tzset
28630 _ACEOF
28633 cat >>confdefs.h <<\_ACEOF
28634 #define TZSET_CLOBBERS_LOCALTIME_BUFFER 1
28635 _ACEOF
28641 case " $LIBOBJS " in
28642 *" dup-safer.$ac_objext "* ) ;;
28643 *) LIBOBJS="$LIBOBJS dup-safer.$ac_objext"
28645 esac
28647 case " $LIBOBJS " in
28648 *" fd-safer.$ac_objext "* ) ;;
28649 *) LIBOBJS="$LIBOBJS fd-safer.$ac_objext"
28651 esac
28653 case " $LIBOBJS " in
28654 *" pipe-safer.$ac_objext "* ) ;;
28655 *) LIBOBJS="$LIBOBJS pipe-safer.$ac_objext"
28657 esac
28683 cat >>confdefs.h <<\_ACEOF
28684 #define USE_UNLOCKED_IO 1
28685 _ACEOF
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
28744 else
28745 cat >conftest.$ac_ext <<_ACEOF
28746 /* confdefs.h. */
28747 _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. */
28760 #ifdef __STDC__
28761 # include <limits.h>
28762 #else
28763 # include <assert.h>
28764 #endif
28766 #undef $ac_func
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. */
28771 #ifdef __cplusplus
28772 extern "C"
28773 #endif
28774 char $ac_func ();
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
28779 choke me
28780 #endif
28783 main ()
28785 return $ac_func ();
28787 return 0;
28789 _ACEOF
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;;
28795 esac
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
28799 ac_status=$?
28800 grep -v '^ *+' conftest.er1 >conftest.err
28801 rm -f conftest.er1
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
28810 }; then
28811 eval "$as_ac_var=yes"
28812 else
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
28832 _ACEOF
28834 else
28835 case " $LIBOBJS " in
28836 *" $ac_func.$ac_objext "* ) ;;
28837 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
28839 esac
28842 done
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"
28850 esac
28852 case " $LIBOBJS " in
28853 *" printf-parse.$ac_objext "* ) ;;
28854 *) LIBOBJS="$LIBOBJS printf-parse.$ac_objext"
28856 esac
28858 case " $LIBOBJS " in
28859 *" asnprintf.$ac_objext "* ) ;;
28860 *) LIBOBJS="$LIBOBJS asnprintf.$ac_objext"
28862 esac
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
28881 else
28882 ac_cv_type_ptrdiff_t=no
28883 cat >conftest.$ac_ext <<_ACEOF
28884 /* confdefs.h. */
28885 _ACEOF
28886 cat confdefs.h >>conftest.$ac_ext
28887 cat >>conftest.$ac_ext <<_ACEOF
28888 /* end confdefs.h. */
28889 $ac_includes_default
28891 main ()
28893 if (sizeof (ptrdiff_t))
28894 return 0;
28896 return 0;
28898 _ACEOF
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;;
28904 esac
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
28908 ac_status=$?
28909 grep -v '^ *+' conftest.er1 >conftest.err
28910 rm -f conftest.er1
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
28918 /* confdefs.h. */
28919 _ACEOF
28920 cat confdefs.h >>conftest.$ac_ext
28921 cat >>conftest.$ac_ext <<_ACEOF
28922 /* end confdefs.h. */
28923 $ac_includes_default
28925 main ()
28927 if (sizeof ((ptrdiff_t)))
28928 return 0;
28930 return 0;
28932 _ACEOF
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;;
28938 esac
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
28942 ac_status=$?
28943 grep -v '^ *+' conftest.er1 >conftest.err
28944 rm -f conftest.er1
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
28952 else
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
28960 else
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
28975 _ACEOF
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
28997 else
28998 cat >conftest.$ac_ext <<_ACEOF
28999 /* confdefs.h. */
29000 _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. */
29013 #ifdef __STDC__
29014 # include <limits.h>
29015 #else
29016 # include <assert.h>
29017 #endif
29019 #undef $ac_func
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. */
29024 #ifdef __cplusplus
29025 extern "C"
29026 #endif
29027 char $ac_func ();
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
29032 choke me
29033 #endif
29036 main ()
29038 return $ac_func ();
29040 return 0;
29042 _ACEOF
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;;
29048 esac
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
29052 ac_status=$?
29053 grep -v '^ *+' conftest.er1 >conftest.err
29054 rm -f conftest.er1
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
29063 }; then
29064 eval "$as_ac_var=yes"
29065 else
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
29085 _ACEOF
29088 done
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
29104 else
29105 cat >conftest.$ac_ext <<_ACEOF
29106 /* confdefs.h. */
29107 _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. */
29120 #ifdef __STDC__
29121 # include <limits.h>
29122 #else
29123 # include <assert.h>
29124 #endif
29126 #undef $ac_func
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. */
29131 #ifdef __cplusplus
29132 extern "C"
29133 #endif
29134 char $ac_func ();
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
29139 choke me
29140 #endif
29143 main ()
29145 return $ac_func ();
29147 return 0;
29149 _ACEOF
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;;
29155 esac
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
29159 ac_status=$?
29160 grep -v '^ *+' conftest.er1 >conftest.err
29161 rm -f conftest.er1
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
29170 }; then
29171 eval "$as_ac_var=yes"
29172 else
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
29192 _ACEOF
29194 else
29195 case " $LIBOBJS " in
29196 *" $ac_func.$ac_objext "* ) ;;
29197 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
29199 esac
29202 done
29205 if test $ac_cv_func_vasprintf = no; then
29206 case " $LIBOBJS " in
29207 *" asprintf.$ac_objext "* ) ;;
29208 *) LIBOBJS="$LIBOBJS asprintf.$ac_objext"
29210 esac
29220 case " $LIBOBJS " in
29221 *" xmalloc.$ac_objext "* ) ;;
29222 *) LIBOBJS="$LIBOBJS xmalloc.$ac_objext"
29224 esac
29237 case " $LIBOBJS " in
29238 *" xgetcwd.$ac_objext "* ) ;;
29239 *) LIBOBJS="$LIBOBJS xgetcwd.$ac_objext"
29241 esac
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; }
29273 else
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
29278 /* confdefs.h. */
29279 _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>
29285 _ACEOF
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;;
29291 esac
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
29295 ac_status=$?
29296 grep -v '^ *+' conftest.er1 >conftest.err
29297 rm -f conftest.er1
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
29305 else
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
29320 /* confdefs.h. */
29321 _ACEOF
29322 cat confdefs.h >>conftest.$ac_ext
29323 cat >>conftest.$ac_ext <<_ACEOF
29324 /* end confdefs.h. */
29325 #include <$ac_header>
29326 _ACEOF
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;;
29331 esac
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
29335 ac_status=$?
29336 grep -v '^ *+' conftest.er1 >conftest.err
29337 rm -f conftest.er1
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
29343 }; then
29344 ac_header_preproc=yes
29345 else
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
29358 yes:no: )
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
29365 no: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;}
29378 ( cat <<\_ASBOX
29379 ## --------------------------------- ##
29380 ## Report this to bug-cvs@nongnu.org ##
29381 ## --------------------------------- ##
29382 _ASBOX
29383 ) | sed "s/^/$as_me: WARNING: /" >&2
29385 esac
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
29390 else
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
29404 _ACEOF
29408 done
29413 case " $LIBOBJS " in
29414 *" yesno.$ac_objext "* ) ;;
29415 *) LIBOBJS="$LIBOBJS yesno.$ac_objext"
29417 esac
29425 MKINSTALLDIRS=
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" ;;
29430 esac
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
29443 else
29444 USE_NLS=yes
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
29460 chmod +x conf$$.sh
29461 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
29462 PATH_SEPARATOR=';'
29463 else
29464 PATH_SEPARATOR=:
29466 rm -f conf$$.sh
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
29472 #! /bin/sh
29473 exit 0
29474 _ASEOF
29475 chmod +x conf$$.file
29476 if test -x conf$$.file >/dev/null 2>&1; then
29477 ac_executable_p="test -x"
29478 else
29479 ac_executable_p="test -f"
29481 rm -f conf$$.file
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
29489 else
29490 case "$MSGFMT" in
29491 [\\/]* | ?:[\\/]*)
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
29497 IFS="$ac_save_IFS"
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"
29505 break 2
29508 done
29509 done
29510 IFS="$ac_save_IFS"
29511 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
29513 esac
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; }
29519 else
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
29530 else
29531 case $GMSGFMT in
29532 [\\/]* | ?:[\\/]*)
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
29539 IFS=$as_save_IFS
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
29545 break 2
29547 done
29548 done
29549 IFS=$as_save_IFS
29551 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
29553 esac
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; }
29559 else
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
29572 chmod +x conf$$.sh
29573 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
29574 PATH_SEPARATOR=';'
29575 else
29576 PATH_SEPARATOR=:
29578 rm -f conf$$.sh
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
29584 #! /bin/sh
29585 exit 0
29586 _ASEOF
29587 chmod +x conf$$.file
29588 if test -x conf$$.file >/dev/null 2>&1; then
29589 ac_executable_p="test -x"
29590 else
29591 ac_executable_p="test -f"
29593 rm -f conf$$.file
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
29601 else
29602 case "$XGETTEXT" in
29603 [\\/]* | ?:[\\/]*)
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
29609 IFS="$ac_save_IFS"
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"
29617 break 2
29620 done
29621 done
29622 IFS="$ac_save_IFS"
29623 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
29625 esac
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; }
29631 else
29632 { $as_echo "$as_me:$LINENO: result: no" >&5
29633 $as_echo "no" >&6; }
29636 rm -f messages.po
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
29644 chmod +x conf$$.sh
29645 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
29646 PATH_SEPARATOR=';'
29647 else
29648 PATH_SEPARATOR=:
29650 rm -f conf$$.sh
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
29656 #! /bin/sh
29657 exit 0
29658 _ASEOF
29659 chmod +x conf$$.file
29660 if test -x conf$$.file >/dev/null 2>&1; then
29661 ac_executable_p="test -x"
29662 else
29663 ac_executable_p="test -f"
29665 rm -f conf$$.file
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
29673 else
29674 case "$MSGMERGE" in
29675 [\\/]* | ?:[\\/]*)
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
29681 IFS="$ac_save_IFS"
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"
29688 break 2
29691 done
29692 done
29693 IFS="$ac_save_IFS"
29694 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
29696 esac
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; }
29702 else
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
29712 else
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; }
29716 GMSGFMT=":"
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
29724 else
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; }
29727 XGETTEXT=":"
29729 rm -f messages.po
29732 ac_config_commands="$ac_config_commands default-1"
29736 if test "X$prefix" = "XNONE"; then
29737 acl_final_prefix="$ac_default_prefix"
29738 else
29739 acl_final_prefix="$prefix"
29741 if test "X$exec_prefix" = "XNONE"; then
29742 acl_final_exec_prefix='${prefix}'
29743 else
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
29761 else
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
29778 *-*-*) ;;
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; }; };;
29782 esac
29783 build=$ac_cv_build
29784 ac_save_IFS=$IFS; IFS='-'
29785 set x $ac_cv_build
29786 shift
29787 build_cpu=$1
29788 build_vendor=$2
29789 shift; shift
29790 # Remember, the first character of IFS is used to create $*,
29791 # except with old shells:
29792 build_os=$*
29793 IFS=$ac_save_IFS
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
29801 else
29802 if test "x$host_alias" = x; then
29803 ac_cv_host=$ac_cv_build
29804 else
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
29815 *-*-*) ;;
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; }; };;
29819 esac
29820 host=$ac_cv_host
29821 ac_save_IFS=$IFS; IFS='-'
29822 set x $ac_cv_host
29823 shift
29824 host_cpu=$1
29825 host_vendor=$2
29826 shift; shift
29827 # Remember, the first character of IFS is used to create $*,
29828 # except with old shells:
29829 host_os=$*
29830 IFS=$ac_save_IFS
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
29838 else
29839 with_gnu_ld=no
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
29847 chmod +x conf$$.sh
29848 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
29849 PATH_SEPARATOR=';'
29850 else
29851 PATH_SEPARATOR=:
29853 rm -f conf$$.sh
29855 ac_prog=ld
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; }
29860 case $host in
29861 *-*-mingw*)
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` ;;
29866 esac
29867 case $ac_prog in
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%/%"`
29875 done
29876 test -z "$LD" && LD="$ac_prog"
29879 # If it fails, then pretend we aren't using GCC.
29880 ac_prog=ld
29883 # If it is relative, then search for the first ld in PATH.
29884 with_gnu_ld=unknown
29886 esac
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; }
29890 else
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
29896 else
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 ;;
29911 esac
29913 done
29914 IFS="$ac_save_ifs"
29915 else
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; }
29924 else
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
29935 else
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 ;;
29942 esac
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
29955 else
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
29959 . ./conftest.sh
29960 rm -f ./conftest.sh
29961 acl_cv_rpath=done
29964 { $as_echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
29965 $as_echo "$acl_cv_rpath" >&6; }
29966 wl="$acl_cv_wl"
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; :
29976 else
29977 enable_rpath=yes
29987 use_additional=yes
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
30005 use_additional=no
30006 else
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"
30020 else
30021 additional_includedir="$withval/include"
30022 additional_libdir="$withval/lib"
30028 LIBICONV=
30029 LTLIBICONV=
30030 INCICONV=
30031 rpathdirs=
30032 ltrpathdirs=
30033 names_already_handled=
30034 names_next_round='iconv '
30035 while test -n "$names_next_round"; do
30036 names_this_round="$names_next_round"
30037 names_next_round=
30038 for name in $names_this_round; do
30039 already_handled=
30040 for n in $names_already_handled; do
30041 if test "$n" = "$name"; then
30042 already_handled=yes
30043 break
30045 done
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"
30056 else
30059 else
30060 found_dir=
30061 found_la=
30062 found_so=
30063 found_a=
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"
30071 else
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"
30088 eval x=\"$x\"
30089 exec_prefix="$acl_save_exec_prefix"
30090 prefix="$acl_save_prefix"
30092 case "$x" in
30093 -L*)
30094 dir=`echo "X$x" | sed -e 's/^X-L//'`
30095 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
30096 found_dir="$dir"
30097 found_so="$dir/lib$name.$shlibext"
30098 if test -f "$dir/lib$name.la"; then
30099 found_la="$dir/lib$name.la"
30101 else
30102 if test -f "$dir/lib$name.$libext"; then
30103 found_dir="$dir"
30104 found_a="$dir/lib$name.$libext"
30105 if test -f "$dir/lib$name.la"; then
30106 found_la="$dir/lib$name.la"
30111 esac
30112 if test "X$found_dir" != "X"; then
30113 break
30115 done
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"
30122 else
30123 haveit=
30124 for x in $ltrpathdirs; do
30125 if test "X$x" = "X$found_dir"; then
30126 haveit=yes
30127 break
30129 done
30130 if test -z "$haveit"; then
30131 ltrpathdirs="$ltrpathdirs $found_dir"
30133 if test "$hardcode_direct" = yes; then
30134 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
30135 else
30136 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
30137 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
30138 haveit=
30139 for x in $rpathdirs; do
30140 if test "X$x" = "X$found_dir"; then
30141 haveit=yes
30142 break
30144 done
30145 if test -z "$haveit"; then
30146 rpathdirs="$rpathdirs $found_dir"
30148 else
30149 haveit=
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"
30156 eval x=\"$x\"
30157 exec_prefix="$acl_save_exec_prefix"
30158 prefix="$acl_save_prefix"
30160 if test "X$x" = "X-L$found_dir"; then
30161 haveit=yes
30162 break
30164 done
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"
30170 else
30171 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
30176 else
30177 if test "X$found_a" != "X"; then
30178 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
30179 else
30180 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
30183 additional_includedir=
30184 case "$found_dir" in
30185 */lib | */lib/)
30186 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
30187 additional_includedir="$basedir/include"
30189 esac
30190 if test "X$additional_includedir" != "X"; then
30191 if test "X$additional_includedir" != "X/usr/include"; then
30192 haveit=
30193 if test "X$additional_includedir" = "X/usr/local/include"; then
30194 if test -n "$GCC"; then
30195 case $host_os in
30196 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
30197 esac
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"
30207 eval x=\"$x\"
30208 exec_prefix="$acl_save_exec_prefix"
30209 prefix="$acl_save_prefix"
30211 if test "X$x" = "X-I$additional_includedir"; then
30212 haveit=yes
30213 break
30215 done
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" ;;
30229 esac
30230 libdir="$save_libdir"
30231 for dep in $dependency_libs; do
30232 case "$dep" in
30233 -L*)
30234 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
30235 if test "X$additional_libdir" != "X/usr/lib"; then
30236 haveit=
30237 if test "X$additional_libdir" = "X/usr/local/lib"; then
30238 if test -n "$GCC"; then
30239 case $host_os in
30240 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
30241 esac
30244 if test -z "$haveit"; then
30245 haveit=
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"
30252 eval x=\"$x\"
30253 exec_prefix="$acl_save_exec_prefix"
30254 prefix="$acl_save_prefix"
30256 if test "X$x" = "X-L$additional_libdir"; then
30257 haveit=yes
30258 break
30260 done
30261 if test -z "$haveit"; then
30262 if test -d "$additional_libdir"; then
30263 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
30266 haveit=
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"
30273 eval x=\"$x\"
30274 exec_prefix="$acl_save_exec_prefix"
30275 prefix="$acl_save_prefix"
30277 if test "X$x" = "X-L$additional_libdir"; then
30278 haveit=yes
30279 break
30281 done
30282 if test -z "$haveit"; then
30283 if test -d "$additional_libdir"; then
30284 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
30290 -R*)
30291 dir=`echo "X$dep" | sed -e 's/^X-R//'`
30292 if test "$enable_rpath" != no; then
30293 haveit=
30294 for x in $rpathdirs; do
30295 if test "X$x" = "X$dir"; then
30296 haveit=yes
30297 break
30299 done
30300 if test -z "$haveit"; then
30301 rpathdirs="$rpathdirs $dir"
30303 haveit=
30304 for x in $ltrpathdirs; do
30305 if test "X$x" = "X$dir"; then
30306 haveit=yes
30307 break
30309 done
30310 if test -z "$haveit"; then
30311 ltrpathdirs="$ltrpathdirs $dir"
30315 -l*)
30316 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
30318 *.la)
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"
30325 esac
30326 done
30328 else
30329 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
30330 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
30334 done
30335 done
30336 if test "X$rpathdirs" != "X"; then
30337 if test -n "$hardcode_libdir_separator"; then
30338 alldirs=
30339 for found_dir in $rpathdirs; do
30340 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
30341 done
30342 acl_save_libdir="$libdir"
30343 libdir="$alldirs"
30344 eval flag=\"$hardcode_libdir_flag_spec\"
30345 libdir="$acl_save_libdir"
30346 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
30347 else
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"
30354 done
30357 if test "X$ltrpathdirs" != "X"; then
30358 for found_dir in $ltrpathdirs; do
30359 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
30360 done
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
30384 else
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
30390 /* confdefs.h. */
30391 _ACEOF
30392 cat confdefs.h >>conftest.$ac_ext
30393 cat >>conftest.$ac_ext <<_ACEOF
30394 /* end confdefs.h. */
30395 #include <CFPreferences.h>
30397 main ()
30399 CFPreferencesCopyAppValue(NULL, NULL)
30401 return 0;
30403 _ACEOF
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;;
30409 esac
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
30413 ac_status=$?
30414 grep -v '^ *+' conftest.er1 >conftest.err
30415 rm -f conftest.er1
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
30424 }; then
30425 gt_cv_func_CFPreferencesCopyAppValue=yes
30426 else
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
30445 _ACEOF
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
30452 else
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
30458 /* confdefs.h. */
30459 _ACEOF
30460 cat confdefs.h >>conftest.$ac_ext
30461 cat >>conftest.$ac_ext <<_ACEOF
30462 /* end confdefs.h. */
30463 #include <CFLocale.h>
30465 main ()
30467 CFLocaleCopyCurrent();
30469 return 0;
30471 _ACEOF
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;;
30477 esac
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
30481 ac_status=$?
30482 grep -v '^ *+' conftest.er1 >conftest.err
30483 rm -f conftest.er1
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
30492 }; then
30493 gt_cv_func_CFLocaleCopyCurrent=yes
30494 else
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
30513 _ACEOF
30516 INTL_MACOSX_LIBS=
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
30529 else
30530 USE_NLS=yes
30533 { $as_echo "$as_me:$LINENO: result: $USE_NLS" >&5
30534 $as_echo "$USE_NLS" >&6; }
30539 LIBINTL=
30540 LTLIBINTL=
30541 POSUB=
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
30555 else
30556 cat >conftest.$ac_ext <<_ACEOF
30557 /* confdefs.h. */
30558 _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;
30566 main ()
30568 bindtextdomain ("", "");
30569 return * gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings
30571 return 0;
30573 _ACEOF
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;;
30579 esac
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
30583 ac_status=$?
30584 grep -v '^ *+' conftest.er1 >conftest.err
30585 rm -f conftest.er1
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
30594 }; then
30595 gt_cv_func_gnugettext1_libc=yes
30596 else
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
30619 haveit=
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"
30626 eval x=\"$x\"
30627 exec_prefix="$acl_save_exec_prefix"
30628 prefix="$acl_save_prefix"
30630 if test "X$x" = "X$element"; then
30631 haveit=yes
30632 break
30634 done
30635 if test -z "$haveit"; then
30636 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
30638 done
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
30645 else
30647 am_cv_func_iconv="no, consider installing GNU libiconv"
30648 am_cv_lib_iconv=no
30649 cat >conftest.$ac_ext <<_ACEOF
30650 /* confdefs.h. */
30651 _ACEOF
30652 cat confdefs.h >>conftest.$ac_ext
30653 cat >>conftest.$ac_ext <<_ACEOF
30654 /* end confdefs.h. */
30655 #include <stdlib.h>
30656 #include <iconv.h>
30658 main ()
30660 iconv_t cd = iconv_open("","");
30661 iconv(cd,NULL,NULL,NULL,NULL);
30662 iconv_close(cd);
30664 return 0;
30666 _ACEOF
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;;
30672 esac
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
30676 ac_status=$?
30677 grep -v '^ *+' conftest.er1 >conftest.err
30678 rm -f conftest.er1
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
30687 }; then
30688 am_cv_func_iconv=yes
30689 else
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
30703 /* confdefs.h. */
30704 _ACEOF
30705 cat confdefs.h >>conftest.$ac_ext
30706 cat >>conftest.$ac_ext <<_ACEOF
30707 /* end confdefs.h. */
30708 #include <stdlib.h>
30709 #include <iconv.h>
30711 main ()
30713 iconv_t cd = iconv_open("","");
30714 iconv(cd,NULL,NULL,NULL,NULL);
30715 iconv_close(cd);
30717 return 0;
30719 _ACEOF
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;;
30725 esac
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
30729 ac_status=$?
30730 grep -v '^ *+' conftest.er1 >conftest.err
30731 rm -f conftest.er1
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
30740 }; then
30741 am_cv_lib_iconv=yes
30742 am_cv_func_iconv=yes
30743 else
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
30763 _ACEOF
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; }
30771 else
30772 CPPFLAGS="$am_save_CPPFLAGS"
30773 LIBICONV=
30774 LTLIBICONV=
30782 use_additional=yes
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
30800 use_additional=no
30801 else
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"
30815 else
30816 additional_includedir="$withval/include"
30817 additional_libdir="$withval/lib"
30823 LIBINTL=
30824 LTLIBINTL=
30825 INCINTL=
30826 rpathdirs=
30827 ltrpathdirs=
30828 names_already_handled=
30829 names_next_round='intl '
30830 while test -n "$names_next_round"; do
30831 names_this_round="$names_next_round"
30832 names_next_round=
30833 for name in $names_this_round; do
30834 already_handled=
30835 for n in $names_already_handled; do
30836 if test "$n" = "$name"; then
30837 already_handled=yes
30838 break
30840 done
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"
30851 else
30854 else
30855 found_dir=
30856 found_la=
30857 found_so=
30858 found_a=
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"
30866 else
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"
30883 eval x=\"$x\"
30884 exec_prefix="$acl_save_exec_prefix"
30885 prefix="$acl_save_prefix"
30887 case "$x" in
30888 -L*)
30889 dir=`echo "X$x" | sed -e 's/^X-L//'`
30890 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
30891 found_dir="$dir"
30892 found_so="$dir/lib$name.$shlibext"
30893 if test -f "$dir/lib$name.la"; then
30894 found_la="$dir/lib$name.la"
30896 else
30897 if test -f "$dir/lib$name.$libext"; then
30898 found_dir="$dir"
30899 found_a="$dir/lib$name.$libext"
30900 if test -f "$dir/lib$name.la"; then
30901 found_la="$dir/lib$name.la"
30906 esac
30907 if test "X$found_dir" != "X"; then
30908 break
30910 done
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"
30917 else
30918 haveit=
30919 for x in $ltrpathdirs; do
30920 if test "X$x" = "X$found_dir"; then
30921 haveit=yes
30922 break
30924 done
30925 if test -z "$haveit"; then
30926 ltrpathdirs="$ltrpathdirs $found_dir"
30928 if test "$hardcode_direct" = yes; then
30929 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
30930 else
30931 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
30932 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
30933 haveit=
30934 for x in $rpathdirs; do
30935 if test "X$x" = "X$found_dir"; then
30936 haveit=yes
30937 break
30939 done
30940 if test -z "$haveit"; then
30941 rpathdirs="$rpathdirs $found_dir"
30943 else
30944 haveit=
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"
30951 eval x=\"$x\"
30952 exec_prefix="$acl_save_exec_prefix"
30953 prefix="$acl_save_prefix"
30955 if test "X$x" = "X-L$found_dir"; then
30956 haveit=yes
30957 break
30959 done
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"
30965 else
30966 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
30971 else
30972 if test "X$found_a" != "X"; then
30973 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
30974 else
30975 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
30978 additional_includedir=
30979 case "$found_dir" in
30980 */lib | */lib/)
30981 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
30982 additional_includedir="$basedir/include"
30984 esac
30985 if test "X$additional_includedir" != "X"; then
30986 if test "X$additional_includedir" != "X/usr/include"; then
30987 haveit=
30988 if test "X$additional_includedir" = "X/usr/local/include"; then
30989 if test -n "$GCC"; then
30990 case $host_os in
30991 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
30992 esac
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"
31002 eval x=\"$x\"
31003 exec_prefix="$acl_save_exec_prefix"
31004 prefix="$acl_save_prefix"
31006 if test "X$x" = "X-I$additional_includedir"; then
31007 haveit=yes
31008 break
31010 done
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" ;;
31024 esac
31025 libdir="$save_libdir"
31026 for dep in $dependency_libs; do
31027 case "$dep" in
31028 -L*)
31029 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
31030 if test "X$additional_libdir" != "X/usr/lib"; then
31031 haveit=
31032 if test "X$additional_libdir" = "X/usr/local/lib"; then
31033 if test -n "$GCC"; then
31034 case $host_os in
31035 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
31036 esac
31039 if test -z "$haveit"; then
31040 haveit=
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"
31047 eval x=\"$x\"
31048 exec_prefix="$acl_save_exec_prefix"
31049 prefix="$acl_save_prefix"
31051 if test "X$x" = "X-L$additional_libdir"; then
31052 haveit=yes
31053 break
31055 done
31056 if test -z "$haveit"; then
31057 if test -d "$additional_libdir"; then
31058 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
31061 haveit=
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"
31068 eval x=\"$x\"
31069 exec_prefix="$acl_save_exec_prefix"
31070 prefix="$acl_save_prefix"
31072 if test "X$x" = "X-L$additional_libdir"; then
31073 haveit=yes
31074 break
31076 done
31077 if test -z "$haveit"; then
31078 if test -d "$additional_libdir"; then
31079 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
31085 -R*)
31086 dir=`echo "X$dep" | sed -e 's/^X-R//'`
31087 if test "$enable_rpath" != no; then
31088 haveit=
31089 for x in $rpathdirs; do
31090 if test "X$x" = "X$dir"; then
31091 haveit=yes
31092 break
31094 done
31095 if test -z "$haveit"; then
31096 rpathdirs="$rpathdirs $dir"
31098 haveit=
31099 for x in $ltrpathdirs; do
31100 if test "X$x" = "X$dir"; then
31101 haveit=yes
31102 break
31104 done
31105 if test -z "$haveit"; then
31106 ltrpathdirs="$ltrpathdirs $dir"
31110 -l*)
31111 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
31113 *.la)
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"
31120 esac
31121 done
31123 else
31124 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
31125 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
31129 done
31130 done
31131 if test "X$rpathdirs" != "X"; then
31132 if test -n "$hardcode_libdir_separator"; then
31133 alldirs=
31134 for found_dir in $rpathdirs; do
31135 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
31136 done
31137 acl_save_libdir="$libdir"
31138 libdir="$alldirs"
31139 eval flag=\"$hardcode_libdir_flag_spec\"
31140 libdir="$acl_save_libdir"
31141 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
31142 else
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"
31149 done
31152 if test "X$ltrpathdirs" != "X"; then
31153 for found_dir in $ltrpathdirs; do
31154 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
31155 done
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
31162 else
31163 gt_save_CPPFLAGS="$CPPFLAGS"
31164 CPPFLAGS="$CPPFLAGS $INCINTL"
31165 gt_save_LIBS="$LIBS"
31166 LIBS="$LIBS $LIBINTL"
31167 cat >conftest.$ac_ext <<_ACEOF
31168 /* confdefs.h. */
31169 _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;
31175 extern
31176 #ifdef __cplusplus
31178 #endif
31179 const char *_nl_expand_alias (const char *);
31181 main ()
31183 bindtextdomain ("", "");
31184 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
31186 return 0;
31188 _ACEOF
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;;
31194 esac
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
31198 ac_status=$?
31199 grep -v '^ *+' conftest.er1 >conftest.err
31200 rm -f conftest.er1
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
31209 }; then
31210 gt_cv_func_gnugettext1_libintl=yes
31211 else
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
31224 /* confdefs.h. */
31225 _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;
31231 extern
31232 #ifdef __cplusplus
31234 #endif
31235 const char *_nl_expand_alias (const char *);
31237 main ()
31239 bindtextdomain ("", "");
31240 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
31242 return 0;
31244 _ACEOF
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;;
31250 esac
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
31254 ac_status=$?
31255 grep -v '^ *+' conftest.er1 >conftest.err
31256 rm -f conftest.er1
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
31265 }; then
31266 LIBINTL="$LIBINTL $LIBICONV"
31267 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
31268 gt_cv_func_gnugettext1_libintl=yes
31270 else
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
31293 else
31294 LIBINTL=
31295 LTLIBINTL=
31296 INCINTL=
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
31314 _ACEOF
31316 else
31317 USE_NLS=no
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"
31331 else
31332 gt_source="libc"
31334 else
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
31351 haveit=
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"
31358 eval x=\"$x\"
31359 exec_prefix="$acl_save_exec_prefix"
31360 prefix="$acl_save_prefix"
31362 if test "X$x" = "X$element"; then
31363 haveit=yes
31364 break
31366 done
31367 if test -z "$haveit"; then
31368 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
31370 done
31375 cat >>confdefs.h <<\_ACEOF
31376 #define HAVE_GETTEXT 1
31377 _ACEOF
31380 cat >>confdefs.h <<\_ACEOF
31381 #define HAVE_DCGETTEXT 1
31382 _ACEOF
31386 POSUB=po
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
31403 else
31404 cat >conftest.$ac_ext <<_ACEOF
31405 /* confdefs.h. */
31406 _ACEOF
31407 cat confdefs.h >>conftest.$ac_ext
31408 cat >>conftest.$ac_ext <<_ACEOF
31409 /* end confdefs.h. */
31410 $ac_includes_default
31412 main ()
31414 #ifndef strerror_r
31415 (void) strerror_r;
31416 #endif
31419 return 0;
31421 _ACEOF
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;;
31427 esac
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
31431 ac_status=$?
31432 grep -v '^ *+' conftest.er1 >conftest.err
31433 rm -f conftest.er1
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
31441 else
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
31456 _ACEOF
31459 else
31460 cat >>confdefs.h <<_ACEOF
31461 #define HAVE_DECL_STRERROR_R 0
31462 _ACEOF
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
31476 else
31477 cat >conftest.$ac_ext <<_ACEOF
31478 /* confdefs.h. */
31479 _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. */
31492 #ifdef __STDC__
31493 # include <limits.h>
31494 #else
31495 # include <assert.h>
31496 #endif
31498 #undef $ac_func
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. */
31503 #ifdef __cplusplus
31504 extern "C"
31505 #endif
31506 char $ac_func ();
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
31511 choke me
31512 #endif
31515 main ()
31517 return $ac_func ();
31519 return 0;
31521 _ACEOF
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;;
31527 esac
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
31531 ac_status=$?
31532 grep -v '^ *+' conftest.er1 >conftest.err
31533 rm -f conftest.er1
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
31542 }; then
31543 eval "$as_ac_var=yes"
31544 else
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
31564 _ACEOF
31567 done
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
31573 else
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
31578 /* confdefs.h. */
31579 _ACEOF
31580 cat confdefs.h >>conftest.$ac_ext
31581 cat >>conftest.$ac_ext <<_ACEOF
31582 /* end confdefs.h. */
31583 $ac_includes_default
31585 main ()
31588 char buf[100];
31589 char x = *strerror_r (0, buf, sizeof buf);
31590 char *p = strerror_r (0, buf, sizeof buf);
31591 return !p || x;
31594 return 0;
31596 _ACEOF
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;;
31602 esac
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
31606 ac_status=$?
31607 grep -v '^ *+' conftest.er1 >conftest.err
31608 rm -f conftest.er1
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
31616 else
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
31624 else
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
31633 else
31634 cat >conftest.$ac_ext <<_ACEOF
31635 /* confdefs.h. */
31636 _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 ();
31643 main ()
31645 char buf[100];
31646 char x = *strerror_r (0, buf, sizeof buf);
31647 return ! isalpha (x);
31649 return 0;
31651 _ACEOF
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;;
31657 esac
31658 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
31659 $as_echo "$ac_try_echo") >&5
31660 (eval "$ac_link") 2>&5
31661 ac_status=$?
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;;
31667 esac
31668 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
31669 $as_echo "$ac_try_echo") >&5
31670 (eval "$ac_try") 2>&5
31671 ac_status=$?
31672 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
31673 (exit $ac_status); }; }; then
31674 ac_cv_func_strerror_r_char_p=yes
31675 else
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
31695 _ACEOF
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' \
31707 || ac_type='long'
31709 cat >>confdefs.h <<_ACEOF
31710 #define intmax_t $ac_type
31711 _ACEOF
31713 else
31715 cat >>confdefs.h <<\_ACEOF
31716 #define HAVE_INTMAX_T 1
31717 _ACEOF
31727 GLOB_H=
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; }
31742 else
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
31747 /* confdefs.h. */
31748 _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>
31754 _ACEOF
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;;
31760 esac
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
31764 ac_status=$?
31765 grep -v '^ *+' conftest.er1 >conftest.err
31766 rm -f conftest.er1
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
31774 else
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
31789 /* confdefs.h. */
31790 _ACEOF
31791 cat confdefs.h >>conftest.$ac_ext
31792 cat >>conftest.$ac_ext <<_ACEOF
31793 /* end confdefs.h. */
31794 #include <$ac_header>
31795 _ACEOF
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;;
31800 esac
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
31804 ac_status=$?
31805 grep -v '^ *+' conftest.er1 >conftest.err
31806 rm -f conftest.er1
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
31812 }; then
31813 ac_header_preproc=yes
31814 else
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
31827 yes:no: )
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
31834 no: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;}
31847 ( cat <<\_ASBOX
31848 ## --------------------------------- ##
31849 ## Report this to bug-cvs@nongnu.org ##
31850 ## --------------------------------- ##
31851 _ASBOX
31852 ) | sed "s/^/$as_me: WARNING: /" >&2
31854 esac
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
31859 else
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
31873 _ACEOF
31875 else
31876 GLOB_H=glob.h
31879 done
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
31887 else
31888 cat >conftest.$ac_ext <<_ACEOF
31889 #include <gnu-versions.h>
31890 char a[_GNU_GLOB_INTERFACE_VERSION == 1 ? 1 : -1];
31891 _ACEOF
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;;
31897 esac
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
31901 ac_status=$?
31902 grep -v '^ *+' conftest.er1 >conftest.err
31903 rm -f conftest.er1
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
31911 else
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
31924 GLOB_H=glob.h
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
31933 else
31934 if ln -s conf-doesntexist conf$$-globtest 2>/dev/null; then
31935 gl_cv_glob_lists_symlinks=maybe
31936 else
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
31945 else
31946 cat >conftest.$ac_ext <<_ACEOF
31947 /* confdefs.h. */
31948 _ACEOF
31949 cat confdefs.h >>conftest.$ac_ext
31950 cat >>conftest.$ac_ext <<_ACEOF
31951 /* end confdefs.h. */
31952 #include <stddef.h>
31953 #include <glob.h>
31955 main ()
31957 glob_t found;
31958 if (glob ("conf*-globtest", 0, NULL, &found) == GLOB_NOMATCH) return 1;
31960 return 0;
31962 _ACEOF
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;;
31968 esac
31969 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
31970 $as_echo "$ac_try_echo") >&5
31971 (eval "$ac_link") 2>&5
31972 ac_status=$?
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;;
31978 esac
31979 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
31980 $as_echo "$ac_try_echo") >&5
31981 (eval "$ac_try") 2>&5
31982 ac_status=$?
31983 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
31984 (exit $ac_status); }; }; then
31985 gl_cv_glob_lists_symlinks=yes
31986 else
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
32005 GLOB_H=glob.h
32009 rm -f conf$$-globtest
32011 if test -n "$GLOB_H"; then
32033 GLOB_H=glob.h
32035 case " $LIBOBJS " in
32036 *" glob.$ac_objext "* ) ;;
32037 *) LIBOBJS="$LIBOBJS glob.$ac_objext"
32039 esac
32047 # End GNULIB stuff.
32052 # Check for function existance.
32078 for ac_func in \
32079 fchdir \
32080 fchmod \
32081 fsync \
32082 ftime \
32083 geteuid \
32084 getgroups \
32085 getpagesize \
32086 gettimeofday \
32087 initgroups \
32088 login \
32089 logout \
32090 mknod \
32091 regcomp \
32092 regerror \
32093 regexec \
32094 regfree \
32095 sigaction \
32096 sigblock \
32097 sigprocmask \
32098 sigsetmask \
32099 sigvec \
32100 timezone \
32101 tzset \
32102 vprintf \
32103 wait3 \
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
32111 else
32112 cat >conftest.$ac_ext <<_ACEOF
32113 /* confdefs.h. */
32114 _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. */
32127 #ifdef __STDC__
32128 # include <limits.h>
32129 #else
32130 # include <assert.h>
32131 #endif
32133 #undef $ac_func
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. */
32138 #ifdef __cplusplus
32139 extern "C"
32140 #endif
32141 char $ac_func ();
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
32146 choke me
32147 #endif
32150 main ()
32152 return $ac_func ();
32154 return 0;
32156 _ACEOF
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;;
32162 esac
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
32166 ac_status=$?
32167 grep -v '^ *+' conftest.er1 >conftest.err
32168 rm -f conftest.er1
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
32177 }; then
32178 eval "$as_ac_var=yes"
32179 else
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
32199 _ACEOF
32202 done
32205 if test $cross_compiling = yes ; then
32207 cat >>confdefs.h <<\_ACEOF
32208 #define CROSS_COMPILING 1
32209 _ACEOF
32211 else
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
32220 else
32221 if test "$cross_compiling" = yes; then
32222 # Depending upon the size, compute the lo and hi bounds.
32223 cat >conftest.$ac_ext <<_ACEOF
32224 /* confdefs.h. */
32225 _ACEOF
32226 cat confdefs.h >>conftest.$ac_ext
32227 cat >>conftest.$ac_ext <<_ACEOF
32228 /* end confdefs.h. */
32229 $ac_includes_default
32231 main ()
32233 static int test_array [1 - 2 * !(((long int) (sizeof (char))) >= 0)];
32234 test_array [0] = 0
32237 return 0;
32239 _ACEOF
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;;
32245 esac
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
32249 ac_status=$?
32250 grep -v '^ *+' conftest.er1 >conftest.err
32251 rm -f conftest.er1
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
32258 ac_lo=0 ac_mid=0
32259 while :; do
32260 cat >conftest.$ac_ext <<_ACEOF
32261 /* confdefs.h. */
32262 _ACEOF
32263 cat confdefs.h >>conftest.$ac_ext
32264 cat >>conftest.$ac_ext <<_ACEOF
32265 /* end confdefs.h. */
32266 $ac_includes_default
32268 main ()
32270 static int test_array [1 - 2 * !(((long int) (sizeof (char))) <= $ac_mid)];
32271 test_array [0] = 0
32274 return 0;
32276 _ACEOF
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;;
32282 esac
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
32286 ac_status=$?
32287 grep -v '^ *+' conftest.er1 >conftest.err
32288 rm -f conftest.er1
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
32296 else
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
32302 ac_lo= ac_hi=
32303 break
32305 ac_mid=`expr 2 '*' $ac_mid + 1`
32308 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32309 done
32310 else
32311 $as_echo "$as_me: failed program was:" >&5
32312 sed 's/^/| /' conftest.$ac_ext >&5
32314 cat >conftest.$ac_ext <<_ACEOF
32315 /* confdefs.h. */
32316 _ACEOF
32317 cat confdefs.h >>conftest.$ac_ext
32318 cat >>conftest.$ac_ext <<_ACEOF
32319 /* end confdefs.h. */
32320 $ac_includes_default
32322 main ()
32324 static int test_array [1 - 2 * !(((long int) (sizeof (char))) < 0)];
32325 test_array [0] = 0
32328 return 0;
32330 _ACEOF
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;;
32336 esac
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
32340 ac_status=$?
32341 grep -v '^ *+' conftest.er1 >conftest.err
32342 rm -f conftest.er1
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
32349 ac_hi=-1 ac_mid=-1
32350 while :; do
32351 cat >conftest.$ac_ext <<_ACEOF
32352 /* confdefs.h. */
32353 _ACEOF
32354 cat confdefs.h >>conftest.$ac_ext
32355 cat >>conftest.$ac_ext <<_ACEOF
32356 /* end confdefs.h. */
32357 $ac_includes_default
32359 main ()
32361 static int test_array [1 - 2 * !(((long int) (sizeof (char))) >= $ac_mid)];
32362 test_array [0] = 0
32365 return 0;
32367 _ACEOF
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;;
32373 esac
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
32377 ac_status=$?
32378 grep -v '^ *+' conftest.er1 >conftest.err
32379 rm -f conftest.er1
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
32387 else
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
32393 ac_lo= ac_hi=
32394 break
32396 ac_mid=`expr 2 '*' $ac_mid`
32399 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32400 done
32401 else
32402 $as_echo "$as_me: failed program was:" >&5
32403 sed 's/^/| /' conftest.$ac_ext >&5
32405 ac_lo= ac_hi=
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
32416 /* confdefs.h. */
32417 _ACEOF
32418 cat confdefs.h >>conftest.$ac_ext
32419 cat >>conftest.$ac_ext <<_ACEOF
32420 /* end confdefs.h. */
32421 $ac_includes_default
32423 main ()
32425 static int test_array [1 - 2 * !(((long int) (sizeof (char))) <= $ac_mid)];
32426 test_array [0] = 0
32429 return 0;
32431 _ACEOF
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;;
32437 esac
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
32441 ac_status=$?
32442 grep -v '^ *+' conftest.er1 >conftest.err
32443 rm -f conftest.er1
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
32450 ac_hi=$ac_mid
32451 else
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
32459 done
32460 case $ac_lo in
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; }; }; }
32470 else
32471 ac_cv_sizeof_char=0
32472 fi ;;
32473 esac
32474 else
32475 cat >conftest.$ac_ext <<_ACEOF
32476 /* confdefs.h. */
32477 _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)); }
32484 #include <stdio.h>
32485 #include <stdlib.h>
32487 main ()
32490 FILE *f = fopen ("conftest.val", "w");
32491 if (! f)
32492 return 1;
32493 if (((long int) (sizeof (char))) < 0)
32495 long int i = longval ();
32496 if (i != ((long int) (sizeof (char))))
32497 return 1;
32498 fprintf (f, "%ld", i);
32500 else
32502 unsigned long int i = ulongval ();
32503 if (i != ((long int) (sizeof (char))))
32504 return 1;
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;
32512 return 0;
32514 _ACEOF
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;;
32520 esac
32521 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
32522 $as_echo "$ac_try_echo") >&5
32523 (eval "$ac_link") 2>&5
32524 ac_status=$?
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;;
32530 esac
32531 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
32532 $as_echo "$ac_try_echo") >&5
32533 (eval "$ac_try") 2>&5
32534 ac_status=$?
32535 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
32536 (exit $ac_status); }; }; then
32537 ac_cv_sizeof_char=`cat conftest.val`
32538 else
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; }; }; }
32552 else
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
32559 rm -f conftest.val
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
32568 _ACEOF
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
32575 else
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
32579 else
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
32589 _ACEOF
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
32600 else
32601 if test "$cross_compiling" = yes; then
32602 # Depending upon the size, compute the lo and hi bounds.
32603 cat >conftest.$ac_ext <<_ACEOF
32604 /* confdefs.h. */
32605 _ACEOF
32606 cat confdefs.h >>conftest.$ac_ext
32607 cat >>conftest.$ac_ext <<_ACEOF
32608 /* end confdefs.h. */
32609 $ac_includes_default
32611 main ()
32613 static int test_array [1 - 2 * !(((long int) (sizeof (short))) >= 0)];
32614 test_array [0] = 0
32617 return 0;
32619 _ACEOF
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;;
32625 esac
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
32629 ac_status=$?
32630 grep -v '^ *+' conftest.er1 >conftest.err
32631 rm -f conftest.er1
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
32638 ac_lo=0 ac_mid=0
32639 while :; do
32640 cat >conftest.$ac_ext <<_ACEOF
32641 /* confdefs.h. */
32642 _ACEOF
32643 cat confdefs.h >>conftest.$ac_ext
32644 cat >>conftest.$ac_ext <<_ACEOF
32645 /* end confdefs.h. */
32646 $ac_includes_default
32648 main ()
32650 static int test_array [1 - 2 * !(((long int) (sizeof (short))) <= $ac_mid)];
32651 test_array [0] = 0
32654 return 0;
32656 _ACEOF
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;;
32662 esac
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
32666 ac_status=$?
32667 grep -v '^ *+' conftest.er1 >conftest.err
32668 rm -f conftest.er1
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
32676 else
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
32682 ac_lo= ac_hi=
32683 break
32685 ac_mid=`expr 2 '*' $ac_mid + 1`
32688 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32689 done
32690 else
32691 $as_echo "$as_me: failed program was:" >&5
32692 sed 's/^/| /' conftest.$ac_ext >&5
32694 cat >conftest.$ac_ext <<_ACEOF
32695 /* confdefs.h. */
32696 _ACEOF
32697 cat confdefs.h >>conftest.$ac_ext
32698 cat >>conftest.$ac_ext <<_ACEOF
32699 /* end confdefs.h. */
32700 $ac_includes_default
32702 main ()
32704 static int test_array [1 - 2 * !(((long int) (sizeof (short))) < 0)];
32705 test_array [0] = 0
32708 return 0;
32710 _ACEOF
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;;
32716 esac
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
32720 ac_status=$?
32721 grep -v '^ *+' conftest.er1 >conftest.err
32722 rm -f conftest.er1
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
32729 ac_hi=-1 ac_mid=-1
32730 while :; do
32731 cat >conftest.$ac_ext <<_ACEOF
32732 /* confdefs.h. */
32733 _ACEOF
32734 cat confdefs.h >>conftest.$ac_ext
32735 cat >>conftest.$ac_ext <<_ACEOF
32736 /* end confdefs.h. */
32737 $ac_includes_default
32739 main ()
32741 static int test_array [1 - 2 * !(((long int) (sizeof (short))) >= $ac_mid)];
32742 test_array [0] = 0
32745 return 0;
32747 _ACEOF
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;;
32753 esac
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
32757 ac_status=$?
32758 grep -v '^ *+' conftest.er1 >conftest.err
32759 rm -f conftest.er1
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
32767 else
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
32773 ac_lo= ac_hi=
32774 break
32776 ac_mid=`expr 2 '*' $ac_mid`
32779 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32780 done
32781 else
32782 $as_echo "$as_me: failed program was:" >&5
32783 sed 's/^/| /' conftest.$ac_ext >&5
32785 ac_lo= ac_hi=
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
32796 /* confdefs.h. */
32797 _ACEOF
32798 cat confdefs.h >>conftest.$ac_ext
32799 cat >>conftest.$ac_ext <<_ACEOF
32800 /* end confdefs.h. */
32801 $ac_includes_default
32803 main ()
32805 static int test_array [1 - 2 * !(((long int) (sizeof (short))) <= $ac_mid)];
32806 test_array [0] = 0
32809 return 0;
32811 _ACEOF
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;;
32817 esac
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
32821 ac_status=$?
32822 grep -v '^ *+' conftest.er1 >conftest.err
32823 rm -f conftest.er1
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
32830 ac_hi=$ac_mid
32831 else
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
32839 done
32840 case $ac_lo in
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; }; }; }
32850 else
32851 ac_cv_sizeof_short=0
32852 fi ;;
32853 esac
32854 else
32855 cat >conftest.$ac_ext <<_ACEOF
32856 /* confdefs.h. */
32857 _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)); }
32864 #include <stdio.h>
32865 #include <stdlib.h>
32867 main ()
32870 FILE *f = fopen ("conftest.val", "w");
32871 if (! f)
32872 return 1;
32873 if (((long int) (sizeof (short))) < 0)
32875 long int i = longval ();
32876 if (i != ((long int) (sizeof (short))))
32877 return 1;
32878 fprintf (f, "%ld", i);
32880 else
32882 unsigned long int i = ulongval ();
32883 if (i != ((long int) (sizeof (short))))
32884 return 1;
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;
32892 return 0;
32894 _ACEOF
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;;
32900 esac
32901 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
32902 $as_echo "$ac_try_echo") >&5
32903 (eval "$ac_link") 2>&5
32904 ac_status=$?
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;;
32910 esac
32911 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
32912 $as_echo "$ac_try_echo") >&5
32913 (eval "$ac_try") 2>&5
32914 ac_status=$?
32915 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
32916 (exit $ac_status); }; }; then
32917 ac_cv_sizeof_short=`cat conftest.val`
32918 else
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; }; }; }
32932 else
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
32939 rm -f conftest.val
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
32948 _ACEOF
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
32955 else
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
32959 else
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
32969 _ACEOF
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
32980 else
32981 if test "$cross_compiling" = yes; then
32982 # Depending upon the size, compute the lo and hi bounds.
32983 cat >conftest.$ac_ext <<_ACEOF
32984 /* confdefs.h. */
32985 _ACEOF
32986 cat confdefs.h >>conftest.$ac_ext
32987 cat >>conftest.$ac_ext <<_ACEOF
32988 /* end confdefs.h. */
32989 $ac_includes_default
32991 main ()
32993 static int test_array [1 - 2 * !(((long int) (sizeof (int))) >= 0)];
32994 test_array [0] = 0
32997 return 0;
32999 _ACEOF
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;;
33005 esac
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
33009 ac_status=$?
33010 grep -v '^ *+' conftest.er1 >conftest.err
33011 rm -f conftest.er1
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
33018 ac_lo=0 ac_mid=0
33019 while :; do
33020 cat >conftest.$ac_ext <<_ACEOF
33021 /* confdefs.h. */
33022 _ACEOF
33023 cat confdefs.h >>conftest.$ac_ext
33024 cat >>conftest.$ac_ext <<_ACEOF
33025 /* end confdefs.h. */
33026 $ac_includes_default
33028 main ()
33030 static int test_array [1 - 2 * !(((long int) (sizeof (int))) <= $ac_mid)];
33031 test_array [0] = 0
33034 return 0;
33036 _ACEOF
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;;
33042 esac
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
33046 ac_status=$?
33047 grep -v '^ *+' conftest.er1 >conftest.err
33048 rm -f conftest.er1
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
33056 else
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
33062 ac_lo= ac_hi=
33063 break
33065 ac_mid=`expr 2 '*' $ac_mid + 1`
33068 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33069 done
33070 else
33071 $as_echo "$as_me: failed program was:" >&5
33072 sed 's/^/| /' conftest.$ac_ext >&5
33074 cat >conftest.$ac_ext <<_ACEOF
33075 /* confdefs.h. */
33076 _ACEOF
33077 cat confdefs.h >>conftest.$ac_ext
33078 cat >>conftest.$ac_ext <<_ACEOF
33079 /* end confdefs.h. */
33080 $ac_includes_default
33082 main ()
33084 static int test_array [1 - 2 * !(((long int) (sizeof (int))) < 0)];
33085 test_array [0] = 0
33088 return 0;
33090 _ACEOF
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;;
33096 esac
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
33100 ac_status=$?
33101 grep -v '^ *+' conftest.er1 >conftest.err
33102 rm -f conftest.er1
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
33109 ac_hi=-1 ac_mid=-1
33110 while :; do
33111 cat >conftest.$ac_ext <<_ACEOF
33112 /* confdefs.h. */
33113 _ACEOF
33114 cat confdefs.h >>conftest.$ac_ext
33115 cat >>conftest.$ac_ext <<_ACEOF
33116 /* end confdefs.h. */
33117 $ac_includes_default
33119 main ()
33121 static int test_array [1 - 2 * !(((long int) (sizeof (int))) >= $ac_mid)];
33122 test_array [0] = 0
33125 return 0;
33127 _ACEOF
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;;
33133 esac
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
33137 ac_status=$?
33138 grep -v '^ *+' conftest.er1 >conftest.err
33139 rm -f conftest.er1
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
33147 else
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
33153 ac_lo= ac_hi=
33154 break
33156 ac_mid=`expr 2 '*' $ac_mid`
33159 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33160 done
33161 else
33162 $as_echo "$as_me: failed program was:" >&5
33163 sed 's/^/| /' conftest.$ac_ext >&5
33165 ac_lo= ac_hi=
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
33176 /* confdefs.h. */
33177 _ACEOF
33178 cat confdefs.h >>conftest.$ac_ext
33179 cat >>conftest.$ac_ext <<_ACEOF
33180 /* end confdefs.h. */
33181 $ac_includes_default
33183 main ()
33185 static int test_array [1 - 2 * !(((long int) (sizeof (int))) <= $ac_mid)];
33186 test_array [0] = 0
33189 return 0;
33191 _ACEOF
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;;
33197 esac
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
33201 ac_status=$?
33202 grep -v '^ *+' conftest.er1 >conftest.err
33203 rm -f conftest.er1
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
33210 ac_hi=$ac_mid
33211 else
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
33219 done
33220 case $ac_lo in
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; }; }; }
33230 else
33231 ac_cv_sizeof_int=0
33232 fi ;;
33233 esac
33234 else
33235 cat >conftest.$ac_ext <<_ACEOF
33236 /* confdefs.h. */
33237 _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)); }
33244 #include <stdio.h>
33245 #include <stdlib.h>
33247 main ()
33250 FILE *f = fopen ("conftest.val", "w");
33251 if (! f)
33252 return 1;
33253 if (((long int) (sizeof (int))) < 0)
33255 long int i = longval ();
33256 if (i != ((long int) (sizeof (int))))
33257 return 1;
33258 fprintf (f, "%ld", i);
33260 else
33262 unsigned long int i = ulongval ();
33263 if (i != ((long int) (sizeof (int))))
33264 return 1;
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;
33272 return 0;
33274 _ACEOF
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;;
33280 esac
33281 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
33282 $as_echo "$ac_try_echo") >&5
33283 (eval "$ac_link") 2>&5
33284 ac_status=$?
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;;
33290 esac
33291 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
33292 $as_echo "$ac_try_echo") >&5
33293 (eval "$ac_try") 2>&5
33294 ac_status=$?
33295 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
33296 (exit $ac_status); }; }; then
33297 ac_cv_sizeof_int=`cat conftest.val`
33298 else
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; }; }; }
33312 else
33313 ac_cv_sizeof_int=0
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
33319 rm -f conftest.val
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
33328 _ACEOF
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
33335 else
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
33339 else
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
33349 _ACEOF
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
33360 else
33361 if test "$cross_compiling" = yes; then
33362 # Depending upon the size, compute the lo and hi bounds.
33363 cat >conftest.$ac_ext <<_ACEOF
33364 /* confdefs.h. */
33365 _ACEOF
33366 cat confdefs.h >>conftest.$ac_ext
33367 cat >>conftest.$ac_ext <<_ACEOF
33368 /* end confdefs.h. */
33369 $ac_includes_default
33371 main ()
33373 static int test_array [1 - 2 * !(((long int) (sizeof (long))) >= 0)];
33374 test_array [0] = 0
33377 return 0;
33379 _ACEOF
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;;
33385 esac
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
33389 ac_status=$?
33390 grep -v '^ *+' conftest.er1 >conftest.err
33391 rm -f conftest.er1
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
33398 ac_lo=0 ac_mid=0
33399 while :; do
33400 cat >conftest.$ac_ext <<_ACEOF
33401 /* confdefs.h. */
33402 _ACEOF
33403 cat confdefs.h >>conftest.$ac_ext
33404 cat >>conftest.$ac_ext <<_ACEOF
33405 /* end confdefs.h. */
33406 $ac_includes_default
33408 main ()
33410 static int test_array [1 - 2 * !(((long int) (sizeof (long))) <= $ac_mid)];
33411 test_array [0] = 0
33414 return 0;
33416 _ACEOF
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;;
33422 esac
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
33426 ac_status=$?
33427 grep -v '^ *+' conftest.er1 >conftest.err
33428 rm -f conftest.er1
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
33436 else
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
33442 ac_lo= ac_hi=
33443 break
33445 ac_mid=`expr 2 '*' $ac_mid + 1`
33448 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33449 done
33450 else
33451 $as_echo "$as_me: failed program was:" >&5
33452 sed 's/^/| /' conftest.$ac_ext >&5
33454 cat >conftest.$ac_ext <<_ACEOF
33455 /* confdefs.h. */
33456 _ACEOF
33457 cat confdefs.h >>conftest.$ac_ext
33458 cat >>conftest.$ac_ext <<_ACEOF
33459 /* end confdefs.h. */
33460 $ac_includes_default
33462 main ()
33464 static int test_array [1 - 2 * !(((long int) (sizeof (long))) < 0)];
33465 test_array [0] = 0
33468 return 0;
33470 _ACEOF
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;;
33476 esac
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
33480 ac_status=$?
33481 grep -v '^ *+' conftest.er1 >conftest.err
33482 rm -f conftest.er1
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
33489 ac_hi=-1 ac_mid=-1
33490 while :; do
33491 cat >conftest.$ac_ext <<_ACEOF
33492 /* confdefs.h. */
33493 _ACEOF
33494 cat confdefs.h >>conftest.$ac_ext
33495 cat >>conftest.$ac_ext <<_ACEOF
33496 /* end confdefs.h. */
33497 $ac_includes_default
33499 main ()
33501 static int test_array [1 - 2 * !(((long int) (sizeof (long))) >= $ac_mid)];
33502 test_array [0] = 0
33505 return 0;
33507 _ACEOF
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;;
33513 esac
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
33517 ac_status=$?
33518 grep -v '^ *+' conftest.er1 >conftest.err
33519 rm -f conftest.er1
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
33527 else
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
33533 ac_lo= ac_hi=
33534 break
33536 ac_mid=`expr 2 '*' $ac_mid`
33539 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33540 done
33541 else
33542 $as_echo "$as_me: failed program was:" >&5
33543 sed 's/^/| /' conftest.$ac_ext >&5
33545 ac_lo= ac_hi=
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
33556 /* confdefs.h. */
33557 _ACEOF
33558 cat confdefs.h >>conftest.$ac_ext
33559 cat >>conftest.$ac_ext <<_ACEOF
33560 /* end confdefs.h. */
33561 $ac_includes_default
33563 main ()
33565 static int test_array [1 - 2 * !(((long int) (sizeof (long))) <= $ac_mid)];
33566 test_array [0] = 0
33569 return 0;
33571 _ACEOF
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;;
33577 esac
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
33581 ac_status=$?
33582 grep -v '^ *+' conftest.er1 >conftest.err
33583 rm -f conftest.er1
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
33590 ac_hi=$ac_mid
33591 else
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
33599 done
33600 case $ac_lo in
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; }; }; }
33610 else
33611 ac_cv_sizeof_long=0
33612 fi ;;
33613 esac
33614 else
33615 cat >conftest.$ac_ext <<_ACEOF
33616 /* confdefs.h. */
33617 _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)); }
33624 #include <stdio.h>
33625 #include <stdlib.h>
33627 main ()
33630 FILE *f = fopen ("conftest.val", "w");
33631 if (! f)
33632 return 1;
33633 if (((long int) (sizeof (long))) < 0)
33635 long int i = longval ();
33636 if (i != ((long int) (sizeof (long))))
33637 return 1;
33638 fprintf (f, "%ld", i);
33640 else
33642 unsigned long int i = ulongval ();
33643 if (i != ((long int) (sizeof (long))))
33644 return 1;
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;
33652 return 0;
33654 _ACEOF
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;;
33660 esac
33661 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
33662 $as_echo "$ac_try_echo") >&5
33663 (eval "$ac_link") 2>&5
33664 ac_status=$?
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;;
33670 esac
33671 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
33672 $as_echo "$ac_try_echo") >&5
33673 (eval "$ac_try") 2>&5
33674 ac_status=$?
33675 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
33676 (exit $ac_status); }; }; then
33677 ac_cv_sizeof_long=`cat conftest.val`
33678 else
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; }; }; }
33692 else
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
33699 rm -f conftest.val
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
33708 _ACEOF
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
33715 else
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
33719 else
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
33729 _ACEOF
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
33741 else
33742 if test "$cross_compiling" = yes; then
33743 # Depending upon the size, compute the lo and hi bounds.
33744 cat >conftest.$ac_ext <<_ACEOF
33745 /* confdefs.h. */
33746 _ACEOF
33747 cat confdefs.h >>conftest.$ac_ext
33748 cat >>conftest.$ac_ext <<_ACEOF
33749 /* end confdefs.h. */
33750 $ac_includes_default
33752 main ()
33754 static int test_array [1 - 2 * !(((long int) (sizeof (long long))) >= 0)];
33755 test_array [0] = 0
33758 return 0;
33760 _ACEOF
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;;
33766 esac
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
33770 ac_status=$?
33771 grep -v '^ *+' conftest.er1 >conftest.err
33772 rm -f conftest.er1
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
33779 ac_lo=0 ac_mid=0
33780 while :; do
33781 cat >conftest.$ac_ext <<_ACEOF
33782 /* confdefs.h. */
33783 _ACEOF
33784 cat confdefs.h >>conftest.$ac_ext
33785 cat >>conftest.$ac_ext <<_ACEOF
33786 /* end confdefs.h. */
33787 $ac_includes_default
33789 main ()
33791 static int test_array [1 - 2 * !(((long int) (sizeof (long long))) <= $ac_mid)];
33792 test_array [0] = 0
33795 return 0;
33797 _ACEOF
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;;
33803 esac
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
33807 ac_status=$?
33808 grep -v '^ *+' conftest.er1 >conftest.err
33809 rm -f conftest.er1
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
33817 else
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
33823 ac_lo= ac_hi=
33824 break
33826 ac_mid=`expr 2 '*' $ac_mid + 1`
33829 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33830 done
33831 else
33832 $as_echo "$as_me: failed program was:" >&5
33833 sed 's/^/| /' conftest.$ac_ext >&5
33835 cat >conftest.$ac_ext <<_ACEOF
33836 /* confdefs.h. */
33837 _ACEOF
33838 cat confdefs.h >>conftest.$ac_ext
33839 cat >>conftest.$ac_ext <<_ACEOF
33840 /* end confdefs.h. */
33841 $ac_includes_default
33843 main ()
33845 static int test_array [1 - 2 * !(((long int) (sizeof (long long))) < 0)];
33846 test_array [0] = 0
33849 return 0;
33851 _ACEOF
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;;
33857 esac
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
33861 ac_status=$?
33862 grep -v '^ *+' conftest.er1 >conftest.err
33863 rm -f conftest.er1
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
33870 ac_hi=-1 ac_mid=-1
33871 while :; do
33872 cat >conftest.$ac_ext <<_ACEOF
33873 /* confdefs.h. */
33874 _ACEOF
33875 cat confdefs.h >>conftest.$ac_ext
33876 cat >>conftest.$ac_ext <<_ACEOF
33877 /* end confdefs.h. */
33878 $ac_includes_default
33880 main ()
33882 static int test_array [1 - 2 * !(((long int) (sizeof (long long))) >= $ac_mid)];
33883 test_array [0] = 0
33886 return 0;
33888 _ACEOF
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;;
33894 esac
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
33898 ac_status=$?
33899 grep -v '^ *+' conftest.er1 >conftest.err
33900 rm -f conftest.er1
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
33908 else
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
33914 ac_lo= ac_hi=
33915 break
33917 ac_mid=`expr 2 '*' $ac_mid`
33920 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33921 done
33922 else
33923 $as_echo "$as_me: failed program was:" >&5
33924 sed 's/^/| /' conftest.$ac_ext >&5
33926 ac_lo= ac_hi=
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
33937 /* confdefs.h. */
33938 _ACEOF
33939 cat confdefs.h >>conftest.$ac_ext
33940 cat >>conftest.$ac_ext <<_ACEOF
33941 /* end confdefs.h. */
33942 $ac_includes_default
33944 main ()
33946 static int test_array [1 - 2 * !(((long int) (sizeof (long long))) <= $ac_mid)];
33947 test_array [0] = 0
33950 return 0;
33952 _ACEOF
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;;
33958 esac
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
33962 ac_status=$?
33963 grep -v '^ *+' conftest.er1 >conftest.err
33964 rm -f conftest.er1
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
33971 ac_hi=$ac_mid
33972 else
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
33980 done
33981 case $ac_lo in
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; }; }; }
33991 else
33992 ac_cv_sizeof_long_long=0
33993 fi ;;
33994 esac
33995 else
33996 cat >conftest.$ac_ext <<_ACEOF
33997 /* confdefs.h. */
33998 _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)); }
34005 #include <stdio.h>
34006 #include <stdlib.h>
34008 main ()
34011 FILE *f = fopen ("conftest.val", "w");
34012 if (! f)
34013 return 1;
34014 if (((long int) (sizeof (long long))) < 0)
34016 long int i = longval ();
34017 if (i != ((long int) (sizeof (long long))))
34018 return 1;
34019 fprintf (f, "%ld", i);
34021 else
34023 unsigned long int i = ulongval ();
34024 if (i != ((long int) (sizeof (long long))))
34025 return 1;
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;
34033 return 0;
34035 _ACEOF
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;;
34041 esac
34042 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
34043 $as_echo "$ac_try_echo") >&5
34044 (eval "$ac_link") 2>&5
34045 ac_status=$?
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;;
34051 esac
34052 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
34053 $as_echo "$ac_try_echo") >&5
34054 (eval "$ac_try") 2>&5
34055 ac_status=$?
34056 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
34057 (exit $ac_status); }; }; then
34058 ac_cv_sizeof_long_long=`cat conftest.val`
34059 else
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; }; }; }
34073 else
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
34080 rm -f conftest.val
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
34089 _ACEOF
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
34096 else
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
34100 else
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
34110 _ACEOF
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
34122 else
34123 if test "$cross_compiling" = yes; then
34124 # Depending upon the size, compute the lo and hi bounds.
34125 cat >conftest.$ac_ext <<_ACEOF
34126 /* confdefs.h. */
34127 _ACEOF
34128 cat confdefs.h >>conftest.$ac_ext
34129 cat >>conftest.$ac_ext <<_ACEOF
34130 /* end confdefs.h. */
34131 $ac_includes_default
34133 main ()
34135 static int test_array [1 - 2 * !(((long int) (sizeof (size_t))) >= 0)];
34136 test_array [0] = 0
34139 return 0;
34141 _ACEOF
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;;
34147 esac
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
34151 ac_status=$?
34152 grep -v '^ *+' conftest.er1 >conftest.err
34153 rm -f conftest.er1
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
34160 ac_lo=0 ac_mid=0
34161 while :; do
34162 cat >conftest.$ac_ext <<_ACEOF
34163 /* confdefs.h. */
34164 _ACEOF
34165 cat confdefs.h >>conftest.$ac_ext
34166 cat >>conftest.$ac_ext <<_ACEOF
34167 /* end confdefs.h. */
34168 $ac_includes_default
34170 main ()
34172 static int test_array [1 - 2 * !(((long int) (sizeof (size_t))) <= $ac_mid)];
34173 test_array [0] = 0
34176 return 0;
34178 _ACEOF
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;;
34184 esac
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
34188 ac_status=$?
34189 grep -v '^ *+' conftest.er1 >conftest.err
34190 rm -f conftest.er1
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
34198 else
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
34204 ac_lo= ac_hi=
34205 break
34207 ac_mid=`expr 2 '*' $ac_mid + 1`
34210 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34211 done
34212 else
34213 $as_echo "$as_me: failed program was:" >&5
34214 sed 's/^/| /' conftest.$ac_ext >&5
34216 cat >conftest.$ac_ext <<_ACEOF
34217 /* confdefs.h. */
34218 _ACEOF
34219 cat confdefs.h >>conftest.$ac_ext
34220 cat >>conftest.$ac_ext <<_ACEOF
34221 /* end confdefs.h. */
34222 $ac_includes_default
34224 main ()
34226 static int test_array [1 - 2 * !(((long int) (sizeof (size_t))) < 0)];
34227 test_array [0] = 0
34230 return 0;
34232 _ACEOF
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;;
34238 esac
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
34242 ac_status=$?
34243 grep -v '^ *+' conftest.er1 >conftest.err
34244 rm -f conftest.er1
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
34251 ac_hi=-1 ac_mid=-1
34252 while :; do
34253 cat >conftest.$ac_ext <<_ACEOF
34254 /* confdefs.h. */
34255 _ACEOF
34256 cat confdefs.h >>conftest.$ac_ext
34257 cat >>conftest.$ac_ext <<_ACEOF
34258 /* end confdefs.h. */
34259 $ac_includes_default
34261 main ()
34263 static int test_array [1 - 2 * !(((long int) (sizeof (size_t))) >= $ac_mid)];
34264 test_array [0] = 0
34267 return 0;
34269 _ACEOF
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;;
34275 esac
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
34279 ac_status=$?
34280 grep -v '^ *+' conftest.er1 >conftest.err
34281 rm -f conftest.er1
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
34289 else
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
34295 ac_lo= ac_hi=
34296 break
34298 ac_mid=`expr 2 '*' $ac_mid`
34301 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34302 done
34303 else
34304 $as_echo "$as_me: failed program was:" >&5
34305 sed 's/^/| /' conftest.$ac_ext >&5
34307 ac_lo= ac_hi=
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
34318 /* confdefs.h. */
34319 _ACEOF
34320 cat confdefs.h >>conftest.$ac_ext
34321 cat >>conftest.$ac_ext <<_ACEOF
34322 /* end confdefs.h. */
34323 $ac_includes_default
34325 main ()
34327 static int test_array [1 - 2 * !(((long int) (sizeof (size_t))) <= $ac_mid)];
34328 test_array [0] = 0
34331 return 0;
34333 _ACEOF
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;;
34339 esac
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
34343 ac_status=$?
34344 grep -v '^ *+' conftest.er1 >conftest.err
34345 rm -f conftest.er1
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
34352 ac_hi=$ac_mid
34353 else
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
34361 done
34362 case $ac_lo in
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; }; }; }
34372 else
34373 ac_cv_sizeof_size_t=0
34374 fi ;;
34375 esac
34376 else
34377 cat >conftest.$ac_ext <<_ACEOF
34378 /* confdefs.h. */
34379 _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)); }
34386 #include <stdio.h>
34387 #include <stdlib.h>
34389 main ()
34392 FILE *f = fopen ("conftest.val", "w");
34393 if (! f)
34394 return 1;
34395 if (((long int) (sizeof (size_t))) < 0)
34397 long int i = longval ();
34398 if (i != ((long int) (sizeof (size_t))))
34399 return 1;
34400 fprintf (f, "%ld", i);
34402 else
34404 unsigned long int i = ulongval ();
34405 if (i != ((long int) (sizeof (size_t))))
34406 return 1;
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;
34414 return 0;
34416 _ACEOF
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;;
34422 esac
34423 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
34424 $as_echo "$ac_try_echo") >&5
34425 (eval "$ac_link") 2>&5
34426 ac_status=$?
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;;
34432 esac
34433 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
34434 $as_echo "$ac_try_echo") >&5
34435 (eval "$ac_try") 2>&5
34436 ac_status=$?
34437 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
34438 (exit $ac_status); }; }; then
34439 ac_cv_sizeof_size_t=`cat conftest.val`
34440 else
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; }; }; }
34454 else
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
34461 rm -f conftest.val
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
34470 _ACEOF
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
34477 else
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
34481 else
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
34491 _ACEOF
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
34502 else
34503 if test "$cross_compiling" = yes; then
34504 # Depending upon the size, compute the lo and hi bounds.
34505 cat >conftest.$ac_ext <<_ACEOF
34506 /* confdefs.h. */
34507 _ACEOF
34508 cat confdefs.h >>conftest.$ac_ext
34509 cat >>conftest.$ac_ext <<_ACEOF
34510 /* end confdefs.h. */
34511 $ac_includes_default
34513 main ()
34515 static int test_array [1 - 2 * !(((long int) (sizeof (ptrdiff_t))) >= 0)];
34516 test_array [0] = 0
34519 return 0;
34521 _ACEOF
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;;
34527 esac
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
34531 ac_status=$?
34532 grep -v '^ *+' conftest.er1 >conftest.err
34533 rm -f conftest.er1
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
34540 ac_lo=0 ac_mid=0
34541 while :; do
34542 cat >conftest.$ac_ext <<_ACEOF
34543 /* confdefs.h. */
34544 _ACEOF
34545 cat confdefs.h >>conftest.$ac_ext
34546 cat >>conftest.$ac_ext <<_ACEOF
34547 /* end confdefs.h. */
34548 $ac_includes_default
34550 main ()
34552 static int test_array [1 - 2 * !(((long int) (sizeof (ptrdiff_t))) <= $ac_mid)];
34553 test_array [0] = 0
34556 return 0;
34558 _ACEOF
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;;
34564 esac
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
34568 ac_status=$?
34569 grep -v '^ *+' conftest.er1 >conftest.err
34570 rm -f conftest.er1
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
34578 else
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
34584 ac_lo= ac_hi=
34585 break
34587 ac_mid=`expr 2 '*' $ac_mid + 1`
34590 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34591 done
34592 else
34593 $as_echo "$as_me: failed program was:" >&5
34594 sed 's/^/| /' conftest.$ac_ext >&5
34596 cat >conftest.$ac_ext <<_ACEOF
34597 /* confdefs.h. */
34598 _ACEOF
34599 cat confdefs.h >>conftest.$ac_ext
34600 cat >>conftest.$ac_ext <<_ACEOF
34601 /* end confdefs.h. */
34602 $ac_includes_default
34604 main ()
34606 static int test_array [1 - 2 * !(((long int) (sizeof (ptrdiff_t))) < 0)];
34607 test_array [0] = 0
34610 return 0;
34612 _ACEOF
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;;
34618 esac
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
34622 ac_status=$?
34623 grep -v '^ *+' conftest.er1 >conftest.err
34624 rm -f conftest.er1
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
34631 ac_hi=-1 ac_mid=-1
34632 while :; do
34633 cat >conftest.$ac_ext <<_ACEOF
34634 /* confdefs.h. */
34635 _ACEOF
34636 cat confdefs.h >>conftest.$ac_ext
34637 cat >>conftest.$ac_ext <<_ACEOF
34638 /* end confdefs.h. */
34639 $ac_includes_default
34641 main ()
34643 static int test_array [1 - 2 * !(((long int) (sizeof (ptrdiff_t))) >= $ac_mid)];
34644 test_array [0] = 0
34647 return 0;
34649 _ACEOF
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;;
34655 esac
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
34659 ac_status=$?
34660 grep -v '^ *+' conftest.er1 >conftest.err
34661 rm -f conftest.er1
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
34669 else
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
34675 ac_lo= ac_hi=
34676 break
34678 ac_mid=`expr 2 '*' $ac_mid`
34681 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34682 done
34683 else
34684 $as_echo "$as_me: failed program was:" >&5
34685 sed 's/^/| /' conftest.$ac_ext >&5
34687 ac_lo= ac_hi=
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
34698 /* confdefs.h. */
34699 _ACEOF
34700 cat confdefs.h >>conftest.$ac_ext
34701 cat >>conftest.$ac_ext <<_ACEOF
34702 /* end confdefs.h. */
34703 $ac_includes_default
34705 main ()
34707 static int test_array [1 - 2 * !(((long int) (sizeof (ptrdiff_t))) <= $ac_mid)];
34708 test_array [0] = 0
34711 return 0;
34713 _ACEOF
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;;
34719 esac
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
34723 ac_status=$?
34724 grep -v '^ *+' conftest.er1 >conftest.err
34725 rm -f conftest.er1
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
34732 ac_hi=$ac_mid
34733 else
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
34741 done
34742 case $ac_lo in
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; }; }; }
34752 else
34753 ac_cv_sizeof_ptrdiff_t=0
34754 fi ;;
34755 esac
34756 else
34757 cat >conftest.$ac_ext <<_ACEOF
34758 /* confdefs.h. */
34759 _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)); }
34766 #include <stdio.h>
34767 #include <stdlib.h>
34769 main ()
34772 FILE *f = fopen ("conftest.val", "w");
34773 if (! f)
34774 return 1;
34775 if (((long int) (sizeof (ptrdiff_t))) < 0)
34777 long int i = longval ();
34778 if (i != ((long int) (sizeof (ptrdiff_t))))
34779 return 1;
34780 fprintf (f, "%ld", i);
34782 else
34784 unsigned long int i = ulongval ();
34785 if (i != ((long int) (sizeof (ptrdiff_t))))
34786 return 1;
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;
34794 return 0;
34796 _ACEOF
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;;
34802 esac
34803 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
34804 $as_echo "$ac_try_echo") >&5
34805 (eval "$ac_link") 2>&5
34806 ac_status=$?
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;;
34812 esac
34813 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
34814 $as_echo "$ac_try_echo") >&5
34815 (eval "$ac_try") 2>&5
34816 ac_status=$?
34817 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
34818 (exit $ac_status); }; }; then
34819 ac_cv_sizeof_ptrdiff_t=`cat conftest.val`
34820 else
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; }; }; }
34834 else
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
34841 rm -f conftest.val
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
34850 _ACEOF
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
34857 else
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
34861 else
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
34871 _ACEOF
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
34883 else
34884 if test "$cross_compiling" = yes; then
34885 # Depending upon the size, compute the lo and hi bounds.
34886 cat >conftest.$ac_ext <<_ACEOF
34887 /* confdefs.h. */
34888 _ACEOF
34889 cat confdefs.h >>conftest.$ac_ext
34890 cat >>conftest.$ac_ext <<_ACEOF
34891 /* end confdefs.h. */
34892 #include <stdio.h>
34893 #include <wchar.h>
34897 main ()
34899 static int test_array [1 - 2 * !(((long int) (sizeof (wint_t))) >= 0)];
34900 test_array [0] = 0
34903 return 0;
34905 _ACEOF
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;;
34911 esac
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
34915 ac_status=$?
34916 grep -v '^ *+' conftest.er1 >conftest.err
34917 rm -f conftest.er1
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
34924 ac_lo=0 ac_mid=0
34925 while :; do
34926 cat >conftest.$ac_ext <<_ACEOF
34927 /* confdefs.h. */
34928 _ACEOF
34929 cat confdefs.h >>conftest.$ac_ext
34930 cat >>conftest.$ac_ext <<_ACEOF
34931 /* end confdefs.h. */
34932 #include <stdio.h>
34933 #include <wchar.h>
34937 main ()
34939 static int test_array [1 - 2 * !(((long int) (sizeof (wint_t))) <= $ac_mid)];
34940 test_array [0] = 0
34943 return 0;
34945 _ACEOF
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;;
34951 esac
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
34955 ac_status=$?
34956 grep -v '^ *+' conftest.er1 >conftest.err
34957 rm -f conftest.er1
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
34965 else
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
34971 ac_lo= ac_hi=
34972 break
34974 ac_mid=`expr 2 '*' $ac_mid + 1`
34977 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34978 done
34979 else
34980 $as_echo "$as_me: failed program was:" >&5
34981 sed 's/^/| /' conftest.$ac_ext >&5
34983 cat >conftest.$ac_ext <<_ACEOF
34984 /* confdefs.h. */
34985 _ACEOF
34986 cat confdefs.h >>conftest.$ac_ext
34987 cat >>conftest.$ac_ext <<_ACEOF
34988 /* end confdefs.h. */
34989 #include <stdio.h>
34990 #include <wchar.h>
34994 main ()
34996 static int test_array [1 - 2 * !(((long int) (sizeof (wint_t))) < 0)];
34997 test_array [0] = 0
35000 return 0;
35002 _ACEOF
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;;
35008 esac
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
35012 ac_status=$?
35013 grep -v '^ *+' conftest.er1 >conftest.err
35014 rm -f conftest.er1
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
35021 ac_hi=-1 ac_mid=-1
35022 while :; do
35023 cat >conftest.$ac_ext <<_ACEOF
35024 /* confdefs.h. */
35025 _ACEOF
35026 cat confdefs.h >>conftest.$ac_ext
35027 cat >>conftest.$ac_ext <<_ACEOF
35028 /* end confdefs.h. */
35029 #include <stdio.h>
35030 #include <wchar.h>
35034 main ()
35036 static int test_array [1 - 2 * !(((long int) (sizeof (wint_t))) >= $ac_mid)];
35037 test_array [0] = 0
35040 return 0;
35042 _ACEOF
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;;
35048 esac
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
35052 ac_status=$?
35053 grep -v '^ *+' conftest.er1 >conftest.err
35054 rm -f conftest.er1
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
35062 else
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
35068 ac_lo= ac_hi=
35069 break
35071 ac_mid=`expr 2 '*' $ac_mid`
35074 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35075 done
35076 else
35077 $as_echo "$as_me: failed program was:" >&5
35078 sed 's/^/| /' conftest.$ac_ext >&5
35080 ac_lo= ac_hi=
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
35091 /* confdefs.h. */
35092 _ACEOF
35093 cat confdefs.h >>conftest.$ac_ext
35094 cat >>conftest.$ac_ext <<_ACEOF
35095 /* end confdefs.h. */
35096 #include <stdio.h>
35097 #include <wchar.h>
35101 main ()
35103 static int test_array [1 - 2 * !(((long int) (sizeof (wint_t))) <= $ac_mid)];
35104 test_array [0] = 0
35107 return 0;
35109 _ACEOF
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;;
35115 esac
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
35119 ac_status=$?
35120 grep -v '^ *+' conftest.er1 >conftest.err
35121 rm -f conftest.er1
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
35128 ac_hi=$ac_mid
35129 else
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
35137 done
35138 case $ac_lo in
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; }; }; }
35148 else
35149 ac_cv_sizeof_wint_t=0
35150 fi ;;
35151 esac
35152 else
35153 cat >conftest.$ac_ext <<_ACEOF
35154 /* confdefs.h. */
35155 _ACEOF
35156 cat confdefs.h >>conftest.$ac_ext
35157 cat >>conftest.$ac_ext <<_ACEOF
35158 /* end confdefs.h. */
35159 #include <stdio.h>
35160 #include <wchar.h>
35163 static long int longval () { return (long int) (sizeof (wint_t)); }
35164 static unsigned long int ulongval () { return (long int) (sizeof (wint_t)); }
35165 #include <stdio.h>
35166 #include <stdlib.h>
35168 main ()
35171 FILE *f = fopen ("conftest.val", "w");
35172 if (! f)
35173 return 1;
35174 if (((long int) (sizeof (wint_t))) < 0)
35176 long int i = longval ();
35177 if (i != ((long int) (sizeof (wint_t))))
35178 return 1;
35179 fprintf (f, "%ld", i);
35181 else
35183 unsigned long int i = ulongval ();
35184 if (i != ((long int) (sizeof (wint_t))))
35185 return 1;
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;
35193 return 0;
35195 _ACEOF
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;;
35201 esac
35202 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
35203 $as_echo "$ac_try_echo") >&5
35204 (eval "$ac_link") 2>&5
35205 ac_status=$?
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;;
35211 esac
35212 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
35213 $as_echo "$ac_try_echo") >&5
35214 (eval "$ac_try") 2>&5
35215 ac_status=$?
35216 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
35217 (exit $ac_status); }; }; then
35218 ac_cv_sizeof_wint_t=`cat conftest.val`
35219 else
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; }; }; }
35233 else
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
35240 rm -f conftest.val
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
35249 _ACEOF
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
35256 else
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
35260 else
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
35270 _ACEOF
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
35283 else
35284 if test "$cross_compiling" = yes; then
35285 # Depending upon the size, compute the lo and hi bounds.
35286 cat >conftest.$ac_ext <<_ACEOF
35287 /* confdefs.h. */
35288 _ACEOF
35289 cat confdefs.h >>conftest.$ac_ext
35290 cat >>conftest.$ac_ext <<_ACEOF
35291 /* end confdefs.h. */
35292 #include <stdio.h>
35293 #ifdef HAVE_INTTYPES_H
35294 #include <inttypes.h>
35295 #else
35296 #ifdef HAVE_STDINT_H
35297 #include <stdint.h>
35298 #endif
35299 #endif
35303 main ()
35305 static int test_array [1 - 2 * !(((long int) (sizeof (intmax_t))) >= 0)];
35306 test_array [0] = 0
35309 return 0;
35311 _ACEOF
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;;
35317 esac
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
35321 ac_status=$?
35322 grep -v '^ *+' conftest.er1 >conftest.err
35323 rm -f conftest.er1
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
35330 ac_lo=0 ac_mid=0
35331 while :; do
35332 cat >conftest.$ac_ext <<_ACEOF
35333 /* confdefs.h. */
35334 _ACEOF
35335 cat confdefs.h >>conftest.$ac_ext
35336 cat >>conftest.$ac_ext <<_ACEOF
35337 /* end confdefs.h. */
35338 #include <stdio.h>
35339 #ifdef HAVE_INTTYPES_H
35340 #include <inttypes.h>
35341 #else
35342 #ifdef HAVE_STDINT_H
35343 #include <stdint.h>
35344 #endif
35345 #endif
35349 main ()
35351 static int test_array [1 - 2 * !(((long int) (sizeof (intmax_t))) <= $ac_mid)];
35352 test_array [0] = 0
35355 return 0;
35357 _ACEOF
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;;
35363 esac
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
35367 ac_status=$?
35368 grep -v '^ *+' conftest.er1 >conftest.err
35369 rm -f conftest.er1
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
35377 else
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
35383 ac_lo= ac_hi=
35384 break
35386 ac_mid=`expr 2 '*' $ac_mid + 1`
35389 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35390 done
35391 else
35392 $as_echo "$as_me: failed program was:" >&5
35393 sed 's/^/| /' conftest.$ac_ext >&5
35395 cat >conftest.$ac_ext <<_ACEOF
35396 /* confdefs.h. */
35397 _ACEOF
35398 cat confdefs.h >>conftest.$ac_ext
35399 cat >>conftest.$ac_ext <<_ACEOF
35400 /* end confdefs.h. */
35401 #include <stdio.h>
35402 #ifdef HAVE_INTTYPES_H
35403 #include <inttypes.h>
35404 #else
35405 #ifdef HAVE_STDINT_H
35406 #include <stdint.h>
35407 #endif
35408 #endif
35412 main ()
35414 static int test_array [1 - 2 * !(((long int) (sizeof (intmax_t))) < 0)];
35415 test_array [0] = 0
35418 return 0;
35420 _ACEOF
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;;
35426 esac
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
35430 ac_status=$?
35431 grep -v '^ *+' conftest.er1 >conftest.err
35432 rm -f conftest.er1
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
35439 ac_hi=-1 ac_mid=-1
35440 while :; do
35441 cat >conftest.$ac_ext <<_ACEOF
35442 /* confdefs.h. */
35443 _ACEOF
35444 cat confdefs.h >>conftest.$ac_ext
35445 cat >>conftest.$ac_ext <<_ACEOF
35446 /* end confdefs.h. */
35447 #include <stdio.h>
35448 #ifdef HAVE_INTTYPES_H
35449 #include <inttypes.h>
35450 #else
35451 #ifdef HAVE_STDINT_H
35452 #include <stdint.h>
35453 #endif
35454 #endif
35458 main ()
35460 static int test_array [1 - 2 * !(((long int) (sizeof (intmax_t))) >= $ac_mid)];
35461 test_array [0] = 0
35464 return 0;
35466 _ACEOF
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;;
35472 esac
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
35476 ac_status=$?
35477 grep -v '^ *+' conftest.er1 >conftest.err
35478 rm -f conftest.er1
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
35486 else
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
35492 ac_lo= ac_hi=
35493 break
35495 ac_mid=`expr 2 '*' $ac_mid`
35498 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35499 done
35500 else
35501 $as_echo "$as_me: failed program was:" >&5
35502 sed 's/^/| /' conftest.$ac_ext >&5
35504 ac_lo= ac_hi=
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
35515 /* confdefs.h. */
35516 _ACEOF
35517 cat confdefs.h >>conftest.$ac_ext
35518 cat >>conftest.$ac_ext <<_ACEOF
35519 /* end confdefs.h. */
35520 #include <stdio.h>
35521 #ifdef HAVE_INTTYPES_H
35522 #include <inttypes.h>
35523 #else
35524 #ifdef HAVE_STDINT_H
35525 #include <stdint.h>
35526 #endif
35527 #endif
35531 main ()
35533 static int test_array [1 - 2 * !(((long int) (sizeof (intmax_t))) <= $ac_mid)];
35534 test_array [0] = 0
35537 return 0;
35539 _ACEOF
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;;
35545 esac
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
35549 ac_status=$?
35550 grep -v '^ *+' conftest.er1 >conftest.err
35551 rm -f conftest.er1
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
35558 ac_hi=$ac_mid
35559 else
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
35567 done
35568 case $ac_lo in
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; }; }; }
35578 else
35579 ac_cv_sizeof_intmax_t=0
35580 fi ;;
35581 esac
35582 else
35583 cat >conftest.$ac_ext <<_ACEOF
35584 /* confdefs.h. */
35585 _ACEOF
35586 cat confdefs.h >>conftest.$ac_ext
35587 cat >>conftest.$ac_ext <<_ACEOF
35588 /* end confdefs.h. */
35589 #include <stdio.h>
35590 #ifdef HAVE_INTTYPES_H
35591 #include <inttypes.h>
35592 #else
35593 #ifdef HAVE_STDINT_H
35594 #include <stdint.h>
35595 #endif
35596 #endif
35599 static long int longval () { return (long int) (sizeof (intmax_t)); }
35600 static unsigned long int ulongval () { return (long int) (sizeof (intmax_t)); }
35601 #include <stdio.h>
35602 #include <stdlib.h>
35604 main ()
35607 FILE *f = fopen ("conftest.val", "w");
35608 if (! f)
35609 return 1;
35610 if (((long int) (sizeof (intmax_t))) < 0)
35612 long int i = longval ();
35613 if (i != ((long int) (sizeof (intmax_t))))
35614 return 1;
35615 fprintf (f, "%ld", i);
35617 else
35619 unsigned long int i = ulongval ();
35620 if (i != ((long int) (sizeof (intmax_t))))
35621 return 1;
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;
35629 return 0;
35631 _ACEOF
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;;
35637 esac
35638 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
35639 $as_echo "$ac_try_echo") >&5
35640 (eval "$ac_link") 2>&5
35641 ac_status=$?
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;;
35647 esac
35648 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
35649 $as_echo "$ac_try_echo") >&5
35650 (eval "$ac_try") 2>&5
35651 ac_status=$?
35652 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
35653 (exit $ac_status); }; }; then
35654 ac_cv_sizeof_intmax_t=`cat conftest.val`
35655 else
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; }; }; }
35669 else
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
35676 rm -f conftest.val
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
35685 _ACEOF
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
35692 else
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
35696 else
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
35706 _ACEOF
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
35719 else
35720 if test "$cross_compiling" = yes; then
35721 # Depending upon the size, compute the lo and hi bounds.
35722 cat >conftest.$ac_ext <<_ACEOF
35723 /* confdefs.h. */
35724 _ACEOF
35725 cat confdefs.h >>conftest.$ac_ext
35726 cat >>conftest.$ac_ext <<_ACEOF
35727 /* end confdefs.h. */
35728 $ac_includes_default
35730 main ()
35732 static int test_array [1 - 2 * !(((long int) (sizeof (float))) >= 0)];
35733 test_array [0] = 0
35736 return 0;
35738 _ACEOF
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;;
35744 esac
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
35748 ac_status=$?
35749 grep -v '^ *+' conftest.er1 >conftest.err
35750 rm -f conftest.er1
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
35757 ac_lo=0 ac_mid=0
35758 while :; do
35759 cat >conftest.$ac_ext <<_ACEOF
35760 /* confdefs.h. */
35761 _ACEOF
35762 cat confdefs.h >>conftest.$ac_ext
35763 cat >>conftest.$ac_ext <<_ACEOF
35764 /* end confdefs.h. */
35765 $ac_includes_default
35767 main ()
35769 static int test_array [1 - 2 * !(((long int) (sizeof (float))) <= $ac_mid)];
35770 test_array [0] = 0
35773 return 0;
35775 _ACEOF
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;;
35781 esac
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
35785 ac_status=$?
35786 grep -v '^ *+' conftest.er1 >conftest.err
35787 rm -f conftest.er1
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
35795 else
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
35801 ac_lo= ac_hi=
35802 break
35804 ac_mid=`expr 2 '*' $ac_mid + 1`
35807 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35808 done
35809 else
35810 $as_echo "$as_me: failed program was:" >&5
35811 sed 's/^/| /' conftest.$ac_ext >&5
35813 cat >conftest.$ac_ext <<_ACEOF
35814 /* confdefs.h. */
35815 _ACEOF
35816 cat confdefs.h >>conftest.$ac_ext
35817 cat >>conftest.$ac_ext <<_ACEOF
35818 /* end confdefs.h. */
35819 $ac_includes_default
35821 main ()
35823 static int test_array [1 - 2 * !(((long int) (sizeof (float))) < 0)];
35824 test_array [0] = 0
35827 return 0;
35829 _ACEOF
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;;
35835 esac
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
35839 ac_status=$?
35840 grep -v '^ *+' conftest.er1 >conftest.err
35841 rm -f conftest.er1
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
35848 ac_hi=-1 ac_mid=-1
35849 while :; do
35850 cat >conftest.$ac_ext <<_ACEOF
35851 /* confdefs.h. */
35852 _ACEOF
35853 cat confdefs.h >>conftest.$ac_ext
35854 cat >>conftest.$ac_ext <<_ACEOF
35855 /* end confdefs.h. */
35856 $ac_includes_default
35858 main ()
35860 static int test_array [1 - 2 * !(((long int) (sizeof (float))) >= $ac_mid)];
35861 test_array [0] = 0
35864 return 0;
35866 _ACEOF
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;;
35872 esac
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
35876 ac_status=$?
35877 grep -v '^ *+' conftest.er1 >conftest.err
35878 rm -f conftest.er1
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
35886 else
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
35892 ac_lo= ac_hi=
35893 break
35895 ac_mid=`expr 2 '*' $ac_mid`
35898 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35899 done
35900 else
35901 $as_echo "$as_me: failed program was:" >&5
35902 sed 's/^/| /' conftest.$ac_ext >&5
35904 ac_lo= ac_hi=
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
35915 /* confdefs.h. */
35916 _ACEOF
35917 cat confdefs.h >>conftest.$ac_ext
35918 cat >>conftest.$ac_ext <<_ACEOF
35919 /* end confdefs.h. */
35920 $ac_includes_default
35922 main ()
35924 static int test_array [1 - 2 * !(((long int) (sizeof (float))) <= $ac_mid)];
35925 test_array [0] = 0
35928 return 0;
35930 _ACEOF
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;;
35936 esac
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
35940 ac_status=$?
35941 grep -v '^ *+' conftest.er1 >conftest.err
35942 rm -f conftest.er1
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
35949 ac_hi=$ac_mid
35950 else
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
35958 done
35959 case $ac_lo in
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; }; }; }
35969 else
35970 ac_cv_sizeof_float=0
35971 fi ;;
35972 esac
35973 else
35974 cat >conftest.$ac_ext <<_ACEOF
35975 /* confdefs.h. */
35976 _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)); }
35983 #include <stdio.h>
35984 #include <stdlib.h>
35986 main ()
35989 FILE *f = fopen ("conftest.val", "w");
35990 if (! f)
35991 return 1;
35992 if (((long int) (sizeof (float))) < 0)
35994 long int i = longval ();
35995 if (i != ((long int) (sizeof (float))))
35996 return 1;
35997 fprintf (f, "%ld", i);
35999 else
36001 unsigned long int i = ulongval ();
36002 if (i != ((long int) (sizeof (float))))
36003 return 1;
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;
36011 return 0;
36013 _ACEOF
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;;
36019 esac
36020 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
36021 $as_echo "$ac_try_echo") >&5
36022 (eval "$ac_link") 2>&5
36023 ac_status=$?
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;;
36029 esac
36030 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
36031 $as_echo "$ac_try_echo") >&5
36032 (eval "$ac_try") 2>&5
36033 ac_status=$?
36034 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
36035 (exit $ac_status); }; }; then
36036 ac_cv_sizeof_float=`cat conftest.val`
36037 else
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; }; }; }
36051 else
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
36058 rm -f conftest.val
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
36067 _ACEOF
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
36074 else
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
36078 else
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
36088 _ACEOF
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
36099 else
36100 if test "$cross_compiling" = yes; then
36101 # Depending upon the size, compute the lo and hi bounds.
36102 cat >conftest.$ac_ext <<_ACEOF
36103 /* confdefs.h. */
36104 _ACEOF
36105 cat confdefs.h >>conftest.$ac_ext
36106 cat >>conftest.$ac_ext <<_ACEOF
36107 /* end confdefs.h. */
36108 $ac_includes_default
36110 main ()
36112 static int test_array [1 - 2 * !(((long int) (sizeof (double))) >= 0)];
36113 test_array [0] = 0
36116 return 0;
36118 _ACEOF
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;;
36124 esac
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
36128 ac_status=$?
36129 grep -v '^ *+' conftest.er1 >conftest.err
36130 rm -f conftest.er1
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
36137 ac_lo=0 ac_mid=0
36138 while :; do
36139 cat >conftest.$ac_ext <<_ACEOF
36140 /* confdefs.h. */
36141 _ACEOF
36142 cat confdefs.h >>conftest.$ac_ext
36143 cat >>conftest.$ac_ext <<_ACEOF
36144 /* end confdefs.h. */
36145 $ac_includes_default
36147 main ()
36149 static int test_array [1 - 2 * !(((long int) (sizeof (double))) <= $ac_mid)];
36150 test_array [0] = 0
36153 return 0;
36155 _ACEOF
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;;
36161 esac
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
36165 ac_status=$?
36166 grep -v '^ *+' conftest.er1 >conftest.err
36167 rm -f conftest.er1
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
36175 else
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
36181 ac_lo= ac_hi=
36182 break
36184 ac_mid=`expr 2 '*' $ac_mid + 1`
36187 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36188 done
36189 else
36190 $as_echo "$as_me: failed program was:" >&5
36191 sed 's/^/| /' conftest.$ac_ext >&5
36193 cat >conftest.$ac_ext <<_ACEOF
36194 /* confdefs.h. */
36195 _ACEOF
36196 cat confdefs.h >>conftest.$ac_ext
36197 cat >>conftest.$ac_ext <<_ACEOF
36198 /* end confdefs.h. */
36199 $ac_includes_default
36201 main ()
36203 static int test_array [1 - 2 * !(((long int) (sizeof (double))) < 0)];
36204 test_array [0] = 0
36207 return 0;
36209 _ACEOF
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;;
36215 esac
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
36219 ac_status=$?
36220 grep -v '^ *+' conftest.er1 >conftest.err
36221 rm -f conftest.er1
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
36228 ac_hi=-1 ac_mid=-1
36229 while :; do
36230 cat >conftest.$ac_ext <<_ACEOF
36231 /* confdefs.h. */
36232 _ACEOF
36233 cat confdefs.h >>conftest.$ac_ext
36234 cat >>conftest.$ac_ext <<_ACEOF
36235 /* end confdefs.h. */
36236 $ac_includes_default
36238 main ()
36240 static int test_array [1 - 2 * !(((long int) (sizeof (double))) >= $ac_mid)];
36241 test_array [0] = 0
36244 return 0;
36246 _ACEOF
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;;
36252 esac
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
36256 ac_status=$?
36257 grep -v '^ *+' conftest.er1 >conftest.err
36258 rm -f conftest.er1
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
36266 else
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
36272 ac_lo= ac_hi=
36273 break
36275 ac_mid=`expr 2 '*' $ac_mid`
36278 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36279 done
36280 else
36281 $as_echo "$as_me: failed program was:" >&5
36282 sed 's/^/| /' conftest.$ac_ext >&5
36284 ac_lo= ac_hi=
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
36295 /* confdefs.h. */
36296 _ACEOF
36297 cat confdefs.h >>conftest.$ac_ext
36298 cat >>conftest.$ac_ext <<_ACEOF
36299 /* end confdefs.h. */
36300 $ac_includes_default
36302 main ()
36304 static int test_array [1 - 2 * !(((long int) (sizeof (double))) <= $ac_mid)];
36305 test_array [0] = 0
36308 return 0;
36310 _ACEOF
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;;
36316 esac
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
36320 ac_status=$?
36321 grep -v '^ *+' conftest.er1 >conftest.err
36322 rm -f conftest.er1
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
36329 ac_hi=$ac_mid
36330 else
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
36338 done
36339 case $ac_lo in
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; }; }; }
36349 else
36350 ac_cv_sizeof_double=0
36351 fi ;;
36352 esac
36353 else
36354 cat >conftest.$ac_ext <<_ACEOF
36355 /* confdefs.h. */
36356 _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)); }
36363 #include <stdio.h>
36364 #include <stdlib.h>
36366 main ()
36369 FILE *f = fopen ("conftest.val", "w");
36370 if (! f)
36371 return 1;
36372 if (((long int) (sizeof (double))) < 0)
36374 long int i = longval ();
36375 if (i != ((long int) (sizeof (double))))
36376 return 1;
36377 fprintf (f, "%ld", i);
36379 else
36381 unsigned long int i = ulongval ();
36382 if (i != ((long int) (sizeof (double))))
36383 return 1;
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;
36391 return 0;
36393 _ACEOF
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;;
36399 esac
36400 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
36401 $as_echo "$ac_try_echo") >&5
36402 (eval "$ac_link") 2>&5
36403 ac_status=$?
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;;
36409 esac
36410 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
36411 $as_echo "$ac_try_echo") >&5
36412 (eval "$ac_try") 2>&5
36413 ac_status=$?
36414 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
36415 (exit $ac_status); }; }; then
36416 ac_cv_sizeof_double=`cat conftest.val`
36417 else
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; }; }; }
36431 else
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
36438 rm -f conftest.val
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
36447 _ACEOF
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
36454 else
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
36458 else
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
36468 _ACEOF
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
36480 else
36481 if test "$cross_compiling" = yes; then
36482 # Depending upon the size, compute the lo and hi bounds.
36483 cat >conftest.$ac_ext <<_ACEOF
36484 /* confdefs.h. */
36485 _ACEOF
36486 cat confdefs.h >>conftest.$ac_ext
36487 cat >>conftest.$ac_ext <<_ACEOF
36488 /* end confdefs.h. */
36489 $ac_includes_default
36491 main ()
36493 static int test_array [1 - 2 * !(((long int) (sizeof (long double))) >= 0)];
36494 test_array [0] = 0
36497 return 0;
36499 _ACEOF
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;;
36505 esac
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
36509 ac_status=$?
36510 grep -v '^ *+' conftest.er1 >conftest.err
36511 rm -f conftest.er1
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
36518 ac_lo=0 ac_mid=0
36519 while :; do
36520 cat >conftest.$ac_ext <<_ACEOF
36521 /* confdefs.h. */
36522 _ACEOF
36523 cat confdefs.h >>conftest.$ac_ext
36524 cat >>conftest.$ac_ext <<_ACEOF
36525 /* end confdefs.h. */
36526 $ac_includes_default
36528 main ()
36530 static int test_array [1 - 2 * !(((long int) (sizeof (long double))) <= $ac_mid)];
36531 test_array [0] = 0
36534 return 0;
36536 _ACEOF
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;;
36542 esac
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
36546 ac_status=$?
36547 grep -v '^ *+' conftest.er1 >conftest.err
36548 rm -f conftest.er1
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
36556 else
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
36562 ac_lo= ac_hi=
36563 break
36565 ac_mid=`expr 2 '*' $ac_mid + 1`
36568 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36569 done
36570 else
36571 $as_echo "$as_me: failed program was:" >&5
36572 sed 's/^/| /' conftest.$ac_ext >&5
36574 cat >conftest.$ac_ext <<_ACEOF
36575 /* confdefs.h. */
36576 _ACEOF
36577 cat confdefs.h >>conftest.$ac_ext
36578 cat >>conftest.$ac_ext <<_ACEOF
36579 /* end confdefs.h. */
36580 $ac_includes_default
36582 main ()
36584 static int test_array [1 - 2 * !(((long int) (sizeof (long double))) < 0)];
36585 test_array [0] = 0
36588 return 0;
36590 _ACEOF
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;;
36596 esac
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
36600 ac_status=$?
36601 grep -v '^ *+' conftest.er1 >conftest.err
36602 rm -f conftest.er1
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
36609 ac_hi=-1 ac_mid=-1
36610 while :; do
36611 cat >conftest.$ac_ext <<_ACEOF
36612 /* confdefs.h. */
36613 _ACEOF
36614 cat confdefs.h >>conftest.$ac_ext
36615 cat >>conftest.$ac_ext <<_ACEOF
36616 /* end confdefs.h. */
36617 $ac_includes_default
36619 main ()
36621 static int test_array [1 - 2 * !(((long int) (sizeof (long double))) >= $ac_mid)];
36622 test_array [0] = 0
36625 return 0;
36627 _ACEOF
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;;
36633 esac
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
36637 ac_status=$?
36638 grep -v '^ *+' conftest.er1 >conftest.err
36639 rm -f conftest.er1
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
36647 else
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
36653 ac_lo= ac_hi=
36654 break
36656 ac_mid=`expr 2 '*' $ac_mid`
36659 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36660 done
36661 else
36662 $as_echo "$as_me: failed program was:" >&5
36663 sed 's/^/| /' conftest.$ac_ext >&5
36665 ac_lo= ac_hi=
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
36676 /* confdefs.h. */
36677 _ACEOF
36678 cat confdefs.h >>conftest.$ac_ext
36679 cat >>conftest.$ac_ext <<_ACEOF
36680 /* end confdefs.h. */
36681 $ac_includes_default
36683 main ()
36685 static int test_array [1 - 2 * !(((long int) (sizeof (long double))) <= $ac_mid)];
36686 test_array [0] = 0
36689 return 0;
36691 _ACEOF
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;;
36697 esac
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
36701 ac_status=$?
36702 grep -v '^ *+' conftest.er1 >conftest.err
36703 rm -f conftest.er1
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
36710 ac_hi=$ac_mid
36711 else
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
36719 done
36720 case $ac_lo in
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; }; }; }
36730 else
36731 ac_cv_sizeof_long_double=0
36732 fi ;;
36733 esac
36734 else
36735 cat >conftest.$ac_ext <<_ACEOF
36736 /* confdefs.h. */
36737 _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)); }
36744 #include <stdio.h>
36745 #include <stdlib.h>
36747 main ()
36750 FILE *f = fopen ("conftest.val", "w");
36751 if (! f)
36752 return 1;
36753 if (((long int) (sizeof (long double))) < 0)
36755 long int i = longval ();
36756 if (i != ((long int) (sizeof (long double))))
36757 return 1;
36758 fprintf (f, "%ld", i);
36760 else
36762 unsigned long int i = ulongval ();
36763 if (i != ((long int) (sizeof (long double))))
36764 return 1;
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;
36772 return 0;
36774 _ACEOF
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;;
36780 esac
36781 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
36782 $as_echo "$ac_try_echo") >&5
36783 (eval "$ac_link") 2>&5
36784 ac_status=$?
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;;
36790 esac
36791 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
36792 $as_echo "$ac_try_echo") >&5
36793 (eval "$ac_try") 2>&5
36794 ac_status=$?
36795 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
36796 (exit $ac_status); }; }; then
36797 ac_cv_sizeof_long_double=`cat conftest.val`
36798 else
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; }; }; }
36812 else
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
36819 rm -f conftest.val
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
36828 _ACEOF
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
36835 else
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
36839 else
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
36849 _ACEOF
36856 cat >>confdefs.h <<\_ACEOF
36857 #define HAVE_STRCHR 1
36858 _ACEOF
36861 cat >>confdefs.h <<\_ACEOF
36862 #define HAVE_MEMCHR 1
36863 _ACEOF
36867 cat >>confdefs.h <<\_ACEOF
36868 #define REGEX_MALLOC 1
36869 _ACEOF
36872 cat >>confdefs.h <<\_ACEOF
36873 #define _REGEX_RE_COMP 1
36874 _ACEOF
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; }
36890 else
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
36895 /* confdefs.h. */
36896 _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>
36902 _ACEOF
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;;
36908 esac
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
36912 ac_status=$?
36913 grep -v '^ *+' conftest.er1 >conftest.err
36914 rm -f conftest.er1
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
36922 else
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
36937 /* confdefs.h. */
36938 _ACEOF
36939 cat confdefs.h >>conftest.$ac_ext
36940 cat >>conftest.$ac_ext <<_ACEOF
36941 /* end confdefs.h. */
36942 #include <$ac_header>
36943 _ACEOF
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;;
36948 esac
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
36952 ac_status=$?
36953 grep -v '^ *+' conftest.er1 >conftest.err
36954 rm -f conftest.er1
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
36960 }; then
36961 ac_header_preproc=yes
36962 else
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
36975 yes:no: )
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
36982 no: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;}
36995 ( cat <<\_ASBOX
36996 ## --------------------------------- ##
36997 ## Report this to bug-cvs@nongnu.org ##
36998 ## --------------------------------- ##
36999 _ASBOX
37000 ) | sed "s/^/$as_me: WARNING: /" >&2
37002 esac
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
37007 else
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
37021 _ACEOF
37025 done
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
37036 else
37037 cat >conftest.$ac_ext <<_ACEOF
37038 /* confdefs.h. */
37039 _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. */
37052 #ifdef __STDC__
37053 # include <limits.h>
37054 #else
37055 # include <assert.h>
37056 #endif
37058 #undef $ac_func
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. */
37063 #ifdef __cplusplus
37064 extern "C"
37065 #endif
37066 char $ac_func ();
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
37071 choke me
37072 #endif
37075 main ()
37077 return $ac_func ();
37079 return 0;
37081 _ACEOF
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;;
37087 esac
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
37091 ac_status=$?
37092 grep -v '^ *+' conftest.er1 >conftest.err
37093 rm -f conftest.er1
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
37102 }; then
37103 eval "$as_ac_var=yes"
37104 else
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
37124 _ACEOF
37127 done
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
37134 else
37135 if test "$cross_compiling" = yes; then
37136 ac_cv_func_fork_works=cross
37137 else
37138 cat >conftest.$ac_ext <<_ACEOF
37139 /* confdefs.h. */
37140 _ACEOF
37141 cat confdefs.h >>conftest.$ac_ext
37142 cat >>conftest.$ac_ext <<_ACEOF
37143 /* end confdefs.h. */
37144 $ac_includes_default
37146 main ()
37149 /* By Ruediger Kuhlmann. */
37150 return fork () < 0;
37153 return 0;
37155 _ACEOF
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;;
37161 esac
37162 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
37163 $as_echo "$ac_try_echo") >&5
37164 (eval "$ac_link") 2>&5
37165 ac_status=$?
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;;
37171 esac
37172 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
37173 $as_echo "$ac_try_echo") >&5
37174 (eval "$ac_try") 2>&5
37175 ac_status=$?
37176 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
37177 (exit $ac_status); }; }; then
37178 ac_cv_func_fork_works=yes
37179 else
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; }
37196 else
37197 ac_cv_func_fork_works=$ac_cv_func_fork
37199 if test "x$ac_cv_func_fork_works" = xcross; then
37200 case $host in
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
37208 esac
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
37218 else
37219 if test "$cross_compiling" = yes; then
37220 ac_cv_func_vfork_works=cross
37221 else
37222 cat >conftest.$ac_ext <<_ACEOF
37223 /* confdefs.h. */
37224 _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>
37233 #endif
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. */
37240 static void
37241 #ifdef __cplusplus
37242 sparc_address_test (int arg)
37243 # else
37244 sparc_address_test (arg) int arg;
37245 #endif
37247 static pid_t child;
37248 if (!child) {
37249 child = vfork ();
37250 if (child < 0) {
37251 perror ("vfork");
37252 _exit(2);
37254 if (!child) {
37255 arg = getpid();
37256 write(-1, "", 0);
37257 _exit (arg);
37263 main ()
37265 pid_t parent = getpid ();
37266 pid_t child;
37268 sparc_address_test (0);
37270 child = vfork ();
37272 if (child == 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. */
37282 pid_t
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)
37289 _exit(1);
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);
37296 } else {
37297 int status;
37298 struct stat st;
37300 while (wait(&status) != child)
37302 return (
37303 /* Was there some problem with vforking? */
37304 child < 0
37306 /* Did the child fail? (This shouldn't happen.) */
37307 || status
37309 /* Did the vfork/compiler bug occur? */
37310 || parent != getpid()
37312 /* Did the file descriptor bug occur? */
37313 || fstat(fileno(stdout), &st) != 0
37317 _ACEOF
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;;
37323 esac
37324 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
37325 $as_echo "$ac_try_echo") >&5
37326 (eval "$ac_link") 2>&5
37327 ac_status=$?
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;;
37333 esac
37334 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
37335 $as_echo "$ac_try_echo") >&5
37336 (eval "$ac_try") 2>&5
37337 ac_status=$?
37338 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
37339 (exit $ac_status); }; }; then
37340 ac_cv_func_vfork_works=yes
37341 else
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
37369 _ACEOF
37371 else
37373 cat >>confdefs.h <<\_ACEOF
37374 #define vfork fork
37375 _ACEOF
37378 if test "x$ac_cv_func_fork_works" = xyes; then
37380 cat >>confdefs.h <<\_ACEOF
37381 #define HAVE_WORKING_FORK 1
37382 _ACEOF
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
37390 else
37391 if test "$cross_compiling" = yes; then
37392 ac_cv_func_closedir_void=yes
37393 else
37394 cat >conftest.$ac_ext <<_ACEOF
37395 /* confdefs.h. */
37396 _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
37403 int closedir ();
37404 #endif
37407 main ()
37409 return closedir (opendir (".")) != 0;
37411 return 0;
37413 _ACEOF
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;;
37419 esac
37420 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
37421 $as_echo "$ac_try_echo") >&5
37422 (eval "$ac_link") 2>&5
37423 ac_status=$?
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;;
37429 esac
37430 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
37431 $as_echo "$ac_try_echo") >&5
37432 (eval "$ac_try") 2>&5
37433 ac_status=$?
37434 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
37435 (exit $ac_status); }; }; then
37436 ac_cv_func_closedir_void=no
37437 else
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
37457 _ACEOF
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
37466 else
37467 ac_func_search_save_LIBS=$LIBS
37468 cat >conftest.$ac_ext <<_ACEOF
37469 /* confdefs.h. */
37470 _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. */
37478 #ifdef __cplusplus
37479 extern "C"
37480 #endif
37481 char getspnam ();
37483 main ()
37485 return getspnam ();
37487 return 0;
37489 _ACEOF
37490 for ac_lib in '' sec gen; do
37491 if test -z "$ac_lib"; then
37492 ac_res="none required"
37493 else
37494 ac_res=-l$ac_lib
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;;
37502 esac
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
37506 ac_status=$?
37507 grep -v '^ *+' conftest.er1 >conftest.err
37508 rm -f conftest.er1
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
37517 }; then
37518 ac_cv_search_getspnam=$ac_res
37519 else
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 \
37528 conftest$ac_exeext
37529 if test "${ac_cv_search_getspnam+set}" = set; then
37530 break
37532 done
37533 if test "${ac_cv_search_getspnam+set}" = set; then
37535 else
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
37549 _ACEOF
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
37571 else
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
37576 else
37577 cat >conftest.$ac_ext <<_ACEOF
37578 /* confdefs.h. */
37579 _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>
37586 #endif
37588 main ()
37590 struct stat s, t;
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);
37597 return 0;
37599 _ACEOF
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;;
37605 esac
37606 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
37607 $as_echo "$ac_try_echo") >&5
37608 (eval "$ac_link") 2>&5
37609 ac_status=$?
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;;
37615 esac
37616 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
37617 $as_echo "$ac_try_echo") >&5
37618 (eval "$ac_try") 2>&5
37619 ac_status=$?
37620 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
37621 (exit $ac_status); }; }; then
37622 ac_cv_func_utime_null=yes
37623 else
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
37643 _ACEOF
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
37652 else
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}'.
37665 case $ac_dir in #(
37666 . | /* | ?:[\\/]*) ;; #(
37667 *) continue;;
37668 esac
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
37678 done
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
37686 _ACEOF
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
37695 else
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; }; }; }
37704 else
37705 cat >conftest.$ac_ext <<_ACEOF
37706 /* confdefs.h. */
37707 _ACEOF
37708 cat confdefs.h >>conftest.$ac_ext
37709 cat >>conftest.$ac_ext <<_ACEOF
37710 /* end confdefs.h. */
37711 #include <stdio.h>
37712 /* If printf supports %p, exit 0. */
37714 main ()
37716 void *p1, *p2;
37717 char buf[256];
37718 p1 = &p1; p2 = &p2;
37719 sprintf(buf, "%p", p1);
37720 exit(sscanf(buf, "%p", &p2) != 1 || p2 != p1);
37722 _ACEOF
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;;
37728 esac
37729 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
37730 $as_echo "$ac_try_echo") >&5
37731 (eval "$ac_link") 2>&5
37732 ac_status=$?
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;;
37738 esac
37739 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
37740 $as_echo "$ac_try_echo") >&5
37741 (eval "$ac_try") 2>&5
37742 ac_status=$?
37743 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
37744 (exit $ac_status); }; }; then
37745 cvs_cv_func_printf_ptr=yes
37746 else
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
37767 _ACEOF
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
37778 else
37779 ac_check_lib_save_LIBS=$LIBS
37780 LIBS="-lnsl $LIBS"
37781 cat >conftest.$ac_ext <<_ACEOF
37782 /* confdefs.h. */
37783 _ACEOF
37784 cat confdefs.h >>conftest.$ac_ext
37785 cat >>conftest.$ac_ext <<_ACEOF
37786 /* end confdefs.h. */
37790 main ()
37792 return main ();
37794 return 0;
37796 _ACEOF
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;;
37802 esac
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
37806 ac_status=$?
37807 grep -v '^ *+' conftest.er1 >conftest.err
37808 rm -f conftest.er1
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
37817 }; then
37818 ac_cv_lib_nsl_main=yes
37819 else
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
37836 _ACEOF
37838 LIBS="-lnsl $LIBS"
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
37846 else
37847 ac_func_search_save_LIBS=$LIBS
37848 cat >conftest.$ac_ext <<_ACEOF
37849 /* confdefs.h. */
37850 _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. */
37858 #ifdef __cplusplus
37859 extern "C"
37860 #endif
37861 char connect ();
37863 main ()
37865 return connect ();
37867 return 0;
37869 _ACEOF
37870 for ac_lib in '' xnet socket inet; do
37871 if test -z "$ac_lib"; then
37872 ac_res="none required"
37873 else
37874 ac_res=-l$ac_lib
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;;
37882 esac
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
37886 ac_status=$?
37887 grep -v '^ *+' conftest.er1 >conftest.err
37888 rm -f conftest.er1
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
37897 }; then
37898 ac_cv_search_connect=$ac_res
37899 else
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 \
37908 conftest$ac_exeext
37909 if test "${ac_cv_search_connect+set}" = set; then
37910 break
37912 done
37913 if test "${ac_cv_search_connect+set}" = set; then
37915 else
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
37929 _ACEOF
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
37937 else
37938 ac_func_search_save_LIBS=$LIBS
37939 cat >conftest.$ac_ext <<_ACEOF
37940 /* confdefs.h. */
37941 _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. */
37949 #ifdef __cplusplus
37950 extern "C"
37951 #endif
37952 char gethostbyname ();
37954 main ()
37956 return gethostbyname ();
37958 return 0;
37960 _ACEOF
37961 for ac_lib in '' netinet; do
37962 if test -z "$ac_lib"; then
37963 ac_res="none required"
37964 else
37965 ac_res=-l$ac_lib
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;;
37973 esac
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
37977 ac_status=$?
37978 grep -v '^ *+' conftest.er1 >conftest.err
37979 rm -f conftest.er1
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
37988 }; then
37989 ac_cv_search_gethostbyname=$ac_res
37990 else
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 \
37999 conftest$ac_exeext
38000 if test "${ac_cv_search_gethostbyname+set}" = set; then
38001 break
38003 done
38004 if test "${ac_cv_search_gethostbyname+set}" = set; then
38006 else
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"
38025 KRB4=/usr/kerberos
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
38035 $as_echo "" >&6; }
38038 krb_h=
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
38045 /* confdefs.h. */
38046 _ACEOF
38047 cat confdefs.h >>conftest.$ac_ext
38048 cat >>conftest.$ac_ext <<_ACEOF
38049 /* end confdefs.h. */
38050 #include <krb.h>
38052 main ()
38054 int i;
38056 return 0;
38058 _ACEOF
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;;
38064 esac
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
38068 ac_status=$?
38069 grep -v '^ *+' conftest.er1 >conftest.err
38070 rm -f conftest.er1
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
38079 }; then
38080 krb_h=yes krb_incdir=$KRB4/include
38081 else
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
38087 /* confdefs.h. */
38088 _ACEOF
38089 cat confdefs.h >>conftest.$ac_ext
38090 cat >>conftest.$ac_ext <<_ACEOF
38091 /* end confdefs.h. */
38092 #include <krb.h>
38094 main ()
38096 int i;
38098 return 0;
38100 _ACEOF
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;;
38106 esac
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
38110 ac_status=$?
38111 grep -v '^ *+' conftest.er1 >conftest.err
38112 rm -f conftest.er1
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
38121 }; then
38122 krb_h=yes krb_incdir=
38123 else
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
38139 else
38140 cat >conftest.$ac_ext <<_ACEOF
38141 /* confdefs.h. */
38142 _ACEOF
38143 cat confdefs.h >>conftest.$ac_ext
38144 cat >>conftest.$ac_ext <<_ACEOF
38145 /* end confdefs.h. */
38146 #include <krb.h>
38148 main ()
38150 int i;
38152 return 0;
38154 _ACEOF
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;;
38160 esac
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
38164 ac_status=$?
38165 grep -v '^ *+' conftest.er1 >conftest.err
38166 rm -f conftest.er1
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
38175 }; then
38176 krb_h=yes krb_incdir=
38177 else
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
38190 /* confdefs.h. */
38191 _ACEOF
38192 cat confdefs.h >>conftest.$ac_ext
38193 cat >>conftest.$ac_ext <<_ACEOF
38194 /* end confdefs.h. */
38195 #include <krb.h>
38197 main ()
38199 int i;
38201 return 0;
38203 _ACEOF
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;;
38209 esac
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
38213 ac_status=$?
38214 grep -v '^ *+' conftest.er1 >conftest.err
38215 rm -f conftest.er1
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
38224 }; then
38225 krb_h=yes krb_incdir=
38226 else
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
38234 /* confdefs.h. */
38235 _ACEOF
38236 cat confdefs.h >>conftest.$ac_ext
38237 cat >>conftest.$ac_ext <<_ACEOF
38238 /* end confdefs.h. */
38239 #include <krb.h>
38241 main ()
38243 int i;
38245 return 0;
38247 _ACEOF
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;;
38253 esac
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
38257 ac_status=$?
38258 grep -v '^ *+' conftest.er1 >conftest.err
38259 rm -f conftest.er1
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
38268 }; then
38269 krb_h=yes krb_incdir=$KRB4/include/kerberosIV
38270 else
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
38292 krb_lib=
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
38300 else
38301 ac_check_lib_save_LIBS=$LIBS
38302 LIBS="-lkrb $LIBS"
38303 cat >conftest.$ac_ext <<_ACEOF
38304 /* confdefs.h. */
38305 _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. */
38313 #ifdef __cplusplus
38314 extern "C"
38315 #endif
38316 char printf ();
38318 main ()
38320 return printf ();
38322 return 0;
38324 _ACEOF
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;;
38330 esac
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
38334 ac_status=$?
38335 grep -v '^ *+' conftest.er1 >conftest.err
38336 rm -f conftest.er1
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
38345 }; then
38346 ac_cv_lib_krb_printf=yes
38347 else
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
38363 else
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
38371 else
38372 ac_check_lib_save_LIBS=$LIBS
38373 LIBS="-lkrb $LIBS"
38374 cat >conftest.$ac_ext <<_ACEOF
38375 /* confdefs.h. */
38376 _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. */
38384 #ifdef __cplusplus
38385 extern "C"
38386 #endif
38387 char open ();
38389 main ()
38391 return open ();
38393 return 0;
38395 _ACEOF
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;;
38401 esac
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
38405 ac_status=$?
38406 grep -v '^ *+' conftest.er1 >conftest.err
38407 rm -f conftest.er1
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
38416 }; then
38417 ac_cv_lib_krb_open=yes
38418 else
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
38439 else
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
38444 else
38445 ac_check_lib_save_LIBS=$LIBS
38446 LIBS="-lkrb $LIBS"
38447 cat >conftest.$ac_ext <<_ACEOF
38448 /* confdefs.h. */
38449 _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. */
38457 #ifdef __cplusplus
38458 extern "C"
38459 #endif
38460 char printf ();
38462 main ()
38464 return printf ();
38466 return 0;
38468 _ACEOF
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;;
38474 esac
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
38478 ac_status=$?
38479 grep -v '^ *+' conftest.er1 >conftest.err
38480 rm -f conftest.er1
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
38489 }; then
38490 ac_cv_lib_krb_printf=yes
38491 else
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
38513 else
38514 cat >conftest.$ac_ext <<_ACEOF
38515 /* confdefs.h. */
38516 _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. */
38529 #ifdef __STDC__
38530 # include <limits.h>
38531 #else
38532 # include <assert.h>
38533 #endif
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. */
38540 #ifdef __cplusplus
38541 extern "C"
38542 #endif
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
38548 choke me
38549 #endif
38552 main ()
38554 return krb_recvauth ();
38556 return 0;
38558 _ACEOF
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;;
38564 esac
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
38568 ac_status=$?
38569 grep -v '^ *+' conftest.er1 >conftest.err
38570 rm -f conftest.er1
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
38579 }; then
38580 ac_cv_func_krb_recvauth=yes
38581 else
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
38603 _ACEOF
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
38616 else
38617 ac_check_lib_save_LIBS=$LIBS
38618 LIBS="-ldes $LIBS"
38619 cat >conftest.$ac_ext <<_ACEOF
38620 /* confdefs.h. */
38621 _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. */
38629 #ifdef __cplusplus
38630 extern "C"
38631 #endif
38632 char printf ();
38634 main ()
38636 return printf ();
38638 return 0;
38640 _ACEOF
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;;
38646 esac
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
38650 ac_status=$?
38651 grep -v '^ *+' conftest.er1 >conftest.err
38652 rm -f conftest.er1
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
38661 }; then
38662 ac_cv_lib_des_printf=yes
38663 else
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
38686 else
38687 ac_check_lib_save_LIBS=$LIBS
38688 LIBS="-lkrb $LIBS"
38689 cat >conftest.$ac_ext <<_ACEOF
38690 /* confdefs.h. */
38691 _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. */
38699 #ifdef __cplusplus
38700 extern "C"
38701 #endif
38702 char krb_recvauth ();
38704 main ()
38706 return krb_recvauth ();
38708 return 0;
38710 _ACEOF
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;;
38716 esac
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
38720 ac_status=$?
38721 grep -v '^ *+' conftest.er1 >conftest.err
38722 rm -f conftest.er1
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
38731 }; then
38732 ac_cv_lib_krb_krb_recvauth=yes
38733 else
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
38750 _ACEOF
38752 LIBS="-lkrb $LIBS"
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
38761 else
38762 ac_check_lib_save_LIBS=$LIBS
38763 LIBS="-lkrb4 $LIBS"
38764 cat >conftest.$ac_ext <<_ACEOF
38765 /* confdefs.h. */
38766 _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. */
38774 #ifdef __cplusplus
38775 extern "C"
38776 #endif
38777 char krb_recvauth ();
38779 main ()
38781 return krb_recvauth ();
38783 return 0;
38785 _ACEOF
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;;
38791 esac
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
38795 ac_status=$?
38796 grep -v '^ *+' conftest.er1 >conftest.err
38797 rm -f conftest.er1
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
38806 }; then
38807 ac_cv_lib_krb4_krb_recvauth=yes
38808 else
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
38825 _ACEOF
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
38845 else
38846 cat >conftest.$ac_ext <<_ACEOF
38847 /* confdefs.h. */
38848 _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. */
38861 #ifdef __STDC__
38862 # include <limits.h>
38863 #else
38864 # include <assert.h>
38865 #endif
38867 #undef $ac_func
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. */
38872 #ifdef __cplusplus
38873 extern "C"
38874 #endif
38875 char $ac_func ();
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
38880 choke me
38881 #endif
38884 main ()
38886 return $ac_func ();
38888 return 0;
38890 _ACEOF
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;;
38896 esac
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
38900 ac_status=$?
38901 grep -v '^ *+' conftest.er1 >conftest.err
38902 rm -f conftest.er1
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
38911 }; then
38912 eval "$as_ac_var=yes"
38913 else
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
38933 _ACEOF
38936 done
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;
38952 else
38953 with_gssapi=yes
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; }
38966 else :; fi
38967 if test "${acx_gssapi_cv_gssapi+set}" = set; then
38968 $as_echo_n "(cached) " >&6
38969 else
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
38987 break
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
38993 $as_echo "" >&6; }
38994 else
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
38999 $as_echo "" >&6; }
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; }
39020 else
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
39025 /* confdefs.h. */
39026 _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>
39032 _ACEOF
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;;
39038 esac
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
39042 ac_status=$?
39043 grep -v '^ *+' conftest.er1 >conftest.err
39044 rm -f conftest.er1
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
39052 else
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
39067 /* confdefs.h. */
39068 _ACEOF
39069 cat confdefs.h >>conftest.$ac_ext
39070 cat >>conftest.$ac_ext <<_ACEOF
39071 /* end confdefs.h. */
39072 #include <$ac_header>
39073 _ACEOF
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;;
39078 esac
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
39082 ac_status=$?
39083 grep -v '^ *+' conftest.er1 >conftest.err
39084 rm -f conftest.er1
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
39090 }; then
39091 ac_header_preproc=yes
39092 else
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
39105 yes:no: )
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
39112 no: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;}
39125 ( cat <<\_ASBOX
39126 ## --------------------------------- ##
39127 ## Report this to bug-cvs@nongnu.org ##
39128 ## --------------------------------- ##
39129 _ASBOX
39130 ) | sed "s/^/$as_me: WARNING: /" >&2
39132 esac
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
39137 else
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
39151 _ACEOF
39155 done
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
39160 break
39162 done
39163 CPPFLAGS=$acx_gssapi_save_CPPFLAGS
39164 else
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
39180 GSSAPI_INCLUDES=""
39181 else
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 /**/
39194 _ACEOF
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; }
39218 else
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
39223 /* confdefs.h. */
39224 _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>
39230 _ACEOF
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;;
39236 esac
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
39240 ac_status=$?
39241 grep -v '^ *+' conftest.er1 >conftest.err
39242 rm -f conftest.er1
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
39250 else
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
39265 /* confdefs.h. */
39266 _ACEOF
39267 cat confdefs.h >>conftest.$ac_ext
39268 cat >>conftest.$ac_ext <<_ACEOF
39269 /* end confdefs.h. */
39270 #include <$ac_header>
39271 _ACEOF
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;;
39276 esac
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
39280 ac_status=$?
39281 grep -v '^ *+' conftest.er1 >conftest.err
39282 rm -f conftest.er1
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
39288 }; then
39289 ac_header_preproc=yes
39290 else
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
39303 yes:no: )
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
39310 no: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;}
39323 ( cat <<\_ASBOX
39324 ## --------------------------------- ##
39325 ## Report this to bug-cvs@nongnu.org ##
39326 ## --------------------------------- ##
39327 _ASBOX
39328 ) | sed "s/^/$as_me: WARNING: /" >&2
39330 esac
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
39335 else
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
39349 _ACEOF
39353 done
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
39360 else
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
39365 /* confdefs.h. */
39366 _ACEOF
39367 cat confdefs.h >>conftest.$ac_ext
39368 cat >>conftest.$ac_ext <<_ACEOF
39369 /* end confdefs.h. */
39370 #include <gssapi.h>
39372 _ACEOF
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
39376 else
39378 cat >conftest.$ac_ext <<_ACEOF
39379 /* confdefs.h. */
39380 _ACEOF
39381 cat confdefs.h >>conftest.$ac_ext
39382 cat >>conftest.$ac_ext <<_ACEOF
39383 /* end confdefs.h. */
39384 #include <gssapi.h>
39386 _ACEOF
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
39391 rm -f conftest*
39395 rm -f conftest*
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
39401 /* confdefs.h. */
39402 _ACEOF
39403 cat confdefs.h >>conftest.$ac_ext
39404 cat >>conftest.$ac_ext <<_ACEOF
39405 /* end confdefs.h. */
39406 #include <gssapi/gssapi.h>
39408 _ACEOF
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
39412 else
39414 cat >conftest.$ac_ext <<_ACEOF
39415 /* confdefs.h. */
39416 _ACEOF
39417 cat confdefs.h >>conftest.$ac_ext
39418 cat >>conftest.$ac_ext <<_ACEOF
39419 /* end confdefs.h. */
39420 #include <gssapi/gssapi.h>
39422 _ACEOF
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
39427 rm -f conftest*
39431 rm -f conftest*
39433 else :; fi
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
39437 /* confdefs.h. */
39438 _ACEOF
39439 cat confdefs.h >>conftest.$ac_ext
39440 cat >>conftest.$ac_ext <<_ACEOF
39441 /* end confdefs.h. */
39442 #include <gssapi/gssapi_generic.h>
39444 _ACEOF
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
39448 else
39450 cat >conftest.$ac_ext <<_ACEOF
39451 /* confdefs.h. */
39452 _ACEOF
39453 cat confdefs.h >>conftest.$ac_ext
39454 cat >>conftest.$ac_ext <<_ACEOF
39455 /* end confdefs.h. */
39456 #include <gssapi/gssapi_generic.h>
39458 _ACEOF
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
39463 rm -f conftest*
39467 rm -f conftest*
39469 else :; fi
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
39487 _ACEOF
39489 else :; fi
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
39494 # trouble.
39495 if test x$acx_gssapi_cv_gssapi != xyes; then
39496 if test -z "$LIBS"; then
39497 LIBS="-L$acx_gssapi_cv_gssapi/lib"
39498 else
39499 LIBS="-L$acx_gssapi_cv_gssapi/lib $LIBS"
39501 else :; fi
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
39515 else
39516 ac_func_search_save_LIBS=$LIBS
39517 cat >conftest.$ac_ext <<_ACEOF
39518 /* confdefs.h. */
39519 _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. */
39527 #ifdef __cplusplus
39528 extern "C"
39529 #endif
39530 char des_set_odd_parity ();
39532 main ()
39534 return des_set_odd_parity ();
39536 return 0;
39538 _ACEOF
39539 for ac_lib in '' des; do
39540 if test -z "$ac_lib"; then
39541 ac_res="none required"
39542 else
39543 ac_res=-l$ac_lib
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;;
39551 esac
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
39555 ac_status=$?
39556 grep -v '^ *+' conftest.er1 >conftest.err
39557 rm -f conftest.er1
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
39566 }; then
39567 ac_cv_search_des_set_odd_parity=$ac_res
39568 else
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 \
39577 conftest$ac_exeext
39578 if test "${ac_cv_search_des_set_odd_parity+set}" = set; then
39579 break
39581 done
39582 if test "${ac_cv_search_des_set_odd_parity+set}" = set; then
39584 else
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
39608 else
39609 ac_func_search_save_LIBS=$LIBS
39610 cat >conftest.$ac_ext <<_ACEOF
39611 /* confdefs.h. */
39612 _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. */
39620 #ifdef __cplusplus
39621 extern "C"
39622 #endif
39623 char com_err ();
39625 main ()
39627 return com_err ();
39629 return 0;
39631 _ACEOF
39632 for ac_lib in '' com_err; do
39633 if test -z "$ac_lib"; then
39634 ac_res="none required"
39635 else
39636 ac_res=-l$ac_lib
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;;
39644 esac
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
39648 ac_status=$?
39649 grep -v '^ *+' conftest.er1 >conftest.err
39650 rm -f conftest.er1
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
39659 }; then
39660 ac_cv_search_com_err=$ac_res
39661 else
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 \
39670 conftest$ac_exeext
39671 if test "${ac_cv_search_com_err+set}" = set; then
39672 break
39674 done
39675 if test "${ac_cv_search_com_err+set}" = set; then
39677 else
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
39699 else
39700 ac_func_search_save_LIBS=$LIBS
39701 cat >conftest.$ac_ext <<_ACEOF
39702 /* confdefs.h. */
39703 _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. */
39711 #ifdef __cplusplus
39712 extern "C"
39713 #endif
39714 char initialize_asn1_error_table_r ();
39716 main ()
39718 return initialize_asn1_error_table_r ();
39720 return 0;
39722 _ACEOF
39723 for ac_lib in '' asn1; do
39724 if test -z "$ac_lib"; then
39725 ac_res="none required"
39726 else
39727 ac_res=-l$ac_lib
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;;
39735 esac
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
39739 ac_status=$?
39740 grep -v '^ *+' conftest.er1 >conftest.err
39741 rm -f conftest.er1
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
39750 }; then
39751 ac_cv_search_initialize_asn1_error_table_r=$ac_res
39752 else
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 \
39761 conftest$ac_exeext
39762 if test "${ac_cv_search_initialize_asn1_error_table_r+set}" = set; then
39763 break
39765 done
39766 if test "${ac_cv_search_initialize_asn1_error_table_r+set}" = set; then
39768 else
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
39787 # Linux 2.2.17
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
39793 else
39794 ac_func_search_save_LIBS=$LIBS
39795 cat >conftest.$ac_ext <<_ACEOF
39796 /* confdefs.h. */
39797 _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. */
39805 #ifdef __cplusplus
39806 extern "C"
39807 #endif
39808 char __dn_expand ();
39810 main ()
39812 return __dn_expand ();
39814 return 0;
39816 _ACEOF
39817 for ac_lib in '' resolv; do
39818 if test -z "$ac_lib"; then
39819 ac_res="none required"
39820 else
39821 ac_res=-l$ac_lib
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;;
39829 esac
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
39833 ac_status=$?
39834 grep -v '^ *+' conftest.er1 >conftest.err
39835 rm -f conftest.er1
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
39844 }; then
39845 ac_cv_search___dn_expand=$ac_res
39846 else
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 \
39855 conftest$ac_exeext
39856 if test "${ac_cv_search___dn_expand+set}" = set; then
39857 break
39859 done
39860 if test "${ac_cv_search___dn_expand+set}" = set; then
39862 else
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
39884 else
39885 ac_func_search_save_LIBS=$LIBS
39886 cat >conftest.$ac_ext <<_ACEOF
39887 /* confdefs.h. */
39888 _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. */
39896 #ifdef __cplusplus
39897 extern "C"
39898 #endif
39899 char RC4 ();
39901 main ()
39903 return RC4 ();
39905 return 0;
39907 _ACEOF
39908 for ac_lib in '' crypto; do
39909 if test -z "$ac_lib"; then
39910 ac_res="none required"
39911 else
39912 ac_res=-l$ac_lib
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;;
39920 esac
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
39924 ac_status=$?
39925 grep -v '^ *+' conftest.er1 >conftest.err
39926 rm -f conftest.er1
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
39935 }; then
39936 ac_cv_search_RC4=$ac_res
39937 else
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 \
39946 conftest$ac_exeext
39947 if test "${ac_cv_search_RC4+set}" = set; then
39948 break
39950 done
39951 if test "${ac_cv_search_RC4+set}" = set; then
39953 else
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
39975 else
39976 ac_func_search_save_LIBS=$LIBS
39977 cat >conftest.$ac_ext <<_ACEOF
39978 /* confdefs.h. */
39979 _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. */
39987 #ifdef __cplusplus
39988 extern "C"
39989 #endif
39990 char crypt ();
39992 main ()
39994 return crypt ();
39996 return 0;
39998 _ACEOF
39999 for ac_lib in '' crypt; do
40000 if test -z "$ac_lib"; then
40001 ac_res="none required"
40002 else
40003 ac_res=-l$ac_lib
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;;
40011 esac
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
40015 ac_status=$?
40016 grep -v '^ *+' conftest.er1 >conftest.err
40017 rm -f conftest.er1
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
40026 }; then
40027 ac_cv_search_crypt=$ac_res
40028 else
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 \
40037 conftest$ac_exeext
40038 if test "${ac_cv_search_crypt+set}" = set; then
40039 break
40041 done
40042 if test "${ac_cv_search_crypt+set}" = set; then
40044 else
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
40067 else
40068 ac_func_search_save_LIBS=$LIBS
40069 cat >conftest.$ac_ext <<_ACEOF
40070 /* confdefs.h. */
40071 _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. */
40079 #ifdef __cplusplus
40080 extern "C"
40081 #endif
40082 char roken_gethostbyaddr ();
40084 main ()
40086 return roken_gethostbyaddr ();
40088 return 0;
40090 _ACEOF
40091 for ac_lib in '' roken; do
40092 if test -z "$ac_lib"; then
40093 ac_res="none required"
40094 else
40095 ac_res=-l$ac_lib
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;;
40103 esac
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
40107 ac_status=$?
40108 grep -v '^ *+' conftest.er1 >conftest.err
40109 rm -f conftest.er1
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
40118 }; then
40119 ac_cv_search_roken_gethostbyaddr=$ac_res
40120 else
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 \
40129 conftest$ac_exeext
40130 if test "${ac_cv_search_roken_gethostbyaddr+set}" = set; then
40131 break
40133 done
40134 if test "${ac_cv_search_roken_gethostbyaddr+set}" = set; then
40136 else
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
40158 else
40159 ac_func_search_save_LIBS=$LIBS
40160 cat >conftest.$ac_ext <<_ACEOF
40161 /* confdefs.h. */
40162 _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. */
40170 #ifdef __cplusplus
40171 extern "C"
40172 #endif
40173 char valid_enctype ();
40175 main ()
40177 return valid_enctype ();
40179 return 0;
40181 _ACEOF
40182 for ac_lib in '' k5crypto; do
40183 if test -z "$ac_lib"; then
40184 ac_res="none required"
40185 else
40186 ac_res=-l$ac_lib
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;;
40194 esac
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
40198 ac_status=$?
40199 grep -v '^ *+' conftest.er1 >conftest.err
40200 rm -f conftest.er1
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
40209 }; then
40210 ac_cv_search_valid_enctype=$ac_res
40211 else
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 \
40220 conftest$ac_exeext
40221 if test "${ac_cv_search_valid_enctype+set}" = set; then
40222 break
40224 done
40225 if test "${ac_cv_search_valid_enctype+set}" = set; then
40227 else
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
40256 else
40257 ac_func_search_save_LIBS=$LIBS
40258 cat >conftest.$ac_ext <<_ACEOF
40259 /* confdefs.h. */
40260 _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. */
40268 #ifdef __cplusplus
40269 extern "C"
40270 #endif
40271 char compile ();
40273 main ()
40275 return compile ();
40277 return 0;
40279 _ACEOF
40280 for ac_lib in '' gen; do
40281 if test -z "$ac_lib"; then
40282 ac_res="none required"
40283 else
40284 ac_res=-l$ac_lib
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;;
40292 esac
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
40296 ac_status=$?
40297 grep -v '^ *+' conftest.er1 >conftest.err
40298 rm -f conftest.er1
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
40307 }; then
40308 ac_cv_search_compile=$ac_res
40309 else
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 \
40318 conftest$ac_exeext
40319 if test "${ac_cv_search_compile+set}" = set; then
40320 break
40322 done
40323 if test "${ac_cv_search_compile+set}" = set; then
40325 else
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???
40342 # Irix 5.3
40344 # krb5 MIT K5 v1.1.1
40346 # krb5 MIT K5 v1.2.2-beta1 -lcrypto -lcom_err
40347 # Linux 2.2.17
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
40357 else
40358 ac_func_search_save_LIBS=$LIBS
40359 cat >conftest.$ac_ext <<_ACEOF
40360 /* confdefs.h. */
40361 _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. */
40369 #ifdef __cplusplus
40370 extern "C"
40371 #endif
40372 char krb5_free_context ();
40374 main ()
40376 return krb5_free_context ();
40378 return 0;
40380 _ACEOF
40381 for ac_lib in '' krb5; do
40382 if test -z "$ac_lib"; then
40383 ac_res="none required"
40384 else
40385 ac_res=-l$ac_lib
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;;
40393 esac
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
40397 ac_status=$?
40398 grep -v '^ *+' conftest.er1 >conftest.err
40399 rm -f conftest.er1
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
40408 }; then
40409 ac_cv_search_krb5_free_context=$ac_res
40410 else
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 \
40419 conftest$ac_exeext
40420 if test "${ac_cv_search_krb5_free_context+set}" = set; then
40421 break
40423 done
40424 if test "${ac_cv_search_krb5_free_context+set}" = set; then
40426 else
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
40456 else
40457 ac_func_search_save_LIBS=$LIBS
40458 cat >conftest.$ac_ext <<_ACEOF
40459 /* confdefs.h. */
40460 _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. */
40468 #ifdef __cplusplus
40469 extern "C"
40470 #endif
40471 char gss_import_name ();
40473 main ()
40475 return gss_import_name ();
40477 return 0;
40479 _ACEOF
40480 for ac_lib in '' gssapi_krb5 gssapi; do
40481 if test -z "$ac_lib"; then
40482 ac_res="none required"
40483 else
40484 ac_res=-l$ac_lib
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;;
40492 esac
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
40496 ac_status=$?
40497 grep -v '^ *+' conftest.er1 >conftest.err
40498 rm -f conftest.er1
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
40507 }; then
40508 ac_cv_search_gss_import_name=$ac_res
40509 else
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 \
40518 conftest$ac_exeext
40519 if test "${ac_cv_search_gss_import_name+set}" = set; then
40520 break
40522 done
40523 if test "${ac_cv_search_gss_import_name+set}" = set; then
40525 else
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
40545 # with CVS.
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
40553 else
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; }
40568 else :; fi
40569 if test "${acx_zlib_cv_external_zlib+set}" = set; then
40570 $as_echo_n "(cached) " >&6
40571 else
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
40580 break
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
40586 $as_echo "" >&6; }
40587 else
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
40592 $as_echo "" >&6; }
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; }
40609 else
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
40614 /* confdefs.h. */
40615 _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>
40621 _ACEOF
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;;
40627 esac
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
40631 ac_status=$?
40632 grep -v '^ *+' conftest.er1 >conftest.err
40633 rm -f conftest.er1
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
40641 else
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
40656 /* confdefs.h. */
40657 _ACEOF
40658 cat confdefs.h >>conftest.$ac_ext
40659 cat >>conftest.$ac_ext <<_ACEOF
40660 /* end confdefs.h. */
40661 #include <$ac_header>
40662 _ACEOF
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;;
40667 esac
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
40671 ac_status=$?
40672 grep -v '^ *+' conftest.er1 >conftest.err
40673 rm -f conftest.er1
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
40679 }; then
40680 ac_header_preproc=yes
40681 else
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
40694 yes:no: )
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
40701 no: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;}
40714 ( cat <<\_ASBOX
40715 ## --------------------------------- ##
40716 ## Report this to bug-cvs@nongnu.org ##
40717 ## --------------------------------- ##
40718 _ASBOX
40719 ) | sed "s/^/$as_me: WARNING: /" >&2
40721 esac
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
40726 else
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
40740 _ACEOF
40744 done
40746 if test "$ac_cv_header_zlib_h" = yes; then
40747 break
40749 done
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; }
40768 else
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
40782 /* confdefs.h. */
40783 _ACEOF
40784 cat confdefs.h >>conftest.$ac_ext
40785 cat >>conftest.$ac_ext <<_ACEOF
40786 /* end confdefs.h. */
40787 #include <zlib.h>
40789 _ACEOF
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 //;
40793 s/^ *//;
40794 s/ *\$//;
40795 p;}" 2>&5`
40796 if test -n "$ac_extract_cpp_result"; then
40797 ZLIB_VERSION=$ac_extract_cpp_result
40799 rm -f conftest*
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
40805 else
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/;'`
40818 asx_count=1
40819 asx_save_IFS=$IFS
40820 IFS=.
40821 asx_retval=-1
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
40825 asx_retval=1
40826 break
40827 elif test $vsub1 -lt $vsub2; then
40828 break
40830 asx_count=`expr $asx_count + 1`
40831 done
40832 IFS=$asx_save_IFS
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;}
40842 else
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"
40873 else
40874 CPPFLAGS="$CPPFLAGS -I$with_external_zlib/include"
40876 if test -z "$LDFLAGS"; then
40877 LDFLAGS="-L$with_external_zlib/lib"
40878 else
40879 LDFLAGS="$LDFLAGS -L$with_external_zlib/lib"
40883 ZLIB_CPPFLAGS=
40884 ZLIB_LIBS=
40885 ZLIB_SUBDIRS=
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.
40892 ZLIB_SUBDIRS=zlib
40893 else
40894 # We know what to do now, so set up the CPPFLAGS, LDFLAGS, and LIBS for later
40895 # use.
40896 if test -z "$LIBS"; then
40897 LIBS=-lz
40898 else
40899 LIBS="$LIBS -lz"
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
40910 /* confdefs.h. */
40911 _ACEOF
40912 cat confdefs.h >>conftest.$ac_ext
40913 cat >>conftest.$ac_ext <<_ACEOF
40914 /* end confdefs.h. */
40915 #include <zlib.h>
40917 main ()
40919 int i = Z_OK; const char *version = zlibVersion();
40921 return 0;
40923 _ACEOF
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;;
40929 esac
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
40933 ac_status=$?
40934 grep -v '^ *+' conftest.er1 >conftest.err
40935 rm -f conftest.er1
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
40944 }; then
40945 { $as_echo "$as_me:$LINENO: result: yes" >&5
40946 $as_echo "yes" >&6; }
40947 else
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
40970 withval=$with_rsh;
40971 else
40972 with_rsh="ssh rsh"
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;}
40979 with_rsh=rsh
40980 elif test yes = "$with_rsh"; then
40981 # Make --with-rsh mean the same thing as --with-rsh=rsh
40982 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
40988 # regardless
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;}
40998 else
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
41008 else
41009 if test -n "$with_default_rsh"; then
41010 ac_cv_prog_with_default_rsh="$with_default_rsh" # Let the user override the test.
41011 else
41012 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
41013 for as_dir in $PATH
41015 IFS=$as_save_IFS
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
41021 break 2
41023 done
41024 done
41025 IFS=$as_save_IFS
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; }
41033 else
41034 { $as_echo "$as_me:$LINENO: result: no" >&5
41035 $as_echo "no" >&6; }
41039 test -n "$with_default_rsh" && break
41040 done
41041 test -n "$with_default_rsh" || with_default_rsh=""rsh""
41046 cat >>confdefs.h <<_ACEOF
41047 #define RSH_DFLT "$with_default_rsh"
41048 _ACEOF
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;
41061 else
41062 with_editor=yes
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
41083 # regardless
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
41105 else
41106 if test -n "$EDITOR"; then
41107 ac_cv_prog_EDITOR="$EDITOR" # Let the user override the test.
41108 else
41109 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
41110 for as_dir in $PATH
41112 IFS=$as_save_IFS
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
41118 break 2
41120 done
41121 done
41122 IFS=$as_save_IFS
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; }
41130 else
41131 { $as_echo "$as_me:$LINENO: result: no" >&5
41132 $as_echo "no" >&6; }
41136 test -n "$EDITOR" && break
41137 done
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; }; }
41151 else
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"
41164 _ACEOF
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;
41174 else
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
41184 _ACEOF
41186 else
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"
41192 _ACEOF
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
41211 break
41213 done
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;}
41217 with_tmpdir=/tmp
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"
41240 _ACEOF
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
41254 with_umask=002
41255 elif test no = "$with_umask"; then
41256 with_umask=000
41260 cat >>confdefs.h <<_ACEOF
41261 #define UMASK_DFLT $with_umask
41262 _ACEOF
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;
41270 else
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"
41282 _ACEOF
41287 # Check whether --enable-cvs-ndbm was given.
41288 if test "${enable_cvs_ndbm+set}" = set; then
41289 enableval=$enable_cvs_ndbm;
41290 else
41291 enable_cvs_ndbm=yes
41294 if test no != "$enable_cvs_ndbm"; then
41296 cat >>confdefs.h <<\_ACEOF
41297 #define MY_NDBM 1
41298 _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;
41315 else
41316 enable_client=$ac_cv_search_connect
41319 if test no != "$enable_client"; then
41321 cat >>confdefs.h <<\_ACEOF
41322 #define CLIENT_SUPPORT 1
41323 _ACEOF
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;
41332 else
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
41342 _ACEOF
41344 else
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;
41358 else
41359 enable_server=$ac_cv_search_connect
41363 if test no != "$enable_server"; then
41365 cat >>confdefs.h <<\_ACEOF
41366 #define SERVER_SUPPORT 1
41367 _ACEOF
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
41374 else
41375 ac_func_search_save_LIBS=$LIBS
41376 cat >conftest.$ac_ext <<_ACEOF
41377 /* confdefs.h. */
41378 _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. */
41386 #ifdef __cplusplus
41387 extern "C"
41388 #endif
41389 char crypt ();
41391 main ()
41393 return crypt ();
41395 return 0;
41397 _ACEOF
41398 for ac_lib in '' crypt; do
41399 if test -z "$ac_lib"; then
41400 ac_res="none required"
41401 else
41402 ac_res=-l$ac_lib
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;;
41410 esac
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
41414 ac_status=$?
41415 grep -v '^ *+' conftest.er1 >conftest.err
41416 rm -f conftest.er1
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
41425 }; then
41426 ac_cv_search_crypt=$ac_res
41427 else
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 \
41436 conftest$ac_exeext
41437 if test "${ac_cv_search_crypt+set}" = set; then
41438 break
41440 done
41441 if test "${ac_cv_search_crypt+set}" = set; then
41443 else
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
41457 _ACEOF
41460 cat >>confdefs.h <<\_ACEOF
41461 #define AUTH_SERVER_SUPPORT 1
41462 _ACEOF
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
41471 else
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";;
41485 b | '') ;;
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; }; }
41491 esac
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; }; }
41505 esac
41508 cat >>confdefs.h <<\_ACEOF
41509 #define SERVER_FLOWCONTROL 1
41510 _ACEOF
41513 cat >>confdefs.h <<_ACEOF
41514 #define SERVER_LO_WATER ($ccvs_lwm)
41515 _ACEOF
41518 cat >>confdefs.h <<_ACEOF
41519 #define SERVER_HI_WATER ($ccvs_hwm)
41520 _ACEOF
41522 fi # enable_server_flow_control
41523 fi # enable_server
41528 # Check whether --enable-proxy was given.
41529 if test "${enable_proxy+set}" = set; then
41530 enableval=$enable_proxy;
41531 else
41532 if test xno != "x$enable_client" && test xno != "x$enable_server"; then
41533 enable_proxy=yes
41534 else
41535 enable_proxy=no
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;}
41546 else
41548 cat >>confdefs.h <<\_ACEOF
41549 #define PROXY_SUPPORT 1
41550 _ACEOF
41557 # Check whether --enable-pam was given.
41558 if test "${enable_pam+set}" = set; then
41559 enableval=$enable_pam;
41560 else
41561 enable_pam=no
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; }
41577 else
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
41582 /* confdefs.h. */
41583 _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>
41589 _ACEOF
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;;
41595 esac
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
41599 ac_status=$?
41600 grep -v '^ *+' conftest.er1 >conftest.err
41601 rm -f conftest.er1
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
41609 else
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
41624 /* confdefs.h. */
41625 _ACEOF
41626 cat confdefs.h >>conftest.$ac_ext
41627 cat >>conftest.$ac_ext <<_ACEOF
41628 /* end confdefs.h. */
41629 #include <security/pam_appl.h>
41630 _ACEOF
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;;
41635 esac
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
41639 ac_status=$?
41640 grep -v '^ *+' conftest.er1 >conftest.err
41641 rm -f conftest.er1
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
41647 }; then
41648 ac_header_preproc=yes
41649 else
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
41662 yes:no: )
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
41669 no: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;}
41682 ( cat <<\_ASBOX
41683 ## --------------------------------- ##
41684 ## Report this to bug-cvs@nongnu.org ##
41685 ## --------------------------------- ##
41686 _ASBOX
41687 ) | sed "s/^/$as_me: WARNING: /" >&2
41689 esac
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
41694 else
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
41706 _ACEOF
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; }
41722 else
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
41727 /* confdefs.h. */
41728 _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>
41734 _ACEOF
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;;
41740 esac
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
41744 ac_status=$?
41745 grep -v '^ *+' conftest.er1 >conftest.err
41746 rm -f conftest.er1
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
41754 else
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
41769 /* confdefs.h. */
41770 _ACEOF
41771 cat confdefs.h >>conftest.$ac_ext
41772 cat >>conftest.$ac_ext <<_ACEOF
41773 /* end confdefs.h. */
41774 #include <pam/pam_appl.h>
41775 _ACEOF
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;;
41780 esac
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
41784 ac_status=$?
41785 grep -v '^ *+' conftest.er1 >conftest.err
41786 rm -f conftest.er1
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
41792 }; then
41793 ac_header_preproc=yes
41794 else
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
41807 yes:no: )
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
41814 no: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;}
41827 ( cat <<\_ASBOX
41828 ## --------------------------------- ##
41829 ## Report this to bug-cvs@nongnu.org ##
41830 ## --------------------------------- ##
41831 _ASBOX
41832 ) | sed "s/^/$as_me: WARNING: /" >&2
41834 esac
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
41839 else
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
41851 _ACEOF
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; }; }
41863 else
41865 cat >>confdefs.h <<\_ACEOF
41866 #define HAVE_PAM 1
41867 _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
41873 else
41874 ac_check_lib_save_LIBS=$LIBS
41875 LIBS="-lpam $LIBS"
41876 cat >conftest.$ac_ext <<_ACEOF
41877 /* confdefs.h. */
41878 _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. */
41886 #ifdef __cplusplus
41887 extern "C"
41888 #endif
41889 char pam_start ();
41891 main ()
41893 return pam_start ();
41895 return 0;
41897 _ACEOF
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;;
41903 esac
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
41907 ac_status=$?
41908 grep -v '^ *+' conftest.er1 >conftest.err
41909 rm -f conftest.er1
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
41918 }; then
41919 ac_cv_lib_pam_pam_start=yes
41920 else
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"
41936 else
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; }; }
41962 esac
41963 else
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
41974 else
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
41979 else
41980 acx_cv_case_sensitive=yes
41982 rm ac_test_filenames_case_sensitive
41986 enable_case_sensitivity=$acx_cv_case_sensitive
41987 acx_forced=
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
41995 _ACEOF
41997 case " $LIBOBJS " in
41998 *" fncase.$ac_objext "* ) ;;
41999 *) LIBOBJS="$LIBOBJS fncase.$ac_objext"
42001 esac
42008 # Check whether --enable-encryption was given.
42009 if test "${enable_encryption+set}" = set; then
42010 enableval=$enable_encryption;
42011 else
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;}
42021 else
42023 cat >>confdefs.h <<\_ACEOF
42024 #define ENCRYPTION 1
42025 _ACEOF
42033 # Check whether --enable-force-editor was given.
42034 if test "${enable_force_editor+set}" = set; then
42035 enableval=$enable_force_editor;
42036 else
42037 enable_force_editor=no
42041 if test yes = "$enable_force_editor"; then
42043 cat >>confdefs.h <<\_ACEOF
42044 #define FORCE_USE_EDITOR 1
42045 _ACEOF
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;
42057 else
42058 enable_lock_compatibility=yes
42062 if test x$enable_lock_compatibility = xyes; then
42064 cat >>confdefs.h <<\_ACEOF
42065 #define LOCK_COMPATIBILITY 1
42066 _ACEOF
42073 # Check whether --enable-rootcommit was given.
42074 if test "${enable_rootcommit+set}" = set; then
42075 enableval=$enable_rootcommit;
42076 else
42077 enable_rootcommit=no
42080 if test "$enable_rootcommit" = no; then
42082 cat >>confdefs.h <<\_ACEOF
42083 #define CVS_BADROOT 1
42084 _ACEOF
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;
42092 else
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
42100 _ACEOF
42107 # Check whether --enable-config-override was given.
42108 if test "${enable_config_override+set}" = set; then
42109 enableval=$enable_config_override;
42110 else
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
42128 save_IFS=$IFS
42129 IFS=,
42130 arrayinit=""
42131 for path in $enable_config_override; do
42132 IFS=$save_IFS
42133 case "$path" in
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; }; };;
42146 esac
42147 done
42148 arrayinit="${arrayinit}NULL"
42151 cat >>confdefs.h <<_ACEOF
42152 #define ALLOW_CONFIG_OVERRIDE $arrayinit
42153 _ACEOF
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
42168 else
42169 cat >conftest.$ac_ext <<_ACEOF
42170 /* confdefs.h. */
42171 _ACEOF
42172 cat confdefs.h >>conftest.$ac_ext
42173 cat >>conftest.$ac_ext <<_ACEOF
42174 /* end confdefs.h. */
42177 main ()
42179 return __CYGWIN32__;
42181 return 0;
42183 _ACEOF
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;;
42189 esac
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
42193 ac_status=$?
42194 grep -v '^ *+' conftest.er1 >conftest.err
42195 rm -f conftest.er1
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
42203 else
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
42220 _ACEOF
42224 cat >>confdefs.h <<\_ACEOF
42225 #define USE_SETMODE_STDOUT 1
42226 _ACEOF
42229 cat >>confdefs.h <<\_ACEOF
42230 #define HAVE_SETMODE 1
42231 _ACEOF
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.
42281 _ACEOF
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
42291 case $ac_val in #(
42292 *${as_nl}*)
42293 case $ac_var in #(
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;} ;;
42296 esac
42297 case $ac_var in #(
42298 _ | IFS | as_nl) ;; #(
42299 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
42300 *) $as_unset $ac_var ;;
42301 esac ;;
42302 esac
42303 done
42305 (set) 2>&1 |
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 \).
42310 sed -n \
42311 "s/'/'\\\\''/g;
42312 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
42313 ;; #(
42315 # `set' quotes correctly as required by POSIX, so do not add quotes.
42316 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
42318 esac |
42319 sort
42321 sed '
42322 /^ac_cv_env_/b end
42323 t clear
42324 :clear
42325 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
42326 t end
42327 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
42328 :end' >>confcache
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
42335 else
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;}
42340 rm -f confcache
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
42348 ac_libobjs=
42349 ac_ltlibobjs=
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'
42358 done
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}
42402 ac_write_fail=0
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
42408 #! $SHELL
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.
42414 debug=false
42415 ac_cs_recheck=false
42416 ac_cs_silent=false
42417 SHELL=\${CONFIG_SHELL-$SHELL}
42418 _ACEOF
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
42428 emulate sh
42429 NULLCMD=:
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
42434 else
42435 case `(set -o) 2>/dev/null` in
42436 *posix*) set -o posix ;;
42437 esac
42444 # PATH needs CR
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
42452 as_nl='
42454 export as_nl
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'
42462 else
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'
42466 else
42467 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
42468 as_echo_n_body='eval
42469 arg=$1;
42470 case $arg in
42471 *"$as_nl"*)
42472 expr "X$arg" : "X\\(.*\\)$as_nl";
42473 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
42474 esac;
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
42486 PATH_SEPARATOR=:
42487 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
42488 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
42489 PATH_SEPARATOR=';'
42493 # Support unset when possible.
42494 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
42495 as_unset=unset
42496 else
42497 as_unset=false
42501 # IFS
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.)
42506 IFS=" "" $as_nl"
42508 # Find who we are. Look in the path if we contain no directory separator.
42509 case $0 in
42510 *[\\/]* ) as_myself=$0 ;;
42511 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
42512 for as_dir in $PATH
42514 IFS=$as_save_IFS
42515 test -z "$as_dir" && as_dir=.
42516 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
42517 done
42518 IFS=$as_save_IFS
42521 esac
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
42525 as_myself=$0
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
42535 done
42536 PS1='$ '
42537 PS2='> '
42538 PS4='+ '
42540 # NLS nuisances.
42541 LC_ALL=C
42542 export LC_ALL
42543 LANGUAGE=C
42544 export LANGUAGE
42546 # Required to use basename.
42547 if expr a : '\(a\)' >/dev/null 2>&1 &&
42548 test "X`expr 00001 : '.*\(...\)'`" = X001; then
42549 as_expr=expr
42550 else
42551 as_expr=false
42554 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
42555 as_basename=basename
42556 else
42557 as_basename=false
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 ||
42566 $as_echo X/"$0" |
42567 sed '/^.*\/\([^/][^/]*\)\/*$/{
42568 s//\1/
42571 /^X\/\(\/\/\)$/{
42572 s//\1/
42575 /^X\/\(\/\).*/{
42576 s//\1/
42579 s/.*/./; q'`
42581 # CDPATH.
42582 $as_unset CDPATH
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. :-)
42601 sed -n '
42603 /[$]LINENO/=
42604 ' <$as_myself |
42605 sed '
42606 s/[$]LINENO.*/&-/
42607 t lineno
42609 :lineno
42611 :loop
42612 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
42613 t loop
42614 s/-\n.*//
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.
42625 exit
42629 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
42630 as_dirname=dirname
42631 else
42632 as_dirname=false
42635 ECHO_C= ECHO_N= ECHO_T=
42636 case `echo -n x` in
42637 -n*)
42638 case `echo 'x\c'` in
42639 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
42640 *) ECHO_C='\c';;
42641 esac;;
42643 ECHO_N='-n';;
42644 esac
42645 if expr a : '\(a\)' >/dev/null 2>&1 &&
42646 test "X`expr 00001 : '.*\(...\)'`" = X001; then
42647 as_expr=expr
42648 else
42649 as_expr=false
42652 rm -f conf$$ conf$$.exe conf$$.file
42653 if test -d conf$$.dir; then
42654 rm -f conf$$.dir/conf$$.file
42655 else
42656 rm -f conf$$.dir
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
42661 as_ln_s='ln -s'
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 ||
42667 as_ln_s='cp -p'
42668 elif ln conf$$.file conf$$ 2>/dev/null; then
42669 as_ln_s=ln
42670 else
42671 as_ln_s='cp -p'
42673 else
42674 as_ln_s='cp -p'
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
42680 as_mkdir_p=:
42681 else
42682 test -d ./-p && rmdir ./-p
42683 as_mkdir_p=false
42686 if test -x / >/dev/null 2>&1; then
42687 as_test_x='test -x'
42688 else
42689 if ls -dL / >/dev/null 2>&1; then
42690 as_ls_L_option=L
42691 else
42692 as_ls_L_option=
42694 as_test_x='
42695 eval sh -c '\''
42696 if test -d "$1"; then
42697 test -d "$1/.";
42698 else
42699 case $1 in
42700 -*)set "./$1";;
42701 esac;
42702 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
42703 ???[sx]*):;;*)false;;esac;fi
42704 '\'' sh
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'"
42716 exec 6>&1
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.
42721 ac_log="
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
42729 $ $0 $@
42731 on `(hostname || uname -n) 2>/dev/null | sed 1q`
42734 _ACEOF
42736 case $ac_config_files in *"
42737 "*) set x $ac_config_files; shift; ac_config_files=$*;;
42738 esac
42740 case $ac_config_headers in *"
42741 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
42742 esac
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"
42751 _ACEOF
42753 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
42754 ac_cs_usage="\
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:
42772 $config_files
42774 Configuration headers:
42775 $config_headers
42777 Configuration commands:
42778 $config_commands
42780 Report bugs to <bug-autoconf@gnu.org>."
42782 _ACEOF
42783 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
42784 ac_cs_version="\\
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."
42793 ac_pwd='$ac_pwd'
42794 srcdir='$srcdir'
42795 INSTALL='$INSTALL'
42796 MKDIR_P='$MKDIR_P'
42797 AWK='$AWK'
42798 test -n "\$AWK" || AWK=awk
42799 _ACEOF
42801 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
42802 # The default lists apply if the user does not specify any file.
42803 ac_need_defaults=:
42804 while test $# != 0
42806 case $1 in
42807 --*=*)
42808 ac_option=`expr "X$1" : 'X\([^=]*\)='`
42809 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
42810 ac_shift=:
42813 ac_option=$1
42814 ac_optarg=$2
42815 ac_shift=shift
42817 esac
42819 case $ac_option in
42820 # Handling of the options.
42821 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
42822 ac_cs_recheck=: ;;
42823 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
42824 $as_echo "$ac_cs_version"; exit ;;
42825 --debug | --debu | --deb | --de | --d | -d )
42826 debug=: ;;
42827 --file | --fil | --fi | --f )
42828 $ac_shift
42829 case $ac_optarg in
42830 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
42831 esac
42832 CONFIG_FILES="$CONFIG_FILES '$ac_optarg'"
42833 ac_need_defaults=false;;
42834 --header | --heade | --head | --hea )
42835 $ac_shift
42836 case $ac_optarg in
42837 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
42838 esac
42839 CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'"
42840 ac_need_defaults=false;;
42841 --he | --h)
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)
42850 ac_cs_silent=: ;;
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 ;;
42860 esac
42861 shift
42862 done
42864 ac_configure_extra_args=
42866 if $ac_cs_silent; then
42867 exec 6>/dev/null
42868 ac_configure_extra_args="$ac_configure_extra_args --silent"
42871 _ACEOF
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
42875 shift
42876 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
42877 CONFIG_SHELL='$SHELL'
42878 export CONFIG_SHELL
42879 exec "\$@"
42882 _ACEOF
42883 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
42884 exec 5>>config.log
42886 echo
42887 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
42888 ## Running $as_me. ##
42889 _ASBOX
42890 $as_echo "$ac_log"
42891 } >&5
42893 _ACEOF
42894 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
42896 # INIT-COMMANDS
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
42901 # from automake.
42902 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
42903 # Capture the value of LINGUAS because we need it to compute CATALOGS.
42904 LINGUAS="${LINGUAS-%UNSET%}"
42907 _ACEOF
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; }; };;
42956 esac
42957 done
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'.
42976 $debug ||
42978 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"
42989 } ||
42991 tmp=./conf$$-$RANDOM
42992 (umask 077 && mkdir "$tmp")
42993 } ||
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)
43009 print(aline)
43010 close(F[key])'
43011 ac_cs_awk_pipe_fini=
43012 else
43013 ac_cs_awk_getline=false
43014 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
43015 ac_cs_awk_read_file='
43016 print "|#_!!_#|"
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 ":" }'
43022 ac_cr=' '
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
43025 ac_cs_awk_cr='\\r'
43026 else
43027 ac_cs_awk_cr=$ac_cr
43030 echo 'BEGIN {' >"$tmp/subs1.awk" &&
43031 _ACEOF
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["&"]="$&"/' &&
43038 echo "_ACAWK" &&
43039 echo "_ACEOF"
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/' &&
43050 echo "_ACEOF"
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 '$'`
43056 ac_delim='%!_!# '
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
43065 break
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; }; }
43070 else
43071 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
43073 done
43074 rm -f conf$$subs.sh
43076 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
43077 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
43078 _ACEOF
43079 sed -n '
43081 s/^/S["/; s/!.*/"]=/
43084 s/^[^!]*!//
43085 :repl
43086 t repl
43087 s/'"$ac_delim"'$//
43088 t delim
43091 s/\(.\{148\}\).*/\1/
43092 t more1
43093 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
43096 b repl
43097 :more1
43098 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
43101 s/.\{148\}//
43102 t nl
43103 :delim
43105 s/\(.\{148\}\).*/\1/
43106 t more2
43107 s/["\\]/\\&/g; s/^/"/; s/$/"/
43110 :more2
43111 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
43114 s/.\{148\}//
43115 t delim
43116 ' <conf$$subs.awk | sed '
43117 /^[^""]/{
43119 s/\n//
43121 ' >>$CONFIG_STATUS || ac_write_fail=1
43122 rm -f conf$$subs.awk
43123 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
43124 _ACAWK
43125 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
43126 for (key in S) S_is_set[key] = 1
43127 FS = "\a"
43128 \$ac_cs_awk_pipe_init
43131 line = $ 0
43132 nfields = split(line, field, "@")
43133 substed = 0
43134 len = length(field[1])
43135 for (i = 2; i < nfields; i++) {
43136 key = field[i]
43137 keylen = length(key)
43138 if (S_is_set[key]) {
43139 value = S[key]
43140 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
43141 len += length(value) + length(field[++i])
43142 substed = 1
43143 } else
43144 len += 1 + keylen
43146 if (nfields == 3 && !substed) {
43147 key = field[2]
43148 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
43149 \$ac_cs_awk_read_file
43150 next
43153 print line
43155 \$ac_cs_awk_pipe_fini
43156 _ACAWK
43157 _ACEOF
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"
43161 else
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; }; }
43167 _ACEOF
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}:*/:/
43177 s/:*@srcdir@:*/:/
43178 s/^\([^=]*=[ ]*\):*/\1/
43179 s/:*$//
43180 s/^[^=]*=[ ]*$//
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 ||
43192 BEGIN {
43193 _ACEOF
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.
43201 ac_delim='%!_!# '
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
43205 break
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; }; }
43210 else
43211 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
43213 done
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]*
43220 sed -n '
43221 s/.\{148\}/&'"$ac_delim"'/g
43222 t rset
43223 :rset
43224 s/^[ ]*#[ ]*define[ ][ ]*/ /
43225 t def
43227 :def
43228 s/\\$//
43229 t bsnl
43230 s/["\\]/\\&/g
43231 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
43232 D["\1"]=" \3"/p
43233 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
43235 :bsnl
43236 s/["\\]/\\&/g
43237 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
43238 D["\1"]=" \3\\\\\\n"\\/p
43239 t cont
43240 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
43241 t cont
43243 :cont
43245 s/.\{148\}/&'"$ac_delim"'/g
43246 t clear
43247 :clear
43248 s/\\$//
43249 t bsnlc
43250 s/["\\]/\\&/g; s/^/"/; s/$/"/p
43252 :bsnlc
43253 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
43254 b cont
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
43261 FS = "\a"
43263 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
43264 line = \$ 0
43265 split(line, arg, " ")
43266 if (arg[1] == "#") {
43267 defundef = arg[2]
43268 mac1 = arg[3]
43269 } else {
43270 defundef = substr(arg[1], 2)
43271 mac1 = arg[2]
43273 split(mac1, mac2, "(") #)
43274 macro = mac2[1]
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]
43279 next
43280 } else {
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, "*/"
43286 next
43290 { print }
43291 _ACAWK
43292 _ACEOF
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"
43301 shift
43302 for ac_tag
43304 case $ac_tag in
43305 :[FHLC]) ac_mode=$ac_tag; continue;;
43306 esac
43307 case $ac_mode$ac_tag in
43308 :[FHL]*:*);;
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;;
43314 esac
43315 ac_save_IFS=$IFS
43316 IFS=:
43317 set x $ac_tag
43318 IFS=$ac_save_IFS
43319 shift
43320 ac_file=$1
43321 shift
43323 case $ac_mode in
43324 :L) ac_source=$1;;
43325 :[FH])
43326 ac_file_inputs=
43327 for ac_f
43329 case $ac_f 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 `:'.
43334 test -f "$ac_f" ||
43335 case $ac_f in
43336 [\\/$]*) false;;
43337 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
43338 esac ||
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; }; };;
43342 esac
43343 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
43344 ac_file_inputs="$ac_file_inputs '$ac_f'"
43345 done
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'
43352 `' by configure.'
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;;
43364 esac
43366 case $ac_tag in
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; }; } ;;
43371 esac
43373 esac
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\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
43382 s//\1/
43385 /^X\(\/\/\)[^/].*/{
43386 s//\1/
43389 /^X\(\/\/\)$/{
43390 s//\1/
43393 /^X\(\/\).*/{
43394 s//\1/
43397 s/.*/./; q'`
43398 { as_dir="$ac_dir"
43399 case $as_dir in #(
43400 -*) as_dir=./$as_dir;;
43401 esac
43402 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
43403 as_dirs=
43404 while :; do
43405 case $as_dir in #(
43406 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
43407 *) as_qdir=$as_dir;;
43408 esac
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\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
43417 s//\1/
43420 /^X\(\/\/\)[^/].*/{
43421 s//\1/
43424 /^X\(\/\/\)$/{
43425 s//\1/
43428 /^X\(\/\).*/{
43429 s//\1/
43432 s/.*/./; q'`
43433 test -d "$as_dir" && break
43434 done
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; }; }; }
43439 ac_builddir=.
43441 case "$ac_dir" in
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/ ;;
43450 esac ;;
43451 esac
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
43457 case $srcdir in
43458 .) # We are building in place.
43459 ac_srcdir=.
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 ;;
43470 esac
43471 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
43474 case $ac_mode in
43477 # CONFIG_FILE
43480 case $INSTALL in
43481 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
43482 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
43483 esac
43484 ac_MKDIR_P=$MKDIR_P
43485 case $MKDIR_P in
43486 [\\/$]* | ?:[\\/]* ) ;;
43487 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
43488 esac
43489 _ACEOF
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=
43496 ac_sed_dataroot='
43497 /datarootdir/ {
43501 /@datadir@/p
43502 /@docdir@/p
43503 /@infodir@/p
43504 /@localedir@/p
43505 /@mandir@/p
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;}
43512 _ACEOF
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' ;;
43521 esac
43522 _ACEOF
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
43529 $extrasub
43530 _ACEOF
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"
43551 else
43552 $AWK -f "$tmp/subs.awk" | $SHELL
43553 fi >$tmp/out \
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;}
43566 rm -f "$tmp/stdin"
43567 case $ac_file in
43568 -) cat "$tmp/out" && rm -f "$tmp/out";;
43569 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
43570 esac \
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; }; }
43577 # CONFIG_HEADER
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;}
43590 else
43591 rm -f "$ac_file"
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; }; }
43597 else
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.
43605 _am_arg="$ac_file"
43606 _am_stamp_count=1
43607 for _am_header in $config_headers :; do
43608 case $_am_header in
43609 $_am_arg | $_am_arg:* )
43610 break ;;
43612 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
43613 esac
43614 done
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\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
43622 s//\1/
43625 /^X\(\/\/\)[^/].*/{
43626 s//\1/
43629 /^X\(\/\/\)$/{
43630 s//\1/
43633 /^X\(\/\).*/{
43634 s//\1/
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;}
43643 esac
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 ||
43663 $as_echo X"$mf" |
43664 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
43665 s//\1/
43668 /^X\(\/\/\)[^/].*/{
43669 s//\1/
43672 /^X\(\/\/\)$/{
43673 s//\1/
43676 /^X\(\/\).*/{
43677 s//\1/
43680 s/.*/./; q'`
43681 else
43682 continue
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
43696 # expansion.
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\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
43709 s//\1/
43712 /^X\(\/\/\)[^/].*/{
43713 s//\1/
43716 /^X\(\/\/\)$/{
43717 s//\1/
43720 /^X\(\/\).*/{
43721 s//\1/
43724 s/.*/./; q'`
43725 { as_dir=$dirpart/$fdir
43726 case $as_dir in #(
43727 -*) as_dir=./$as_dir;;
43728 esac
43729 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
43730 as_dirs=
43731 while :; do
43732 case $as_dir in #(
43733 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
43734 *) as_qdir=$as_dir;;
43735 esac
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\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
43744 s//\1/
43747 /^X\(\/\/\)[^/].*/{
43748 s//\1/
43751 /^X\(\/\/\)$/{
43752 s//\1/
43755 /^X\(\/\).*/{
43756 s//\1/
43759 s/.*/./; q'`
43760 test -d "$as_dir" && break
43761 done
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"
43768 done
43769 done
43771 "default-1":C)
43772 for ac_file in $CONFIG_FILES; do
43773 # Support "outfile[:infile[:infile...]]"
43774 case "$ac_file" in
43775 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
43776 esac
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" ;;
43790 esac
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
43801 # parameters.
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"
43811 else
43812 # The set of available languages was given in configure.in.
43813 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
43815 # Compute POFILES
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)
43821 # Compute GMOFILES
43822 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
43823 case "$ac_given_srcdir" in
43824 .) srcdirpre= ;;
43825 *) srcdirpre='$(srcdir)/' ;;
43826 esac
43827 POFILES=
43828 UPDATEPOFILES=
43829 DUMMYPOFILES=
43830 GMOFILES=
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"
43836 done
43837 # CATALOGS depends on both $ac_dir and the user's LINGUAS
43838 # environment variable.
43839 INST_LINGUAS=
43840 if test -n "$ALL_LINGUAS"; then
43841 for presentlang in $ALL_LINGUAS; do
43842 useit=no
43843 if test "%UNSET%" != "$LINGUAS"; then
43844 desiredlanguages="$LINGUAS"
43845 else
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;;
43856 esac
43857 done
43858 if test $useit = yes; then
43859 INST_LINGUAS="$INST_LINGUAS $presentlang"
43861 done
43863 CATALOGS=
43864 if test -n "$INST_LINGUAS"; then
43865 for lang in $INST_LINGUAS; do
43866 CATALOGS="$CATALOGS $lang.gmo"
43867 done
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
43873 case "$f" in
43874 *.orig | *.bak | *~) ;;
43875 *) cat "$f" >> "$ac_dir/Makefile" ;;
43876 esac
43878 done
43881 esac
43882 done ;;
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 ;;
43898 esac
43899 done # for ac_tag
43902 { (exit 0); exit 0; }
43903 _ACEOF
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
43922 ac_cs_success=:
43923 ac_config_status_args=
43924 test "$silent" = yes &&
43925 ac_config_status_args="$ac_config_status_args --quiet"
43926 exec 5>/dev/null
43927 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
43928 exec 5>>config.log
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.