#6536 fixed typo
[python.git] / configure
blobc9672d03430b0f58b4ba43053738c0abf99000be
1 #! /bin/sh
2 # From configure.in Revision: 74044 .
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated by GNU Autoconf 2.61 for python 2.7.
6 # Report bugs to <http://bugs.python.org/>.
8 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
9 # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
10 # This configure script is free software; the Free Software Foundation
11 # gives unlimited permission to copy, distribute and modify it.
12 ## --------------------- ##
13 ## M4sh Initialization. ##
14 ## --------------------- ##
16 # Be more Bourne compatible
17 DUALCASE=1; export DUALCASE # for MKS sh
18 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
19 emulate sh
20 NULLCMD=:
21 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
22 # is contrary to our usage. Disable this feature.
23 alias -g '${1+"$@"}'='"$@"'
24 setopt NO_GLOB_SUBST
25 else
26 case `(set -o) 2>/dev/null` in
27 *posix*) set -o posix ;;
28 esac
35 # PATH needs CR
36 # Avoid depending upon Character Ranges.
37 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
38 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
39 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
40 as_cr_digits='0123456789'
41 as_cr_alnum=$as_cr_Letters$as_cr_digits
43 # The user is always right.
44 if test "${PATH_SEPARATOR+set}" != set; then
45 echo "#! /bin/sh" >conf$$.sh
46 echo "exit 0" >>conf$$.sh
47 chmod +x conf$$.sh
48 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
49 PATH_SEPARATOR=';'
50 else
51 PATH_SEPARATOR=:
53 rm -f conf$$.sh
56 # Support unset when possible.
57 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
58 as_unset=unset
59 else
60 as_unset=false
64 # IFS
65 # We need space, tab and new line, in precisely that order. Quoting is
66 # there to prevent editors from complaining about space-tab.
67 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
68 # splitting by setting IFS to empty value.)
69 as_nl='
71 IFS=" "" $as_nl"
73 # Find who we are. Look in the path if we contain no directory separator.
74 case $0 in
75 *[\\/]* ) as_myself=$0 ;;
76 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
77 for as_dir in $PATH
79 IFS=$as_save_IFS
80 test -z "$as_dir" && as_dir=.
81 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
82 done
83 IFS=$as_save_IFS
86 esac
87 # We did not find ourselves, most probably we were run as `sh COMMAND'
88 # in which case we are not to be found in the path.
89 if test "x$as_myself" = x; then
90 as_myself=$0
92 if test ! -f "$as_myself"; then
93 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
94 { (exit 1); exit 1; }
97 # Work around bugs in pre-3.0 UWIN ksh.
98 for as_var in ENV MAIL MAILPATH
99 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
100 done
101 PS1='$ '
102 PS2='> '
103 PS4='+ '
105 # NLS nuisances.
106 for as_var in \
107 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
108 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
109 LC_TELEPHONE LC_TIME
111 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
112 eval $as_var=C; export $as_var
113 else
114 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
116 done
118 # Required to use basename.
119 if expr a : '\(a\)' >/dev/null 2>&1 &&
120 test "X`expr 00001 : '.*\(...\)'`" = X001; then
121 as_expr=expr
122 else
123 as_expr=false
126 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
127 as_basename=basename
128 else
129 as_basename=false
133 # Name of the executable.
134 as_me=`$as_basename -- "$0" ||
135 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
136 X"$0" : 'X\(//\)$' \| \
137 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
138 echo X/"$0" |
139 sed '/^.*\/\([^/][^/]*\)\/*$/{
140 s//\1/
143 /^X\/\(\/\/\)$/{
144 s//\1/
147 /^X\/\(\/\).*/{
148 s//\1/
151 s/.*/./; q'`
153 # CDPATH.
154 $as_unset CDPATH
157 if test "x$CONFIG_SHELL" = x; then
158 if (eval ":") 2>/dev/null; then
159 as_have_required=yes
160 else
161 as_have_required=no
164 if test $as_have_required = yes && (eval ":
165 (as_func_return () {
166 (exit \$1)
168 as_func_success () {
169 as_func_return 0
171 as_func_failure () {
172 as_func_return 1
174 as_func_ret_success () {
175 return 0
177 as_func_ret_failure () {
178 return 1
181 exitcode=0
182 if as_func_success; then
184 else
185 exitcode=1
186 echo as_func_success failed.
189 if as_func_failure; then
190 exitcode=1
191 echo as_func_failure succeeded.
194 if as_func_ret_success; then
196 else
197 exitcode=1
198 echo as_func_ret_success failed.
201 if as_func_ret_failure; then
202 exitcode=1
203 echo as_func_ret_failure succeeded.
206 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
208 else
209 exitcode=1
210 echo positional parameters were not saved.
213 test \$exitcode = 0) || { (exit 1); exit 1; }
216 as_lineno_1=\$LINENO
217 as_lineno_2=\$LINENO
218 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
219 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
220 ") 2> /dev/null; then
222 else
223 as_candidate_shells=
224 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
225 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
227 IFS=$as_save_IFS
228 test -z "$as_dir" && as_dir=.
229 case $as_dir in
231 for as_base in sh bash ksh sh5; do
232 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
233 done;;
234 esac
235 done
236 IFS=$as_save_IFS
239 for as_shell in $as_candidate_shells $SHELL; do
240 # Try only shells that exist, to save several forks.
241 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
242 { ("$as_shell") 2> /dev/null <<\_ASEOF
243 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
244 emulate sh
245 NULLCMD=:
246 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
247 # is contrary to our usage. Disable this feature.
248 alias -g '${1+"$@"}'='"$@"'
249 setopt NO_GLOB_SUBST
250 else
251 case `(set -o) 2>/dev/null` in
252 *posix*) set -o posix ;;
253 esac
259 _ASEOF
260 }; then
261 CONFIG_SHELL=$as_shell
262 as_have_required=yes
263 if { "$as_shell" 2> /dev/null <<\_ASEOF
264 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
265 emulate sh
266 NULLCMD=:
267 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
268 # is contrary to our usage. Disable this feature.
269 alias -g '${1+"$@"}'='"$@"'
270 setopt NO_GLOB_SUBST
271 else
272 case `(set -o) 2>/dev/null` in
273 *posix*) set -o posix ;;
274 esac
280 (as_func_return () {
281 (exit $1)
283 as_func_success () {
284 as_func_return 0
286 as_func_failure () {
287 as_func_return 1
289 as_func_ret_success () {
290 return 0
292 as_func_ret_failure () {
293 return 1
296 exitcode=0
297 if as_func_success; then
299 else
300 exitcode=1
301 echo as_func_success failed.
304 if as_func_failure; then
305 exitcode=1
306 echo as_func_failure succeeded.
309 if as_func_ret_success; then
311 else
312 exitcode=1
313 echo as_func_ret_success failed.
316 if as_func_ret_failure; then
317 exitcode=1
318 echo as_func_ret_failure succeeded.
321 if ( set x; as_func_ret_success y && test x = "$1" ); then
323 else
324 exitcode=1
325 echo positional parameters were not saved.
328 test $exitcode = 0) || { (exit 1); exit 1; }
331 as_lineno_1=$LINENO
332 as_lineno_2=$LINENO
333 test "x$as_lineno_1" != "x$as_lineno_2" &&
334 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
336 _ASEOF
337 }; then
338 break
343 done
345 if test "x$CONFIG_SHELL" != x; then
346 for as_var in BASH_ENV ENV
347 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
348 done
349 export CONFIG_SHELL
350 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
354 if test $as_have_required = no; then
355 echo This script requires a shell more modern than all the
356 echo shells that I found on your system. Please install a
357 echo modern shell, or manually run the script under such a
358 echo shell if you do have one.
359 { (exit 1); exit 1; }
369 (eval "as_func_return () {
370 (exit \$1)
372 as_func_success () {
373 as_func_return 0
375 as_func_failure () {
376 as_func_return 1
378 as_func_ret_success () {
379 return 0
381 as_func_ret_failure () {
382 return 1
385 exitcode=0
386 if as_func_success; then
388 else
389 exitcode=1
390 echo as_func_success failed.
393 if as_func_failure; then
394 exitcode=1
395 echo as_func_failure succeeded.
398 if as_func_ret_success; then
400 else
401 exitcode=1
402 echo as_func_ret_success failed.
405 if as_func_ret_failure; then
406 exitcode=1
407 echo as_func_ret_failure succeeded.
410 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
412 else
413 exitcode=1
414 echo positional parameters were not saved.
417 test \$exitcode = 0") || {
418 echo No shell found that supports shell functions.
419 echo Please tell autoconf@gnu.org about your system,
420 echo including any error possibly output before this
421 echo message
426 as_lineno_1=$LINENO
427 as_lineno_2=$LINENO
428 test "x$as_lineno_1" != "x$as_lineno_2" &&
429 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
431 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
432 # uniformly replaced by the line number. The first 'sed' inserts a
433 # line-number line after each line using $LINENO; the second 'sed'
434 # does the real work. The second script uses 'N' to pair each
435 # line-number line with the line containing $LINENO, and appends
436 # trailing '-' during substitution so that $LINENO is not a special
437 # case at line end.
438 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
439 # scripts with optimization help from Paolo Bonzini. Blame Lee
440 # E. McMahon (1931-1989) for sed's syntax. :-)
441 sed -n '
443 /[$]LINENO/=
444 ' <$as_myself |
445 sed '
446 s/[$]LINENO.*/&-/
447 t lineno
449 :lineno
451 :loop
452 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
453 t loop
454 s/-\n.*//
455 ' >$as_me.lineno &&
456 chmod +x "$as_me.lineno" ||
457 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
458 { (exit 1); exit 1; }; }
460 # Don't try to exec as it changes $[0], causing all sort of problems
461 # (the dirname of $[0] is not the place where we might find the
462 # original and so on. Autoconf is especially sensitive to this).
463 . "./$as_me.lineno"
464 # Exit status is that of the last command.
465 exit
469 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
470 as_dirname=dirname
471 else
472 as_dirname=false
475 ECHO_C= ECHO_N= ECHO_T=
476 case `echo -n x` in
477 -n*)
478 case `echo 'x\c'` in
479 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
480 *) ECHO_C='\c';;
481 esac;;
483 ECHO_N='-n';;
484 esac
486 if expr a : '\(a\)' >/dev/null 2>&1 &&
487 test "X`expr 00001 : '.*\(...\)'`" = X001; then
488 as_expr=expr
489 else
490 as_expr=false
493 rm -f conf$$ conf$$.exe conf$$.file
494 if test -d conf$$.dir; then
495 rm -f conf$$.dir/conf$$.file
496 else
497 rm -f conf$$.dir
498 mkdir conf$$.dir
500 echo >conf$$.file
501 if ln -s conf$$.file conf$$ 2>/dev/null; then
502 as_ln_s='ln -s'
503 # ... but there are two gotchas:
504 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
505 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
506 # In both cases, we have to default to `cp -p'.
507 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
508 as_ln_s='cp -p'
509 elif ln conf$$.file conf$$ 2>/dev/null; then
510 as_ln_s=ln
511 else
512 as_ln_s='cp -p'
514 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
515 rmdir conf$$.dir 2>/dev/null
517 if mkdir -p . 2>/dev/null; then
518 as_mkdir_p=:
519 else
520 test -d ./-p && rmdir ./-p
521 as_mkdir_p=false
524 if test -x / >/dev/null 2>&1; then
525 as_test_x='test -x'
526 else
527 if ls -dL / >/dev/null 2>&1; then
528 as_ls_L_option=L
529 else
530 as_ls_L_option=
532 as_test_x='
533 eval sh -c '\''
534 if test -d "$1"; then
535 test -d "$1/.";
536 else
537 case $1 in
538 -*)set "./$1";;
539 esac;
540 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
541 ???[sx]*):;;*)false;;esac;fi
542 '\'' sh
545 as_executable_p=$as_test_x
547 # Sed expression to map a string onto a valid CPP name.
548 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
550 # Sed expression to map a string onto a valid variable name.
551 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
555 exec 7<&0 </dev/null 6>&1
557 # Name of the host.
558 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
559 # so uname gets run too.
560 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
563 # Initializations.
565 ac_default_prefix=/usr/local
566 ac_clean_files=
567 ac_config_libobj_dir=.
568 LIBOBJS=
569 cross_compiling=no
570 subdirs=
571 MFLAGS=
572 MAKEFLAGS=
573 SHELL=${CONFIG_SHELL-/bin/sh}
575 # Identity of this package.
576 PACKAGE_NAME='python'
577 PACKAGE_TARNAME='python'
578 PACKAGE_VERSION='2.7'
579 PACKAGE_STRING='python 2.7'
580 PACKAGE_BUGREPORT='http://bugs.python.org/'
582 ac_unique_file="Include/object.h"
583 # Factoring default headers for most tests.
584 ac_includes_default="\
585 #include <stdio.h>
586 #ifdef HAVE_SYS_TYPES_H
587 # include <sys/types.h>
588 #endif
589 #ifdef HAVE_SYS_STAT_H
590 # include <sys/stat.h>
591 #endif
592 #ifdef STDC_HEADERS
593 # include <stdlib.h>
594 # include <stddef.h>
595 #else
596 # ifdef HAVE_STDLIB_H
597 # include <stdlib.h>
598 # endif
599 #endif
600 #ifdef HAVE_STRING_H
601 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
602 # include <memory.h>
603 # endif
604 # include <string.h>
605 #endif
606 #ifdef HAVE_STRINGS_H
607 # include <strings.h>
608 #endif
609 #ifdef HAVE_INTTYPES_H
610 # include <inttypes.h>
611 #endif
612 #ifdef HAVE_STDINT_H
613 # include <stdint.h>
614 #endif
615 #ifdef HAVE_UNISTD_H
616 # include <unistd.h>
617 #endif"
619 ac_subst_vars='SHELL
620 PATH_SEPARATOR
621 PACKAGE_NAME
622 PACKAGE_TARNAME
623 PACKAGE_VERSION
624 PACKAGE_STRING
625 PACKAGE_BUGREPORT
626 exec_prefix
627 prefix
628 program_transform_name
629 bindir
630 sbindir
631 libexecdir
632 datarootdir
633 datadir
634 sysconfdir
635 sharedstatedir
636 localstatedir
637 includedir
638 oldincludedir
639 docdir
640 infodir
641 htmldir
642 dvidir
643 pdfdir
644 psdir
645 libdir
646 localedir
647 mandir
648 DEFS
649 ECHO_C
650 ECHO_N
651 ECHO_T
652 LIBS
653 build_alias
654 host_alias
655 target_alias
656 VERSION
657 SOVERSION
658 CONFIG_ARGS
659 UNIVERSALSDK
660 ARCH_RUN_32BIT
661 PYTHONFRAMEWORK
662 PYTHONFRAMEWORKIDENTIFIER
663 PYTHONFRAMEWORKDIR
664 PYTHONFRAMEWORKPREFIX
665 PYTHONFRAMEWORKINSTALLDIR
666 FRAMEWORKINSTALLFIRST
667 FRAMEWORKINSTALLLAST
668 FRAMEWORKALTINSTALLFIRST
669 FRAMEWORKALTINSTALLLAST
670 FRAMEWORKUNIXTOOLSPREFIX
671 MACHDEP
672 SGI_ABI
673 EXTRAPLATDIR
674 EXTRAMACHDEPPATH
675 CONFIGURE_MACOSX_DEPLOYMENT_TARGET
676 EXPORT_MACOSX_DEPLOYMENT_TARGET
678 CFLAGS
679 LDFLAGS
680 CPPFLAGS
681 ac_ct_CC
682 EXEEXT
683 OBJEXT
685 MAINCC
687 GREP
688 EGREP
689 BUILDEXEEXT
690 LIBRARY
691 LDLIBRARY
692 DLLLIBRARY
693 BLDLIBRARY
694 LDLIBRARYDIR
695 INSTSONAME
696 RUNSHARED
697 LINKCC
698 GNULD
699 RANLIB
701 ARFLAGS
702 SVNVERSION
703 INSTALL_PROGRAM
704 INSTALL_SCRIPT
705 INSTALL_DATA
708 BASECFLAGS
709 UNIVERSAL_ARCH_FLAGS
710 OTHER_LIBTOOL_OPT
711 LIBTOOL_CRUFT
713 LDSHARED
714 BLDSHARED
715 CCSHARED
716 LINKFORSHARED
717 CFLAGSFORSHARED
718 SHLIBS
719 USE_SIGNAL_MODULE
720 SIGNAL_OBJS
721 USE_THREAD_MODULE
722 LDLAST
723 THREADOBJ
724 DLINCLDIR
725 DYNLOADFILE
726 MACHDEP_OBJS
727 TRUE
728 LIBOBJS
729 HAVE_GETHOSTBYNAME_R_6_ARG
730 HAVE_GETHOSTBYNAME_R_5_ARG
731 HAVE_GETHOSTBYNAME_R_3_ARG
732 HAVE_GETHOSTBYNAME_R
733 HAVE_GETHOSTBYNAME
734 LIBM
735 LIBC
736 UNICODE_OBJS
737 THREADHEADERS
738 SRCDIRS
739 LTLIBOBJS'
740 ac_subst_files=''
741 ac_precious_vars='build_alias
742 host_alias
743 target_alias
745 CFLAGS
746 LDFLAGS
747 LIBS
748 CPPFLAGS
749 CPP'
752 # Initialize some variables set by options.
753 ac_init_help=
754 ac_init_version=false
755 # The variables have the same names as the options, with
756 # dashes changed to underlines.
757 cache_file=/dev/null
758 exec_prefix=NONE
759 no_create=
760 no_recursion=
761 prefix=NONE
762 program_prefix=NONE
763 program_suffix=NONE
764 program_transform_name=s,x,x,
765 silent=
766 site=
767 srcdir=
768 verbose=
769 x_includes=NONE
770 x_libraries=NONE
772 # Installation directory options.
773 # These are left unexpanded so users can "make install exec_prefix=/foo"
774 # and all the variables that are supposed to be based on exec_prefix
775 # by default will actually change.
776 # Use braces instead of parens because sh, perl, etc. also accept them.
777 # (The list follows the same order as the GNU Coding Standards.)
778 bindir='${exec_prefix}/bin'
779 sbindir='${exec_prefix}/sbin'
780 libexecdir='${exec_prefix}/libexec'
781 datarootdir='${prefix}/share'
782 datadir='${datarootdir}'
783 sysconfdir='${prefix}/etc'
784 sharedstatedir='${prefix}/com'
785 localstatedir='${prefix}/var'
786 includedir='${prefix}/include'
787 oldincludedir='/usr/include'
788 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
789 infodir='${datarootdir}/info'
790 htmldir='${docdir}'
791 dvidir='${docdir}'
792 pdfdir='${docdir}'
793 psdir='${docdir}'
794 libdir='${exec_prefix}/lib'
795 localedir='${datarootdir}/locale'
796 mandir='${datarootdir}/man'
798 ac_prev=
799 ac_dashdash=
800 for ac_option
802 # If the previous option needs an argument, assign it.
803 if test -n "$ac_prev"; then
804 eval $ac_prev=\$ac_option
805 ac_prev=
806 continue
809 case $ac_option in
810 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
811 *) ac_optarg=yes ;;
812 esac
814 # Accept the important Cygnus configure options, so we can diagnose typos.
816 case $ac_dashdash$ac_option in
818 ac_dashdash=yes ;;
820 -bindir | --bindir | --bindi | --bind | --bin | --bi)
821 ac_prev=bindir ;;
822 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
823 bindir=$ac_optarg ;;
825 -build | --build | --buil | --bui | --bu)
826 ac_prev=build_alias ;;
827 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
828 build_alias=$ac_optarg ;;
830 -cache-file | --cache-file | --cache-fil | --cache-fi \
831 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
832 ac_prev=cache_file ;;
833 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
834 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
835 cache_file=$ac_optarg ;;
837 --config-cache | -C)
838 cache_file=config.cache ;;
840 -datadir | --datadir | --datadi | --datad)
841 ac_prev=datadir ;;
842 -datadir=* | --datadir=* | --datadi=* | --datad=*)
843 datadir=$ac_optarg ;;
845 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
846 | --dataroo | --dataro | --datar)
847 ac_prev=datarootdir ;;
848 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
849 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
850 datarootdir=$ac_optarg ;;
852 -disable-* | --disable-*)
853 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
854 # Reject names that are not valid shell variable names.
855 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
856 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
857 { (exit 1); exit 1; }; }
858 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
859 eval enable_$ac_feature=no ;;
861 -docdir | --docdir | --docdi | --doc | --do)
862 ac_prev=docdir ;;
863 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
864 docdir=$ac_optarg ;;
866 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
867 ac_prev=dvidir ;;
868 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
869 dvidir=$ac_optarg ;;
871 -enable-* | --enable-*)
872 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
873 # Reject names that are not valid shell variable names.
874 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
875 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
876 { (exit 1); exit 1; }; }
877 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
878 eval enable_$ac_feature=\$ac_optarg ;;
880 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
881 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
882 | --exec | --exe | --ex)
883 ac_prev=exec_prefix ;;
884 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
885 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
886 | --exec=* | --exe=* | --ex=*)
887 exec_prefix=$ac_optarg ;;
889 -gas | --gas | --ga | --g)
890 # Obsolete; use --with-gas.
891 with_gas=yes ;;
893 -help | --help | --hel | --he | -h)
894 ac_init_help=long ;;
895 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
896 ac_init_help=recursive ;;
897 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
898 ac_init_help=short ;;
900 -host | --host | --hos | --ho)
901 ac_prev=host_alias ;;
902 -host=* | --host=* | --hos=* | --ho=*)
903 host_alias=$ac_optarg ;;
905 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
906 ac_prev=htmldir ;;
907 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
908 | --ht=*)
909 htmldir=$ac_optarg ;;
911 -includedir | --includedir | --includedi | --included | --include \
912 | --includ | --inclu | --incl | --inc)
913 ac_prev=includedir ;;
914 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
915 | --includ=* | --inclu=* | --incl=* | --inc=*)
916 includedir=$ac_optarg ;;
918 -infodir | --infodir | --infodi | --infod | --info | --inf)
919 ac_prev=infodir ;;
920 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
921 infodir=$ac_optarg ;;
923 -libdir | --libdir | --libdi | --libd)
924 ac_prev=libdir ;;
925 -libdir=* | --libdir=* | --libdi=* | --libd=*)
926 libdir=$ac_optarg ;;
928 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
929 | --libexe | --libex | --libe)
930 ac_prev=libexecdir ;;
931 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
932 | --libexe=* | --libex=* | --libe=*)
933 libexecdir=$ac_optarg ;;
935 -localedir | --localedir | --localedi | --localed | --locale)
936 ac_prev=localedir ;;
937 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
938 localedir=$ac_optarg ;;
940 -localstatedir | --localstatedir | --localstatedi | --localstated \
941 | --localstate | --localstat | --localsta | --localst | --locals)
942 ac_prev=localstatedir ;;
943 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
944 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
945 localstatedir=$ac_optarg ;;
947 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
948 ac_prev=mandir ;;
949 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
950 mandir=$ac_optarg ;;
952 -nfp | --nfp | --nf)
953 # Obsolete; use --without-fp.
954 with_fp=no ;;
956 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
957 | --no-cr | --no-c | -n)
958 no_create=yes ;;
960 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
961 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
962 no_recursion=yes ;;
964 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
965 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
966 | --oldin | --oldi | --old | --ol | --o)
967 ac_prev=oldincludedir ;;
968 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
969 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
970 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
971 oldincludedir=$ac_optarg ;;
973 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
974 ac_prev=prefix ;;
975 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
976 prefix=$ac_optarg ;;
978 -program-prefix | --program-prefix | --program-prefi | --program-pref \
979 | --program-pre | --program-pr | --program-p)
980 ac_prev=program_prefix ;;
981 -program-prefix=* | --program-prefix=* | --program-prefi=* \
982 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
983 program_prefix=$ac_optarg ;;
985 -program-suffix | --program-suffix | --program-suffi | --program-suff \
986 | --program-suf | --program-su | --program-s)
987 ac_prev=program_suffix ;;
988 -program-suffix=* | --program-suffix=* | --program-suffi=* \
989 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
990 program_suffix=$ac_optarg ;;
992 -program-transform-name | --program-transform-name \
993 | --program-transform-nam | --program-transform-na \
994 | --program-transform-n | --program-transform- \
995 | --program-transform | --program-transfor \
996 | --program-transfo | --program-transf \
997 | --program-trans | --program-tran \
998 | --progr-tra | --program-tr | --program-t)
999 ac_prev=program_transform_name ;;
1000 -program-transform-name=* | --program-transform-name=* \
1001 | --program-transform-nam=* | --program-transform-na=* \
1002 | --program-transform-n=* | --program-transform-=* \
1003 | --program-transform=* | --program-transfor=* \
1004 | --program-transfo=* | --program-transf=* \
1005 | --program-trans=* | --program-tran=* \
1006 | --progr-tra=* | --program-tr=* | --program-t=*)
1007 program_transform_name=$ac_optarg ;;
1009 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1010 ac_prev=pdfdir ;;
1011 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1012 pdfdir=$ac_optarg ;;
1014 -psdir | --psdir | --psdi | --psd | --ps)
1015 ac_prev=psdir ;;
1016 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1017 psdir=$ac_optarg ;;
1019 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1020 | -silent | --silent | --silen | --sile | --sil)
1021 silent=yes ;;
1023 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1024 ac_prev=sbindir ;;
1025 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1026 | --sbi=* | --sb=*)
1027 sbindir=$ac_optarg ;;
1029 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1030 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1031 | --sharedst | --shareds | --shared | --share | --shar \
1032 | --sha | --sh)
1033 ac_prev=sharedstatedir ;;
1034 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1035 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1036 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1037 | --sha=* | --sh=*)
1038 sharedstatedir=$ac_optarg ;;
1040 -site | --site | --sit)
1041 ac_prev=site ;;
1042 -site=* | --site=* | --sit=*)
1043 site=$ac_optarg ;;
1045 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1046 ac_prev=srcdir ;;
1047 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1048 srcdir=$ac_optarg ;;
1050 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1051 | --syscon | --sysco | --sysc | --sys | --sy)
1052 ac_prev=sysconfdir ;;
1053 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1054 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1055 sysconfdir=$ac_optarg ;;
1057 -target | --target | --targe | --targ | --tar | --ta | --t)
1058 ac_prev=target_alias ;;
1059 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1060 target_alias=$ac_optarg ;;
1062 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1063 verbose=yes ;;
1065 -version | --version | --versio | --versi | --vers | -V)
1066 ac_init_version=: ;;
1068 -with-* | --with-*)
1069 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1070 # Reject names that are not valid shell variable names.
1071 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1072 { echo "$as_me: error: invalid package name: $ac_package" >&2
1073 { (exit 1); exit 1; }; }
1074 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1075 eval with_$ac_package=\$ac_optarg ;;
1077 -without-* | --without-*)
1078 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1079 # Reject names that are not valid shell variable names.
1080 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1081 { echo "$as_me: error: invalid package name: $ac_package" >&2
1082 { (exit 1); exit 1; }; }
1083 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1084 eval with_$ac_package=no ;;
1086 --x)
1087 # Obsolete; use --with-x.
1088 with_x=yes ;;
1090 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1091 | --x-incl | --x-inc | --x-in | --x-i)
1092 ac_prev=x_includes ;;
1093 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1094 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1095 x_includes=$ac_optarg ;;
1097 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1098 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1099 ac_prev=x_libraries ;;
1100 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1101 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1102 x_libraries=$ac_optarg ;;
1104 -*) { echo "$as_me: error: unrecognized option: $ac_option
1105 Try \`$0 --help' for more information." >&2
1106 { (exit 1); exit 1; }; }
1109 *=*)
1110 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1111 # Reject names that are not valid shell variable names.
1112 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1113 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1114 { (exit 1); exit 1; }; }
1115 eval $ac_envvar=\$ac_optarg
1116 export $ac_envvar ;;
1119 # FIXME: should be removed in autoconf 3.0.
1120 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1121 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1122 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1123 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1126 esac
1127 done
1129 if test -n "$ac_prev"; then
1130 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1131 { echo "$as_me: error: missing argument to $ac_option" >&2
1132 { (exit 1); exit 1; }; }
1135 # Be sure to have absolute directory names.
1136 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1137 datadir sysconfdir sharedstatedir localstatedir includedir \
1138 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1139 libdir localedir mandir
1141 eval ac_val=\$$ac_var
1142 case $ac_val in
1143 [\\/$]* | ?:[\\/]* ) continue;;
1144 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1145 esac
1146 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1147 { (exit 1); exit 1; }; }
1148 done
1150 # There might be people who depend on the old broken behavior: `$host'
1151 # used to hold the argument of --host etc.
1152 # FIXME: To remove some day.
1153 build=$build_alias
1154 host=$host_alias
1155 target=$target_alias
1157 # FIXME: To remove some day.
1158 if test "x$host_alias" != x; then
1159 if test "x$build_alias" = x; then
1160 cross_compiling=maybe
1161 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1162 If a cross compiler is detected then cross compile mode will be used." >&2
1163 elif test "x$build_alias" != "x$host_alias"; then
1164 cross_compiling=yes
1168 ac_tool_prefix=
1169 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1171 test "$silent" = yes && exec 6>/dev/null
1174 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1175 ac_ls_di=`ls -di .` &&
1176 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1177 { echo "$as_me: error: Working directory cannot be determined" >&2
1178 { (exit 1); exit 1; }; }
1179 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1180 { echo "$as_me: error: pwd does not report name of working directory" >&2
1181 { (exit 1); exit 1; }; }
1184 # Find the source files, if location was not specified.
1185 if test -z "$srcdir"; then
1186 ac_srcdir_defaulted=yes
1187 # Try the directory containing this script, then the parent directory.
1188 ac_confdir=`$as_dirname -- "$0" ||
1189 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1190 X"$0" : 'X\(//\)[^/]' \| \
1191 X"$0" : 'X\(//\)$' \| \
1192 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1193 echo X"$0" |
1194 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1195 s//\1/
1198 /^X\(\/\/\)[^/].*/{
1199 s//\1/
1202 /^X\(\/\/\)$/{
1203 s//\1/
1206 /^X\(\/\).*/{
1207 s//\1/
1210 s/.*/./; q'`
1211 srcdir=$ac_confdir
1212 if test ! -r "$srcdir/$ac_unique_file"; then
1213 srcdir=..
1215 else
1216 ac_srcdir_defaulted=no
1218 if test ! -r "$srcdir/$ac_unique_file"; then
1219 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1220 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1221 { (exit 1); exit 1; }; }
1223 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1224 ac_abs_confdir=`(
1225 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1226 { (exit 1); exit 1; }; }
1227 pwd)`
1228 # When building in place, set srcdir=.
1229 if test "$ac_abs_confdir" = "$ac_pwd"; then
1230 srcdir=.
1232 # Remove unnecessary trailing slashes from srcdir.
1233 # Double slashes in file names in object file debugging info
1234 # mess up M-x gdb in Emacs.
1235 case $srcdir in
1236 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1237 esac
1238 for ac_var in $ac_precious_vars; do
1239 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1240 eval ac_env_${ac_var}_value=\$${ac_var}
1241 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1242 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1243 done
1246 # Report the --help message.
1248 if test "$ac_init_help" = "long"; then
1249 # Omit some internal or obsolete options to make the list less imposing.
1250 # This message is too long to be a string in the A/UX 3.1 sh.
1251 cat <<_ACEOF
1252 \`configure' configures python 2.7 to adapt to many kinds of systems.
1254 Usage: $0 [OPTION]... [VAR=VALUE]...
1256 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1257 VAR=VALUE. See below for descriptions of some of the useful variables.
1259 Defaults for the options are specified in brackets.
1261 Configuration:
1262 -h, --help display this help and exit
1263 --help=short display options specific to this package
1264 --help=recursive display the short help of all the included packages
1265 -V, --version display version information and exit
1266 -q, --quiet, --silent do not print \`checking...' messages
1267 --cache-file=FILE cache test results in FILE [disabled]
1268 -C, --config-cache alias for \`--cache-file=config.cache'
1269 -n, --no-create do not create output files
1270 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1272 Installation directories:
1273 --prefix=PREFIX install architecture-independent files in PREFIX
1274 [$ac_default_prefix]
1275 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1276 [PREFIX]
1278 By default, \`make install' will install all the files in
1279 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1280 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1281 for instance \`--prefix=\$HOME'.
1283 For better control, use the options below.
1285 Fine tuning of the installation directories:
1286 --bindir=DIR user executables [EPREFIX/bin]
1287 --sbindir=DIR system admin executables [EPREFIX/sbin]
1288 --libexecdir=DIR program executables [EPREFIX/libexec]
1289 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1290 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1291 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1292 --libdir=DIR object code libraries [EPREFIX/lib]
1293 --includedir=DIR C header files [PREFIX/include]
1294 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1295 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1296 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1297 --infodir=DIR info documentation [DATAROOTDIR/info]
1298 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1299 --mandir=DIR man documentation [DATAROOTDIR/man]
1300 --docdir=DIR documentation root [DATAROOTDIR/doc/python]
1301 --htmldir=DIR html documentation [DOCDIR]
1302 --dvidir=DIR dvi documentation [DOCDIR]
1303 --pdfdir=DIR pdf documentation [DOCDIR]
1304 --psdir=DIR ps documentation [DOCDIR]
1305 _ACEOF
1307 cat <<\_ACEOF
1308 _ACEOF
1311 if test -n "$ac_init_help"; then
1312 case $ac_init_help in
1313 short | recursive ) echo "Configuration of python 2.7:";;
1314 esac
1315 cat <<\_ACEOF
1317 Optional Features:
1318 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1319 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1320 --enable-universalsdk[=SDKDIR]
1321 Build against Mac OS X 10.4u SDK (ppc/i386)
1322 --enable-framework[=INSTALLDIR]
1323 Build (MacOSX|Darwin) framework
1324 --enable-shared disable/enable building shared python library
1325 --enable-profiling enable C-level code profiling
1326 --enable-toolbox-glue disable/enable MacOSX glue code for extensions
1327 --enable-ipv6 Enable ipv6 (with ipv4) support
1328 --disable-ipv6 Disable ipv6 support
1329 --enable-big-digits[=BITS]
1330 use big digits for Python longs [BITS=30]
1331 --enable-unicode[=ucs[24]]
1332 Enable Unicode strings (default is yes)
1334 Optional Packages:
1335 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1336 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1337 --with-universal-archs=ARCH
1338 select architectures for universal build ("32-bit",
1339 "64-bit" or "all")
1340 --with-framework-name=FRAMEWORK
1341 specify an alternate name of the framework built
1342 with --enable-framework
1343 --without-gcc never use gcc
1344 --with-cxx-main=<compiler>
1345 compile main() and link python executable with C++
1346 compiler
1347 --with-suffix=.exe set executable suffix
1348 --with-pydebug build with Py_DEBUG defined
1349 --with-libs='lib1 ...' link against additional libs
1350 --with-system-ffi build _ctypes module using an installed ffi library
1351 --with-dbmliborder=db1:db2:...
1352 order to check db backends for dbm. Valid value is a
1353 colon separated string with the backend names
1354 `ndbm', `gdbm' and `bdb'.
1355 --with-signal-module disable/enable signal module
1356 --with-dec-threads use DEC Alpha/OSF1 thread-safe libraries
1357 --with(out)-threads[=DIRECTORY]
1358 disable/enable thread support
1359 --with(out)-thread[=DIRECTORY]
1360 deprecated; use --with(out)-threads
1361 --with-pth use GNU pth threading libraries
1362 --with(out)-doc-strings disable/enable documentation strings
1363 --with(out)-tsc enable/disable timestamp counter profile
1364 --with(out)-pymalloc disable/enable specialized mallocs
1365 --with-wctype-functions use wctype.h functions
1366 --with-fpectl enable SIGFPE catching
1367 --with-libm=STRING math library
1368 --with-libc=STRING C library
1370 Some influential environment variables:
1371 CC C compiler command
1372 CFLAGS C compiler flags
1373 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1374 nonstandard directory <lib dir>
1375 LIBS libraries to pass to the linker, e.g. -l<library>
1376 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1377 you have headers in a nonstandard directory <include dir>
1378 CPP C preprocessor
1380 Use these variables to override the choices made by `configure' or to help
1381 it to find libraries and programs with nonstandard names/locations.
1383 Report bugs to <http://bugs.python.org/>.
1384 _ACEOF
1385 ac_status=$?
1388 if test "$ac_init_help" = "recursive"; then
1389 # If there are subdirs, report their specific --help.
1390 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1391 test -d "$ac_dir" || continue
1392 ac_builddir=.
1394 case "$ac_dir" in
1395 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1397 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1398 # A ".." for each directory in $ac_dir_suffix.
1399 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1400 case $ac_top_builddir_sub in
1401 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1402 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1403 esac ;;
1404 esac
1405 ac_abs_top_builddir=$ac_pwd
1406 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1407 # for backward compatibility:
1408 ac_top_builddir=$ac_top_build_prefix
1410 case $srcdir in
1411 .) # We are building in place.
1412 ac_srcdir=.
1413 ac_top_srcdir=$ac_top_builddir_sub
1414 ac_abs_top_srcdir=$ac_pwd ;;
1415 [\\/]* | ?:[\\/]* ) # Absolute name.
1416 ac_srcdir=$srcdir$ac_dir_suffix;
1417 ac_top_srcdir=$srcdir
1418 ac_abs_top_srcdir=$srcdir ;;
1419 *) # Relative name.
1420 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1421 ac_top_srcdir=$ac_top_build_prefix$srcdir
1422 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1423 esac
1424 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1426 cd "$ac_dir" || { ac_status=$?; continue; }
1427 # Check for guested configure.
1428 if test -f "$ac_srcdir/configure.gnu"; then
1429 echo &&
1430 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1431 elif test -f "$ac_srcdir/configure"; then
1432 echo &&
1433 $SHELL "$ac_srcdir/configure" --help=recursive
1434 else
1435 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1436 fi || ac_status=$?
1437 cd "$ac_pwd" || { ac_status=$?; break; }
1438 done
1441 test -n "$ac_init_help" && exit $ac_status
1442 if $ac_init_version; then
1443 cat <<\_ACEOF
1444 python configure 2.7
1445 generated by GNU Autoconf 2.61
1447 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1448 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1449 This configure script is free software; the Free Software Foundation
1450 gives unlimited permission to copy, distribute and modify it.
1451 _ACEOF
1452 exit
1454 cat >config.log <<_ACEOF
1455 This file contains any messages produced by compilers while
1456 running configure, to aid debugging if configure makes a mistake.
1458 It was created by python $as_me 2.7, which was
1459 generated by GNU Autoconf 2.61. Invocation command line was
1461 $ $0 $@
1463 _ACEOF
1464 exec 5>>config.log
1466 cat <<_ASUNAME
1467 ## --------- ##
1468 ## Platform. ##
1469 ## --------- ##
1471 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1472 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1473 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1474 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1475 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1477 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1478 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1480 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1481 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1482 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1483 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1484 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1485 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1486 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1488 _ASUNAME
1490 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1491 for as_dir in $PATH
1493 IFS=$as_save_IFS
1494 test -z "$as_dir" && as_dir=.
1495 echo "PATH: $as_dir"
1496 done
1497 IFS=$as_save_IFS
1499 } >&5
1501 cat >&5 <<_ACEOF
1504 ## ----------- ##
1505 ## Core tests. ##
1506 ## ----------- ##
1508 _ACEOF
1511 # Keep a trace of the command line.
1512 # Strip out --no-create and --no-recursion so they do not pile up.
1513 # Strip out --silent because we don't want to record it for future runs.
1514 # Also quote any args containing shell meta-characters.
1515 # Make two passes to allow for proper duplicate-argument suppression.
1516 ac_configure_args=
1517 ac_configure_args0=
1518 ac_configure_args1=
1519 ac_must_keep_next=false
1520 for ac_pass in 1 2
1522 for ac_arg
1524 case $ac_arg in
1525 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1526 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1527 | -silent | --silent | --silen | --sile | --sil)
1528 continue ;;
1529 *\'*)
1530 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1531 esac
1532 case $ac_pass in
1533 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1535 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1536 if test $ac_must_keep_next = true; then
1537 ac_must_keep_next=false # Got value, back to normal.
1538 else
1539 case $ac_arg in
1540 *=* | --config-cache | -C | -disable-* | --disable-* \
1541 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1542 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1543 | -with-* | --with-* | -without-* | --without-* | --x)
1544 case "$ac_configure_args0 " in
1545 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1546 esac
1548 -* ) ac_must_keep_next=true ;;
1549 esac
1551 ac_configure_args="$ac_configure_args '$ac_arg'"
1553 esac
1554 done
1555 done
1556 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1557 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1559 # When interrupted or exit'd, cleanup temporary files, and complete
1560 # config.log. We remove comments because anyway the quotes in there
1561 # would cause problems or look ugly.
1562 # WARNING: Use '\'' to represent an apostrophe within the trap.
1563 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1564 trap 'exit_status=$?
1565 # Save into config.log some information that might help in debugging.
1567 echo
1569 cat <<\_ASBOX
1570 ## ---------------- ##
1571 ## Cache variables. ##
1572 ## ---------------- ##
1573 _ASBOX
1574 echo
1575 # The following way of writing the cache mishandles newlines in values,
1577 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1578 eval ac_val=\$$ac_var
1579 case $ac_val in #(
1580 *${as_nl}*)
1581 case $ac_var in #(
1582 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1583 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1584 esac
1585 case $ac_var in #(
1586 _ | IFS | as_nl) ;; #(
1587 *) $as_unset $ac_var ;;
1588 esac ;;
1589 esac
1590 done
1591 (set) 2>&1 |
1592 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1593 *${as_nl}ac_space=\ *)
1594 sed -n \
1595 "s/'\''/'\''\\\\'\'''\''/g;
1596 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1597 ;; #(
1599 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1601 esac |
1602 sort
1604 echo
1606 cat <<\_ASBOX
1607 ## ----------------- ##
1608 ## Output variables. ##
1609 ## ----------------- ##
1610 _ASBOX
1611 echo
1612 for ac_var in $ac_subst_vars
1614 eval ac_val=\$$ac_var
1615 case $ac_val in
1616 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1617 esac
1618 echo "$ac_var='\''$ac_val'\''"
1619 done | sort
1620 echo
1622 if test -n "$ac_subst_files"; then
1623 cat <<\_ASBOX
1624 ## ------------------- ##
1625 ## File substitutions. ##
1626 ## ------------------- ##
1627 _ASBOX
1628 echo
1629 for ac_var in $ac_subst_files
1631 eval ac_val=\$$ac_var
1632 case $ac_val in
1633 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1634 esac
1635 echo "$ac_var='\''$ac_val'\''"
1636 done | sort
1637 echo
1640 if test -s confdefs.h; then
1641 cat <<\_ASBOX
1642 ## ----------- ##
1643 ## confdefs.h. ##
1644 ## ----------- ##
1645 _ASBOX
1646 echo
1647 cat confdefs.h
1648 echo
1650 test "$ac_signal" != 0 &&
1651 echo "$as_me: caught signal $ac_signal"
1652 echo "$as_me: exit $exit_status"
1653 } >&5
1654 rm -f core *.core core.conftest.* &&
1655 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1656 exit $exit_status
1658 for ac_signal in 1 2 13 15; do
1659 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1660 done
1661 ac_signal=0
1663 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1664 rm -f -r conftest* confdefs.h
1666 # Predefined preprocessor variables.
1668 cat >>confdefs.h <<_ACEOF
1669 #define PACKAGE_NAME "$PACKAGE_NAME"
1670 _ACEOF
1673 cat >>confdefs.h <<_ACEOF
1674 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1675 _ACEOF
1678 cat >>confdefs.h <<_ACEOF
1679 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1680 _ACEOF
1683 cat >>confdefs.h <<_ACEOF
1684 #define PACKAGE_STRING "$PACKAGE_STRING"
1685 _ACEOF
1688 cat >>confdefs.h <<_ACEOF
1689 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1690 _ACEOF
1693 # Let the site file select an alternate cache file if it wants to.
1694 # Prefer explicitly selected file to automatically selected ones.
1695 if test -n "$CONFIG_SITE"; then
1696 set x "$CONFIG_SITE"
1697 elif test "x$prefix" != xNONE; then
1698 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1699 else
1700 set x "$ac_default_prefix/share/config.site" \
1701 "$ac_default_prefix/etc/config.site"
1703 shift
1704 for ac_site_file
1706 if test -r "$ac_site_file"; then
1707 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1708 echo "$as_me: loading site script $ac_site_file" >&6;}
1709 sed 's/^/| /' "$ac_site_file" >&5
1710 . "$ac_site_file"
1712 done
1714 if test -r "$cache_file"; then
1715 # Some versions of bash will fail to source /dev/null (special
1716 # files actually), so we avoid doing that.
1717 if test -f "$cache_file"; then
1718 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1719 echo "$as_me: loading cache $cache_file" >&6;}
1720 case $cache_file in
1721 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1722 *) . "./$cache_file";;
1723 esac
1725 else
1726 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1727 echo "$as_me: creating cache $cache_file" >&6;}
1728 >$cache_file
1731 # Check that the precious variables saved in the cache have kept the same
1732 # value.
1733 ac_cache_corrupted=false
1734 for ac_var in $ac_precious_vars; do
1735 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1736 eval ac_new_set=\$ac_env_${ac_var}_set
1737 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1738 eval ac_new_val=\$ac_env_${ac_var}_value
1739 case $ac_old_set,$ac_new_set in
1740 set,)
1741 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1742 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1743 ac_cache_corrupted=: ;;
1744 ,set)
1745 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1746 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1747 ac_cache_corrupted=: ;;
1748 ,);;
1750 if test "x$ac_old_val" != "x$ac_new_val"; then
1751 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1752 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1753 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1754 echo "$as_me: former value: $ac_old_val" >&2;}
1755 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1756 echo "$as_me: current value: $ac_new_val" >&2;}
1757 ac_cache_corrupted=:
1758 fi;;
1759 esac
1760 # Pass precious variables to config.status.
1761 if test "$ac_new_set" = set; then
1762 case $ac_new_val in
1763 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1764 *) ac_arg=$ac_var=$ac_new_val ;;
1765 esac
1766 case " $ac_configure_args " in
1767 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1768 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1769 esac
1771 done
1772 if $ac_cache_corrupted; then
1773 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1774 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1775 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1776 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1777 { (exit 1); exit 1; }; }
1804 ac_ext=c
1805 ac_cpp='$CPP $CPPFLAGS'
1806 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1807 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1808 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1812 ac_config_headers="$ac_config_headers pyconfig.h"
1816 if test "$prefix" != "/"; then
1817 prefix=`echo "$prefix" | sed -e 's/\/$//g'`
1825 # We don't use PACKAGE_ variables, and they cause conflicts
1826 # with other autoconf-based packages that include Python.h
1827 grep -v 'define PACKAGE_' <confdefs.h >confdefs.h.new
1828 rm confdefs.h
1829 mv confdefs.h.new confdefs.h
1832 VERSION=2.7
1835 SOVERSION=1.0
1837 # The later defininition of _XOPEN_SOURCE disables certain features
1838 # on Linux, so we need _GNU_SOURCE to re-enable them (makedev, tm_zone).
1840 cat >>confdefs.h <<\_ACEOF
1841 #define _GNU_SOURCE 1
1842 _ACEOF
1845 # The later defininition of _XOPEN_SOURCE and _POSIX_C_SOURCE disables
1846 # certain features on NetBSD, so we need _NETBSD_SOURCE to re-enable
1847 # them.
1849 cat >>confdefs.h <<\_ACEOF
1850 #define _NETBSD_SOURCE 1
1851 _ACEOF
1854 # The later defininition of _XOPEN_SOURCE and _POSIX_C_SOURCE disables
1855 # certain features on FreeBSD, so we need __BSD_VISIBLE to re-enable
1856 # them.
1858 cat >>confdefs.h <<\_ACEOF
1859 #define __BSD_VISIBLE 1
1860 _ACEOF
1863 # The later defininition of _XOPEN_SOURCE and _POSIX_C_SOURCE disables
1864 # u_int on Irix 5.3. Defining _BSD_TYPES brings it back.
1866 cat >>confdefs.h <<\_ACEOF
1867 #define _BSD_TYPES 1
1868 _ACEOF
1871 # The later defininition of _XOPEN_SOURCE and _POSIX_C_SOURCE disables
1872 # certain features on Mac OS X, so we need _DARWIN_C_SOURCE to re-enable
1873 # them.
1875 cat >>confdefs.h <<\_ACEOF
1876 #define _DARWIN_C_SOURCE 1
1877 _ACEOF
1881 define_xopen_source=yes
1883 # Arguments passed to configure.
1885 CONFIG_ARGS="$ac_configure_args"
1887 # Check whether --enable-universalsdk was given.
1888 if test "${enable_universalsdk+set}" = set; then
1889 enableval=$enable_universalsdk;
1890 case $enableval in
1891 yes)
1892 enableval=/Developer/SDKs/MacOSX10.4u.sdk
1894 esac
1895 case $enableval in
1897 UNIVERSALSDK=
1898 enable_universalsdk=
1901 UNIVERSALSDK=$enableval
1903 esac
1905 else
1907 UNIVERSALSDK=
1908 enable_universalsdk=
1914 ARCH_RUN_32BIT=
1917 UNIVERSAL_ARCHS="32-bit"
1918 { echo "$as_me:$LINENO: checking for --with-universal-archs" >&5
1919 echo $ECHO_N "checking for --with-universal-archs... $ECHO_C" >&6; }
1921 # Check whether --with-universal-archs was given.
1922 if test "${with_universal_archs+set}" = set; then
1923 withval=$with_universal_archs;
1924 { echo "$as_me:$LINENO: result: $withval" >&5
1925 echo "${ECHO_T}$withval" >&6; }
1926 UNIVERSAL_ARCHS="$withval"
1928 else
1930 { echo "$as_me:$LINENO: result: 32-bit" >&5
1931 echo "${ECHO_T}32-bit" >&6; }
1939 # Check whether --with-framework-name was given.
1940 if test "${with_framework_name+set}" = set; then
1941 withval=$with_framework_name;
1942 PYTHONFRAMEWORK=${withval}
1943 PYTHONFRAMEWORKDIR=${withval}.framework
1944 PYTHONFRAMEWORKIDENTIFIER=org.python.`echo $withval | tr 'A-Z' 'a-z'`
1946 else
1948 PYTHONFRAMEWORK=Python
1949 PYTHONFRAMEWORKDIR=Python.framework
1950 PYTHONFRAMEWORKIDENTIFIER=org.python.python
1954 # Check whether --enable-framework was given.
1955 if test "${enable_framework+set}" = set; then
1956 enableval=$enable_framework;
1957 case $enableval in
1958 yes)
1959 enableval=/Library/Frameworks
1960 esac
1961 case $enableval in
1963 PYTHONFRAMEWORK=
1964 PYTHONFRAMEWORKDIR=no-framework
1965 PYTHONFRAMEWORKPREFIX=
1966 PYTHONFRAMEWORKINSTALLDIR=
1967 FRAMEWORKINSTALLFIRST=
1968 FRAMEWORKINSTALLLAST=
1969 FRAMEWORKALTINSTALLFIRST=
1970 FRAMEWORKALTINSTALLLAST=
1971 if test "x${prefix}" = "xNONE"; then
1972 FRAMEWORKUNIXTOOLSPREFIX="${ac_default_prefix}"
1973 else
1974 FRAMEWORKUNIXTOOLSPREFIX="${prefix}"
1976 enable_framework=
1979 PYTHONFRAMEWORKPREFIX=$enableval
1980 PYTHONFRAMEWORKINSTALLDIR=$PYTHONFRAMEWORKPREFIX/$PYTHONFRAMEWORKDIR
1981 FRAMEWORKINSTALLFIRST="frameworkinstallstructure"
1982 FRAMEWORKALTINSTALLFIRST="frameworkinstallstructure bininstall maninstall"
1983 if test "$UNIVERSAL_ARCHS" = "all"
1984 then
1985 FRAMEWORKINSTALLLAST="frameworkinstallmaclib frameworkinstallapps4way frameworkinstallunixtools4way"
1986 FRAMEWORKALTINSTALLLAST="frameworkinstallmaclib frameworkinstallapps4way frameworkaltinstallunixtools4way"
1987 else
1988 FRAMEWORKINSTALLLAST="frameworkinstallmaclib frameworkinstallapps frameworkinstallunixtools"
1989 FRAMEWORKALTINSTALLLAST="frameworkinstallmaclib frameworkinstallapps frameworkaltinstallunixtools"
1992 if test "x${prefix}" = "xNONE" ; then
1993 FRAMEWORKUNIXTOOLSPREFIX="${ac_default_prefix}"
1994 else
1995 FRAMEWORKUNIXTOOLSPREFIX="${prefix}"
1997 prefix=$PYTHONFRAMEWORKINSTALLDIR/Versions/$VERSION
1999 # Add files for Mac specific code to the list of output
2000 # files:
2001 ac_config_files="$ac_config_files Mac/Makefile"
2003 ac_config_files="$ac_config_files Mac/PythonLauncher/Makefile"
2005 ac_config_files="$ac_config_files Mac/IDLE/Makefile"
2007 ac_config_files="$ac_config_files Mac/Resources/framework/Info.plist"
2009 ac_config_files="$ac_config_files Mac/Resources/app/Info.plist"
2011 esac
2013 else
2015 PYTHONFRAMEWORK=
2016 PYTHONFRAMEWORKDIR=no-framework
2017 PYTHONFRAMEWORKPREFIX=
2018 PYTHONFRAMEWORKINSTALLDIR=
2019 FRAMEWORKINSTALLFIRST=
2020 FRAMEWORKINSTALLLAST=
2021 FRAMEWORKALTINSTALLFIRST=
2022 FRAMEWORKALTINSTALLLAST=
2023 if test "x${prefix}" = "xNONE" ; then
2024 FRAMEWORKUNIXTOOLSPREFIX="${ac_default_prefix}"
2025 else
2026 FRAMEWORKUNIXTOOLSPREFIX="${prefix}"
2028 enable_framework=
2030 if test "$UNIVERSAL_ARCHS" = "all"
2031 then
2032 FRAMEWORKINSTALLLAST=update4wayuniversal
2033 FRAMEWORKALTINSTALLLAST=update4wayuniversal
2049 ##AC_ARG_WITH(dyld,
2050 ## AC_HELP_STRING(--with-dyld,
2051 ## Use (OpenStep|Rhapsody) dynamic linker))
2053 # Set name for machine-dependent library files
2055 { echo "$as_me:$LINENO: checking MACHDEP" >&5
2056 echo $ECHO_N "checking MACHDEP... $ECHO_C" >&6; }
2057 if test -z "$MACHDEP"
2058 then
2059 ac_sys_system=`uname -s`
2060 if test "$ac_sys_system" = "AIX" -o "$ac_sys_system" = "Monterey64" \
2061 -o "$ac_sys_system" = "UnixWare" -o "$ac_sys_system" = "OpenUNIX"; then
2062 ac_sys_release=`uname -v`
2063 else
2064 ac_sys_release=`uname -r`
2066 ac_md_system=`echo $ac_sys_system |
2067 tr -d '/ ' | tr '[A-Z]' '[a-z]'`
2068 ac_md_release=`echo $ac_sys_release |
2069 tr -d '/ ' | sed 's/^[A-Z]\.//' | sed 's/\..*//'`
2070 MACHDEP="$ac_md_system$ac_md_release"
2072 case $MACHDEP in
2073 cygwin*) MACHDEP="cygwin";;
2074 darwin*) MACHDEP="darwin";;
2075 atheos*) MACHDEP="atheos";;
2076 irix646) MACHDEP="irix6";;
2077 '') MACHDEP="unknown";;
2078 esac
2081 # Some systems cannot stand _XOPEN_SOURCE being defined at all; they
2082 # disable features if it is defined, without any means to access these
2083 # features as extensions. For these systems, we skip the definition of
2084 # _XOPEN_SOURCE. Before adding a system to the list to gain access to
2085 # some feature, make sure there is no alternative way to access this
2086 # feature. Also, when using wildcards, make sure you have verified the
2087 # need for not defining _XOPEN_SOURCE on all systems matching the
2088 # wildcard, and that the wildcard does not include future systems
2089 # (which may remove their limitations).
2090 case $ac_sys_system/$ac_sys_release in
2091 # On OpenBSD, select(2) is not available if _XOPEN_SOURCE is defined,
2092 # even though select is a POSIX function. Reported by J. Ribbens.
2093 # Reconfirmed for OpenBSD 3.3 by Zachary Hamm, for 3.4 by Jason Ish.
2094 OpenBSD/2.* | OpenBSD/3.[0123456789] | OpenBSD/4.[0123])
2095 define_xopen_source=no
2096 # OpenBSD undoes our definition of __BSD_VISIBLE if _XOPEN_SOURCE is
2097 # also defined. This can be overridden by defining _BSD_SOURCE
2098 # As this has a different meaning on Linux, only define it on OpenBSD
2100 cat >>confdefs.h <<\_ACEOF
2101 #define _BSD_SOURCE 1
2102 _ACEOF
2105 # Defining _XOPEN_SOURCE on NetBSD version prior to the introduction of
2106 # _NETBSD_SOURCE disables certain features (eg. setgroups). Reported by
2107 # Marc Recht
2108 NetBSD/1.5 | NetBSD/1.5.* | NetBSD/1.6 | NetBSD/1.6.* | NetBSD/1.6[A-S])
2109 define_xopen_source=no;;
2110 # On Solaris 2.6, sys/wait.h is inconsistent in the usage
2111 # of union __?sigval. Reported by Stuart Bishop.
2112 SunOS/5.6)
2113 define_xopen_source=no;;
2114 # On UnixWare 7, u_long is never defined with _XOPEN_SOURCE,
2115 # but used in /usr/include/netinet/tcp.h. Reported by Tim Rice.
2116 # Reconfirmed for 7.1.4 by Martin v. Loewis.
2117 OpenUNIX/8.0.0| UnixWare/7.1.[0-4])
2118 define_xopen_source=no;;
2119 # On OpenServer 5, u_short is never defined with _XOPEN_SOURCE,
2120 # but used in struct sockaddr.sa_family. Reported by Tim Rice.
2121 SCO_SV/3.2)
2122 define_xopen_source=no;;
2123 # On FreeBSD 4, the math functions C89 does not cover are never defined
2124 # with _XOPEN_SOURCE and __BSD_VISIBLE does not re-enable them.
2125 FreeBSD/4.*)
2126 define_xopen_source=no;;
2127 # On MacOS X 10.2, a bug in ncurses.h means that it craps out if
2128 # _XOPEN_EXTENDED_SOURCE is defined. Apparently, this is fixed in 10.3, which
2129 # identifies itself as Darwin/7.*
2130 # On Mac OS X 10.4, defining _POSIX_C_SOURCE or _XOPEN_SOURCE
2131 # disables platform specific features beyond repair.
2132 # On Mac OS X 10.3, defining _POSIX_C_SOURCE or _XOPEN_SOURCE
2133 # has no effect, don't bother defining them
2134 Darwin/[6789].*)
2135 define_xopen_source=no;;
2136 # On AIX 4 and 5.1, mbstate_t is defined only when _XOPEN_SOURCE == 500 but
2137 # used in wcsnrtombs() and mbsnrtowcs() even if _XOPEN_SOURCE is not defined
2138 # or has another value. By not (re)defining it, the defaults come in place.
2139 AIX/4)
2140 define_xopen_source=no;;
2141 AIX/5)
2142 if test `uname -r` -eq 1; then
2143 define_xopen_source=no
2146 # On QNX 6.3.2, defining _XOPEN_SOURCE prevents netdb.h from
2147 # defining NI_NUMERICHOST.
2148 QNX/6.3.2)
2149 define_xopen_source=no
2152 esac
2154 if test $define_xopen_source = yes
2155 then
2156 # On Solaris w/ g++ it appears that _XOPEN_SOURCE has to be
2157 # defined precisely as g++ defines it
2158 # Furthermore, on Solaris 10, XPG6 requires the use of a C99
2159 # compiler
2160 case $ac_sys_system/$ac_sys_release in
2161 SunOS/5.8|SunOS/5.9|SunOS/5.10)
2163 cat >>confdefs.h <<\_ACEOF
2164 #define _XOPEN_SOURCE 500
2165 _ACEOF
2170 cat >>confdefs.h <<\_ACEOF
2171 #define _XOPEN_SOURCE 600
2172 _ACEOF
2175 esac
2177 # On Tru64 Unix 4.0F, defining _XOPEN_SOURCE also requires
2178 # definition of _XOPEN_SOURCE_EXTENDED and _POSIX_C_SOURCE, or else
2179 # several APIs are not declared. Since this is also needed in some
2180 # cases for HP-UX, we define it globally.
2181 # except for Solaris 10, where it must not be defined,
2182 # as it implies XPG4.2
2183 case $ac_sys_system/$ac_sys_release in
2184 SunOS/5.10)
2188 cat >>confdefs.h <<\_ACEOF
2189 #define _XOPEN_SOURCE_EXTENDED 1
2190 _ACEOF
2193 esac
2196 cat >>confdefs.h <<\_ACEOF
2197 #define _POSIX_C_SOURCE 200112L
2198 _ACEOF
2204 # SGI compilers allow the specification of the both the ABI and the
2205 # ISA on the command line. Depending on the values of these switches,
2206 # different and often incompatable code will be generated.
2208 # The SGI_ABI variable can be used to modify the CC and LDFLAGS and
2209 # thus supply support for various ABI/ISA combinations. The MACHDEP
2210 # variable is also adjusted.
2213 if test ! -z "$SGI_ABI"
2214 then
2215 CC="cc $SGI_ABI"
2216 LDFLAGS="$SGI_ABI $LDFLAGS"
2217 MACHDEP=`echo "${MACHDEP}${SGI_ABI}" | sed 's/ *//g'`
2219 { echo "$as_me:$LINENO: result: $MACHDEP" >&5
2220 echo "${ECHO_T}$MACHDEP" >&6; }
2222 # And add extra plat-mac for darwin
2225 { echo "$as_me:$LINENO: checking EXTRAPLATDIR" >&5
2226 echo $ECHO_N "checking EXTRAPLATDIR... $ECHO_C" >&6; }
2227 if test -z "$EXTRAPLATDIR"
2228 then
2229 case $MACHDEP in
2230 darwin)
2231 EXTRAPLATDIR="\$(PLATMACDIRS)"
2232 EXTRAMACHDEPPATH="\$(PLATMACPATH)"
2235 EXTRAPLATDIR=""
2236 EXTRAMACHDEPPATH=""
2238 esac
2240 { echo "$as_me:$LINENO: result: $EXTRAPLATDIR" >&5
2241 echo "${ECHO_T}$EXTRAPLATDIR" >&6; }
2243 # Record the configure-time value of MACOSX_DEPLOYMENT_TARGET,
2244 # it may influence the way we can build extensions, so distutils
2245 # needs to check it
2248 CONFIGURE_MACOSX_DEPLOYMENT_TARGET=
2249 EXPORT_MACOSX_DEPLOYMENT_TARGET='#'
2251 { echo "$as_me:$LINENO: checking machine type as reported by uname -m" >&5
2252 echo $ECHO_N "checking machine type as reported by uname -m... $ECHO_C" >&6; }
2253 ac_sys_machine=`uname -m`
2254 { echo "$as_me:$LINENO: result: $ac_sys_machine" >&5
2255 echo "${ECHO_T}$ac_sys_machine" >&6; }
2257 # checks for alternative programs
2259 # compiler flags are generated in two sets, BASECFLAGS and OPT. OPT is just
2260 # for debug/optimization stuff. BASECFLAGS is for flags that are required
2261 # just to get things to compile and link. Users are free to override OPT
2262 # when running configure or make. The build should not break if they do.
2263 # BASECFLAGS should generally not be messed with, however.
2265 # XXX shouldn't some/most/all of this code be merged with the stuff later
2266 # on that fiddles with OPT and BASECFLAGS?
2267 { echo "$as_me:$LINENO: checking for --without-gcc" >&5
2268 echo $ECHO_N "checking for --without-gcc... $ECHO_C" >&6; }
2270 # Check whether --with-gcc was given.
2271 if test "${with_gcc+set}" = set; then
2272 withval=$with_gcc;
2273 case $withval in
2274 no) CC=${CC:-cc}
2275 without_gcc=yes;;
2276 yes) CC=gcc
2277 without_gcc=no;;
2278 *) CC=$withval
2279 without_gcc=$withval;;
2280 esac
2281 else
2283 case $ac_sys_system in
2284 AIX*) CC=cc_r
2285 without_gcc=;;
2286 BeOS*)
2287 case $BE_HOST_CPU in
2288 ppc)
2289 CC=mwcc
2290 without_gcc=yes
2291 BASECFLAGS="$BASECFLAGS -export pragma"
2292 OPT="$OPT -O"
2293 LDFLAGS="$LDFLAGS -nodup"
2295 x86)
2296 CC=gcc
2297 without_gcc=no
2298 OPT="$OPT -O"
2301 { { echo "$as_me:$LINENO: error: Unknown BeOS platform \"$BE_HOST_CPU\"" >&5
2302 echo "$as_me: error: Unknown BeOS platform \"$BE_HOST_CPU\"" >&2;}
2303 { (exit 1); exit 1; }; }
2305 esac
2306 AR="\$(srcdir)/Modules/ar_beos"
2307 RANLIB=:
2309 Monterey*)
2310 RANLIB=:
2311 without_gcc=;;
2312 *) without_gcc=no;;
2313 esac
2316 { echo "$as_me:$LINENO: result: $without_gcc" >&5
2317 echo "${ECHO_T}$without_gcc" >&6; }
2319 # If the user switches compilers, we can't believe the cache
2320 if test ! -z "$ac_cv_prog_CC" -a ! -z "$CC" -a "$CC" != "$ac_cv_prog_CC"
2321 then
2322 { { echo "$as_me:$LINENO: error: cached CC is different -- throw away $cache_file
2323 (it is also a good idea to do 'make clean' before compiling)" >&5
2324 echo "$as_me: error: cached CC is different -- throw away $cache_file
2325 (it is also a good idea to do 'make clean' before compiling)" >&2;}
2326 { (exit 1); exit 1; }; }
2329 ac_ext=c
2330 ac_cpp='$CPP $CPPFLAGS'
2331 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2332 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2333 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2334 if test -n "$ac_tool_prefix"; then
2335 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2336 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2337 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2338 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2339 if test "${ac_cv_prog_CC+set}" = set; then
2340 echo $ECHO_N "(cached) $ECHO_C" >&6
2341 else
2342 if test -n "$CC"; then
2343 ac_cv_prog_CC="$CC" # Let the user override the test.
2344 else
2345 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2346 for as_dir in $PATH
2348 IFS=$as_save_IFS
2349 test -z "$as_dir" && as_dir=.
2350 for ac_exec_ext in '' $ac_executable_extensions; do
2351 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2352 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2353 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2354 break 2
2356 done
2357 done
2358 IFS=$as_save_IFS
2362 CC=$ac_cv_prog_CC
2363 if test -n "$CC"; then
2364 { echo "$as_me:$LINENO: result: $CC" >&5
2365 echo "${ECHO_T}$CC" >&6; }
2366 else
2367 { echo "$as_me:$LINENO: result: no" >&5
2368 echo "${ECHO_T}no" >&6; }
2373 if test -z "$ac_cv_prog_CC"; then
2374 ac_ct_CC=$CC
2375 # Extract the first word of "gcc", so it can be a program name with args.
2376 set dummy gcc; ac_word=$2
2377 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2378 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2379 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2380 echo $ECHO_N "(cached) $ECHO_C" >&6
2381 else
2382 if test -n "$ac_ct_CC"; then
2383 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2384 else
2385 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2386 for as_dir in $PATH
2388 IFS=$as_save_IFS
2389 test -z "$as_dir" && as_dir=.
2390 for ac_exec_ext in '' $ac_executable_extensions; do
2391 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2392 ac_cv_prog_ac_ct_CC="gcc"
2393 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2394 break 2
2396 done
2397 done
2398 IFS=$as_save_IFS
2402 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2403 if test -n "$ac_ct_CC"; then
2404 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2405 echo "${ECHO_T}$ac_ct_CC" >&6; }
2406 else
2407 { echo "$as_me:$LINENO: result: no" >&5
2408 echo "${ECHO_T}no" >&6; }
2411 if test "x$ac_ct_CC" = x; then
2412 CC=""
2413 else
2414 case $cross_compiling:$ac_tool_warned in
2415 yes:)
2416 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2417 whose name does not start with the host triplet. If you think this
2418 configuration is useful to you, please write to autoconf@gnu.org." >&5
2419 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2420 whose name does not start with the host triplet. If you think this
2421 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2422 ac_tool_warned=yes ;;
2423 esac
2424 CC=$ac_ct_CC
2426 else
2427 CC="$ac_cv_prog_CC"
2430 if test -z "$CC"; then
2431 if test -n "$ac_tool_prefix"; then
2432 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2433 set dummy ${ac_tool_prefix}cc; ac_word=$2
2434 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2435 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2436 if test "${ac_cv_prog_CC+set}" = set; then
2437 echo $ECHO_N "(cached) $ECHO_C" >&6
2438 else
2439 if test -n "$CC"; then
2440 ac_cv_prog_CC="$CC" # Let the user override the test.
2441 else
2442 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2443 for as_dir in $PATH
2445 IFS=$as_save_IFS
2446 test -z "$as_dir" && as_dir=.
2447 for ac_exec_ext in '' $ac_executable_extensions; do
2448 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2449 ac_cv_prog_CC="${ac_tool_prefix}cc"
2450 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2451 break 2
2453 done
2454 done
2455 IFS=$as_save_IFS
2459 CC=$ac_cv_prog_CC
2460 if test -n "$CC"; then
2461 { echo "$as_me:$LINENO: result: $CC" >&5
2462 echo "${ECHO_T}$CC" >&6; }
2463 else
2464 { echo "$as_me:$LINENO: result: no" >&5
2465 echo "${ECHO_T}no" >&6; }
2471 if test -z "$CC"; then
2472 # Extract the first word of "cc", so it can be a program name with args.
2473 set dummy cc; ac_word=$2
2474 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2475 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2476 if test "${ac_cv_prog_CC+set}" = set; then
2477 echo $ECHO_N "(cached) $ECHO_C" >&6
2478 else
2479 if test -n "$CC"; then
2480 ac_cv_prog_CC="$CC" # Let the user override the test.
2481 else
2482 ac_prog_rejected=no
2483 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2484 for as_dir in $PATH
2486 IFS=$as_save_IFS
2487 test -z "$as_dir" && as_dir=.
2488 for ac_exec_ext in '' $ac_executable_extensions; do
2489 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2490 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2491 ac_prog_rejected=yes
2492 continue
2494 ac_cv_prog_CC="cc"
2495 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2496 break 2
2498 done
2499 done
2500 IFS=$as_save_IFS
2502 if test $ac_prog_rejected = yes; then
2503 # We found a bogon in the path, so make sure we never use it.
2504 set dummy $ac_cv_prog_CC
2505 shift
2506 if test $# != 0; then
2507 # We chose a different compiler from the bogus one.
2508 # However, it has the same basename, so the bogon will be chosen
2509 # first if we set CC to just the basename; use the full file name.
2510 shift
2511 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2516 CC=$ac_cv_prog_CC
2517 if test -n "$CC"; then
2518 { echo "$as_me:$LINENO: result: $CC" >&5
2519 echo "${ECHO_T}$CC" >&6; }
2520 else
2521 { echo "$as_me:$LINENO: result: no" >&5
2522 echo "${ECHO_T}no" >&6; }
2527 if test -z "$CC"; then
2528 if test -n "$ac_tool_prefix"; then
2529 for ac_prog in cl.exe
2531 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2532 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2533 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2534 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2535 if test "${ac_cv_prog_CC+set}" = set; then
2536 echo $ECHO_N "(cached) $ECHO_C" >&6
2537 else
2538 if test -n "$CC"; then
2539 ac_cv_prog_CC="$CC" # Let the user override the test.
2540 else
2541 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2542 for as_dir in $PATH
2544 IFS=$as_save_IFS
2545 test -z "$as_dir" && as_dir=.
2546 for ac_exec_ext in '' $ac_executable_extensions; do
2547 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2548 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2549 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2550 break 2
2552 done
2553 done
2554 IFS=$as_save_IFS
2558 CC=$ac_cv_prog_CC
2559 if test -n "$CC"; then
2560 { echo "$as_me:$LINENO: result: $CC" >&5
2561 echo "${ECHO_T}$CC" >&6; }
2562 else
2563 { echo "$as_me:$LINENO: result: no" >&5
2564 echo "${ECHO_T}no" >&6; }
2568 test -n "$CC" && break
2569 done
2571 if test -z "$CC"; then
2572 ac_ct_CC=$CC
2573 for ac_prog in cl.exe
2575 # Extract the first word of "$ac_prog", so it can be a program name with args.
2576 set dummy $ac_prog; ac_word=$2
2577 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2578 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2579 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2580 echo $ECHO_N "(cached) $ECHO_C" >&6
2581 else
2582 if test -n "$ac_ct_CC"; then
2583 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2584 else
2585 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2586 for as_dir in $PATH
2588 IFS=$as_save_IFS
2589 test -z "$as_dir" && as_dir=.
2590 for ac_exec_ext in '' $ac_executable_extensions; do
2591 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2592 ac_cv_prog_ac_ct_CC="$ac_prog"
2593 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2594 break 2
2596 done
2597 done
2598 IFS=$as_save_IFS
2602 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2603 if test -n "$ac_ct_CC"; then
2604 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2605 echo "${ECHO_T}$ac_ct_CC" >&6; }
2606 else
2607 { echo "$as_me:$LINENO: result: no" >&5
2608 echo "${ECHO_T}no" >&6; }
2612 test -n "$ac_ct_CC" && break
2613 done
2615 if test "x$ac_ct_CC" = x; then
2616 CC=""
2617 else
2618 case $cross_compiling:$ac_tool_warned in
2619 yes:)
2620 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2621 whose name does not start with the host triplet. If you think this
2622 configuration is useful to you, please write to autoconf@gnu.org." >&5
2623 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2624 whose name does not start with the host triplet. If you think this
2625 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2626 ac_tool_warned=yes ;;
2627 esac
2628 CC=$ac_ct_CC
2635 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2636 See \`config.log' for more details." >&5
2637 echo "$as_me: error: no acceptable C compiler found in \$PATH
2638 See \`config.log' for more details." >&2;}
2639 { (exit 1); exit 1; }; }
2641 # Provide some information about the compiler.
2642 echo "$as_me:$LINENO: checking for C compiler version" >&5
2643 ac_compiler=`set X $ac_compile; echo $2`
2644 { (ac_try="$ac_compiler --version >&5"
2645 case "(($ac_try" in
2646 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2647 *) ac_try_echo=$ac_try;;
2648 esac
2649 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2650 (eval "$ac_compiler --version >&5") 2>&5
2651 ac_status=$?
2652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2653 (exit $ac_status); }
2654 { (ac_try="$ac_compiler -v >&5"
2655 case "(($ac_try" in
2656 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2657 *) ac_try_echo=$ac_try;;
2658 esac
2659 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2660 (eval "$ac_compiler -v >&5") 2>&5
2661 ac_status=$?
2662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2663 (exit $ac_status); }
2664 { (ac_try="$ac_compiler -V >&5"
2665 case "(($ac_try" in
2666 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2667 *) ac_try_echo=$ac_try;;
2668 esac
2669 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2670 (eval "$ac_compiler -V >&5") 2>&5
2671 ac_status=$?
2672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2673 (exit $ac_status); }
2675 cat >conftest.$ac_ext <<_ACEOF
2676 /* confdefs.h. */
2677 _ACEOF
2678 cat confdefs.h >>conftest.$ac_ext
2679 cat >>conftest.$ac_ext <<_ACEOF
2680 /* end confdefs.h. */
2683 main ()
2687 return 0;
2689 _ACEOF
2690 ac_clean_files_save=$ac_clean_files
2691 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2692 # Try to create an executable without -o first, disregard a.out.
2693 # It will help us diagnose broken compilers, and finding out an intuition
2694 # of exeext.
2695 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2696 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2697 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2699 # List of possible output files, starting from the most likely.
2700 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2701 # only as a last resort. b.out is created by i960 compilers.
2702 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2704 # The IRIX 6 linker writes into existing files which may not be
2705 # executable, retaining their permissions. Remove them first so a
2706 # subsequent execution test works.
2707 ac_rmfiles=
2708 for ac_file in $ac_files
2710 case $ac_file in
2711 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2712 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2713 esac
2714 done
2715 rm -f $ac_rmfiles
2717 if { (ac_try="$ac_link_default"
2718 case "(($ac_try" in
2719 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2720 *) ac_try_echo=$ac_try;;
2721 esac
2722 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2723 (eval "$ac_link_default") 2>&5
2724 ac_status=$?
2725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2726 (exit $ac_status); }; then
2727 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2728 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2729 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2730 # so that the user can short-circuit this test for compilers unknown to
2731 # Autoconf.
2732 for ac_file in $ac_files ''
2734 test -f "$ac_file" || continue
2735 case $ac_file in
2736 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2738 [ab].out )
2739 # We found the default executable, but exeext='' is most
2740 # certainly right.
2741 break;;
2742 *.* )
2743 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2744 then :; else
2745 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2747 # We set ac_cv_exeext here because the later test for it is not
2748 # safe: cross compilers may not add the suffix if given an `-o'
2749 # argument, so we may need to know it at that point already.
2750 # Even if this section looks crufty: it has the advantage of
2751 # actually working.
2752 break;;
2754 break;;
2755 esac
2756 done
2757 test "$ac_cv_exeext" = no && ac_cv_exeext=
2759 else
2760 ac_file=''
2763 { echo "$as_me:$LINENO: result: $ac_file" >&5
2764 echo "${ECHO_T}$ac_file" >&6; }
2765 if test -z "$ac_file"; then
2766 echo "$as_me: failed program was:" >&5
2767 sed 's/^/| /' conftest.$ac_ext >&5
2769 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2770 See \`config.log' for more details." >&5
2771 echo "$as_me: error: C compiler cannot create executables
2772 See \`config.log' for more details." >&2;}
2773 { (exit 77); exit 77; }; }
2776 ac_exeext=$ac_cv_exeext
2778 # Check that the compiler produces executables we can run. If not, either
2779 # the compiler is broken, or we cross compile.
2780 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2781 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2782 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2783 # If not cross compiling, check that we can run a simple program.
2784 if test "$cross_compiling" != yes; then
2785 if { ac_try='./$ac_file'
2786 { (case "(($ac_try" in
2787 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2788 *) ac_try_echo=$ac_try;;
2789 esac
2790 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2791 (eval "$ac_try") 2>&5
2792 ac_status=$?
2793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2794 (exit $ac_status); }; }; then
2795 cross_compiling=no
2796 else
2797 if test "$cross_compiling" = maybe; then
2798 cross_compiling=yes
2799 else
2800 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2801 If you meant to cross compile, use \`--host'.
2802 See \`config.log' for more details." >&5
2803 echo "$as_me: error: cannot run C compiled programs.
2804 If you meant to cross compile, use \`--host'.
2805 See \`config.log' for more details." >&2;}
2806 { (exit 1); exit 1; }; }
2810 { echo "$as_me:$LINENO: result: yes" >&5
2811 echo "${ECHO_T}yes" >&6; }
2813 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2814 ac_clean_files=$ac_clean_files_save
2815 # Check that the compiler produces executables we can run. If not, either
2816 # the compiler is broken, or we cross compile.
2817 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2818 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2819 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2820 echo "${ECHO_T}$cross_compiling" >&6; }
2822 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2823 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2824 if { (ac_try="$ac_link"
2825 case "(($ac_try" in
2826 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2827 *) ac_try_echo=$ac_try;;
2828 esac
2829 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2830 (eval "$ac_link") 2>&5
2831 ac_status=$?
2832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2833 (exit $ac_status); }; then
2834 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2835 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2836 # work properly (i.e., refer to `conftest.exe'), while it won't with
2837 # `rm'.
2838 for ac_file in conftest.exe conftest conftest.*; do
2839 test -f "$ac_file" || continue
2840 case $ac_file in
2841 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2842 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2843 break;;
2844 * ) break;;
2845 esac
2846 done
2847 else
2848 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2849 See \`config.log' for more details." >&5
2850 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2851 See \`config.log' for more details." >&2;}
2852 { (exit 1); exit 1; }; }
2855 rm -f conftest$ac_cv_exeext
2856 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2857 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2859 rm -f conftest.$ac_ext
2860 EXEEXT=$ac_cv_exeext
2861 ac_exeext=$EXEEXT
2862 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2863 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2864 if test "${ac_cv_objext+set}" = set; then
2865 echo $ECHO_N "(cached) $ECHO_C" >&6
2866 else
2867 cat >conftest.$ac_ext <<_ACEOF
2868 /* confdefs.h. */
2869 _ACEOF
2870 cat confdefs.h >>conftest.$ac_ext
2871 cat >>conftest.$ac_ext <<_ACEOF
2872 /* end confdefs.h. */
2875 main ()
2879 return 0;
2881 _ACEOF
2882 rm -f conftest.o conftest.obj
2883 if { (ac_try="$ac_compile"
2884 case "(($ac_try" in
2885 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2886 *) ac_try_echo=$ac_try;;
2887 esac
2888 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2889 (eval "$ac_compile") 2>&5
2890 ac_status=$?
2891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2892 (exit $ac_status); }; then
2893 for ac_file in conftest.o conftest.obj conftest.*; do
2894 test -f "$ac_file" || continue;
2895 case $ac_file in
2896 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2897 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2898 break;;
2899 esac
2900 done
2901 else
2902 echo "$as_me: failed program was:" >&5
2903 sed 's/^/| /' conftest.$ac_ext >&5
2905 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2906 See \`config.log' for more details." >&5
2907 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2908 See \`config.log' for more details." >&2;}
2909 { (exit 1); exit 1; }; }
2912 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2914 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2915 echo "${ECHO_T}$ac_cv_objext" >&6; }
2916 OBJEXT=$ac_cv_objext
2917 ac_objext=$OBJEXT
2918 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2919 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2920 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2921 echo $ECHO_N "(cached) $ECHO_C" >&6
2922 else
2923 cat >conftest.$ac_ext <<_ACEOF
2924 /* confdefs.h. */
2925 _ACEOF
2926 cat confdefs.h >>conftest.$ac_ext
2927 cat >>conftest.$ac_ext <<_ACEOF
2928 /* end confdefs.h. */
2931 main ()
2933 #ifndef __GNUC__
2934 choke me
2935 #endif
2938 return 0;
2940 _ACEOF
2941 rm -f conftest.$ac_objext
2942 if { (ac_try="$ac_compile"
2943 case "(($ac_try" in
2944 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2945 *) ac_try_echo=$ac_try;;
2946 esac
2947 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2948 (eval "$ac_compile") 2>conftest.er1
2949 ac_status=$?
2950 grep -v '^ *+' conftest.er1 >conftest.err
2951 rm -f conftest.er1
2952 cat conftest.err >&5
2953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2954 (exit $ac_status); } && {
2955 test -z "$ac_c_werror_flag" ||
2956 test ! -s conftest.err
2957 } && test -s conftest.$ac_objext; then
2958 ac_compiler_gnu=yes
2959 else
2960 echo "$as_me: failed program was:" >&5
2961 sed 's/^/| /' conftest.$ac_ext >&5
2963 ac_compiler_gnu=no
2966 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2967 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2970 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2971 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2972 GCC=`test $ac_compiler_gnu = yes && echo yes`
2973 ac_test_CFLAGS=${CFLAGS+set}
2974 ac_save_CFLAGS=$CFLAGS
2975 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2976 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2977 if test "${ac_cv_prog_cc_g+set}" = set; then
2978 echo $ECHO_N "(cached) $ECHO_C" >&6
2979 else
2980 ac_save_c_werror_flag=$ac_c_werror_flag
2981 ac_c_werror_flag=yes
2982 ac_cv_prog_cc_g=no
2983 CFLAGS="-g"
2984 cat >conftest.$ac_ext <<_ACEOF
2985 /* confdefs.h. */
2986 _ACEOF
2987 cat confdefs.h >>conftest.$ac_ext
2988 cat >>conftest.$ac_ext <<_ACEOF
2989 /* end confdefs.h. */
2992 main ()
2996 return 0;
2998 _ACEOF
2999 rm -f conftest.$ac_objext
3000 if { (ac_try="$ac_compile"
3001 case "(($ac_try" in
3002 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3003 *) ac_try_echo=$ac_try;;
3004 esac
3005 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3006 (eval "$ac_compile") 2>conftest.er1
3007 ac_status=$?
3008 grep -v '^ *+' conftest.er1 >conftest.err
3009 rm -f conftest.er1
3010 cat conftest.err >&5
3011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3012 (exit $ac_status); } && {
3013 test -z "$ac_c_werror_flag" ||
3014 test ! -s conftest.err
3015 } && test -s conftest.$ac_objext; then
3016 ac_cv_prog_cc_g=yes
3017 else
3018 echo "$as_me: failed program was:" >&5
3019 sed 's/^/| /' conftest.$ac_ext >&5
3021 CFLAGS=""
3022 cat >conftest.$ac_ext <<_ACEOF
3023 /* confdefs.h. */
3024 _ACEOF
3025 cat confdefs.h >>conftest.$ac_ext
3026 cat >>conftest.$ac_ext <<_ACEOF
3027 /* end confdefs.h. */
3030 main ()
3034 return 0;
3036 _ACEOF
3037 rm -f conftest.$ac_objext
3038 if { (ac_try="$ac_compile"
3039 case "(($ac_try" in
3040 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3041 *) ac_try_echo=$ac_try;;
3042 esac
3043 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3044 (eval "$ac_compile") 2>conftest.er1
3045 ac_status=$?
3046 grep -v '^ *+' conftest.er1 >conftest.err
3047 rm -f conftest.er1
3048 cat conftest.err >&5
3049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3050 (exit $ac_status); } && {
3051 test -z "$ac_c_werror_flag" ||
3052 test ! -s conftest.err
3053 } && test -s conftest.$ac_objext; then
3055 else
3056 echo "$as_me: failed program was:" >&5
3057 sed 's/^/| /' conftest.$ac_ext >&5
3059 ac_c_werror_flag=$ac_save_c_werror_flag
3060 CFLAGS="-g"
3061 cat >conftest.$ac_ext <<_ACEOF
3062 /* confdefs.h. */
3063 _ACEOF
3064 cat confdefs.h >>conftest.$ac_ext
3065 cat >>conftest.$ac_ext <<_ACEOF
3066 /* end confdefs.h. */
3069 main ()
3073 return 0;
3075 _ACEOF
3076 rm -f conftest.$ac_objext
3077 if { (ac_try="$ac_compile"
3078 case "(($ac_try" in
3079 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3080 *) ac_try_echo=$ac_try;;
3081 esac
3082 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3083 (eval "$ac_compile") 2>conftest.er1
3084 ac_status=$?
3085 grep -v '^ *+' conftest.er1 >conftest.err
3086 rm -f conftest.er1
3087 cat conftest.err >&5
3088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3089 (exit $ac_status); } && {
3090 test -z "$ac_c_werror_flag" ||
3091 test ! -s conftest.err
3092 } && test -s conftest.$ac_objext; then
3093 ac_cv_prog_cc_g=yes
3094 else
3095 echo "$as_me: failed program was:" >&5
3096 sed 's/^/| /' conftest.$ac_ext >&5
3101 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3104 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3107 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3108 ac_c_werror_flag=$ac_save_c_werror_flag
3110 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3111 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3112 if test "$ac_test_CFLAGS" = set; then
3113 CFLAGS=$ac_save_CFLAGS
3114 elif test $ac_cv_prog_cc_g = yes; then
3115 if test "$GCC" = yes; then
3116 CFLAGS="-g -O2"
3117 else
3118 CFLAGS="-g"
3120 else
3121 if test "$GCC" = yes; then
3122 CFLAGS="-O2"
3123 else
3124 CFLAGS=
3127 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3128 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3129 if test "${ac_cv_prog_cc_c89+set}" = set; then
3130 echo $ECHO_N "(cached) $ECHO_C" >&6
3131 else
3132 ac_cv_prog_cc_c89=no
3133 ac_save_CC=$CC
3134 cat >conftest.$ac_ext <<_ACEOF
3135 /* confdefs.h. */
3136 _ACEOF
3137 cat confdefs.h >>conftest.$ac_ext
3138 cat >>conftest.$ac_ext <<_ACEOF
3139 /* end confdefs.h. */
3140 #include <stdarg.h>
3141 #include <stdio.h>
3142 #include <sys/types.h>
3143 #include <sys/stat.h>
3144 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3145 struct buf { int x; };
3146 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3147 static char *e (p, i)
3148 char **p;
3149 int i;
3151 return p[i];
3153 static char *f (char * (*g) (char **, int), char **p, ...)
3155 char *s;
3156 va_list v;
3157 va_start (v,p);
3158 s = g (p, va_arg (v,int));
3159 va_end (v);
3160 return s;
3163 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3164 function prototypes and stuff, but not '\xHH' hex character constants.
3165 These don't provoke an error unfortunately, instead are silently treated
3166 as 'x'. The following induces an error, until -std is added to get
3167 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3168 array size at least. It's necessary to write '\x00'==0 to get something
3169 that's true only with -std. */
3170 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3172 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3173 inside strings and character constants. */
3174 #define FOO(x) 'x'
3175 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3177 int test (int i, double x);
3178 struct s1 {int (*f) (int a);};
3179 struct s2 {int (*f) (double a);};
3180 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3181 int argc;
3182 char **argv;
3184 main ()
3186 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3188 return 0;
3190 _ACEOF
3191 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3192 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3194 CC="$ac_save_CC $ac_arg"
3195 rm -f conftest.$ac_objext
3196 if { (ac_try="$ac_compile"
3197 case "(($ac_try" in
3198 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3199 *) ac_try_echo=$ac_try;;
3200 esac
3201 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3202 (eval "$ac_compile") 2>conftest.er1
3203 ac_status=$?
3204 grep -v '^ *+' conftest.er1 >conftest.err
3205 rm -f conftest.er1
3206 cat conftest.err >&5
3207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3208 (exit $ac_status); } && {
3209 test -z "$ac_c_werror_flag" ||
3210 test ! -s conftest.err
3211 } && test -s conftest.$ac_objext; then
3212 ac_cv_prog_cc_c89=$ac_arg
3213 else
3214 echo "$as_me: failed program was:" >&5
3215 sed 's/^/| /' conftest.$ac_ext >&5
3220 rm -f core conftest.err conftest.$ac_objext
3221 test "x$ac_cv_prog_cc_c89" != "xno" && break
3222 done
3223 rm -f conftest.$ac_ext
3224 CC=$ac_save_CC
3227 # AC_CACHE_VAL
3228 case "x$ac_cv_prog_cc_c89" in
3230 { echo "$as_me:$LINENO: result: none needed" >&5
3231 echo "${ECHO_T}none needed" >&6; } ;;
3232 xno)
3233 { echo "$as_me:$LINENO: result: unsupported" >&5
3234 echo "${ECHO_T}unsupported" >&6; } ;;
3236 CC="$CC $ac_cv_prog_cc_c89"
3237 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3238 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3239 esac
3242 ac_ext=c
3243 ac_cpp='$CPP $CPPFLAGS'
3244 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3245 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3246 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3251 { echo "$as_me:$LINENO: checking for --with-cxx-main=<compiler>" >&5
3252 echo $ECHO_N "checking for --with-cxx-main=<compiler>... $ECHO_C" >&6; }
3254 # Check whether --with-cxx_main was given.
3255 if test "${with_cxx_main+set}" = set; then
3256 withval=$with_cxx_main;
3258 case $withval in
3259 no) with_cxx_main=no
3260 MAINCC='$(CC)';;
3261 yes) with_cxx_main=yes
3262 MAINCC='$(CXX)';;
3263 *) with_cxx_main=yes
3264 MAINCC=$withval
3265 if test -z "$CXX"
3266 then
3267 CXX=$withval
3268 fi;;
3269 esac
3270 else
3272 with_cxx_main=no
3273 MAINCC='$(CC)'
3277 { echo "$as_me:$LINENO: result: $with_cxx_main" >&5
3278 echo "${ECHO_T}$with_cxx_main" >&6; }
3280 preset_cxx="$CXX"
3281 if test -z "$CXX"
3282 then
3283 case "$CC" in
3284 gcc) # Extract the first word of "g++", so it can be a program name with args.
3285 set dummy g++; ac_word=$2
3286 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3287 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3288 if test "${ac_cv_path_CXX+set}" = set; then
3289 echo $ECHO_N "(cached) $ECHO_C" >&6
3290 else
3291 case $CXX in
3292 [\\/]* | ?:[\\/]*)
3293 ac_cv_path_CXX="$CXX" # Let the user override the test with a path.
3296 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3297 for as_dir in notfound
3299 IFS=$as_save_IFS
3300 test -z "$as_dir" && as_dir=.
3301 for ac_exec_ext in '' $ac_executable_extensions; do
3302 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3303 ac_cv_path_CXX="$as_dir/$ac_word$ac_exec_ext"
3304 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3305 break 2
3307 done
3308 done
3309 IFS=$as_save_IFS
3311 test -z "$ac_cv_path_CXX" && ac_cv_path_CXX="g++"
3313 esac
3315 CXX=$ac_cv_path_CXX
3316 if test -n "$CXX"; then
3317 { echo "$as_me:$LINENO: result: $CXX" >&5
3318 echo "${ECHO_T}$CXX" >&6; }
3319 else
3320 { echo "$as_me:$LINENO: result: no" >&5
3321 echo "${ECHO_T}no" >&6; }
3325 cc) # Extract the first word of "c++", so it can be a program name with args.
3326 set dummy c++; ac_word=$2
3327 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3328 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3329 if test "${ac_cv_path_CXX+set}" = set; then
3330 echo $ECHO_N "(cached) $ECHO_C" >&6
3331 else
3332 case $CXX in
3333 [\\/]* | ?:[\\/]*)
3334 ac_cv_path_CXX="$CXX" # Let the user override the test with a path.
3337 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3338 for as_dir in notfound
3340 IFS=$as_save_IFS
3341 test -z "$as_dir" && as_dir=.
3342 for ac_exec_ext in '' $ac_executable_extensions; do
3343 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3344 ac_cv_path_CXX="$as_dir/$ac_word$ac_exec_ext"
3345 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3346 break 2
3348 done
3349 done
3350 IFS=$as_save_IFS
3352 test -z "$ac_cv_path_CXX" && ac_cv_path_CXX="c++"
3354 esac
3356 CXX=$ac_cv_path_CXX
3357 if test -n "$CXX"; then
3358 { echo "$as_me:$LINENO: result: $CXX" >&5
3359 echo "${ECHO_T}$CXX" >&6; }
3360 else
3361 { echo "$as_me:$LINENO: result: no" >&5
3362 echo "${ECHO_T}no" >&6; }
3366 esac
3367 if test "$CXX" = "notfound"
3368 then
3369 CXX=""
3372 if test -z "$CXX"
3373 then
3374 for ac_prog in $CCC c++ g++ gcc CC cxx cc++ cl
3376 # Extract the first word of "$ac_prog", so it can be a program name with args.
3377 set dummy $ac_prog; ac_word=$2
3378 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3379 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3380 if test "${ac_cv_prog_CXX+set}" = set; then
3381 echo $ECHO_N "(cached) $ECHO_C" >&6
3382 else
3383 if test -n "$CXX"; then
3384 ac_cv_prog_CXX="$CXX" # Let the user override the test.
3385 else
3386 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3387 for as_dir in $PATH
3389 IFS=$as_save_IFS
3390 test -z "$as_dir" && as_dir=.
3391 for ac_exec_ext in '' $ac_executable_extensions; do
3392 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3393 ac_cv_prog_CXX="$ac_prog"
3394 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3395 break 2
3397 done
3398 done
3399 IFS=$as_save_IFS
3403 CXX=$ac_cv_prog_CXX
3404 if test -n "$CXX"; then
3405 { echo "$as_me:$LINENO: result: $CXX" >&5
3406 echo "${ECHO_T}$CXX" >&6; }
3407 else
3408 { echo "$as_me:$LINENO: result: no" >&5
3409 echo "${ECHO_T}no" >&6; }
3413 test -n "$CXX" && break
3414 done
3415 test -n "$CXX" || CXX="notfound"
3417 if test "$CXX" = "notfound"
3418 then
3419 CXX=""
3422 if test "$preset_cxx" != "$CXX"
3423 then
3424 { echo "$as_me:$LINENO: WARNING:
3426 By default, distutils will build C++ extension modules with \"$CXX\".
3427 If this is not intended, then set CXX on the configure command line.
3428 " >&5
3429 echo "$as_me: WARNING:
3431 By default, distutils will build C++ extension modules with \"$CXX\".
3432 If this is not intended, then set CXX on the configure command line.
3433 " >&2;}
3437 # checks for UNIX variants that set C preprocessor variables
3439 ac_ext=c
3440 ac_cpp='$CPP $CPPFLAGS'
3441 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3442 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3443 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3444 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3445 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3446 # On Suns, sometimes $CPP names a directory.
3447 if test -n "$CPP" && test -d "$CPP"; then
3448 CPP=
3450 if test -z "$CPP"; then
3451 if test "${ac_cv_prog_CPP+set}" = set; then
3452 echo $ECHO_N "(cached) $ECHO_C" >&6
3453 else
3454 # Double quotes because CPP needs to be expanded
3455 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3457 ac_preproc_ok=false
3458 for ac_c_preproc_warn_flag in '' yes
3460 # Use a header file that comes with gcc, so configuring glibc
3461 # with a fresh cross-compiler works.
3462 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3463 # <limits.h> exists even on freestanding compilers.
3464 # On the NeXT, cc -E runs the code through the compiler's parser,
3465 # not just through cpp. "Syntax error" is here to catch this case.
3466 cat >conftest.$ac_ext <<_ACEOF
3467 /* confdefs.h. */
3468 _ACEOF
3469 cat confdefs.h >>conftest.$ac_ext
3470 cat >>conftest.$ac_ext <<_ACEOF
3471 /* end confdefs.h. */
3472 #ifdef __STDC__
3473 # include <limits.h>
3474 #else
3475 # include <assert.h>
3476 #endif
3477 Syntax error
3478 _ACEOF
3479 if { (ac_try="$ac_cpp conftest.$ac_ext"
3480 case "(($ac_try" in
3481 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3482 *) ac_try_echo=$ac_try;;
3483 esac
3484 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3485 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3486 ac_status=$?
3487 grep -v '^ *+' conftest.er1 >conftest.err
3488 rm -f conftest.er1
3489 cat conftest.err >&5
3490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3491 (exit $ac_status); } >/dev/null && {
3492 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3493 test ! -s conftest.err
3494 }; then
3496 else
3497 echo "$as_me: failed program was:" >&5
3498 sed 's/^/| /' conftest.$ac_ext >&5
3500 # Broken: fails on valid input.
3501 continue
3504 rm -f conftest.err conftest.$ac_ext
3506 # OK, works on sane cases. Now check whether nonexistent headers
3507 # can be detected and how.
3508 cat >conftest.$ac_ext <<_ACEOF
3509 /* confdefs.h. */
3510 _ACEOF
3511 cat confdefs.h >>conftest.$ac_ext
3512 cat >>conftest.$ac_ext <<_ACEOF
3513 /* end confdefs.h. */
3514 #include <ac_nonexistent.h>
3515 _ACEOF
3516 if { (ac_try="$ac_cpp conftest.$ac_ext"
3517 case "(($ac_try" in
3518 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3519 *) ac_try_echo=$ac_try;;
3520 esac
3521 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3522 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3523 ac_status=$?
3524 grep -v '^ *+' conftest.er1 >conftest.err
3525 rm -f conftest.er1
3526 cat conftest.err >&5
3527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3528 (exit $ac_status); } >/dev/null && {
3529 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3530 test ! -s conftest.err
3531 }; then
3532 # Broken: success on invalid input.
3533 continue
3534 else
3535 echo "$as_me: failed program was:" >&5
3536 sed 's/^/| /' conftest.$ac_ext >&5
3538 # Passes both tests.
3539 ac_preproc_ok=:
3540 break
3543 rm -f conftest.err conftest.$ac_ext
3545 done
3546 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3547 rm -f conftest.err conftest.$ac_ext
3548 if $ac_preproc_ok; then
3549 break
3552 done
3553 ac_cv_prog_CPP=$CPP
3556 CPP=$ac_cv_prog_CPP
3557 else
3558 ac_cv_prog_CPP=$CPP
3560 { echo "$as_me:$LINENO: result: $CPP" >&5
3561 echo "${ECHO_T}$CPP" >&6; }
3562 ac_preproc_ok=false
3563 for ac_c_preproc_warn_flag in '' yes
3565 # Use a header file that comes with gcc, so configuring glibc
3566 # with a fresh cross-compiler works.
3567 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3568 # <limits.h> exists even on freestanding compilers.
3569 # On the NeXT, cc -E runs the code through the compiler's parser,
3570 # not just through cpp. "Syntax error" is here to catch this case.
3571 cat >conftest.$ac_ext <<_ACEOF
3572 /* confdefs.h. */
3573 _ACEOF
3574 cat confdefs.h >>conftest.$ac_ext
3575 cat >>conftest.$ac_ext <<_ACEOF
3576 /* end confdefs.h. */
3577 #ifdef __STDC__
3578 # include <limits.h>
3579 #else
3580 # include <assert.h>
3581 #endif
3582 Syntax error
3583 _ACEOF
3584 if { (ac_try="$ac_cpp conftest.$ac_ext"
3585 case "(($ac_try" in
3586 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3587 *) ac_try_echo=$ac_try;;
3588 esac
3589 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3590 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3591 ac_status=$?
3592 grep -v '^ *+' conftest.er1 >conftest.err
3593 rm -f conftest.er1
3594 cat conftest.err >&5
3595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3596 (exit $ac_status); } >/dev/null && {
3597 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3598 test ! -s conftest.err
3599 }; then
3601 else
3602 echo "$as_me: failed program was:" >&5
3603 sed 's/^/| /' conftest.$ac_ext >&5
3605 # Broken: fails on valid input.
3606 continue
3609 rm -f conftest.err conftest.$ac_ext
3611 # OK, works on sane cases. Now check whether nonexistent headers
3612 # can be detected and how.
3613 cat >conftest.$ac_ext <<_ACEOF
3614 /* confdefs.h. */
3615 _ACEOF
3616 cat confdefs.h >>conftest.$ac_ext
3617 cat >>conftest.$ac_ext <<_ACEOF
3618 /* end confdefs.h. */
3619 #include <ac_nonexistent.h>
3620 _ACEOF
3621 if { (ac_try="$ac_cpp conftest.$ac_ext"
3622 case "(($ac_try" in
3623 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3624 *) ac_try_echo=$ac_try;;
3625 esac
3626 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3627 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3628 ac_status=$?
3629 grep -v '^ *+' conftest.er1 >conftest.err
3630 rm -f conftest.er1
3631 cat conftest.err >&5
3632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3633 (exit $ac_status); } >/dev/null && {
3634 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3635 test ! -s conftest.err
3636 }; then
3637 # Broken: success on invalid input.
3638 continue
3639 else
3640 echo "$as_me: failed program was:" >&5
3641 sed 's/^/| /' conftest.$ac_ext >&5
3643 # Passes both tests.
3644 ac_preproc_ok=:
3645 break
3648 rm -f conftest.err conftest.$ac_ext
3650 done
3651 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3652 rm -f conftest.err conftest.$ac_ext
3653 if $ac_preproc_ok; then
3655 else
3656 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3657 See \`config.log' for more details." >&5
3658 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3659 See \`config.log' for more details." >&2;}
3660 { (exit 1); exit 1; }; }
3663 ac_ext=c
3664 ac_cpp='$CPP $CPPFLAGS'
3665 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3666 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3667 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3670 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3671 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3672 if test "${ac_cv_path_GREP+set}" = set; then
3673 echo $ECHO_N "(cached) $ECHO_C" >&6
3674 else
3675 # Extract the first word of "grep ggrep" to use in msg output
3676 if test -z "$GREP"; then
3677 set dummy grep ggrep; ac_prog_name=$2
3678 if test "${ac_cv_path_GREP+set}" = set; then
3679 echo $ECHO_N "(cached) $ECHO_C" >&6
3680 else
3681 ac_path_GREP_found=false
3682 # Loop through the user's path and test for each of PROGNAME-LIST
3683 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3684 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3686 IFS=$as_save_IFS
3687 test -z "$as_dir" && as_dir=.
3688 for ac_prog in grep ggrep; do
3689 for ac_exec_ext in '' $ac_executable_extensions; do
3690 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3691 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3692 # Check for GNU ac_path_GREP and select it if it is found.
3693 # Check for GNU $ac_path_GREP
3694 case `"$ac_path_GREP" --version 2>&1` in
3695 *GNU*)
3696 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3698 ac_count=0
3699 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3700 while :
3702 cat "conftest.in" "conftest.in" >"conftest.tmp"
3703 mv "conftest.tmp" "conftest.in"
3704 cp "conftest.in" "conftest.nl"
3705 echo 'GREP' >> "conftest.nl"
3706 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3707 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3708 ac_count=`expr $ac_count + 1`
3709 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3710 # Best one so far, save it but keep looking for a better one
3711 ac_cv_path_GREP="$ac_path_GREP"
3712 ac_path_GREP_max=$ac_count
3714 # 10*(2^10) chars as input seems more than enough
3715 test $ac_count -gt 10 && break
3716 done
3717 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3718 esac
3721 $ac_path_GREP_found && break 3
3722 done
3723 done
3725 done
3726 IFS=$as_save_IFS
3731 GREP="$ac_cv_path_GREP"
3732 if test -z "$GREP"; then
3733 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3734 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3735 { (exit 1); exit 1; }; }
3738 else
3739 ac_cv_path_GREP=$GREP
3744 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3745 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3746 GREP="$ac_cv_path_GREP"
3749 { echo "$as_me:$LINENO: checking for egrep" >&5
3750 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3751 if test "${ac_cv_path_EGREP+set}" = set; then
3752 echo $ECHO_N "(cached) $ECHO_C" >&6
3753 else
3754 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3755 then ac_cv_path_EGREP="$GREP -E"
3756 else
3757 # Extract the first word of "egrep" to use in msg output
3758 if test -z "$EGREP"; then
3759 set dummy egrep; ac_prog_name=$2
3760 if test "${ac_cv_path_EGREP+set}" = set; then
3761 echo $ECHO_N "(cached) $ECHO_C" >&6
3762 else
3763 ac_path_EGREP_found=false
3764 # Loop through the user's path and test for each of PROGNAME-LIST
3765 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3766 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3768 IFS=$as_save_IFS
3769 test -z "$as_dir" && as_dir=.
3770 for ac_prog in egrep; do
3771 for ac_exec_ext in '' $ac_executable_extensions; do
3772 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3773 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3774 # Check for GNU ac_path_EGREP and select it if it is found.
3775 # Check for GNU $ac_path_EGREP
3776 case `"$ac_path_EGREP" --version 2>&1` in
3777 *GNU*)
3778 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3780 ac_count=0
3781 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3782 while :
3784 cat "conftest.in" "conftest.in" >"conftest.tmp"
3785 mv "conftest.tmp" "conftest.in"
3786 cp "conftest.in" "conftest.nl"
3787 echo 'EGREP' >> "conftest.nl"
3788 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3789 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3790 ac_count=`expr $ac_count + 1`
3791 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3792 # Best one so far, save it but keep looking for a better one
3793 ac_cv_path_EGREP="$ac_path_EGREP"
3794 ac_path_EGREP_max=$ac_count
3796 # 10*(2^10) chars as input seems more than enough
3797 test $ac_count -gt 10 && break
3798 done
3799 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3800 esac
3803 $ac_path_EGREP_found && break 3
3804 done
3805 done
3807 done
3808 IFS=$as_save_IFS
3813 EGREP="$ac_cv_path_EGREP"
3814 if test -z "$EGREP"; then
3815 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3816 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3817 { (exit 1); exit 1; }; }
3820 else
3821 ac_cv_path_EGREP=$EGREP
3827 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3828 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3829 EGREP="$ac_cv_path_EGREP"
3833 { echo "$as_me:$LINENO: checking for AIX" >&5
3834 echo $ECHO_N "checking for AIX... $ECHO_C" >&6; }
3835 cat >conftest.$ac_ext <<_ACEOF
3836 /* confdefs.h. */
3837 _ACEOF
3838 cat confdefs.h >>conftest.$ac_ext
3839 cat >>conftest.$ac_ext <<_ACEOF
3840 /* end confdefs.h. */
3841 #ifdef _AIX
3843 #endif
3845 _ACEOF
3846 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3847 $EGREP "yes" >/dev/null 2>&1; then
3848 { echo "$as_me:$LINENO: result: yes" >&5
3849 echo "${ECHO_T}yes" >&6; }
3850 cat >>confdefs.h <<\_ACEOF
3851 #define _ALL_SOURCE 1
3852 _ACEOF
3854 else
3855 { echo "$as_me:$LINENO: result: no" >&5
3856 echo "${ECHO_T}no" >&6; }
3858 rm -f conftest*
3862 # Check for unsupported systems
3863 case $ac_sys_system/$ac_sys_release in
3864 atheos*|Linux*/1*)
3865 echo This system \($ac_sys_system/$ac_sys_release\) is no longer supported.
3866 echo See README for details.
3867 exit 1;;
3868 esac
3871 { echo "$as_me:$LINENO: checking for --with-suffix" >&5
3872 echo $ECHO_N "checking for --with-suffix... $ECHO_C" >&6; }
3874 # Check whether --with-suffix was given.
3875 if test "${with_suffix+set}" = set; then
3876 withval=$with_suffix;
3877 case $withval in
3878 no) EXEEXT=;;
3879 yes) EXEEXT=.exe;;
3880 *) EXEEXT=$withval;;
3881 esac
3884 { echo "$as_me:$LINENO: result: $EXEEXT" >&5
3885 echo "${ECHO_T}$EXEEXT" >&6; }
3887 # Test whether we're running on a non-case-sensitive system, in which
3888 # case we give a warning if no ext is given
3890 { echo "$as_me:$LINENO: checking for case-insensitive build directory" >&5
3891 echo $ECHO_N "checking for case-insensitive build directory... $ECHO_C" >&6; }
3892 if test ! -d CaseSensitiveTestDir; then
3893 mkdir CaseSensitiveTestDir
3896 if test -d casesensitivetestdir
3897 then
3898 { echo "$as_me:$LINENO: result: yes" >&5
3899 echo "${ECHO_T}yes" >&6; }
3900 BUILDEXEEXT=.exe
3901 else
3902 { echo "$as_me:$LINENO: result: no" >&5
3903 echo "${ECHO_T}no" >&6; }
3904 BUILDEXEEXT=$EXEEXT
3906 rmdir CaseSensitiveTestDir
3908 case $MACHDEP in
3909 bsdos*)
3910 case $CC in
3911 gcc) CC="$CC -D_HAVE_BSDI";;
3912 esac;;
3913 esac
3915 case $ac_sys_system in
3916 hp*|HP*)
3917 case $CC in
3918 cc|*/cc) CC="$CC -Ae";;
3919 esac;;
3920 Monterey*)
3921 case $CC in
3922 cc) CC="$CC -Wl,-Bexport";;
3923 esac;;
3924 SunOS*)
3925 # Some functions have a prototype only with that define, e.g. confstr
3927 cat >>confdefs.h <<\_ACEOF
3928 #define __EXTENSIONS__ 1
3929 _ACEOF
3932 esac
3936 { echo "$as_me:$LINENO: checking LIBRARY" >&5
3937 echo $ECHO_N "checking LIBRARY... $ECHO_C" >&6; }
3938 if test -z "$LIBRARY"
3939 then
3940 LIBRARY='libpython$(VERSION).a'
3942 { echo "$as_me:$LINENO: result: $LIBRARY" >&5
3943 echo "${ECHO_T}$LIBRARY" >&6; }
3945 # LDLIBRARY is the name of the library to link against (as opposed to the
3946 # name of the library into which to insert object files). BLDLIBRARY is also
3947 # the library to link against, usually. On Mac OS X frameworks, BLDLIBRARY
3948 # is blank as the main program is not linked directly against LDLIBRARY.
3949 # LDLIBRARYDIR is the path to LDLIBRARY, which is made in a subdirectory. On
3950 # systems without shared libraries, LDLIBRARY is the same as LIBRARY
3951 # (defined in the Makefiles). On Cygwin LDLIBRARY is the import library,
3952 # DLLLIBRARY is the shared (i.e., DLL) library.
3954 # RUNSHARED is used to run shared python without installed libraries
3956 # INSTSONAME is the name of the shared library that will be use to install
3957 # on the system - some systems like version suffix, others don't
3964 LDLIBRARY="$LIBRARY"
3965 BLDLIBRARY='$(LDLIBRARY)'
3966 INSTSONAME='$(LDLIBRARY)'
3967 DLLLIBRARY=''
3968 LDLIBRARYDIR=''
3969 RUNSHARED=''
3971 # LINKCC is the command that links the python executable -- default is $(CC).
3972 # If CXX is set, and if it is needed to link a main function that was
3973 # compiled with CXX, LINKCC is CXX instead. Always using CXX is undesirable:
3974 # python might then depend on the C++ runtime
3975 # This is altered for AIX in order to build the export list before
3976 # linking.
3978 { echo "$as_me:$LINENO: checking LINKCC" >&5
3979 echo $ECHO_N "checking LINKCC... $ECHO_C" >&6; }
3980 if test -z "$LINKCC"
3981 then
3982 LINKCC='$(PURIFY) $(MAINCC)'
3983 case $ac_sys_system in
3984 AIX*)
3985 exp_extra="\"\""
3986 if test $ac_sys_release -ge 5 -o \
3987 $ac_sys_release -eq 4 -a `uname -r` -ge 2 ; then
3988 exp_extra="."
3990 LINKCC="\$(srcdir)/Modules/makexp_aix Modules/python.exp $exp_extra \$(LIBRARY); $LINKCC";;
3991 Monterey64*)
3992 LINKCC="$LINKCC -L/usr/lib/ia64l64";;
3993 QNX*)
3994 # qcc must be used because the other compilers do not
3995 # support -N.
3996 LINKCC=qcc;;
3997 esac
3999 { echo "$as_me:$LINENO: result: $LINKCC" >&5
4000 echo "${ECHO_T}$LINKCC" >&6; }
4002 # GNULD is set to "yes" if the GNU linker is used. If this goes wrong
4003 # make sure we default having it set to "no": this is used by
4004 # distutils.unixccompiler to know if it should add --enable-new-dtags
4005 # to linker command lines, and failing to detect GNU ld simply results
4006 # in the same bahaviour as before.
4008 { echo "$as_me:$LINENO: checking for GNU ld" >&5
4009 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
4010 ac_prog=ld
4011 if test "$GCC" = yes; then
4012 ac_prog=`$CC -print-prog-name=ld`
4014 case `"$ac_prog" -V 2>&1 < /dev/null` in
4015 *GNU*)
4016 GNULD=yes;;
4018 GNULD=no;;
4019 esac
4020 { echo "$as_me:$LINENO: result: $GNULD" >&5
4021 echo "${ECHO_T}$GNULD" >&6; }
4023 { echo "$as_me:$LINENO: checking for --enable-shared" >&5
4024 echo $ECHO_N "checking for --enable-shared... $ECHO_C" >&6; }
4025 # Check whether --enable-shared was given.
4026 if test "${enable_shared+set}" = set; then
4027 enableval=$enable_shared;
4031 if test -z "$enable_shared"
4032 then
4033 case $ac_sys_system in
4034 CYGWIN* | atheos*)
4035 enable_shared="yes";;
4037 enable_shared="no";;
4038 esac
4040 { echo "$as_me:$LINENO: result: $enable_shared" >&5
4041 echo "${ECHO_T}$enable_shared" >&6; }
4043 { echo "$as_me:$LINENO: checking for --enable-profiling" >&5
4044 echo $ECHO_N "checking for --enable-profiling... $ECHO_C" >&6; }
4045 # Check whether --enable-profiling was given.
4046 if test "${enable_profiling+set}" = set; then
4047 enableval=$enable_profiling; ac_save_cc="$CC"
4048 CC="$CC -pg"
4049 if test "$cross_compiling" = yes; then
4050 ac_enable_profiling="no"
4051 else
4052 cat >conftest.$ac_ext <<_ACEOF
4053 /* confdefs.h. */
4054 _ACEOF
4055 cat confdefs.h >>conftest.$ac_ext
4056 cat >>conftest.$ac_ext <<_ACEOF
4057 /* end confdefs.h. */
4058 int main() { return 0; }
4059 _ACEOF
4060 rm -f conftest$ac_exeext
4061 if { (ac_try="$ac_link"
4062 case "(($ac_try" in
4063 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4064 *) ac_try_echo=$ac_try;;
4065 esac
4066 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4067 (eval "$ac_link") 2>&5
4068 ac_status=$?
4069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4070 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4071 { (case "(($ac_try" in
4072 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4073 *) ac_try_echo=$ac_try;;
4074 esac
4075 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4076 (eval "$ac_try") 2>&5
4077 ac_status=$?
4078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4079 (exit $ac_status); }; }; then
4080 ac_enable_profiling="yes"
4081 else
4082 echo "$as_me: program exited with status $ac_status" >&5
4083 echo "$as_me: failed program was:" >&5
4084 sed 's/^/| /' conftest.$ac_ext >&5
4086 ( exit $ac_status )
4087 ac_enable_profiling="no"
4089 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4093 CC="$ac_save_cc"
4096 { echo "$as_me:$LINENO: result: $ac_enable_profiling" >&5
4097 echo "${ECHO_T}$ac_enable_profiling" >&6; }
4099 case "$ac_enable_profiling" in
4100 "yes")
4101 BASECFLAGS="-pg $BASECFLAGS"
4102 LDFLAGS="-pg $LDFLAGS"
4104 esac
4106 { echo "$as_me:$LINENO: checking LDLIBRARY" >&5
4107 echo $ECHO_N "checking LDLIBRARY... $ECHO_C" >&6; }
4109 # MacOSX framework builds need more magic. LDLIBRARY is the dynamic
4110 # library that we build, but we do not want to link against it (we
4111 # will find it with a -framework option). For this reason there is an
4112 # extra variable BLDLIBRARY against which Python and the extension
4113 # modules are linked, BLDLIBRARY. This is normally the same as
4114 # LDLIBRARY, but empty for MacOSX framework builds.
4115 if test "$enable_framework"
4116 then
4117 LDLIBRARY='$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
4118 RUNSHARED=DYLD_FRAMEWORK_PATH="`pwd`:$DYLD_FRAMEWORK_PATH"
4119 BLDLIBRARY=''
4120 else
4121 BLDLIBRARY='$(LDLIBRARY)'
4124 # Other platforms follow
4125 if test $enable_shared = "yes"; then
4127 cat >>confdefs.h <<\_ACEOF
4128 #define Py_ENABLE_SHARED 1
4129 _ACEOF
4131 case $ac_sys_system in
4132 BeOS*)
4133 LDLIBRARY='libpython$(VERSION).so'
4135 CYGWIN*)
4136 LDLIBRARY='libpython$(VERSION).dll.a'
4137 DLLLIBRARY='libpython$(VERSION).dll'
4139 SunOS*)
4140 LDLIBRARY='libpython$(VERSION).so'
4141 BLDLIBRARY='-Wl,-R,$(LIBDIR) -L. -lpython$(VERSION)'
4142 RUNSHARED=LD_LIBRARY_PATH=`pwd`:${LD_LIBRARY_PATH}
4143 INSTSONAME="$LDLIBRARY".$SOVERSION
4145 Linux*|GNU*|NetBSD*|FreeBSD*|DragonFly*)
4146 LDLIBRARY='libpython$(VERSION).so'
4147 BLDLIBRARY='-L. -lpython$(VERSION)'
4148 RUNSHARED=LD_LIBRARY_PATH=`pwd`:${LD_LIBRARY_PATH}
4149 case $ac_sys_system in
4150 FreeBSD*)
4151 SOVERSION=`echo $SOVERSION|cut -d "." -f 1`
4153 esac
4154 INSTSONAME="$LDLIBRARY".$SOVERSION
4156 hp*|HP*)
4157 case `uname -m` in
4158 ia64)
4159 LDLIBRARY='libpython$(VERSION).so'
4162 LDLIBRARY='libpython$(VERSION).sl'
4164 esac
4165 BLDLIBRARY='-Wl,+b,$(LIBDIR) -L. -lpython$(VERSION)'
4166 RUNSHARED=SHLIB_PATH=`pwd`:${SHLIB_PATH}
4168 OSF*)
4169 LDLIBRARY='libpython$(VERSION).so'
4170 BLDLIBRARY='-rpath $(LIBDIR) -L. -lpython$(VERSION)'
4171 RUNSHARED=LD_LIBRARY_PATH=`pwd`:${LD_LIBRARY_PATH}
4173 atheos*)
4174 LDLIBRARY='libpython$(VERSION).so'
4175 BLDLIBRARY='-L. -lpython$(VERSION)'
4176 RUNSHARED=DLL_PATH=`pwd`:${DLL_PATH:-/atheos/sys/libs:/atheos/autolnk/lib}
4178 Darwin*)
4179 LDLIBRARY='libpython$(VERSION).dylib'
4180 BLDLIBRARY='-L. -lpython$(VERSION)'
4181 RUNSHARED='DYLD_LIBRARY_PATH=`pwd`:${DYLD_LIBRARY_PATH}'
4184 esac
4185 else # shared is disabled
4186 case $ac_sys_system in
4187 CYGWIN*)
4188 BLDLIBRARY='$(LIBRARY)'
4189 LDLIBRARY='libpython$(VERSION).dll.a'
4191 esac
4194 { echo "$as_me:$LINENO: result: $LDLIBRARY" >&5
4195 echo "${ECHO_T}$LDLIBRARY" >&6; }
4197 if test -n "$ac_tool_prefix"; then
4198 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4199 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4200 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4201 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4202 if test "${ac_cv_prog_RANLIB+set}" = set; then
4203 echo $ECHO_N "(cached) $ECHO_C" >&6
4204 else
4205 if test -n "$RANLIB"; then
4206 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4207 else
4208 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4209 for as_dir in $PATH
4211 IFS=$as_save_IFS
4212 test -z "$as_dir" && as_dir=.
4213 for ac_exec_ext in '' $ac_executable_extensions; do
4214 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4215 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4216 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4217 break 2
4219 done
4220 done
4221 IFS=$as_save_IFS
4225 RANLIB=$ac_cv_prog_RANLIB
4226 if test -n "$RANLIB"; then
4227 { echo "$as_me:$LINENO: result: $RANLIB" >&5
4228 echo "${ECHO_T}$RANLIB" >&6; }
4229 else
4230 { echo "$as_me:$LINENO: result: no" >&5
4231 echo "${ECHO_T}no" >&6; }
4236 if test -z "$ac_cv_prog_RANLIB"; then
4237 ac_ct_RANLIB=$RANLIB
4238 # Extract the first word of "ranlib", so it can be a program name with args.
4239 set dummy ranlib; ac_word=$2
4240 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4241 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4242 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4243 echo $ECHO_N "(cached) $ECHO_C" >&6
4244 else
4245 if test -n "$ac_ct_RANLIB"; then
4246 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4247 else
4248 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4249 for as_dir in $PATH
4251 IFS=$as_save_IFS
4252 test -z "$as_dir" && as_dir=.
4253 for ac_exec_ext in '' $ac_executable_extensions; do
4254 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4255 ac_cv_prog_ac_ct_RANLIB="ranlib"
4256 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4257 break 2
4259 done
4260 done
4261 IFS=$as_save_IFS
4265 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4266 if test -n "$ac_ct_RANLIB"; then
4267 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4268 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
4269 else
4270 { echo "$as_me:$LINENO: result: no" >&5
4271 echo "${ECHO_T}no" >&6; }
4274 if test "x$ac_ct_RANLIB" = x; then
4275 RANLIB=":"
4276 else
4277 case $cross_compiling:$ac_tool_warned in
4278 yes:)
4279 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4280 whose name does not start with the host triplet. If you think this
4281 configuration is useful to you, please write to autoconf@gnu.org." >&5
4282 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4283 whose name does not start with the host triplet. If you think this
4284 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4285 ac_tool_warned=yes ;;
4286 esac
4287 RANLIB=$ac_ct_RANLIB
4289 else
4290 RANLIB="$ac_cv_prog_RANLIB"
4294 for ac_prog in ar aal
4296 # Extract the first word of "$ac_prog", so it can be a program name with args.
4297 set dummy $ac_prog; ac_word=$2
4298 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4299 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4300 if test "${ac_cv_prog_AR+set}" = set; then
4301 echo $ECHO_N "(cached) $ECHO_C" >&6
4302 else
4303 if test -n "$AR"; then
4304 ac_cv_prog_AR="$AR" # Let the user override the test.
4305 else
4306 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4307 for as_dir in $PATH
4309 IFS=$as_save_IFS
4310 test -z "$as_dir" && as_dir=.
4311 for ac_exec_ext in '' $ac_executable_extensions; do
4312 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4313 ac_cv_prog_AR="$ac_prog"
4314 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4315 break 2
4317 done
4318 done
4319 IFS=$as_save_IFS
4323 AR=$ac_cv_prog_AR
4324 if test -n "$AR"; then
4325 { echo "$as_me:$LINENO: result: $AR" >&5
4326 echo "${ECHO_T}$AR" >&6; }
4327 else
4328 { echo "$as_me:$LINENO: result: no" >&5
4329 echo "${ECHO_T}no" >&6; }
4333 test -n "$AR" && break
4334 done
4335 test -n "$AR" || AR="ar"
4338 # tweak ARFLAGS only if the user didn't set it on the command line
4340 if test -z "$ARFLAGS"
4341 then
4342 ARFLAGS="rc"
4346 # Extract the first word of "svnversion", so it can be a program name with args.
4347 set dummy svnversion; ac_word=$2
4348 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4349 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4350 if test "${ac_cv_prog_SVNVERSION+set}" = set; then
4351 echo $ECHO_N "(cached) $ECHO_C" >&6
4352 else
4353 if test -n "$SVNVERSION"; then
4354 ac_cv_prog_SVNVERSION="$SVNVERSION" # Let the user override the test.
4355 else
4356 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4357 for as_dir in $PATH
4359 IFS=$as_save_IFS
4360 test -z "$as_dir" && as_dir=.
4361 for ac_exec_ext in '' $ac_executable_extensions; do
4362 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4363 ac_cv_prog_SVNVERSION="found"
4364 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4365 break 2
4367 done
4368 done
4369 IFS=$as_save_IFS
4371 test -z "$ac_cv_prog_SVNVERSION" && ac_cv_prog_SVNVERSION="not-found"
4374 SVNVERSION=$ac_cv_prog_SVNVERSION
4375 if test -n "$SVNVERSION"; then
4376 { echo "$as_me:$LINENO: result: $SVNVERSION" >&5
4377 echo "${ECHO_T}$SVNVERSION" >&6; }
4378 else
4379 { echo "$as_me:$LINENO: result: no" >&5
4380 echo "${ECHO_T}no" >&6; }
4384 if test $SVNVERSION = found
4385 then
4386 SVNVERSION="svnversion \$(srcdir)"
4387 else
4388 SVNVERSION="echo Unversioned directory"
4391 case $MACHDEP in
4392 bsdos*|hp*|HP*)
4393 # install -d does not work on BSDI or HP-UX
4394 if test -z "$INSTALL"
4395 then
4396 INSTALL="${srcdir}/install-sh -c"
4398 esac
4399 ac_aux_dir=
4400 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
4401 if test -f "$ac_dir/install-sh"; then
4402 ac_aux_dir=$ac_dir
4403 ac_install_sh="$ac_aux_dir/install-sh -c"
4404 break
4405 elif test -f "$ac_dir/install.sh"; then
4406 ac_aux_dir=$ac_dir
4407 ac_install_sh="$ac_aux_dir/install.sh -c"
4408 break
4409 elif test -f "$ac_dir/shtool"; then
4410 ac_aux_dir=$ac_dir
4411 ac_install_sh="$ac_aux_dir/shtool install -c"
4412 break
4414 done
4415 if test -z "$ac_aux_dir"; then
4416 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
4417 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
4418 { (exit 1); exit 1; }; }
4421 # These three variables are undocumented and unsupported,
4422 # and are intended to be withdrawn in a future Autoconf release.
4423 # They can cause serious problems if a builder's source tree is in a directory
4424 # whose full name contains unusual characters.
4425 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
4426 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
4427 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
4430 # Find a good install program. We prefer a C program (faster),
4431 # so one script is as good as another. But avoid the broken or
4432 # incompatible versions:
4433 # SysV /etc/install, /usr/sbin/install
4434 # SunOS /usr/etc/install
4435 # IRIX /sbin/install
4436 # AIX /bin/install
4437 # AmigaOS /C/install, which installs bootblocks on floppy discs
4438 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4439 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4440 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4441 # OS/2's system install, which has a completely different semantic
4442 # ./install, which can be erroneously created by make from ./install.sh.
4443 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4444 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
4445 if test -z "$INSTALL"; then
4446 if test "${ac_cv_path_install+set}" = set; then
4447 echo $ECHO_N "(cached) $ECHO_C" >&6
4448 else
4449 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4450 for as_dir in $PATH
4452 IFS=$as_save_IFS
4453 test -z "$as_dir" && as_dir=.
4454 # Account for people who put trailing slashes in PATH elements.
4455 case $as_dir/ in
4456 ./ | .// | /cC/* | \
4457 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4458 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
4459 /usr/ucb/* ) ;;
4461 # OSF1 and SCO ODT 3.0 have their own names for install.
4462 # Don't use installbsd from OSF since it installs stuff as root
4463 # by default.
4464 for ac_prog in ginstall scoinst install; do
4465 for ac_exec_ext in '' $ac_executable_extensions; do
4466 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
4467 if test $ac_prog = install &&
4468 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4469 # AIX install. It has an incompatible calling convention.
4471 elif test $ac_prog = install &&
4472 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4473 # program-specific install script used by HP pwplus--don't use.
4475 else
4476 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4477 break 3
4480 done
4481 done
4483 esac
4484 done
4485 IFS=$as_save_IFS
4489 if test "${ac_cv_path_install+set}" = set; then
4490 INSTALL=$ac_cv_path_install
4491 else
4492 # As a last resort, use the slow shell script. Don't cache a
4493 # value for INSTALL within a source directory, because that will
4494 # break other packages using the cache if that directory is
4495 # removed, or if the value is a relative name.
4496 INSTALL=$ac_install_sh
4499 { echo "$as_me:$LINENO: result: $INSTALL" >&5
4500 echo "${ECHO_T}$INSTALL" >&6; }
4502 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4503 # It thinks the first close brace ends the variable substitution.
4504 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4506 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4508 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4511 # Not every filesystem supports hard links
4513 if test -z "$LN" ; then
4514 case $ac_sys_system in
4515 BeOS*) LN="ln -s";;
4516 CYGWIN*) LN="ln -s";;
4517 atheos*) LN="ln -s";;
4518 *) LN=ln;;
4519 esac
4522 # Check for --with-pydebug
4523 { echo "$as_me:$LINENO: checking for --with-pydebug" >&5
4524 echo $ECHO_N "checking for --with-pydebug... $ECHO_C" >&6; }
4526 # Check whether --with-pydebug was given.
4527 if test "${with_pydebug+set}" = set; then
4528 withval=$with_pydebug;
4529 if test "$withval" != no
4530 then
4532 cat >>confdefs.h <<\_ACEOF
4533 #define Py_DEBUG 1
4534 _ACEOF
4536 { echo "$as_me:$LINENO: result: yes" >&5
4537 echo "${ECHO_T}yes" >&6; };
4538 Py_DEBUG='true'
4539 else { echo "$as_me:$LINENO: result: no" >&5
4540 echo "${ECHO_T}no" >&6; }; Py_DEBUG='false'
4542 else
4543 { echo "$as_me:$LINENO: result: no" >&5
4544 echo "${ECHO_T}no" >&6; }
4548 # XXX Shouldn't the code above that fiddles with BASECFLAGS and OPT be
4549 # merged with this chunk of code?
4551 # Optimizer/debugger flags
4552 # ------------------------
4553 # (The following bit of code is complicated enough - please keep things
4554 # indented properly. Just pretend you're editing Python code. ;-)
4556 # There are two parallel sets of case statements below, one that checks to
4557 # see if OPT was set and one that does BASECFLAGS setting based upon
4558 # compiler and platform. BASECFLAGS tweaks need to be made even if the
4559 # user set OPT.
4561 # tweak OPT based on compiler and platform, only if the user didn't set
4562 # it on the command line
4564 if test -z "$OPT"
4565 then
4566 case $GCC in
4567 yes)
4568 if test "$CC" != 'g++' ; then
4569 STRICT_PROTO="-Wstrict-prototypes"
4571 # For gcc 4.x we need to use -fwrapv so lets check if its supported
4572 if "$CC" -v --help 2>/dev/null |grep -- -fwrapv > /dev/null; then
4573 WRAP="-fwrapv"
4575 case $ac_cv_prog_cc_g in
4576 yes)
4577 if test "$Py_DEBUG" = 'true' ; then
4578 # Optimization messes up debuggers, so turn it off for
4579 # debug builds.
4580 OPT="-g -Wall $STRICT_PROTO"
4581 else
4582 OPT="-g $WRAP -O3 -Wall $STRICT_PROTO"
4586 OPT="-O3 -Wall $STRICT_PROTO"
4588 esac
4589 case $ac_sys_system in
4590 SCO_SV*) OPT="$OPT -m486 -DSCO5"
4592 esac
4596 OPT="-O"
4598 esac
4600 # The current (beta) Monterey compiler dies with optimizations
4601 # XXX what is Monterey? Does it still die w/ -O? Can we get rid of this?
4602 case $ac_sys_system in
4603 Monterey*)
4604 OPT=""
4606 esac
4612 # The -arch flags for universal builds on OSX
4613 UNIVERSAL_ARCH_FLAGS=
4616 # tweak BASECFLAGS based on compiler and platform
4617 case $GCC in
4618 yes)
4619 # Python violates C99 rules, by casting between incompatible
4620 # pointer types. GCC may generate bad code as a result of that,
4621 # so use -fno-strict-aliasing if supported.
4622 { echo "$as_me:$LINENO: checking whether $CC accepts -fno-strict-aliasing" >&5
4623 echo $ECHO_N "checking whether $CC accepts -fno-strict-aliasing... $ECHO_C" >&6; }
4624 ac_save_cc="$CC"
4625 CC="$CC -fno-strict-aliasing"
4626 if test "${ac_cv_no_strict_aliasing_ok+set}" = set; then
4627 echo $ECHO_N "(cached) $ECHO_C" >&6
4628 else
4629 if test "$cross_compiling" = yes; then
4630 ac_cv_no_strict_aliasing_ok=no
4631 else
4632 cat >conftest.$ac_ext <<_ACEOF
4633 /* confdefs.h. */
4634 _ACEOF
4635 cat confdefs.h >>conftest.$ac_ext
4636 cat >>conftest.$ac_ext <<_ACEOF
4637 /* end confdefs.h. */
4638 int main() { return 0; }
4639 _ACEOF
4640 rm -f conftest$ac_exeext
4641 if { (ac_try="$ac_link"
4642 case "(($ac_try" in
4643 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4644 *) ac_try_echo=$ac_try;;
4645 esac
4646 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4647 (eval "$ac_link") 2>&5
4648 ac_status=$?
4649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4650 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4651 { (case "(($ac_try" in
4652 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4653 *) ac_try_echo=$ac_try;;
4654 esac
4655 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4656 (eval "$ac_try") 2>&5
4657 ac_status=$?
4658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4659 (exit $ac_status); }; }; then
4660 ac_cv_no_strict_aliasing_ok=yes
4661 else
4662 echo "$as_me: program exited with status $ac_status" >&5
4663 echo "$as_me: failed program was:" >&5
4664 sed 's/^/| /' conftest.$ac_ext >&5
4666 ( exit $ac_status )
4667 ac_cv_no_strict_aliasing_ok=no
4669 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4675 CC="$ac_save_cc"
4676 { echo "$as_me:$LINENO: result: $ac_cv_no_strict_aliasing_ok" >&5
4677 echo "${ECHO_T}$ac_cv_no_strict_aliasing_ok" >&6; }
4678 if test $ac_cv_no_strict_aliasing_ok = yes
4679 then
4680 BASECFLAGS="$BASECFLAGS -fno-strict-aliasing"
4683 # if using gcc on alpha, use -mieee to get (near) full IEEE 754
4684 # support. Without this, treatment of subnormals doesn't follow
4685 # the standard.
4686 case $ac_sys_machine in
4687 alpha*)
4688 BASECFLAGS="$BASECFLAGS -mieee"
4690 esac
4692 case $ac_sys_system in
4693 SCO_SV*)
4694 BASECFLAGS="$BASECFLAGS -m486 -DSCO5"
4696 # is there any other compiler on Darwin besides gcc?
4697 Darwin*)
4698 # -Wno-long-double, -no-cpp-precomp, and -mno-fused-madd
4699 # used to be here, but non-Apple gcc doesn't accept them.
4702 if test "${enable_universalsdk}"; then
4703 UNIVERSAL_ARCH_FLAGS=""
4704 if test "$UNIVERSAL_ARCHS" = "32-bit" ; then
4705 UNIVERSAL_ARCH_FLAGS="-arch ppc -arch i386"
4706 ARCH_RUN_32BIT=""
4708 elif test "$UNIVERSAL_ARCHS" = "64-bit" ; then
4709 UNIVERSAL_ARCH_FLAGS="-arch ppc64 -arch x86_64"
4711 elif test "$UNIVERSAL_ARCHS" = "all" ; then
4712 UNIVERSAL_ARCH_FLAGS="-arch i386 -arch ppc -arch ppc64 -arch x86_64"
4713 ARCH_RUN_32BIT="arch -i386 -ppc"
4715 else
4716 { { echo "$as_me:$LINENO: error: proper usage is --with-universalarch=32-bit|64-bit|all" >&5
4717 echo "$as_me: error: proper usage is --with-universalarch=32-bit|64-bit|all" >&2;}
4718 { (exit 1); exit 1; }; }
4723 BASECFLAGS="${UNIVERSAL_ARCH_FLAGS} -isysroot ${UNIVERSALSDK} ${BASECFLAGS}"
4724 tgt=`sw_vers -productVersion | sed 's/\(10\.[0-9]*\).*/\1/'`
4725 if test "${UNIVERSALSDK}" != "/" -a "${tgt}" '>' '10.4' ; then
4726 CFLAGS="${UNIVERSAL_ARCH_FLAGS} -isysroot ${UNIVERSALSDK} ${CFLAGS}"
4730 # Calculate the right deployment target for this build.
4732 cur_target=`sw_vers -productVersion | sed 's/\(10\.[0-9]*\).*/\1/'`
4733 if test ${cur_target} '>' 10.2; then
4734 cur_target=10.3
4736 if test "${UNIVERSAL_ARCHS}" = "all"; then
4737 # Ensure that the default platform for a 4-way
4738 # universal build is OSX 10.5, that's the first
4739 # OS release where 4-way builds make sense.
4740 cur_target='10.5'
4742 CONFIGURE_MACOSX_DEPLOYMENT_TARGET=${MACOSX_DEPLOYMENT_TARGET-${cur_target}}
4744 # Make sure that MACOSX_DEPLOYMENT_TARGET is set in the
4745 # environment with a value that is the same as what we'll use
4746 # in the Makefile to ensure that we'll get the same compiler
4747 # environment during configure and build time.
4748 MACOSX_DEPLOYMENT_TARGET="$CONFIGURE_MACOSX_DEPLOYMENT_TARGET"
4749 export MACOSX_DEPLOYMENT_TARGET
4750 EXPORT_MACOSX_DEPLOYMENT_TARGET=''
4753 OSF*)
4754 BASECFLAGS="$BASECFLAGS -mieee"
4756 esac
4760 case $ac_sys_system in
4761 OpenUNIX*|UnixWare*)
4762 BASECFLAGS="$BASECFLAGS -K pentium,host,inline,loop_unroll,alloca "
4764 OSF*)
4765 BASECFLAGS="$BASECFLAGS -ieee -std"
4767 SCO_SV*)
4768 BASECFLAGS="$BASECFLAGS -belf -Ki486 -DSCO5"
4770 esac
4772 esac
4774 if test "$Py_DEBUG" = 'true'; then
4776 else
4777 OPT="-DNDEBUG $OPT"
4780 if test "$ac_arch_flags"
4781 then
4782 BASECFLAGS="$BASECFLAGS $ac_arch_flags"
4785 # disable check for icc since it seems to pass, but generates a warning
4786 if test "$CC" = icc
4787 then
4788 ac_cv_opt_olimit_ok=no
4791 { echo "$as_me:$LINENO: checking whether $CC accepts -OPT:Olimit=0" >&5
4792 echo $ECHO_N "checking whether $CC accepts -OPT:Olimit=0... $ECHO_C" >&6; }
4793 if test "${ac_cv_opt_olimit_ok+set}" = set; then
4794 echo $ECHO_N "(cached) $ECHO_C" >&6
4795 else
4796 ac_save_cc="$CC"
4797 CC="$CC -OPT:Olimit=0"
4798 if test "$cross_compiling" = yes; then
4799 ac_cv_opt_olimit_ok=no
4800 else
4801 cat >conftest.$ac_ext <<_ACEOF
4802 /* confdefs.h. */
4803 _ACEOF
4804 cat confdefs.h >>conftest.$ac_ext
4805 cat >>conftest.$ac_ext <<_ACEOF
4806 /* end confdefs.h. */
4807 int main() { return 0; }
4808 _ACEOF
4809 rm -f conftest$ac_exeext
4810 if { (ac_try="$ac_link"
4811 case "(($ac_try" in
4812 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4813 *) ac_try_echo=$ac_try;;
4814 esac
4815 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4816 (eval "$ac_link") 2>&5
4817 ac_status=$?
4818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4819 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4820 { (case "(($ac_try" in
4821 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4822 *) ac_try_echo=$ac_try;;
4823 esac
4824 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4825 (eval "$ac_try") 2>&5
4826 ac_status=$?
4827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4828 (exit $ac_status); }; }; then
4829 ac_cv_opt_olimit_ok=yes
4830 else
4831 echo "$as_me: program exited with status $ac_status" >&5
4832 echo "$as_me: failed program was:" >&5
4833 sed 's/^/| /' conftest.$ac_ext >&5
4835 ( exit $ac_status )
4836 ac_cv_opt_olimit_ok=no
4838 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4842 CC="$ac_save_cc"
4845 { echo "$as_me:$LINENO: result: $ac_cv_opt_olimit_ok" >&5
4846 echo "${ECHO_T}$ac_cv_opt_olimit_ok" >&6; }
4847 if test $ac_cv_opt_olimit_ok = yes; then
4848 case $ac_sys_system in
4849 # XXX is this branch needed? On MacOSX 10.2.2 the result of the
4850 # olimit_ok test is "no". Is it "yes" in some other Darwin-esque
4851 # environment?
4852 Darwin*)
4855 BASECFLAGS="$BASECFLAGS -OPT:Olimit=0"
4857 esac
4858 else
4859 { echo "$as_me:$LINENO: checking whether $CC accepts -Olimit 1500" >&5
4860 echo $ECHO_N "checking whether $CC accepts -Olimit 1500... $ECHO_C" >&6; }
4861 if test "${ac_cv_olimit_ok+set}" = set; then
4862 echo $ECHO_N "(cached) $ECHO_C" >&6
4863 else
4864 ac_save_cc="$CC"
4865 CC="$CC -Olimit 1500"
4866 if test "$cross_compiling" = yes; then
4867 ac_cv_olimit_ok=no
4868 else
4869 cat >conftest.$ac_ext <<_ACEOF
4870 /* confdefs.h. */
4871 _ACEOF
4872 cat confdefs.h >>conftest.$ac_ext
4873 cat >>conftest.$ac_ext <<_ACEOF
4874 /* end confdefs.h. */
4875 int main() { return 0; }
4876 _ACEOF
4877 rm -f conftest$ac_exeext
4878 if { (ac_try="$ac_link"
4879 case "(($ac_try" in
4880 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4881 *) ac_try_echo=$ac_try;;
4882 esac
4883 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4884 (eval "$ac_link") 2>&5
4885 ac_status=$?
4886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4887 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4888 { (case "(($ac_try" in
4889 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4890 *) ac_try_echo=$ac_try;;
4891 esac
4892 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4893 (eval "$ac_try") 2>&5
4894 ac_status=$?
4895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4896 (exit $ac_status); }; }; then
4897 ac_cv_olimit_ok=yes
4898 else
4899 echo "$as_me: program exited with status $ac_status" >&5
4900 echo "$as_me: failed program was:" >&5
4901 sed 's/^/| /' conftest.$ac_ext >&5
4903 ( exit $ac_status )
4904 ac_cv_olimit_ok=no
4906 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4910 CC="$ac_save_cc"
4913 { echo "$as_me:$LINENO: result: $ac_cv_olimit_ok" >&5
4914 echo "${ECHO_T}$ac_cv_olimit_ok" >&6; }
4915 if test $ac_cv_olimit_ok = yes; then
4916 BASECFLAGS="$BASECFLAGS -Olimit 1500"
4920 # Check whether GCC supports PyArg_ParseTuple format
4921 if test "$GCC" = "yes"
4922 then
4923 { echo "$as_me:$LINENO: checking whether gcc supports ParseTuple __format__" >&5
4924 echo $ECHO_N "checking whether gcc supports ParseTuple __format__... $ECHO_C" >&6; }
4925 save_CFLAGS=$CFLAGS
4926 CFLAGS="$CFLAGS -Werror"
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. */
4934 void f(char*,...)__attribute((format(PyArg_ParseTuple, 1, 2)));
4937 main ()
4941 return 0;
4943 _ACEOF
4944 rm -f conftest.$ac_objext
4945 if { (ac_try="$ac_compile"
4946 case "(($ac_try" in
4947 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4948 *) ac_try_echo=$ac_try;;
4949 esac
4950 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4951 (eval "$ac_compile") 2>conftest.er1
4952 ac_status=$?
4953 grep -v '^ *+' conftest.er1 >conftest.err
4954 rm -f conftest.er1
4955 cat conftest.err >&5
4956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4957 (exit $ac_status); } && {
4958 test -z "$ac_c_werror_flag" ||
4959 test ! -s conftest.err
4960 } && test -s conftest.$ac_objext; then
4962 cat >>confdefs.h <<\_ACEOF
4963 #define HAVE_ATTRIBUTE_FORMAT_PARSETUPLE 1
4964 _ACEOF
4966 { echo "$as_me:$LINENO: result: yes" >&5
4967 echo "${ECHO_T}yes" >&6; }
4968 else
4969 echo "$as_me: failed program was:" >&5
4970 sed 's/^/| /' conftest.$ac_ext >&5
4972 { echo "$as_me:$LINENO: result: no" >&5
4973 echo "${ECHO_T}no" >&6; }
4977 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4978 CFLAGS=$save_CFLAGS
4981 # On some compilers, pthreads are available without further options
4982 # (e.g. MacOS X). On some of these systems, the compiler will not
4983 # complain if unaccepted options are passed (e.g. gcc on Mac OS X).
4984 # So we have to see first whether pthreads are available without
4985 # options before we can check whether -Kpthread improves anything.
4986 { echo "$as_me:$LINENO: checking whether pthreads are available without options" >&5
4987 echo $ECHO_N "checking whether pthreads are available without options... $ECHO_C" >&6; }
4988 if test "${ac_cv_pthread_is_default+set}" = set; then
4989 echo $ECHO_N "(cached) $ECHO_C" >&6
4990 else
4991 if test "$cross_compiling" = yes; then
4992 ac_cv_pthread_is_default=no
4993 else
4994 cat >conftest.$ac_ext <<_ACEOF
4995 /* confdefs.h. */
4996 _ACEOF
4997 cat confdefs.h >>conftest.$ac_ext
4998 cat >>conftest.$ac_ext <<_ACEOF
4999 /* end confdefs.h. */
5001 #include <pthread.h>
5003 void* routine(void* p){return NULL;}
5005 int main(){
5006 pthread_t p;
5007 if(pthread_create(&p,NULL,routine,NULL)!=0)
5008 return 1;
5009 (void)pthread_detach(p);
5010 return 0;
5013 _ACEOF
5014 rm -f conftest$ac_exeext
5015 if { (ac_try="$ac_link"
5016 case "(($ac_try" in
5017 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5018 *) ac_try_echo=$ac_try;;
5019 esac
5020 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5021 (eval "$ac_link") 2>&5
5022 ac_status=$?
5023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5024 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5025 { (case "(($ac_try" in
5026 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5027 *) ac_try_echo=$ac_try;;
5028 esac
5029 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5030 (eval "$ac_try") 2>&5
5031 ac_status=$?
5032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5033 (exit $ac_status); }; }; then
5035 ac_cv_pthread_is_default=yes
5036 ac_cv_kthread=no
5037 ac_cv_pthread=no
5039 else
5040 echo "$as_me: program exited with status $ac_status" >&5
5041 echo "$as_me: failed program was:" >&5
5042 sed 's/^/| /' conftest.$ac_ext >&5
5044 ( exit $ac_status )
5045 ac_cv_pthread_is_default=no
5047 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5054 { echo "$as_me:$LINENO: result: $ac_cv_pthread_is_default" >&5
5055 echo "${ECHO_T}$ac_cv_pthread_is_default" >&6; }
5058 if test $ac_cv_pthread_is_default = yes
5059 then
5060 ac_cv_kpthread=no
5061 else
5062 # -Kpthread, if available, provides the right #defines
5063 # and linker options to make pthread_create available
5064 # Some compilers won't report that they do not support -Kpthread,
5065 # so we need to run a program to see whether it really made the
5066 # function available.
5067 { echo "$as_me:$LINENO: checking whether $CC accepts -Kpthread" >&5
5068 echo $ECHO_N "checking whether $CC accepts -Kpthread... $ECHO_C" >&6; }
5069 if test "${ac_cv_kpthread+set}" = set; then
5070 echo $ECHO_N "(cached) $ECHO_C" >&6
5071 else
5072 ac_save_cc="$CC"
5073 CC="$CC -Kpthread"
5074 if test "$cross_compiling" = yes; then
5075 ac_cv_kpthread=no
5076 else
5077 cat >conftest.$ac_ext <<_ACEOF
5078 /* confdefs.h. */
5079 _ACEOF
5080 cat confdefs.h >>conftest.$ac_ext
5081 cat >>conftest.$ac_ext <<_ACEOF
5082 /* end confdefs.h. */
5084 #include <pthread.h>
5086 void* routine(void* p){return NULL;}
5088 int main(){
5089 pthread_t p;
5090 if(pthread_create(&p,NULL,routine,NULL)!=0)
5091 return 1;
5092 (void)pthread_detach(p);
5093 return 0;
5096 _ACEOF
5097 rm -f conftest$ac_exeext
5098 if { (ac_try="$ac_link"
5099 case "(($ac_try" in
5100 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5101 *) ac_try_echo=$ac_try;;
5102 esac
5103 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5104 (eval "$ac_link") 2>&5
5105 ac_status=$?
5106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5107 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5108 { (case "(($ac_try" in
5109 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5110 *) ac_try_echo=$ac_try;;
5111 esac
5112 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5113 (eval "$ac_try") 2>&5
5114 ac_status=$?
5115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5116 (exit $ac_status); }; }; then
5117 ac_cv_kpthread=yes
5118 else
5119 echo "$as_me: program exited with status $ac_status" >&5
5120 echo "$as_me: failed program was:" >&5
5121 sed 's/^/| /' conftest.$ac_ext >&5
5123 ( exit $ac_status )
5124 ac_cv_kpthread=no
5126 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5130 CC="$ac_save_cc"
5133 { echo "$as_me:$LINENO: result: $ac_cv_kpthread" >&5
5134 echo "${ECHO_T}$ac_cv_kpthread" >&6; }
5137 if test $ac_cv_kpthread = no -a $ac_cv_pthread_is_default = no
5138 then
5139 # -Kthread, if available, provides the right #defines
5140 # and linker options to make pthread_create available
5141 # Some compilers won't report that they do not support -Kthread,
5142 # so we need to run a program to see whether it really made the
5143 # function available.
5144 { echo "$as_me:$LINENO: checking whether $CC accepts -Kthread" >&5
5145 echo $ECHO_N "checking whether $CC accepts -Kthread... $ECHO_C" >&6; }
5146 if test "${ac_cv_kthread+set}" = set; then
5147 echo $ECHO_N "(cached) $ECHO_C" >&6
5148 else
5149 ac_save_cc="$CC"
5150 CC="$CC -Kthread"
5151 if test "$cross_compiling" = yes; then
5152 ac_cv_kthread=no
5153 else
5154 cat >conftest.$ac_ext <<_ACEOF
5155 /* confdefs.h. */
5156 _ACEOF
5157 cat confdefs.h >>conftest.$ac_ext
5158 cat >>conftest.$ac_ext <<_ACEOF
5159 /* end confdefs.h. */
5161 #include <pthread.h>
5163 void* routine(void* p){return NULL;}
5165 int main(){
5166 pthread_t p;
5167 if(pthread_create(&p,NULL,routine,NULL)!=0)
5168 return 1;
5169 (void)pthread_detach(p);
5170 return 0;
5173 _ACEOF
5174 rm -f conftest$ac_exeext
5175 if { (ac_try="$ac_link"
5176 case "(($ac_try" in
5177 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5178 *) ac_try_echo=$ac_try;;
5179 esac
5180 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5181 (eval "$ac_link") 2>&5
5182 ac_status=$?
5183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5184 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5185 { (case "(($ac_try" in
5186 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5187 *) ac_try_echo=$ac_try;;
5188 esac
5189 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5190 (eval "$ac_try") 2>&5
5191 ac_status=$?
5192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5193 (exit $ac_status); }; }; then
5194 ac_cv_kthread=yes
5195 else
5196 echo "$as_me: program exited with status $ac_status" >&5
5197 echo "$as_me: failed program was:" >&5
5198 sed 's/^/| /' conftest.$ac_ext >&5
5200 ( exit $ac_status )
5201 ac_cv_kthread=no
5203 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5207 CC="$ac_save_cc"
5210 { echo "$as_me:$LINENO: result: $ac_cv_kthread" >&5
5211 echo "${ECHO_T}$ac_cv_kthread" >&6; }
5214 if test $ac_cv_kthread = no -a $ac_cv_pthread_is_default = no
5215 then
5216 # -pthread, if available, provides the right #defines
5217 # and linker options to make pthread_create available
5218 # Some compilers won't report that they do not support -pthread,
5219 # so we need to run a program to see whether it really made the
5220 # function available.
5221 { echo "$as_me:$LINENO: checking whether $CC accepts -pthread" >&5
5222 echo $ECHO_N "checking whether $CC accepts -pthread... $ECHO_C" >&6; }
5223 if test "${ac_cv_thread+set}" = set; then
5224 echo $ECHO_N "(cached) $ECHO_C" >&6
5225 else
5226 ac_save_cc="$CC"
5227 CC="$CC -pthread"
5228 if test "$cross_compiling" = yes; then
5229 ac_cv_pthread=no
5230 else
5231 cat >conftest.$ac_ext <<_ACEOF
5232 /* confdefs.h. */
5233 _ACEOF
5234 cat confdefs.h >>conftest.$ac_ext
5235 cat >>conftest.$ac_ext <<_ACEOF
5236 /* end confdefs.h. */
5238 #include <pthread.h>
5240 void* routine(void* p){return NULL;}
5242 int main(){
5243 pthread_t p;
5244 if(pthread_create(&p,NULL,routine,NULL)!=0)
5245 return 1;
5246 (void)pthread_detach(p);
5247 return 0;
5250 _ACEOF
5251 rm -f conftest$ac_exeext
5252 if { (ac_try="$ac_link"
5253 case "(($ac_try" in
5254 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5255 *) ac_try_echo=$ac_try;;
5256 esac
5257 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5258 (eval "$ac_link") 2>&5
5259 ac_status=$?
5260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5261 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5262 { (case "(($ac_try" in
5263 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5264 *) ac_try_echo=$ac_try;;
5265 esac
5266 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5267 (eval "$ac_try") 2>&5
5268 ac_status=$?
5269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5270 (exit $ac_status); }; }; then
5271 ac_cv_pthread=yes
5272 else
5273 echo "$as_me: program exited with status $ac_status" >&5
5274 echo "$as_me: failed program was:" >&5
5275 sed 's/^/| /' conftest.$ac_ext >&5
5277 ( exit $ac_status )
5278 ac_cv_pthread=no
5280 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5284 CC="$ac_save_cc"
5287 { echo "$as_me:$LINENO: result: $ac_cv_pthread" >&5
5288 echo "${ECHO_T}$ac_cv_pthread" >&6; }
5291 # If we have set a CC compiler flag for thread support then
5292 # check if it works for CXX, too.
5293 ac_cv_cxx_thread=no
5294 if test ! -z "$CXX"
5295 then
5296 { echo "$as_me:$LINENO: checking whether $CXX also accepts flags for thread support" >&5
5297 echo $ECHO_N "checking whether $CXX also accepts flags for thread support... $ECHO_C" >&6; }
5298 ac_save_cxx="$CXX"
5300 if test "$ac_cv_kpthread" = "yes"
5301 then
5302 CXX="$CXX -Kpthread"
5303 ac_cv_cxx_thread=yes
5304 elif test "$ac_cv_kthread" = "yes"
5305 then
5306 CXX="$CXX -Kthread"
5307 ac_cv_cxx_thread=yes
5308 elif test "$ac_cv_pthread" = "yes"
5309 then
5310 CXX="$CXX -pthread"
5311 ac_cv_cxx_thread=yes
5314 if test $ac_cv_cxx_thread = yes
5315 then
5316 echo 'void foo();int main(){foo();}void foo(){}' > conftest.$ac_ext
5317 $CXX -c conftest.$ac_ext 2>&5
5318 if $CXX -o conftest$ac_exeext conftest.$ac_objext 2>&5 \
5319 && test -s conftest$ac_exeext && ./conftest$ac_exeext
5320 then
5321 ac_cv_cxx_thread=yes
5322 else
5323 ac_cv_cxx_thread=no
5325 rm -fr conftest*
5327 { echo "$as_me:$LINENO: result: $ac_cv_cxx_thread" >&5
5328 echo "${ECHO_T}$ac_cv_cxx_thread" >&6; }
5330 CXX="$ac_save_cxx"
5333 # checks for header files
5334 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5335 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
5336 if test "${ac_cv_header_stdc+set}" = set; then
5337 echo $ECHO_N "(cached) $ECHO_C" >&6
5338 else
5339 cat >conftest.$ac_ext <<_ACEOF
5340 /* confdefs.h. */
5341 _ACEOF
5342 cat confdefs.h >>conftest.$ac_ext
5343 cat >>conftest.$ac_ext <<_ACEOF
5344 /* end confdefs.h. */
5345 #include <stdlib.h>
5346 #include <stdarg.h>
5347 #include <string.h>
5348 #include <float.h>
5351 main ()
5355 return 0;
5357 _ACEOF
5358 rm -f conftest.$ac_objext
5359 if { (ac_try="$ac_compile"
5360 case "(($ac_try" in
5361 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5362 *) ac_try_echo=$ac_try;;
5363 esac
5364 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5365 (eval "$ac_compile") 2>conftest.er1
5366 ac_status=$?
5367 grep -v '^ *+' conftest.er1 >conftest.err
5368 rm -f conftest.er1
5369 cat conftest.err >&5
5370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5371 (exit $ac_status); } && {
5372 test -z "$ac_c_werror_flag" ||
5373 test ! -s conftest.err
5374 } && test -s conftest.$ac_objext; then
5375 ac_cv_header_stdc=yes
5376 else
5377 echo "$as_me: failed program was:" >&5
5378 sed 's/^/| /' conftest.$ac_ext >&5
5380 ac_cv_header_stdc=no
5383 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5385 if test $ac_cv_header_stdc = yes; then
5386 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5387 cat >conftest.$ac_ext <<_ACEOF
5388 /* confdefs.h. */
5389 _ACEOF
5390 cat confdefs.h >>conftest.$ac_ext
5391 cat >>conftest.$ac_ext <<_ACEOF
5392 /* end confdefs.h. */
5393 #include <string.h>
5395 _ACEOF
5396 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5397 $EGREP "memchr" >/dev/null 2>&1; then
5399 else
5400 ac_cv_header_stdc=no
5402 rm -f conftest*
5406 if test $ac_cv_header_stdc = yes; then
5407 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5408 cat >conftest.$ac_ext <<_ACEOF
5409 /* confdefs.h. */
5410 _ACEOF
5411 cat confdefs.h >>conftest.$ac_ext
5412 cat >>conftest.$ac_ext <<_ACEOF
5413 /* end confdefs.h. */
5414 #include <stdlib.h>
5416 _ACEOF
5417 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5418 $EGREP "free" >/dev/null 2>&1; then
5420 else
5421 ac_cv_header_stdc=no
5423 rm -f conftest*
5427 if test $ac_cv_header_stdc = yes; then
5428 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5429 if test "$cross_compiling" = yes; then
5431 else
5432 cat >conftest.$ac_ext <<_ACEOF
5433 /* confdefs.h. */
5434 _ACEOF
5435 cat confdefs.h >>conftest.$ac_ext
5436 cat >>conftest.$ac_ext <<_ACEOF
5437 /* end confdefs.h. */
5438 #include <ctype.h>
5439 #include <stdlib.h>
5440 #if ((' ' & 0x0FF) == 0x020)
5441 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5442 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5443 #else
5444 # define ISLOWER(c) \
5445 (('a' <= (c) && (c) <= 'i') \
5446 || ('j' <= (c) && (c) <= 'r') \
5447 || ('s' <= (c) && (c) <= 'z'))
5448 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5449 #endif
5451 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5453 main ()
5455 int i;
5456 for (i = 0; i < 256; i++)
5457 if (XOR (islower (i), ISLOWER (i))
5458 || toupper (i) != TOUPPER (i))
5459 return 2;
5460 return 0;
5462 _ACEOF
5463 rm -f conftest$ac_exeext
5464 if { (ac_try="$ac_link"
5465 case "(($ac_try" in
5466 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5467 *) ac_try_echo=$ac_try;;
5468 esac
5469 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5470 (eval "$ac_link") 2>&5
5471 ac_status=$?
5472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5473 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5474 { (case "(($ac_try" in
5475 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5476 *) ac_try_echo=$ac_try;;
5477 esac
5478 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5479 (eval "$ac_try") 2>&5
5480 ac_status=$?
5481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5482 (exit $ac_status); }; }; then
5484 else
5485 echo "$as_me: program exited with status $ac_status" >&5
5486 echo "$as_me: failed program was:" >&5
5487 sed 's/^/| /' conftest.$ac_ext >&5
5489 ( exit $ac_status )
5490 ac_cv_header_stdc=no
5492 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5498 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5499 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
5500 if test $ac_cv_header_stdc = yes; then
5502 cat >>confdefs.h <<\_ACEOF
5503 #define STDC_HEADERS 1
5504 _ACEOF
5508 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5518 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5519 inttypes.h stdint.h unistd.h
5521 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5522 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5523 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5524 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5525 echo $ECHO_N "(cached) $ECHO_C" >&6
5526 else
5527 cat >conftest.$ac_ext <<_ACEOF
5528 /* confdefs.h. */
5529 _ACEOF
5530 cat confdefs.h >>conftest.$ac_ext
5531 cat >>conftest.$ac_ext <<_ACEOF
5532 /* end confdefs.h. */
5533 $ac_includes_default
5535 #include <$ac_header>
5536 _ACEOF
5537 rm -f conftest.$ac_objext
5538 if { (ac_try="$ac_compile"
5539 case "(($ac_try" in
5540 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5541 *) ac_try_echo=$ac_try;;
5542 esac
5543 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5544 (eval "$ac_compile") 2>conftest.er1
5545 ac_status=$?
5546 grep -v '^ *+' conftest.er1 >conftest.err
5547 rm -f conftest.er1
5548 cat conftest.err >&5
5549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5550 (exit $ac_status); } && {
5551 test -z "$ac_c_werror_flag" ||
5552 test ! -s conftest.err
5553 } && test -s conftest.$ac_objext; then
5554 eval "$as_ac_Header=yes"
5555 else
5556 echo "$as_me: failed program was:" >&5
5557 sed 's/^/| /' conftest.$ac_ext >&5
5559 eval "$as_ac_Header=no"
5562 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5564 ac_res=`eval echo '${'$as_ac_Header'}'`
5565 { echo "$as_me:$LINENO: result: $ac_res" >&5
5566 echo "${ECHO_T}$ac_res" >&6; }
5567 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5568 cat >>confdefs.h <<_ACEOF
5569 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5570 _ACEOF
5574 done
5631 for ac_header in asm/types.h conio.h curses.h direct.h dlfcn.h errno.h \
5632 fcntl.h grp.h \
5633 ieeefp.h io.h langinfo.h libintl.h ncurses.h poll.h process.h pthread.h \
5634 shadow.h signal.h stdint.h stropts.h termios.h thread.h \
5635 unistd.h utime.h \
5636 sys/audioio.h sys/bsdtty.h sys/epoll.h sys/event.h sys/file.h sys/loadavg.h \
5637 sys/lock.h sys/mkdev.h sys/modem.h \
5638 sys/param.h sys/poll.h sys/select.h sys/socket.h sys/statvfs.h sys/stat.h \
5639 sys/termio.h sys/time.h \
5640 sys/times.h sys/types.h sys/un.h sys/utsname.h sys/wait.h pty.h libutil.h \
5641 sys/resource.h netpacket/packet.h sysexits.h bluetooth.h \
5642 bluetooth/bluetooth.h linux/tipc.h
5644 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5645 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5646 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5647 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5648 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5649 echo $ECHO_N "(cached) $ECHO_C" >&6
5651 ac_res=`eval echo '${'$as_ac_Header'}'`
5652 { echo "$as_me:$LINENO: result: $ac_res" >&5
5653 echo "${ECHO_T}$ac_res" >&6; }
5654 else
5655 # Is the header compilable?
5656 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
5657 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
5658 cat >conftest.$ac_ext <<_ACEOF
5659 /* confdefs.h. */
5660 _ACEOF
5661 cat confdefs.h >>conftest.$ac_ext
5662 cat >>conftest.$ac_ext <<_ACEOF
5663 /* end confdefs.h. */
5664 $ac_includes_default
5665 #include <$ac_header>
5666 _ACEOF
5667 rm -f conftest.$ac_objext
5668 if { (ac_try="$ac_compile"
5669 case "(($ac_try" in
5670 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5671 *) ac_try_echo=$ac_try;;
5672 esac
5673 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5674 (eval "$ac_compile") 2>conftest.er1
5675 ac_status=$?
5676 grep -v '^ *+' conftest.er1 >conftest.err
5677 rm -f conftest.er1
5678 cat conftest.err >&5
5679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5680 (exit $ac_status); } && {
5681 test -z "$ac_c_werror_flag" ||
5682 test ! -s conftest.err
5683 } && test -s conftest.$ac_objext; then
5684 ac_header_compiler=yes
5685 else
5686 echo "$as_me: failed program was:" >&5
5687 sed 's/^/| /' conftest.$ac_ext >&5
5689 ac_header_compiler=no
5692 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5693 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5694 echo "${ECHO_T}$ac_header_compiler" >&6; }
5696 # Is the header present?
5697 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
5698 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
5699 cat >conftest.$ac_ext <<_ACEOF
5700 /* confdefs.h. */
5701 _ACEOF
5702 cat confdefs.h >>conftest.$ac_ext
5703 cat >>conftest.$ac_ext <<_ACEOF
5704 /* end confdefs.h. */
5705 #include <$ac_header>
5706 _ACEOF
5707 if { (ac_try="$ac_cpp conftest.$ac_ext"
5708 case "(($ac_try" in
5709 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5710 *) ac_try_echo=$ac_try;;
5711 esac
5712 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5713 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5714 ac_status=$?
5715 grep -v '^ *+' conftest.er1 >conftest.err
5716 rm -f conftest.er1
5717 cat conftest.err >&5
5718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5719 (exit $ac_status); } >/dev/null && {
5720 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5721 test ! -s conftest.err
5722 }; then
5723 ac_header_preproc=yes
5724 else
5725 echo "$as_me: failed program was:" >&5
5726 sed 's/^/| /' conftest.$ac_ext >&5
5728 ac_header_preproc=no
5731 rm -f conftest.err conftest.$ac_ext
5732 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5733 echo "${ECHO_T}$ac_header_preproc" >&6; }
5735 # So? What about this header?
5736 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5737 yes:no: )
5738 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5739 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5740 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5741 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5742 ac_header_preproc=yes
5744 no:yes:* )
5745 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5746 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5747 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5748 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5749 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5750 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5751 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5752 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5753 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5754 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5755 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5756 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5757 ( cat <<\_ASBOX
5758 ## -------------------------------------- ##
5759 ## Report this to http://bugs.python.org/ ##
5760 ## -------------------------------------- ##
5761 _ASBOX
5762 ) | sed "s/^/$as_me: WARNING: /" >&2
5764 esac
5765 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5766 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5767 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5768 echo $ECHO_N "(cached) $ECHO_C" >&6
5769 else
5770 eval "$as_ac_Header=\$ac_header_preproc"
5772 ac_res=`eval echo '${'$as_ac_Header'}'`
5773 { echo "$as_me:$LINENO: result: $ac_res" >&5
5774 echo "${ECHO_T}$ac_res" >&6; }
5777 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5778 cat >>confdefs.h <<_ACEOF
5779 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5780 _ACEOF
5784 done
5791 ac_header_dirent=no
5792 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
5793 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
5794 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
5795 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
5796 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5797 echo $ECHO_N "(cached) $ECHO_C" >&6
5798 else
5799 cat >conftest.$ac_ext <<_ACEOF
5800 /* confdefs.h. */
5801 _ACEOF
5802 cat confdefs.h >>conftest.$ac_ext
5803 cat >>conftest.$ac_ext <<_ACEOF
5804 /* end confdefs.h. */
5805 #include <sys/types.h>
5806 #include <$ac_hdr>
5809 main ()
5811 if ((DIR *) 0)
5812 return 0;
5814 return 0;
5816 _ACEOF
5817 rm -f conftest.$ac_objext
5818 if { (ac_try="$ac_compile"
5819 case "(($ac_try" in
5820 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5821 *) ac_try_echo=$ac_try;;
5822 esac
5823 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5824 (eval "$ac_compile") 2>conftest.er1
5825 ac_status=$?
5826 grep -v '^ *+' conftest.er1 >conftest.err
5827 rm -f conftest.er1
5828 cat conftest.err >&5
5829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5830 (exit $ac_status); } && {
5831 test -z "$ac_c_werror_flag" ||
5832 test ! -s conftest.err
5833 } && test -s conftest.$ac_objext; then
5834 eval "$as_ac_Header=yes"
5835 else
5836 echo "$as_me: failed program was:" >&5
5837 sed 's/^/| /' conftest.$ac_ext >&5
5839 eval "$as_ac_Header=no"
5842 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5844 ac_res=`eval echo '${'$as_ac_Header'}'`
5845 { echo "$as_me:$LINENO: result: $ac_res" >&5
5846 echo "${ECHO_T}$ac_res" >&6; }
5847 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5848 cat >>confdefs.h <<_ACEOF
5849 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
5850 _ACEOF
5852 ac_header_dirent=$ac_hdr; break
5855 done
5856 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
5857 if test $ac_header_dirent = dirent.h; then
5858 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
5859 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
5860 if test "${ac_cv_search_opendir+set}" = set; then
5861 echo $ECHO_N "(cached) $ECHO_C" >&6
5862 else
5863 ac_func_search_save_LIBS=$LIBS
5864 cat >conftest.$ac_ext <<_ACEOF
5865 /* confdefs.h. */
5866 _ACEOF
5867 cat confdefs.h >>conftest.$ac_ext
5868 cat >>conftest.$ac_ext <<_ACEOF
5869 /* end confdefs.h. */
5871 /* Override any GCC internal prototype to avoid an error.
5872 Use char because int might match the return type of a GCC
5873 builtin and then its argument prototype would still apply. */
5874 #ifdef __cplusplus
5875 extern "C"
5876 #endif
5877 char opendir ();
5879 main ()
5881 return opendir ();
5883 return 0;
5885 _ACEOF
5886 for ac_lib in '' dir; do
5887 if test -z "$ac_lib"; then
5888 ac_res="none required"
5889 else
5890 ac_res=-l$ac_lib
5891 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5893 rm -f conftest.$ac_objext conftest$ac_exeext
5894 if { (ac_try="$ac_link"
5895 case "(($ac_try" in
5896 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5897 *) ac_try_echo=$ac_try;;
5898 esac
5899 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5900 (eval "$ac_link") 2>conftest.er1
5901 ac_status=$?
5902 grep -v '^ *+' conftest.er1 >conftest.err
5903 rm -f conftest.er1
5904 cat conftest.err >&5
5905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5906 (exit $ac_status); } && {
5907 test -z "$ac_c_werror_flag" ||
5908 test ! -s conftest.err
5909 } && test -s conftest$ac_exeext &&
5910 $as_test_x conftest$ac_exeext; then
5911 ac_cv_search_opendir=$ac_res
5912 else
5913 echo "$as_me: failed program was:" >&5
5914 sed 's/^/| /' conftest.$ac_ext >&5
5919 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5920 conftest$ac_exeext
5921 if test "${ac_cv_search_opendir+set}" = set; then
5922 break
5924 done
5925 if test "${ac_cv_search_opendir+set}" = set; then
5927 else
5928 ac_cv_search_opendir=no
5930 rm conftest.$ac_ext
5931 LIBS=$ac_func_search_save_LIBS
5933 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
5934 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
5935 ac_res=$ac_cv_search_opendir
5936 if test "$ac_res" != no; then
5937 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
5941 else
5942 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
5943 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
5944 if test "${ac_cv_search_opendir+set}" = set; then
5945 echo $ECHO_N "(cached) $ECHO_C" >&6
5946 else
5947 ac_func_search_save_LIBS=$LIBS
5948 cat >conftest.$ac_ext <<_ACEOF
5949 /* confdefs.h. */
5950 _ACEOF
5951 cat confdefs.h >>conftest.$ac_ext
5952 cat >>conftest.$ac_ext <<_ACEOF
5953 /* end confdefs.h. */
5955 /* Override any GCC internal prototype to avoid an error.
5956 Use char because int might match the return type of a GCC
5957 builtin and then its argument prototype would still apply. */
5958 #ifdef __cplusplus
5959 extern "C"
5960 #endif
5961 char opendir ();
5963 main ()
5965 return opendir ();
5967 return 0;
5969 _ACEOF
5970 for ac_lib in '' x; do
5971 if test -z "$ac_lib"; then
5972 ac_res="none required"
5973 else
5974 ac_res=-l$ac_lib
5975 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5977 rm -f conftest.$ac_objext conftest$ac_exeext
5978 if { (ac_try="$ac_link"
5979 case "(($ac_try" in
5980 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5981 *) ac_try_echo=$ac_try;;
5982 esac
5983 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5984 (eval "$ac_link") 2>conftest.er1
5985 ac_status=$?
5986 grep -v '^ *+' conftest.er1 >conftest.err
5987 rm -f conftest.er1
5988 cat conftest.err >&5
5989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5990 (exit $ac_status); } && {
5991 test -z "$ac_c_werror_flag" ||
5992 test ! -s conftest.err
5993 } && test -s conftest$ac_exeext &&
5994 $as_test_x conftest$ac_exeext; then
5995 ac_cv_search_opendir=$ac_res
5996 else
5997 echo "$as_me: failed program was:" >&5
5998 sed 's/^/| /' conftest.$ac_ext >&5
6003 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6004 conftest$ac_exeext
6005 if test "${ac_cv_search_opendir+set}" = set; then
6006 break
6008 done
6009 if test "${ac_cv_search_opendir+set}" = set; then
6011 else
6012 ac_cv_search_opendir=no
6014 rm conftest.$ac_ext
6015 LIBS=$ac_func_search_save_LIBS
6017 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
6018 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
6019 ac_res=$ac_cv_search_opendir
6020 if test "$ac_res" != no; then
6021 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
6027 { echo "$as_me:$LINENO: checking whether sys/types.h defines makedev" >&5
6028 echo $ECHO_N "checking whether sys/types.h defines makedev... $ECHO_C" >&6; }
6029 if test "${ac_cv_header_sys_types_h_makedev+set}" = set; then
6030 echo $ECHO_N "(cached) $ECHO_C" >&6
6031 else
6032 cat >conftest.$ac_ext <<_ACEOF
6033 /* confdefs.h. */
6034 _ACEOF
6035 cat confdefs.h >>conftest.$ac_ext
6036 cat >>conftest.$ac_ext <<_ACEOF
6037 /* end confdefs.h. */
6038 #include <sys/types.h>
6040 main ()
6042 return makedev(0, 0);
6044 return 0;
6046 _ACEOF
6047 rm -f conftest.$ac_objext conftest$ac_exeext
6048 if { (ac_try="$ac_link"
6049 case "(($ac_try" in
6050 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6051 *) ac_try_echo=$ac_try;;
6052 esac
6053 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6054 (eval "$ac_link") 2>conftest.er1
6055 ac_status=$?
6056 grep -v '^ *+' conftest.er1 >conftest.err
6057 rm -f conftest.er1
6058 cat conftest.err >&5
6059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6060 (exit $ac_status); } && {
6061 test -z "$ac_c_werror_flag" ||
6062 test ! -s conftest.err
6063 } && test -s conftest$ac_exeext &&
6064 $as_test_x conftest$ac_exeext; then
6065 ac_cv_header_sys_types_h_makedev=yes
6066 else
6067 echo "$as_me: failed program was:" >&5
6068 sed 's/^/| /' conftest.$ac_ext >&5
6070 ac_cv_header_sys_types_h_makedev=no
6073 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6074 conftest$ac_exeext conftest.$ac_ext
6077 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h_makedev" >&5
6078 echo "${ECHO_T}$ac_cv_header_sys_types_h_makedev" >&6; }
6080 if test $ac_cv_header_sys_types_h_makedev = no; then
6081 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
6082 { echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
6083 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6; }
6084 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
6085 echo $ECHO_N "(cached) $ECHO_C" >&6
6087 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
6088 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6; }
6089 else
6090 # Is the header compilable?
6091 { echo "$as_me:$LINENO: checking sys/mkdev.h usability" >&5
6092 echo $ECHO_N "checking sys/mkdev.h usability... $ECHO_C" >&6; }
6093 cat >conftest.$ac_ext <<_ACEOF
6094 /* confdefs.h. */
6095 _ACEOF
6096 cat confdefs.h >>conftest.$ac_ext
6097 cat >>conftest.$ac_ext <<_ACEOF
6098 /* end confdefs.h. */
6099 $ac_includes_default
6100 #include <sys/mkdev.h>
6101 _ACEOF
6102 rm -f conftest.$ac_objext
6103 if { (ac_try="$ac_compile"
6104 case "(($ac_try" in
6105 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6106 *) ac_try_echo=$ac_try;;
6107 esac
6108 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6109 (eval "$ac_compile") 2>conftest.er1
6110 ac_status=$?
6111 grep -v '^ *+' conftest.er1 >conftest.err
6112 rm -f conftest.er1
6113 cat conftest.err >&5
6114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6115 (exit $ac_status); } && {
6116 test -z "$ac_c_werror_flag" ||
6117 test ! -s conftest.err
6118 } && test -s conftest.$ac_objext; then
6119 ac_header_compiler=yes
6120 else
6121 echo "$as_me: failed program was:" >&5
6122 sed 's/^/| /' conftest.$ac_ext >&5
6124 ac_header_compiler=no
6127 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6128 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6129 echo "${ECHO_T}$ac_header_compiler" >&6; }
6131 # Is the header present?
6132 { echo "$as_me:$LINENO: checking sys/mkdev.h presence" >&5
6133 echo $ECHO_N "checking sys/mkdev.h presence... $ECHO_C" >&6; }
6134 cat >conftest.$ac_ext <<_ACEOF
6135 /* confdefs.h. */
6136 _ACEOF
6137 cat confdefs.h >>conftest.$ac_ext
6138 cat >>conftest.$ac_ext <<_ACEOF
6139 /* end confdefs.h. */
6140 #include <sys/mkdev.h>
6141 _ACEOF
6142 if { (ac_try="$ac_cpp conftest.$ac_ext"
6143 case "(($ac_try" in
6144 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6145 *) ac_try_echo=$ac_try;;
6146 esac
6147 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6148 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6149 ac_status=$?
6150 grep -v '^ *+' conftest.er1 >conftest.err
6151 rm -f conftest.er1
6152 cat conftest.err >&5
6153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6154 (exit $ac_status); } >/dev/null && {
6155 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6156 test ! -s conftest.err
6157 }; then
6158 ac_header_preproc=yes
6159 else
6160 echo "$as_me: failed program was:" >&5
6161 sed 's/^/| /' conftest.$ac_ext >&5
6163 ac_header_preproc=no
6166 rm -f conftest.err conftest.$ac_ext
6167 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6168 echo "${ECHO_T}$ac_header_preproc" >&6; }
6170 # So? What about this header?
6171 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6172 yes:no: )
6173 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&5
6174 echo "$as_me: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
6175 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&5
6176 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&2;}
6177 ac_header_preproc=yes
6179 no:yes:* )
6180 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: present but cannot be compiled" >&5
6181 echo "$as_me: WARNING: sys/mkdev.h: present but cannot be compiled" >&2;}
6182 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&5
6183 echo "$as_me: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&2;}
6184 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: see the Autoconf documentation" >&5
6185 echo "$as_me: WARNING: sys/mkdev.h: see the Autoconf documentation" >&2;}
6186 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: section \"Present But Cannot Be Compiled\"" >&5
6187 echo "$as_me: WARNING: sys/mkdev.h: section \"Present But Cannot Be Compiled\"" >&2;}
6188 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&5
6189 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&2;}
6190 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&5
6191 echo "$as_me: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&2;}
6192 ( cat <<\_ASBOX
6193 ## -------------------------------------- ##
6194 ## Report this to http://bugs.python.org/ ##
6195 ## -------------------------------------- ##
6196 _ASBOX
6197 ) | sed "s/^/$as_me: WARNING: /" >&2
6199 esac
6200 { echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
6201 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6; }
6202 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
6203 echo $ECHO_N "(cached) $ECHO_C" >&6
6204 else
6205 ac_cv_header_sys_mkdev_h=$ac_header_preproc
6207 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
6208 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6; }
6211 if test $ac_cv_header_sys_mkdev_h = yes; then
6213 cat >>confdefs.h <<\_ACEOF
6214 #define MAJOR_IN_MKDEV 1
6215 _ACEOF
6221 if test $ac_cv_header_sys_mkdev_h = no; then
6222 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
6223 { echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
6224 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6; }
6225 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
6226 echo $ECHO_N "(cached) $ECHO_C" >&6
6228 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
6229 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6; }
6230 else
6231 # Is the header compilable?
6232 { echo "$as_me:$LINENO: checking sys/sysmacros.h usability" >&5
6233 echo $ECHO_N "checking sys/sysmacros.h usability... $ECHO_C" >&6; }
6234 cat >conftest.$ac_ext <<_ACEOF
6235 /* confdefs.h. */
6236 _ACEOF
6237 cat confdefs.h >>conftest.$ac_ext
6238 cat >>conftest.$ac_ext <<_ACEOF
6239 /* end confdefs.h. */
6240 $ac_includes_default
6241 #include <sys/sysmacros.h>
6242 _ACEOF
6243 rm -f conftest.$ac_objext
6244 if { (ac_try="$ac_compile"
6245 case "(($ac_try" in
6246 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6247 *) ac_try_echo=$ac_try;;
6248 esac
6249 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6250 (eval "$ac_compile") 2>conftest.er1
6251 ac_status=$?
6252 grep -v '^ *+' conftest.er1 >conftest.err
6253 rm -f conftest.er1
6254 cat conftest.err >&5
6255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6256 (exit $ac_status); } && {
6257 test -z "$ac_c_werror_flag" ||
6258 test ! -s conftest.err
6259 } && test -s conftest.$ac_objext; then
6260 ac_header_compiler=yes
6261 else
6262 echo "$as_me: failed program was:" >&5
6263 sed 's/^/| /' conftest.$ac_ext >&5
6265 ac_header_compiler=no
6268 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6269 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6270 echo "${ECHO_T}$ac_header_compiler" >&6; }
6272 # Is the header present?
6273 { echo "$as_me:$LINENO: checking sys/sysmacros.h presence" >&5
6274 echo $ECHO_N "checking sys/sysmacros.h presence... $ECHO_C" >&6; }
6275 cat >conftest.$ac_ext <<_ACEOF
6276 /* confdefs.h. */
6277 _ACEOF
6278 cat confdefs.h >>conftest.$ac_ext
6279 cat >>conftest.$ac_ext <<_ACEOF
6280 /* end confdefs.h. */
6281 #include <sys/sysmacros.h>
6282 _ACEOF
6283 if { (ac_try="$ac_cpp conftest.$ac_ext"
6284 case "(($ac_try" in
6285 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6286 *) ac_try_echo=$ac_try;;
6287 esac
6288 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6289 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6290 ac_status=$?
6291 grep -v '^ *+' conftest.er1 >conftest.err
6292 rm -f conftest.er1
6293 cat conftest.err >&5
6294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6295 (exit $ac_status); } >/dev/null && {
6296 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6297 test ! -s conftest.err
6298 }; then
6299 ac_header_preproc=yes
6300 else
6301 echo "$as_me: failed program was:" >&5
6302 sed 's/^/| /' conftest.$ac_ext >&5
6304 ac_header_preproc=no
6307 rm -f conftest.err conftest.$ac_ext
6308 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6309 echo "${ECHO_T}$ac_header_preproc" >&6; }
6311 # So? What about this header?
6312 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6313 yes:no: )
6314 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&5
6315 echo "$as_me: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
6316 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&5
6317 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&2;}
6318 ac_header_preproc=yes
6320 no:yes:* )
6321 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: present but cannot be compiled" >&5
6322 echo "$as_me: WARNING: sys/sysmacros.h: present but cannot be compiled" >&2;}
6323 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&5
6324 echo "$as_me: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&2;}
6325 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&5
6326 echo "$as_me: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&2;}
6327 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: section \"Present But Cannot Be Compiled\"" >&5
6328 echo "$as_me: WARNING: sys/sysmacros.h: section \"Present But Cannot Be Compiled\"" >&2;}
6329 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&5
6330 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&2;}
6331 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&5
6332 echo "$as_me: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&2;}
6333 ( cat <<\_ASBOX
6334 ## -------------------------------------- ##
6335 ## Report this to http://bugs.python.org/ ##
6336 ## -------------------------------------- ##
6337 _ASBOX
6338 ) | sed "s/^/$as_me: WARNING: /" >&2
6340 esac
6341 { echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
6342 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6; }
6343 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
6344 echo $ECHO_N "(cached) $ECHO_C" >&6
6345 else
6346 ac_cv_header_sys_sysmacros_h=$ac_header_preproc
6348 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
6349 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6; }
6352 if test $ac_cv_header_sys_sysmacros_h = yes; then
6354 cat >>confdefs.h <<\_ACEOF
6355 #define MAJOR_IN_SYSMACROS 1
6356 _ACEOF
6365 # On Solaris, term.h requires curses.h
6367 for ac_header in term.h
6369 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6370 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6371 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6372 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6373 echo $ECHO_N "(cached) $ECHO_C" >&6
6374 else
6375 cat >conftest.$ac_ext <<_ACEOF
6376 /* confdefs.h. */
6377 _ACEOF
6378 cat confdefs.h >>conftest.$ac_ext
6379 cat >>conftest.$ac_ext <<_ACEOF
6380 /* end confdefs.h. */
6382 #ifdef HAVE_CURSES_H
6383 #include <curses.h>
6384 #endif
6387 #include <$ac_header>
6388 _ACEOF
6389 rm -f conftest.$ac_objext
6390 if { (ac_try="$ac_compile"
6391 case "(($ac_try" in
6392 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6393 *) ac_try_echo=$ac_try;;
6394 esac
6395 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6396 (eval "$ac_compile") 2>conftest.er1
6397 ac_status=$?
6398 grep -v '^ *+' conftest.er1 >conftest.err
6399 rm -f conftest.er1
6400 cat conftest.err >&5
6401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6402 (exit $ac_status); } && {
6403 test -z "$ac_c_werror_flag" ||
6404 test ! -s conftest.err
6405 } && test -s conftest.$ac_objext; then
6406 eval "$as_ac_Header=yes"
6407 else
6408 echo "$as_me: failed program was:" >&5
6409 sed 's/^/| /' conftest.$ac_ext >&5
6411 eval "$as_ac_Header=no"
6414 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6416 ac_res=`eval echo '${'$as_ac_Header'}'`
6417 { echo "$as_me:$LINENO: result: $ac_res" >&5
6418 echo "${ECHO_T}$ac_res" >&6; }
6419 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6420 cat >>confdefs.h <<_ACEOF
6421 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6422 _ACEOF
6426 done
6429 # On Linux, netlink.h requires asm/types.h
6431 for ac_header in linux/netlink.h
6433 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6434 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6435 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6436 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6437 echo $ECHO_N "(cached) $ECHO_C" >&6
6438 else
6439 cat >conftest.$ac_ext <<_ACEOF
6440 /* confdefs.h. */
6441 _ACEOF
6442 cat confdefs.h >>conftest.$ac_ext
6443 cat >>conftest.$ac_ext <<_ACEOF
6444 /* end confdefs.h. */
6446 #ifdef HAVE_ASM_TYPES_H
6447 #include <asm/types.h>
6448 #endif
6449 #ifdef HAVE_SYS_SOCKET_H
6450 #include <sys/socket.h>
6451 #endif
6454 #include <$ac_header>
6455 _ACEOF
6456 rm -f conftest.$ac_objext
6457 if { (ac_try="$ac_compile"
6458 case "(($ac_try" in
6459 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6460 *) ac_try_echo=$ac_try;;
6461 esac
6462 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6463 (eval "$ac_compile") 2>conftest.er1
6464 ac_status=$?
6465 grep -v '^ *+' conftest.er1 >conftest.err
6466 rm -f conftest.er1
6467 cat conftest.err >&5
6468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6469 (exit $ac_status); } && {
6470 test -z "$ac_c_werror_flag" ||
6471 test ! -s conftest.err
6472 } && test -s conftest.$ac_objext; then
6473 eval "$as_ac_Header=yes"
6474 else
6475 echo "$as_me: failed program was:" >&5
6476 sed 's/^/| /' conftest.$ac_ext >&5
6478 eval "$as_ac_Header=no"
6481 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6483 ac_res=`eval echo '${'$as_ac_Header'}'`
6484 { echo "$as_me:$LINENO: result: $ac_res" >&5
6485 echo "${ECHO_T}$ac_res" >&6; }
6486 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6487 cat >>confdefs.h <<_ACEOF
6488 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6489 _ACEOF
6493 done
6496 # checks for typedefs
6497 was_it_defined=no
6498 { echo "$as_me:$LINENO: checking for clock_t in time.h" >&5
6499 echo $ECHO_N "checking for clock_t in time.h... $ECHO_C" >&6; }
6500 cat >conftest.$ac_ext <<_ACEOF
6501 /* confdefs.h. */
6502 _ACEOF
6503 cat confdefs.h >>conftest.$ac_ext
6504 cat >>conftest.$ac_ext <<_ACEOF
6505 /* end confdefs.h. */
6506 #include <time.h>
6508 _ACEOF
6509 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6510 $EGREP "clock_t" >/dev/null 2>&1; then
6511 was_it_defined=yes
6512 else
6515 cat >>confdefs.h <<\_ACEOF
6516 #define clock_t long
6517 _ACEOF
6521 rm -f conftest*
6523 { echo "$as_me:$LINENO: result: $was_it_defined" >&5
6524 echo "${ECHO_T}$was_it_defined" >&6; }
6526 # Check whether using makedev requires defining _OSF_SOURCE
6527 { echo "$as_me:$LINENO: checking for makedev" >&5
6528 echo $ECHO_N "checking for makedev... $ECHO_C" >&6; }
6529 cat >conftest.$ac_ext <<_ACEOF
6530 /* confdefs.h. */
6531 _ACEOF
6532 cat confdefs.h >>conftest.$ac_ext
6533 cat >>conftest.$ac_ext <<_ACEOF
6534 /* end confdefs.h. */
6535 #include <sys/types.h>
6537 main ()
6539 makedev(0, 0)
6541 return 0;
6543 _ACEOF
6544 rm -f conftest.$ac_objext conftest$ac_exeext
6545 if { (ac_try="$ac_link"
6546 case "(($ac_try" in
6547 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6548 *) ac_try_echo=$ac_try;;
6549 esac
6550 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6551 (eval "$ac_link") 2>conftest.er1
6552 ac_status=$?
6553 grep -v '^ *+' conftest.er1 >conftest.err
6554 rm -f conftest.er1
6555 cat conftest.err >&5
6556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6557 (exit $ac_status); } && {
6558 test -z "$ac_c_werror_flag" ||
6559 test ! -s conftest.err
6560 } && test -s conftest$ac_exeext &&
6561 $as_test_x conftest$ac_exeext; then
6562 ac_cv_has_makedev=yes
6563 else
6564 echo "$as_me: failed program was:" >&5
6565 sed 's/^/| /' conftest.$ac_ext >&5
6567 ac_cv_has_makedev=no
6570 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6571 conftest$ac_exeext conftest.$ac_ext
6572 if test "$ac_cv_has_makedev" = "no"; then
6573 # we didn't link, try if _OSF_SOURCE will allow us to link
6574 cat >conftest.$ac_ext <<_ACEOF
6575 /* confdefs.h. */
6576 _ACEOF
6577 cat confdefs.h >>conftest.$ac_ext
6578 cat >>conftest.$ac_ext <<_ACEOF
6579 /* end confdefs.h. */
6581 #define _OSF_SOURCE 1
6582 #include <sys/types.h>
6585 main ()
6587 makedev(0, 0)
6589 return 0;
6591 _ACEOF
6592 rm -f conftest.$ac_objext conftest$ac_exeext
6593 if { (ac_try="$ac_link"
6594 case "(($ac_try" in
6595 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6596 *) ac_try_echo=$ac_try;;
6597 esac
6598 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6599 (eval "$ac_link") 2>conftest.er1
6600 ac_status=$?
6601 grep -v '^ *+' conftest.er1 >conftest.err
6602 rm -f conftest.er1
6603 cat conftest.err >&5
6604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6605 (exit $ac_status); } && {
6606 test -z "$ac_c_werror_flag" ||
6607 test ! -s conftest.err
6608 } && test -s conftest$ac_exeext &&
6609 $as_test_x conftest$ac_exeext; then
6610 ac_cv_has_makedev=yes
6611 else
6612 echo "$as_me: failed program was:" >&5
6613 sed 's/^/| /' conftest.$ac_ext >&5
6615 ac_cv_has_makedev=no
6618 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6619 conftest$ac_exeext conftest.$ac_ext
6620 if test "$ac_cv_has_makedev" = "yes"; then
6622 cat >>confdefs.h <<\_ACEOF
6623 #define _OSF_SOURCE 1
6624 _ACEOF
6628 { echo "$as_me:$LINENO: result: $ac_cv_has_makedev" >&5
6629 echo "${ECHO_T}$ac_cv_has_makedev" >&6; }
6630 if test "$ac_cv_has_makedev" = "yes"; then
6632 cat >>confdefs.h <<\_ACEOF
6633 #define HAVE_MAKEDEV 1
6634 _ACEOF
6638 # Enabling LFS on Solaris (2.6 to 9) with gcc 2.95 triggers a bug in
6639 # the system headers: If _XOPEN_SOURCE and _LARGEFILE_SOURCE are
6640 # defined, but the compiler does not support pragma redefine_extname,
6641 # and _LARGEFILE64_SOURCE is not defined, the headers refer to 64-bit
6642 # structures (such as rlimit64) without declaring them. As a
6643 # work-around, disable LFS on such configurations
6645 use_lfs=yes
6646 { echo "$as_me:$LINENO: checking Solaris LFS bug" >&5
6647 echo $ECHO_N "checking Solaris LFS bug... $ECHO_C" >&6; }
6648 cat >conftest.$ac_ext <<_ACEOF
6649 /* confdefs.h. */
6650 _ACEOF
6651 cat confdefs.h >>conftest.$ac_ext
6652 cat >>conftest.$ac_ext <<_ACEOF
6653 /* end confdefs.h. */
6655 #define _LARGEFILE_SOURCE 1
6656 #define _FILE_OFFSET_BITS 64
6657 #include <sys/resource.h>
6660 main ()
6662 struct rlimit foo;
6664 return 0;
6666 _ACEOF
6667 rm -f conftest.$ac_objext
6668 if { (ac_try="$ac_compile"
6669 case "(($ac_try" in
6670 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6671 *) ac_try_echo=$ac_try;;
6672 esac
6673 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6674 (eval "$ac_compile") 2>conftest.er1
6675 ac_status=$?
6676 grep -v '^ *+' conftest.er1 >conftest.err
6677 rm -f conftest.er1
6678 cat conftest.err >&5
6679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6680 (exit $ac_status); } && {
6681 test -z "$ac_c_werror_flag" ||
6682 test ! -s conftest.err
6683 } && test -s conftest.$ac_objext; then
6684 sol_lfs_bug=no
6685 else
6686 echo "$as_me: failed program was:" >&5
6687 sed 's/^/| /' conftest.$ac_ext >&5
6689 sol_lfs_bug=yes
6692 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6693 { echo "$as_me:$LINENO: result: $sol_lfs_bug" >&5
6694 echo "${ECHO_T}$sol_lfs_bug" >&6; }
6695 if test "$sol_lfs_bug" = "yes"; then
6696 use_lfs=no
6699 if test "$use_lfs" = "yes"; then
6700 # Two defines needed to enable largefile support on various platforms
6701 # These may affect some typedefs
6703 cat >>confdefs.h <<\_ACEOF
6704 #define _LARGEFILE_SOURCE 1
6705 _ACEOF
6708 cat >>confdefs.h <<\_ACEOF
6709 #define _FILE_OFFSET_BITS 64
6710 _ACEOF
6714 # Add some code to confdefs.h so that the test for off_t works on SCO
6715 cat >> confdefs.h <<\EOF
6716 #if defined(SCO_DS)
6717 #undef _OFF_T
6718 #endif
6721 # Type availability checks
6722 { echo "$as_me:$LINENO: checking for mode_t" >&5
6723 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6; }
6724 if test "${ac_cv_type_mode_t+set}" = set; then
6725 echo $ECHO_N "(cached) $ECHO_C" >&6
6726 else
6727 cat >conftest.$ac_ext <<_ACEOF
6728 /* confdefs.h. */
6729 _ACEOF
6730 cat confdefs.h >>conftest.$ac_ext
6731 cat >>conftest.$ac_ext <<_ACEOF
6732 /* end confdefs.h. */
6733 $ac_includes_default
6734 typedef mode_t ac__type_new_;
6736 main ()
6738 if ((ac__type_new_ *) 0)
6739 return 0;
6740 if (sizeof (ac__type_new_))
6741 return 0;
6743 return 0;
6745 _ACEOF
6746 rm -f conftest.$ac_objext
6747 if { (ac_try="$ac_compile"
6748 case "(($ac_try" in
6749 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6750 *) ac_try_echo=$ac_try;;
6751 esac
6752 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6753 (eval "$ac_compile") 2>conftest.er1
6754 ac_status=$?
6755 grep -v '^ *+' conftest.er1 >conftest.err
6756 rm -f conftest.er1
6757 cat conftest.err >&5
6758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6759 (exit $ac_status); } && {
6760 test -z "$ac_c_werror_flag" ||
6761 test ! -s conftest.err
6762 } && test -s conftest.$ac_objext; then
6763 ac_cv_type_mode_t=yes
6764 else
6765 echo "$as_me: failed program was:" >&5
6766 sed 's/^/| /' conftest.$ac_ext >&5
6768 ac_cv_type_mode_t=no
6771 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6773 { echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
6774 echo "${ECHO_T}$ac_cv_type_mode_t" >&6; }
6775 if test $ac_cv_type_mode_t = yes; then
6777 else
6779 cat >>confdefs.h <<_ACEOF
6780 #define mode_t int
6781 _ACEOF
6785 { echo "$as_me:$LINENO: checking for off_t" >&5
6786 echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
6787 if test "${ac_cv_type_off_t+set}" = set; then
6788 echo $ECHO_N "(cached) $ECHO_C" >&6
6789 else
6790 cat >conftest.$ac_ext <<_ACEOF
6791 /* confdefs.h. */
6792 _ACEOF
6793 cat confdefs.h >>conftest.$ac_ext
6794 cat >>conftest.$ac_ext <<_ACEOF
6795 /* end confdefs.h. */
6796 $ac_includes_default
6797 typedef off_t ac__type_new_;
6799 main ()
6801 if ((ac__type_new_ *) 0)
6802 return 0;
6803 if (sizeof (ac__type_new_))
6804 return 0;
6806 return 0;
6808 _ACEOF
6809 rm -f conftest.$ac_objext
6810 if { (ac_try="$ac_compile"
6811 case "(($ac_try" in
6812 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6813 *) ac_try_echo=$ac_try;;
6814 esac
6815 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6816 (eval "$ac_compile") 2>conftest.er1
6817 ac_status=$?
6818 grep -v '^ *+' conftest.er1 >conftest.err
6819 rm -f conftest.er1
6820 cat conftest.err >&5
6821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6822 (exit $ac_status); } && {
6823 test -z "$ac_c_werror_flag" ||
6824 test ! -s conftest.err
6825 } && test -s conftest.$ac_objext; then
6826 ac_cv_type_off_t=yes
6827 else
6828 echo "$as_me: failed program was:" >&5
6829 sed 's/^/| /' conftest.$ac_ext >&5
6831 ac_cv_type_off_t=no
6834 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6836 { echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
6837 echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
6838 if test $ac_cv_type_off_t = yes; then
6840 else
6842 cat >>confdefs.h <<_ACEOF
6843 #define off_t long int
6844 _ACEOF
6848 { echo "$as_me:$LINENO: checking for pid_t" >&5
6849 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
6850 if test "${ac_cv_type_pid_t+set}" = set; then
6851 echo $ECHO_N "(cached) $ECHO_C" >&6
6852 else
6853 cat >conftest.$ac_ext <<_ACEOF
6854 /* confdefs.h. */
6855 _ACEOF
6856 cat confdefs.h >>conftest.$ac_ext
6857 cat >>conftest.$ac_ext <<_ACEOF
6858 /* end confdefs.h. */
6859 $ac_includes_default
6860 typedef pid_t ac__type_new_;
6862 main ()
6864 if ((ac__type_new_ *) 0)
6865 return 0;
6866 if (sizeof (ac__type_new_))
6867 return 0;
6869 return 0;
6871 _ACEOF
6872 rm -f conftest.$ac_objext
6873 if { (ac_try="$ac_compile"
6874 case "(($ac_try" in
6875 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6876 *) ac_try_echo=$ac_try;;
6877 esac
6878 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6879 (eval "$ac_compile") 2>conftest.er1
6880 ac_status=$?
6881 grep -v '^ *+' conftest.er1 >conftest.err
6882 rm -f conftest.er1
6883 cat conftest.err >&5
6884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6885 (exit $ac_status); } && {
6886 test -z "$ac_c_werror_flag" ||
6887 test ! -s conftest.err
6888 } && test -s conftest.$ac_objext; then
6889 ac_cv_type_pid_t=yes
6890 else
6891 echo "$as_me: failed program was:" >&5
6892 sed 's/^/| /' conftest.$ac_ext >&5
6894 ac_cv_type_pid_t=no
6897 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6899 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
6900 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
6901 if test $ac_cv_type_pid_t = yes; then
6903 else
6905 cat >>confdefs.h <<_ACEOF
6906 #define pid_t int
6907 _ACEOF
6911 { echo "$as_me:$LINENO: checking return type of signal handlers" >&5
6912 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
6913 if test "${ac_cv_type_signal+set}" = set; then
6914 echo $ECHO_N "(cached) $ECHO_C" >&6
6915 else
6916 cat >conftest.$ac_ext <<_ACEOF
6917 /* confdefs.h. */
6918 _ACEOF
6919 cat confdefs.h >>conftest.$ac_ext
6920 cat >>conftest.$ac_ext <<_ACEOF
6921 /* end confdefs.h. */
6922 #include <sys/types.h>
6923 #include <signal.h>
6926 main ()
6928 return *(signal (0, 0)) (0) == 1;
6930 return 0;
6932 _ACEOF
6933 rm -f conftest.$ac_objext
6934 if { (ac_try="$ac_compile"
6935 case "(($ac_try" in
6936 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6937 *) ac_try_echo=$ac_try;;
6938 esac
6939 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6940 (eval "$ac_compile") 2>conftest.er1
6941 ac_status=$?
6942 grep -v '^ *+' conftest.er1 >conftest.err
6943 rm -f conftest.er1
6944 cat conftest.err >&5
6945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6946 (exit $ac_status); } && {
6947 test -z "$ac_c_werror_flag" ||
6948 test ! -s conftest.err
6949 } && test -s conftest.$ac_objext; then
6950 ac_cv_type_signal=int
6951 else
6952 echo "$as_me: failed program was:" >&5
6953 sed 's/^/| /' conftest.$ac_ext >&5
6955 ac_cv_type_signal=void
6958 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6960 { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
6961 echo "${ECHO_T}$ac_cv_type_signal" >&6; }
6963 cat >>confdefs.h <<_ACEOF
6964 #define RETSIGTYPE $ac_cv_type_signal
6965 _ACEOF
6968 { echo "$as_me:$LINENO: checking for size_t" >&5
6969 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
6970 if test "${ac_cv_type_size_t+set}" = set; then
6971 echo $ECHO_N "(cached) $ECHO_C" >&6
6972 else
6973 cat >conftest.$ac_ext <<_ACEOF
6974 /* confdefs.h. */
6975 _ACEOF
6976 cat confdefs.h >>conftest.$ac_ext
6977 cat >>conftest.$ac_ext <<_ACEOF
6978 /* end confdefs.h. */
6979 $ac_includes_default
6980 typedef size_t ac__type_new_;
6982 main ()
6984 if ((ac__type_new_ *) 0)
6985 return 0;
6986 if (sizeof (ac__type_new_))
6987 return 0;
6989 return 0;
6991 _ACEOF
6992 rm -f conftest.$ac_objext
6993 if { (ac_try="$ac_compile"
6994 case "(($ac_try" in
6995 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6996 *) ac_try_echo=$ac_try;;
6997 esac
6998 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6999 (eval "$ac_compile") 2>conftest.er1
7000 ac_status=$?
7001 grep -v '^ *+' conftest.er1 >conftest.err
7002 rm -f conftest.er1
7003 cat conftest.err >&5
7004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7005 (exit $ac_status); } && {
7006 test -z "$ac_c_werror_flag" ||
7007 test ! -s conftest.err
7008 } && test -s conftest.$ac_objext; then
7009 ac_cv_type_size_t=yes
7010 else
7011 echo "$as_me: failed program was:" >&5
7012 sed 's/^/| /' conftest.$ac_ext >&5
7014 ac_cv_type_size_t=no
7017 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7019 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
7020 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
7021 if test $ac_cv_type_size_t = yes; then
7023 else
7025 cat >>confdefs.h <<_ACEOF
7026 #define size_t unsigned int
7027 _ACEOF
7031 { echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
7032 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6; }
7033 if test "${ac_cv_type_uid_t+set}" = set; then
7034 echo $ECHO_N "(cached) $ECHO_C" >&6
7035 else
7036 cat >conftest.$ac_ext <<_ACEOF
7037 /* confdefs.h. */
7038 _ACEOF
7039 cat confdefs.h >>conftest.$ac_ext
7040 cat >>conftest.$ac_ext <<_ACEOF
7041 /* end confdefs.h. */
7042 #include <sys/types.h>
7044 _ACEOF
7045 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7046 $EGREP "uid_t" >/dev/null 2>&1; then
7047 ac_cv_type_uid_t=yes
7048 else
7049 ac_cv_type_uid_t=no
7051 rm -f conftest*
7054 { echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
7055 echo "${ECHO_T}$ac_cv_type_uid_t" >&6; }
7056 if test $ac_cv_type_uid_t = no; then
7058 cat >>confdefs.h <<\_ACEOF
7059 #define uid_t int
7060 _ACEOF
7063 cat >>confdefs.h <<\_ACEOF
7064 #define gid_t int
7065 _ACEOF
7070 { echo "$as_me:$LINENO: checking for uint32_t" >&5
7071 echo $ECHO_N "checking for uint32_t... $ECHO_C" >&6; }
7072 if test "${ac_cv_c_uint32_t+set}" = set; then
7073 echo $ECHO_N "(cached) $ECHO_C" >&6
7074 else
7075 ac_cv_c_uint32_t=no
7076 for ac_type in 'uint32_t' 'unsigned int' 'unsigned long int' \
7077 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
7078 cat >conftest.$ac_ext <<_ACEOF
7079 /* confdefs.h. */
7080 _ACEOF
7081 cat confdefs.h >>conftest.$ac_ext
7082 cat >>conftest.$ac_ext <<_ACEOF
7083 /* end confdefs.h. */
7084 $ac_includes_default
7086 main ()
7088 static int test_array [1 - 2 * !(($ac_type) -1 >> (32 - 1) == 1)];
7089 test_array [0] = 0
7092 return 0;
7094 _ACEOF
7095 rm -f conftest.$ac_objext
7096 if { (ac_try="$ac_compile"
7097 case "(($ac_try" in
7098 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7099 *) ac_try_echo=$ac_try;;
7100 esac
7101 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7102 (eval "$ac_compile") 2>conftest.er1
7103 ac_status=$?
7104 grep -v '^ *+' conftest.er1 >conftest.err
7105 rm -f conftest.er1
7106 cat conftest.err >&5
7107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7108 (exit $ac_status); } && {
7109 test -z "$ac_c_werror_flag" ||
7110 test ! -s conftest.err
7111 } && test -s conftest.$ac_objext; then
7112 case $ac_type in
7113 uint32_t) ac_cv_c_uint32_t=yes ;;
7114 *) ac_cv_c_uint32_t=$ac_type ;;
7115 esac
7117 else
7118 echo "$as_me: failed program was:" >&5
7119 sed 's/^/| /' conftest.$ac_ext >&5
7124 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7125 test "$ac_cv_c_uint32_t" != no && break
7126 done
7128 { echo "$as_me:$LINENO: result: $ac_cv_c_uint32_t" >&5
7129 echo "${ECHO_T}$ac_cv_c_uint32_t" >&6; }
7130 case $ac_cv_c_uint32_t in #(
7131 no|yes) ;; #(
7134 cat >>confdefs.h <<\_ACEOF
7135 #define _UINT32_T 1
7136 _ACEOF
7139 cat >>confdefs.h <<_ACEOF
7140 #define uint32_t $ac_cv_c_uint32_t
7141 _ACEOF
7143 esac
7146 { echo "$as_me:$LINENO: checking for uint64_t" >&5
7147 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; }
7148 if test "${ac_cv_c_uint64_t+set}" = set; then
7149 echo $ECHO_N "(cached) $ECHO_C" >&6
7150 else
7151 ac_cv_c_uint64_t=no
7152 for ac_type in 'uint64_t' 'unsigned int' 'unsigned long int' \
7153 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
7154 cat >conftest.$ac_ext <<_ACEOF
7155 /* confdefs.h. */
7156 _ACEOF
7157 cat confdefs.h >>conftest.$ac_ext
7158 cat >>conftest.$ac_ext <<_ACEOF
7159 /* end confdefs.h. */
7160 $ac_includes_default
7162 main ()
7164 static int test_array [1 - 2 * !(($ac_type) -1 >> (64 - 1) == 1)];
7165 test_array [0] = 0
7168 return 0;
7170 _ACEOF
7171 rm -f conftest.$ac_objext
7172 if { (ac_try="$ac_compile"
7173 case "(($ac_try" in
7174 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7175 *) ac_try_echo=$ac_try;;
7176 esac
7177 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7178 (eval "$ac_compile") 2>conftest.er1
7179 ac_status=$?
7180 grep -v '^ *+' conftest.er1 >conftest.err
7181 rm -f conftest.er1
7182 cat conftest.err >&5
7183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7184 (exit $ac_status); } && {
7185 test -z "$ac_c_werror_flag" ||
7186 test ! -s conftest.err
7187 } && test -s conftest.$ac_objext; then
7188 case $ac_type in
7189 uint64_t) ac_cv_c_uint64_t=yes ;;
7190 *) ac_cv_c_uint64_t=$ac_type ;;
7191 esac
7193 else
7194 echo "$as_me: failed program was:" >&5
7195 sed 's/^/| /' conftest.$ac_ext >&5
7200 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7201 test "$ac_cv_c_uint64_t" != no && break
7202 done
7204 { echo "$as_me:$LINENO: result: $ac_cv_c_uint64_t" >&5
7205 echo "${ECHO_T}$ac_cv_c_uint64_t" >&6; }
7206 case $ac_cv_c_uint64_t in #(
7207 no|yes) ;; #(
7210 cat >>confdefs.h <<\_ACEOF
7211 #define _UINT64_T 1
7212 _ACEOF
7215 cat >>confdefs.h <<_ACEOF
7216 #define uint64_t $ac_cv_c_uint64_t
7217 _ACEOF
7219 esac
7222 { echo "$as_me:$LINENO: checking for int32_t" >&5
7223 echo $ECHO_N "checking for int32_t... $ECHO_C" >&6; }
7224 if test "${ac_cv_c_int32_t+set}" = set; then
7225 echo $ECHO_N "(cached) $ECHO_C" >&6
7226 else
7227 ac_cv_c_int32_t=no
7228 for ac_type in 'int32_t' 'int' 'long int' \
7229 'long long int' 'short int' 'signed char'; do
7230 cat >conftest.$ac_ext <<_ACEOF
7231 /* confdefs.h. */
7232 _ACEOF
7233 cat confdefs.h >>conftest.$ac_ext
7234 cat >>conftest.$ac_ext <<_ACEOF
7235 /* end confdefs.h. */
7236 $ac_includes_default
7238 main ()
7240 static int test_array [1 - 2 * !(0 < ($ac_type) (((($ac_type) 1 << (32 - 2)) - 1) * 2 + 1))];
7241 test_array [0] = 0
7244 return 0;
7246 _ACEOF
7247 rm -f conftest.$ac_objext
7248 if { (ac_try="$ac_compile"
7249 case "(($ac_try" in
7250 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7251 *) ac_try_echo=$ac_try;;
7252 esac
7253 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7254 (eval "$ac_compile") 2>conftest.er1
7255 ac_status=$?
7256 grep -v '^ *+' conftest.er1 >conftest.err
7257 rm -f conftest.er1
7258 cat conftest.err >&5
7259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7260 (exit $ac_status); } && {
7261 test -z "$ac_c_werror_flag" ||
7262 test ! -s conftest.err
7263 } && test -s conftest.$ac_objext; then
7264 cat >conftest.$ac_ext <<_ACEOF
7265 /* confdefs.h. */
7266 _ACEOF
7267 cat confdefs.h >>conftest.$ac_ext
7268 cat >>conftest.$ac_ext <<_ACEOF
7269 /* end confdefs.h. */
7270 $ac_includes_default
7272 main ()
7274 static int test_array [1 - 2 * !(($ac_type) (((($ac_type) 1 << (32 - 2)) - 1) * 2 + 1)
7275 < ($ac_type) (((($ac_type) 1 << (32 - 2)) - 1) * 2 + 2))];
7276 test_array [0] = 0
7279 return 0;
7281 _ACEOF
7282 rm -f conftest.$ac_objext
7283 if { (ac_try="$ac_compile"
7284 case "(($ac_try" in
7285 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7286 *) ac_try_echo=$ac_try;;
7287 esac
7288 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7289 (eval "$ac_compile") 2>conftest.er1
7290 ac_status=$?
7291 grep -v '^ *+' conftest.er1 >conftest.err
7292 rm -f conftest.er1
7293 cat conftest.err >&5
7294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7295 (exit $ac_status); } && {
7296 test -z "$ac_c_werror_flag" ||
7297 test ! -s conftest.err
7298 } && test -s conftest.$ac_objext; then
7300 else
7301 echo "$as_me: failed program was:" >&5
7302 sed 's/^/| /' conftest.$ac_ext >&5
7304 case $ac_type in
7305 int32_t) ac_cv_c_int32_t=yes ;;
7306 *) ac_cv_c_int32_t=$ac_type ;;
7307 esac
7311 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7312 else
7313 echo "$as_me: failed program was:" >&5
7314 sed 's/^/| /' conftest.$ac_ext >&5
7319 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7320 test "$ac_cv_c_int32_t" != no && break
7321 done
7323 { echo "$as_me:$LINENO: result: $ac_cv_c_int32_t" >&5
7324 echo "${ECHO_T}$ac_cv_c_int32_t" >&6; }
7325 case $ac_cv_c_int32_t in #(
7326 no|yes) ;; #(
7329 cat >>confdefs.h <<_ACEOF
7330 #define int32_t $ac_cv_c_int32_t
7331 _ACEOF
7333 esac
7336 { echo "$as_me:$LINENO: checking for int64_t" >&5
7337 echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
7338 if test "${ac_cv_c_int64_t+set}" = set; then
7339 echo $ECHO_N "(cached) $ECHO_C" >&6
7340 else
7341 ac_cv_c_int64_t=no
7342 for ac_type in 'int64_t' 'int' 'long int' \
7343 'long long int' 'short int' 'signed char'; do
7344 cat >conftest.$ac_ext <<_ACEOF
7345 /* confdefs.h. */
7346 _ACEOF
7347 cat confdefs.h >>conftest.$ac_ext
7348 cat >>conftest.$ac_ext <<_ACEOF
7349 /* end confdefs.h. */
7350 $ac_includes_default
7352 main ()
7354 static int test_array [1 - 2 * !(0 < ($ac_type) (((($ac_type) 1 << (64 - 2)) - 1) * 2 + 1))];
7355 test_array [0] = 0
7358 return 0;
7360 _ACEOF
7361 rm -f conftest.$ac_objext
7362 if { (ac_try="$ac_compile"
7363 case "(($ac_try" in
7364 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7365 *) ac_try_echo=$ac_try;;
7366 esac
7367 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7368 (eval "$ac_compile") 2>conftest.er1
7369 ac_status=$?
7370 grep -v '^ *+' conftest.er1 >conftest.err
7371 rm -f conftest.er1
7372 cat conftest.err >&5
7373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7374 (exit $ac_status); } && {
7375 test -z "$ac_c_werror_flag" ||
7376 test ! -s conftest.err
7377 } && test -s conftest.$ac_objext; then
7378 cat >conftest.$ac_ext <<_ACEOF
7379 /* confdefs.h. */
7380 _ACEOF
7381 cat confdefs.h >>conftest.$ac_ext
7382 cat >>conftest.$ac_ext <<_ACEOF
7383 /* end confdefs.h. */
7384 $ac_includes_default
7386 main ()
7388 static int test_array [1 - 2 * !(($ac_type) (((($ac_type) 1 << (64 - 2)) - 1) * 2 + 1)
7389 < ($ac_type) (((($ac_type) 1 << (64 - 2)) - 1) * 2 + 2))];
7390 test_array [0] = 0
7393 return 0;
7395 _ACEOF
7396 rm -f conftest.$ac_objext
7397 if { (ac_try="$ac_compile"
7398 case "(($ac_try" in
7399 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7400 *) ac_try_echo=$ac_try;;
7401 esac
7402 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7403 (eval "$ac_compile") 2>conftest.er1
7404 ac_status=$?
7405 grep -v '^ *+' conftest.er1 >conftest.err
7406 rm -f conftest.er1
7407 cat conftest.err >&5
7408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7409 (exit $ac_status); } && {
7410 test -z "$ac_c_werror_flag" ||
7411 test ! -s conftest.err
7412 } && test -s conftest.$ac_objext; then
7414 else
7415 echo "$as_me: failed program was:" >&5
7416 sed 's/^/| /' conftest.$ac_ext >&5
7418 case $ac_type in
7419 int64_t) ac_cv_c_int64_t=yes ;;
7420 *) ac_cv_c_int64_t=$ac_type ;;
7421 esac
7425 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7426 else
7427 echo "$as_me: failed program was:" >&5
7428 sed 's/^/| /' conftest.$ac_ext >&5
7433 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7434 test "$ac_cv_c_int64_t" != no && break
7435 done
7437 { echo "$as_me:$LINENO: result: $ac_cv_c_int64_t" >&5
7438 echo "${ECHO_T}$ac_cv_c_int64_t" >&6; }
7439 case $ac_cv_c_int64_t in #(
7440 no|yes) ;; #(
7443 cat >>confdefs.h <<_ACEOF
7444 #define int64_t $ac_cv_c_int64_t
7445 _ACEOF
7447 esac
7449 { echo "$as_me:$LINENO: checking for ssize_t" >&5
7450 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6; }
7451 if test "${ac_cv_type_ssize_t+set}" = set; then
7452 echo $ECHO_N "(cached) $ECHO_C" >&6
7453 else
7454 cat >conftest.$ac_ext <<_ACEOF
7455 /* confdefs.h. */
7456 _ACEOF
7457 cat confdefs.h >>conftest.$ac_ext
7458 cat >>conftest.$ac_ext <<_ACEOF
7459 /* end confdefs.h. */
7460 $ac_includes_default
7461 typedef ssize_t ac__type_new_;
7463 main ()
7465 if ((ac__type_new_ *) 0)
7466 return 0;
7467 if (sizeof (ac__type_new_))
7468 return 0;
7470 return 0;
7472 _ACEOF
7473 rm -f conftest.$ac_objext
7474 if { (ac_try="$ac_compile"
7475 case "(($ac_try" in
7476 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7477 *) ac_try_echo=$ac_try;;
7478 esac
7479 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7480 (eval "$ac_compile") 2>conftest.er1
7481 ac_status=$?
7482 grep -v '^ *+' conftest.er1 >conftest.err
7483 rm -f conftest.er1
7484 cat conftest.err >&5
7485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7486 (exit $ac_status); } && {
7487 test -z "$ac_c_werror_flag" ||
7488 test ! -s conftest.err
7489 } && test -s conftest.$ac_objext; then
7490 ac_cv_type_ssize_t=yes
7491 else
7492 echo "$as_me: failed program was:" >&5
7493 sed 's/^/| /' conftest.$ac_ext >&5
7495 ac_cv_type_ssize_t=no
7498 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7500 { echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
7501 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6; }
7502 if test $ac_cv_type_ssize_t = yes; then
7504 cat >>confdefs.h <<\_ACEOF
7505 #define HAVE_SSIZE_T 1
7506 _ACEOF
7511 # Sizes of various common basic types
7512 # ANSI C requires sizeof(char) == 1, so no need to check it
7513 { echo "$as_me:$LINENO: checking for int" >&5
7514 echo $ECHO_N "checking for int... $ECHO_C" >&6; }
7515 if test "${ac_cv_type_int+set}" = set; then
7516 echo $ECHO_N "(cached) $ECHO_C" >&6
7517 else
7518 cat >conftest.$ac_ext <<_ACEOF
7519 /* confdefs.h. */
7520 _ACEOF
7521 cat confdefs.h >>conftest.$ac_ext
7522 cat >>conftest.$ac_ext <<_ACEOF
7523 /* end confdefs.h. */
7524 $ac_includes_default
7525 typedef int ac__type_new_;
7527 main ()
7529 if ((ac__type_new_ *) 0)
7530 return 0;
7531 if (sizeof (ac__type_new_))
7532 return 0;
7534 return 0;
7536 _ACEOF
7537 rm -f conftest.$ac_objext
7538 if { (ac_try="$ac_compile"
7539 case "(($ac_try" in
7540 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7541 *) ac_try_echo=$ac_try;;
7542 esac
7543 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7544 (eval "$ac_compile") 2>conftest.er1
7545 ac_status=$?
7546 grep -v '^ *+' conftest.er1 >conftest.err
7547 rm -f conftest.er1
7548 cat conftest.err >&5
7549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7550 (exit $ac_status); } && {
7551 test -z "$ac_c_werror_flag" ||
7552 test ! -s conftest.err
7553 } && test -s conftest.$ac_objext; then
7554 ac_cv_type_int=yes
7555 else
7556 echo "$as_me: failed program was:" >&5
7557 sed 's/^/| /' conftest.$ac_ext >&5
7559 ac_cv_type_int=no
7562 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7564 { echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
7565 echo "${ECHO_T}$ac_cv_type_int" >&6; }
7567 # The cast to long int works around a bug in the HP C Compiler
7568 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7569 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7570 # This bug is HP SR number 8606223364.
7571 { echo "$as_me:$LINENO: checking size of int" >&5
7572 echo $ECHO_N "checking size of int... $ECHO_C" >&6; }
7573 if test "${ac_cv_sizeof_int+set}" = set; then
7574 echo $ECHO_N "(cached) $ECHO_C" >&6
7575 else
7576 if test "$cross_compiling" = yes; then
7577 # Depending upon the size, compute the lo and hi bounds.
7578 cat >conftest.$ac_ext <<_ACEOF
7579 /* confdefs.h. */
7580 _ACEOF
7581 cat confdefs.h >>conftest.$ac_ext
7582 cat >>conftest.$ac_ext <<_ACEOF
7583 /* end confdefs.h. */
7584 $ac_includes_default
7585 typedef int ac__type_sizeof_;
7587 main ()
7589 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
7590 test_array [0] = 0
7593 return 0;
7595 _ACEOF
7596 rm -f conftest.$ac_objext
7597 if { (ac_try="$ac_compile"
7598 case "(($ac_try" in
7599 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7600 *) ac_try_echo=$ac_try;;
7601 esac
7602 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7603 (eval "$ac_compile") 2>conftest.er1
7604 ac_status=$?
7605 grep -v '^ *+' conftest.er1 >conftest.err
7606 rm -f conftest.er1
7607 cat conftest.err >&5
7608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7609 (exit $ac_status); } && {
7610 test -z "$ac_c_werror_flag" ||
7611 test ! -s conftest.err
7612 } && test -s conftest.$ac_objext; then
7613 ac_lo=0 ac_mid=0
7614 while :; do
7615 cat >conftest.$ac_ext <<_ACEOF
7616 /* confdefs.h. */
7617 _ACEOF
7618 cat confdefs.h >>conftest.$ac_ext
7619 cat >>conftest.$ac_ext <<_ACEOF
7620 /* end confdefs.h. */
7621 $ac_includes_default
7622 typedef int ac__type_sizeof_;
7624 main ()
7626 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
7627 test_array [0] = 0
7630 return 0;
7632 _ACEOF
7633 rm -f conftest.$ac_objext
7634 if { (ac_try="$ac_compile"
7635 case "(($ac_try" in
7636 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7637 *) ac_try_echo=$ac_try;;
7638 esac
7639 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7640 (eval "$ac_compile") 2>conftest.er1
7641 ac_status=$?
7642 grep -v '^ *+' conftest.er1 >conftest.err
7643 rm -f conftest.er1
7644 cat conftest.err >&5
7645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7646 (exit $ac_status); } && {
7647 test -z "$ac_c_werror_flag" ||
7648 test ! -s conftest.err
7649 } && test -s conftest.$ac_objext; then
7650 ac_hi=$ac_mid; break
7651 else
7652 echo "$as_me: failed program was:" >&5
7653 sed 's/^/| /' conftest.$ac_ext >&5
7655 ac_lo=`expr $ac_mid + 1`
7656 if test $ac_lo -le $ac_mid; then
7657 ac_lo= ac_hi=
7658 break
7660 ac_mid=`expr 2 '*' $ac_mid + 1`
7663 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7664 done
7665 else
7666 echo "$as_me: failed program was:" >&5
7667 sed 's/^/| /' conftest.$ac_ext >&5
7669 cat >conftest.$ac_ext <<_ACEOF
7670 /* confdefs.h. */
7671 _ACEOF
7672 cat confdefs.h >>conftest.$ac_ext
7673 cat >>conftest.$ac_ext <<_ACEOF
7674 /* end confdefs.h. */
7675 $ac_includes_default
7676 typedef int ac__type_sizeof_;
7678 main ()
7680 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
7681 test_array [0] = 0
7684 return 0;
7686 _ACEOF
7687 rm -f conftest.$ac_objext
7688 if { (ac_try="$ac_compile"
7689 case "(($ac_try" in
7690 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7691 *) ac_try_echo=$ac_try;;
7692 esac
7693 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7694 (eval "$ac_compile") 2>conftest.er1
7695 ac_status=$?
7696 grep -v '^ *+' conftest.er1 >conftest.err
7697 rm -f conftest.er1
7698 cat conftest.err >&5
7699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7700 (exit $ac_status); } && {
7701 test -z "$ac_c_werror_flag" ||
7702 test ! -s conftest.err
7703 } && test -s conftest.$ac_objext; then
7704 ac_hi=-1 ac_mid=-1
7705 while :; do
7706 cat >conftest.$ac_ext <<_ACEOF
7707 /* confdefs.h. */
7708 _ACEOF
7709 cat confdefs.h >>conftest.$ac_ext
7710 cat >>conftest.$ac_ext <<_ACEOF
7711 /* end confdefs.h. */
7712 $ac_includes_default
7713 typedef int ac__type_sizeof_;
7715 main ()
7717 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
7718 test_array [0] = 0
7721 return 0;
7723 _ACEOF
7724 rm -f conftest.$ac_objext
7725 if { (ac_try="$ac_compile"
7726 case "(($ac_try" in
7727 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7728 *) ac_try_echo=$ac_try;;
7729 esac
7730 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7731 (eval "$ac_compile") 2>conftest.er1
7732 ac_status=$?
7733 grep -v '^ *+' conftest.er1 >conftest.err
7734 rm -f conftest.er1
7735 cat conftest.err >&5
7736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7737 (exit $ac_status); } && {
7738 test -z "$ac_c_werror_flag" ||
7739 test ! -s conftest.err
7740 } && test -s conftest.$ac_objext; then
7741 ac_lo=$ac_mid; break
7742 else
7743 echo "$as_me: failed program was:" >&5
7744 sed 's/^/| /' conftest.$ac_ext >&5
7746 ac_hi=`expr '(' $ac_mid ')' - 1`
7747 if test $ac_mid -le $ac_hi; then
7748 ac_lo= ac_hi=
7749 break
7751 ac_mid=`expr 2 '*' $ac_mid`
7754 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7755 done
7756 else
7757 echo "$as_me: failed program was:" >&5
7758 sed 's/^/| /' conftest.$ac_ext >&5
7760 ac_lo= ac_hi=
7763 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7766 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7767 # Binary search between lo and hi bounds.
7768 while test "x$ac_lo" != "x$ac_hi"; do
7769 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
7770 cat >conftest.$ac_ext <<_ACEOF
7771 /* confdefs.h. */
7772 _ACEOF
7773 cat confdefs.h >>conftest.$ac_ext
7774 cat >>conftest.$ac_ext <<_ACEOF
7775 /* end confdefs.h. */
7776 $ac_includes_default
7777 typedef int ac__type_sizeof_;
7779 main ()
7781 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
7782 test_array [0] = 0
7785 return 0;
7787 _ACEOF
7788 rm -f conftest.$ac_objext
7789 if { (ac_try="$ac_compile"
7790 case "(($ac_try" in
7791 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7792 *) ac_try_echo=$ac_try;;
7793 esac
7794 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7795 (eval "$ac_compile") 2>conftest.er1
7796 ac_status=$?
7797 grep -v '^ *+' conftest.er1 >conftest.err
7798 rm -f conftest.er1
7799 cat conftest.err >&5
7800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7801 (exit $ac_status); } && {
7802 test -z "$ac_c_werror_flag" ||
7803 test ! -s conftest.err
7804 } && test -s conftest.$ac_objext; then
7805 ac_hi=$ac_mid
7806 else
7807 echo "$as_me: failed program was:" >&5
7808 sed 's/^/| /' conftest.$ac_ext >&5
7810 ac_lo=`expr '(' $ac_mid ')' + 1`
7813 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7814 done
7815 case $ac_lo in
7816 ?*) ac_cv_sizeof_int=$ac_lo;;
7817 '') if test "$ac_cv_type_int" = yes; then
7818 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
7819 See \`config.log' for more details." >&5
7820 echo "$as_me: error: cannot compute sizeof (int)
7821 See \`config.log' for more details." >&2;}
7822 { (exit 77); exit 77; }; }
7823 else
7824 ac_cv_sizeof_int=0
7825 fi ;;
7826 esac
7827 else
7828 cat >conftest.$ac_ext <<_ACEOF
7829 /* confdefs.h. */
7830 _ACEOF
7831 cat confdefs.h >>conftest.$ac_ext
7832 cat >>conftest.$ac_ext <<_ACEOF
7833 /* end confdefs.h. */
7834 $ac_includes_default
7835 typedef int ac__type_sizeof_;
7836 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
7837 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
7838 #include <stdio.h>
7839 #include <stdlib.h>
7841 main ()
7844 FILE *f = fopen ("conftest.val", "w");
7845 if (! f)
7846 return 1;
7847 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
7849 long int i = longval ();
7850 if (i != ((long int) (sizeof (ac__type_sizeof_))))
7851 return 1;
7852 fprintf (f, "%ld\n", i);
7854 else
7856 unsigned long int i = ulongval ();
7857 if (i != ((long int) (sizeof (ac__type_sizeof_))))
7858 return 1;
7859 fprintf (f, "%lu\n", i);
7861 return ferror (f) || fclose (f) != 0;
7864 return 0;
7866 _ACEOF
7867 rm -f conftest$ac_exeext
7868 if { (ac_try="$ac_link"
7869 case "(($ac_try" in
7870 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7871 *) ac_try_echo=$ac_try;;
7872 esac
7873 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7874 (eval "$ac_link") 2>&5
7875 ac_status=$?
7876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7877 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7878 { (case "(($ac_try" in
7879 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7880 *) ac_try_echo=$ac_try;;
7881 esac
7882 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7883 (eval "$ac_try") 2>&5
7884 ac_status=$?
7885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7886 (exit $ac_status); }; }; then
7887 ac_cv_sizeof_int=`cat conftest.val`
7888 else
7889 echo "$as_me: program exited with status $ac_status" >&5
7890 echo "$as_me: failed program was:" >&5
7891 sed 's/^/| /' conftest.$ac_ext >&5
7893 ( exit $ac_status )
7894 if test "$ac_cv_type_int" = yes; then
7895 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
7896 See \`config.log' for more details." >&5
7897 echo "$as_me: error: cannot compute sizeof (int)
7898 See \`config.log' for more details." >&2;}
7899 { (exit 77); exit 77; }; }
7900 else
7901 ac_cv_sizeof_int=0
7904 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7906 rm -f conftest.val
7908 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
7909 echo "${ECHO_T}$ac_cv_sizeof_int" >&6; }
7913 cat >>confdefs.h <<_ACEOF
7914 #define SIZEOF_INT $ac_cv_sizeof_int
7915 _ACEOF
7918 { echo "$as_me:$LINENO: checking for long" >&5
7919 echo $ECHO_N "checking for long... $ECHO_C" >&6; }
7920 if test "${ac_cv_type_long+set}" = set; then
7921 echo $ECHO_N "(cached) $ECHO_C" >&6
7922 else
7923 cat >conftest.$ac_ext <<_ACEOF
7924 /* confdefs.h. */
7925 _ACEOF
7926 cat confdefs.h >>conftest.$ac_ext
7927 cat >>conftest.$ac_ext <<_ACEOF
7928 /* end confdefs.h. */
7929 $ac_includes_default
7930 typedef long ac__type_new_;
7932 main ()
7934 if ((ac__type_new_ *) 0)
7935 return 0;
7936 if (sizeof (ac__type_new_))
7937 return 0;
7939 return 0;
7941 _ACEOF
7942 rm -f conftest.$ac_objext
7943 if { (ac_try="$ac_compile"
7944 case "(($ac_try" in
7945 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7946 *) ac_try_echo=$ac_try;;
7947 esac
7948 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7949 (eval "$ac_compile") 2>conftest.er1
7950 ac_status=$?
7951 grep -v '^ *+' conftest.er1 >conftest.err
7952 rm -f conftest.er1
7953 cat conftest.err >&5
7954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7955 (exit $ac_status); } && {
7956 test -z "$ac_c_werror_flag" ||
7957 test ! -s conftest.err
7958 } && test -s conftest.$ac_objext; then
7959 ac_cv_type_long=yes
7960 else
7961 echo "$as_me: failed program was:" >&5
7962 sed 's/^/| /' conftest.$ac_ext >&5
7964 ac_cv_type_long=no
7967 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7969 { echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
7970 echo "${ECHO_T}$ac_cv_type_long" >&6; }
7972 # The cast to long int works around a bug in the HP C Compiler
7973 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7974 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7975 # This bug is HP SR number 8606223364.
7976 { echo "$as_me:$LINENO: checking size of long" >&5
7977 echo $ECHO_N "checking size of long... $ECHO_C" >&6; }
7978 if test "${ac_cv_sizeof_long+set}" = set; then
7979 echo $ECHO_N "(cached) $ECHO_C" >&6
7980 else
7981 if test "$cross_compiling" = yes; then
7982 # Depending upon the size, compute the lo and hi bounds.
7983 cat >conftest.$ac_ext <<_ACEOF
7984 /* confdefs.h. */
7985 _ACEOF
7986 cat confdefs.h >>conftest.$ac_ext
7987 cat >>conftest.$ac_ext <<_ACEOF
7988 /* end confdefs.h. */
7989 $ac_includes_default
7990 typedef long ac__type_sizeof_;
7992 main ()
7994 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
7995 test_array [0] = 0
7998 return 0;
8000 _ACEOF
8001 rm -f conftest.$ac_objext
8002 if { (ac_try="$ac_compile"
8003 case "(($ac_try" in
8004 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8005 *) ac_try_echo=$ac_try;;
8006 esac
8007 eval "echo \"\$as_me:$LINENO: $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 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 ac_lo=0 ac_mid=0
8019 while :; do
8020 cat >conftest.$ac_ext <<_ACEOF
8021 /* confdefs.h. */
8022 _ACEOF
8023 cat confdefs.h >>conftest.$ac_ext
8024 cat >>conftest.$ac_ext <<_ACEOF
8025 /* end confdefs.h. */
8026 $ac_includes_default
8027 typedef long ac__type_sizeof_;
8029 main ()
8031 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
8032 test_array [0] = 0
8035 return 0;
8037 _ACEOF
8038 rm -f conftest.$ac_objext
8039 if { (ac_try="$ac_compile"
8040 case "(($ac_try" in
8041 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8042 *) ac_try_echo=$ac_try;;
8043 esac
8044 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8045 (eval "$ac_compile") 2>conftest.er1
8046 ac_status=$?
8047 grep -v '^ *+' conftest.er1 >conftest.err
8048 rm -f conftest.er1
8049 cat conftest.err >&5
8050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8051 (exit $ac_status); } && {
8052 test -z "$ac_c_werror_flag" ||
8053 test ! -s conftest.err
8054 } && test -s conftest.$ac_objext; then
8055 ac_hi=$ac_mid; break
8056 else
8057 echo "$as_me: failed program was:" >&5
8058 sed 's/^/| /' conftest.$ac_ext >&5
8060 ac_lo=`expr $ac_mid + 1`
8061 if test $ac_lo -le $ac_mid; then
8062 ac_lo= ac_hi=
8063 break
8065 ac_mid=`expr 2 '*' $ac_mid + 1`
8068 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8069 done
8070 else
8071 echo "$as_me: failed program was:" >&5
8072 sed 's/^/| /' conftest.$ac_ext >&5
8074 cat >conftest.$ac_ext <<_ACEOF
8075 /* confdefs.h. */
8076 _ACEOF
8077 cat confdefs.h >>conftest.$ac_ext
8078 cat >>conftest.$ac_ext <<_ACEOF
8079 /* end confdefs.h. */
8080 $ac_includes_default
8081 typedef long ac__type_sizeof_;
8083 main ()
8085 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
8086 test_array [0] = 0
8089 return 0;
8091 _ACEOF
8092 rm -f conftest.$ac_objext
8093 if { (ac_try="$ac_compile"
8094 case "(($ac_try" in
8095 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8096 *) ac_try_echo=$ac_try;;
8097 esac
8098 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8099 (eval "$ac_compile") 2>conftest.er1
8100 ac_status=$?
8101 grep -v '^ *+' conftest.er1 >conftest.err
8102 rm -f conftest.er1
8103 cat conftest.err >&5
8104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8105 (exit $ac_status); } && {
8106 test -z "$ac_c_werror_flag" ||
8107 test ! -s conftest.err
8108 } && test -s conftest.$ac_objext; then
8109 ac_hi=-1 ac_mid=-1
8110 while :; do
8111 cat >conftest.$ac_ext <<_ACEOF
8112 /* confdefs.h. */
8113 _ACEOF
8114 cat confdefs.h >>conftest.$ac_ext
8115 cat >>conftest.$ac_ext <<_ACEOF
8116 /* end confdefs.h. */
8117 $ac_includes_default
8118 typedef long ac__type_sizeof_;
8120 main ()
8122 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
8123 test_array [0] = 0
8126 return 0;
8128 _ACEOF
8129 rm -f conftest.$ac_objext
8130 if { (ac_try="$ac_compile"
8131 case "(($ac_try" in
8132 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8133 *) ac_try_echo=$ac_try;;
8134 esac
8135 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8136 (eval "$ac_compile") 2>conftest.er1
8137 ac_status=$?
8138 grep -v '^ *+' conftest.er1 >conftest.err
8139 rm -f conftest.er1
8140 cat conftest.err >&5
8141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8142 (exit $ac_status); } && {
8143 test -z "$ac_c_werror_flag" ||
8144 test ! -s conftest.err
8145 } && test -s conftest.$ac_objext; then
8146 ac_lo=$ac_mid; break
8147 else
8148 echo "$as_me: failed program was:" >&5
8149 sed 's/^/| /' conftest.$ac_ext >&5
8151 ac_hi=`expr '(' $ac_mid ')' - 1`
8152 if test $ac_mid -le $ac_hi; then
8153 ac_lo= ac_hi=
8154 break
8156 ac_mid=`expr 2 '*' $ac_mid`
8159 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8160 done
8161 else
8162 echo "$as_me: failed program was:" >&5
8163 sed 's/^/| /' conftest.$ac_ext >&5
8165 ac_lo= ac_hi=
8168 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8171 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8172 # Binary search between lo and hi bounds.
8173 while test "x$ac_lo" != "x$ac_hi"; do
8174 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
8175 cat >conftest.$ac_ext <<_ACEOF
8176 /* confdefs.h. */
8177 _ACEOF
8178 cat confdefs.h >>conftest.$ac_ext
8179 cat >>conftest.$ac_ext <<_ACEOF
8180 /* end confdefs.h. */
8181 $ac_includes_default
8182 typedef long ac__type_sizeof_;
8184 main ()
8186 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
8187 test_array [0] = 0
8190 return 0;
8192 _ACEOF
8193 rm -f conftest.$ac_objext
8194 if { (ac_try="$ac_compile"
8195 case "(($ac_try" in
8196 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8197 *) ac_try_echo=$ac_try;;
8198 esac
8199 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8200 (eval "$ac_compile") 2>conftest.er1
8201 ac_status=$?
8202 grep -v '^ *+' conftest.er1 >conftest.err
8203 rm -f conftest.er1
8204 cat conftest.err >&5
8205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8206 (exit $ac_status); } && {
8207 test -z "$ac_c_werror_flag" ||
8208 test ! -s conftest.err
8209 } && test -s conftest.$ac_objext; then
8210 ac_hi=$ac_mid
8211 else
8212 echo "$as_me: failed program was:" >&5
8213 sed 's/^/| /' conftest.$ac_ext >&5
8215 ac_lo=`expr '(' $ac_mid ')' + 1`
8218 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8219 done
8220 case $ac_lo in
8221 ?*) ac_cv_sizeof_long=$ac_lo;;
8222 '') if test "$ac_cv_type_long" = yes; then
8223 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long)
8224 See \`config.log' for more details." >&5
8225 echo "$as_me: error: cannot compute sizeof (long)
8226 See \`config.log' for more details." >&2;}
8227 { (exit 77); exit 77; }; }
8228 else
8229 ac_cv_sizeof_long=0
8230 fi ;;
8231 esac
8232 else
8233 cat >conftest.$ac_ext <<_ACEOF
8234 /* confdefs.h. */
8235 _ACEOF
8236 cat confdefs.h >>conftest.$ac_ext
8237 cat >>conftest.$ac_ext <<_ACEOF
8238 /* end confdefs.h. */
8239 $ac_includes_default
8240 typedef long ac__type_sizeof_;
8241 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
8242 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
8243 #include <stdio.h>
8244 #include <stdlib.h>
8246 main ()
8249 FILE *f = fopen ("conftest.val", "w");
8250 if (! f)
8251 return 1;
8252 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
8254 long int i = longval ();
8255 if (i != ((long int) (sizeof (ac__type_sizeof_))))
8256 return 1;
8257 fprintf (f, "%ld\n", i);
8259 else
8261 unsigned long int i = ulongval ();
8262 if (i != ((long int) (sizeof (ac__type_sizeof_))))
8263 return 1;
8264 fprintf (f, "%lu\n", i);
8266 return ferror (f) || fclose (f) != 0;
8269 return 0;
8271 _ACEOF
8272 rm -f conftest$ac_exeext
8273 if { (ac_try="$ac_link"
8274 case "(($ac_try" in
8275 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8276 *) ac_try_echo=$ac_try;;
8277 esac
8278 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8279 (eval "$ac_link") 2>&5
8280 ac_status=$?
8281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8282 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8283 { (case "(($ac_try" in
8284 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8285 *) ac_try_echo=$ac_try;;
8286 esac
8287 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8288 (eval "$ac_try") 2>&5
8289 ac_status=$?
8290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8291 (exit $ac_status); }; }; then
8292 ac_cv_sizeof_long=`cat conftest.val`
8293 else
8294 echo "$as_me: program exited with status $ac_status" >&5
8295 echo "$as_me: failed program was:" >&5
8296 sed 's/^/| /' conftest.$ac_ext >&5
8298 ( exit $ac_status )
8299 if test "$ac_cv_type_long" = yes; then
8300 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long)
8301 See \`config.log' for more details." >&5
8302 echo "$as_me: error: cannot compute sizeof (long)
8303 See \`config.log' for more details." >&2;}
8304 { (exit 77); exit 77; }; }
8305 else
8306 ac_cv_sizeof_long=0
8309 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8311 rm -f conftest.val
8313 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
8314 echo "${ECHO_T}$ac_cv_sizeof_long" >&6; }
8318 cat >>confdefs.h <<_ACEOF
8319 #define SIZEOF_LONG $ac_cv_sizeof_long
8320 _ACEOF
8323 { echo "$as_me:$LINENO: checking for void *" >&5
8324 echo $ECHO_N "checking for void *... $ECHO_C" >&6; }
8325 if test "${ac_cv_type_void_p+set}" = set; then
8326 echo $ECHO_N "(cached) $ECHO_C" >&6
8327 else
8328 cat >conftest.$ac_ext <<_ACEOF
8329 /* confdefs.h. */
8330 _ACEOF
8331 cat confdefs.h >>conftest.$ac_ext
8332 cat >>conftest.$ac_ext <<_ACEOF
8333 /* end confdefs.h. */
8334 $ac_includes_default
8335 typedef void * ac__type_new_;
8337 main ()
8339 if ((ac__type_new_ *) 0)
8340 return 0;
8341 if (sizeof (ac__type_new_))
8342 return 0;
8344 return 0;
8346 _ACEOF
8347 rm -f conftest.$ac_objext
8348 if { (ac_try="$ac_compile"
8349 case "(($ac_try" in
8350 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8351 *) ac_try_echo=$ac_try;;
8352 esac
8353 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8354 (eval "$ac_compile") 2>conftest.er1
8355 ac_status=$?
8356 grep -v '^ *+' conftest.er1 >conftest.err
8357 rm -f conftest.er1
8358 cat conftest.err >&5
8359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8360 (exit $ac_status); } && {
8361 test -z "$ac_c_werror_flag" ||
8362 test ! -s conftest.err
8363 } && test -s conftest.$ac_objext; then
8364 ac_cv_type_void_p=yes
8365 else
8366 echo "$as_me: failed program was:" >&5
8367 sed 's/^/| /' conftest.$ac_ext >&5
8369 ac_cv_type_void_p=no
8372 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8374 { echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5
8375 echo "${ECHO_T}$ac_cv_type_void_p" >&6; }
8377 # The cast to long int works around a bug in the HP C Compiler
8378 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8379 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
8380 # This bug is HP SR number 8606223364.
8381 { echo "$as_me:$LINENO: checking size of void *" >&5
8382 echo $ECHO_N "checking size of void *... $ECHO_C" >&6; }
8383 if test "${ac_cv_sizeof_void_p+set}" = set; then
8384 echo $ECHO_N "(cached) $ECHO_C" >&6
8385 else
8386 if test "$cross_compiling" = yes; then
8387 # Depending upon the size, compute the lo and hi bounds.
8388 cat >conftest.$ac_ext <<_ACEOF
8389 /* confdefs.h. */
8390 _ACEOF
8391 cat confdefs.h >>conftest.$ac_ext
8392 cat >>conftest.$ac_ext <<_ACEOF
8393 /* end confdefs.h. */
8394 $ac_includes_default
8395 typedef void * ac__type_sizeof_;
8397 main ()
8399 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
8400 test_array [0] = 0
8403 return 0;
8405 _ACEOF
8406 rm -f conftest.$ac_objext
8407 if { (ac_try="$ac_compile"
8408 case "(($ac_try" in
8409 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8410 *) ac_try_echo=$ac_try;;
8411 esac
8412 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8413 (eval "$ac_compile") 2>conftest.er1
8414 ac_status=$?
8415 grep -v '^ *+' conftest.er1 >conftest.err
8416 rm -f conftest.er1
8417 cat conftest.err >&5
8418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8419 (exit $ac_status); } && {
8420 test -z "$ac_c_werror_flag" ||
8421 test ! -s conftest.err
8422 } && test -s conftest.$ac_objext; then
8423 ac_lo=0 ac_mid=0
8424 while :; do
8425 cat >conftest.$ac_ext <<_ACEOF
8426 /* confdefs.h. */
8427 _ACEOF
8428 cat confdefs.h >>conftest.$ac_ext
8429 cat >>conftest.$ac_ext <<_ACEOF
8430 /* end confdefs.h. */
8431 $ac_includes_default
8432 typedef void * ac__type_sizeof_;
8434 main ()
8436 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
8437 test_array [0] = 0
8440 return 0;
8442 _ACEOF
8443 rm -f conftest.$ac_objext
8444 if { (ac_try="$ac_compile"
8445 case "(($ac_try" in
8446 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8447 *) ac_try_echo=$ac_try;;
8448 esac
8449 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8450 (eval "$ac_compile") 2>conftest.er1
8451 ac_status=$?
8452 grep -v '^ *+' conftest.er1 >conftest.err
8453 rm -f conftest.er1
8454 cat conftest.err >&5
8455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8456 (exit $ac_status); } && {
8457 test -z "$ac_c_werror_flag" ||
8458 test ! -s conftest.err
8459 } && test -s conftest.$ac_objext; then
8460 ac_hi=$ac_mid; break
8461 else
8462 echo "$as_me: failed program was:" >&5
8463 sed 's/^/| /' conftest.$ac_ext >&5
8465 ac_lo=`expr $ac_mid + 1`
8466 if test $ac_lo -le $ac_mid; then
8467 ac_lo= ac_hi=
8468 break
8470 ac_mid=`expr 2 '*' $ac_mid + 1`
8473 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8474 done
8475 else
8476 echo "$as_me: failed program was:" >&5
8477 sed 's/^/| /' conftest.$ac_ext >&5
8479 cat >conftest.$ac_ext <<_ACEOF
8480 /* confdefs.h. */
8481 _ACEOF
8482 cat confdefs.h >>conftest.$ac_ext
8483 cat >>conftest.$ac_ext <<_ACEOF
8484 /* end confdefs.h. */
8485 $ac_includes_default
8486 typedef void * ac__type_sizeof_;
8488 main ()
8490 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
8491 test_array [0] = 0
8494 return 0;
8496 _ACEOF
8497 rm -f conftest.$ac_objext
8498 if { (ac_try="$ac_compile"
8499 case "(($ac_try" in
8500 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8501 *) ac_try_echo=$ac_try;;
8502 esac
8503 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8504 (eval "$ac_compile") 2>conftest.er1
8505 ac_status=$?
8506 grep -v '^ *+' conftest.er1 >conftest.err
8507 rm -f conftest.er1
8508 cat conftest.err >&5
8509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8510 (exit $ac_status); } && {
8511 test -z "$ac_c_werror_flag" ||
8512 test ! -s conftest.err
8513 } && test -s conftest.$ac_objext; then
8514 ac_hi=-1 ac_mid=-1
8515 while :; do
8516 cat >conftest.$ac_ext <<_ACEOF
8517 /* confdefs.h. */
8518 _ACEOF
8519 cat confdefs.h >>conftest.$ac_ext
8520 cat >>conftest.$ac_ext <<_ACEOF
8521 /* end confdefs.h. */
8522 $ac_includes_default
8523 typedef void * ac__type_sizeof_;
8525 main ()
8527 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
8528 test_array [0] = 0
8531 return 0;
8533 _ACEOF
8534 rm -f conftest.$ac_objext
8535 if { (ac_try="$ac_compile"
8536 case "(($ac_try" in
8537 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8538 *) ac_try_echo=$ac_try;;
8539 esac
8540 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8541 (eval "$ac_compile") 2>conftest.er1
8542 ac_status=$?
8543 grep -v '^ *+' conftest.er1 >conftest.err
8544 rm -f conftest.er1
8545 cat conftest.err >&5
8546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8547 (exit $ac_status); } && {
8548 test -z "$ac_c_werror_flag" ||
8549 test ! -s conftest.err
8550 } && test -s conftest.$ac_objext; then
8551 ac_lo=$ac_mid; break
8552 else
8553 echo "$as_me: failed program was:" >&5
8554 sed 's/^/| /' conftest.$ac_ext >&5
8556 ac_hi=`expr '(' $ac_mid ')' - 1`
8557 if test $ac_mid -le $ac_hi; then
8558 ac_lo= ac_hi=
8559 break
8561 ac_mid=`expr 2 '*' $ac_mid`
8564 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8565 done
8566 else
8567 echo "$as_me: failed program was:" >&5
8568 sed 's/^/| /' conftest.$ac_ext >&5
8570 ac_lo= ac_hi=
8573 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8576 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8577 # Binary search between lo and hi bounds.
8578 while test "x$ac_lo" != "x$ac_hi"; do
8579 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
8580 cat >conftest.$ac_ext <<_ACEOF
8581 /* confdefs.h. */
8582 _ACEOF
8583 cat confdefs.h >>conftest.$ac_ext
8584 cat >>conftest.$ac_ext <<_ACEOF
8585 /* end confdefs.h. */
8586 $ac_includes_default
8587 typedef void * ac__type_sizeof_;
8589 main ()
8591 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
8592 test_array [0] = 0
8595 return 0;
8597 _ACEOF
8598 rm -f conftest.$ac_objext
8599 if { (ac_try="$ac_compile"
8600 case "(($ac_try" in
8601 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8602 *) ac_try_echo=$ac_try;;
8603 esac
8604 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8605 (eval "$ac_compile") 2>conftest.er1
8606 ac_status=$?
8607 grep -v '^ *+' conftest.er1 >conftest.err
8608 rm -f conftest.er1
8609 cat conftest.err >&5
8610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8611 (exit $ac_status); } && {
8612 test -z "$ac_c_werror_flag" ||
8613 test ! -s conftest.err
8614 } && test -s conftest.$ac_objext; then
8615 ac_hi=$ac_mid
8616 else
8617 echo "$as_me: failed program was:" >&5
8618 sed 's/^/| /' conftest.$ac_ext >&5
8620 ac_lo=`expr '(' $ac_mid ')' + 1`
8623 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8624 done
8625 case $ac_lo in
8626 ?*) ac_cv_sizeof_void_p=$ac_lo;;
8627 '') if test "$ac_cv_type_void_p" = yes; then
8628 { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *)
8629 See \`config.log' for more details." >&5
8630 echo "$as_me: error: cannot compute sizeof (void *)
8631 See \`config.log' for more details." >&2;}
8632 { (exit 77); exit 77; }; }
8633 else
8634 ac_cv_sizeof_void_p=0
8635 fi ;;
8636 esac
8637 else
8638 cat >conftest.$ac_ext <<_ACEOF
8639 /* confdefs.h. */
8640 _ACEOF
8641 cat confdefs.h >>conftest.$ac_ext
8642 cat >>conftest.$ac_ext <<_ACEOF
8643 /* end confdefs.h. */
8644 $ac_includes_default
8645 typedef void * ac__type_sizeof_;
8646 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
8647 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
8648 #include <stdio.h>
8649 #include <stdlib.h>
8651 main ()
8654 FILE *f = fopen ("conftest.val", "w");
8655 if (! f)
8656 return 1;
8657 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
8659 long int i = longval ();
8660 if (i != ((long int) (sizeof (ac__type_sizeof_))))
8661 return 1;
8662 fprintf (f, "%ld\n", i);
8664 else
8666 unsigned long int i = ulongval ();
8667 if (i != ((long int) (sizeof (ac__type_sizeof_))))
8668 return 1;
8669 fprintf (f, "%lu\n", i);
8671 return ferror (f) || fclose (f) != 0;
8674 return 0;
8676 _ACEOF
8677 rm -f conftest$ac_exeext
8678 if { (ac_try="$ac_link"
8679 case "(($ac_try" in
8680 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8681 *) ac_try_echo=$ac_try;;
8682 esac
8683 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8684 (eval "$ac_link") 2>&5
8685 ac_status=$?
8686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8687 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8688 { (case "(($ac_try" in
8689 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8690 *) ac_try_echo=$ac_try;;
8691 esac
8692 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8693 (eval "$ac_try") 2>&5
8694 ac_status=$?
8695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8696 (exit $ac_status); }; }; then
8697 ac_cv_sizeof_void_p=`cat conftest.val`
8698 else
8699 echo "$as_me: program exited with status $ac_status" >&5
8700 echo "$as_me: failed program was:" >&5
8701 sed 's/^/| /' conftest.$ac_ext >&5
8703 ( exit $ac_status )
8704 if test "$ac_cv_type_void_p" = yes; then
8705 { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *)
8706 See \`config.log' for more details." >&5
8707 echo "$as_me: error: cannot compute sizeof (void *)
8708 See \`config.log' for more details." >&2;}
8709 { (exit 77); exit 77; }; }
8710 else
8711 ac_cv_sizeof_void_p=0
8714 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8716 rm -f conftest.val
8718 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
8719 echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6; }
8723 cat >>confdefs.h <<_ACEOF
8724 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
8725 _ACEOF
8728 { echo "$as_me:$LINENO: checking for short" >&5
8729 echo $ECHO_N "checking for short... $ECHO_C" >&6; }
8730 if test "${ac_cv_type_short+set}" = set; then
8731 echo $ECHO_N "(cached) $ECHO_C" >&6
8732 else
8733 cat >conftest.$ac_ext <<_ACEOF
8734 /* confdefs.h. */
8735 _ACEOF
8736 cat confdefs.h >>conftest.$ac_ext
8737 cat >>conftest.$ac_ext <<_ACEOF
8738 /* end confdefs.h. */
8739 $ac_includes_default
8740 typedef short ac__type_new_;
8742 main ()
8744 if ((ac__type_new_ *) 0)
8745 return 0;
8746 if (sizeof (ac__type_new_))
8747 return 0;
8749 return 0;
8751 _ACEOF
8752 rm -f conftest.$ac_objext
8753 if { (ac_try="$ac_compile"
8754 case "(($ac_try" in
8755 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8756 *) ac_try_echo=$ac_try;;
8757 esac
8758 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8759 (eval "$ac_compile") 2>conftest.er1
8760 ac_status=$?
8761 grep -v '^ *+' conftest.er1 >conftest.err
8762 rm -f conftest.er1
8763 cat conftest.err >&5
8764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8765 (exit $ac_status); } && {
8766 test -z "$ac_c_werror_flag" ||
8767 test ! -s conftest.err
8768 } && test -s conftest.$ac_objext; then
8769 ac_cv_type_short=yes
8770 else
8771 echo "$as_me: failed program was:" >&5
8772 sed 's/^/| /' conftest.$ac_ext >&5
8774 ac_cv_type_short=no
8777 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8779 { echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
8780 echo "${ECHO_T}$ac_cv_type_short" >&6; }
8782 # The cast to long int works around a bug in the HP C Compiler
8783 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8784 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
8785 # This bug is HP SR number 8606223364.
8786 { echo "$as_me:$LINENO: checking size of short" >&5
8787 echo $ECHO_N "checking size of short... $ECHO_C" >&6; }
8788 if test "${ac_cv_sizeof_short+set}" = set; then
8789 echo $ECHO_N "(cached) $ECHO_C" >&6
8790 else
8791 if test "$cross_compiling" = yes; then
8792 # Depending upon the size, compute the lo and hi bounds.
8793 cat >conftest.$ac_ext <<_ACEOF
8794 /* confdefs.h. */
8795 _ACEOF
8796 cat confdefs.h >>conftest.$ac_ext
8797 cat >>conftest.$ac_ext <<_ACEOF
8798 /* end confdefs.h. */
8799 $ac_includes_default
8800 typedef short ac__type_sizeof_;
8802 main ()
8804 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
8805 test_array [0] = 0
8808 return 0;
8810 _ACEOF
8811 rm -f conftest.$ac_objext
8812 if { (ac_try="$ac_compile"
8813 case "(($ac_try" in
8814 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8815 *) ac_try_echo=$ac_try;;
8816 esac
8817 eval "echo \"\$as_me:$LINENO: $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 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_lo=0 ac_mid=0
8829 while :; do
8830 cat >conftest.$ac_ext <<_ACEOF
8831 /* confdefs.h. */
8832 _ACEOF
8833 cat confdefs.h >>conftest.$ac_ext
8834 cat >>conftest.$ac_ext <<_ACEOF
8835 /* end confdefs.h. */
8836 $ac_includes_default
8837 typedef short ac__type_sizeof_;
8839 main ()
8841 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
8842 test_array [0] = 0
8845 return 0;
8847 _ACEOF
8848 rm -f conftest.$ac_objext
8849 if { (ac_try="$ac_compile"
8850 case "(($ac_try" in
8851 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8852 *) ac_try_echo=$ac_try;;
8853 esac
8854 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8855 (eval "$ac_compile") 2>conftest.er1
8856 ac_status=$?
8857 grep -v '^ *+' conftest.er1 >conftest.err
8858 rm -f conftest.er1
8859 cat conftest.err >&5
8860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8861 (exit $ac_status); } && {
8862 test -z "$ac_c_werror_flag" ||
8863 test ! -s conftest.err
8864 } && test -s conftest.$ac_objext; then
8865 ac_hi=$ac_mid; break
8866 else
8867 echo "$as_me: failed program was:" >&5
8868 sed 's/^/| /' conftest.$ac_ext >&5
8870 ac_lo=`expr $ac_mid + 1`
8871 if test $ac_lo -le $ac_mid; then
8872 ac_lo= ac_hi=
8873 break
8875 ac_mid=`expr 2 '*' $ac_mid + 1`
8878 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8879 done
8880 else
8881 echo "$as_me: failed program was:" >&5
8882 sed 's/^/| /' conftest.$ac_ext >&5
8884 cat >conftest.$ac_ext <<_ACEOF
8885 /* confdefs.h. */
8886 _ACEOF
8887 cat confdefs.h >>conftest.$ac_ext
8888 cat >>conftest.$ac_ext <<_ACEOF
8889 /* end confdefs.h. */
8890 $ac_includes_default
8891 typedef short ac__type_sizeof_;
8893 main ()
8895 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
8896 test_array [0] = 0
8899 return 0;
8901 _ACEOF
8902 rm -f conftest.$ac_objext
8903 if { (ac_try="$ac_compile"
8904 case "(($ac_try" in
8905 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8906 *) ac_try_echo=$ac_try;;
8907 esac
8908 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8909 (eval "$ac_compile") 2>conftest.er1
8910 ac_status=$?
8911 grep -v '^ *+' conftest.er1 >conftest.err
8912 rm -f conftest.er1
8913 cat conftest.err >&5
8914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8915 (exit $ac_status); } && {
8916 test -z "$ac_c_werror_flag" ||
8917 test ! -s conftest.err
8918 } && test -s conftest.$ac_objext; then
8919 ac_hi=-1 ac_mid=-1
8920 while :; do
8921 cat >conftest.$ac_ext <<_ACEOF
8922 /* confdefs.h. */
8923 _ACEOF
8924 cat confdefs.h >>conftest.$ac_ext
8925 cat >>conftest.$ac_ext <<_ACEOF
8926 /* end confdefs.h. */
8927 $ac_includes_default
8928 typedef short ac__type_sizeof_;
8930 main ()
8932 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
8933 test_array [0] = 0
8936 return 0;
8938 _ACEOF
8939 rm -f conftest.$ac_objext
8940 if { (ac_try="$ac_compile"
8941 case "(($ac_try" in
8942 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8943 *) ac_try_echo=$ac_try;;
8944 esac
8945 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8946 (eval "$ac_compile") 2>conftest.er1
8947 ac_status=$?
8948 grep -v '^ *+' conftest.er1 >conftest.err
8949 rm -f conftest.er1
8950 cat conftest.err >&5
8951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8952 (exit $ac_status); } && {
8953 test -z "$ac_c_werror_flag" ||
8954 test ! -s conftest.err
8955 } && test -s conftest.$ac_objext; then
8956 ac_lo=$ac_mid; break
8957 else
8958 echo "$as_me: failed program was:" >&5
8959 sed 's/^/| /' conftest.$ac_ext >&5
8961 ac_hi=`expr '(' $ac_mid ')' - 1`
8962 if test $ac_mid -le $ac_hi; then
8963 ac_lo= ac_hi=
8964 break
8966 ac_mid=`expr 2 '*' $ac_mid`
8969 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8970 done
8971 else
8972 echo "$as_me: failed program was:" >&5
8973 sed 's/^/| /' conftest.$ac_ext >&5
8975 ac_lo= ac_hi=
8978 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8981 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8982 # Binary search between lo and hi bounds.
8983 while test "x$ac_lo" != "x$ac_hi"; do
8984 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
8985 cat >conftest.$ac_ext <<_ACEOF
8986 /* confdefs.h. */
8987 _ACEOF
8988 cat confdefs.h >>conftest.$ac_ext
8989 cat >>conftest.$ac_ext <<_ACEOF
8990 /* end confdefs.h. */
8991 $ac_includes_default
8992 typedef short ac__type_sizeof_;
8994 main ()
8996 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
8997 test_array [0] = 0
9000 return 0;
9002 _ACEOF
9003 rm -f conftest.$ac_objext
9004 if { (ac_try="$ac_compile"
9005 case "(($ac_try" in
9006 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9007 *) ac_try_echo=$ac_try;;
9008 esac
9009 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9010 (eval "$ac_compile") 2>conftest.er1
9011 ac_status=$?
9012 grep -v '^ *+' conftest.er1 >conftest.err
9013 rm -f conftest.er1
9014 cat conftest.err >&5
9015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9016 (exit $ac_status); } && {
9017 test -z "$ac_c_werror_flag" ||
9018 test ! -s conftest.err
9019 } && test -s conftest.$ac_objext; then
9020 ac_hi=$ac_mid
9021 else
9022 echo "$as_me: failed program was:" >&5
9023 sed 's/^/| /' conftest.$ac_ext >&5
9025 ac_lo=`expr '(' $ac_mid ')' + 1`
9028 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9029 done
9030 case $ac_lo in
9031 ?*) ac_cv_sizeof_short=$ac_lo;;
9032 '') if test "$ac_cv_type_short" = yes; then
9033 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short)
9034 See \`config.log' for more details." >&5
9035 echo "$as_me: error: cannot compute sizeof (short)
9036 See \`config.log' for more details." >&2;}
9037 { (exit 77); exit 77; }; }
9038 else
9039 ac_cv_sizeof_short=0
9040 fi ;;
9041 esac
9042 else
9043 cat >conftest.$ac_ext <<_ACEOF
9044 /* confdefs.h. */
9045 _ACEOF
9046 cat confdefs.h >>conftest.$ac_ext
9047 cat >>conftest.$ac_ext <<_ACEOF
9048 /* end confdefs.h. */
9049 $ac_includes_default
9050 typedef short ac__type_sizeof_;
9051 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
9052 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
9053 #include <stdio.h>
9054 #include <stdlib.h>
9056 main ()
9059 FILE *f = fopen ("conftest.val", "w");
9060 if (! f)
9061 return 1;
9062 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
9064 long int i = longval ();
9065 if (i != ((long int) (sizeof (ac__type_sizeof_))))
9066 return 1;
9067 fprintf (f, "%ld\n", i);
9069 else
9071 unsigned long int i = ulongval ();
9072 if (i != ((long int) (sizeof (ac__type_sizeof_))))
9073 return 1;
9074 fprintf (f, "%lu\n", i);
9076 return ferror (f) || fclose (f) != 0;
9079 return 0;
9081 _ACEOF
9082 rm -f conftest$ac_exeext
9083 if { (ac_try="$ac_link"
9084 case "(($ac_try" in
9085 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9086 *) ac_try_echo=$ac_try;;
9087 esac
9088 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9089 (eval "$ac_link") 2>&5
9090 ac_status=$?
9091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9092 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9093 { (case "(($ac_try" in
9094 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9095 *) ac_try_echo=$ac_try;;
9096 esac
9097 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9098 (eval "$ac_try") 2>&5
9099 ac_status=$?
9100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9101 (exit $ac_status); }; }; then
9102 ac_cv_sizeof_short=`cat conftest.val`
9103 else
9104 echo "$as_me: program exited with status $ac_status" >&5
9105 echo "$as_me: failed program was:" >&5
9106 sed 's/^/| /' conftest.$ac_ext >&5
9108 ( exit $ac_status )
9109 if test "$ac_cv_type_short" = yes; then
9110 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short)
9111 See \`config.log' for more details." >&5
9112 echo "$as_me: error: cannot compute sizeof (short)
9113 See \`config.log' for more details." >&2;}
9114 { (exit 77); exit 77; }; }
9115 else
9116 ac_cv_sizeof_short=0
9119 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9121 rm -f conftest.val
9123 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
9124 echo "${ECHO_T}$ac_cv_sizeof_short" >&6; }
9128 cat >>confdefs.h <<_ACEOF
9129 #define SIZEOF_SHORT $ac_cv_sizeof_short
9130 _ACEOF
9133 { echo "$as_me:$LINENO: checking for float" >&5
9134 echo $ECHO_N "checking for float... $ECHO_C" >&6; }
9135 if test "${ac_cv_type_float+set}" = set; then
9136 echo $ECHO_N "(cached) $ECHO_C" >&6
9137 else
9138 cat >conftest.$ac_ext <<_ACEOF
9139 /* confdefs.h. */
9140 _ACEOF
9141 cat confdefs.h >>conftest.$ac_ext
9142 cat >>conftest.$ac_ext <<_ACEOF
9143 /* end confdefs.h. */
9144 $ac_includes_default
9145 typedef float ac__type_new_;
9147 main ()
9149 if ((ac__type_new_ *) 0)
9150 return 0;
9151 if (sizeof (ac__type_new_))
9152 return 0;
9154 return 0;
9156 _ACEOF
9157 rm -f conftest.$ac_objext
9158 if { (ac_try="$ac_compile"
9159 case "(($ac_try" in
9160 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9161 *) ac_try_echo=$ac_try;;
9162 esac
9163 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9164 (eval "$ac_compile") 2>conftest.er1
9165 ac_status=$?
9166 grep -v '^ *+' conftest.er1 >conftest.err
9167 rm -f conftest.er1
9168 cat conftest.err >&5
9169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9170 (exit $ac_status); } && {
9171 test -z "$ac_c_werror_flag" ||
9172 test ! -s conftest.err
9173 } && test -s conftest.$ac_objext; then
9174 ac_cv_type_float=yes
9175 else
9176 echo "$as_me: failed program was:" >&5
9177 sed 's/^/| /' conftest.$ac_ext >&5
9179 ac_cv_type_float=no
9182 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9184 { echo "$as_me:$LINENO: result: $ac_cv_type_float" >&5
9185 echo "${ECHO_T}$ac_cv_type_float" >&6; }
9187 # The cast to long int works around a bug in the HP C Compiler
9188 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
9189 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
9190 # This bug is HP SR number 8606223364.
9191 { echo "$as_me:$LINENO: checking size of float" >&5
9192 echo $ECHO_N "checking size of float... $ECHO_C" >&6; }
9193 if test "${ac_cv_sizeof_float+set}" = set; then
9194 echo $ECHO_N "(cached) $ECHO_C" >&6
9195 else
9196 if test "$cross_compiling" = yes; then
9197 # Depending upon the size, compute the lo and hi bounds.
9198 cat >conftest.$ac_ext <<_ACEOF
9199 /* confdefs.h. */
9200 _ACEOF
9201 cat confdefs.h >>conftest.$ac_ext
9202 cat >>conftest.$ac_ext <<_ACEOF
9203 /* end confdefs.h. */
9204 $ac_includes_default
9205 typedef float ac__type_sizeof_;
9207 main ()
9209 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
9210 test_array [0] = 0
9213 return 0;
9215 _ACEOF
9216 rm -f conftest.$ac_objext
9217 if { (ac_try="$ac_compile"
9218 case "(($ac_try" in
9219 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9220 *) ac_try_echo=$ac_try;;
9221 esac
9222 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9223 (eval "$ac_compile") 2>conftest.er1
9224 ac_status=$?
9225 grep -v '^ *+' conftest.er1 >conftest.err
9226 rm -f conftest.er1
9227 cat conftest.err >&5
9228 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_objext; then
9233 ac_lo=0 ac_mid=0
9234 while :; do
9235 cat >conftest.$ac_ext <<_ACEOF
9236 /* confdefs.h. */
9237 _ACEOF
9238 cat confdefs.h >>conftest.$ac_ext
9239 cat >>conftest.$ac_ext <<_ACEOF
9240 /* end confdefs.h. */
9241 $ac_includes_default
9242 typedef float ac__type_sizeof_;
9244 main ()
9246 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
9247 test_array [0] = 0
9250 return 0;
9252 _ACEOF
9253 rm -f conftest.$ac_objext
9254 if { (ac_try="$ac_compile"
9255 case "(($ac_try" in
9256 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9257 *) ac_try_echo=$ac_try;;
9258 esac
9259 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9260 (eval "$ac_compile") 2>conftest.er1
9261 ac_status=$?
9262 grep -v '^ *+' conftest.er1 >conftest.err
9263 rm -f conftest.er1
9264 cat conftest.err >&5
9265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9266 (exit $ac_status); } && {
9267 test -z "$ac_c_werror_flag" ||
9268 test ! -s conftest.err
9269 } && test -s conftest.$ac_objext; then
9270 ac_hi=$ac_mid; break
9271 else
9272 echo "$as_me: failed program was:" >&5
9273 sed 's/^/| /' conftest.$ac_ext >&5
9275 ac_lo=`expr $ac_mid + 1`
9276 if test $ac_lo -le $ac_mid; then
9277 ac_lo= ac_hi=
9278 break
9280 ac_mid=`expr 2 '*' $ac_mid + 1`
9283 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9284 done
9285 else
9286 echo "$as_me: failed program was:" >&5
9287 sed 's/^/| /' conftest.$ac_ext >&5
9289 cat >conftest.$ac_ext <<_ACEOF
9290 /* confdefs.h. */
9291 _ACEOF
9292 cat confdefs.h >>conftest.$ac_ext
9293 cat >>conftest.$ac_ext <<_ACEOF
9294 /* end confdefs.h. */
9295 $ac_includes_default
9296 typedef float ac__type_sizeof_;
9298 main ()
9300 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
9301 test_array [0] = 0
9304 return 0;
9306 _ACEOF
9307 rm -f conftest.$ac_objext
9308 if { (ac_try="$ac_compile"
9309 case "(($ac_try" in
9310 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9311 *) ac_try_echo=$ac_try;;
9312 esac
9313 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9314 (eval "$ac_compile") 2>conftest.er1
9315 ac_status=$?
9316 grep -v '^ *+' conftest.er1 >conftest.err
9317 rm -f conftest.er1
9318 cat conftest.err >&5
9319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9320 (exit $ac_status); } && {
9321 test -z "$ac_c_werror_flag" ||
9322 test ! -s conftest.err
9323 } && test -s conftest.$ac_objext; then
9324 ac_hi=-1 ac_mid=-1
9325 while :; do
9326 cat >conftest.$ac_ext <<_ACEOF
9327 /* confdefs.h. */
9328 _ACEOF
9329 cat confdefs.h >>conftest.$ac_ext
9330 cat >>conftest.$ac_ext <<_ACEOF
9331 /* end confdefs.h. */
9332 $ac_includes_default
9333 typedef float ac__type_sizeof_;
9335 main ()
9337 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
9338 test_array [0] = 0
9341 return 0;
9343 _ACEOF
9344 rm -f conftest.$ac_objext
9345 if { (ac_try="$ac_compile"
9346 case "(($ac_try" in
9347 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9348 *) ac_try_echo=$ac_try;;
9349 esac
9350 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9351 (eval "$ac_compile") 2>conftest.er1
9352 ac_status=$?
9353 grep -v '^ *+' conftest.er1 >conftest.err
9354 rm -f conftest.er1
9355 cat conftest.err >&5
9356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9357 (exit $ac_status); } && {
9358 test -z "$ac_c_werror_flag" ||
9359 test ! -s conftest.err
9360 } && test -s conftest.$ac_objext; then
9361 ac_lo=$ac_mid; break
9362 else
9363 echo "$as_me: failed program was:" >&5
9364 sed 's/^/| /' conftest.$ac_ext >&5
9366 ac_hi=`expr '(' $ac_mid ')' - 1`
9367 if test $ac_mid -le $ac_hi; then
9368 ac_lo= ac_hi=
9369 break
9371 ac_mid=`expr 2 '*' $ac_mid`
9374 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9375 done
9376 else
9377 echo "$as_me: failed program was:" >&5
9378 sed 's/^/| /' conftest.$ac_ext >&5
9380 ac_lo= ac_hi=
9383 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9386 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9387 # Binary search between lo and hi bounds.
9388 while test "x$ac_lo" != "x$ac_hi"; do
9389 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
9390 cat >conftest.$ac_ext <<_ACEOF
9391 /* confdefs.h. */
9392 _ACEOF
9393 cat confdefs.h >>conftest.$ac_ext
9394 cat >>conftest.$ac_ext <<_ACEOF
9395 /* end confdefs.h. */
9396 $ac_includes_default
9397 typedef float ac__type_sizeof_;
9399 main ()
9401 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
9402 test_array [0] = 0
9405 return 0;
9407 _ACEOF
9408 rm -f conftest.$ac_objext
9409 if { (ac_try="$ac_compile"
9410 case "(($ac_try" in
9411 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9412 *) ac_try_echo=$ac_try;;
9413 esac
9414 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9415 (eval "$ac_compile") 2>conftest.er1
9416 ac_status=$?
9417 grep -v '^ *+' conftest.er1 >conftest.err
9418 rm -f conftest.er1
9419 cat conftest.err >&5
9420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9421 (exit $ac_status); } && {
9422 test -z "$ac_c_werror_flag" ||
9423 test ! -s conftest.err
9424 } && test -s conftest.$ac_objext; then
9425 ac_hi=$ac_mid
9426 else
9427 echo "$as_me: failed program was:" >&5
9428 sed 's/^/| /' conftest.$ac_ext >&5
9430 ac_lo=`expr '(' $ac_mid ')' + 1`
9433 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9434 done
9435 case $ac_lo in
9436 ?*) ac_cv_sizeof_float=$ac_lo;;
9437 '') if test "$ac_cv_type_float" = yes; then
9438 { { echo "$as_me:$LINENO: error: cannot compute sizeof (float)
9439 See \`config.log' for more details." >&5
9440 echo "$as_me: error: cannot compute sizeof (float)
9441 See \`config.log' for more details." >&2;}
9442 { (exit 77); exit 77; }; }
9443 else
9444 ac_cv_sizeof_float=0
9445 fi ;;
9446 esac
9447 else
9448 cat >conftest.$ac_ext <<_ACEOF
9449 /* confdefs.h. */
9450 _ACEOF
9451 cat confdefs.h >>conftest.$ac_ext
9452 cat >>conftest.$ac_ext <<_ACEOF
9453 /* end confdefs.h. */
9454 $ac_includes_default
9455 typedef float ac__type_sizeof_;
9456 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
9457 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
9458 #include <stdio.h>
9459 #include <stdlib.h>
9461 main ()
9464 FILE *f = fopen ("conftest.val", "w");
9465 if (! f)
9466 return 1;
9467 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
9469 long int i = longval ();
9470 if (i != ((long int) (sizeof (ac__type_sizeof_))))
9471 return 1;
9472 fprintf (f, "%ld\n", i);
9474 else
9476 unsigned long int i = ulongval ();
9477 if (i != ((long int) (sizeof (ac__type_sizeof_))))
9478 return 1;
9479 fprintf (f, "%lu\n", i);
9481 return ferror (f) || fclose (f) != 0;
9484 return 0;
9486 _ACEOF
9487 rm -f conftest$ac_exeext
9488 if { (ac_try="$ac_link"
9489 case "(($ac_try" in
9490 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9491 *) ac_try_echo=$ac_try;;
9492 esac
9493 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9494 (eval "$ac_link") 2>&5
9495 ac_status=$?
9496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9497 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9498 { (case "(($ac_try" in
9499 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9500 *) ac_try_echo=$ac_try;;
9501 esac
9502 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9503 (eval "$ac_try") 2>&5
9504 ac_status=$?
9505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9506 (exit $ac_status); }; }; then
9507 ac_cv_sizeof_float=`cat conftest.val`
9508 else
9509 echo "$as_me: program exited with status $ac_status" >&5
9510 echo "$as_me: failed program was:" >&5
9511 sed 's/^/| /' conftest.$ac_ext >&5
9513 ( exit $ac_status )
9514 if test "$ac_cv_type_float" = yes; then
9515 { { echo "$as_me:$LINENO: error: cannot compute sizeof (float)
9516 See \`config.log' for more details." >&5
9517 echo "$as_me: error: cannot compute sizeof (float)
9518 See \`config.log' for more details." >&2;}
9519 { (exit 77); exit 77; }; }
9520 else
9521 ac_cv_sizeof_float=0
9524 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9526 rm -f conftest.val
9528 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_float" >&5
9529 echo "${ECHO_T}$ac_cv_sizeof_float" >&6; }
9533 cat >>confdefs.h <<_ACEOF
9534 #define SIZEOF_FLOAT $ac_cv_sizeof_float
9535 _ACEOF
9538 { echo "$as_me:$LINENO: checking for double" >&5
9539 echo $ECHO_N "checking for double... $ECHO_C" >&6; }
9540 if test "${ac_cv_type_double+set}" = set; then
9541 echo $ECHO_N "(cached) $ECHO_C" >&6
9542 else
9543 cat >conftest.$ac_ext <<_ACEOF
9544 /* confdefs.h. */
9545 _ACEOF
9546 cat confdefs.h >>conftest.$ac_ext
9547 cat >>conftest.$ac_ext <<_ACEOF
9548 /* end confdefs.h. */
9549 $ac_includes_default
9550 typedef double ac__type_new_;
9552 main ()
9554 if ((ac__type_new_ *) 0)
9555 return 0;
9556 if (sizeof (ac__type_new_))
9557 return 0;
9559 return 0;
9561 _ACEOF
9562 rm -f conftest.$ac_objext
9563 if { (ac_try="$ac_compile"
9564 case "(($ac_try" in
9565 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9566 *) ac_try_echo=$ac_try;;
9567 esac
9568 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9569 (eval "$ac_compile") 2>conftest.er1
9570 ac_status=$?
9571 grep -v '^ *+' conftest.er1 >conftest.err
9572 rm -f conftest.er1
9573 cat conftest.err >&5
9574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9575 (exit $ac_status); } && {
9576 test -z "$ac_c_werror_flag" ||
9577 test ! -s conftest.err
9578 } && test -s conftest.$ac_objext; then
9579 ac_cv_type_double=yes
9580 else
9581 echo "$as_me: failed program was:" >&5
9582 sed 's/^/| /' conftest.$ac_ext >&5
9584 ac_cv_type_double=no
9587 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9589 { echo "$as_me:$LINENO: result: $ac_cv_type_double" >&5
9590 echo "${ECHO_T}$ac_cv_type_double" >&6; }
9592 # The cast to long int works around a bug in the HP C Compiler
9593 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
9594 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
9595 # This bug is HP SR number 8606223364.
9596 { echo "$as_me:$LINENO: checking size of double" >&5
9597 echo $ECHO_N "checking size of double... $ECHO_C" >&6; }
9598 if test "${ac_cv_sizeof_double+set}" = set; then
9599 echo $ECHO_N "(cached) $ECHO_C" >&6
9600 else
9601 if test "$cross_compiling" = yes; then
9602 # Depending upon the size, compute the lo and hi bounds.
9603 cat >conftest.$ac_ext <<_ACEOF
9604 /* confdefs.h. */
9605 _ACEOF
9606 cat confdefs.h >>conftest.$ac_ext
9607 cat >>conftest.$ac_ext <<_ACEOF
9608 /* end confdefs.h. */
9609 $ac_includes_default
9610 typedef double ac__type_sizeof_;
9612 main ()
9614 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
9615 test_array [0] = 0
9618 return 0;
9620 _ACEOF
9621 rm -f conftest.$ac_objext
9622 if { (ac_try="$ac_compile"
9623 case "(($ac_try" in
9624 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9625 *) ac_try_echo=$ac_try;;
9626 esac
9627 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9628 (eval "$ac_compile") 2>conftest.er1
9629 ac_status=$?
9630 grep -v '^ *+' conftest.er1 >conftest.err
9631 rm -f conftest.er1
9632 cat conftest.err >&5
9633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9634 (exit $ac_status); } && {
9635 test -z "$ac_c_werror_flag" ||
9636 test ! -s conftest.err
9637 } && test -s conftest.$ac_objext; then
9638 ac_lo=0 ac_mid=0
9639 while :; do
9640 cat >conftest.$ac_ext <<_ACEOF
9641 /* confdefs.h. */
9642 _ACEOF
9643 cat confdefs.h >>conftest.$ac_ext
9644 cat >>conftest.$ac_ext <<_ACEOF
9645 /* end confdefs.h. */
9646 $ac_includes_default
9647 typedef double ac__type_sizeof_;
9649 main ()
9651 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
9652 test_array [0] = 0
9655 return 0;
9657 _ACEOF
9658 rm -f conftest.$ac_objext
9659 if { (ac_try="$ac_compile"
9660 case "(($ac_try" in
9661 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9662 *) ac_try_echo=$ac_try;;
9663 esac
9664 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9665 (eval "$ac_compile") 2>conftest.er1
9666 ac_status=$?
9667 grep -v '^ *+' conftest.er1 >conftest.err
9668 rm -f conftest.er1
9669 cat conftest.err >&5
9670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9671 (exit $ac_status); } && {
9672 test -z "$ac_c_werror_flag" ||
9673 test ! -s conftest.err
9674 } && test -s conftest.$ac_objext; then
9675 ac_hi=$ac_mid; break
9676 else
9677 echo "$as_me: failed program was:" >&5
9678 sed 's/^/| /' conftest.$ac_ext >&5
9680 ac_lo=`expr $ac_mid + 1`
9681 if test $ac_lo -le $ac_mid; then
9682 ac_lo= ac_hi=
9683 break
9685 ac_mid=`expr 2 '*' $ac_mid + 1`
9688 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9689 done
9690 else
9691 echo "$as_me: failed program was:" >&5
9692 sed 's/^/| /' conftest.$ac_ext >&5
9694 cat >conftest.$ac_ext <<_ACEOF
9695 /* confdefs.h. */
9696 _ACEOF
9697 cat confdefs.h >>conftest.$ac_ext
9698 cat >>conftest.$ac_ext <<_ACEOF
9699 /* end confdefs.h. */
9700 $ac_includes_default
9701 typedef double ac__type_sizeof_;
9703 main ()
9705 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
9706 test_array [0] = 0
9709 return 0;
9711 _ACEOF
9712 rm -f conftest.$ac_objext
9713 if { (ac_try="$ac_compile"
9714 case "(($ac_try" in
9715 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9716 *) ac_try_echo=$ac_try;;
9717 esac
9718 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9719 (eval "$ac_compile") 2>conftest.er1
9720 ac_status=$?
9721 grep -v '^ *+' conftest.er1 >conftest.err
9722 rm -f conftest.er1
9723 cat conftest.err >&5
9724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9725 (exit $ac_status); } && {
9726 test -z "$ac_c_werror_flag" ||
9727 test ! -s conftest.err
9728 } && test -s conftest.$ac_objext; then
9729 ac_hi=-1 ac_mid=-1
9730 while :; do
9731 cat >conftest.$ac_ext <<_ACEOF
9732 /* confdefs.h. */
9733 _ACEOF
9734 cat confdefs.h >>conftest.$ac_ext
9735 cat >>conftest.$ac_ext <<_ACEOF
9736 /* end confdefs.h. */
9737 $ac_includes_default
9738 typedef double ac__type_sizeof_;
9740 main ()
9742 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
9743 test_array [0] = 0
9746 return 0;
9748 _ACEOF
9749 rm -f conftest.$ac_objext
9750 if { (ac_try="$ac_compile"
9751 case "(($ac_try" in
9752 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9753 *) ac_try_echo=$ac_try;;
9754 esac
9755 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9756 (eval "$ac_compile") 2>conftest.er1
9757 ac_status=$?
9758 grep -v '^ *+' conftest.er1 >conftest.err
9759 rm -f conftest.er1
9760 cat conftest.err >&5
9761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9762 (exit $ac_status); } && {
9763 test -z "$ac_c_werror_flag" ||
9764 test ! -s conftest.err
9765 } && test -s conftest.$ac_objext; then
9766 ac_lo=$ac_mid; break
9767 else
9768 echo "$as_me: failed program was:" >&5
9769 sed 's/^/| /' conftest.$ac_ext >&5
9771 ac_hi=`expr '(' $ac_mid ')' - 1`
9772 if test $ac_mid -le $ac_hi; then
9773 ac_lo= ac_hi=
9774 break
9776 ac_mid=`expr 2 '*' $ac_mid`
9779 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9780 done
9781 else
9782 echo "$as_me: failed program was:" >&5
9783 sed 's/^/| /' conftest.$ac_ext >&5
9785 ac_lo= ac_hi=
9788 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9791 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9792 # Binary search between lo and hi bounds.
9793 while test "x$ac_lo" != "x$ac_hi"; do
9794 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
9795 cat >conftest.$ac_ext <<_ACEOF
9796 /* confdefs.h. */
9797 _ACEOF
9798 cat confdefs.h >>conftest.$ac_ext
9799 cat >>conftest.$ac_ext <<_ACEOF
9800 /* end confdefs.h. */
9801 $ac_includes_default
9802 typedef double ac__type_sizeof_;
9804 main ()
9806 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
9807 test_array [0] = 0
9810 return 0;
9812 _ACEOF
9813 rm -f conftest.$ac_objext
9814 if { (ac_try="$ac_compile"
9815 case "(($ac_try" in
9816 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9817 *) ac_try_echo=$ac_try;;
9818 esac
9819 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9820 (eval "$ac_compile") 2>conftest.er1
9821 ac_status=$?
9822 grep -v '^ *+' conftest.er1 >conftest.err
9823 rm -f conftest.er1
9824 cat conftest.err >&5
9825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9826 (exit $ac_status); } && {
9827 test -z "$ac_c_werror_flag" ||
9828 test ! -s conftest.err
9829 } && test -s conftest.$ac_objext; then
9830 ac_hi=$ac_mid
9831 else
9832 echo "$as_me: failed program was:" >&5
9833 sed 's/^/| /' conftest.$ac_ext >&5
9835 ac_lo=`expr '(' $ac_mid ')' + 1`
9838 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9839 done
9840 case $ac_lo in
9841 ?*) ac_cv_sizeof_double=$ac_lo;;
9842 '') if test "$ac_cv_type_double" = yes; then
9843 { { echo "$as_me:$LINENO: error: cannot compute sizeof (double)
9844 See \`config.log' for more details." >&5
9845 echo "$as_me: error: cannot compute sizeof (double)
9846 See \`config.log' for more details." >&2;}
9847 { (exit 77); exit 77; }; }
9848 else
9849 ac_cv_sizeof_double=0
9850 fi ;;
9851 esac
9852 else
9853 cat >conftest.$ac_ext <<_ACEOF
9854 /* confdefs.h. */
9855 _ACEOF
9856 cat confdefs.h >>conftest.$ac_ext
9857 cat >>conftest.$ac_ext <<_ACEOF
9858 /* end confdefs.h. */
9859 $ac_includes_default
9860 typedef double ac__type_sizeof_;
9861 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
9862 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
9863 #include <stdio.h>
9864 #include <stdlib.h>
9866 main ()
9869 FILE *f = fopen ("conftest.val", "w");
9870 if (! f)
9871 return 1;
9872 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
9874 long int i = longval ();
9875 if (i != ((long int) (sizeof (ac__type_sizeof_))))
9876 return 1;
9877 fprintf (f, "%ld\n", i);
9879 else
9881 unsigned long int i = ulongval ();
9882 if (i != ((long int) (sizeof (ac__type_sizeof_))))
9883 return 1;
9884 fprintf (f, "%lu\n", i);
9886 return ferror (f) || fclose (f) != 0;
9889 return 0;
9891 _ACEOF
9892 rm -f conftest$ac_exeext
9893 if { (ac_try="$ac_link"
9894 case "(($ac_try" in
9895 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9896 *) ac_try_echo=$ac_try;;
9897 esac
9898 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9899 (eval "$ac_link") 2>&5
9900 ac_status=$?
9901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9902 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9903 { (case "(($ac_try" in
9904 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9905 *) ac_try_echo=$ac_try;;
9906 esac
9907 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9908 (eval "$ac_try") 2>&5
9909 ac_status=$?
9910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9911 (exit $ac_status); }; }; then
9912 ac_cv_sizeof_double=`cat conftest.val`
9913 else
9914 echo "$as_me: program exited with status $ac_status" >&5
9915 echo "$as_me: failed program was:" >&5
9916 sed 's/^/| /' conftest.$ac_ext >&5
9918 ( exit $ac_status )
9919 if test "$ac_cv_type_double" = yes; then
9920 { { echo "$as_me:$LINENO: error: cannot compute sizeof (double)
9921 See \`config.log' for more details." >&5
9922 echo "$as_me: error: cannot compute sizeof (double)
9923 See \`config.log' for more details." >&2;}
9924 { (exit 77); exit 77; }; }
9925 else
9926 ac_cv_sizeof_double=0
9929 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9931 rm -f conftest.val
9933 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_double" >&5
9934 echo "${ECHO_T}$ac_cv_sizeof_double" >&6; }
9938 cat >>confdefs.h <<_ACEOF
9939 #define SIZEOF_DOUBLE $ac_cv_sizeof_double
9940 _ACEOF
9943 { echo "$as_me:$LINENO: checking for fpos_t" >&5
9944 echo $ECHO_N "checking for fpos_t... $ECHO_C" >&6; }
9945 if test "${ac_cv_type_fpos_t+set}" = set; then
9946 echo $ECHO_N "(cached) $ECHO_C" >&6
9947 else
9948 cat >conftest.$ac_ext <<_ACEOF
9949 /* confdefs.h. */
9950 _ACEOF
9951 cat confdefs.h >>conftest.$ac_ext
9952 cat >>conftest.$ac_ext <<_ACEOF
9953 /* end confdefs.h. */
9954 $ac_includes_default
9955 typedef fpos_t ac__type_new_;
9957 main ()
9959 if ((ac__type_new_ *) 0)
9960 return 0;
9961 if (sizeof (ac__type_new_))
9962 return 0;
9964 return 0;
9966 _ACEOF
9967 rm -f conftest.$ac_objext
9968 if { (ac_try="$ac_compile"
9969 case "(($ac_try" in
9970 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9971 *) ac_try_echo=$ac_try;;
9972 esac
9973 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9974 (eval "$ac_compile") 2>conftest.er1
9975 ac_status=$?
9976 grep -v '^ *+' conftest.er1 >conftest.err
9977 rm -f conftest.er1
9978 cat conftest.err >&5
9979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9980 (exit $ac_status); } && {
9981 test -z "$ac_c_werror_flag" ||
9982 test ! -s conftest.err
9983 } && test -s conftest.$ac_objext; then
9984 ac_cv_type_fpos_t=yes
9985 else
9986 echo "$as_me: failed program was:" >&5
9987 sed 's/^/| /' conftest.$ac_ext >&5
9989 ac_cv_type_fpos_t=no
9992 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9994 { echo "$as_me:$LINENO: result: $ac_cv_type_fpos_t" >&5
9995 echo "${ECHO_T}$ac_cv_type_fpos_t" >&6; }
9997 # The cast to long int works around a bug in the HP C Compiler
9998 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
9999 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
10000 # This bug is HP SR number 8606223364.
10001 { echo "$as_me:$LINENO: checking size of fpos_t" >&5
10002 echo $ECHO_N "checking size of fpos_t... $ECHO_C" >&6; }
10003 if test "${ac_cv_sizeof_fpos_t+set}" = set; then
10004 echo $ECHO_N "(cached) $ECHO_C" >&6
10005 else
10006 if test "$cross_compiling" = yes; then
10007 # Depending upon the size, compute the lo and hi bounds.
10008 cat >conftest.$ac_ext <<_ACEOF
10009 /* confdefs.h. */
10010 _ACEOF
10011 cat confdefs.h >>conftest.$ac_ext
10012 cat >>conftest.$ac_ext <<_ACEOF
10013 /* end confdefs.h. */
10014 $ac_includes_default
10015 typedef fpos_t ac__type_sizeof_;
10017 main ()
10019 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
10020 test_array [0] = 0
10023 return 0;
10025 _ACEOF
10026 rm -f conftest.$ac_objext
10027 if { (ac_try="$ac_compile"
10028 case "(($ac_try" in
10029 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10030 *) ac_try_echo=$ac_try;;
10031 esac
10032 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10033 (eval "$ac_compile") 2>conftest.er1
10034 ac_status=$?
10035 grep -v '^ *+' conftest.er1 >conftest.err
10036 rm -f conftest.er1
10037 cat conftest.err >&5
10038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10039 (exit $ac_status); } && {
10040 test -z "$ac_c_werror_flag" ||
10041 test ! -s conftest.err
10042 } && test -s conftest.$ac_objext; then
10043 ac_lo=0 ac_mid=0
10044 while :; do
10045 cat >conftest.$ac_ext <<_ACEOF
10046 /* confdefs.h. */
10047 _ACEOF
10048 cat confdefs.h >>conftest.$ac_ext
10049 cat >>conftest.$ac_ext <<_ACEOF
10050 /* end confdefs.h. */
10051 $ac_includes_default
10052 typedef fpos_t ac__type_sizeof_;
10054 main ()
10056 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
10057 test_array [0] = 0
10060 return 0;
10062 _ACEOF
10063 rm -f conftest.$ac_objext
10064 if { (ac_try="$ac_compile"
10065 case "(($ac_try" in
10066 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10067 *) ac_try_echo=$ac_try;;
10068 esac
10069 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10070 (eval "$ac_compile") 2>conftest.er1
10071 ac_status=$?
10072 grep -v '^ *+' conftest.er1 >conftest.err
10073 rm -f conftest.er1
10074 cat conftest.err >&5
10075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10076 (exit $ac_status); } && {
10077 test -z "$ac_c_werror_flag" ||
10078 test ! -s conftest.err
10079 } && test -s conftest.$ac_objext; then
10080 ac_hi=$ac_mid; break
10081 else
10082 echo "$as_me: failed program was:" >&5
10083 sed 's/^/| /' conftest.$ac_ext >&5
10085 ac_lo=`expr $ac_mid + 1`
10086 if test $ac_lo -le $ac_mid; then
10087 ac_lo= ac_hi=
10088 break
10090 ac_mid=`expr 2 '*' $ac_mid + 1`
10093 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10094 done
10095 else
10096 echo "$as_me: failed program was:" >&5
10097 sed 's/^/| /' conftest.$ac_ext >&5
10099 cat >conftest.$ac_ext <<_ACEOF
10100 /* confdefs.h. */
10101 _ACEOF
10102 cat confdefs.h >>conftest.$ac_ext
10103 cat >>conftest.$ac_ext <<_ACEOF
10104 /* end confdefs.h. */
10105 $ac_includes_default
10106 typedef fpos_t ac__type_sizeof_;
10108 main ()
10110 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
10111 test_array [0] = 0
10114 return 0;
10116 _ACEOF
10117 rm -f conftest.$ac_objext
10118 if { (ac_try="$ac_compile"
10119 case "(($ac_try" in
10120 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10121 *) ac_try_echo=$ac_try;;
10122 esac
10123 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10124 (eval "$ac_compile") 2>conftest.er1
10125 ac_status=$?
10126 grep -v '^ *+' conftest.er1 >conftest.err
10127 rm -f conftest.er1
10128 cat conftest.err >&5
10129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10130 (exit $ac_status); } && {
10131 test -z "$ac_c_werror_flag" ||
10132 test ! -s conftest.err
10133 } && test -s conftest.$ac_objext; then
10134 ac_hi=-1 ac_mid=-1
10135 while :; do
10136 cat >conftest.$ac_ext <<_ACEOF
10137 /* confdefs.h. */
10138 _ACEOF
10139 cat confdefs.h >>conftest.$ac_ext
10140 cat >>conftest.$ac_ext <<_ACEOF
10141 /* end confdefs.h. */
10142 $ac_includes_default
10143 typedef fpos_t ac__type_sizeof_;
10145 main ()
10147 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
10148 test_array [0] = 0
10151 return 0;
10153 _ACEOF
10154 rm -f conftest.$ac_objext
10155 if { (ac_try="$ac_compile"
10156 case "(($ac_try" in
10157 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10158 *) ac_try_echo=$ac_try;;
10159 esac
10160 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10161 (eval "$ac_compile") 2>conftest.er1
10162 ac_status=$?
10163 grep -v '^ *+' conftest.er1 >conftest.err
10164 rm -f conftest.er1
10165 cat conftest.err >&5
10166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10167 (exit $ac_status); } && {
10168 test -z "$ac_c_werror_flag" ||
10169 test ! -s conftest.err
10170 } && test -s conftest.$ac_objext; then
10171 ac_lo=$ac_mid; break
10172 else
10173 echo "$as_me: failed program was:" >&5
10174 sed 's/^/| /' conftest.$ac_ext >&5
10176 ac_hi=`expr '(' $ac_mid ')' - 1`
10177 if test $ac_mid -le $ac_hi; then
10178 ac_lo= ac_hi=
10179 break
10181 ac_mid=`expr 2 '*' $ac_mid`
10184 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10185 done
10186 else
10187 echo "$as_me: failed program was:" >&5
10188 sed 's/^/| /' conftest.$ac_ext >&5
10190 ac_lo= ac_hi=
10193 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10196 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10197 # Binary search between lo and hi bounds.
10198 while test "x$ac_lo" != "x$ac_hi"; do
10199 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
10200 cat >conftest.$ac_ext <<_ACEOF
10201 /* confdefs.h. */
10202 _ACEOF
10203 cat confdefs.h >>conftest.$ac_ext
10204 cat >>conftest.$ac_ext <<_ACEOF
10205 /* end confdefs.h. */
10206 $ac_includes_default
10207 typedef fpos_t ac__type_sizeof_;
10209 main ()
10211 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
10212 test_array [0] = 0
10215 return 0;
10217 _ACEOF
10218 rm -f conftest.$ac_objext
10219 if { (ac_try="$ac_compile"
10220 case "(($ac_try" in
10221 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10222 *) ac_try_echo=$ac_try;;
10223 esac
10224 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10225 (eval "$ac_compile") 2>conftest.er1
10226 ac_status=$?
10227 grep -v '^ *+' conftest.er1 >conftest.err
10228 rm -f conftest.er1
10229 cat conftest.err >&5
10230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10231 (exit $ac_status); } && {
10232 test -z "$ac_c_werror_flag" ||
10233 test ! -s conftest.err
10234 } && test -s conftest.$ac_objext; then
10235 ac_hi=$ac_mid
10236 else
10237 echo "$as_me: failed program was:" >&5
10238 sed 's/^/| /' conftest.$ac_ext >&5
10240 ac_lo=`expr '(' $ac_mid ')' + 1`
10243 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10244 done
10245 case $ac_lo in
10246 ?*) ac_cv_sizeof_fpos_t=$ac_lo;;
10247 '') if test "$ac_cv_type_fpos_t" = yes; then
10248 { { echo "$as_me:$LINENO: error: cannot compute sizeof (fpos_t)
10249 See \`config.log' for more details." >&5
10250 echo "$as_me: error: cannot compute sizeof (fpos_t)
10251 See \`config.log' for more details." >&2;}
10252 { (exit 77); exit 77; }; }
10253 else
10254 ac_cv_sizeof_fpos_t=0
10255 fi ;;
10256 esac
10257 else
10258 cat >conftest.$ac_ext <<_ACEOF
10259 /* confdefs.h. */
10260 _ACEOF
10261 cat confdefs.h >>conftest.$ac_ext
10262 cat >>conftest.$ac_ext <<_ACEOF
10263 /* end confdefs.h. */
10264 $ac_includes_default
10265 typedef fpos_t ac__type_sizeof_;
10266 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
10267 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
10268 #include <stdio.h>
10269 #include <stdlib.h>
10271 main ()
10274 FILE *f = fopen ("conftest.val", "w");
10275 if (! f)
10276 return 1;
10277 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
10279 long int i = longval ();
10280 if (i != ((long int) (sizeof (ac__type_sizeof_))))
10281 return 1;
10282 fprintf (f, "%ld\n", i);
10284 else
10286 unsigned long int i = ulongval ();
10287 if (i != ((long int) (sizeof (ac__type_sizeof_))))
10288 return 1;
10289 fprintf (f, "%lu\n", i);
10291 return ferror (f) || fclose (f) != 0;
10294 return 0;
10296 _ACEOF
10297 rm -f conftest$ac_exeext
10298 if { (ac_try="$ac_link"
10299 case "(($ac_try" in
10300 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10301 *) ac_try_echo=$ac_try;;
10302 esac
10303 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10304 (eval "$ac_link") 2>&5
10305 ac_status=$?
10306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10307 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10308 { (case "(($ac_try" in
10309 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10310 *) ac_try_echo=$ac_try;;
10311 esac
10312 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10313 (eval "$ac_try") 2>&5
10314 ac_status=$?
10315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10316 (exit $ac_status); }; }; then
10317 ac_cv_sizeof_fpos_t=`cat conftest.val`
10318 else
10319 echo "$as_me: program exited with status $ac_status" >&5
10320 echo "$as_me: failed program was:" >&5
10321 sed 's/^/| /' conftest.$ac_ext >&5
10323 ( exit $ac_status )
10324 if test "$ac_cv_type_fpos_t" = yes; then
10325 { { echo "$as_me:$LINENO: error: cannot compute sizeof (fpos_t)
10326 See \`config.log' for more details." >&5
10327 echo "$as_me: error: cannot compute sizeof (fpos_t)
10328 See \`config.log' for more details." >&2;}
10329 { (exit 77); exit 77; }; }
10330 else
10331 ac_cv_sizeof_fpos_t=0
10334 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10336 rm -f conftest.val
10338 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_fpos_t" >&5
10339 echo "${ECHO_T}$ac_cv_sizeof_fpos_t" >&6; }
10343 cat >>confdefs.h <<_ACEOF
10344 #define SIZEOF_FPOS_T $ac_cv_sizeof_fpos_t
10345 _ACEOF
10348 { echo "$as_me:$LINENO: checking for size_t" >&5
10349 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
10350 if test "${ac_cv_type_size_t+set}" = set; then
10351 echo $ECHO_N "(cached) $ECHO_C" >&6
10352 else
10353 cat >conftest.$ac_ext <<_ACEOF
10354 /* confdefs.h. */
10355 _ACEOF
10356 cat confdefs.h >>conftest.$ac_ext
10357 cat >>conftest.$ac_ext <<_ACEOF
10358 /* end confdefs.h. */
10359 $ac_includes_default
10360 typedef size_t ac__type_new_;
10362 main ()
10364 if ((ac__type_new_ *) 0)
10365 return 0;
10366 if (sizeof (ac__type_new_))
10367 return 0;
10369 return 0;
10371 _ACEOF
10372 rm -f conftest.$ac_objext
10373 if { (ac_try="$ac_compile"
10374 case "(($ac_try" in
10375 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10376 *) ac_try_echo=$ac_try;;
10377 esac
10378 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10379 (eval "$ac_compile") 2>conftest.er1
10380 ac_status=$?
10381 grep -v '^ *+' conftest.er1 >conftest.err
10382 rm -f conftest.er1
10383 cat conftest.err >&5
10384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10385 (exit $ac_status); } && {
10386 test -z "$ac_c_werror_flag" ||
10387 test ! -s conftest.err
10388 } && test -s conftest.$ac_objext; then
10389 ac_cv_type_size_t=yes
10390 else
10391 echo "$as_me: failed program was:" >&5
10392 sed 's/^/| /' conftest.$ac_ext >&5
10394 ac_cv_type_size_t=no
10397 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10399 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
10400 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
10402 # The cast to long int works around a bug in the HP C Compiler
10403 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
10404 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
10405 # This bug is HP SR number 8606223364.
10406 { echo "$as_me:$LINENO: checking size of size_t" >&5
10407 echo $ECHO_N "checking size of size_t... $ECHO_C" >&6; }
10408 if test "${ac_cv_sizeof_size_t+set}" = set; then
10409 echo $ECHO_N "(cached) $ECHO_C" >&6
10410 else
10411 if test "$cross_compiling" = yes; then
10412 # Depending upon the size, compute the lo and hi bounds.
10413 cat >conftest.$ac_ext <<_ACEOF
10414 /* confdefs.h. */
10415 _ACEOF
10416 cat confdefs.h >>conftest.$ac_ext
10417 cat >>conftest.$ac_ext <<_ACEOF
10418 /* end confdefs.h. */
10419 $ac_includes_default
10420 typedef size_t ac__type_sizeof_;
10422 main ()
10424 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
10425 test_array [0] = 0
10428 return 0;
10430 _ACEOF
10431 rm -f conftest.$ac_objext
10432 if { (ac_try="$ac_compile"
10433 case "(($ac_try" in
10434 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10435 *) ac_try_echo=$ac_try;;
10436 esac
10437 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10438 (eval "$ac_compile") 2>conftest.er1
10439 ac_status=$?
10440 grep -v '^ *+' conftest.er1 >conftest.err
10441 rm -f conftest.er1
10442 cat conftest.err >&5
10443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10444 (exit $ac_status); } && {
10445 test -z "$ac_c_werror_flag" ||
10446 test ! -s conftest.err
10447 } && test -s conftest.$ac_objext; then
10448 ac_lo=0 ac_mid=0
10449 while :; do
10450 cat >conftest.$ac_ext <<_ACEOF
10451 /* confdefs.h. */
10452 _ACEOF
10453 cat confdefs.h >>conftest.$ac_ext
10454 cat >>conftest.$ac_ext <<_ACEOF
10455 /* end confdefs.h. */
10456 $ac_includes_default
10457 typedef size_t ac__type_sizeof_;
10459 main ()
10461 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
10462 test_array [0] = 0
10465 return 0;
10467 _ACEOF
10468 rm -f conftest.$ac_objext
10469 if { (ac_try="$ac_compile"
10470 case "(($ac_try" in
10471 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10472 *) ac_try_echo=$ac_try;;
10473 esac
10474 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10475 (eval "$ac_compile") 2>conftest.er1
10476 ac_status=$?
10477 grep -v '^ *+' conftest.er1 >conftest.err
10478 rm -f conftest.er1
10479 cat conftest.err >&5
10480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10481 (exit $ac_status); } && {
10482 test -z "$ac_c_werror_flag" ||
10483 test ! -s conftest.err
10484 } && test -s conftest.$ac_objext; then
10485 ac_hi=$ac_mid; break
10486 else
10487 echo "$as_me: failed program was:" >&5
10488 sed 's/^/| /' conftest.$ac_ext >&5
10490 ac_lo=`expr $ac_mid + 1`
10491 if test $ac_lo -le $ac_mid; then
10492 ac_lo= ac_hi=
10493 break
10495 ac_mid=`expr 2 '*' $ac_mid + 1`
10498 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10499 done
10500 else
10501 echo "$as_me: failed program was:" >&5
10502 sed 's/^/| /' conftest.$ac_ext >&5
10504 cat >conftest.$ac_ext <<_ACEOF
10505 /* confdefs.h. */
10506 _ACEOF
10507 cat confdefs.h >>conftest.$ac_ext
10508 cat >>conftest.$ac_ext <<_ACEOF
10509 /* end confdefs.h. */
10510 $ac_includes_default
10511 typedef size_t ac__type_sizeof_;
10513 main ()
10515 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
10516 test_array [0] = 0
10519 return 0;
10521 _ACEOF
10522 rm -f conftest.$ac_objext
10523 if { (ac_try="$ac_compile"
10524 case "(($ac_try" in
10525 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10526 *) ac_try_echo=$ac_try;;
10527 esac
10528 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10529 (eval "$ac_compile") 2>conftest.er1
10530 ac_status=$?
10531 grep -v '^ *+' conftest.er1 >conftest.err
10532 rm -f conftest.er1
10533 cat conftest.err >&5
10534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10535 (exit $ac_status); } && {
10536 test -z "$ac_c_werror_flag" ||
10537 test ! -s conftest.err
10538 } && test -s conftest.$ac_objext; then
10539 ac_hi=-1 ac_mid=-1
10540 while :; do
10541 cat >conftest.$ac_ext <<_ACEOF
10542 /* confdefs.h. */
10543 _ACEOF
10544 cat confdefs.h >>conftest.$ac_ext
10545 cat >>conftest.$ac_ext <<_ACEOF
10546 /* end confdefs.h. */
10547 $ac_includes_default
10548 typedef size_t ac__type_sizeof_;
10550 main ()
10552 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
10553 test_array [0] = 0
10556 return 0;
10558 _ACEOF
10559 rm -f conftest.$ac_objext
10560 if { (ac_try="$ac_compile"
10561 case "(($ac_try" in
10562 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10563 *) ac_try_echo=$ac_try;;
10564 esac
10565 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10566 (eval "$ac_compile") 2>conftest.er1
10567 ac_status=$?
10568 grep -v '^ *+' conftest.er1 >conftest.err
10569 rm -f conftest.er1
10570 cat conftest.err >&5
10571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10572 (exit $ac_status); } && {
10573 test -z "$ac_c_werror_flag" ||
10574 test ! -s conftest.err
10575 } && test -s conftest.$ac_objext; then
10576 ac_lo=$ac_mid; break
10577 else
10578 echo "$as_me: failed program was:" >&5
10579 sed 's/^/| /' conftest.$ac_ext >&5
10581 ac_hi=`expr '(' $ac_mid ')' - 1`
10582 if test $ac_mid -le $ac_hi; then
10583 ac_lo= ac_hi=
10584 break
10586 ac_mid=`expr 2 '*' $ac_mid`
10589 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10590 done
10591 else
10592 echo "$as_me: failed program was:" >&5
10593 sed 's/^/| /' conftest.$ac_ext >&5
10595 ac_lo= ac_hi=
10598 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10601 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10602 # Binary search between lo and hi bounds.
10603 while test "x$ac_lo" != "x$ac_hi"; do
10604 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
10605 cat >conftest.$ac_ext <<_ACEOF
10606 /* confdefs.h. */
10607 _ACEOF
10608 cat confdefs.h >>conftest.$ac_ext
10609 cat >>conftest.$ac_ext <<_ACEOF
10610 /* end confdefs.h. */
10611 $ac_includes_default
10612 typedef size_t ac__type_sizeof_;
10614 main ()
10616 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
10617 test_array [0] = 0
10620 return 0;
10622 _ACEOF
10623 rm -f conftest.$ac_objext
10624 if { (ac_try="$ac_compile"
10625 case "(($ac_try" in
10626 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10627 *) ac_try_echo=$ac_try;;
10628 esac
10629 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10630 (eval "$ac_compile") 2>conftest.er1
10631 ac_status=$?
10632 grep -v '^ *+' conftest.er1 >conftest.err
10633 rm -f conftest.er1
10634 cat conftest.err >&5
10635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10636 (exit $ac_status); } && {
10637 test -z "$ac_c_werror_flag" ||
10638 test ! -s conftest.err
10639 } && test -s conftest.$ac_objext; then
10640 ac_hi=$ac_mid
10641 else
10642 echo "$as_me: failed program was:" >&5
10643 sed 's/^/| /' conftest.$ac_ext >&5
10645 ac_lo=`expr '(' $ac_mid ')' + 1`
10648 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10649 done
10650 case $ac_lo in
10651 ?*) ac_cv_sizeof_size_t=$ac_lo;;
10652 '') if test "$ac_cv_type_size_t" = yes; then
10653 { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t)
10654 See \`config.log' for more details." >&5
10655 echo "$as_me: error: cannot compute sizeof (size_t)
10656 See \`config.log' for more details." >&2;}
10657 { (exit 77); exit 77; }; }
10658 else
10659 ac_cv_sizeof_size_t=0
10660 fi ;;
10661 esac
10662 else
10663 cat >conftest.$ac_ext <<_ACEOF
10664 /* confdefs.h. */
10665 _ACEOF
10666 cat confdefs.h >>conftest.$ac_ext
10667 cat >>conftest.$ac_ext <<_ACEOF
10668 /* end confdefs.h. */
10669 $ac_includes_default
10670 typedef size_t ac__type_sizeof_;
10671 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
10672 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
10673 #include <stdio.h>
10674 #include <stdlib.h>
10676 main ()
10679 FILE *f = fopen ("conftest.val", "w");
10680 if (! f)
10681 return 1;
10682 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
10684 long int i = longval ();
10685 if (i != ((long int) (sizeof (ac__type_sizeof_))))
10686 return 1;
10687 fprintf (f, "%ld\n", i);
10689 else
10691 unsigned long int i = ulongval ();
10692 if (i != ((long int) (sizeof (ac__type_sizeof_))))
10693 return 1;
10694 fprintf (f, "%lu\n", i);
10696 return ferror (f) || fclose (f) != 0;
10699 return 0;
10701 _ACEOF
10702 rm -f conftest$ac_exeext
10703 if { (ac_try="$ac_link"
10704 case "(($ac_try" in
10705 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10706 *) ac_try_echo=$ac_try;;
10707 esac
10708 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10709 (eval "$ac_link") 2>&5
10710 ac_status=$?
10711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10712 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10713 { (case "(($ac_try" in
10714 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10715 *) ac_try_echo=$ac_try;;
10716 esac
10717 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10718 (eval "$ac_try") 2>&5
10719 ac_status=$?
10720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10721 (exit $ac_status); }; }; then
10722 ac_cv_sizeof_size_t=`cat conftest.val`
10723 else
10724 echo "$as_me: program exited with status $ac_status" >&5
10725 echo "$as_me: failed program was:" >&5
10726 sed 's/^/| /' conftest.$ac_ext >&5
10728 ( exit $ac_status )
10729 if test "$ac_cv_type_size_t" = yes; then
10730 { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t)
10731 See \`config.log' for more details." >&5
10732 echo "$as_me: error: cannot compute sizeof (size_t)
10733 See \`config.log' for more details." >&2;}
10734 { (exit 77); exit 77; }; }
10735 else
10736 ac_cv_sizeof_size_t=0
10739 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10741 rm -f conftest.val
10743 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_size_t" >&5
10744 echo "${ECHO_T}$ac_cv_sizeof_size_t" >&6; }
10748 cat >>confdefs.h <<_ACEOF
10749 #define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
10750 _ACEOF
10753 { echo "$as_me:$LINENO: checking for pid_t" >&5
10754 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
10755 if test "${ac_cv_type_pid_t+set}" = set; then
10756 echo $ECHO_N "(cached) $ECHO_C" >&6
10757 else
10758 cat >conftest.$ac_ext <<_ACEOF
10759 /* confdefs.h. */
10760 _ACEOF
10761 cat confdefs.h >>conftest.$ac_ext
10762 cat >>conftest.$ac_ext <<_ACEOF
10763 /* end confdefs.h. */
10764 $ac_includes_default
10765 typedef pid_t ac__type_new_;
10767 main ()
10769 if ((ac__type_new_ *) 0)
10770 return 0;
10771 if (sizeof (ac__type_new_))
10772 return 0;
10774 return 0;
10776 _ACEOF
10777 rm -f conftest.$ac_objext
10778 if { (ac_try="$ac_compile"
10779 case "(($ac_try" in
10780 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10781 *) ac_try_echo=$ac_try;;
10782 esac
10783 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10784 (eval "$ac_compile") 2>conftest.er1
10785 ac_status=$?
10786 grep -v '^ *+' conftest.er1 >conftest.err
10787 rm -f conftest.er1
10788 cat conftest.err >&5
10789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10790 (exit $ac_status); } && {
10791 test -z "$ac_c_werror_flag" ||
10792 test ! -s conftest.err
10793 } && test -s conftest.$ac_objext; then
10794 ac_cv_type_pid_t=yes
10795 else
10796 echo "$as_me: failed program was:" >&5
10797 sed 's/^/| /' conftest.$ac_ext >&5
10799 ac_cv_type_pid_t=no
10802 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10804 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
10805 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
10807 # The cast to long int works around a bug in the HP C Compiler
10808 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
10809 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
10810 # This bug is HP SR number 8606223364.
10811 { echo "$as_me:$LINENO: checking size of pid_t" >&5
10812 echo $ECHO_N "checking size of pid_t... $ECHO_C" >&6; }
10813 if test "${ac_cv_sizeof_pid_t+set}" = set; then
10814 echo $ECHO_N "(cached) $ECHO_C" >&6
10815 else
10816 if test "$cross_compiling" = yes; then
10817 # Depending upon the size, compute the lo and hi bounds.
10818 cat >conftest.$ac_ext <<_ACEOF
10819 /* confdefs.h. */
10820 _ACEOF
10821 cat confdefs.h >>conftest.$ac_ext
10822 cat >>conftest.$ac_ext <<_ACEOF
10823 /* end confdefs.h. */
10824 $ac_includes_default
10825 typedef pid_t ac__type_sizeof_;
10827 main ()
10829 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
10830 test_array [0] = 0
10833 return 0;
10835 _ACEOF
10836 rm -f conftest.$ac_objext
10837 if { (ac_try="$ac_compile"
10838 case "(($ac_try" in
10839 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10840 *) ac_try_echo=$ac_try;;
10841 esac
10842 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10843 (eval "$ac_compile") 2>conftest.er1
10844 ac_status=$?
10845 grep -v '^ *+' conftest.er1 >conftest.err
10846 rm -f conftest.er1
10847 cat conftest.err >&5
10848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10849 (exit $ac_status); } && {
10850 test -z "$ac_c_werror_flag" ||
10851 test ! -s conftest.err
10852 } && test -s conftest.$ac_objext; then
10853 ac_lo=0 ac_mid=0
10854 while :; do
10855 cat >conftest.$ac_ext <<_ACEOF
10856 /* confdefs.h. */
10857 _ACEOF
10858 cat confdefs.h >>conftest.$ac_ext
10859 cat >>conftest.$ac_ext <<_ACEOF
10860 /* end confdefs.h. */
10861 $ac_includes_default
10862 typedef pid_t ac__type_sizeof_;
10864 main ()
10866 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
10867 test_array [0] = 0
10870 return 0;
10872 _ACEOF
10873 rm -f conftest.$ac_objext
10874 if { (ac_try="$ac_compile"
10875 case "(($ac_try" in
10876 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10877 *) ac_try_echo=$ac_try;;
10878 esac
10879 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10880 (eval "$ac_compile") 2>conftest.er1
10881 ac_status=$?
10882 grep -v '^ *+' conftest.er1 >conftest.err
10883 rm -f conftest.er1
10884 cat conftest.err >&5
10885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10886 (exit $ac_status); } && {
10887 test -z "$ac_c_werror_flag" ||
10888 test ! -s conftest.err
10889 } && test -s conftest.$ac_objext; then
10890 ac_hi=$ac_mid; break
10891 else
10892 echo "$as_me: failed program was:" >&5
10893 sed 's/^/| /' conftest.$ac_ext >&5
10895 ac_lo=`expr $ac_mid + 1`
10896 if test $ac_lo -le $ac_mid; then
10897 ac_lo= ac_hi=
10898 break
10900 ac_mid=`expr 2 '*' $ac_mid + 1`
10903 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10904 done
10905 else
10906 echo "$as_me: failed program was:" >&5
10907 sed 's/^/| /' conftest.$ac_ext >&5
10909 cat >conftest.$ac_ext <<_ACEOF
10910 /* confdefs.h. */
10911 _ACEOF
10912 cat confdefs.h >>conftest.$ac_ext
10913 cat >>conftest.$ac_ext <<_ACEOF
10914 /* end confdefs.h. */
10915 $ac_includes_default
10916 typedef pid_t ac__type_sizeof_;
10918 main ()
10920 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
10921 test_array [0] = 0
10924 return 0;
10926 _ACEOF
10927 rm -f conftest.$ac_objext
10928 if { (ac_try="$ac_compile"
10929 case "(($ac_try" in
10930 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10931 *) ac_try_echo=$ac_try;;
10932 esac
10933 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10934 (eval "$ac_compile") 2>conftest.er1
10935 ac_status=$?
10936 grep -v '^ *+' conftest.er1 >conftest.err
10937 rm -f conftest.er1
10938 cat conftest.err >&5
10939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10940 (exit $ac_status); } && {
10941 test -z "$ac_c_werror_flag" ||
10942 test ! -s conftest.err
10943 } && test -s conftest.$ac_objext; then
10944 ac_hi=-1 ac_mid=-1
10945 while :; do
10946 cat >conftest.$ac_ext <<_ACEOF
10947 /* confdefs.h. */
10948 _ACEOF
10949 cat confdefs.h >>conftest.$ac_ext
10950 cat >>conftest.$ac_ext <<_ACEOF
10951 /* end confdefs.h. */
10952 $ac_includes_default
10953 typedef pid_t ac__type_sizeof_;
10955 main ()
10957 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
10958 test_array [0] = 0
10961 return 0;
10963 _ACEOF
10964 rm -f conftest.$ac_objext
10965 if { (ac_try="$ac_compile"
10966 case "(($ac_try" in
10967 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10968 *) ac_try_echo=$ac_try;;
10969 esac
10970 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10971 (eval "$ac_compile") 2>conftest.er1
10972 ac_status=$?
10973 grep -v '^ *+' conftest.er1 >conftest.err
10974 rm -f conftest.er1
10975 cat conftest.err >&5
10976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10977 (exit $ac_status); } && {
10978 test -z "$ac_c_werror_flag" ||
10979 test ! -s conftest.err
10980 } && test -s conftest.$ac_objext; then
10981 ac_lo=$ac_mid; break
10982 else
10983 echo "$as_me: failed program was:" >&5
10984 sed 's/^/| /' conftest.$ac_ext >&5
10986 ac_hi=`expr '(' $ac_mid ')' - 1`
10987 if test $ac_mid -le $ac_hi; then
10988 ac_lo= ac_hi=
10989 break
10991 ac_mid=`expr 2 '*' $ac_mid`
10994 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10995 done
10996 else
10997 echo "$as_me: failed program was:" >&5
10998 sed 's/^/| /' conftest.$ac_ext >&5
11000 ac_lo= ac_hi=
11003 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11006 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11007 # Binary search between lo and hi bounds.
11008 while test "x$ac_lo" != "x$ac_hi"; do
11009 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
11010 cat >conftest.$ac_ext <<_ACEOF
11011 /* confdefs.h. */
11012 _ACEOF
11013 cat confdefs.h >>conftest.$ac_ext
11014 cat >>conftest.$ac_ext <<_ACEOF
11015 /* end confdefs.h. */
11016 $ac_includes_default
11017 typedef pid_t ac__type_sizeof_;
11019 main ()
11021 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
11022 test_array [0] = 0
11025 return 0;
11027 _ACEOF
11028 rm -f conftest.$ac_objext
11029 if { (ac_try="$ac_compile"
11030 case "(($ac_try" in
11031 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11032 *) ac_try_echo=$ac_try;;
11033 esac
11034 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11035 (eval "$ac_compile") 2>conftest.er1
11036 ac_status=$?
11037 grep -v '^ *+' conftest.er1 >conftest.err
11038 rm -f conftest.er1
11039 cat conftest.err >&5
11040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11041 (exit $ac_status); } && {
11042 test -z "$ac_c_werror_flag" ||
11043 test ! -s conftest.err
11044 } && test -s conftest.$ac_objext; then
11045 ac_hi=$ac_mid
11046 else
11047 echo "$as_me: failed program was:" >&5
11048 sed 's/^/| /' conftest.$ac_ext >&5
11050 ac_lo=`expr '(' $ac_mid ')' + 1`
11053 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11054 done
11055 case $ac_lo in
11056 ?*) ac_cv_sizeof_pid_t=$ac_lo;;
11057 '') if test "$ac_cv_type_pid_t" = yes; then
11058 { { echo "$as_me:$LINENO: error: cannot compute sizeof (pid_t)
11059 See \`config.log' for more details." >&5
11060 echo "$as_me: error: cannot compute sizeof (pid_t)
11061 See \`config.log' for more details." >&2;}
11062 { (exit 77); exit 77; }; }
11063 else
11064 ac_cv_sizeof_pid_t=0
11065 fi ;;
11066 esac
11067 else
11068 cat >conftest.$ac_ext <<_ACEOF
11069 /* confdefs.h. */
11070 _ACEOF
11071 cat confdefs.h >>conftest.$ac_ext
11072 cat >>conftest.$ac_ext <<_ACEOF
11073 /* end confdefs.h. */
11074 $ac_includes_default
11075 typedef pid_t ac__type_sizeof_;
11076 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
11077 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
11078 #include <stdio.h>
11079 #include <stdlib.h>
11081 main ()
11084 FILE *f = fopen ("conftest.val", "w");
11085 if (! f)
11086 return 1;
11087 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
11089 long int i = longval ();
11090 if (i != ((long int) (sizeof (ac__type_sizeof_))))
11091 return 1;
11092 fprintf (f, "%ld\n", i);
11094 else
11096 unsigned long int i = ulongval ();
11097 if (i != ((long int) (sizeof (ac__type_sizeof_))))
11098 return 1;
11099 fprintf (f, "%lu\n", i);
11101 return ferror (f) || fclose (f) != 0;
11104 return 0;
11106 _ACEOF
11107 rm -f conftest$ac_exeext
11108 if { (ac_try="$ac_link"
11109 case "(($ac_try" in
11110 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11111 *) ac_try_echo=$ac_try;;
11112 esac
11113 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11114 (eval "$ac_link") 2>&5
11115 ac_status=$?
11116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11117 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11118 { (case "(($ac_try" in
11119 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11120 *) ac_try_echo=$ac_try;;
11121 esac
11122 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11123 (eval "$ac_try") 2>&5
11124 ac_status=$?
11125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11126 (exit $ac_status); }; }; then
11127 ac_cv_sizeof_pid_t=`cat conftest.val`
11128 else
11129 echo "$as_me: program exited with status $ac_status" >&5
11130 echo "$as_me: failed program was:" >&5
11131 sed 's/^/| /' conftest.$ac_ext >&5
11133 ( exit $ac_status )
11134 if test "$ac_cv_type_pid_t" = yes; then
11135 { { echo "$as_me:$LINENO: error: cannot compute sizeof (pid_t)
11136 See \`config.log' for more details." >&5
11137 echo "$as_me: error: cannot compute sizeof (pid_t)
11138 See \`config.log' for more details." >&2;}
11139 { (exit 77); exit 77; }; }
11140 else
11141 ac_cv_sizeof_pid_t=0
11144 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11146 rm -f conftest.val
11148 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_pid_t" >&5
11149 echo "${ECHO_T}$ac_cv_sizeof_pid_t" >&6; }
11153 cat >>confdefs.h <<_ACEOF
11154 #define SIZEOF_PID_T $ac_cv_sizeof_pid_t
11155 _ACEOF
11159 { echo "$as_me:$LINENO: checking for long long support" >&5
11160 echo $ECHO_N "checking for long long support... $ECHO_C" >&6; }
11161 have_long_long=no
11162 cat >conftest.$ac_ext <<_ACEOF
11163 /* confdefs.h. */
11164 _ACEOF
11165 cat confdefs.h >>conftest.$ac_ext
11166 cat >>conftest.$ac_ext <<_ACEOF
11167 /* end confdefs.h. */
11170 main ()
11172 long long x; x = (long long)0;
11174 return 0;
11176 _ACEOF
11177 rm -f conftest.$ac_objext
11178 if { (ac_try="$ac_compile"
11179 case "(($ac_try" in
11180 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11181 *) ac_try_echo=$ac_try;;
11182 esac
11183 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11184 (eval "$ac_compile") 2>conftest.er1
11185 ac_status=$?
11186 grep -v '^ *+' conftest.er1 >conftest.err
11187 rm -f conftest.er1
11188 cat conftest.err >&5
11189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11190 (exit $ac_status); } && {
11191 test -z "$ac_c_werror_flag" ||
11192 test ! -s conftest.err
11193 } && test -s conftest.$ac_objext; then
11196 cat >>confdefs.h <<\_ACEOF
11197 #define HAVE_LONG_LONG 1
11198 _ACEOF
11200 have_long_long=yes
11202 else
11203 echo "$as_me: failed program was:" >&5
11204 sed 's/^/| /' conftest.$ac_ext >&5
11209 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11210 { echo "$as_me:$LINENO: result: $have_long_long" >&5
11211 echo "${ECHO_T}$have_long_long" >&6; }
11212 if test "$have_long_long" = yes ; then
11213 { echo "$as_me:$LINENO: checking for long long" >&5
11214 echo $ECHO_N "checking for long long... $ECHO_C" >&6; }
11215 if test "${ac_cv_type_long_long+set}" = set; then
11216 echo $ECHO_N "(cached) $ECHO_C" >&6
11217 else
11218 cat >conftest.$ac_ext <<_ACEOF
11219 /* confdefs.h. */
11220 _ACEOF
11221 cat confdefs.h >>conftest.$ac_ext
11222 cat >>conftest.$ac_ext <<_ACEOF
11223 /* end confdefs.h. */
11224 $ac_includes_default
11225 typedef long long ac__type_new_;
11227 main ()
11229 if ((ac__type_new_ *) 0)
11230 return 0;
11231 if (sizeof (ac__type_new_))
11232 return 0;
11234 return 0;
11236 _ACEOF
11237 rm -f conftest.$ac_objext
11238 if { (ac_try="$ac_compile"
11239 case "(($ac_try" in
11240 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11241 *) ac_try_echo=$ac_try;;
11242 esac
11243 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11244 (eval "$ac_compile") 2>conftest.er1
11245 ac_status=$?
11246 grep -v '^ *+' conftest.er1 >conftest.err
11247 rm -f conftest.er1
11248 cat conftest.err >&5
11249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11250 (exit $ac_status); } && {
11251 test -z "$ac_c_werror_flag" ||
11252 test ! -s conftest.err
11253 } && test -s conftest.$ac_objext; then
11254 ac_cv_type_long_long=yes
11255 else
11256 echo "$as_me: failed program was:" >&5
11257 sed 's/^/| /' conftest.$ac_ext >&5
11259 ac_cv_type_long_long=no
11262 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11264 { echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
11265 echo "${ECHO_T}$ac_cv_type_long_long" >&6; }
11267 # The cast to long int works around a bug in the HP C Compiler
11268 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
11269 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
11270 # This bug is HP SR number 8606223364.
11271 { echo "$as_me:$LINENO: checking size of long long" >&5
11272 echo $ECHO_N "checking size of long long... $ECHO_C" >&6; }
11273 if test "${ac_cv_sizeof_long_long+set}" = set; then
11274 echo $ECHO_N "(cached) $ECHO_C" >&6
11275 else
11276 if test "$cross_compiling" = yes; then
11277 # Depending upon the size, compute the lo and hi bounds.
11278 cat >conftest.$ac_ext <<_ACEOF
11279 /* confdefs.h. */
11280 _ACEOF
11281 cat confdefs.h >>conftest.$ac_ext
11282 cat >>conftest.$ac_ext <<_ACEOF
11283 /* end confdefs.h. */
11284 $ac_includes_default
11285 typedef long long ac__type_sizeof_;
11287 main ()
11289 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
11290 test_array [0] = 0
11293 return 0;
11295 _ACEOF
11296 rm -f conftest.$ac_objext
11297 if { (ac_try="$ac_compile"
11298 case "(($ac_try" in
11299 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11300 *) ac_try_echo=$ac_try;;
11301 esac
11302 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11303 (eval "$ac_compile") 2>conftest.er1
11304 ac_status=$?
11305 grep -v '^ *+' conftest.er1 >conftest.err
11306 rm -f conftest.er1
11307 cat conftest.err >&5
11308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11309 (exit $ac_status); } && {
11310 test -z "$ac_c_werror_flag" ||
11311 test ! -s conftest.err
11312 } && test -s conftest.$ac_objext; then
11313 ac_lo=0 ac_mid=0
11314 while :; do
11315 cat >conftest.$ac_ext <<_ACEOF
11316 /* confdefs.h. */
11317 _ACEOF
11318 cat confdefs.h >>conftest.$ac_ext
11319 cat >>conftest.$ac_ext <<_ACEOF
11320 /* end confdefs.h. */
11321 $ac_includes_default
11322 typedef long long ac__type_sizeof_;
11324 main ()
11326 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
11327 test_array [0] = 0
11330 return 0;
11332 _ACEOF
11333 rm -f conftest.$ac_objext
11334 if { (ac_try="$ac_compile"
11335 case "(($ac_try" in
11336 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11337 *) ac_try_echo=$ac_try;;
11338 esac
11339 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11340 (eval "$ac_compile") 2>conftest.er1
11341 ac_status=$?
11342 grep -v '^ *+' conftest.er1 >conftest.err
11343 rm -f conftest.er1
11344 cat conftest.err >&5
11345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11346 (exit $ac_status); } && {
11347 test -z "$ac_c_werror_flag" ||
11348 test ! -s conftest.err
11349 } && test -s conftest.$ac_objext; then
11350 ac_hi=$ac_mid; break
11351 else
11352 echo "$as_me: failed program was:" >&5
11353 sed 's/^/| /' conftest.$ac_ext >&5
11355 ac_lo=`expr $ac_mid + 1`
11356 if test $ac_lo -le $ac_mid; then
11357 ac_lo= ac_hi=
11358 break
11360 ac_mid=`expr 2 '*' $ac_mid + 1`
11363 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11364 done
11365 else
11366 echo "$as_me: failed program was:" >&5
11367 sed 's/^/| /' conftest.$ac_ext >&5
11369 cat >conftest.$ac_ext <<_ACEOF
11370 /* confdefs.h. */
11371 _ACEOF
11372 cat confdefs.h >>conftest.$ac_ext
11373 cat >>conftest.$ac_ext <<_ACEOF
11374 /* end confdefs.h. */
11375 $ac_includes_default
11376 typedef long long ac__type_sizeof_;
11378 main ()
11380 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
11381 test_array [0] = 0
11384 return 0;
11386 _ACEOF
11387 rm -f conftest.$ac_objext
11388 if { (ac_try="$ac_compile"
11389 case "(($ac_try" in
11390 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11391 *) ac_try_echo=$ac_try;;
11392 esac
11393 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11394 (eval "$ac_compile") 2>conftest.er1
11395 ac_status=$?
11396 grep -v '^ *+' conftest.er1 >conftest.err
11397 rm -f conftest.er1
11398 cat conftest.err >&5
11399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11400 (exit $ac_status); } && {
11401 test -z "$ac_c_werror_flag" ||
11402 test ! -s conftest.err
11403 } && test -s conftest.$ac_objext; then
11404 ac_hi=-1 ac_mid=-1
11405 while :; do
11406 cat >conftest.$ac_ext <<_ACEOF
11407 /* confdefs.h. */
11408 _ACEOF
11409 cat confdefs.h >>conftest.$ac_ext
11410 cat >>conftest.$ac_ext <<_ACEOF
11411 /* end confdefs.h. */
11412 $ac_includes_default
11413 typedef long long ac__type_sizeof_;
11415 main ()
11417 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
11418 test_array [0] = 0
11421 return 0;
11423 _ACEOF
11424 rm -f conftest.$ac_objext
11425 if { (ac_try="$ac_compile"
11426 case "(($ac_try" in
11427 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11428 *) ac_try_echo=$ac_try;;
11429 esac
11430 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11431 (eval "$ac_compile") 2>conftest.er1
11432 ac_status=$?
11433 grep -v '^ *+' conftest.er1 >conftest.err
11434 rm -f conftest.er1
11435 cat conftest.err >&5
11436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11437 (exit $ac_status); } && {
11438 test -z "$ac_c_werror_flag" ||
11439 test ! -s conftest.err
11440 } && test -s conftest.$ac_objext; then
11441 ac_lo=$ac_mid; break
11442 else
11443 echo "$as_me: failed program was:" >&5
11444 sed 's/^/| /' conftest.$ac_ext >&5
11446 ac_hi=`expr '(' $ac_mid ')' - 1`
11447 if test $ac_mid -le $ac_hi; then
11448 ac_lo= ac_hi=
11449 break
11451 ac_mid=`expr 2 '*' $ac_mid`
11454 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11455 done
11456 else
11457 echo "$as_me: failed program was:" >&5
11458 sed 's/^/| /' conftest.$ac_ext >&5
11460 ac_lo= ac_hi=
11463 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11466 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11467 # Binary search between lo and hi bounds.
11468 while test "x$ac_lo" != "x$ac_hi"; do
11469 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
11470 cat >conftest.$ac_ext <<_ACEOF
11471 /* confdefs.h. */
11472 _ACEOF
11473 cat confdefs.h >>conftest.$ac_ext
11474 cat >>conftest.$ac_ext <<_ACEOF
11475 /* end confdefs.h. */
11476 $ac_includes_default
11477 typedef long long ac__type_sizeof_;
11479 main ()
11481 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
11482 test_array [0] = 0
11485 return 0;
11487 _ACEOF
11488 rm -f conftest.$ac_objext
11489 if { (ac_try="$ac_compile"
11490 case "(($ac_try" in
11491 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11492 *) ac_try_echo=$ac_try;;
11493 esac
11494 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11495 (eval "$ac_compile") 2>conftest.er1
11496 ac_status=$?
11497 grep -v '^ *+' conftest.er1 >conftest.err
11498 rm -f conftest.er1
11499 cat conftest.err >&5
11500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11501 (exit $ac_status); } && {
11502 test -z "$ac_c_werror_flag" ||
11503 test ! -s conftest.err
11504 } && test -s conftest.$ac_objext; then
11505 ac_hi=$ac_mid
11506 else
11507 echo "$as_me: failed program was:" >&5
11508 sed 's/^/| /' conftest.$ac_ext >&5
11510 ac_lo=`expr '(' $ac_mid ')' + 1`
11513 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11514 done
11515 case $ac_lo in
11516 ?*) ac_cv_sizeof_long_long=$ac_lo;;
11517 '') if test "$ac_cv_type_long_long" = yes; then
11518 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
11519 See \`config.log' for more details." >&5
11520 echo "$as_me: error: cannot compute sizeof (long long)
11521 See \`config.log' for more details." >&2;}
11522 { (exit 77); exit 77; }; }
11523 else
11524 ac_cv_sizeof_long_long=0
11525 fi ;;
11526 esac
11527 else
11528 cat >conftest.$ac_ext <<_ACEOF
11529 /* confdefs.h. */
11530 _ACEOF
11531 cat confdefs.h >>conftest.$ac_ext
11532 cat >>conftest.$ac_ext <<_ACEOF
11533 /* end confdefs.h. */
11534 $ac_includes_default
11535 typedef long long ac__type_sizeof_;
11536 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
11537 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
11538 #include <stdio.h>
11539 #include <stdlib.h>
11541 main ()
11544 FILE *f = fopen ("conftest.val", "w");
11545 if (! f)
11546 return 1;
11547 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
11549 long int i = longval ();
11550 if (i != ((long int) (sizeof (ac__type_sizeof_))))
11551 return 1;
11552 fprintf (f, "%ld\n", i);
11554 else
11556 unsigned long int i = ulongval ();
11557 if (i != ((long int) (sizeof (ac__type_sizeof_))))
11558 return 1;
11559 fprintf (f, "%lu\n", i);
11561 return ferror (f) || fclose (f) != 0;
11564 return 0;
11566 _ACEOF
11567 rm -f conftest$ac_exeext
11568 if { (ac_try="$ac_link"
11569 case "(($ac_try" in
11570 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11571 *) ac_try_echo=$ac_try;;
11572 esac
11573 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11574 (eval "$ac_link") 2>&5
11575 ac_status=$?
11576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11577 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11578 { (case "(($ac_try" in
11579 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11580 *) ac_try_echo=$ac_try;;
11581 esac
11582 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11583 (eval "$ac_try") 2>&5
11584 ac_status=$?
11585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11586 (exit $ac_status); }; }; then
11587 ac_cv_sizeof_long_long=`cat conftest.val`
11588 else
11589 echo "$as_me: program exited with status $ac_status" >&5
11590 echo "$as_me: failed program was:" >&5
11591 sed 's/^/| /' conftest.$ac_ext >&5
11593 ( exit $ac_status )
11594 if test "$ac_cv_type_long_long" = yes; then
11595 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
11596 See \`config.log' for more details." >&5
11597 echo "$as_me: error: cannot compute sizeof (long long)
11598 See \`config.log' for more details." >&2;}
11599 { (exit 77); exit 77; }; }
11600 else
11601 ac_cv_sizeof_long_long=0
11604 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11606 rm -f conftest.val
11608 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
11609 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6; }
11613 cat >>confdefs.h <<_ACEOF
11614 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
11615 _ACEOF
11620 { echo "$as_me:$LINENO: checking for long double support" >&5
11621 echo $ECHO_N "checking for long double support... $ECHO_C" >&6; }
11622 have_long_double=no
11623 cat >conftest.$ac_ext <<_ACEOF
11624 /* confdefs.h. */
11625 _ACEOF
11626 cat confdefs.h >>conftest.$ac_ext
11627 cat >>conftest.$ac_ext <<_ACEOF
11628 /* end confdefs.h. */
11631 main ()
11633 long double x; x = (long double)0.;
11635 return 0;
11637 _ACEOF
11638 rm -f conftest.$ac_objext
11639 if { (ac_try="$ac_compile"
11640 case "(($ac_try" in
11641 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11642 *) ac_try_echo=$ac_try;;
11643 esac
11644 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11645 (eval "$ac_compile") 2>conftest.er1
11646 ac_status=$?
11647 grep -v '^ *+' conftest.er1 >conftest.err
11648 rm -f conftest.er1
11649 cat conftest.err >&5
11650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11651 (exit $ac_status); } && {
11652 test -z "$ac_c_werror_flag" ||
11653 test ! -s conftest.err
11654 } && test -s conftest.$ac_objext; then
11657 cat >>confdefs.h <<\_ACEOF
11658 #define HAVE_LONG_DOUBLE 1
11659 _ACEOF
11661 have_long_double=yes
11663 else
11664 echo "$as_me: failed program was:" >&5
11665 sed 's/^/| /' conftest.$ac_ext >&5
11670 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11671 { echo "$as_me:$LINENO: result: $have_long_double" >&5
11672 echo "${ECHO_T}$have_long_double" >&6; }
11673 if test "$have_long_double" = yes ; then
11674 { echo "$as_me:$LINENO: checking for long double" >&5
11675 echo $ECHO_N "checking for long double... $ECHO_C" >&6; }
11676 if test "${ac_cv_type_long_double+set}" = set; then
11677 echo $ECHO_N "(cached) $ECHO_C" >&6
11678 else
11679 cat >conftest.$ac_ext <<_ACEOF
11680 /* confdefs.h. */
11681 _ACEOF
11682 cat confdefs.h >>conftest.$ac_ext
11683 cat >>conftest.$ac_ext <<_ACEOF
11684 /* end confdefs.h. */
11685 $ac_includes_default
11686 typedef long double ac__type_new_;
11688 main ()
11690 if ((ac__type_new_ *) 0)
11691 return 0;
11692 if (sizeof (ac__type_new_))
11693 return 0;
11695 return 0;
11697 _ACEOF
11698 rm -f conftest.$ac_objext
11699 if { (ac_try="$ac_compile"
11700 case "(($ac_try" in
11701 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11702 *) ac_try_echo=$ac_try;;
11703 esac
11704 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11705 (eval "$ac_compile") 2>conftest.er1
11706 ac_status=$?
11707 grep -v '^ *+' conftest.er1 >conftest.err
11708 rm -f conftest.er1
11709 cat conftest.err >&5
11710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11711 (exit $ac_status); } && {
11712 test -z "$ac_c_werror_flag" ||
11713 test ! -s conftest.err
11714 } && test -s conftest.$ac_objext; then
11715 ac_cv_type_long_double=yes
11716 else
11717 echo "$as_me: failed program was:" >&5
11718 sed 's/^/| /' conftest.$ac_ext >&5
11720 ac_cv_type_long_double=no
11723 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11725 { echo "$as_me:$LINENO: result: $ac_cv_type_long_double" >&5
11726 echo "${ECHO_T}$ac_cv_type_long_double" >&6; }
11728 # The cast to long int works around a bug in the HP C Compiler
11729 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
11730 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
11731 # This bug is HP SR number 8606223364.
11732 { echo "$as_me:$LINENO: checking size of long double" >&5
11733 echo $ECHO_N "checking size of long double... $ECHO_C" >&6; }
11734 if test "${ac_cv_sizeof_long_double+set}" = set; then
11735 echo $ECHO_N "(cached) $ECHO_C" >&6
11736 else
11737 if test "$cross_compiling" = yes; then
11738 # Depending upon the size, compute the lo and hi bounds.
11739 cat >conftest.$ac_ext <<_ACEOF
11740 /* confdefs.h. */
11741 _ACEOF
11742 cat confdefs.h >>conftest.$ac_ext
11743 cat >>conftest.$ac_ext <<_ACEOF
11744 /* end confdefs.h. */
11745 $ac_includes_default
11746 typedef long double ac__type_sizeof_;
11748 main ()
11750 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
11751 test_array [0] = 0
11754 return 0;
11756 _ACEOF
11757 rm -f conftest.$ac_objext
11758 if { (ac_try="$ac_compile"
11759 case "(($ac_try" in
11760 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11761 *) ac_try_echo=$ac_try;;
11762 esac
11763 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11764 (eval "$ac_compile") 2>conftest.er1
11765 ac_status=$?
11766 grep -v '^ *+' conftest.er1 >conftest.err
11767 rm -f conftest.er1
11768 cat conftest.err >&5
11769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11770 (exit $ac_status); } && {
11771 test -z "$ac_c_werror_flag" ||
11772 test ! -s conftest.err
11773 } && test -s conftest.$ac_objext; then
11774 ac_lo=0 ac_mid=0
11775 while :; do
11776 cat >conftest.$ac_ext <<_ACEOF
11777 /* confdefs.h. */
11778 _ACEOF
11779 cat confdefs.h >>conftest.$ac_ext
11780 cat >>conftest.$ac_ext <<_ACEOF
11781 /* end confdefs.h. */
11782 $ac_includes_default
11783 typedef long double ac__type_sizeof_;
11785 main ()
11787 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
11788 test_array [0] = 0
11791 return 0;
11793 _ACEOF
11794 rm -f conftest.$ac_objext
11795 if { (ac_try="$ac_compile"
11796 case "(($ac_try" in
11797 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11798 *) ac_try_echo=$ac_try;;
11799 esac
11800 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11801 (eval "$ac_compile") 2>conftest.er1
11802 ac_status=$?
11803 grep -v '^ *+' conftest.er1 >conftest.err
11804 rm -f conftest.er1
11805 cat conftest.err >&5
11806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11807 (exit $ac_status); } && {
11808 test -z "$ac_c_werror_flag" ||
11809 test ! -s conftest.err
11810 } && test -s conftest.$ac_objext; then
11811 ac_hi=$ac_mid; break
11812 else
11813 echo "$as_me: failed program was:" >&5
11814 sed 's/^/| /' conftest.$ac_ext >&5
11816 ac_lo=`expr $ac_mid + 1`
11817 if test $ac_lo -le $ac_mid; then
11818 ac_lo= ac_hi=
11819 break
11821 ac_mid=`expr 2 '*' $ac_mid + 1`
11824 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11825 done
11826 else
11827 echo "$as_me: failed program was:" >&5
11828 sed 's/^/| /' conftest.$ac_ext >&5
11830 cat >conftest.$ac_ext <<_ACEOF
11831 /* confdefs.h. */
11832 _ACEOF
11833 cat confdefs.h >>conftest.$ac_ext
11834 cat >>conftest.$ac_ext <<_ACEOF
11835 /* end confdefs.h. */
11836 $ac_includes_default
11837 typedef long double ac__type_sizeof_;
11839 main ()
11841 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
11842 test_array [0] = 0
11845 return 0;
11847 _ACEOF
11848 rm -f conftest.$ac_objext
11849 if { (ac_try="$ac_compile"
11850 case "(($ac_try" in
11851 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11852 *) ac_try_echo=$ac_try;;
11853 esac
11854 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11855 (eval "$ac_compile") 2>conftest.er1
11856 ac_status=$?
11857 grep -v '^ *+' conftest.er1 >conftest.err
11858 rm -f conftest.er1
11859 cat conftest.err >&5
11860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11861 (exit $ac_status); } && {
11862 test -z "$ac_c_werror_flag" ||
11863 test ! -s conftest.err
11864 } && test -s conftest.$ac_objext; then
11865 ac_hi=-1 ac_mid=-1
11866 while :; do
11867 cat >conftest.$ac_ext <<_ACEOF
11868 /* confdefs.h. */
11869 _ACEOF
11870 cat confdefs.h >>conftest.$ac_ext
11871 cat >>conftest.$ac_ext <<_ACEOF
11872 /* end confdefs.h. */
11873 $ac_includes_default
11874 typedef long double ac__type_sizeof_;
11876 main ()
11878 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
11879 test_array [0] = 0
11882 return 0;
11884 _ACEOF
11885 rm -f conftest.$ac_objext
11886 if { (ac_try="$ac_compile"
11887 case "(($ac_try" in
11888 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11889 *) ac_try_echo=$ac_try;;
11890 esac
11891 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11892 (eval "$ac_compile") 2>conftest.er1
11893 ac_status=$?
11894 grep -v '^ *+' conftest.er1 >conftest.err
11895 rm -f conftest.er1
11896 cat conftest.err >&5
11897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11898 (exit $ac_status); } && {
11899 test -z "$ac_c_werror_flag" ||
11900 test ! -s conftest.err
11901 } && test -s conftest.$ac_objext; then
11902 ac_lo=$ac_mid; break
11903 else
11904 echo "$as_me: failed program was:" >&5
11905 sed 's/^/| /' conftest.$ac_ext >&5
11907 ac_hi=`expr '(' $ac_mid ')' - 1`
11908 if test $ac_mid -le $ac_hi; then
11909 ac_lo= ac_hi=
11910 break
11912 ac_mid=`expr 2 '*' $ac_mid`
11915 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11916 done
11917 else
11918 echo "$as_me: failed program was:" >&5
11919 sed 's/^/| /' conftest.$ac_ext >&5
11921 ac_lo= ac_hi=
11924 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11927 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11928 # Binary search between lo and hi bounds.
11929 while test "x$ac_lo" != "x$ac_hi"; do
11930 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
11931 cat >conftest.$ac_ext <<_ACEOF
11932 /* confdefs.h. */
11933 _ACEOF
11934 cat confdefs.h >>conftest.$ac_ext
11935 cat >>conftest.$ac_ext <<_ACEOF
11936 /* end confdefs.h. */
11937 $ac_includes_default
11938 typedef long double ac__type_sizeof_;
11940 main ()
11942 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
11943 test_array [0] = 0
11946 return 0;
11948 _ACEOF
11949 rm -f conftest.$ac_objext
11950 if { (ac_try="$ac_compile"
11951 case "(($ac_try" in
11952 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11953 *) ac_try_echo=$ac_try;;
11954 esac
11955 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11956 (eval "$ac_compile") 2>conftest.er1
11957 ac_status=$?
11958 grep -v '^ *+' conftest.er1 >conftest.err
11959 rm -f conftest.er1
11960 cat conftest.err >&5
11961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11962 (exit $ac_status); } && {
11963 test -z "$ac_c_werror_flag" ||
11964 test ! -s conftest.err
11965 } && test -s conftest.$ac_objext; then
11966 ac_hi=$ac_mid
11967 else
11968 echo "$as_me: failed program was:" >&5
11969 sed 's/^/| /' conftest.$ac_ext >&5
11971 ac_lo=`expr '(' $ac_mid ')' + 1`
11974 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11975 done
11976 case $ac_lo in
11977 ?*) ac_cv_sizeof_long_double=$ac_lo;;
11978 '') if test "$ac_cv_type_long_double" = yes; then
11979 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long double)
11980 See \`config.log' for more details." >&5
11981 echo "$as_me: error: cannot compute sizeof (long double)
11982 See \`config.log' for more details." >&2;}
11983 { (exit 77); exit 77; }; }
11984 else
11985 ac_cv_sizeof_long_double=0
11986 fi ;;
11987 esac
11988 else
11989 cat >conftest.$ac_ext <<_ACEOF
11990 /* confdefs.h. */
11991 _ACEOF
11992 cat confdefs.h >>conftest.$ac_ext
11993 cat >>conftest.$ac_ext <<_ACEOF
11994 /* end confdefs.h. */
11995 $ac_includes_default
11996 typedef long double ac__type_sizeof_;
11997 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
11998 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
11999 #include <stdio.h>
12000 #include <stdlib.h>
12002 main ()
12005 FILE *f = fopen ("conftest.val", "w");
12006 if (! f)
12007 return 1;
12008 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
12010 long int i = longval ();
12011 if (i != ((long int) (sizeof (ac__type_sizeof_))))
12012 return 1;
12013 fprintf (f, "%ld\n", i);
12015 else
12017 unsigned long int i = ulongval ();
12018 if (i != ((long int) (sizeof (ac__type_sizeof_))))
12019 return 1;
12020 fprintf (f, "%lu\n", i);
12022 return ferror (f) || fclose (f) != 0;
12025 return 0;
12027 _ACEOF
12028 rm -f conftest$ac_exeext
12029 if { (ac_try="$ac_link"
12030 case "(($ac_try" in
12031 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12032 *) ac_try_echo=$ac_try;;
12033 esac
12034 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12035 (eval "$ac_link") 2>&5
12036 ac_status=$?
12037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12038 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12039 { (case "(($ac_try" in
12040 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12041 *) ac_try_echo=$ac_try;;
12042 esac
12043 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12044 (eval "$ac_try") 2>&5
12045 ac_status=$?
12046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12047 (exit $ac_status); }; }; then
12048 ac_cv_sizeof_long_double=`cat conftest.val`
12049 else
12050 echo "$as_me: program exited with status $ac_status" >&5
12051 echo "$as_me: failed program was:" >&5
12052 sed 's/^/| /' conftest.$ac_ext >&5
12054 ( exit $ac_status )
12055 if test "$ac_cv_type_long_double" = yes; then
12056 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long double)
12057 See \`config.log' for more details." >&5
12058 echo "$as_me: error: cannot compute sizeof (long double)
12059 See \`config.log' for more details." >&2;}
12060 { (exit 77); exit 77; }; }
12061 else
12062 ac_cv_sizeof_long_double=0
12065 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12067 rm -f conftest.val
12069 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_double" >&5
12070 echo "${ECHO_T}$ac_cv_sizeof_long_double" >&6; }
12074 cat >>confdefs.h <<_ACEOF
12075 #define SIZEOF_LONG_DOUBLE $ac_cv_sizeof_long_double
12076 _ACEOF
12081 { echo "$as_me:$LINENO: checking for _Bool support" >&5
12082 echo $ECHO_N "checking for _Bool support... $ECHO_C" >&6; }
12083 have_c99_bool=no
12084 cat >conftest.$ac_ext <<_ACEOF
12085 /* confdefs.h. */
12086 _ACEOF
12087 cat confdefs.h >>conftest.$ac_ext
12088 cat >>conftest.$ac_ext <<_ACEOF
12089 /* end confdefs.h. */
12092 main ()
12094 _Bool x; x = (_Bool)0;
12096 return 0;
12098 _ACEOF
12099 rm -f conftest.$ac_objext
12100 if { (ac_try="$ac_compile"
12101 case "(($ac_try" in
12102 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12103 *) ac_try_echo=$ac_try;;
12104 esac
12105 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12106 (eval "$ac_compile") 2>conftest.er1
12107 ac_status=$?
12108 grep -v '^ *+' conftest.er1 >conftest.err
12109 rm -f conftest.er1
12110 cat conftest.err >&5
12111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12112 (exit $ac_status); } && {
12113 test -z "$ac_c_werror_flag" ||
12114 test ! -s conftest.err
12115 } && test -s conftest.$ac_objext; then
12118 cat >>confdefs.h <<\_ACEOF
12119 #define HAVE_C99_BOOL 1
12120 _ACEOF
12122 have_c99_bool=yes
12124 else
12125 echo "$as_me: failed program was:" >&5
12126 sed 's/^/| /' conftest.$ac_ext >&5
12131 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12132 { echo "$as_me:$LINENO: result: $have_c99_bool" >&5
12133 echo "${ECHO_T}$have_c99_bool" >&6; }
12134 if test "$have_c99_bool" = yes ; then
12135 { echo "$as_me:$LINENO: checking for _Bool" >&5
12136 echo $ECHO_N "checking for _Bool... $ECHO_C" >&6; }
12137 if test "${ac_cv_type__Bool+set}" = set; then
12138 echo $ECHO_N "(cached) $ECHO_C" >&6
12139 else
12140 cat >conftest.$ac_ext <<_ACEOF
12141 /* confdefs.h. */
12142 _ACEOF
12143 cat confdefs.h >>conftest.$ac_ext
12144 cat >>conftest.$ac_ext <<_ACEOF
12145 /* end confdefs.h. */
12146 $ac_includes_default
12147 typedef _Bool ac__type_new_;
12149 main ()
12151 if ((ac__type_new_ *) 0)
12152 return 0;
12153 if (sizeof (ac__type_new_))
12154 return 0;
12156 return 0;
12158 _ACEOF
12159 rm -f conftest.$ac_objext
12160 if { (ac_try="$ac_compile"
12161 case "(($ac_try" in
12162 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12163 *) ac_try_echo=$ac_try;;
12164 esac
12165 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12166 (eval "$ac_compile") 2>conftest.er1
12167 ac_status=$?
12168 grep -v '^ *+' conftest.er1 >conftest.err
12169 rm -f conftest.er1
12170 cat conftest.err >&5
12171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12172 (exit $ac_status); } && {
12173 test -z "$ac_c_werror_flag" ||
12174 test ! -s conftest.err
12175 } && test -s conftest.$ac_objext; then
12176 ac_cv_type__Bool=yes
12177 else
12178 echo "$as_me: failed program was:" >&5
12179 sed 's/^/| /' conftest.$ac_ext >&5
12181 ac_cv_type__Bool=no
12184 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12186 { echo "$as_me:$LINENO: result: $ac_cv_type__Bool" >&5
12187 echo "${ECHO_T}$ac_cv_type__Bool" >&6; }
12189 # The cast to long int works around a bug in the HP C Compiler
12190 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12191 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12192 # This bug is HP SR number 8606223364.
12193 { echo "$as_me:$LINENO: checking size of _Bool" >&5
12194 echo $ECHO_N "checking size of _Bool... $ECHO_C" >&6; }
12195 if test "${ac_cv_sizeof__Bool+set}" = set; then
12196 echo $ECHO_N "(cached) $ECHO_C" >&6
12197 else
12198 if test "$cross_compiling" = yes; then
12199 # Depending upon the size, compute the lo and hi bounds.
12200 cat >conftest.$ac_ext <<_ACEOF
12201 /* confdefs.h. */
12202 _ACEOF
12203 cat confdefs.h >>conftest.$ac_ext
12204 cat >>conftest.$ac_ext <<_ACEOF
12205 /* end confdefs.h. */
12206 $ac_includes_default
12207 typedef _Bool ac__type_sizeof_;
12209 main ()
12211 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
12212 test_array [0] = 0
12215 return 0;
12217 _ACEOF
12218 rm -f conftest.$ac_objext
12219 if { (ac_try="$ac_compile"
12220 case "(($ac_try" in
12221 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12222 *) ac_try_echo=$ac_try;;
12223 esac
12224 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12225 (eval "$ac_compile") 2>conftest.er1
12226 ac_status=$?
12227 grep -v '^ *+' conftest.er1 >conftest.err
12228 rm -f conftest.er1
12229 cat conftest.err >&5
12230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12231 (exit $ac_status); } && {
12232 test -z "$ac_c_werror_flag" ||
12233 test ! -s conftest.err
12234 } && test -s conftest.$ac_objext; then
12235 ac_lo=0 ac_mid=0
12236 while :; do
12237 cat >conftest.$ac_ext <<_ACEOF
12238 /* confdefs.h. */
12239 _ACEOF
12240 cat confdefs.h >>conftest.$ac_ext
12241 cat >>conftest.$ac_ext <<_ACEOF
12242 /* end confdefs.h. */
12243 $ac_includes_default
12244 typedef _Bool ac__type_sizeof_;
12246 main ()
12248 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
12249 test_array [0] = 0
12252 return 0;
12254 _ACEOF
12255 rm -f conftest.$ac_objext
12256 if { (ac_try="$ac_compile"
12257 case "(($ac_try" in
12258 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12259 *) ac_try_echo=$ac_try;;
12260 esac
12261 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12262 (eval "$ac_compile") 2>conftest.er1
12263 ac_status=$?
12264 grep -v '^ *+' conftest.er1 >conftest.err
12265 rm -f conftest.er1
12266 cat conftest.err >&5
12267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12268 (exit $ac_status); } && {
12269 test -z "$ac_c_werror_flag" ||
12270 test ! -s conftest.err
12271 } && test -s conftest.$ac_objext; then
12272 ac_hi=$ac_mid; break
12273 else
12274 echo "$as_me: failed program was:" >&5
12275 sed 's/^/| /' conftest.$ac_ext >&5
12277 ac_lo=`expr $ac_mid + 1`
12278 if test $ac_lo -le $ac_mid; then
12279 ac_lo= ac_hi=
12280 break
12282 ac_mid=`expr 2 '*' $ac_mid + 1`
12285 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12286 done
12287 else
12288 echo "$as_me: failed program was:" >&5
12289 sed 's/^/| /' conftest.$ac_ext >&5
12291 cat >conftest.$ac_ext <<_ACEOF
12292 /* confdefs.h. */
12293 _ACEOF
12294 cat confdefs.h >>conftest.$ac_ext
12295 cat >>conftest.$ac_ext <<_ACEOF
12296 /* end confdefs.h. */
12297 $ac_includes_default
12298 typedef _Bool ac__type_sizeof_;
12300 main ()
12302 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
12303 test_array [0] = 0
12306 return 0;
12308 _ACEOF
12309 rm -f conftest.$ac_objext
12310 if { (ac_try="$ac_compile"
12311 case "(($ac_try" in
12312 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12313 *) ac_try_echo=$ac_try;;
12314 esac
12315 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12316 (eval "$ac_compile") 2>conftest.er1
12317 ac_status=$?
12318 grep -v '^ *+' conftest.er1 >conftest.err
12319 rm -f conftest.er1
12320 cat conftest.err >&5
12321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12322 (exit $ac_status); } && {
12323 test -z "$ac_c_werror_flag" ||
12324 test ! -s conftest.err
12325 } && test -s conftest.$ac_objext; then
12326 ac_hi=-1 ac_mid=-1
12327 while :; do
12328 cat >conftest.$ac_ext <<_ACEOF
12329 /* confdefs.h. */
12330 _ACEOF
12331 cat confdefs.h >>conftest.$ac_ext
12332 cat >>conftest.$ac_ext <<_ACEOF
12333 /* end confdefs.h. */
12334 $ac_includes_default
12335 typedef _Bool ac__type_sizeof_;
12337 main ()
12339 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
12340 test_array [0] = 0
12343 return 0;
12345 _ACEOF
12346 rm -f conftest.$ac_objext
12347 if { (ac_try="$ac_compile"
12348 case "(($ac_try" in
12349 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12350 *) ac_try_echo=$ac_try;;
12351 esac
12352 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12353 (eval "$ac_compile") 2>conftest.er1
12354 ac_status=$?
12355 grep -v '^ *+' conftest.er1 >conftest.err
12356 rm -f conftest.er1
12357 cat conftest.err >&5
12358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12359 (exit $ac_status); } && {
12360 test -z "$ac_c_werror_flag" ||
12361 test ! -s conftest.err
12362 } && test -s conftest.$ac_objext; then
12363 ac_lo=$ac_mid; break
12364 else
12365 echo "$as_me: failed program was:" >&5
12366 sed 's/^/| /' conftest.$ac_ext >&5
12368 ac_hi=`expr '(' $ac_mid ')' - 1`
12369 if test $ac_mid -le $ac_hi; then
12370 ac_lo= ac_hi=
12371 break
12373 ac_mid=`expr 2 '*' $ac_mid`
12376 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12377 done
12378 else
12379 echo "$as_me: failed program was:" >&5
12380 sed 's/^/| /' conftest.$ac_ext >&5
12382 ac_lo= ac_hi=
12385 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12388 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12389 # Binary search between lo and hi bounds.
12390 while test "x$ac_lo" != "x$ac_hi"; do
12391 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
12392 cat >conftest.$ac_ext <<_ACEOF
12393 /* confdefs.h. */
12394 _ACEOF
12395 cat confdefs.h >>conftest.$ac_ext
12396 cat >>conftest.$ac_ext <<_ACEOF
12397 /* end confdefs.h. */
12398 $ac_includes_default
12399 typedef _Bool ac__type_sizeof_;
12401 main ()
12403 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
12404 test_array [0] = 0
12407 return 0;
12409 _ACEOF
12410 rm -f conftest.$ac_objext
12411 if { (ac_try="$ac_compile"
12412 case "(($ac_try" in
12413 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12414 *) ac_try_echo=$ac_try;;
12415 esac
12416 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12417 (eval "$ac_compile") 2>conftest.er1
12418 ac_status=$?
12419 grep -v '^ *+' conftest.er1 >conftest.err
12420 rm -f conftest.er1
12421 cat conftest.err >&5
12422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12423 (exit $ac_status); } && {
12424 test -z "$ac_c_werror_flag" ||
12425 test ! -s conftest.err
12426 } && test -s conftest.$ac_objext; then
12427 ac_hi=$ac_mid
12428 else
12429 echo "$as_me: failed program was:" >&5
12430 sed 's/^/| /' conftest.$ac_ext >&5
12432 ac_lo=`expr '(' $ac_mid ')' + 1`
12435 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12436 done
12437 case $ac_lo in
12438 ?*) ac_cv_sizeof__Bool=$ac_lo;;
12439 '') if test "$ac_cv_type__Bool" = yes; then
12440 { { echo "$as_me:$LINENO: error: cannot compute sizeof (_Bool)
12441 See \`config.log' for more details." >&5
12442 echo "$as_me: error: cannot compute sizeof (_Bool)
12443 See \`config.log' for more details." >&2;}
12444 { (exit 77); exit 77; }; }
12445 else
12446 ac_cv_sizeof__Bool=0
12447 fi ;;
12448 esac
12449 else
12450 cat >conftest.$ac_ext <<_ACEOF
12451 /* confdefs.h. */
12452 _ACEOF
12453 cat confdefs.h >>conftest.$ac_ext
12454 cat >>conftest.$ac_ext <<_ACEOF
12455 /* end confdefs.h. */
12456 $ac_includes_default
12457 typedef _Bool ac__type_sizeof_;
12458 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
12459 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
12460 #include <stdio.h>
12461 #include <stdlib.h>
12463 main ()
12466 FILE *f = fopen ("conftest.val", "w");
12467 if (! f)
12468 return 1;
12469 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
12471 long int i = longval ();
12472 if (i != ((long int) (sizeof (ac__type_sizeof_))))
12473 return 1;
12474 fprintf (f, "%ld\n", i);
12476 else
12478 unsigned long int i = ulongval ();
12479 if (i != ((long int) (sizeof (ac__type_sizeof_))))
12480 return 1;
12481 fprintf (f, "%lu\n", i);
12483 return ferror (f) || fclose (f) != 0;
12486 return 0;
12488 _ACEOF
12489 rm -f conftest$ac_exeext
12490 if { (ac_try="$ac_link"
12491 case "(($ac_try" in
12492 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12493 *) ac_try_echo=$ac_try;;
12494 esac
12495 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12496 (eval "$ac_link") 2>&5
12497 ac_status=$?
12498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12499 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12500 { (case "(($ac_try" in
12501 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12502 *) ac_try_echo=$ac_try;;
12503 esac
12504 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12505 (eval "$ac_try") 2>&5
12506 ac_status=$?
12507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12508 (exit $ac_status); }; }; then
12509 ac_cv_sizeof__Bool=`cat conftest.val`
12510 else
12511 echo "$as_me: program exited with status $ac_status" >&5
12512 echo "$as_me: failed program was:" >&5
12513 sed 's/^/| /' conftest.$ac_ext >&5
12515 ( exit $ac_status )
12516 if test "$ac_cv_type__Bool" = yes; then
12517 { { echo "$as_me:$LINENO: error: cannot compute sizeof (_Bool)
12518 See \`config.log' for more details." >&5
12519 echo "$as_me: error: cannot compute sizeof (_Bool)
12520 See \`config.log' for more details." >&2;}
12521 { (exit 77); exit 77; }; }
12522 else
12523 ac_cv_sizeof__Bool=0
12526 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12528 rm -f conftest.val
12530 { echo "$as_me:$LINENO: result: $ac_cv_sizeof__Bool" >&5
12531 echo "${ECHO_T}$ac_cv_sizeof__Bool" >&6; }
12535 cat >>confdefs.h <<_ACEOF
12536 #define SIZEOF__BOOL $ac_cv_sizeof__Bool
12537 _ACEOF
12542 { echo "$as_me:$LINENO: checking for uintptr_t" >&5
12543 echo $ECHO_N "checking for uintptr_t... $ECHO_C" >&6; }
12544 if test "${ac_cv_type_uintptr_t+set}" = set; then
12545 echo $ECHO_N "(cached) $ECHO_C" >&6
12546 else
12547 cat >conftest.$ac_ext <<_ACEOF
12548 /* confdefs.h. */
12549 _ACEOF
12550 cat confdefs.h >>conftest.$ac_ext
12551 cat >>conftest.$ac_ext <<_ACEOF
12552 /* end confdefs.h. */
12553 #ifdef HAVE_STDINT_H
12554 #include <stdint.h>
12555 #endif
12557 typedef uintptr_t ac__type_new_;
12559 main ()
12561 if ((ac__type_new_ *) 0)
12562 return 0;
12563 if (sizeof (ac__type_new_))
12564 return 0;
12566 return 0;
12568 _ACEOF
12569 rm -f conftest.$ac_objext
12570 if { (ac_try="$ac_compile"
12571 case "(($ac_try" in
12572 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12573 *) ac_try_echo=$ac_try;;
12574 esac
12575 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12576 (eval "$ac_compile") 2>conftest.er1
12577 ac_status=$?
12578 grep -v '^ *+' conftest.er1 >conftest.err
12579 rm -f conftest.er1
12580 cat conftest.err >&5
12581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12582 (exit $ac_status); } && {
12583 test -z "$ac_c_werror_flag" ||
12584 test ! -s conftest.err
12585 } && test -s conftest.$ac_objext; then
12586 ac_cv_type_uintptr_t=yes
12587 else
12588 echo "$as_me: failed program was:" >&5
12589 sed 's/^/| /' conftest.$ac_ext >&5
12591 ac_cv_type_uintptr_t=no
12594 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12596 { echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5
12597 echo "${ECHO_T}$ac_cv_type_uintptr_t" >&6; }
12598 if test $ac_cv_type_uintptr_t = yes; then
12600 cat >>confdefs.h <<_ACEOF
12601 #define HAVE_UINTPTR_T 1
12602 _ACEOF
12604 { echo "$as_me:$LINENO: checking for uintptr_t" >&5
12605 echo $ECHO_N "checking for uintptr_t... $ECHO_C" >&6; }
12606 if test "${ac_cv_type_uintptr_t+set}" = set; then
12607 echo $ECHO_N "(cached) $ECHO_C" >&6
12608 else
12609 cat >conftest.$ac_ext <<_ACEOF
12610 /* confdefs.h. */
12611 _ACEOF
12612 cat confdefs.h >>conftest.$ac_ext
12613 cat >>conftest.$ac_ext <<_ACEOF
12614 /* end confdefs.h. */
12615 $ac_includes_default
12616 typedef uintptr_t ac__type_new_;
12618 main ()
12620 if ((ac__type_new_ *) 0)
12621 return 0;
12622 if (sizeof (ac__type_new_))
12623 return 0;
12625 return 0;
12627 _ACEOF
12628 rm -f conftest.$ac_objext
12629 if { (ac_try="$ac_compile"
12630 case "(($ac_try" in
12631 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12632 *) ac_try_echo=$ac_try;;
12633 esac
12634 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12635 (eval "$ac_compile") 2>conftest.er1
12636 ac_status=$?
12637 grep -v '^ *+' conftest.er1 >conftest.err
12638 rm -f conftest.er1
12639 cat conftest.err >&5
12640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12641 (exit $ac_status); } && {
12642 test -z "$ac_c_werror_flag" ||
12643 test ! -s conftest.err
12644 } && test -s conftest.$ac_objext; then
12645 ac_cv_type_uintptr_t=yes
12646 else
12647 echo "$as_me: failed program was:" >&5
12648 sed 's/^/| /' conftest.$ac_ext >&5
12650 ac_cv_type_uintptr_t=no
12653 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12655 { echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5
12656 echo "${ECHO_T}$ac_cv_type_uintptr_t" >&6; }
12658 # The cast to long int works around a bug in the HP C Compiler
12659 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12660 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12661 # This bug is HP SR number 8606223364.
12662 { echo "$as_me:$LINENO: checking size of uintptr_t" >&5
12663 echo $ECHO_N "checking size of uintptr_t... $ECHO_C" >&6; }
12664 if test "${ac_cv_sizeof_uintptr_t+set}" = set; then
12665 echo $ECHO_N "(cached) $ECHO_C" >&6
12666 else
12667 if test "$cross_compiling" = yes; then
12668 # Depending upon the size, compute the lo and hi bounds.
12669 cat >conftest.$ac_ext <<_ACEOF
12670 /* confdefs.h. */
12671 _ACEOF
12672 cat confdefs.h >>conftest.$ac_ext
12673 cat >>conftest.$ac_ext <<_ACEOF
12674 /* end confdefs.h. */
12675 $ac_includes_default
12676 typedef uintptr_t ac__type_sizeof_;
12678 main ()
12680 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
12681 test_array [0] = 0
12684 return 0;
12686 _ACEOF
12687 rm -f conftest.$ac_objext
12688 if { (ac_try="$ac_compile"
12689 case "(($ac_try" in
12690 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12691 *) ac_try_echo=$ac_try;;
12692 esac
12693 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12694 (eval "$ac_compile") 2>conftest.er1
12695 ac_status=$?
12696 grep -v '^ *+' conftest.er1 >conftest.err
12697 rm -f conftest.er1
12698 cat conftest.err >&5
12699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12700 (exit $ac_status); } && {
12701 test -z "$ac_c_werror_flag" ||
12702 test ! -s conftest.err
12703 } && test -s conftest.$ac_objext; then
12704 ac_lo=0 ac_mid=0
12705 while :; do
12706 cat >conftest.$ac_ext <<_ACEOF
12707 /* confdefs.h. */
12708 _ACEOF
12709 cat confdefs.h >>conftest.$ac_ext
12710 cat >>conftest.$ac_ext <<_ACEOF
12711 /* end confdefs.h. */
12712 $ac_includes_default
12713 typedef uintptr_t ac__type_sizeof_;
12715 main ()
12717 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
12718 test_array [0] = 0
12721 return 0;
12723 _ACEOF
12724 rm -f conftest.$ac_objext
12725 if { (ac_try="$ac_compile"
12726 case "(($ac_try" in
12727 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12728 *) ac_try_echo=$ac_try;;
12729 esac
12730 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12731 (eval "$ac_compile") 2>conftest.er1
12732 ac_status=$?
12733 grep -v '^ *+' conftest.er1 >conftest.err
12734 rm -f conftest.er1
12735 cat conftest.err >&5
12736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12737 (exit $ac_status); } && {
12738 test -z "$ac_c_werror_flag" ||
12739 test ! -s conftest.err
12740 } && test -s conftest.$ac_objext; then
12741 ac_hi=$ac_mid; break
12742 else
12743 echo "$as_me: failed program was:" >&5
12744 sed 's/^/| /' conftest.$ac_ext >&5
12746 ac_lo=`expr $ac_mid + 1`
12747 if test $ac_lo -le $ac_mid; then
12748 ac_lo= ac_hi=
12749 break
12751 ac_mid=`expr 2 '*' $ac_mid + 1`
12754 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12755 done
12756 else
12757 echo "$as_me: failed program was:" >&5
12758 sed 's/^/| /' conftest.$ac_ext >&5
12760 cat >conftest.$ac_ext <<_ACEOF
12761 /* confdefs.h. */
12762 _ACEOF
12763 cat confdefs.h >>conftest.$ac_ext
12764 cat >>conftest.$ac_ext <<_ACEOF
12765 /* end confdefs.h. */
12766 $ac_includes_default
12767 typedef uintptr_t ac__type_sizeof_;
12769 main ()
12771 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
12772 test_array [0] = 0
12775 return 0;
12777 _ACEOF
12778 rm -f conftest.$ac_objext
12779 if { (ac_try="$ac_compile"
12780 case "(($ac_try" in
12781 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12782 *) ac_try_echo=$ac_try;;
12783 esac
12784 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12785 (eval "$ac_compile") 2>conftest.er1
12786 ac_status=$?
12787 grep -v '^ *+' conftest.er1 >conftest.err
12788 rm -f conftest.er1
12789 cat conftest.err >&5
12790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12791 (exit $ac_status); } && {
12792 test -z "$ac_c_werror_flag" ||
12793 test ! -s conftest.err
12794 } && test -s conftest.$ac_objext; then
12795 ac_hi=-1 ac_mid=-1
12796 while :; do
12797 cat >conftest.$ac_ext <<_ACEOF
12798 /* confdefs.h. */
12799 _ACEOF
12800 cat confdefs.h >>conftest.$ac_ext
12801 cat >>conftest.$ac_ext <<_ACEOF
12802 /* end confdefs.h. */
12803 $ac_includes_default
12804 typedef uintptr_t ac__type_sizeof_;
12806 main ()
12808 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
12809 test_array [0] = 0
12812 return 0;
12814 _ACEOF
12815 rm -f conftest.$ac_objext
12816 if { (ac_try="$ac_compile"
12817 case "(($ac_try" in
12818 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12819 *) ac_try_echo=$ac_try;;
12820 esac
12821 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12822 (eval "$ac_compile") 2>conftest.er1
12823 ac_status=$?
12824 grep -v '^ *+' conftest.er1 >conftest.err
12825 rm -f conftest.er1
12826 cat conftest.err >&5
12827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12828 (exit $ac_status); } && {
12829 test -z "$ac_c_werror_flag" ||
12830 test ! -s conftest.err
12831 } && test -s conftest.$ac_objext; then
12832 ac_lo=$ac_mid; break
12833 else
12834 echo "$as_me: failed program was:" >&5
12835 sed 's/^/| /' conftest.$ac_ext >&5
12837 ac_hi=`expr '(' $ac_mid ')' - 1`
12838 if test $ac_mid -le $ac_hi; then
12839 ac_lo= ac_hi=
12840 break
12842 ac_mid=`expr 2 '*' $ac_mid`
12845 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12846 done
12847 else
12848 echo "$as_me: failed program was:" >&5
12849 sed 's/^/| /' conftest.$ac_ext >&5
12851 ac_lo= ac_hi=
12854 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12857 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12858 # Binary search between lo and hi bounds.
12859 while test "x$ac_lo" != "x$ac_hi"; do
12860 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
12861 cat >conftest.$ac_ext <<_ACEOF
12862 /* confdefs.h. */
12863 _ACEOF
12864 cat confdefs.h >>conftest.$ac_ext
12865 cat >>conftest.$ac_ext <<_ACEOF
12866 /* end confdefs.h. */
12867 $ac_includes_default
12868 typedef uintptr_t ac__type_sizeof_;
12870 main ()
12872 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
12873 test_array [0] = 0
12876 return 0;
12878 _ACEOF
12879 rm -f conftest.$ac_objext
12880 if { (ac_try="$ac_compile"
12881 case "(($ac_try" in
12882 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12883 *) ac_try_echo=$ac_try;;
12884 esac
12885 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12886 (eval "$ac_compile") 2>conftest.er1
12887 ac_status=$?
12888 grep -v '^ *+' conftest.er1 >conftest.err
12889 rm -f conftest.er1
12890 cat conftest.err >&5
12891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12892 (exit $ac_status); } && {
12893 test -z "$ac_c_werror_flag" ||
12894 test ! -s conftest.err
12895 } && test -s conftest.$ac_objext; then
12896 ac_hi=$ac_mid
12897 else
12898 echo "$as_me: failed program was:" >&5
12899 sed 's/^/| /' conftest.$ac_ext >&5
12901 ac_lo=`expr '(' $ac_mid ')' + 1`
12904 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12905 done
12906 case $ac_lo in
12907 ?*) ac_cv_sizeof_uintptr_t=$ac_lo;;
12908 '') if test "$ac_cv_type_uintptr_t" = yes; then
12909 { { echo "$as_me:$LINENO: error: cannot compute sizeof (uintptr_t)
12910 See \`config.log' for more details." >&5
12911 echo "$as_me: error: cannot compute sizeof (uintptr_t)
12912 See \`config.log' for more details." >&2;}
12913 { (exit 77); exit 77; }; }
12914 else
12915 ac_cv_sizeof_uintptr_t=0
12916 fi ;;
12917 esac
12918 else
12919 cat >conftest.$ac_ext <<_ACEOF
12920 /* confdefs.h. */
12921 _ACEOF
12922 cat confdefs.h >>conftest.$ac_ext
12923 cat >>conftest.$ac_ext <<_ACEOF
12924 /* end confdefs.h. */
12925 $ac_includes_default
12926 typedef uintptr_t ac__type_sizeof_;
12927 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
12928 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
12929 #include <stdio.h>
12930 #include <stdlib.h>
12932 main ()
12935 FILE *f = fopen ("conftest.val", "w");
12936 if (! f)
12937 return 1;
12938 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
12940 long int i = longval ();
12941 if (i != ((long int) (sizeof (ac__type_sizeof_))))
12942 return 1;
12943 fprintf (f, "%ld\n", i);
12945 else
12947 unsigned long int i = ulongval ();
12948 if (i != ((long int) (sizeof (ac__type_sizeof_))))
12949 return 1;
12950 fprintf (f, "%lu\n", i);
12952 return ferror (f) || fclose (f) != 0;
12955 return 0;
12957 _ACEOF
12958 rm -f conftest$ac_exeext
12959 if { (ac_try="$ac_link"
12960 case "(($ac_try" in
12961 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12962 *) ac_try_echo=$ac_try;;
12963 esac
12964 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12965 (eval "$ac_link") 2>&5
12966 ac_status=$?
12967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12968 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12969 { (case "(($ac_try" in
12970 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12971 *) ac_try_echo=$ac_try;;
12972 esac
12973 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12974 (eval "$ac_try") 2>&5
12975 ac_status=$?
12976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12977 (exit $ac_status); }; }; then
12978 ac_cv_sizeof_uintptr_t=`cat conftest.val`
12979 else
12980 echo "$as_me: program exited with status $ac_status" >&5
12981 echo "$as_me: failed program was:" >&5
12982 sed 's/^/| /' conftest.$ac_ext >&5
12984 ( exit $ac_status )
12985 if test "$ac_cv_type_uintptr_t" = yes; then
12986 { { echo "$as_me:$LINENO: error: cannot compute sizeof (uintptr_t)
12987 See \`config.log' for more details." >&5
12988 echo "$as_me: error: cannot compute sizeof (uintptr_t)
12989 See \`config.log' for more details." >&2;}
12990 { (exit 77); exit 77; }; }
12991 else
12992 ac_cv_sizeof_uintptr_t=0
12995 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12997 rm -f conftest.val
12999 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_uintptr_t" >&5
13000 echo "${ECHO_T}$ac_cv_sizeof_uintptr_t" >&6; }
13004 cat >>confdefs.h <<_ACEOF
13005 #define SIZEOF_UINTPTR_T $ac_cv_sizeof_uintptr_t
13006 _ACEOF
13012 { echo "$as_me:$LINENO: checking for off_t" >&5
13013 echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
13014 if test "${ac_cv_type_off_t+set}" = set; then
13015 echo $ECHO_N "(cached) $ECHO_C" >&6
13016 else
13017 cat >conftest.$ac_ext <<_ACEOF
13018 /* confdefs.h. */
13019 _ACEOF
13020 cat confdefs.h >>conftest.$ac_ext
13021 cat >>conftest.$ac_ext <<_ACEOF
13022 /* end confdefs.h. */
13024 #ifdef HAVE_SYS_TYPES_H
13025 #include <sys/types.h>
13026 #endif
13029 typedef off_t ac__type_new_;
13031 main ()
13033 if ((ac__type_new_ *) 0)
13034 return 0;
13035 if (sizeof (ac__type_new_))
13036 return 0;
13038 return 0;
13040 _ACEOF
13041 rm -f conftest.$ac_objext
13042 if { (ac_try="$ac_compile"
13043 case "(($ac_try" in
13044 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13045 *) ac_try_echo=$ac_try;;
13046 esac
13047 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13048 (eval "$ac_compile") 2>conftest.er1
13049 ac_status=$?
13050 grep -v '^ *+' conftest.er1 >conftest.err
13051 rm -f conftest.er1
13052 cat conftest.err >&5
13053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13054 (exit $ac_status); } && {
13055 test -z "$ac_c_werror_flag" ||
13056 test ! -s conftest.err
13057 } && test -s conftest.$ac_objext; then
13058 ac_cv_type_off_t=yes
13059 else
13060 echo "$as_me: failed program was:" >&5
13061 sed 's/^/| /' conftest.$ac_ext >&5
13063 ac_cv_type_off_t=no
13066 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13068 { echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
13069 echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
13071 # The cast to long int works around a bug in the HP C Compiler
13072 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13073 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13074 # This bug is HP SR number 8606223364.
13075 { echo "$as_me:$LINENO: checking size of off_t" >&5
13076 echo $ECHO_N "checking size of off_t... $ECHO_C" >&6; }
13077 if test "${ac_cv_sizeof_off_t+set}" = set; then
13078 echo $ECHO_N "(cached) $ECHO_C" >&6
13079 else
13080 if test "$cross_compiling" = yes; then
13081 # Depending upon the size, compute the lo and hi bounds.
13082 cat >conftest.$ac_ext <<_ACEOF
13083 /* confdefs.h. */
13084 _ACEOF
13085 cat confdefs.h >>conftest.$ac_ext
13086 cat >>conftest.$ac_ext <<_ACEOF
13087 /* end confdefs.h. */
13089 #ifdef HAVE_SYS_TYPES_H
13090 #include <sys/types.h>
13091 #endif
13094 typedef off_t ac__type_sizeof_;
13096 main ()
13098 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
13099 test_array [0] = 0
13102 return 0;
13104 _ACEOF
13105 rm -f conftest.$ac_objext
13106 if { (ac_try="$ac_compile"
13107 case "(($ac_try" in
13108 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13109 *) ac_try_echo=$ac_try;;
13110 esac
13111 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13112 (eval "$ac_compile") 2>conftest.er1
13113 ac_status=$?
13114 grep -v '^ *+' conftest.er1 >conftest.err
13115 rm -f conftest.er1
13116 cat conftest.err >&5
13117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13118 (exit $ac_status); } && {
13119 test -z "$ac_c_werror_flag" ||
13120 test ! -s conftest.err
13121 } && test -s conftest.$ac_objext; then
13122 ac_lo=0 ac_mid=0
13123 while :; do
13124 cat >conftest.$ac_ext <<_ACEOF
13125 /* confdefs.h. */
13126 _ACEOF
13127 cat confdefs.h >>conftest.$ac_ext
13128 cat >>conftest.$ac_ext <<_ACEOF
13129 /* end confdefs.h. */
13131 #ifdef HAVE_SYS_TYPES_H
13132 #include <sys/types.h>
13133 #endif
13136 typedef off_t ac__type_sizeof_;
13138 main ()
13140 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
13141 test_array [0] = 0
13144 return 0;
13146 _ACEOF
13147 rm -f conftest.$ac_objext
13148 if { (ac_try="$ac_compile"
13149 case "(($ac_try" in
13150 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13151 *) ac_try_echo=$ac_try;;
13152 esac
13153 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13154 (eval "$ac_compile") 2>conftest.er1
13155 ac_status=$?
13156 grep -v '^ *+' conftest.er1 >conftest.err
13157 rm -f conftest.er1
13158 cat conftest.err >&5
13159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13160 (exit $ac_status); } && {
13161 test -z "$ac_c_werror_flag" ||
13162 test ! -s conftest.err
13163 } && test -s conftest.$ac_objext; then
13164 ac_hi=$ac_mid; break
13165 else
13166 echo "$as_me: failed program was:" >&5
13167 sed 's/^/| /' conftest.$ac_ext >&5
13169 ac_lo=`expr $ac_mid + 1`
13170 if test $ac_lo -le $ac_mid; then
13171 ac_lo= ac_hi=
13172 break
13174 ac_mid=`expr 2 '*' $ac_mid + 1`
13177 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13178 done
13179 else
13180 echo "$as_me: failed program was:" >&5
13181 sed 's/^/| /' conftest.$ac_ext >&5
13183 cat >conftest.$ac_ext <<_ACEOF
13184 /* confdefs.h. */
13185 _ACEOF
13186 cat confdefs.h >>conftest.$ac_ext
13187 cat >>conftest.$ac_ext <<_ACEOF
13188 /* end confdefs.h. */
13190 #ifdef HAVE_SYS_TYPES_H
13191 #include <sys/types.h>
13192 #endif
13195 typedef off_t ac__type_sizeof_;
13197 main ()
13199 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
13200 test_array [0] = 0
13203 return 0;
13205 _ACEOF
13206 rm -f conftest.$ac_objext
13207 if { (ac_try="$ac_compile"
13208 case "(($ac_try" in
13209 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13210 *) ac_try_echo=$ac_try;;
13211 esac
13212 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13213 (eval "$ac_compile") 2>conftest.er1
13214 ac_status=$?
13215 grep -v '^ *+' conftest.er1 >conftest.err
13216 rm -f conftest.er1
13217 cat conftest.err >&5
13218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13219 (exit $ac_status); } && {
13220 test -z "$ac_c_werror_flag" ||
13221 test ! -s conftest.err
13222 } && test -s conftest.$ac_objext; then
13223 ac_hi=-1 ac_mid=-1
13224 while :; do
13225 cat >conftest.$ac_ext <<_ACEOF
13226 /* confdefs.h. */
13227 _ACEOF
13228 cat confdefs.h >>conftest.$ac_ext
13229 cat >>conftest.$ac_ext <<_ACEOF
13230 /* end confdefs.h. */
13232 #ifdef HAVE_SYS_TYPES_H
13233 #include <sys/types.h>
13234 #endif
13237 typedef off_t ac__type_sizeof_;
13239 main ()
13241 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
13242 test_array [0] = 0
13245 return 0;
13247 _ACEOF
13248 rm -f conftest.$ac_objext
13249 if { (ac_try="$ac_compile"
13250 case "(($ac_try" in
13251 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13252 *) ac_try_echo=$ac_try;;
13253 esac
13254 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13255 (eval "$ac_compile") 2>conftest.er1
13256 ac_status=$?
13257 grep -v '^ *+' conftest.er1 >conftest.err
13258 rm -f conftest.er1
13259 cat conftest.err >&5
13260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13261 (exit $ac_status); } && {
13262 test -z "$ac_c_werror_flag" ||
13263 test ! -s conftest.err
13264 } && test -s conftest.$ac_objext; then
13265 ac_lo=$ac_mid; break
13266 else
13267 echo "$as_me: failed program was:" >&5
13268 sed 's/^/| /' conftest.$ac_ext >&5
13270 ac_hi=`expr '(' $ac_mid ')' - 1`
13271 if test $ac_mid -le $ac_hi; then
13272 ac_lo= ac_hi=
13273 break
13275 ac_mid=`expr 2 '*' $ac_mid`
13278 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13279 done
13280 else
13281 echo "$as_me: failed program was:" >&5
13282 sed 's/^/| /' conftest.$ac_ext >&5
13284 ac_lo= ac_hi=
13287 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13290 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13291 # Binary search between lo and hi bounds.
13292 while test "x$ac_lo" != "x$ac_hi"; do
13293 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
13294 cat >conftest.$ac_ext <<_ACEOF
13295 /* confdefs.h. */
13296 _ACEOF
13297 cat confdefs.h >>conftest.$ac_ext
13298 cat >>conftest.$ac_ext <<_ACEOF
13299 /* end confdefs.h. */
13301 #ifdef HAVE_SYS_TYPES_H
13302 #include <sys/types.h>
13303 #endif
13306 typedef off_t ac__type_sizeof_;
13308 main ()
13310 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
13311 test_array [0] = 0
13314 return 0;
13316 _ACEOF
13317 rm -f conftest.$ac_objext
13318 if { (ac_try="$ac_compile"
13319 case "(($ac_try" in
13320 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13321 *) ac_try_echo=$ac_try;;
13322 esac
13323 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13324 (eval "$ac_compile") 2>conftest.er1
13325 ac_status=$?
13326 grep -v '^ *+' conftest.er1 >conftest.err
13327 rm -f conftest.er1
13328 cat conftest.err >&5
13329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13330 (exit $ac_status); } && {
13331 test -z "$ac_c_werror_flag" ||
13332 test ! -s conftest.err
13333 } && test -s conftest.$ac_objext; then
13334 ac_hi=$ac_mid
13335 else
13336 echo "$as_me: failed program was:" >&5
13337 sed 's/^/| /' conftest.$ac_ext >&5
13339 ac_lo=`expr '(' $ac_mid ')' + 1`
13342 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13343 done
13344 case $ac_lo in
13345 ?*) ac_cv_sizeof_off_t=$ac_lo;;
13346 '') if test "$ac_cv_type_off_t" = yes; then
13347 { { echo "$as_me:$LINENO: error: cannot compute sizeof (off_t)
13348 See \`config.log' for more details." >&5
13349 echo "$as_me: error: cannot compute sizeof (off_t)
13350 See \`config.log' for more details." >&2;}
13351 { (exit 77); exit 77; }; }
13352 else
13353 ac_cv_sizeof_off_t=0
13354 fi ;;
13355 esac
13356 else
13357 cat >conftest.$ac_ext <<_ACEOF
13358 /* confdefs.h. */
13359 _ACEOF
13360 cat confdefs.h >>conftest.$ac_ext
13361 cat >>conftest.$ac_ext <<_ACEOF
13362 /* end confdefs.h. */
13364 #ifdef HAVE_SYS_TYPES_H
13365 #include <sys/types.h>
13366 #endif
13369 typedef off_t ac__type_sizeof_;
13370 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
13371 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
13372 #include <stdio.h>
13373 #include <stdlib.h>
13375 main ()
13378 FILE *f = fopen ("conftest.val", "w");
13379 if (! f)
13380 return 1;
13381 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
13383 long int i = longval ();
13384 if (i != ((long int) (sizeof (ac__type_sizeof_))))
13385 return 1;
13386 fprintf (f, "%ld\n", i);
13388 else
13390 unsigned long int i = ulongval ();
13391 if (i != ((long int) (sizeof (ac__type_sizeof_))))
13392 return 1;
13393 fprintf (f, "%lu\n", i);
13395 return ferror (f) || fclose (f) != 0;
13398 return 0;
13400 _ACEOF
13401 rm -f conftest$ac_exeext
13402 if { (ac_try="$ac_link"
13403 case "(($ac_try" in
13404 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13405 *) ac_try_echo=$ac_try;;
13406 esac
13407 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13408 (eval "$ac_link") 2>&5
13409 ac_status=$?
13410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13411 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13412 { (case "(($ac_try" in
13413 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13414 *) ac_try_echo=$ac_try;;
13415 esac
13416 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13417 (eval "$ac_try") 2>&5
13418 ac_status=$?
13419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13420 (exit $ac_status); }; }; then
13421 ac_cv_sizeof_off_t=`cat conftest.val`
13422 else
13423 echo "$as_me: program exited with status $ac_status" >&5
13424 echo "$as_me: failed program was:" >&5
13425 sed 's/^/| /' conftest.$ac_ext >&5
13427 ( exit $ac_status )
13428 if test "$ac_cv_type_off_t" = yes; then
13429 { { echo "$as_me:$LINENO: error: cannot compute sizeof (off_t)
13430 See \`config.log' for more details." >&5
13431 echo "$as_me: error: cannot compute sizeof (off_t)
13432 See \`config.log' for more details." >&2;}
13433 { (exit 77); exit 77; }; }
13434 else
13435 ac_cv_sizeof_off_t=0
13438 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13440 rm -f conftest.val
13442 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_off_t" >&5
13443 echo "${ECHO_T}$ac_cv_sizeof_off_t" >&6; }
13447 cat >>confdefs.h <<_ACEOF
13448 #define SIZEOF_OFF_T $ac_cv_sizeof_off_t
13449 _ACEOF
13453 { echo "$as_me:$LINENO: checking whether to enable large file support" >&5
13454 echo $ECHO_N "checking whether to enable large file support... $ECHO_C" >&6; }
13455 if test "$have_long_long" = yes -a \
13456 "$ac_cv_sizeof_off_t" -gt "$ac_cv_sizeof_long" -a \
13457 "$ac_cv_sizeof_long_long" -ge "$ac_cv_sizeof_off_t"; then
13459 cat >>confdefs.h <<\_ACEOF
13460 #define HAVE_LARGEFILE_SUPPORT 1
13461 _ACEOF
13463 { echo "$as_me:$LINENO: result: yes" >&5
13464 echo "${ECHO_T}yes" >&6; }
13465 else
13466 { echo "$as_me:$LINENO: result: no" >&5
13467 echo "${ECHO_T}no" >&6; }
13470 { echo "$as_me:$LINENO: checking for time_t" >&5
13471 echo $ECHO_N "checking for time_t... $ECHO_C" >&6; }
13472 if test "${ac_cv_type_time_t+set}" = set; then
13473 echo $ECHO_N "(cached) $ECHO_C" >&6
13474 else
13475 cat >conftest.$ac_ext <<_ACEOF
13476 /* confdefs.h. */
13477 _ACEOF
13478 cat confdefs.h >>conftest.$ac_ext
13479 cat >>conftest.$ac_ext <<_ACEOF
13480 /* end confdefs.h. */
13482 #ifdef HAVE_SYS_TYPES_H
13483 #include <sys/types.h>
13484 #endif
13485 #ifdef HAVE_TIME_H
13486 #include <time.h>
13487 #endif
13490 typedef time_t ac__type_new_;
13492 main ()
13494 if ((ac__type_new_ *) 0)
13495 return 0;
13496 if (sizeof (ac__type_new_))
13497 return 0;
13499 return 0;
13501 _ACEOF
13502 rm -f conftest.$ac_objext
13503 if { (ac_try="$ac_compile"
13504 case "(($ac_try" in
13505 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13506 *) ac_try_echo=$ac_try;;
13507 esac
13508 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13509 (eval "$ac_compile") 2>conftest.er1
13510 ac_status=$?
13511 grep -v '^ *+' conftest.er1 >conftest.err
13512 rm -f conftest.er1
13513 cat conftest.err >&5
13514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13515 (exit $ac_status); } && {
13516 test -z "$ac_c_werror_flag" ||
13517 test ! -s conftest.err
13518 } && test -s conftest.$ac_objext; then
13519 ac_cv_type_time_t=yes
13520 else
13521 echo "$as_me: failed program was:" >&5
13522 sed 's/^/| /' conftest.$ac_ext >&5
13524 ac_cv_type_time_t=no
13527 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13529 { echo "$as_me:$LINENO: result: $ac_cv_type_time_t" >&5
13530 echo "${ECHO_T}$ac_cv_type_time_t" >&6; }
13532 # The cast to long int works around a bug in the HP C Compiler
13533 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13534 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13535 # This bug is HP SR number 8606223364.
13536 { echo "$as_me:$LINENO: checking size of time_t" >&5
13537 echo $ECHO_N "checking size of time_t... $ECHO_C" >&6; }
13538 if test "${ac_cv_sizeof_time_t+set}" = set; then
13539 echo $ECHO_N "(cached) $ECHO_C" >&6
13540 else
13541 if test "$cross_compiling" = yes; then
13542 # Depending upon the size, compute the lo and hi bounds.
13543 cat >conftest.$ac_ext <<_ACEOF
13544 /* confdefs.h. */
13545 _ACEOF
13546 cat confdefs.h >>conftest.$ac_ext
13547 cat >>conftest.$ac_ext <<_ACEOF
13548 /* end confdefs.h. */
13550 #ifdef HAVE_SYS_TYPES_H
13551 #include <sys/types.h>
13552 #endif
13553 #ifdef HAVE_TIME_H
13554 #include <time.h>
13555 #endif
13558 typedef time_t ac__type_sizeof_;
13560 main ()
13562 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
13563 test_array [0] = 0
13566 return 0;
13568 _ACEOF
13569 rm -f conftest.$ac_objext
13570 if { (ac_try="$ac_compile"
13571 case "(($ac_try" in
13572 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13573 *) ac_try_echo=$ac_try;;
13574 esac
13575 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13576 (eval "$ac_compile") 2>conftest.er1
13577 ac_status=$?
13578 grep -v '^ *+' conftest.er1 >conftest.err
13579 rm -f conftest.er1
13580 cat conftest.err >&5
13581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13582 (exit $ac_status); } && {
13583 test -z "$ac_c_werror_flag" ||
13584 test ! -s conftest.err
13585 } && test -s conftest.$ac_objext; then
13586 ac_lo=0 ac_mid=0
13587 while :; do
13588 cat >conftest.$ac_ext <<_ACEOF
13589 /* confdefs.h. */
13590 _ACEOF
13591 cat confdefs.h >>conftest.$ac_ext
13592 cat >>conftest.$ac_ext <<_ACEOF
13593 /* end confdefs.h. */
13595 #ifdef HAVE_SYS_TYPES_H
13596 #include <sys/types.h>
13597 #endif
13598 #ifdef HAVE_TIME_H
13599 #include <time.h>
13600 #endif
13603 typedef time_t ac__type_sizeof_;
13605 main ()
13607 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
13608 test_array [0] = 0
13611 return 0;
13613 _ACEOF
13614 rm -f conftest.$ac_objext
13615 if { (ac_try="$ac_compile"
13616 case "(($ac_try" in
13617 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13618 *) ac_try_echo=$ac_try;;
13619 esac
13620 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13621 (eval "$ac_compile") 2>conftest.er1
13622 ac_status=$?
13623 grep -v '^ *+' conftest.er1 >conftest.err
13624 rm -f conftest.er1
13625 cat conftest.err >&5
13626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13627 (exit $ac_status); } && {
13628 test -z "$ac_c_werror_flag" ||
13629 test ! -s conftest.err
13630 } && test -s conftest.$ac_objext; then
13631 ac_hi=$ac_mid; break
13632 else
13633 echo "$as_me: failed program was:" >&5
13634 sed 's/^/| /' conftest.$ac_ext >&5
13636 ac_lo=`expr $ac_mid + 1`
13637 if test $ac_lo -le $ac_mid; then
13638 ac_lo= ac_hi=
13639 break
13641 ac_mid=`expr 2 '*' $ac_mid + 1`
13644 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13645 done
13646 else
13647 echo "$as_me: failed program was:" >&5
13648 sed 's/^/| /' conftest.$ac_ext >&5
13650 cat >conftest.$ac_ext <<_ACEOF
13651 /* confdefs.h. */
13652 _ACEOF
13653 cat confdefs.h >>conftest.$ac_ext
13654 cat >>conftest.$ac_ext <<_ACEOF
13655 /* end confdefs.h. */
13657 #ifdef HAVE_SYS_TYPES_H
13658 #include <sys/types.h>
13659 #endif
13660 #ifdef HAVE_TIME_H
13661 #include <time.h>
13662 #endif
13665 typedef time_t ac__type_sizeof_;
13667 main ()
13669 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
13670 test_array [0] = 0
13673 return 0;
13675 _ACEOF
13676 rm -f conftest.$ac_objext
13677 if { (ac_try="$ac_compile"
13678 case "(($ac_try" in
13679 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13680 *) ac_try_echo=$ac_try;;
13681 esac
13682 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13683 (eval "$ac_compile") 2>conftest.er1
13684 ac_status=$?
13685 grep -v '^ *+' conftest.er1 >conftest.err
13686 rm -f conftest.er1
13687 cat conftest.err >&5
13688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13689 (exit $ac_status); } && {
13690 test -z "$ac_c_werror_flag" ||
13691 test ! -s conftest.err
13692 } && test -s conftest.$ac_objext; then
13693 ac_hi=-1 ac_mid=-1
13694 while :; do
13695 cat >conftest.$ac_ext <<_ACEOF
13696 /* confdefs.h. */
13697 _ACEOF
13698 cat confdefs.h >>conftest.$ac_ext
13699 cat >>conftest.$ac_ext <<_ACEOF
13700 /* end confdefs.h. */
13702 #ifdef HAVE_SYS_TYPES_H
13703 #include <sys/types.h>
13704 #endif
13705 #ifdef HAVE_TIME_H
13706 #include <time.h>
13707 #endif
13710 typedef time_t ac__type_sizeof_;
13712 main ()
13714 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
13715 test_array [0] = 0
13718 return 0;
13720 _ACEOF
13721 rm -f conftest.$ac_objext
13722 if { (ac_try="$ac_compile"
13723 case "(($ac_try" in
13724 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13725 *) ac_try_echo=$ac_try;;
13726 esac
13727 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13728 (eval "$ac_compile") 2>conftest.er1
13729 ac_status=$?
13730 grep -v '^ *+' conftest.er1 >conftest.err
13731 rm -f conftest.er1
13732 cat conftest.err >&5
13733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13734 (exit $ac_status); } && {
13735 test -z "$ac_c_werror_flag" ||
13736 test ! -s conftest.err
13737 } && test -s conftest.$ac_objext; then
13738 ac_lo=$ac_mid; break
13739 else
13740 echo "$as_me: failed program was:" >&5
13741 sed 's/^/| /' conftest.$ac_ext >&5
13743 ac_hi=`expr '(' $ac_mid ')' - 1`
13744 if test $ac_mid -le $ac_hi; then
13745 ac_lo= ac_hi=
13746 break
13748 ac_mid=`expr 2 '*' $ac_mid`
13751 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13752 done
13753 else
13754 echo "$as_me: failed program was:" >&5
13755 sed 's/^/| /' conftest.$ac_ext >&5
13757 ac_lo= ac_hi=
13760 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13763 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13764 # Binary search between lo and hi bounds.
13765 while test "x$ac_lo" != "x$ac_hi"; do
13766 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
13767 cat >conftest.$ac_ext <<_ACEOF
13768 /* confdefs.h. */
13769 _ACEOF
13770 cat confdefs.h >>conftest.$ac_ext
13771 cat >>conftest.$ac_ext <<_ACEOF
13772 /* end confdefs.h. */
13774 #ifdef HAVE_SYS_TYPES_H
13775 #include <sys/types.h>
13776 #endif
13777 #ifdef HAVE_TIME_H
13778 #include <time.h>
13779 #endif
13782 typedef time_t ac__type_sizeof_;
13784 main ()
13786 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
13787 test_array [0] = 0
13790 return 0;
13792 _ACEOF
13793 rm -f conftest.$ac_objext
13794 if { (ac_try="$ac_compile"
13795 case "(($ac_try" in
13796 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13797 *) ac_try_echo=$ac_try;;
13798 esac
13799 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13800 (eval "$ac_compile") 2>conftest.er1
13801 ac_status=$?
13802 grep -v '^ *+' conftest.er1 >conftest.err
13803 rm -f conftest.er1
13804 cat conftest.err >&5
13805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13806 (exit $ac_status); } && {
13807 test -z "$ac_c_werror_flag" ||
13808 test ! -s conftest.err
13809 } && test -s conftest.$ac_objext; then
13810 ac_hi=$ac_mid
13811 else
13812 echo "$as_me: failed program was:" >&5
13813 sed 's/^/| /' conftest.$ac_ext >&5
13815 ac_lo=`expr '(' $ac_mid ')' + 1`
13818 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13819 done
13820 case $ac_lo in
13821 ?*) ac_cv_sizeof_time_t=$ac_lo;;
13822 '') if test "$ac_cv_type_time_t" = yes; then
13823 { { echo "$as_me:$LINENO: error: cannot compute sizeof (time_t)
13824 See \`config.log' for more details." >&5
13825 echo "$as_me: error: cannot compute sizeof (time_t)
13826 See \`config.log' for more details." >&2;}
13827 { (exit 77); exit 77; }; }
13828 else
13829 ac_cv_sizeof_time_t=0
13830 fi ;;
13831 esac
13832 else
13833 cat >conftest.$ac_ext <<_ACEOF
13834 /* confdefs.h. */
13835 _ACEOF
13836 cat confdefs.h >>conftest.$ac_ext
13837 cat >>conftest.$ac_ext <<_ACEOF
13838 /* end confdefs.h. */
13840 #ifdef HAVE_SYS_TYPES_H
13841 #include <sys/types.h>
13842 #endif
13843 #ifdef HAVE_TIME_H
13844 #include <time.h>
13845 #endif
13848 typedef time_t ac__type_sizeof_;
13849 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
13850 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
13851 #include <stdio.h>
13852 #include <stdlib.h>
13854 main ()
13857 FILE *f = fopen ("conftest.val", "w");
13858 if (! f)
13859 return 1;
13860 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
13862 long int i = longval ();
13863 if (i != ((long int) (sizeof (ac__type_sizeof_))))
13864 return 1;
13865 fprintf (f, "%ld\n", i);
13867 else
13869 unsigned long int i = ulongval ();
13870 if (i != ((long int) (sizeof (ac__type_sizeof_))))
13871 return 1;
13872 fprintf (f, "%lu\n", i);
13874 return ferror (f) || fclose (f) != 0;
13877 return 0;
13879 _ACEOF
13880 rm -f conftest$ac_exeext
13881 if { (ac_try="$ac_link"
13882 case "(($ac_try" in
13883 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13884 *) ac_try_echo=$ac_try;;
13885 esac
13886 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13887 (eval "$ac_link") 2>&5
13888 ac_status=$?
13889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13890 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13891 { (case "(($ac_try" in
13892 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13893 *) ac_try_echo=$ac_try;;
13894 esac
13895 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13896 (eval "$ac_try") 2>&5
13897 ac_status=$?
13898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13899 (exit $ac_status); }; }; then
13900 ac_cv_sizeof_time_t=`cat conftest.val`
13901 else
13902 echo "$as_me: program exited with status $ac_status" >&5
13903 echo "$as_me: failed program was:" >&5
13904 sed 's/^/| /' conftest.$ac_ext >&5
13906 ( exit $ac_status )
13907 if test "$ac_cv_type_time_t" = yes; then
13908 { { echo "$as_me:$LINENO: error: cannot compute sizeof (time_t)
13909 See \`config.log' for more details." >&5
13910 echo "$as_me: error: cannot compute sizeof (time_t)
13911 See \`config.log' for more details." >&2;}
13912 { (exit 77); exit 77; }; }
13913 else
13914 ac_cv_sizeof_time_t=0
13917 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13919 rm -f conftest.val
13921 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_time_t" >&5
13922 echo "${ECHO_T}$ac_cv_sizeof_time_t" >&6; }
13926 cat >>confdefs.h <<_ACEOF
13927 #define SIZEOF_TIME_T $ac_cv_sizeof_time_t
13928 _ACEOF
13932 # if have pthread_t then define SIZEOF_PTHREAD_T
13933 ac_save_cc="$CC"
13934 if test "$ac_cv_kpthread" = "yes"
13935 then CC="$CC -Kpthread"
13936 elif test "$ac_cv_kthread" = "yes"
13937 then CC="$CC -Kthread"
13938 elif test "$ac_cv_pthread" = "yes"
13939 then CC="$CC -pthread"
13941 { echo "$as_me:$LINENO: checking for pthread_t" >&5
13942 echo $ECHO_N "checking for pthread_t... $ECHO_C" >&6; }
13943 have_pthread_t=no
13944 cat >conftest.$ac_ext <<_ACEOF
13945 /* confdefs.h. */
13946 _ACEOF
13947 cat confdefs.h >>conftest.$ac_ext
13948 cat >>conftest.$ac_ext <<_ACEOF
13949 /* end confdefs.h. */
13950 #include <pthread.h>
13952 main ()
13954 pthread_t x; x = *(pthread_t*)0;
13956 return 0;
13958 _ACEOF
13959 rm -f conftest.$ac_objext
13960 if { (ac_try="$ac_compile"
13961 case "(($ac_try" in
13962 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13963 *) ac_try_echo=$ac_try;;
13964 esac
13965 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13966 (eval "$ac_compile") 2>conftest.er1
13967 ac_status=$?
13968 grep -v '^ *+' conftest.er1 >conftest.err
13969 rm -f conftest.er1
13970 cat conftest.err >&5
13971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13972 (exit $ac_status); } && {
13973 test -z "$ac_c_werror_flag" ||
13974 test ! -s conftest.err
13975 } && test -s conftest.$ac_objext; then
13976 have_pthread_t=yes
13977 else
13978 echo "$as_me: failed program was:" >&5
13979 sed 's/^/| /' conftest.$ac_ext >&5
13984 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13985 { echo "$as_me:$LINENO: result: $have_pthread_t" >&5
13986 echo "${ECHO_T}$have_pthread_t" >&6; }
13987 if test "$have_pthread_t" = yes ; then
13988 { echo "$as_me:$LINENO: checking for pthread_t" >&5
13989 echo $ECHO_N "checking for pthread_t... $ECHO_C" >&6; }
13990 if test "${ac_cv_type_pthread_t+set}" = set; then
13991 echo $ECHO_N "(cached) $ECHO_C" >&6
13992 else
13993 cat >conftest.$ac_ext <<_ACEOF
13994 /* confdefs.h. */
13995 _ACEOF
13996 cat confdefs.h >>conftest.$ac_ext
13997 cat >>conftest.$ac_ext <<_ACEOF
13998 /* end confdefs.h. */
14000 #ifdef HAVE_PTHREAD_H
14001 #include <pthread.h>
14002 #endif
14005 typedef pthread_t ac__type_new_;
14007 main ()
14009 if ((ac__type_new_ *) 0)
14010 return 0;
14011 if (sizeof (ac__type_new_))
14012 return 0;
14014 return 0;
14016 _ACEOF
14017 rm -f conftest.$ac_objext
14018 if { (ac_try="$ac_compile"
14019 case "(($ac_try" in
14020 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14021 *) ac_try_echo=$ac_try;;
14022 esac
14023 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14024 (eval "$ac_compile") 2>conftest.er1
14025 ac_status=$?
14026 grep -v '^ *+' conftest.er1 >conftest.err
14027 rm -f conftest.er1
14028 cat conftest.err >&5
14029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14030 (exit $ac_status); } && {
14031 test -z "$ac_c_werror_flag" ||
14032 test ! -s conftest.err
14033 } && test -s conftest.$ac_objext; then
14034 ac_cv_type_pthread_t=yes
14035 else
14036 echo "$as_me: failed program was:" >&5
14037 sed 's/^/| /' conftest.$ac_ext >&5
14039 ac_cv_type_pthread_t=no
14042 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14044 { echo "$as_me:$LINENO: result: $ac_cv_type_pthread_t" >&5
14045 echo "${ECHO_T}$ac_cv_type_pthread_t" >&6; }
14047 # The cast to long int works around a bug in the HP C Compiler
14048 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14049 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14050 # This bug is HP SR number 8606223364.
14051 { echo "$as_me:$LINENO: checking size of pthread_t" >&5
14052 echo $ECHO_N "checking size of pthread_t... $ECHO_C" >&6; }
14053 if test "${ac_cv_sizeof_pthread_t+set}" = set; then
14054 echo $ECHO_N "(cached) $ECHO_C" >&6
14055 else
14056 if test "$cross_compiling" = yes; then
14057 # Depending upon the size, compute the lo and hi bounds.
14058 cat >conftest.$ac_ext <<_ACEOF
14059 /* confdefs.h. */
14060 _ACEOF
14061 cat confdefs.h >>conftest.$ac_ext
14062 cat >>conftest.$ac_ext <<_ACEOF
14063 /* end confdefs.h. */
14065 #ifdef HAVE_PTHREAD_H
14066 #include <pthread.h>
14067 #endif
14070 typedef pthread_t ac__type_sizeof_;
14072 main ()
14074 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
14075 test_array [0] = 0
14078 return 0;
14080 _ACEOF
14081 rm -f conftest.$ac_objext
14082 if { (ac_try="$ac_compile"
14083 case "(($ac_try" in
14084 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14085 *) ac_try_echo=$ac_try;;
14086 esac
14087 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14088 (eval "$ac_compile") 2>conftest.er1
14089 ac_status=$?
14090 grep -v '^ *+' conftest.er1 >conftest.err
14091 rm -f conftest.er1
14092 cat conftest.err >&5
14093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14094 (exit $ac_status); } && {
14095 test -z "$ac_c_werror_flag" ||
14096 test ! -s conftest.err
14097 } && test -s conftest.$ac_objext; then
14098 ac_lo=0 ac_mid=0
14099 while :; do
14100 cat >conftest.$ac_ext <<_ACEOF
14101 /* confdefs.h. */
14102 _ACEOF
14103 cat confdefs.h >>conftest.$ac_ext
14104 cat >>conftest.$ac_ext <<_ACEOF
14105 /* end confdefs.h. */
14107 #ifdef HAVE_PTHREAD_H
14108 #include <pthread.h>
14109 #endif
14112 typedef pthread_t ac__type_sizeof_;
14114 main ()
14116 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
14117 test_array [0] = 0
14120 return 0;
14122 _ACEOF
14123 rm -f conftest.$ac_objext
14124 if { (ac_try="$ac_compile"
14125 case "(($ac_try" in
14126 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14127 *) ac_try_echo=$ac_try;;
14128 esac
14129 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14130 (eval "$ac_compile") 2>conftest.er1
14131 ac_status=$?
14132 grep -v '^ *+' conftest.er1 >conftest.err
14133 rm -f conftest.er1
14134 cat conftest.err >&5
14135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14136 (exit $ac_status); } && {
14137 test -z "$ac_c_werror_flag" ||
14138 test ! -s conftest.err
14139 } && test -s conftest.$ac_objext; then
14140 ac_hi=$ac_mid; break
14141 else
14142 echo "$as_me: failed program was:" >&5
14143 sed 's/^/| /' conftest.$ac_ext >&5
14145 ac_lo=`expr $ac_mid + 1`
14146 if test $ac_lo -le $ac_mid; then
14147 ac_lo= ac_hi=
14148 break
14150 ac_mid=`expr 2 '*' $ac_mid + 1`
14153 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14154 done
14155 else
14156 echo "$as_me: failed program was:" >&5
14157 sed 's/^/| /' conftest.$ac_ext >&5
14159 cat >conftest.$ac_ext <<_ACEOF
14160 /* confdefs.h. */
14161 _ACEOF
14162 cat confdefs.h >>conftest.$ac_ext
14163 cat >>conftest.$ac_ext <<_ACEOF
14164 /* end confdefs.h. */
14166 #ifdef HAVE_PTHREAD_H
14167 #include <pthread.h>
14168 #endif
14171 typedef pthread_t ac__type_sizeof_;
14173 main ()
14175 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
14176 test_array [0] = 0
14179 return 0;
14181 _ACEOF
14182 rm -f conftest.$ac_objext
14183 if { (ac_try="$ac_compile"
14184 case "(($ac_try" in
14185 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14186 *) ac_try_echo=$ac_try;;
14187 esac
14188 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14189 (eval "$ac_compile") 2>conftest.er1
14190 ac_status=$?
14191 grep -v '^ *+' conftest.er1 >conftest.err
14192 rm -f conftest.er1
14193 cat conftest.err >&5
14194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14195 (exit $ac_status); } && {
14196 test -z "$ac_c_werror_flag" ||
14197 test ! -s conftest.err
14198 } && test -s conftest.$ac_objext; then
14199 ac_hi=-1 ac_mid=-1
14200 while :; do
14201 cat >conftest.$ac_ext <<_ACEOF
14202 /* confdefs.h. */
14203 _ACEOF
14204 cat confdefs.h >>conftest.$ac_ext
14205 cat >>conftest.$ac_ext <<_ACEOF
14206 /* end confdefs.h. */
14208 #ifdef HAVE_PTHREAD_H
14209 #include <pthread.h>
14210 #endif
14213 typedef pthread_t ac__type_sizeof_;
14215 main ()
14217 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
14218 test_array [0] = 0
14221 return 0;
14223 _ACEOF
14224 rm -f conftest.$ac_objext
14225 if { (ac_try="$ac_compile"
14226 case "(($ac_try" in
14227 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14228 *) ac_try_echo=$ac_try;;
14229 esac
14230 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14231 (eval "$ac_compile") 2>conftest.er1
14232 ac_status=$?
14233 grep -v '^ *+' conftest.er1 >conftest.err
14234 rm -f conftest.er1
14235 cat conftest.err >&5
14236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14237 (exit $ac_status); } && {
14238 test -z "$ac_c_werror_flag" ||
14239 test ! -s conftest.err
14240 } && test -s conftest.$ac_objext; then
14241 ac_lo=$ac_mid; break
14242 else
14243 echo "$as_me: failed program was:" >&5
14244 sed 's/^/| /' conftest.$ac_ext >&5
14246 ac_hi=`expr '(' $ac_mid ')' - 1`
14247 if test $ac_mid -le $ac_hi; then
14248 ac_lo= ac_hi=
14249 break
14251 ac_mid=`expr 2 '*' $ac_mid`
14254 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14255 done
14256 else
14257 echo "$as_me: failed program was:" >&5
14258 sed 's/^/| /' conftest.$ac_ext >&5
14260 ac_lo= ac_hi=
14263 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14266 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14267 # Binary search between lo and hi bounds.
14268 while test "x$ac_lo" != "x$ac_hi"; do
14269 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
14270 cat >conftest.$ac_ext <<_ACEOF
14271 /* confdefs.h. */
14272 _ACEOF
14273 cat confdefs.h >>conftest.$ac_ext
14274 cat >>conftest.$ac_ext <<_ACEOF
14275 /* end confdefs.h. */
14277 #ifdef HAVE_PTHREAD_H
14278 #include <pthread.h>
14279 #endif
14282 typedef pthread_t ac__type_sizeof_;
14284 main ()
14286 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
14287 test_array [0] = 0
14290 return 0;
14292 _ACEOF
14293 rm -f conftest.$ac_objext
14294 if { (ac_try="$ac_compile"
14295 case "(($ac_try" in
14296 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14297 *) ac_try_echo=$ac_try;;
14298 esac
14299 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14300 (eval "$ac_compile") 2>conftest.er1
14301 ac_status=$?
14302 grep -v '^ *+' conftest.er1 >conftest.err
14303 rm -f conftest.er1
14304 cat conftest.err >&5
14305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14306 (exit $ac_status); } && {
14307 test -z "$ac_c_werror_flag" ||
14308 test ! -s conftest.err
14309 } && test -s conftest.$ac_objext; then
14310 ac_hi=$ac_mid
14311 else
14312 echo "$as_me: failed program was:" >&5
14313 sed 's/^/| /' conftest.$ac_ext >&5
14315 ac_lo=`expr '(' $ac_mid ')' + 1`
14318 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14319 done
14320 case $ac_lo in
14321 ?*) ac_cv_sizeof_pthread_t=$ac_lo;;
14322 '') if test "$ac_cv_type_pthread_t" = yes; then
14323 { { echo "$as_me:$LINENO: error: cannot compute sizeof (pthread_t)
14324 See \`config.log' for more details." >&5
14325 echo "$as_me: error: cannot compute sizeof (pthread_t)
14326 See \`config.log' for more details." >&2;}
14327 { (exit 77); exit 77; }; }
14328 else
14329 ac_cv_sizeof_pthread_t=0
14330 fi ;;
14331 esac
14332 else
14333 cat >conftest.$ac_ext <<_ACEOF
14334 /* confdefs.h. */
14335 _ACEOF
14336 cat confdefs.h >>conftest.$ac_ext
14337 cat >>conftest.$ac_ext <<_ACEOF
14338 /* end confdefs.h. */
14340 #ifdef HAVE_PTHREAD_H
14341 #include <pthread.h>
14342 #endif
14345 typedef pthread_t ac__type_sizeof_;
14346 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
14347 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
14348 #include <stdio.h>
14349 #include <stdlib.h>
14351 main ()
14354 FILE *f = fopen ("conftest.val", "w");
14355 if (! f)
14356 return 1;
14357 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
14359 long int i = longval ();
14360 if (i != ((long int) (sizeof (ac__type_sizeof_))))
14361 return 1;
14362 fprintf (f, "%ld\n", i);
14364 else
14366 unsigned long int i = ulongval ();
14367 if (i != ((long int) (sizeof (ac__type_sizeof_))))
14368 return 1;
14369 fprintf (f, "%lu\n", i);
14371 return ferror (f) || fclose (f) != 0;
14374 return 0;
14376 _ACEOF
14377 rm -f conftest$ac_exeext
14378 if { (ac_try="$ac_link"
14379 case "(($ac_try" in
14380 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14381 *) ac_try_echo=$ac_try;;
14382 esac
14383 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14384 (eval "$ac_link") 2>&5
14385 ac_status=$?
14386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14387 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14388 { (case "(($ac_try" in
14389 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14390 *) ac_try_echo=$ac_try;;
14391 esac
14392 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14393 (eval "$ac_try") 2>&5
14394 ac_status=$?
14395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14396 (exit $ac_status); }; }; then
14397 ac_cv_sizeof_pthread_t=`cat conftest.val`
14398 else
14399 echo "$as_me: program exited with status $ac_status" >&5
14400 echo "$as_me: failed program was:" >&5
14401 sed 's/^/| /' conftest.$ac_ext >&5
14403 ( exit $ac_status )
14404 if test "$ac_cv_type_pthread_t" = yes; then
14405 { { echo "$as_me:$LINENO: error: cannot compute sizeof (pthread_t)
14406 See \`config.log' for more details." >&5
14407 echo "$as_me: error: cannot compute sizeof (pthread_t)
14408 See \`config.log' for more details." >&2;}
14409 { (exit 77); exit 77; }; }
14410 else
14411 ac_cv_sizeof_pthread_t=0
14414 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14416 rm -f conftest.val
14418 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_pthread_t" >&5
14419 echo "${ECHO_T}$ac_cv_sizeof_pthread_t" >&6; }
14423 cat >>confdefs.h <<_ACEOF
14424 #define SIZEOF_PTHREAD_T $ac_cv_sizeof_pthread_t
14425 _ACEOF
14429 CC="$ac_save_cc"
14431 { echo "$as_me:$LINENO: checking for --enable-toolbox-glue" >&5
14432 echo $ECHO_N "checking for --enable-toolbox-glue... $ECHO_C" >&6; }
14433 # Check whether --enable-toolbox-glue was given.
14434 if test "${enable_toolbox_glue+set}" = set; then
14435 enableval=$enable_toolbox_glue;
14439 if test -z "$enable_toolbox_glue"
14440 then
14441 case $ac_sys_system/$ac_sys_release in
14442 Darwin/*)
14443 enable_toolbox_glue="yes";;
14445 enable_toolbox_glue="no";;
14446 esac
14448 case "$enable_toolbox_glue" in
14449 yes)
14450 extra_machdep_objs="Python/mactoolboxglue.o"
14451 extra_undefs="-u _PyMac_Error"
14453 cat >>confdefs.h <<\_ACEOF
14454 #define USE_TOOLBOX_OBJECT_GLUE 1
14455 _ACEOF
14459 extra_machdep_objs=""
14460 extra_undefs=""
14462 esac
14463 { echo "$as_me:$LINENO: result: $enable_toolbox_glue" >&5
14464 echo "${ECHO_T}$enable_toolbox_glue" >&6; }
14468 case $ac_sys_system/$ac_sys_release in
14469 Darwin/[01567]\..*)
14470 OTHER_LIBTOOL_OPT="-prebind -seg1addr 0x10000000"
14472 Darwin/*)
14473 OTHER_LIBTOOL_OPT=""
14475 esac
14478 case $ac_sys_system/$ac_sys_release in
14479 Darwin/[01567]\..*)
14480 LIBTOOL_CRUFT="-framework System -lcc_dynamic"
14481 if test "${enable_universalsdk}"; then
14483 else
14484 LIBTOOL_CRUFT="${LIBTOOL_CRUFT} -arch_only `arch`"
14486 LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -install_name $(PYTHONFRAMEWORKINSTALLDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
14487 LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -compatibility_version $(VERSION) -current_version $(VERSION)';;
14488 Darwin/*)
14489 gcc_version=`gcc -v 2>&1 | grep version | cut -d\ -f3`
14490 if test ${gcc_version} '<' 4.0
14491 then
14492 LIBTOOL_CRUFT="-lcc_dynamic"
14493 else
14494 LIBTOOL_CRUFT=""
14496 LIBTOOL_CRUFT=$LIBTOOL_CRUFT" -lSystem -lSystemStubs -arch_only `arch`"
14497 LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -install_name $(PYTHONFRAMEWORKINSTALLDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
14498 LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -compatibility_version $(VERSION) -current_version $(VERSION)';;
14499 esac
14501 { echo "$as_me:$LINENO: checking for --enable-framework" >&5
14502 echo $ECHO_N "checking for --enable-framework... $ECHO_C" >&6; }
14503 if test "$enable_framework"
14504 then
14505 BASECFLAGS="$BASECFLAGS -fno-common -dynamic"
14506 # -F. is needed to allow linking to the framework while
14507 # in the build location.
14509 cat >>confdefs.h <<\_ACEOF
14510 #define WITH_NEXT_FRAMEWORK 1
14511 _ACEOF
14513 { echo "$as_me:$LINENO: result: yes" >&5
14514 echo "${ECHO_T}yes" >&6; }
14515 if test $enable_shared = "yes"
14516 then
14517 { { echo "$as_me:$LINENO: error: Specifying both --enable-shared and --enable-framework is not supported, use only --enable-framework instead" >&5
14518 echo "$as_me: error: Specifying both --enable-shared and --enable-framework is not supported, use only --enable-framework instead" >&2;}
14519 { (exit 1); exit 1; }; }
14521 else
14522 { echo "$as_me:$LINENO: result: no" >&5
14523 echo "${ECHO_T}no" >&6; }
14526 { echo "$as_me:$LINENO: checking for dyld" >&5
14527 echo $ECHO_N "checking for dyld... $ECHO_C" >&6; }
14528 case $ac_sys_system/$ac_sys_release in
14529 Darwin/*)
14531 cat >>confdefs.h <<\_ACEOF
14532 #define WITH_DYLD 1
14533 _ACEOF
14535 { echo "$as_me:$LINENO: result: always on for Darwin" >&5
14536 echo "${ECHO_T}always on for Darwin" >&6; }
14539 { echo "$as_me:$LINENO: result: no" >&5
14540 echo "${ECHO_T}no" >&6; }
14542 esac
14544 # Set info about shared libraries.
14550 # SO is the extension of shared libraries `(including the dot!)
14551 # -- usually .so, .sl on HP-UX, .dll on Cygwin
14552 { echo "$as_me:$LINENO: checking SO" >&5
14553 echo $ECHO_N "checking SO... $ECHO_C" >&6; }
14554 if test -z "$SO"
14555 then
14556 case $ac_sys_system in
14557 hp*|HP*)
14558 case `uname -m` in
14559 ia64) SO=.so;;
14560 *) SO=.sl;;
14561 esac
14563 CYGWIN*) SO=.dll;;
14564 *) SO=.so;;
14565 esac
14566 else
14567 # this might also be a termcap variable, see #610332
14568 echo
14569 echo '====================================================================='
14570 echo '+ +'
14571 echo '+ WARNING: You have set SO in your environment. +'
14572 echo '+ Do you really mean to change the extension for shared libraries? +'
14573 echo '+ Continuing in 10 seconds to let you to ponder. +'
14574 echo '+ +'
14575 echo '====================================================================='
14576 sleep 10
14578 { echo "$as_me:$LINENO: result: $SO" >&5
14579 echo "${ECHO_T}$SO" >&6; }
14582 cat >>confdefs.h <<_ACEOF
14583 #define SHLIB_EXT "$SO"
14584 _ACEOF
14586 # LDSHARED is the ld *command* used to create shared library
14587 # -- "cc -G" on SunOS 5.x, "ld -shared" on IRIX 5
14588 # (Shared libraries in this instance are shared modules to be loaded into
14589 # Python, as opposed to building Python itself as a shared library.)
14590 { echo "$as_me:$LINENO: checking LDSHARED" >&5
14591 echo $ECHO_N "checking LDSHARED... $ECHO_C" >&6; }
14592 if test -z "$LDSHARED"
14593 then
14594 case $ac_sys_system/$ac_sys_release in
14595 AIX*)
14596 BLDSHARED="\$(srcdir)/Modules/ld_so_aix \$(CC) -bI:Modules/python.exp"
14597 LDSHARED="\$(BINLIBDEST)/config/ld_so_aix \$(CC) -bI:\$(BINLIBDEST)/config/python.exp"
14599 BeOS*)
14600 BLDSHARED="\$(srcdir)/Modules/ld_so_beos $LDLIBRARY"
14601 LDSHARED="\$(BINLIBDEST)/config/ld_so_beos \$(LIBDIR)/$LDLIBRARY"
14603 IRIX/5*) LDSHARED="ld -shared";;
14604 IRIX*/6*) LDSHARED="ld ${SGI_ABI} -shared -all";;
14605 SunOS/5*)
14606 if test "$GCC" = "yes"
14607 then LDSHARED='$(CC) -shared'
14608 else LDSHARED='$(CC) -G';
14609 fi ;;
14610 hp*|HP*)
14611 if test "$GCC" = "yes"
14612 then LDSHARED='$(CC) -shared'
14613 else LDSHARED='ld -b';
14614 fi ;;
14615 OSF*) LDSHARED="ld -shared -expect_unresolved \"*\"";;
14616 Darwin/1.3*)
14617 LDSHARED='$(CC) $(LDFLAGS) -bundle'
14618 if test "$enable_framework" ; then
14619 # Link against the framework. All externals should be defined.
14620 BLDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
14621 LDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKPREFIX)/$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
14622 else
14623 # No framework. Ignore undefined symbols, assuming they come from Python
14624 LDSHARED="$LDSHARED -undefined suppress"
14625 fi ;;
14626 Darwin/1.4*|Darwin/5.*|Darwin/6.*)
14627 LDSHARED='$(CC) $(LDFLAGS) -bundle'
14628 if test "$enable_framework" ; then
14629 # Link against the framework. All externals should be defined.
14630 BLDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
14631 LDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKPREFIX)/$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
14632 else
14633 # No framework, use the Python app as bundle-loader
14634 BLDSHARED="$LDSHARED "'-bundle_loader $(BUILDPYTHON)'
14635 LDSHARED="$LDSHARED "'-bundle_loader $(BINDIR)/python$(VERSION)$(EXE)'
14636 fi ;;
14637 Darwin/*)
14638 # Use -undefined dynamic_lookup whenever possible (10.3 and later).
14639 # This allows an extension to be used in any Python
14641 if test ${MACOSX_DEPLOYMENT_TARGET} '>' 10.2
14642 then
14643 if test "${enable_universalsdk}"; then
14644 LDFLAGS="${UNIVERSAL_ARCH_FLAGS} -isysroot ${UNIVERSALSDK} ${LDFLAGS}"
14646 LDSHARED='$(CC) $(LDFLAGS) -bundle -undefined dynamic_lookup'
14647 BLDSHARED="$LDSHARED"
14648 else
14649 LDSHARED='$(CC) $(LDFLAGS) -bundle'
14650 if test "$enable_framework" ; then
14651 # Link against the framework. All externals should be defined.
14652 BLDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
14653 LDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKPREFIX)/$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
14654 else
14655 # No framework, use the Python app as bundle-loader
14656 BLDSHARED="$LDSHARED "'-bundle_loader $(BUILDPYTHON)'
14657 LDSHARED="$LDSHARED "'-bundle_loader $(BINDIR)/python$(VERSION)$(EXE)'
14661 Linux*|GNU*|QNX*) LDSHARED='$(CC) -shared';;
14662 BSD/OS*/4*) LDSHARED="gcc -shared";;
14663 FreeBSD*)
14664 if [ "`$CC -dM -E - </dev/null | grep __ELF__`" != "" ]
14665 then
14666 LDSHARED="$CC -shared ${LDFLAGS}"
14667 else
14668 LDSHARED="ld -Bshareable ${LDFLAGS}"
14669 fi;;
14670 OpenBSD*)
14671 if [ "`$CC -dM -E - </dev/null | grep __ELF__`" != "" ]
14672 then
14673 LDSHARED='$(CC) -shared $(CCSHARED) ${LDFLAGS}'
14674 else
14675 case `uname -r` in
14676 [01].* | 2.[0-7] | 2.[0-7].*)
14677 LDSHARED="ld -Bshareable ${LDFLAGS}"
14680 LDSHARED='$(CC) -shared $(CCSHARED) ${LDFLAGS}'
14682 esac
14683 fi;;
14684 NetBSD*|DragonFly*) LDSHARED="cc -shared ${LDFLAGS}";;
14685 OpenUNIX*|UnixWare*)
14686 if test "$GCC" = "yes"
14687 then LDSHARED='$(CC) -shared'
14688 else LDSHARED='$(CC) -G'
14689 fi;;
14690 SCO_SV*) LDSHARED='$(CC) -Wl,-G,-Bexport';;
14691 Monterey*) LDSHARED="cc -G -dy -Bdynamic -Bexport -L/usr/lib/ia64l64";;
14692 CYGWIN*) LDSHARED="gcc -shared -Wl,--enable-auto-image-base";;
14693 atheos*) LDSHARED="gcc -shared";;
14694 *) LDSHARED="ld";;
14695 esac
14697 { echo "$as_me:$LINENO: result: $LDSHARED" >&5
14698 echo "${ECHO_T}$LDSHARED" >&6; }
14699 BLDSHARED=${BLDSHARED-$LDSHARED}
14700 # CCSHARED are the C *flags* used to create objects to go into a shared
14701 # library (module) -- this is only needed for a few systems
14702 { echo "$as_me:$LINENO: checking CCSHARED" >&5
14703 echo $ECHO_N "checking CCSHARED... $ECHO_C" >&6; }
14704 if test -z "$CCSHARED"
14705 then
14706 case $ac_sys_system/$ac_sys_release in
14707 SunOS*) if test "$GCC" = yes;
14708 then CCSHARED="-fPIC";
14709 elif test `uname -p` = sparc;
14710 then CCSHARED="-xcode=pic32";
14711 else CCSHARED="-Kpic";
14712 fi;;
14713 hp*|HP*) if test "$GCC" = yes;
14714 then CCSHARED="-fPIC";
14715 else CCSHARED="+z";
14716 fi;;
14717 Linux*|GNU*) CCSHARED="-fPIC";;
14718 BSD/OS*/4*) CCSHARED="-fpic";;
14719 FreeBSD*|NetBSD*|OpenBSD*|DragonFly*) CCSHARED="-fPIC";;
14720 OpenUNIX*|UnixWare*)
14721 if test "$GCC" = "yes"
14722 then CCSHARED="-fPIC"
14723 else CCSHARED="-KPIC"
14724 fi;;
14725 SCO_SV*)
14726 if test "$GCC" = "yes"
14727 then CCSHARED="-fPIC"
14728 else CCSHARED="-Kpic -belf"
14729 fi;;
14730 Monterey*) CCSHARED="-G";;
14731 IRIX*/6*) case $CC in
14732 *gcc*) CCSHARED="-shared";;
14733 *) CCSHARED="";;
14734 esac;;
14735 atheos*) CCSHARED="-fPIC";;
14736 esac
14738 { echo "$as_me:$LINENO: result: $CCSHARED" >&5
14739 echo "${ECHO_T}$CCSHARED" >&6; }
14740 # LINKFORSHARED are the flags passed to the $(CC) command that links
14741 # the python executable -- this is only needed for a few systems
14742 { echo "$as_me:$LINENO: checking LINKFORSHARED" >&5
14743 echo $ECHO_N "checking LINKFORSHARED... $ECHO_C" >&6; }
14744 if test -z "$LINKFORSHARED"
14745 then
14746 case $ac_sys_system/$ac_sys_release in
14747 AIX*) LINKFORSHARED='-Wl,-bE:Modules/python.exp -lld';;
14748 hp*|HP*)
14749 LINKFORSHARED="-Wl,-E -Wl,+s";;
14750 # LINKFORSHARED="-Wl,-E -Wl,+s -Wl,+b\$(BINLIBDEST)/lib-dynload";;
14751 BSD/OS/4*) LINKFORSHARED="-Xlinker -export-dynamic";;
14752 Linux*|GNU*) LINKFORSHARED="-Xlinker -export-dynamic";;
14753 # -u libsys_s pulls in all symbols in libsys
14754 Darwin/*)
14755 # -u _PyMac_Error is needed to pull in the mac toolbox glue,
14756 # which is
14757 # not used by the core itself but which needs to be in the core so
14758 # that dynamically loaded extension modules have access to it.
14759 # -prebind is no longer used, because it actually seems to give a
14760 # slowdown in stead of a speedup, maybe due to the large number of
14761 # dynamic loads Python does.
14763 LINKFORSHARED="$extra_undefs"
14764 if test "$enable_framework"
14765 then
14766 LINKFORSHARED="$LINKFORSHARED "'$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
14768 LINKFORSHARED="$LINKFORSHARED";;
14769 OpenUNIX*|UnixWare*) LINKFORSHARED="-Wl,-Bexport";;
14770 SCO_SV*) LINKFORSHARED="-Wl,-Bexport";;
14771 ReliantUNIX*) LINKFORSHARED="-W1 -Blargedynsym";;
14772 FreeBSD*|NetBSD*|OpenBSD*|DragonFly*)
14773 if [ "`$CC -dM -E - </dev/null | grep __ELF__`" != "" ]
14774 then
14775 LINKFORSHARED="-Wl,--export-dynamic"
14776 fi;;
14777 SunOS/5*) case $CC in
14778 *gcc*)
14779 if $CC -Xlinker --help 2>&1 | grep export-dynamic >/dev/null
14780 then
14781 LINKFORSHARED="-Xlinker --export-dynamic"
14782 fi;;
14783 esac;;
14784 CYGWIN*)
14785 if test $enable_shared = "no"
14786 then
14787 LINKFORSHARED='-Wl,--out-implib=$(LDLIBRARY)'
14788 fi;;
14789 QNX*)
14790 # -Wl,-E causes the symbols to be added to the dynamic
14791 # symbol table so that they can be found when a module
14792 # is loaded. -N 2048K causes the stack size to be set
14793 # to 2048 kilobytes so that the stack doesn't overflow
14794 # when running test_compile.py.
14795 LINKFORSHARED='-Wl,-E -N 2048K';;
14796 esac
14798 { echo "$as_me:$LINENO: result: $LINKFORSHARED" >&5
14799 echo "${ECHO_T}$LINKFORSHARED" >&6; }
14803 { echo "$as_me:$LINENO: checking CFLAGSFORSHARED" >&5
14804 echo $ECHO_N "checking CFLAGSFORSHARED... $ECHO_C" >&6; }
14805 if test ! "$LIBRARY" = "$LDLIBRARY"
14806 then
14807 case $ac_sys_system in
14808 CYGWIN*)
14809 # Cygwin needs CCSHARED when building extension DLLs
14810 # but not when building the interpreter DLL.
14811 CFLAGSFORSHARED='';;
14813 CFLAGSFORSHARED='$(CCSHARED)'
14814 esac
14816 { echo "$as_me:$LINENO: result: $CFLAGSFORSHARED" >&5
14817 echo "${ECHO_T}$CFLAGSFORSHARED" >&6; }
14819 # SHLIBS are libraries (except -lc and -lm) to link to the python shared
14820 # library (with --enable-shared).
14821 # For platforms on which shared libraries are not allowed to have unresolved
14822 # symbols, this must be set to $(LIBS) (expanded by make). We do this even
14823 # if it is not required, since it creates a dependency of the shared library
14824 # to LIBS. This, in turn, means that applications linking the shared libpython
14825 # don't need to link LIBS explicitly. The default should be only changed
14826 # on systems where this approach causes problems.
14828 { echo "$as_me:$LINENO: checking SHLIBS" >&5
14829 echo $ECHO_N "checking SHLIBS... $ECHO_C" >&6; }
14830 case "$ac_sys_system" in
14832 SHLIBS='$(LIBS)';;
14833 esac
14834 { echo "$as_me:$LINENO: result: $SHLIBS" >&5
14835 echo "${ECHO_T}$SHLIBS" >&6; }
14838 # checks for libraries
14840 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
14841 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
14842 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
14843 echo $ECHO_N "(cached) $ECHO_C" >&6
14844 else
14845 ac_check_lib_save_LIBS=$LIBS
14846 LIBS="-ldl $LIBS"
14847 cat >conftest.$ac_ext <<_ACEOF
14848 /* confdefs.h. */
14849 _ACEOF
14850 cat confdefs.h >>conftest.$ac_ext
14851 cat >>conftest.$ac_ext <<_ACEOF
14852 /* end confdefs.h. */
14854 /* Override any GCC internal prototype to avoid an error.
14855 Use char because int might match the return type of a GCC
14856 builtin and then its argument prototype would still apply. */
14857 #ifdef __cplusplus
14858 extern "C"
14859 #endif
14860 char dlopen ();
14862 main ()
14864 return dlopen ();
14866 return 0;
14868 _ACEOF
14869 rm -f conftest.$ac_objext conftest$ac_exeext
14870 if { (ac_try="$ac_link"
14871 case "(($ac_try" in
14872 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14873 *) ac_try_echo=$ac_try;;
14874 esac
14875 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14876 (eval "$ac_link") 2>conftest.er1
14877 ac_status=$?
14878 grep -v '^ *+' conftest.er1 >conftest.err
14879 rm -f conftest.er1
14880 cat conftest.err >&5
14881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14882 (exit $ac_status); } && {
14883 test -z "$ac_c_werror_flag" ||
14884 test ! -s conftest.err
14885 } && test -s conftest$ac_exeext &&
14886 $as_test_x conftest$ac_exeext; then
14887 ac_cv_lib_dl_dlopen=yes
14888 else
14889 echo "$as_me: failed program was:" >&5
14890 sed 's/^/| /' conftest.$ac_ext >&5
14892 ac_cv_lib_dl_dlopen=no
14895 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14896 conftest$ac_exeext conftest.$ac_ext
14897 LIBS=$ac_check_lib_save_LIBS
14899 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
14900 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
14901 if test $ac_cv_lib_dl_dlopen = yes; then
14902 cat >>confdefs.h <<_ACEOF
14903 #define HAVE_LIBDL 1
14904 _ACEOF
14906 LIBS="-ldl $LIBS"
14909 # Dynamic linking for SunOS/Solaris and SYSV
14911 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
14912 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
14913 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
14914 echo $ECHO_N "(cached) $ECHO_C" >&6
14915 else
14916 ac_check_lib_save_LIBS=$LIBS
14917 LIBS="-ldld $LIBS"
14918 cat >conftest.$ac_ext <<_ACEOF
14919 /* confdefs.h. */
14920 _ACEOF
14921 cat confdefs.h >>conftest.$ac_ext
14922 cat >>conftest.$ac_ext <<_ACEOF
14923 /* end confdefs.h. */
14925 /* Override any GCC internal prototype to avoid an error.
14926 Use char because int might match the return type of a GCC
14927 builtin and then its argument prototype would still apply. */
14928 #ifdef __cplusplus
14929 extern "C"
14930 #endif
14931 char shl_load ();
14933 main ()
14935 return shl_load ();
14937 return 0;
14939 _ACEOF
14940 rm -f conftest.$ac_objext conftest$ac_exeext
14941 if { (ac_try="$ac_link"
14942 case "(($ac_try" in
14943 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14944 *) ac_try_echo=$ac_try;;
14945 esac
14946 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14947 (eval "$ac_link") 2>conftest.er1
14948 ac_status=$?
14949 grep -v '^ *+' conftest.er1 >conftest.err
14950 rm -f conftest.er1
14951 cat conftest.err >&5
14952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14953 (exit $ac_status); } && {
14954 test -z "$ac_c_werror_flag" ||
14955 test ! -s conftest.err
14956 } && test -s conftest$ac_exeext &&
14957 $as_test_x conftest$ac_exeext; then
14958 ac_cv_lib_dld_shl_load=yes
14959 else
14960 echo "$as_me: failed program was:" >&5
14961 sed 's/^/| /' conftest.$ac_ext >&5
14963 ac_cv_lib_dld_shl_load=no
14966 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14967 conftest$ac_exeext conftest.$ac_ext
14968 LIBS=$ac_check_lib_save_LIBS
14970 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
14971 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
14972 if test $ac_cv_lib_dld_shl_load = yes; then
14973 cat >>confdefs.h <<_ACEOF
14974 #define HAVE_LIBDLD 1
14975 _ACEOF
14977 LIBS="-ldld $LIBS"
14980 # Dynamic linking for HP-UX
14982 # only check for sem_init if thread support is requested
14983 if test "$with_threads" = "yes" -o -z "$with_threads"; then
14984 { echo "$as_me:$LINENO: checking for library containing sem_init" >&5
14985 echo $ECHO_N "checking for library containing sem_init... $ECHO_C" >&6; }
14986 if test "${ac_cv_search_sem_init+set}" = set; then
14987 echo $ECHO_N "(cached) $ECHO_C" >&6
14988 else
14989 ac_func_search_save_LIBS=$LIBS
14990 cat >conftest.$ac_ext <<_ACEOF
14991 /* confdefs.h. */
14992 _ACEOF
14993 cat confdefs.h >>conftest.$ac_ext
14994 cat >>conftest.$ac_ext <<_ACEOF
14995 /* end confdefs.h. */
14997 /* Override any GCC internal prototype to avoid an error.
14998 Use char because int might match the return type of a GCC
14999 builtin and then its argument prototype would still apply. */
15000 #ifdef __cplusplus
15001 extern "C"
15002 #endif
15003 char sem_init ();
15005 main ()
15007 return sem_init ();
15009 return 0;
15011 _ACEOF
15012 for ac_lib in '' pthread rt posix4; do
15013 if test -z "$ac_lib"; then
15014 ac_res="none required"
15015 else
15016 ac_res=-l$ac_lib
15017 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
15019 rm -f conftest.$ac_objext conftest$ac_exeext
15020 if { (ac_try="$ac_link"
15021 case "(($ac_try" in
15022 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15023 *) ac_try_echo=$ac_try;;
15024 esac
15025 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15026 (eval "$ac_link") 2>conftest.er1
15027 ac_status=$?
15028 grep -v '^ *+' conftest.er1 >conftest.err
15029 rm -f conftest.er1
15030 cat conftest.err >&5
15031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15032 (exit $ac_status); } && {
15033 test -z "$ac_c_werror_flag" ||
15034 test ! -s conftest.err
15035 } && test -s conftest$ac_exeext &&
15036 $as_test_x conftest$ac_exeext; then
15037 ac_cv_search_sem_init=$ac_res
15038 else
15039 echo "$as_me: failed program was:" >&5
15040 sed 's/^/| /' conftest.$ac_ext >&5
15045 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15046 conftest$ac_exeext
15047 if test "${ac_cv_search_sem_init+set}" = set; then
15048 break
15050 done
15051 if test "${ac_cv_search_sem_init+set}" = set; then
15053 else
15054 ac_cv_search_sem_init=no
15056 rm conftest.$ac_ext
15057 LIBS=$ac_func_search_save_LIBS
15059 { echo "$as_me:$LINENO: result: $ac_cv_search_sem_init" >&5
15060 echo "${ECHO_T}$ac_cv_search_sem_init" >&6; }
15061 ac_res=$ac_cv_search_sem_init
15062 if test "$ac_res" != no; then
15063 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
15066 # 'Real Time' functions on Solaris
15067 # posix4 on Solaris 2.6
15068 # pthread (first!) on Linux
15071 # check if we need libintl for locale functions
15072 { echo "$as_me:$LINENO: checking for textdomain in -lintl" >&5
15073 echo $ECHO_N "checking for textdomain in -lintl... $ECHO_C" >&6; }
15074 if test "${ac_cv_lib_intl_textdomain+set}" = set; then
15075 echo $ECHO_N "(cached) $ECHO_C" >&6
15076 else
15077 ac_check_lib_save_LIBS=$LIBS
15078 LIBS="-lintl $LIBS"
15079 cat >conftest.$ac_ext <<_ACEOF
15080 /* confdefs.h. */
15081 _ACEOF
15082 cat confdefs.h >>conftest.$ac_ext
15083 cat >>conftest.$ac_ext <<_ACEOF
15084 /* end confdefs.h. */
15086 /* Override any GCC internal prototype to avoid an error.
15087 Use char because int might match the return type of a GCC
15088 builtin and then its argument prototype would still apply. */
15089 #ifdef __cplusplus
15090 extern "C"
15091 #endif
15092 char textdomain ();
15094 main ()
15096 return textdomain ();
15098 return 0;
15100 _ACEOF
15101 rm -f conftest.$ac_objext conftest$ac_exeext
15102 if { (ac_try="$ac_link"
15103 case "(($ac_try" in
15104 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15105 *) ac_try_echo=$ac_try;;
15106 esac
15107 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15108 (eval "$ac_link") 2>conftest.er1
15109 ac_status=$?
15110 grep -v '^ *+' conftest.er1 >conftest.err
15111 rm -f conftest.er1
15112 cat conftest.err >&5
15113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15114 (exit $ac_status); } && {
15115 test -z "$ac_c_werror_flag" ||
15116 test ! -s conftest.err
15117 } && test -s conftest$ac_exeext &&
15118 $as_test_x conftest$ac_exeext; then
15119 ac_cv_lib_intl_textdomain=yes
15120 else
15121 echo "$as_me: failed program was:" >&5
15122 sed 's/^/| /' conftest.$ac_ext >&5
15124 ac_cv_lib_intl_textdomain=no
15127 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15128 conftest$ac_exeext conftest.$ac_ext
15129 LIBS=$ac_check_lib_save_LIBS
15131 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_textdomain" >&5
15132 echo "${ECHO_T}$ac_cv_lib_intl_textdomain" >&6; }
15133 if test $ac_cv_lib_intl_textdomain = yes; then
15135 cat >>confdefs.h <<\_ACEOF
15136 #define WITH_LIBINTL 1
15137 _ACEOF
15142 # checks for system dependent C++ extensions support
15143 case "$ac_sys_system" in
15144 AIX*) { echo "$as_me:$LINENO: checking for genuine AIX C++ extensions support" >&5
15145 echo $ECHO_N "checking for genuine AIX C++ extensions support... $ECHO_C" >&6; }
15146 cat >conftest.$ac_ext <<_ACEOF
15147 /* confdefs.h. */
15148 _ACEOF
15149 cat confdefs.h >>conftest.$ac_ext
15150 cat >>conftest.$ac_ext <<_ACEOF
15151 /* end confdefs.h. */
15152 #include "/usr/lpp/xlC/include/load.h"
15154 main ()
15156 loadAndInit("", 0, "")
15158 return 0;
15160 _ACEOF
15161 rm -f conftest.$ac_objext conftest$ac_exeext
15162 if { (ac_try="$ac_link"
15163 case "(($ac_try" in
15164 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15165 *) ac_try_echo=$ac_try;;
15166 esac
15167 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15168 (eval "$ac_link") 2>conftest.er1
15169 ac_status=$?
15170 grep -v '^ *+' conftest.er1 >conftest.err
15171 rm -f conftest.er1
15172 cat conftest.err >&5
15173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15174 (exit $ac_status); } && {
15175 test -z "$ac_c_werror_flag" ||
15176 test ! -s conftest.err
15177 } && test -s conftest$ac_exeext &&
15178 $as_test_x conftest$ac_exeext; then
15180 cat >>confdefs.h <<\_ACEOF
15181 #define AIX_GENUINE_CPLUSPLUS 1
15182 _ACEOF
15184 { echo "$as_me:$LINENO: result: yes" >&5
15185 echo "${ECHO_T}yes" >&6; }
15186 else
15187 echo "$as_me: failed program was:" >&5
15188 sed 's/^/| /' conftest.$ac_ext >&5
15190 { echo "$as_me:$LINENO: result: no" >&5
15191 echo "${ECHO_T}no" >&6; }
15194 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15195 conftest$ac_exeext conftest.$ac_ext;;
15196 *) ;;
15197 esac
15199 # Most SVR4 platforms (e.g. Solaris) need -lsocket and -lnsl.
15200 # BeOS' sockets are stashed in libnet.
15201 { echo "$as_me:$LINENO: checking for t_open in -lnsl" >&5
15202 echo $ECHO_N "checking for t_open in -lnsl... $ECHO_C" >&6; }
15203 if test "${ac_cv_lib_nsl_t_open+set}" = set; then
15204 echo $ECHO_N "(cached) $ECHO_C" >&6
15205 else
15206 ac_check_lib_save_LIBS=$LIBS
15207 LIBS="-lnsl $LIBS"
15208 cat >conftest.$ac_ext <<_ACEOF
15209 /* confdefs.h. */
15210 _ACEOF
15211 cat confdefs.h >>conftest.$ac_ext
15212 cat >>conftest.$ac_ext <<_ACEOF
15213 /* end confdefs.h. */
15215 /* Override any GCC internal prototype to avoid an error.
15216 Use char because int might match the return type of a GCC
15217 builtin and then its argument prototype would still apply. */
15218 #ifdef __cplusplus
15219 extern "C"
15220 #endif
15221 char t_open ();
15223 main ()
15225 return t_open ();
15227 return 0;
15229 _ACEOF
15230 rm -f conftest.$ac_objext conftest$ac_exeext
15231 if { (ac_try="$ac_link"
15232 case "(($ac_try" in
15233 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15234 *) ac_try_echo=$ac_try;;
15235 esac
15236 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15237 (eval "$ac_link") 2>conftest.er1
15238 ac_status=$?
15239 grep -v '^ *+' conftest.er1 >conftest.err
15240 rm -f conftest.er1
15241 cat conftest.err >&5
15242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15243 (exit $ac_status); } && {
15244 test -z "$ac_c_werror_flag" ||
15245 test ! -s conftest.err
15246 } && test -s conftest$ac_exeext &&
15247 $as_test_x conftest$ac_exeext; then
15248 ac_cv_lib_nsl_t_open=yes
15249 else
15250 echo "$as_me: failed program was:" >&5
15251 sed 's/^/| /' conftest.$ac_ext >&5
15253 ac_cv_lib_nsl_t_open=no
15256 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15257 conftest$ac_exeext conftest.$ac_ext
15258 LIBS=$ac_check_lib_save_LIBS
15260 { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_t_open" >&5
15261 echo "${ECHO_T}$ac_cv_lib_nsl_t_open" >&6; }
15262 if test $ac_cv_lib_nsl_t_open = yes; then
15263 LIBS="-lnsl $LIBS"
15265 # SVR4
15266 { echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
15267 echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6; }
15268 if test "${ac_cv_lib_socket_socket+set}" = set; then
15269 echo $ECHO_N "(cached) $ECHO_C" >&6
15270 else
15271 ac_check_lib_save_LIBS=$LIBS
15272 LIBS="-lsocket $LIBS $LIBS"
15273 cat >conftest.$ac_ext <<_ACEOF
15274 /* confdefs.h. */
15275 _ACEOF
15276 cat confdefs.h >>conftest.$ac_ext
15277 cat >>conftest.$ac_ext <<_ACEOF
15278 /* end confdefs.h. */
15280 /* Override any GCC internal prototype to avoid an error.
15281 Use char because int might match the return type of a GCC
15282 builtin and then its argument prototype would still apply. */
15283 #ifdef __cplusplus
15284 extern "C"
15285 #endif
15286 char socket ();
15288 main ()
15290 return socket ();
15292 return 0;
15294 _ACEOF
15295 rm -f conftest.$ac_objext conftest$ac_exeext
15296 if { (ac_try="$ac_link"
15297 case "(($ac_try" in
15298 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15299 *) ac_try_echo=$ac_try;;
15300 esac
15301 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15302 (eval "$ac_link") 2>conftest.er1
15303 ac_status=$?
15304 grep -v '^ *+' conftest.er1 >conftest.err
15305 rm -f conftest.er1
15306 cat conftest.err >&5
15307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15308 (exit $ac_status); } && {
15309 test -z "$ac_c_werror_flag" ||
15310 test ! -s conftest.err
15311 } && test -s conftest$ac_exeext &&
15312 $as_test_x conftest$ac_exeext; then
15313 ac_cv_lib_socket_socket=yes
15314 else
15315 echo "$as_me: failed program was:" >&5
15316 sed 's/^/| /' conftest.$ac_ext >&5
15318 ac_cv_lib_socket_socket=no
15321 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15322 conftest$ac_exeext conftest.$ac_ext
15323 LIBS=$ac_check_lib_save_LIBS
15325 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
15326 echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6; }
15327 if test $ac_cv_lib_socket_socket = yes; then
15328 LIBS="-lsocket $LIBS"
15330 # SVR4 sockets
15332 case "$ac_sys_system" in
15333 BeOS*)
15334 { echo "$as_me:$LINENO: checking for socket in -lnet" >&5
15335 echo $ECHO_N "checking for socket in -lnet... $ECHO_C" >&6; }
15336 if test "${ac_cv_lib_net_socket+set}" = set; then
15337 echo $ECHO_N "(cached) $ECHO_C" >&6
15338 else
15339 ac_check_lib_save_LIBS=$LIBS
15340 LIBS="-lnet $LIBS $LIBS"
15341 cat >conftest.$ac_ext <<_ACEOF
15342 /* confdefs.h. */
15343 _ACEOF
15344 cat confdefs.h >>conftest.$ac_ext
15345 cat >>conftest.$ac_ext <<_ACEOF
15346 /* end confdefs.h. */
15348 /* Override any GCC internal prototype to avoid an error.
15349 Use char because int might match the return type of a GCC
15350 builtin and then its argument prototype would still apply. */
15351 #ifdef __cplusplus
15352 extern "C"
15353 #endif
15354 char socket ();
15356 main ()
15358 return socket ();
15360 return 0;
15362 _ACEOF
15363 rm -f conftest.$ac_objext conftest$ac_exeext
15364 if { (ac_try="$ac_link"
15365 case "(($ac_try" in
15366 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15367 *) ac_try_echo=$ac_try;;
15368 esac
15369 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15370 (eval "$ac_link") 2>conftest.er1
15371 ac_status=$?
15372 grep -v '^ *+' conftest.er1 >conftest.err
15373 rm -f conftest.er1
15374 cat conftest.err >&5
15375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15376 (exit $ac_status); } && {
15377 test -z "$ac_c_werror_flag" ||
15378 test ! -s conftest.err
15379 } && test -s conftest$ac_exeext &&
15380 $as_test_x conftest$ac_exeext; then
15381 ac_cv_lib_net_socket=yes
15382 else
15383 echo "$as_me: failed program was:" >&5
15384 sed 's/^/| /' conftest.$ac_ext >&5
15386 ac_cv_lib_net_socket=no
15389 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15390 conftest$ac_exeext conftest.$ac_ext
15391 LIBS=$ac_check_lib_save_LIBS
15393 { echo "$as_me:$LINENO: result: $ac_cv_lib_net_socket" >&5
15394 echo "${ECHO_T}$ac_cv_lib_net_socket" >&6; }
15395 if test $ac_cv_lib_net_socket = yes; then
15396 LIBS="-lnet $LIBS"
15398 # BeOS
15400 esac
15402 { echo "$as_me:$LINENO: checking for --with-libs" >&5
15403 echo $ECHO_N "checking for --with-libs... $ECHO_C" >&6; }
15405 # Check whether --with-libs was given.
15406 if test "${with_libs+set}" = set; then
15407 withval=$with_libs;
15408 { echo "$as_me:$LINENO: result: $withval" >&5
15409 echo "${ECHO_T}$withval" >&6; }
15410 LIBS="$withval $LIBS"
15412 else
15413 { echo "$as_me:$LINENO: result: no" >&5
15414 echo "${ECHO_T}no" >&6; }
15418 # Check for use of the system libffi library
15419 { echo "$as_me:$LINENO: checking for --with-system-ffi" >&5
15420 echo $ECHO_N "checking for --with-system-ffi... $ECHO_C" >&6; }
15422 # Check whether --with-system_ffi was given.
15423 if test "${with_system_ffi+set}" = set; then
15424 withval=$with_system_ffi;
15428 { echo "$as_me:$LINENO: result: $with_system_ffi" >&5
15429 echo "${ECHO_T}$with_system_ffi" >&6; }
15431 # Check for --with-dbmliborder
15432 { echo "$as_me:$LINENO: checking for --with-dbmliborder" >&5
15433 echo $ECHO_N "checking for --with-dbmliborder... $ECHO_C" >&6; }
15435 # Check whether --with-dbmliborder was given.
15436 if test "${with_dbmliborder+set}" = set; then
15437 withval=$with_dbmliborder;
15438 if test x$with_dbmliborder = xyes
15439 then
15440 { { echo "$as_me:$LINENO: error: proper usage is --with-dbmliborder=db1:db2:..." >&5
15441 echo "$as_me: error: proper usage is --with-dbmliborder=db1:db2:..." >&2;}
15442 { (exit 1); exit 1; }; }
15443 else
15444 for db in `echo $with_dbmliborder | sed 's/:/ /g'`; do
15445 if test x$db != xndbm && test x$db != xgdbm && test x$db != xbdb
15446 then
15447 { { echo "$as_me:$LINENO: error: proper usage is --with-dbmliborder=db1:db2:..." >&5
15448 echo "$as_me: error: proper usage is --with-dbmliborder=db1:db2:..." >&2;}
15449 { (exit 1); exit 1; }; }
15451 done
15455 { echo "$as_me:$LINENO: result: $with_dbmliborder" >&5
15456 echo "${ECHO_T}$with_dbmliborder" >&6; }
15458 # Determine if signalmodule should be used.
15461 { echo "$as_me:$LINENO: checking for --with-signal-module" >&5
15462 echo $ECHO_N "checking for --with-signal-module... $ECHO_C" >&6; }
15464 # Check whether --with-signal-module was given.
15465 if test "${with_signal_module+set}" = set; then
15466 withval=$with_signal_module;
15470 if test -z "$with_signal_module"
15471 then with_signal_module="yes"
15473 { echo "$as_me:$LINENO: result: $with_signal_module" >&5
15474 echo "${ECHO_T}$with_signal_module" >&6; }
15476 if test "${with_signal_module}" = "yes"; then
15477 USE_SIGNAL_MODULE=""
15478 SIGNAL_OBJS=""
15479 else
15480 USE_SIGNAL_MODULE="#"
15481 SIGNAL_OBJS="Parser/intrcheck.o Python/sigcheck.o"
15484 # This is used to generate Setup.config
15486 USE_THREAD_MODULE=""
15488 { echo "$as_me:$LINENO: checking for --with-dec-threads" >&5
15489 echo $ECHO_N "checking for --with-dec-threads... $ECHO_C" >&6; }
15492 # Check whether --with-dec-threads was given.
15493 if test "${with_dec_threads+set}" = set; then
15494 withval=$with_dec_threads;
15495 { echo "$as_me:$LINENO: result: $withval" >&5
15496 echo "${ECHO_T}$withval" >&6; }
15497 LDLAST=-threads
15498 if test "${with_thread+set}" != set; then
15499 with_thread="$withval";
15501 else
15502 { echo "$as_me:$LINENO: result: no" >&5
15503 echo "${ECHO_T}no" >&6; }
15507 # Templates for things AC_DEFINEd more than once.
15508 # For a single AC_DEFINE, no template is needed.
15516 { echo "$as_me:$LINENO: checking for --with-threads" >&5
15517 echo $ECHO_N "checking for --with-threads... $ECHO_C" >&6; }
15519 # Check whether --with-threads was given.
15520 if test "${with_threads+set}" = set; then
15521 withval=$with_threads;
15525 # --with-thread is deprecated, but check for it anyway
15527 # Check whether --with-thread was given.
15528 if test "${with_thread+set}" = set; then
15529 withval=$with_thread; with_threads=$with_thread
15533 if test -z "$with_threads"
15534 then with_threads="yes"
15536 { echo "$as_me:$LINENO: result: $with_threads" >&5
15537 echo "${ECHO_T}$with_threads" >&6; }
15540 if test "$with_threads" = "no"
15541 then
15542 USE_THREAD_MODULE="#"
15543 elif test "$ac_cv_pthread_is_default" = yes
15544 then
15545 cat >>confdefs.h <<\_ACEOF
15546 #define WITH_THREAD 1
15547 _ACEOF
15549 # Defining _REENTRANT on system with POSIX threads should not hurt.
15550 cat >>confdefs.h <<\_ACEOF
15551 #define _REENTRANT 1
15552 _ACEOF
15554 posix_threads=yes
15555 THREADOBJ="Python/thread.o"
15556 elif test "$ac_cv_kpthread" = "yes"
15557 then
15558 CC="$CC -Kpthread"
15559 if test "$ac_cv_cxx_thread" = "yes"; then
15560 CXX="$CXX -Kpthread"
15562 cat >>confdefs.h <<\_ACEOF
15563 #define WITH_THREAD 1
15564 _ACEOF
15566 posix_threads=yes
15567 THREADOBJ="Python/thread.o"
15568 elif test "$ac_cv_kthread" = "yes"
15569 then
15570 CC="$CC -Kthread"
15571 if test "$ac_cv_cxx_thread" = "yes"; then
15572 CXX="$CXX -Kthread"
15574 cat >>confdefs.h <<\_ACEOF
15575 #define WITH_THREAD 1
15576 _ACEOF
15578 posix_threads=yes
15579 THREADOBJ="Python/thread.o"
15580 elif test "$ac_cv_pthread" = "yes"
15581 then
15582 CC="$CC -pthread"
15583 if test "$ac_cv_cxx_thread" = "yes"; then
15584 CXX="$CXX -pthread"
15586 cat >>confdefs.h <<\_ACEOF
15587 #define WITH_THREAD 1
15588 _ACEOF
15590 posix_threads=yes
15591 THREADOBJ="Python/thread.o"
15592 else
15593 if test ! -z "$with_threads" -a -d "$with_threads"
15594 then LDFLAGS="$LDFLAGS -L$with_threads"
15596 if test ! -z "$withval" -a -d "$withval"
15597 then LDFLAGS="$LDFLAGS -L$withval"
15600 # According to the POSIX spec, a pthreads implementation must
15601 # define _POSIX_THREADS in unistd.h. Some apparently don't
15602 # (e.g. gnu pth with pthread emulation)
15603 { echo "$as_me:$LINENO: checking for _POSIX_THREADS in unistd.h" >&5
15604 echo $ECHO_N "checking for _POSIX_THREADS in unistd.h... $ECHO_C" >&6; }
15605 cat >conftest.$ac_ext <<_ACEOF
15606 /* confdefs.h. */
15607 _ACEOF
15608 cat confdefs.h >>conftest.$ac_ext
15609 cat >>conftest.$ac_ext <<_ACEOF
15610 /* end confdefs.h. */
15612 #include <unistd.h>
15613 #ifdef _POSIX_THREADS
15615 #endif
15617 _ACEOF
15618 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15619 $EGREP "yes" >/dev/null 2>&1; then
15620 unistd_defines_pthreads=yes
15621 else
15622 unistd_defines_pthreads=no
15624 rm -f conftest*
15626 { echo "$as_me:$LINENO: result: $unistd_defines_pthreads" >&5
15627 echo "${ECHO_T}$unistd_defines_pthreads" >&6; }
15629 cat >>confdefs.h <<\_ACEOF
15630 #define _REENTRANT 1
15631 _ACEOF
15633 if test "${ac_cv_header_cthreads_h+set}" = set; then
15634 { echo "$as_me:$LINENO: checking for cthreads.h" >&5
15635 echo $ECHO_N "checking for cthreads.h... $ECHO_C" >&6; }
15636 if test "${ac_cv_header_cthreads_h+set}" = set; then
15637 echo $ECHO_N "(cached) $ECHO_C" >&6
15639 { echo "$as_me:$LINENO: result: $ac_cv_header_cthreads_h" >&5
15640 echo "${ECHO_T}$ac_cv_header_cthreads_h" >&6; }
15641 else
15642 # Is the header compilable?
15643 { echo "$as_me:$LINENO: checking cthreads.h usability" >&5
15644 echo $ECHO_N "checking cthreads.h usability... $ECHO_C" >&6; }
15645 cat >conftest.$ac_ext <<_ACEOF
15646 /* confdefs.h. */
15647 _ACEOF
15648 cat confdefs.h >>conftest.$ac_ext
15649 cat >>conftest.$ac_ext <<_ACEOF
15650 /* end confdefs.h. */
15651 $ac_includes_default
15652 #include <cthreads.h>
15653 _ACEOF
15654 rm -f conftest.$ac_objext
15655 if { (ac_try="$ac_compile"
15656 case "(($ac_try" in
15657 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15658 *) ac_try_echo=$ac_try;;
15659 esac
15660 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15661 (eval "$ac_compile") 2>conftest.er1
15662 ac_status=$?
15663 grep -v '^ *+' conftest.er1 >conftest.err
15664 rm -f conftest.er1
15665 cat conftest.err >&5
15666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15667 (exit $ac_status); } && {
15668 test -z "$ac_c_werror_flag" ||
15669 test ! -s conftest.err
15670 } && test -s conftest.$ac_objext; then
15671 ac_header_compiler=yes
15672 else
15673 echo "$as_me: failed program was:" >&5
15674 sed 's/^/| /' conftest.$ac_ext >&5
15676 ac_header_compiler=no
15679 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15680 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15681 echo "${ECHO_T}$ac_header_compiler" >&6; }
15683 # Is the header present?
15684 { echo "$as_me:$LINENO: checking cthreads.h presence" >&5
15685 echo $ECHO_N "checking cthreads.h presence... $ECHO_C" >&6; }
15686 cat >conftest.$ac_ext <<_ACEOF
15687 /* confdefs.h. */
15688 _ACEOF
15689 cat confdefs.h >>conftest.$ac_ext
15690 cat >>conftest.$ac_ext <<_ACEOF
15691 /* end confdefs.h. */
15692 #include <cthreads.h>
15693 _ACEOF
15694 if { (ac_try="$ac_cpp conftest.$ac_ext"
15695 case "(($ac_try" in
15696 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15697 *) ac_try_echo=$ac_try;;
15698 esac
15699 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15700 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15701 ac_status=$?
15702 grep -v '^ *+' conftest.er1 >conftest.err
15703 rm -f conftest.er1
15704 cat conftest.err >&5
15705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15706 (exit $ac_status); } >/dev/null && {
15707 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15708 test ! -s conftest.err
15709 }; then
15710 ac_header_preproc=yes
15711 else
15712 echo "$as_me: failed program was:" >&5
15713 sed 's/^/| /' conftest.$ac_ext >&5
15715 ac_header_preproc=no
15718 rm -f conftest.err conftest.$ac_ext
15719 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15720 echo "${ECHO_T}$ac_header_preproc" >&6; }
15722 # So? What about this header?
15723 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15724 yes:no: )
15725 { echo "$as_me:$LINENO: WARNING: cthreads.h: accepted by the compiler, rejected by the preprocessor!" >&5
15726 echo "$as_me: WARNING: cthreads.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
15727 { echo "$as_me:$LINENO: WARNING: cthreads.h: proceeding with the compiler's result" >&5
15728 echo "$as_me: WARNING: cthreads.h: proceeding with the compiler's result" >&2;}
15729 ac_header_preproc=yes
15731 no:yes:* )
15732 { echo "$as_me:$LINENO: WARNING: cthreads.h: present but cannot be compiled" >&5
15733 echo "$as_me: WARNING: cthreads.h: present but cannot be compiled" >&2;}
15734 { echo "$as_me:$LINENO: WARNING: cthreads.h: check for missing prerequisite headers?" >&5
15735 echo "$as_me: WARNING: cthreads.h: check for missing prerequisite headers?" >&2;}
15736 { echo "$as_me:$LINENO: WARNING: cthreads.h: see the Autoconf documentation" >&5
15737 echo "$as_me: WARNING: cthreads.h: see the Autoconf documentation" >&2;}
15738 { echo "$as_me:$LINENO: WARNING: cthreads.h: section \"Present But Cannot Be Compiled\"" >&5
15739 echo "$as_me: WARNING: cthreads.h: section \"Present But Cannot Be Compiled\"" >&2;}
15740 { echo "$as_me:$LINENO: WARNING: cthreads.h: proceeding with the preprocessor's result" >&5
15741 echo "$as_me: WARNING: cthreads.h: proceeding with the preprocessor's result" >&2;}
15742 { echo "$as_me:$LINENO: WARNING: cthreads.h: in the future, the compiler will take precedence" >&5
15743 echo "$as_me: WARNING: cthreads.h: in the future, the compiler will take precedence" >&2;}
15744 ( cat <<\_ASBOX
15745 ## -------------------------------------- ##
15746 ## Report this to http://bugs.python.org/ ##
15747 ## -------------------------------------- ##
15748 _ASBOX
15749 ) | sed "s/^/$as_me: WARNING: /" >&2
15751 esac
15752 { echo "$as_me:$LINENO: checking for cthreads.h" >&5
15753 echo $ECHO_N "checking for cthreads.h... $ECHO_C" >&6; }
15754 if test "${ac_cv_header_cthreads_h+set}" = set; then
15755 echo $ECHO_N "(cached) $ECHO_C" >&6
15756 else
15757 ac_cv_header_cthreads_h=$ac_header_preproc
15759 { echo "$as_me:$LINENO: result: $ac_cv_header_cthreads_h" >&5
15760 echo "${ECHO_T}$ac_cv_header_cthreads_h" >&6; }
15763 if test $ac_cv_header_cthreads_h = yes; then
15764 cat >>confdefs.h <<\_ACEOF
15765 #define WITH_THREAD 1
15766 _ACEOF
15768 cat >>confdefs.h <<\_ACEOF
15769 #define C_THREADS 1
15770 _ACEOF
15773 cat >>confdefs.h <<\_ACEOF
15774 #define HURD_C_THREADS 1
15775 _ACEOF
15777 LIBS="$LIBS -lthreads"
15778 THREADOBJ="Python/thread.o"
15779 else
15781 if test "${ac_cv_header_mach_cthreads_h+set}" = set; then
15782 { echo "$as_me:$LINENO: checking for mach/cthreads.h" >&5
15783 echo $ECHO_N "checking for mach/cthreads.h... $ECHO_C" >&6; }
15784 if test "${ac_cv_header_mach_cthreads_h+set}" = set; then
15785 echo $ECHO_N "(cached) $ECHO_C" >&6
15787 { echo "$as_me:$LINENO: result: $ac_cv_header_mach_cthreads_h" >&5
15788 echo "${ECHO_T}$ac_cv_header_mach_cthreads_h" >&6; }
15789 else
15790 # Is the header compilable?
15791 { echo "$as_me:$LINENO: checking mach/cthreads.h usability" >&5
15792 echo $ECHO_N "checking mach/cthreads.h usability... $ECHO_C" >&6; }
15793 cat >conftest.$ac_ext <<_ACEOF
15794 /* confdefs.h. */
15795 _ACEOF
15796 cat confdefs.h >>conftest.$ac_ext
15797 cat >>conftest.$ac_ext <<_ACEOF
15798 /* end confdefs.h. */
15799 $ac_includes_default
15800 #include <mach/cthreads.h>
15801 _ACEOF
15802 rm -f conftest.$ac_objext
15803 if { (ac_try="$ac_compile"
15804 case "(($ac_try" in
15805 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15806 *) ac_try_echo=$ac_try;;
15807 esac
15808 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15809 (eval "$ac_compile") 2>conftest.er1
15810 ac_status=$?
15811 grep -v '^ *+' conftest.er1 >conftest.err
15812 rm -f conftest.er1
15813 cat conftest.err >&5
15814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15815 (exit $ac_status); } && {
15816 test -z "$ac_c_werror_flag" ||
15817 test ! -s conftest.err
15818 } && test -s conftest.$ac_objext; then
15819 ac_header_compiler=yes
15820 else
15821 echo "$as_me: failed program was:" >&5
15822 sed 's/^/| /' conftest.$ac_ext >&5
15824 ac_header_compiler=no
15827 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15828 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15829 echo "${ECHO_T}$ac_header_compiler" >&6; }
15831 # Is the header present?
15832 { echo "$as_me:$LINENO: checking mach/cthreads.h presence" >&5
15833 echo $ECHO_N "checking mach/cthreads.h presence... $ECHO_C" >&6; }
15834 cat >conftest.$ac_ext <<_ACEOF
15835 /* confdefs.h. */
15836 _ACEOF
15837 cat confdefs.h >>conftest.$ac_ext
15838 cat >>conftest.$ac_ext <<_ACEOF
15839 /* end confdefs.h. */
15840 #include <mach/cthreads.h>
15841 _ACEOF
15842 if { (ac_try="$ac_cpp conftest.$ac_ext"
15843 case "(($ac_try" in
15844 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15845 *) ac_try_echo=$ac_try;;
15846 esac
15847 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15848 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15849 ac_status=$?
15850 grep -v '^ *+' conftest.er1 >conftest.err
15851 rm -f conftest.er1
15852 cat conftest.err >&5
15853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15854 (exit $ac_status); } >/dev/null && {
15855 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15856 test ! -s conftest.err
15857 }; then
15858 ac_header_preproc=yes
15859 else
15860 echo "$as_me: failed program was:" >&5
15861 sed 's/^/| /' conftest.$ac_ext >&5
15863 ac_header_preproc=no
15866 rm -f conftest.err conftest.$ac_ext
15867 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15868 echo "${ECHO_T}$ac_header_preproc" >&6; }
15870 # So? What about this header?
15871 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15872 yes:no: )
15873 { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: accepted by the compiler, rejected by the preprocessor!" >&5
15874 echo "$as_me: WARNING: mach/cthreads.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
15875 { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: proceeding with the compiler's result" >&5
15876 echo "$as_me: WARNING: mach/cthreads.h: proceeding with the compiler's result" >&2;}
15877 ac_header_preproc=yes
15879 no:yes:* )
15880 { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: present but cannot be compiled" >&5
15881 echo "$as_me: WARNING: mach/cthreads.h: present but cannot be compiled" >&2;}
15882 { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: check for missing prerequisite headers?" >&5
15883 echo "$as_me: WARNING: mach/cthreads.h: check for missing prerequisite headers?" >&2;}
15884 { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: see the Autoconf documentation" >&5
15885 echo "$as_me: WARNING: mach/cthreads.h: see the Autoconf documentation" >&2;}
15886 { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: section \"Present But Cannot Be Compiled\"" >&5
15887 echo "$as_me: WARNING: mach/cthreads.h: section \"Present But Cannot Be Compiled\"" >&2;}
15888 { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: proceeding with the preprocessor's result" >&5
15889 echo "$as_me: WARNING: mach/cthreads.h: proceeding with the preprocessor's result" >&2;}
15890 { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: in the future, the compiler will take precedence" >&5
15891 echo "$as_me: WARNING: mach/cthreads.h: in the future, the compiler will take precedence" >&2;}
15892 ( cat <<\_ASBOX
15893 ## -------------------------------------- ##
15894 ## Report this to http://bugs.python.org/ ##
15895 ## -------------------------------------- ##
15896 _ASBOX
15897 ) | sed "s/^/$as_me: WARNING: /" >&2
15899 esac
15900 { echo "$as_me:$LINENO: checking for mach/cthreads.h" >&5
15901 echo $ECHO_N "checking for mach/cthreads.h... $ECHO_C" >&6; }
15902 if test "${ac_cv_header_mach_cthreads_h+set}" = set; then
15903 echo $ECHO_N "(cached) $ECHO_C" >&6
15904 else
15905 ac_cv_header_mach_cthreads_h=$ac_header_preproc
15907 { echo "$as_me:$LINENO: result: $ac_cv_header_mach_cthreads_h" >&5
15908 echo "${ECHO_T}$ac_cv_header_mach_cthreads_h" >&6; }
15911 if test $ac_cv_header_mach_cthreads_h = yes; then
15912 cat >>confdefs.h <<\_ACEOF
15913 #define WITH_THREAD 1
15914 _ACEOF
15916 cat >>confdefs.h <<\_ACEOF
15917 #define C_THREADS 1
15918 _ACEOF
15921 cat >>confdefs.h <<\_ACEOF
15922 #define MACH_C_THREADS 1
15923 _ACEOF
15925 THREADOBJ="Python/thread.o"
15926 else
15928 { echo "$as_me:$LINENO: checking for --with-pth" >&5
15929 echo $ECHO_N "checking for --with-pth... $ECHO_C" >&6; }
15931 # Check whether --with-pth was given.
15932 if test "${with_pth+set}" = set; then
15933 withval=$with_pth; { echo "$as_me:$LINENO: result: $withval" >&5
15934 echo "${ECHO_T}$withval" >&6; }
15935 cat >>confdefs.h <<\_ACEOF
15936 #define WITH_THREAD 1
15937 _ACEOF
15940 cat >>confdefs.h <<\_ACEOF
15941 #define HAVE_PTH 1
15942 _ACEOF
15944 LIBS="-lpth $LIBS"
15945 THREADOBJ="Python/thread.o"
15946 else
15947 { echo "$as_me:$LINENO: result: no" >&5
15948 echo "${ECHO_T}no" >&6; }
15950 # Just looking for pthread_create in libpthread is not enough:
15951 # on HP/UX, pthread.h renames pthread_create to a different symbol name.
15952 # So we really have to include pthread.h, and then link.
15953 _libs=$LIBS
15954 LIBS="$LIBS -lpthread"
15955 { echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5
15956 echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6; }
15957 cat >conftest.$ac_ext <<_ACEOF
15958 /* confdefs.h. */
15959 _ACEOF
15960 cat confdefs.h >>conftest.$ac_ext
15961 cat >>conftest.$ac_ext <<_ACEOF
15962 /* end confdefs.h. */
15963 #include <pthread.h>
15965 void * start_routine (void *arg) { exit (0); }
15967 main ()
15970 pthread_create (NULL, NULL, start_routine, NULL)
15972 return 0;
15974 _ACEOF
15975 rm -f conftest.$ac_objext conftest$ac_exeext
15976 if { (ac_try="$ac_link"
15977 case "(($ac_try" in
15978 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15979 *) ac_try_echo=$ac_try;;
15980 esac
15981 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15982 (eval "$ac_link") 2>conftest.er1
15983 ac_status=$?
15984 grep -v '^ *+' conftest.er1 >conftest.err
15985 rm -f conftest.er1
15986 cat conftest.err >&5
15987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15988 (exit $ac_status); } && {
15989 test -z "$ac_c_werror_flag" ||
15990 test ! -s conftest.err
15991 } && test -s conftest$ac_exeext &&
15992 $as_test_x conftest$ac_exeext; then
15994 { echo "$as_me:$LINENO: result: yes" >&5
15995 echo "${ECHO_T}yes" >&6; }
15996 cat >>confdefs.h <<\_ACEOF
15997 #define WITH_THREAD 1
15998 _ACEOF
16000 posix_threads=yes
16001 THREADOBJ="Python/thread.o"
16002 else
16003 echo "$as_me: failed program was:" >&5
16004 sed 's/^/| /' conftest.$ac_ext >&5
16007 LIBS=$_libs
16008 { echo "$as_me:$LINENO: checking for pthread_detach" >&5
16009 echo $ECHO_N "checking for pthread_detach... $ECHO_C" >&6; }
16010 if test "${ac_cv_func_pthread_detach+set}" = set; then
16011 echo $ECHO_N "(cached) $ECHO_C" >&6
16012 else
16013 cat >conftest.$ac_ext <<_ACEOF
16014 /* confdefs.h. */
16015 _ACEOF
16016 cat confdefs.h >>conftest.$ac_ext
16017 cat >>conftest.$ac_ext <<_ACEOF
16018 /* end confdefs.h. */
16019 /* Define pthread_detach to an innocuous variant, in case <limits.h> declares pthread_detach.
16020 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16021 #define pthread_detach innocuous_pthread_detach
16023 /* System header to define __stub macros and hopefully few prototypes,
16024 which can conflict with char pthread_detach (); below.
16025 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16026 <limits.h> exists even on freestanding compilers. */
16028 #ifdef __STDC__
16029 # include <limits.h>
16030 #else
16031 # include <assert.h>
16032 #endif
16034 #undef pthread_detach
16036 /* Override any GCC internal prototype to avoid an error.
16037 Use char because int might match the return type of a GCC
16038 builtin and then its argument prototype would still apply. */
16039 #ifdef __cplusplus
16040 extern "C"
16041 #endif
16042 char pthread_detach ();
16043 /* The GNU C library defines this for functions which it implements
16044 to always fail with ENOSYS. Some functions are actually named
16045 something starting with __ and the normal name is an alias. */
16046 #if defined __stub_pthread_detach || defined __stub___pthread_detach
16047 choke me
16048 #endif
16051 main ()
16053 return pthread_detach ();
16055 return 0;
16057 _ACEOF
16058 rm -f conftest.$ac_objext conftest$ac_exeext
16059 if { (ac_try="$ac_link"
16060 case "(($ac_try" in
16061 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16062 *) ac_try_echo=$ac_try;;
16063 esac
16064 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16065 (eval "$ac_link") 2>conftest.er1
16066 ac_status=$?
16067 grep -v '^ *+' conftest.er1 >conftest.err
16068 rm -f conftest.er1
16069 cat conftest.err >&5
16070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16071 (exit $ac_status); } && {
16072 test -z "$ac_c_werror_flag" ||
16073 test ! -s conftest.err
16074 } && test -s conftest$ac_exeext &&
16075 $as_test_x conftest$ac_exeext; then
16076 ac_cv_func_pthread_detach=yes
16077 else
16078 echo "$as_me: failed program was:" >&5
16079 sed 's/^/| /' conftest.$ac_ext >&5
16081 ac_cv_func_pthread_detach=no
16084 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16085 conftest$ac_exeext conftest.$ac_ext
16087 { echo "$as_me:$LINENO: result: $ac_cv_func_pthread_detach" >&5
16088 echo "${ECHO_T}$ac_cv_func_pthread_detach" >&6; }
16089 if test $ac_cv_func_pthread_detach = yes; then
16090 cat >>confdefs.h <<\_ACEOF
16091 #define WITH_THREAD 1
16092 _ACEOF
16094 posix_threads=yes
16095 THREADOBJ="Python/thread.o"
16096 else
16098 if test "${ac_cv_header_atheos_threads_h+set}" = set; then
16099 { echo "$as_me:$LINENO: checking for atheos/threads.h" >&5
16100 echo $ECHO_N "checking for atheos/threads.h... $ECHO_C" >&6; }
16101 if test "${ac_cv_header_atheos_threads_h+set}" = set; then
16102 echo $ECHO_N "(cached) $ECHO_C" >&6
16104 { echo "$as_me:$LINENO: result: $ac_cv_header_atheos_threads_h" >&5
16105 echo "${ECHO_T}$ac_cv_header_atheos_threads_h" >&6; }
16106 else
16107 # Is the header compilable?
16108 { echo "$as_me:$LINENO: checking atheos/threads.h usability" >&5
16109 echo $ECHO_N "checking atheos/threads.h usability... $ECHO_C" >&6; }
16110 cat >conftest.$ac_ext <<_ACEOF
16111 /* confdefs.h. */
16112 _ACEOF
16113 cat confdefs.h >>conftest.$ac_ext
16114 cat >>conftest.$ac_ext <<_ACEOF
16115 /* end confdefs.h. */
16116 $ac_includes_default
16117 #include <atheos/threads.h>
16118 _ACEOF
16119 rm -f conftest.$ac_objext
16120 if { (ac_try="$ac_compile"
16121 case "(($ac_try" in
16122 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16123 *) ac_try_echo=$ac_try;;
16124 esac
16125 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16126 (eval "$ac_compile") 2>conftest.er1
16127 ac_status=$?
16128 grep -v '^ *+' conftest.er1 >conftest.err
16129 rm -f conftest.er1
16130 cat conftest.err >&5
16131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16132 (exit $ac_status); } && {
16133 test -z "$ac_c_werror_flag" ||
16134 test ! -s conftest.err
16135 } && test -s conftest.$ac_objext; then
16136 ac_header_compiler=yes
16137 else
16138 echo "$as_me: failed program was:" >&5
16139 sed 's/^/| /' conftest.$ac_ext >&5
16141 ac_header_compiler=no
16144 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16145 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16146 echo "${ECHO_T}$ac_header_compiler" >&6; }
16148 # Is the header present?
16149 { echo "$as_me:$LINENO: checking atheos/threads.h presence" >&5
16150 echo $ECHO_N "checking atheos/threads.h presence... $ECHO_C" >&6; }
16151 cat >conftest.$ac_ext <<_ACEOF
16152 /* confdefs.h. */
16153 _ACEOF
16154 cat confdefs.h >>conftest.$ac_ext
16155 cat >>conftest.$ac_ext <<_ACEOF
16156 /* end confdefs.h. */
16157 #include <atheos/threads.h>
16158 _ACEOF
16159 if { (ac_try="$ac_cpp conftest.$ac_ext"
16160 case "(($ac_try" in
16161 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16162 *) ac_try_echo=$ac_try;;
16163 esac
16164 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16165 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16166 ac_status=$?
16167 grep -v '^ *+' conftest.er1 >conftest.err
16168 rm -f conftest.er1
16169 cat conftest.err >&5
16170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16171 (exit $ac_status); } >/dev/null && {
16172 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16173 test ! -s conftest.err
16174 }; then
16175 ac_header_preproc=yes
16176 else
16177 echo "$as_me: failed program was:" >&5
16178 sed 's/^/| /' conftest.$ac_ext >&5
16180 ac_header_preproc=no
16183 rm -f conftest.err conftest.$ac_ext
16184 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16185 echo "${ECHO_T}$ac_header_preproc" >&6; }
16187 # So? What about this header?
16188 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16189 yes:no: )
16190 { echo "$as_me:$LINENO: WARNING: atheos/threads.h: accepted by the compiler, rejected by the preprocessor!" >&5
16191 echo "$as_me: WARNING: atheos/threads.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
16192 { echo "$as_me:$LINENO: WARNING: atheos/threads.h: proceeding with the compiler's result" >&5
16193 echo "$as_me: WARNING: atheos/threads.h: proceeding with the compiler's result" >&2;}
16194 ac_header_preproc=yes
16196 no:yes:* )
16197 { echo "$as_me:$LINENO: WARNING: atheos/threads.h: present but cannot be compiled" >&5
16198 echo "$as_me: WARNING: atheos/threads.h: present but cannot be compiled" >&2;}
16199 { echo "$as_me:$LINENO: WARNING: atheos/threads.h: check for missing prerequisite headers?" >&5
16200 echo "$as_me: WARNING: atheos/threads.h: check for missing prerequisite headers?" >&2;}
16201 { echo "$as_me:$LINENO: WARNING: atheos/threads.h: see the Autoconf documentation" >&5
16202 echo "$as_me: WARNING: atheos/threads.h: see the Autoconf documentation" >&2;}
16203 { echo "$as_me:$LINENO: WARNING: atheos/threads.h: section \"Present But Cannot Be Compiled\"" >&5
16204 echo "$as_me: WARNING: atheos/threads.h: section \"Present But Cannot Be Compiled\"" >&2;}
16205 { echo "$as_me:$LINENO: WARNING: atheos/threads.h: proceeding with the preprocessor's result" >&5
16206 echo "$as_me: WARNING: atheos/threads.h: proceeding with the preprocessor's result" >&2;}
16207 { echo "$as_me:$LINENO: WARNING: atheos/threads.h: in the future, the compiler will take precedence" >&5
16208 echo "$as_me: WARNING: atheos/threads.h: in the future, the compiler will take precedence" >&2;}
16209 ( cat <<\_ASBOX
16210 ## -------------------------------------- ##
16211 ## Report this to http://bugs.python.org/ ##
16212 ## -------------------------------------- ##
16213 _ASBOX
16214 ) | sed "s/^/$as_me: WARNING: /" >&2
16216 esac
16217 { echo "$as_me:$LINENO: checking for atheos/threads.h" >&5
16218 echo $ECHO_N "checking for atheos/threads.h... $ECHO_C" >&6; }
16219 if test "${ac_cv_header_atheos_threads_h+set}" = set; then
16220 echo $ECHO_N "(cached) $ECHO_C" >&6
16221 else
16222 ac_cv_header_atheos_threads_h=$ac_header_preproc
16224 { echo "$as_me:$LINENO: result: $ac_cv_header_atheos_threads_h" >&5
16225 echo "${ECHO_T}$ac_cv_header_atheos_threads_h" >&6; }
16228 if test $ac_cv_header_atheos_threads_h = yes; then
16229 cat >>confdefs.h <<\_ACEOF
16230 #define WITH_THREAD 1
16231 _ACEOF
16234 cat >>confdefs.h <<\_ACEOF
16235 #define ATHEOS_THREADS 1
16236 _ACEOF
16238 THREADOBJ="Python/thread.o"
16239 else
16241 if test "${ac_cv_header_kernel_OS_h+set}" = set; then
16242 { echo "$as_me:$LINENO: checking for kernel/OS.h" >&5
16243 echo $ECHO_N "checking for kernel/OS.h... $ECHO_C" >&6; }
16244 if test "${ac_cv_header_kernel_OS_h+set}" = set; then
16245 echo $ECHO_N "(cached) $ECHO_C" >&6
16247 { echo "$as_me:$LINENO: result: $ac_cv_header_kernel_OS_h" >&5
16248 echo "${ECHO_T}$ac_cv_header_kernel_OS_h" >&6; }
16249 else
16250 # Is the header compilable?
16251 { echo "$as_me:$LINENO: checking kernel/OS.h usability" >&5
16252 echo $ECHO_N "checking kernel/OS.h usability... $ECHO_C" >&6; }
16253 cat >conftest.$ac_ext <<_ACEOF
16254 /* confdefs.h. */
16255 _ACEOF
16256 cat confdefs.h >>conftest.$ac_ext
16257 cat >>conftest.$ac_ext <<_ACEOF
16258 /* end confdefs.h. */
16259 $ac_includes_default
16260 #include <kernel/OS.h>
16261 _ACEOF
16262 rm -f conftest.$ac_objext
16263 if { (ac_try="$ac_compile"
16264 case "(($ac_try" in
16265 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16266 *) ac_try_echo=$ac_try;;
16267 esac
16268 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16269 (eval "$ac_compile") 2>conftest.er1
16270 ac_status=$?
16271 grep -v '^ *+' conftest.er1 >conftest.err
16272 rm -f conftest.er1
16273 cat conftest.err >&5
16274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16275 (exit $ac_status); } && {
16276 test -z "$ac_c_werror_flag" ||
16277 test ! -s conftest.err
16278 } && test -s conftest.$ac_objext; then
16279 ac_header_compiler=yes
16280 else
16281 echo "$as_me: failed program was:" >&5
16282 sed 's/^/| /' conftest.$ac_ext >&5
16284 ac_header_compiler=no
16287 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16288 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16289 echo "${ECHO_T}$ac_header_compiler" >&6; }
16291 # Is the header present?
16292 { echo "$as_me:$LINENO: checking kernel/OS.h presence" >&5
16293 echo $ECHO_N "checking kernel/OS.h presence... $ECHO_C" >&6; }
16294 cat >conftest.$ac_ext <<_ACEOF
16295 /* confdefs.h. */
16296 _ACEOF
16297 cat confdefs.h >>conftest.$ac_ext
16298 cat >>conftest.$ac_ext <<_ACEOF
16299 /* end confdefs.h. */
16300 #include <kernel/OS.h>
16301 _ACEOF
16302 if { (ac_try="$ac_cpp conftest.$ac_ext"
16303 case "(($ac_try" in
16304 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16305 *) ac_try_echo=$ac_try;;
16306 esac
16307 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16308 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16309 ac_status=$?
16310 grep -v '^ *+' conftest.er1 >conftest.err
16311 rm -f conftest.er1
16312 cat conftest.err >&5
16313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16314 (exit $ac_status); } >/dev/null && {
16315 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16316 test ! -s conftest.err
16317 }; then
16318 ac_header_preproc=yes
16319 else
16320 echo "$as_me: failed program was:" >&5
16321 sed 's/^/| /' conftest.$ac_ext >&5
16323 ac_header_preproc=no
16326 rm -f conftest.err conftest.$ac_ext
16327 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16328 echo "${ECHO_T}$ac_header_preproc" >&6; }
16330 # So? What about this header?
16331 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16332 yes:no: )
16333 { echo "$as_me:$LINENO: WARNING: kernel/OS.h: accepted by the compiler, rejected by the preprocessor!" >&5
16334 echo "$as_me: WARNING: kernel/OS.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
16335 { echo "$as_me:$LINENO: WARNING: kernel/OS.h: proceeding with the compiler's result" >&5
16336 echo "$as_me: WARNING: kernel/OS.h: proceeding with the compiler's result" >&2;}
16337 ac_header_preproc=yes
16339 no:yes:* )
16340 { echo "$as_me:$LINENO: WARNING: kernel/OS.h: present but cannot be compiled" >&5
16341 echo "$as_me: WARNING: kernel/OS.h: present but cannot be compiled" >&2;}
16342 { echo "$as_me:$LINENO: WARNING: kernel/OS.h: check for missing prerequisite headers?" >&5
16343 echo "$as_me: WARNING: kernel/OS.h: check for missing prerequisite headers?" >&2;}
16344 { echo "$as_me:$LINENO: WARNING: kernel/OS.h: see the Autoconf documentation" >&5
16345 echo "$as_me: WARNING: kernel/OS.h: see the Autoconf documentation" >&2;}
16346 { echo "$as_me:$LINENO: WARNING: kernel/OS.h: section \"Present But Cannot Be Compiled\"" >&5
16347 echo "$as_me: WARNING: kernel/OS.h: section \"Present But Cannot Be Compiled\"" >&2;}
16348 { echo "$as_me:$LINENO: WARNING: kernel/OS.h: proceeding with the preprocessor's result" >&5
16349 echo "$as_me: WARNING: kernel/OS.h: proceeding with the preprocessor's result" >&2;}
16350 { echo "$as_me:$LINENO: WARNING: kernel/OS.h: in the future, the compiler will take precedence" >&5
16351 echo "$as_me: WARNING: kernel/OS.h: in the future, the compiler will take precedence" >&2;}
16352 ( cat <<\_ASBOX
16353 ## -------------------------------------- ##
16354 ## Report this to http://bugs.python.org/ ##
16355 ## -------------------------------------- ##
16356 _ASBOX
16357 ) | sed "s/^/$as_me: WARNING: /" >&2
16359 esac
16360 { echo "$as_me:$LINENO: checking for kernel/OS.h" >&5
16361 echo $ECHO_N "checking for kernel/OS.h... $ECHO_C" >&6; }
16362 if test "${ac_cv_header_kernel_OS_h+set}" = set; then
16363 echo $ECHO_N "(cached) $ECHO_C" >&6
16364 else
16365 ac_cv_header_kernel_OS_h=$ac_header_preproc
16367 { echo "$as_me:$LINENO: result: $ac_cv_header_kernel_OS_h" >&5
16368 echo "${ECHO_T}$ac_cv_header_kernel_OS_h" >&6; }
16371 if test $ac_cv_header_kernel_OS_h = yes; then
16372 cat >>confdefs.h <<\_ACEOF
16373 #define WITH_THREAD 1
16374 _ACEOF
16377 cat >>confdefs.h <<\_ACEOF
16378 #define BEOS_THREADS 1
16379 _ACEOF
16381 THREADOBJ="Python/thread.o"
16382 else
16384 { echo "$as_me:$LINENO: checking for pthread_create in -lpthreads" >&5
16385 echo $ECHO_N "checking for pthread_create in -lpthreads... $ECHO_C" >&6; }
16386 if test "${ac_cv_lib_pthreads_pthread_create+set}" = set; then
16387 echo $ECHO_N "(cached) $ECHO_C" >&6
16388 else
16389 ac_check_lib_save_LIBS=$LIBS
16390 LIBS="-lpthreads $LIBS"
16391 cat >conftest.$ac_ext <<_ACEOF
16392 /* confdefs.h. */
16393 _ACEOF
16394 cat confdefs.h >>conftest.$ac_ext
16395 cat >>conftest.$ac_ext <<_ACEOF
16396 /* end confdefs.h. */
16398 /* Override any GCC internal prototype to avoid an error.
16399 Use char because int might match the return type of a GCC
16400 builtin and then its argument prototype would still apply. */
16401 #ifdef __cplusplus
16402 extern "C"
16403 #endif
16404 char pthread_create ();
16406 main ()
16408 return pthread_create ();
16410 return 0;
16412 _ACEOF
16413 rm -f conftest.$ac_objext conftest$ac_exeext
16414 if { (ac_try="$ac_link"
16415 case "(($ac_try" in
16416 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16417 *) ac_try_echo=$ac_try;;
16418 esac
16419 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16420 (eval "$ac_link") 2>conftest.er1
16421 ac_status=$?
16422 grep -v '^ *+' conftest.er1 >conftest.err
16423 rm -f conftest.er1
16424 cat conftest.err >&5
16425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16426 (exit $ac_status); } && {
16427 test -z "$ac_c_werror_flag" ||
16428 test ! -s conftest.err
16429 } && test -s conftest$ac_exeext &&
16430 $as_test_x conftest$ac_exeext; then
16431 ac_cv_lib_pthreads_pthread_create=yes
16432 else
16433 echo "$as_me: failed program was:" >&5
16434 sed 's/^/| /' conftest.$ac_ext >&5
16436 ac_cv_lib_pthreads_pthread_create=no
16439 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16440 conftest$ac_exeext conftest.$ac_ext
16441 LIBS=$ac_check_lib_save_LIBS
16443 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_pthread_create" >&5
16444 echo "${ECHO_T}$ac_cv_lib_pthreads_pthread_create" >&6; }
16445 if test $ac_cv_lib_pthreads_pthread_create = yes; then
16446 cat >>confdefs.h <<\_ACEOF
16447 #define WITH_THREAD 1
16448 _ACEOF
16450 posix_threads=yes
16451 LIBS="$LIBS -lpthreads"
16452 THREADOBJ="Python/thread.o"
16453 else
16455 { echo "$as_me:$LINENO: checking for pthread_create in -lc_r" >&5
16456 echo $ECHO_N "checking for pthread_create in -lc_r... $ECHO_C" >&6; }
16457 if test "${ac_cv_lib_c_r_pthread_create+set}" = set; then
16458 echo $ECHO_N "(cached) $ECHO_C" >&6
16459 else
16460 ac_check_lib_save_LIBS=$LIBS
16461 LIBS="-lc_r $LIBS"
16462 cat >conftest.$ac_ext <<_ACEOF
16463 /* confdefs.h. */
16464 _ACEOF
16465 cat confdefs.h >>conftest.$ac_ext
16466 cat >>conftest.$ac_ext <<_ACEOF
16467 /* end confdefs.h. */
16469 /* Override any GCC internal prototype to avoid an error.
16470 Use char because int might match the return type of a GCC
16471 builtin and then its argument prototype would still apply. */
16472 #ifdef __cplusplus
16473 extern "C"
16474 #endif
16475 char pthread_create ();
16477 main ()
16479 return pthread_create ();
16481 return 0;
16483 _ACEOF
16484 rm -f conftest.$ac_objext conftest$ac_exeext
16485 if { (ac_try="$ac_link"
16486 case "(($ac_try" in
16487 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16488 *) ac_try_echo=$ac_try;;
16489 esac
16490 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16491 (eval "$ac_link") 2>conftest.er1
16492 ac_status=$?
16493 grep -v '^ *+' conftest.er1 >conftest.err
16494 rm -f conftest.er1
16495 cat conftest.err >&5
16496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16497 (exit $ac_status); } && {
16498 test -z "$ac_c_werror_flag" ||
16499 test ! -s conftest.err
16500 } && test -s conftest$ac_exeext &&
16501 $as_test_x conftest$ac_exeext; then
16502 ac_cv_lib_c_r_pthread_create=yes
16503 else
16504 echo "$as_me: failed program was:" >&5
16505 sed 's/^/| /' conftest.$ac_ext >&5
16507 ac_cv_lib_c_r_pthread_create=no
16510 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16511 conftest$ac_exeext conftest.$ac_ext
16512 LIBS=$ac_check_lib_save_LIBS
16514 { echo "$as_me:$LINENO: result: $ac_cv_lib_c_r_pthread_create" >&5
16515 echo "${ECHO_T}$ac_cv_lib_c_r_pthread_create" >&6; }
16516 if test $ac_cv_lib_c_r_pthread_create = yes; then
16517 cat >>confdefs.h <<\_ACEOF
16518 #define WITH_THREAD 1
16519 _ACEOF
16521 posix_threads=yes
16522 LIBS="$LIBS -lc_r"
16523 THREADOBJ="Python/thread.o"
16524 else
16526 { echo "$as_me:$LINENO: checking for __pthread_create_system in -lpthread" >&5
16527 echo $ECHO_N "checking for __pthread_create_system in -lpthread... $ECHO_C" >&6; }
16528 if test "${ac_cv_lib_pthread___pthread_create_system+set}" = set; then
16529 echo $ECHO_N "(cached) $ECHO_C" >&6
16530 else
16531 ac_check_lib_save_LIBS=$LIBS
16532 LIBS="-lpthread $LIBS"
16533 cat >conftest.$ac_ext <<_ACEOF
16534 /* confdefs.h. */
16535 _ACEOF
16536 cat confdefs.h >>conftest.$ac_ext
16537 cat >>conftest.$ac_ext <<_ACEOF
16538 /* end confdefs.h. */
16540 /* Override any GCC internal prototype to avoid an error.
16541 Use char because int might match the return type of a GCC
16542 builtin and then its argument prototype would still apply. */
16543 #ifdef __cplusplus
16544 extern "C"
16545 #endif
16546 char __pthread_create_system ();
16548 main ()
16550 return __pthread_create_system ();
16552 return 0;
16554 _ACEOF
16555 rm -f conftest.$ac_objext conftest$ac_exeext
16556 if { (ac_try="$ac_link"
16557 case "(($ac_try" in
16558 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16559 *) ac_try_echo=$ac_try;;
16560 esac
16561 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16562 (eval "$ac_link") 2>conftest.er1
16563 ac_status=$?
16564 grep -v '^ *+' conftest.er1 >conftest.err
16565 rm -f conftest.er1
16566 cat conftest.err >&5
16567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16568 (exit $ac_status); } && {
16569 test -z "$ac_c_werror_flag" ||
16570 test ! -s conftest.err
16571 } && test -s conftest$ac_exeext &&
16572 $as_test_x conftest$ac_exeext; then
16573 ac_cv_lib_pthread___pthread_create_system=yes
16574 else
16575 echo "$as_me: failed program was:" >&5
16576 sed 's/^/| /' conftest.$ac_ext >&5
16578 ac_cv_lib_pthread___pthread_create_system=no
16581 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16582 conftest$ac_exeext conftest.$ac_ext
16583 LIBS=$ac_check_lib_save_LIBS
16585 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread___pthread_create_system" >&5
16586 echo "${ECHO_T}$ac_cv_lib_pthread___pthread_create_system" >&6; }
16587 if test $ac_cv_lib_pthread___pthread_create_system = yes; then
16588 cat >>confdefs.h <<\_ACEOF
16589 #define WITH_THREAD 1
16590 _ACEOF
16592 posix_threads=yes
16593 LIBS="$LIBS -lpthread"
16594 THREADOBJ="Python/thread.o"
16595 else
16597 { echo "$as_me:$LINENO: checking for pthread_create in -lcma" >&5
16598 echo $ECHO_N "checking for pthread_create in -lcma... $ECHO_C" >&6; }
16599 if test "${ac_cv_lib_cma_pthread_create+set}" = set; then
16600 echo $ECHO_N "(cached) $ECHO_C" >&6
16601 else
16602 ac_check_lib_save_LIBS=$LIBS
16603 LIBS="-lcma $LIBS"
16604 cat >conftest.$ac_ext <<_ACEOF
16605 /* confdefs.h. */
16606 _ACEOF
16607 cat confdefs.h >>conftest.$ac_ext
16608 cat >>conftest.$ac_ext <<_ACEOF
16609 /* end confdefs.h. */
16611 /* Override any GCC internal prototype to avoid an error.
16612 Use char because int might match the return type of a GCC
16613 builtin and then its argument prototype would still apply. */
16614 #ifdef __cplusplus
16615 extern "C"
16616 #endif
16617 char pthread_create ();
16619 main ()
16621 return pthread_create ();
16623 return 0;
16625 _ACEOF
16626 rm -f conftest.$ac_objext conftest$ac_exeext
16627 if { (ac_try="$ac_link"
16628 case "(($ac_try" in
16629 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16630 *) ac_try_echo=$ac_try;;
16631 esac
16632 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16633 (eval "$ac_link") 2>conftest.er1
16634 ac_status=$?
16635 grep -v '^ *+' conftest.er1 >conftest.err
16636 rm -f conftest.er1
16637 cat conftest.err >&5
16638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16639 (exit $ac_status); } && {
16640 test -z "$ac_c_werror_flag" ||
16641 test ! -s conftest.err
16642 } && test -s conftest$ac_exeext &&
16643 $as_test_x conftest$ac_exeext; then
16644 ac_cv_lib_cma_pthread_create=yes
16645 else
16646 echo "$as_me: failed program was:" >&5
16647 sed 's/^/| /' conftest.$ac_ext >&5
16649 ac_cv_lib_cma_pthread_create=no
16652 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16653 conftest$ac_exeext conftest.$ac_ext
16654 LIBS=$ac_check_lib_save_LIBS
16656 { echo "$as_me:$LINENO: result: $ac_cv_lib_cma_pthread_create" >&5
16657 echo "${ECHO_T}$ac_cv_lib_cma_pthread_create" >&6; }
16658 if test $ac_cv_lib_cma_pthread_create = yes; then
16659 cat >>confdefs.h <<\_ACEOF
16660 #define WITH_THREAD 1
16661 _ACEOF
16663 posix_threads=yes
16664 LIBS="$LIBS -lcma"
16665 THREADOBJ="Python/thread.o"
16666 else
16668 USE_THREAD_MODULE="#"
16688 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16689 conftest$ac_exeext conftest.$ac_ext
16699 { echo "$as_me:$LINENO: checking for usconfig in -lmpc" >&5
16700 echo $ECHO_N "checking for usconfig in -lmpc... $ECHO_C" >&6; }
16701 if test "${ac_cv_lib_mpc_usconfig+set}" = set; then
16702 echo $ECHO_N "(cached) $ECHO_C" >&6
16703 else
16704 ac_check_lib_save_LIBS=$LIBS
16705 LIBS="-lmpc $LIBS"
16706 cat >conftest.$ac_ext <<_ACEOF
16707 /* confdefs.h. */
16708 _ACEOF
16709 cat confdefs.h >>conftest.$ac_ext
16710 cat >>conftest.$ac_ext <<_ACEOF
16711 /* end confdefs.h. */
16713 /* Override any GCC internal prototype to avoid an error.
16714 Use char because int might match the return type of a GCC
16715 builtin and then its argument prototype would still apply. */
16716 #ifdef __cplusplus
16717 extern "C"
16718 #endif
16719 char usconfig ();
16721 main ()
16723 return usconfig ();
16725 return 0;
16727 _ACEOF
16728 rm -f conftest.$ac_objext conftest$ac_exeext
16729 if { (ac_try="$ac_link"
16730 case "(($ac_try" in
16731 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16732 *) ac_try_echo=$ac_try;;
16733 esac
16734 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16735 (eval "$ac_link") 2>conftest.er1
16736 ac_status=$?
16737 grep -v '^ *+' conftest.er1 >conftest.err
16738 rm -f conftest.er1
16739 cat conftest.err >&5
16740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16741 (exit $ac_status); } && {
16742 test -z "$ac_c_werror_flag" ||
16743 test ! -s conftest.err
16744 } && test -s conftest$ac_exeext &&
16745 $as_test_x conftest$ac_exeext; then
16746 ac_cv_lib_mpc_usconfig=yes
16747 else
16748 echo "$as_me: failed program was:" >&5
16749 sed 's/^/| /' conftest.$ac_ext >&5
16751 ac_cv_lib_mpc_usconfig=no
16754 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16755 conftest$ac_exeext conftest.$ac_ext
16756 LIBS=$ac_check_lib_save_LIBS
16758 { echo "$as_me:$LINENO: result: $ac_cv_lib_mpc_usconfig" >&5
16759 echo "${ECHO_T}$ac_cv_lib_mpc_usconfig" >&6; }
16760 if test $ac_cv_lib_mpc_usconfig = yes; then
16761 cat >>confdefs.h <<\_ACEOF
16762 #define WITH_THREAD 1
16763 _ACEOF
16765 LIBS="$LIBS -lmpc"
16766 THREADOBJ="Python/thread.o"
16767 USE_THREAD_MODULE=""
16771 if test "$posix_threads" != "yes"; then
16772 { echo "$as_me:$LINENO: checking for thr_create in -lthread" >&5
16773 echo $ECHO_N "checking for thr_create in -lthread... $ECHO_C" >&6; }
16774 if test "${ac_cv_lib_thread_thr_create+set}" = set; then
16775 echo $ECHO_N "(cached) $ECHO_C" >&6
16776 else
16777 ac_check_lib_save_LIBS=$LIBS
16778 LIBS="-lthread $LIBS"
16779 cat >conftest.$ac_ext <<_ACEOF
16780 /* confdefs.h. */
16781 _ACEOF
16782 cat confdefs.h >>conftest.$ac_ext
16783 cat >>conftest.$ac_ext <<_ACEOF
16784 /* end confdefs.h. */
16786 /* Override any GCC internal prototype to avoid an error.
16787 Use char because int might match the return type of a GCC
16788 builtin and then its argument prototype would still apply. */
16789 #ifdef __cplusplus
16790 extern "C"
16791 #endif
16792 char thr_create ();
16794 main ()
16796 return thr_create ();
16798 return 0;
16800 _ACEOF
16801 rm -f conftest.$ac_objext conftest$ac_exeext
16802 if { (ac_try="$ac_link"
16803 case "(($ac_try" in
16804 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16805 *) ac_try_echo=$ac_try;;
16806 esac
16807 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16808 (eval "$ac_link") 2>conftest.er1
16809 ac_status=$?
16810 grep -v '^ *+' conftest.er1 >conftest.err
16811 rm -f conftest.er1
16812 cat conftest.err >&5
16813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16814 (exit $ac_status); } && {
16815 test -z "$ac_c_werror_flag" ||
16816 test ! -s conftest.err
16817 } && test -s conftest$ac_exeext &&
16818 $as_test_x conftest$ac_exeext; then
16819 ac_cv_lib_thread_thr_create=yes
16820 else
16821 echo "$as_me: failed program was:" >&5
16822 sed 's/^/| /' conftest.$ac_ext >&5
16824 ac_cv_lib_thread_thr_create=no
16827 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16828 conftest$ac_exeext conftest.$ac_ext
16829 LIBS=$ac_check_lib_save_LIBS
16831 { echo "$as_me:$LINENO: result: $ac_cv_lib_thread_thr_create" >&5
16832 echo "${ECHO_T}$ac_cv_lib_thread_thr_create" >&6; }
16833 if test $ac_cv_lib_thread_thr_create = yes; then
16834 cat >>confdefs.h <<\_ACEOF
16835 #define WITH_THREAD 1
16836 _ACEOF
16838 LIBS="$LIBS -lthread"
16839 THREADOBJ="Python/thread.o"
16840 USE_THREAD_MODULE=""
16845 if test "$USE_THREAD_MODULE" != "#"
16846 then
16847 # If the above checks didn't disable threads, (at least) OSF1
16848 # needs this '-threads' argument during linking.
16849 case $ac_sys_system in
16850 OSF1) LDLAST=-threads;;
16851 esac
16855 if test "$posix_threads" = "yes"; then
16856 if test "$unistd_defines_pthreads" = "no"; then
16858 cat >>confdefs.h <<\_ACEOF
16859 #define _POSIX_THREADS 1
16860 _ACEOF
16864 # Bug 662787: Using semaphores causes unexplicable hangs on Solaris 8.
16865 case $ac_sys_system/$ac_sys_release in
16866 SunOS/5.6)
16867 cat >>confdefs.h <<\_ACEOF
16868 #define HAVE_PTHREAD_DESTRUCTOR 1
16869 _ACEOF
16872 SunOS/5.8)
16873 cat >>confdefs.h <<\_ACEOF
16874 #define HAVE_BROKEN_POSIX_SEMAPHORES 1
16875 _ACEOF
16878 AIX/5)
16879 cat >>confdefs.h <<\_ACEOF
16880 #define HAVE_BROKEN_POSIX_SEMAPHORES 1
16881 _ACEOF
16884 esac
16886 { echo "$as_me:$LINENO: checking if PTHREAD_SCOPE_SYSTEM is supported" >&5
16887 echo $ECHO_N "checking if PTHREAD_SCOPE_SYSTEM is supported... $ECHO_C" >&6; }
16888 if test "${ac_cv_pthread_system_supported+set}" = set; then
16889 echo $ECHO_N "(cached) $ECHO_C" >&6
16890 else
16891 if test "$cross_compiling" = yes; then
16892 ac_cv_pthread_system_supported=no
16893 else
16894 cat >conftest.$ac_ext <<_ACEOF
16895 /* confdefs.h. */
16896 _ACEOF
16897 cat confdefs.h >>conftest.$ac_ext
16898 cat >>conftest.$ac_ext <<_ACEOF
16899 /* end confdefs.h. */
16900 #include <pthread.h>
16901 void *foo(void *parm) {
16902 return NULL;
16904 main() {
16905 pthread_attr_t attr;
16906 pthread_t id;
16907 if (pthread_attr_init(&attr)) exit(-1);
16908 if (pthread_attr_setscope(&attr, PTHREAD_SCOPE_SYSTEM)) exit(-1);
16909 if (pthread_create(&id, &attr, foo, NULL)) exit(-1);
16910 exit(0);
16912 _ACEOF
16913 rm -f conftest$ac_exeext
16914 if { (ac_try="$ac_link"
16915 case "(($ac_try" in
16916 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16917 *) ac_try_echo=$ac_try;;
16918 esac
16919 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16920 (eval "$ac_link") 2>&5
16921 ac_status=$?
16922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16923 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16924 { (case "(($ac_try" in
16925 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16926 *) ac_try_echo=$ac_try;;
16927 esac
16928 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16929 (eval "$ac_try") 2>&5
16930 ac_status=$?
16931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16932 (exit $ac_status); }; }; then
16933 ac_cv_pthread_system_supported=yes
16934 else
16935 echo "$as_me: program exited with status $ac_status" >&5
16936 echo "$as_me: failed program was:" >&5
16937 sed 's/^/| /' conftest.$ac_ext >&5
16939 ( exit $ac_status )
16940 ac_cv_pthread_system_supported=no
16942 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16949 { echo "$as_me:$LINENO: result: $ac_cv_pthread_system_supported" >&5
16950 echo "${ECHO_T}$ac_cv_pthread_system_supported" >&6; }
16951 if test "$ac_cv_pthread_system_supported" = "yes"; then
16953 cat >>confdefs.h <<\_ACEOF
16954 #define PTHREAD_SYSTEM_SCHED_SUPPORTED 1
16955 _ACEOF
16959 for ac_func in pthread_sigmask
16961 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16962 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16963 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16964 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16965 echo $ECHO_N "(cached) $ECHO_C" >&6
16966 else
16967 cat >conftest.$ac_ext <<_ACEOF
16968 /* confdefs.h. */
16969 _ACEOF
16970 cat confdefs.h >>conftest.$ac_ext
16971 cat >>conftest.$ac_ext <<_ACEOF
16972 /* end confdefs.h. */
16973 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16974 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16975 #define $ac_func innocuous_$ac_func
16977 /* System header to define __stub macros and hopefully few prototypes,
16978 which can conflict with char $ac_func (); below.
16979 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16980 <limits.h> exists even on freestanding compilers. */
16982 #ifdef __STDC__
16983 # include <limits.h>
16984 #else
16985 # include <assert.h>
16986 #endif
16988 #undef $ac_func
16990 /* Override any GCC internal prototype to avoid an error.
16991 Use char because int might match the return type of a GCC
16992 builtin and then its argument prototype would still apply. */
16993 #ifdef __cplusplus
16994 extern "C"
16995 #endif
16996 char $ac_func ();
16997 /* The GNU C library defines this for functions which it implements
16998 to always fail with ENOSYS. Some functions are actually named
16999 something starting with __ and the normal name is an alias. */
17000 #if defined __stub_$ac_func || defined __stub___$ac_func
17001 choke me
17002 #endif
17005 main ()
17007 return $ac_func ();
17009 return 0;
17011 _ACEOF
17012 rm -f conftest.$ac_objext conftest$ac_exeext
17013 if { (ac_try="$ac_link"
17014 case "(($ac_try" in
17015 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17016 *) ac_try_echo=$ac_try;;
17017 esac
17018 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17019 (eval "$ac_link") 2>conftest.er1
17020 ac_status=$?
17021 grep -v '^ *+' conftest.er1 >conftest.err
17022 rm -f conftest.er1
17023 cat conftest.err >&5
17024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17025 (exit $ac_status); } && {
17026 test -z "$ac_c_werror_flag" ||
17027 test ! -s conftest.err
17028 } && test -s conftest$ac_exeext &&
17029 $as_test_x conftest$ac_exeext; then
17030 eval "$as_ac_var=yes"
17031 else
17032 echo "$as_me: failed program was:" >&5
17033 sed 's/^/| /' conftest.$ac_ext >&5
17035 eval "$as_ac_var=no"
17038 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17039 conftest$ac_exeext conftest.$ac_ext
17041 ac_res=`eval echo '${'$as_ac_var'}'`
17042 { echo "$as_me:$LINENO: result: $ac_res" >&5
17043 echo "${ECHO_T}$ac_res" >&6; }
17044 if test `eval echo '${'$as_ac_var'}'` = yes; then
17045 cat >>confdefs.h <<_ACEOF
17046 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17047 _ACEOF
17048 case $ac_sys_system in
17049 CYGWIN*)
17051 cat >>confdefs.h <<\_ACEOF
17052 #define HAVE_BROKEN_PTHREAD_SIGMASK 1
17053 _ACEOF
17056 esac
17058 done
17063 # Check for enable-ipv6
17066 { echo "$as_me:$LINENO: checking if --enable-ipv6 is specified" >&5
17067 echo $ECHO_N "checking if --enable-ipv6 is specified... $ECHO_C" >&6; }
17068 # Check whether --enable-ipv6 was given.
17069 if test "${enable_ipv6+set}" = set; then
17070 enableval=$enable_ipv6; case "$enableval" in
17072 { echo "$as_me:$LINENO: result: no" >&5
17073 echo "${ECHO_T}no" >&6; }
17074 ipv6=no
17076 *) { echo "$as_me:$LINENO: result: yes" >&5
17077 echo "${ECHO_T}yes" >&6; }
17078 cat >>confdefs.h <<\_ACEOF
17079 #define ENABLE_IPV6 1
17080 _ACEOF
17082 ipv6=yes
17084 esac
17085 else
17087 if test "$cross_compiling" = yes; then
17088 { echo "$as_me:$LINENO: result: no" >&5
17089 echo "${ECHO_T}no" >&6; }
17090 ipv6=no
17092 else
17093 cat >conftest.$ac_ext <<_ACEOF
17094 /* confdefs.h. */
17095 _ACEOF
17096 cat confdefs.h >>conftest.$ac_ext
17097 cat >>conftest.$ac_ext <<_ACEOF
17098 /* end confdefs.h. */
17099 /* AF_INET6 available check */
17100 #include <sys/types.h>
17101 #include <sys/socket.h>
17102 main()
17104 if (socket(AF_INET6, SOCK_STREAM, 0) < 0)
17105 exit(1);
17106 else
17107 exit(0);
17110 _ACEOF
17111 rm -f conftest$ac_exeext
17112 if { (ac_try="$ac_link"
17113 case "(($ac_try" in
17114 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17115 *) ac_try_echo=$ac_try;;
17116 esac
17117 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17118 (eval "$ac_link") 2>&5
17119 ac_status=$?
17120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17121 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17122 { (case "(($ac_try" in
17123 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17124 *) ac_try_echo=$ac_try;;
17125 esac
17126 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17127 (eval "$ac_try") 2>&5
17128 ac_status=$?
17129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17130 (exit $ac_status); }; }; then
17131 { echo "$as_me:$LINENO: result: yes" >&5
17132 echo "${ECHO_T}yes" >&6; }
17133 ipv6=yes
17134 else
17135 echo "$as_me: program exited with status $ac_status" >&5
17136 echo "$as_me: failed program was:" >&5
17137 sed 's/^/| /' conftest.$ac_ext >&5
17139 ( exit $ac_status )
17140 { echo "$as_me:$LINENO: result: no" >&5
17141 echo "${ECHO_T}no" >&6; }
17142 ipv6=no
17144 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17149 if test "$ipv6" = "yes"; then
17150 { echo "$as_me:$LINENO: checking if RFC2553 API is available" >&5
17151 echo $ECHO_N "checking if RFC2553 API is available... $ECHO_C" >&6; }
17152 cat >conftest.$ac_ext <<_ACEOF
17153 /* confdefs.h. */
17154 _ACEOF
17155 cat confdefs.h >>conftest.$ac_ext
17156 cat >>conftest.$ac_ext <<_ACEOF
17157 /* end confdefs.h. */
17158 #include <sys/types.h>
17159 #include <netinet/in.h>
17161 main ()
17163 struct sockaddr_in6 x;
17164 x.sin6_scope_id;
17166 return 0;
17168 _ACEOF
17169 rm -f conftest.$ac_objext
17170 if { (ac_try="$ac_compile"
17171 case "(($ac_try" in
17172 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17173 *) ac_try_echo=$ac_try;;
17174 esac
17175 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17176 (eval "$ac_compile") 2>conftest.er1
17177 ac_status=$?
17178 grep -v '^ *+' conftest.er1 >conftest.err
17179 rm -f conftest.er1
17180 cat conftest.err >&5
17181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17182 (exit $ac_status); } && {
17183 test -z "$ac_c_werror_flag" ||
17184 test ! -s conftest.err
17185 } && test -s conftest.$ac_objext; then
17186 { echo "$as_me:$LINENO: result: yes" >&5
17187 echo "${ECHO_T}yes" >&6; }
17188 ipv6=yes
17189 else
17190 echo "$as_me: failed program was:" >&5
17191 sed 's/^/| /' conftest.$ac_ext >&5
17193 { echo "$as_me:$LINENO: result: no" >&5
17194 echo "${ECHO_T}no" >&6; }
17195 ipv6=no
17198 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17201 if test "$ipv6" = "yes"; then
17202 cat >>confdefs.h <<\_ACEOF
17203 #define ENABLE_IPV6 1
17204 _ACEOF
17211 ipv6type=unknown
17212 ipv6lib=none
17213 ipv6trylibc=no
17215 if test "$ipv6" = "yes"; then
17216 { echo "$as_me:$LINENO: checking ipv6 stack type" >&5
17217 echo $ECHO_N "checking ipv6 stack type... $ECHO_C" >&6; }
17218 for i in inria kame linux-glibc linux-inet6 solaris toshiba v6d zeta;
17220 case $i in
17221 inria)
17222 cat >conftest.$ac_ext <<_ACEOF
17223 /* confdefs.h. */
17224 _ACEOF
17225 cat confdefs.h >>conftest.$ac_ext
17226 cat >>conftest.$ac_ext <<_ACEOF
17227 /* end confdefs.h. */
17229 #include <netinet/in.h>
17230 #ifdef IPV6_INRIA_VERSION
17232 #endif
17233 _ACEOF
17234 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17235 $EGREP "yes" >/dev/null 2>&1; then
17236 ipv6type=$i
17238 rm -f conftest*
17241 kame)
17242 cat >conftest.$ac_ext <<_ACEOF
17243 /* confdefs.h. */
17244 _ACEOF
17245 cat confdefs.h >>conftest.$ac_ext
17246 cat >>conftest.$ac_ext <<_ACEOF
17247 /* end confdefs.h. */
17249 #include <netinet/in.h>
17250 #ifdef __KAME__
17252 #endif
17253 _ACEOF
17254 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17255 $EGREP "yes" >/dev/null 2>&1; then
17256 ipv6type=$i;
17257 ipv6lib=inet6
17258 ipv6libdir=/usr/local/v6/lib
17259 ipv6trylibc=yes
17261 rm -f conftest*
17264 linux-glibc)
17265 cat >conftest.$ac_ext <<_ACEOF
17266 /* confdefs.h. */
17267 _ACEOF
17268 cat confdefs.h >>conftest.$ac_ext
17269 cat >>conftest.$ac_ext <<_ACEOF
17270 /* end confdefs.h. */
17272 #include <features.h>
17273 #if defined(__GLIBC__) && ((__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2))
17275 #endif
17276 _ACEOF
17277 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17278 $EGREP "yes" >/dev/null 2>&1; then
17279 ipv6type=$i;
17280 ipv6trylibc=yes
17282 rm -f conftest*
17285 linux-inet6)
17286 if test -d /usr/inet6; then
17287 ipv6type=$i
17288 ipv6lib=inet6
17289 ipv6libdir=/usr/inet6/lib
17290 BASECFLAGS="-I/usr/inet6/include $BASECFLAGS"
17293 solaris)
17294 if test -f /etc/netconfig; then
17295 if /usr/xpg4/bin/grep -q tcp6 /etc/netconfig; then
17296 ipv6type=$i
17297 ipv6trylibc=yes
17301 toshiba)
17302 cat >conftest.$ac_ext <<_ACEOF
17303 /* confdefs.h. */
17304 _ACEOF
17305 cat confdefs.h >>conftest.$ac_ext
17306 cat >>conftest.$ac_ext <<_ACEOF
17307 /* end confdefs.h. */
17309 #include <sys/param.h>
17310 #ifdef _TOSHIBA_INET6
17312 #endif
17313 _ACEOF
17314 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17315 $EGREP "yes" >/dev/null 2>&1; then
17316 ipv6type=$i;
17317 ipv6lib=inet6;
17318 ipv6libdir=/usr/local/v6/lib
17320 rm -f conftest*
17323 v6d)
17324 cat >conftest.$ac_ext <<_ACEOF
17325 /* confdefs.h. */
17326 _ACEOF
17327 cat confdefs.h >>conftest.$ac_ext
17328 cat >>conftest.$ac_ext <<_ACEOF
17329 /* end confdefs.h. */
17331 #include </usr/local/v6/include/sys/v6config.h>
17332 #ifdef __V6D__
17334 #endif
17335 _ACEOF
17336 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17337 $EGREP "yes" >/dev/null 2>&1; then
17338 ipv6type=$i;
17339 ipv6lib=v6;
17340 ipv6libdir=/usr/local/v6/lib;
17341 BASECFLAGS="-I/usr/local/v6/include $BASECFLAGS"
17343 rm -f conftest*
17346 zeta)
17347 cat >conftest.$ac_ext <<_ACEOF
17348 /* confdefs.h. */
17349 _ACEOF
17350 cat confdefs.h >>conftest.$ac_ext
17351 cat >>conftest.$ac_ext <<_ACEOF
17352 /* end confdefs.h. */
17354 #include <sys/param.h>
17355 #ifdef _ZETA_MINAMI_INET6
17357 #endif
17358 _ACEOF
17359 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17360 $EGREP "yes" >/dev/null 2>&1; then
17361 ipv6type=$i;
17362 ipv6lib=inet6;
17363 ipv6libdir=/usr/local/v6/lib
17365 rm -f conftest*
17368 esac
17369 if test "$ipv6type" != "unknown"; then
17370 break
17372 done
17373 { echo "$as_me:$LINENO: result: $ipv6type" >&5
17374 echo "${ECHO_T}$ipv6type" >&6; }
17377 if test "$ipv6" = "yes" -a "$ipv6lib" != "none"; then
17378 if test -d $ipv6libdir -a -f $ipv6libdir/lib$ipv6lib.a; then
17379 LIBS="-L$ipv6libdir -l$ipv6lib $LIBS"
17380 echo "using lib$ipv6lib"
17381 else
17382 if test $ipv6trylibc = "yes"; then
17383 echo "using libc"
17384 else
17385 echo 'Fatal: no $ipv6lib library found. cannot continue.'
17386 echo "You need to fetch lib$ipv6lib.a from appropriate"
17387 echo 'ipv6 kit and compile beforehand.'
17388 exit 1
17393 { echo "$as_me:$LINENO: checking for OSX 10.5 SDK or later" >&5
17394 echo $ECHO_N "checking for OSX 10.5 SDK or later... $ECHO_C" >&6; }
17395 cat >conftest.$ac_ext <<_ACEOF
17396 /* confdefs.h. */
17397 _ACEOF
17398 cat confdefs.h >>conftest.$ac_ext
17399 cat >>conftest.$ac_ext <<_ACEOF
17400 /* end confdefs.h. */
17401 #include <Carbon/Carbon.h>
17403 main ()
17405 FSIORefNum fRef = 0
17407 return 0;
17409 _ACEOF
17410 rm -f conftest.$ac_objext
17411 if { (ac_try="$ac_compile"
17412 case "(($ac_try" in
17413 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17414 *) ac_try_echo=$ac_try;;
17415 esac
17416 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17417 (eval "$ac_compile") 2>conftest.er1
17418 ac_status=$?
17419 grep -v '^ *+' conftest.er1 >conftest.err
17420 rm -f conftest.er1
17421 cat conftest.err >&5
17422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17423 (exit $ac_status); } && {
17424 test -z "$ac_c_werror_flag" ||
17425 test ! -s conftest.err
17426 } && test -s conftest.$ac_objext; then
17428 cat >>confdefs.h <<\_ACEOF
17429 #define HAVE_OSX105_SDK 1
17430 _ACEOF
17432 { echo "$as_me:$LINENO: result: yes" >&5
17433 echo "${ECHO_T}yes" >&6; }
17434 else
17435 echo "$as_me: failed program was:" >&5
17436 sed 's/^/| /' conftest.$ac_ext >&5
17438 { echo "$as_me:$LINENO: result: no" >&5
17439 echo "${ECHO_T}no" >&6; }
17443 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17445 # Check for --with-doc-strings
17446 { echo "$as_me:$LINENO: checking for --with-doc-strings" >&5
17447 echo $ECHO_N "checking for --with-doc-strings... $ECHO_C" >&6; }
17449 # Check whether --with-doc-strings was given.
17450 if test "${with_doc_strings+set}" = set; then
17451 withval=$with_doc_strings;
17455 if test -z "$with_doc_strings"
17456 then with_doc_strings="yes"
17458 if test "$with_doc_strings" != "no"
17459 then
17461 cat >>confdefs.h <<\_ACEOF
17462 #define WITH_DOC_STRINGS 1
17463 _ACEOF
17466 { echo "$as_me:$LINENO: result: $with_doc_strings" >&5
17467 echo "${ECHO_T}$with_doc_strings" >&6; }
17469 # Check for Python-specific malloc support
17470 { echo "$as_me:$LINENO: checking for --with-tsc" >&5
17471 echo $ECHO_N "checking for --with-tsc... $ECHO_C" >&6; }
17473 # Check whether --with-tsc was given.
17474 if test "${with_tsc+set}" = set; then
17475 withval=$with_tsc;
17476 if test "$withval" != no
17477 then
17479 cat >>confdefs.h <<\_ACEOF
17480 #define WITH_TSC 1
17481 _ACEOF
17483 { echo "$as_me:$LINENO: result: yes" >&5
17484 echo "${ECHO_T}yes" >&6; }
17485 else { echo "$as_me:$LINENO: result: no" >&5
17486 echo "${ECHO_T}no" >&6; }
17488 else
17489 { echo "$as_me:$LINENO: result: no" >&5
17490 echo "${ECHO_T}no" >&6; }
17494 # Check for Python-specific malloc support
17495 { echo "$as_me:$LINENO: checking for --with-pymalloc" >&5
17496 echo $ECHO_N "checking for --with-pymalloc... $ECHO_C" >&6; }
17498 # Check whether --with-pymalloc was given.
17499 if test "${with_pymalloc+set}" = set; then
17500 withval=$with_pymalloc;
17504 if test -z "$with_pymalloc"
17505 then with_pymalloc="yes"
17507 if test "$with_pymalloc" != "no"
17508 then
17510 cat >>confdefs.h <<\_ACEOF
17511 #define WITH_PYMALLOC 1
17512 _ACEOF
17515 { echo "$as_me:$LINENO: result: $with_pymalloc" >&5
17516 echo "${ECHO_T}$with_pymalloc" >&6; }
17518 # Check for --with-wctype-functions
17519 { echo "$as_me:$LINENO: checking for --with-wctype-functions" >&5
17520 echo $ECHO_N "checking for --with-wctype-functions... $ECHO_C" >&6; }
17522 # Check whether --with-wctype-functions was given.
17523 if test "${with_wctype_functions+set}" = set; then
17524 withval=$with_wctype_functions;
17525 if test "$withval" != no
17526 then
17528 cat >>confdefs.h <<\_ACEOF
17529 #define WANT_WCTYPE_FUNCTIONS 1
17530 _ACEOF
17532 { echo "$as_me:$LINENO: result: yes" >&5
17533 echo "${ECHO_T}yes" >&6; }
17534 else { echo "$as_me:$LINENO: result: no" >&5
17535 echo "${ECHO_T}no" >&6; }
17537 else
17538 { echo "$as_me:$LINENO: result: no" >&5
17539 echo "${ECHO_T}no" >&6; }
17543 # -I${DLINCLDIR} is added to the compile rule for importdl.o
17545 DLINCLDIR=.
17547 # the dlopen() function means we might want to use dynload_shlib.o. some
17548 # platforms, such as AIX, have dlopen(), but don't want to use it.
17550 for ac_func in dlopen
17552 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17553 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17554 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17555 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17556 echo $ECHO_N "(cached) $ECHO_C" >&6
17557 else
17558 cat >conftest.$ac_ext <<_ACEOF
17559 /* confdefs.h. */
17560 _ACEOF
17561 cat confdefs.h >>conftest.$ac_ext
17562 cat >>conftest.$ac_ext <<_ACEOF
17563 /* end confdefs.h. */
17564 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17565 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17566 #define $ac_func innocuous_$ac_func
17568 /* System header to define __stub macros and hopefully few prototypes,
17569 which can conflict with char $ac_func (); below.
17570 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17571 <limits.h> exists even on freestanding compilers. */
17573 #ifdef __STDC__
17574 # include <limits.h>
17575 #else
17576 # include <assert.h>
17577 #endif
17579 #undef $ac_func
17581 /* Override any GCC internal prototype to avoid an error.
17582 Use char because int might match the return type of a GCC
17583 builtin and then its argument prototype would still apply. */
17584 #ifdef __cplusplus
17585 extern "C"
17586 #endif
17587 char $ac_func ();
17588 /* The GNU C library defines this for functions which it implements
17589 to always fail with ENOSYS. Some functions are actually named
17590 something starting with __ and the normal name is an alias. */
17591 #if defined __stub_$ac_func || defined __stub___$ac_func
17592 choke me
17593 #endif
17596 main ()
17598 return $ac_func ();
17600 return 0;
17602 _ACEOF
17603 rm -f conftest.$ac_objext conftest$ac_exeext
17604 if { (ac_try="$ac_link"
17605 case "(($ac_try" in
17606 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17607 *) ac_try_echo=$ac_try;;
17608 esac
17609 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17610 (eval "$ac_link") 2>conftest.er1
17611 ac_status=$?
17612 grep -v '^ *+' conftest.er1 >conftest.err
17613 rm -f conftest.er1
17614 cat conftest.err >&5
17615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17616 (exit $ac_status); } && {
17617 test -z "$ac_c_werror_flag" ||
17618 test ! -s conftest.err
17619 } && test -s conftest$ac_exeext &&
17620 $as_test_x conftest$ac_exeext; then
17621 eval "$as_ac_var=yes"
17622 else
17623 echo "$as_me: failed program was:" >&5
17624 sed 's/^/| /' conftest.$ac_ext >&5
17626 eval "$as_ac_var=no"
17629 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17630 conftest$ac_exeext conftest.$ac_ext
17632 ac_res=`eval echo '${'$as_ac_var'}'`
17633 { echo "$as_me:$LINENO: result: $ac_res" >&5
17634 echo "${ECHO_T}$ac_res" >&6; }
17635 if test `eval echo '${'$as_ac_var'}'` = yes; then
17636 cat >>confdefs.h <<_ACEOF
17637 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17638 _ACEOF
17641 done
17644 # DYNLOADFILE specifies which dynload_*.o file we will use for dynamic
17645 # loading of modules.
17647 { echo "$as_me:$LINENO: checking DYNLOADFILE" >&5
17648 echo $ECHO_N "checking DYNLOADFILE... $ECHO_C" >&6; }
17649 if test -z "$DYNLOADFILE"
17650 then
17651 case $ac_sys_system/$ac_sys_release in
17652 AIX*) # Use dynload_shlib.c and dlopen() if we have it; otherwise dynload_aix.c
17653 if test "$ac_cv_func_dlopen" = yes
17654 then DYNLOADFILE="dynload_shlib.o"
17655 else DYNLOADFILE="dynload_aix.o"
17658 BeOS*) DYNLOADFILE="dynload_beos.o";;
17659 hp*|HP*) DYNLOADFILE="dynload_hpux.o";;
17660 # Use dynload_next.c only on 10.2 and below, which don't have native dlopen()
17661 Darwin/[0156]\..*) DYNLOADFILE="dynload_next.o";;
17662 atheos*) DYNLOADFILE="dynload_atheos.o";;
17664 # use dynload_shlib.c and dlopen() if we have it; otherwise stub
17665 # out any dynamic loading
17666 if test "$ac_cv_func_dlopen" = yes
17667 then DYNLOADFILE="dynload_shlib.o"
17668 else DYNLOADFILE="dynload_stub.o"
17671 esac
17673 { echo "$as_me:$LINENO: result: $DYNLOADFILE" >&5
17674 echo "${ECHO_T}$DYNLOADFILE" >&6; }
17675 if test "$DYNLOADFILE" != "dynload_stub.o"
17676 then
17678 cat >>confdefs.h <<\_ACEOF
17679 #define HAVE_DYNAMIC_LOADING 1
17680 _ACEOF
17684 # MACHDEP_OBJS can be set to platform-specific object files needed by Python
17687 { echo "$as_me:$LINENO: checking MACHDEP_OBJS" >&5
17688 echo $ECHO_N "checking MACHDEP_OBJS... $ECHO_C" >&6; }
17689 if test -z "$MACHDEP_OBJS"
17690 then
17691 MACHDEP_OBJS=$extra_machdep_objs
17692 else
17693 MACHDEP_OBJS="$MACHDEP_OBJS $extra_machdep_objs"
17695 { echo "$as_me:$LINENO: result: MACHDEP_OBJS" >&5
17696 echo "${ECHO_T}MACHDEP_OBJS" >&6; }
17698 # checks for library functions
17784 for ac_func in alarm setitimer getitimer bind_textdomain_codeset chown \
17785 clock confstr ctermid execv fchmod fchown fork fpathconf ftime ftruncate \
17786 gai_strerror getgroups getlogin getloadavg getpeername getpgid getpid \
17787 getpriority getpwent getspnam getspent getsid getwd \
17788 kill killpg lchmod lchown lstat mkfifo mknod mktime \
17789 mremap nice pathconf pause plock poll pthread_init \
17790 putenv readlink realpath \
17791 select sem_open sem_timedwait sem_getvalue sem_unlink setegid seteuid \
17792 setgid \
17793 setlocale setregid setreuid setsid setpgid setpgrp setuid setvbuf snprintf \
17794 sigaction siginterrupt sigrelse strftime \
17795 sysconf tcgetpgrp tcsetpgrp tempnam timegm times tmpfile tmpnam tmpnam_r \
17796 truncate uname unsetenv utimes waitpid wait3 wait4 wcscoll _getpty
17798 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17799 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17800 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17801 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17802 echo $ECHO_N "(cached) $ECHO_C" >&6
17803 else
17804 cat >conftest.$ac_ext <<_ACEOF
17805 /* confdefs.h. */
17806 _ACEOF
17807 cat confdefs.h >>conftest.$ac_ext
17808 cat >>conftest.$ac_ext <<_ACEOF
17809 /* end confdefs.h. */
17810 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17811 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17812 #define $ac_func innocuous_$ac_func
17814 /* System header to define __stub macros and hopefully few prototypes,
17815 which can conflict with char $ac_func (); below.
17816 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17817 <limits.h> exists even on freestanding compilers. */
17819 #ifdef __STDC__
17820 # include <limits.h>
17821 #else
17822 # include <assert.h>
17823 #endif
17825 #undef $ac_func
17827 /* Override any GCC internal prototype to avoid an error.
17828 Use char because int might match the return type of a GCC
17829 builtin and then its argument prototype would still apply. */
17830 #ifdef __cplusplus
17831 extern "C"
17832 #endif
17833 char $ac_func ();
17834 /* The GNU C library defines this for functions which it implements
17835 to always fail with ENOSYS. Some functions are actually named
17836 something starting with __ and the normal name is an alias. */
17837 #if defined __stub_$ac_func || defined __stub___$ac_func
17838 choke me
17839 #endif
17842 main ()
17844 return $ac_func ();
17846 return 0;
17848 _ACEOF
17849 rm -f conftest.$ac_objext conftest$ac_exeext
17850 if { (ac_try="$ac_link"
17851 case "(($ac_try" in
17852 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17853 *) ac_try_echo=$ac_try;;
17854 esac
17855 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17856 (eval "$ac_link") 2>conftest.er1
17857 ac_status=$?
17858 grep -v '^ *+' conftest.er1 >conftest.err
17859 rm -f conftest.er1
17860 cat conftest.err >&5
17861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17862 (exit $ac_status); } && {
17863 test -z "$ac_c_werror_flag" ||
17864 test ! -s conftest.err
17865 } && test -s conftest$ac_exeext &&
17866 $as_test_x conftest$ac_exeext; then
17867 eval "$as_ac_var=yes"
17868 else
17869 echo "$as_me: failed program was:" >&5
17870 sed 's/^/| /' conftest.$ac_ext >&5
17872 eval "$as_ac_var=no"
17875 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17876 conftest$ac_exeext conftest.$ac_ext
17878 ac_res=`eval echo '${'$as_ac_var'}'`
17879 { echo "$as_me:$LINENO: result: $ac_res" >&5
17880 echo "${ECHO_T}$ac_res" >&6; }
17881 if test `eval echo '${'$as_ac_var'}'` = yes; then
17882 cat >>confdefs.h <<_ACEOF
17883 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17884 _ACEOF
17887 done
17890 # For some functions, having a definition is not sufficient, since
17891 # we want to take their address.
17892 { echo "$as_me:$LINENO: checking for chroot" >&5
17893 echo $ECHO_N "checking for chroot... $ECHO_C" >&6; }
17894 cat >conftest.$ac_ext <<_ACEOF
17895 /* confdefs.h. */
17896 _ACEOF
17897 cat confdefs.h >>conftest.$ac_ext
17898 cat >>conftest.$ac_ext <<_ACEOF
17899 /* end confdefs.h. */
17900 #include <unistd.h>
17902 main ()
17904 void *x=chroot
17906 return 0;
17908 _ACEOF
17909 rm -f conftest.$ac_objext
17910 if { (ac_try="$ac_compile"
17911 case "(($ac_try" in
17912 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17913 *) ac_try_echo=$ac_try;;
17914 esac
17915 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17916 (eval "$ac_compile") 2>conftest.er1
17917 ac_status=$?
17918 grep -v '^ *+' conftest.er1 >conftest.err
17919 rm -f conftest.er1
17920 cat conftest.err >&5
17921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17922 (exit $ac_status); } && {
17923 test -z "$ac_c_werror_flag" ||
17924 test ! -s conftest.err
17925 } && test -s conftest.$ac_objext; then
17927 cat >>confdefs.h <<\_ACEOF
17928 #define HAVE_CHROOT 1
17929 _ACEOF
17931 { echo "$as_me:$LINENO: result: yes" >&5
17932 echo "${ECHO_T}yes" >&6; }
17933 else
17934 echo "$as_me: failed program was:" >&5
17935 sed 's/^/| /' conftest.$ac_ext >&5
17937 { echo "$as_me:$LINENO: result: no" >&5
17938 echo "${ECHO_T}no" >&6; }
17942 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17943 { echo "$as_me:$LINENO: checking for link" >&5
17944 echo $ECHO_N "checking for link... $ECHO_C" >&6; }
17945 cat >conftest.$ac_ext <<_ACEOF
17946 /* confdefs.h. */
17947 _ACEOF
17948 cat confdefs.h >>conftest.$ac_ext
17949 cat >>conftest.$ac_ext <<_ACEOF
17950 /* end confdefs.h. */
17951 #include <unistd.h>
17953 main ()
17955 void *x=link
17957 return 0;
17959 _ACEOF
17960 rm -f conftest.$ac_objext
17961 if { (ac_try="$ac_compile"
17962 case "(($ac_try" in
17963 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17964 *) ac_try_echo=$ac_try;;
17965 esac
17966 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17967 (eval "$ac_compile") 2>conftest.er1
17968 ac_status=$?
17969 grep -v '^ *+' conftest.er1 >conftest.err
17970 rm -f conftest.er1
17971 cat conftest.err >&5
17972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17973 (exit $ac_status); } && {
17974 test -z "$ac_c_werror_flag" ||
17975 test ! -s conftest.err
17976 } && test -s conftest.$ac_objext; then
17978 cat >>confdefs.h <<\_ACEOF
17979 #define HAVE_LINK 1
17980 _ACEOF
17982 { echo "$as_me:$LINENO: result: yes" >&5
17983 echo "${ECHO_T}yes" >&6; }
17984 else
17985 echo "$as_me: failed program was:" >&5
17986 sed 's/^/| /' conftest.$ac_ext >&5
17988 { echo "$as_me:$LINENO: result: no" >&5
17989 echo "${ECHO_T}no" >&6; }
17993 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17994 { echo "$as_me:$LINENO: checking for symlink" >&5
17995 echo $ECHO_N "checking for symlink... $ECHO_C" >&6; }
17996 cat >conftest.$ac_ext <<_ACEOF
17997 /* confdefs.h. */
17998 _ACEOF
17999 cat confdefs.h >>conftest.$ac_ext
18000 cat >>conftest.$ac_ext <<_ACEOF
18001 /* end confdefs.h. */
18002 #include <unistd.h>
18004 main ()
18006 void *x=symlink
18008 return 0;
18010 _ACEOF
18011 rm -f conftest.$ac_objext
18012 if { (ac_try="$ac_compile"
18013 case "(($ac_try" in
18014 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18015 *) ac_try_echo=$ac_try;;
18016 esac
18017 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18018 (eval "$ac_compile") 2>conftest.er1
18019 ac_status=$?
18020 grep -v '^ *+' conftest.er1 >conftest.err
18021 rm -f conftest.er1
18022 cat conftest.err >&5
18023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18024 (exit $ac_status); } && {
18025 test -z "$ac_c_werror_flag" ||
18026 test ! -s conftest.err
18027 } && test -s conftest.$ac_objext; then
18029 cat >>confdefs.h <<\_ACEOF
18030 #define HAVE_SYMLINK 1
18031 _ACEOF
18033 { echo "$as_me:$LINENO: result: yes" >&5
18034 echo "${ECHO_T}yes" >&6; }
18035 else
18036 echo "$as_me: failed program was:" >&5
18037 sed 's/^/| /' conftest.$ac_ext >&5
18039 { echo "$as_me:$LINENO: result: no" >&5
18040 echo "${ECHO_T}no" >&6; }
18044 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18045 { echo "$as_me:$LINENO: checking for fchdir" >&5
18046 echo $ECHO_N "checking for fchdir... $ECHO_C" >&6; }
18047 cat >conftest.$ac_ext <<_ACEOF
18048 /* confdefs.h. */
18049 _ACEOF
18050 cat confdefs.h >>conftest.$ac_ext
18051 cat >>conftest.$ac_ext <<_ACEOF
18052 /* end confdefs.h. */
18053 #include <unistd.h>
18055 main ()
18057 void *x=fchdir
18059 return 0;
18061 _ACEOF
18062 rm -f conftest.$ac_objext
18063 if { (ac_try="$ac_compile"
18064 case "(($ac_try" in
18065 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18066 *) ac_try_echo=$ac_try;;
18067 esac
18068 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18069 (eval "$ac_compile") 2>conftest.er1
18070 ac_status=$?
18071 grep -v '^ *+' conftest.er1 >conftest.err
18072 rm -f conftest.er1
18073 cat conftest.err >&5
18074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18075 (exit $ac_status); } && {
18076 test -z "$ac_c_werror_flag" ||
18077 test ! -s conftest.err
18078 } && test -s conftest.$ac_objext; then
18080 cat >>confdefs.h <<\_ACEOF
18081 #define HAVE_FCHDIR 1
18082 _ACEOF
18084 { echo "$as_me:$LINENO: result: yes" >&5
18085 echo "${ECHO_T}yes" >&6; }
18086 else
18087 echo "$as_me: failed program was:" >&5
18088 sed 's/^/| /' conftest.$ac_ext >&5
18090 { echo "$as_me:$LINENO: result: no" >&5
18091 echo "${ECHO_T}no" >&6; }
18095 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18096 { echo "$as_me:$LINENO: checking for fsync" >&5
18097 echo $ECHO_N "checking for fsync... $ECHO_C" >&6; }
18098 cat >conftest.$ac_ext <<_ACEOF
18099 /* confdefs.h. */
18100 _ACEOF
18101 cat confdefs.h >>conftest.$ac_ext
18102 cat >>conftest.$ac_ext <<_ACEOF
18103 /* end confdefs.h. */
18104 #include <unistd.h>
18106 main ()
18108 void *x=fsync
18110 return 0;
18112 _ACEOF
18113 rm -f conftest.$ac_objext
18114 if { (ac_try="$ac_compile"
18115 case "(($ac_try" in
18116 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18117 *) ac_try_echo=$ac_try;;
18118 esac
18119 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18120 (eval "$ac_compile") 2>conftest.er1
18121 ac_status=$?
18122 grep -v '^ *+' conftest.er1 >conftest.err
18123 rm -f conftest.er1
18124 cat conftest.err >&5
18125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18126 (exit $ac_status); } && {
18127 test -z "$ac_c_werror_flag" ||
18128 test ! -s conftest.err
18129 } && test -s conftest.$ac_objext; then
18131 cat >>confdefs.h <<\_ACEOF
18132 #define HAVE_FSYNC 1
18133 _ACEOF
18135 { echo "$as_me:$LINENO: result: yes" >&5
18136 echo "${ECHO_T}yes" >&6; }
18137 else
18138 echo "$as_me: failed program was:" >&5
18139 sed 's/^/| /' conftest.$ac_ext >&5
18141 { echo "$as_me:$LINENO: result: no" >&5
18142 echo "${ECHO_T}no" >&6; }
18146 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18147 { echo "$as_me:$LINENO: checking for fdatasync" >&5
18148 echo $ECHO_N "checking for fdatasync... $ECHO_C" >&6; }
18149 cat >conftest.$ac_ext <<_ACEOF
18150 /* confdefs.h. */
18151 _ACEOF
18152 cat confdefs.h >>conftest.$ac_ext
18153 cat >>conftest.$ac_ext <<_ACEOF
18154 /* end confdefs.h. */
18155 #include <unistd.h>
18157 main ()
18159 void *x=fdatasync
18161 return 0;
18163 _ACEOF
18164 rm -f conftest.$ac_objext
18165 if { (ac_try="$ac_compile"
18166 case "(($ac_try" in
18167 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18168 *) ac_try_echo=$ac_try;;
18169 esac
18170 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18171 (eval "$ac_compile") 2>conftest.er1
18172 ac_status=$?
18173 grep -v '^ *+' conftest.er1 >conftest.err
18174 rm -f conftest.er1
18175 cat conftest.err >&5
18176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18177 (exit $ac_status); } && {
18178 test -z "$ac_c_werror_flag" ||
18179 test ! -s conftest.err
18180 } && test -s conftest.$ac_objext; then
18182 cat >>confdefs.h <<\_ACEOF
18183 #define HAVE_FDATASYNC 1
18184 _ACEOF
18186 { echo "$as_me:$LINENO: result: yes" >&5
18187 echo "${ECHO_T}yes" >&6; }
18188 else
18189 echo "$as_me: failed program was:" >&5
18190 sed 's/^/| /' conftest.$ac_ext >&5
18192 { echo "$as_me:$LINENO: result: no" >&5
18193 echo "${ECHO_T}no" >&6; }
18197 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18198 { echo "$as_me:$LINENO: checking for epoll" >&5
18199 echo $ECHO_N "checking for epoll... $ECHO_C" >&6; }
18200 cat >conftest.$ac_ext <<_ACEOF
18201 /* confdefs.h. */
18202 _ACEOF
18203 cat confdefs.h >>conftest.$ac_ext
18204 cat >>conftest.$ac_ext <<_ACEOF
18205 /* end confdefs.h. */
18206 #include <sys/epoll.h>
18208 main ()
18210 void *x=epoll_create
18212 return 0;
18214 _ACEOF
18215 rm -f conftest.$ac_objext
18216 if { (ac_try="$ac_compile"
18217 case "(($ac_try" in
18218 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18219 *) ac_try_echo=$ac_try;;
18220 esac
18221 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18222 (eval "$ac_compile") 2>conftest.er1
18223 ac_status=$?
18224 grep -v '^ *+' conftest.er1 >conftest.err
18225 rm -f conftest.er1
18226 cat conftest.err >&5
18227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18228 (exit $ac_status); } && {
18229 test -z "$ac_c_werror_flag" ||
18230 test ! -s conftest.err
18231 } && test -s conftest.$ac_objext; then
18233 cat >>confdefs.h <<\_ACEOF
18234 #define HAVE_EPOLL 1
18235 _ACEOF
18237 { echo "$as_me:$LINENO: result: yes" >&5
18238 echo "${ECHO_T}yes" >&6; }
18239 else
18240 echo "$as_me: failed program was:" >&5
18241 sed 's/^/| /' conftest.$ac_ext >&5
18243 { echo "$as_me:$LINENO: result: no" >&5
18244 echo "${ECHO_T}no" >&6; }
18248 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18249 { echo "$as_me:$LINENO: checking for kqueue" >&5
18250 echo $ECHO_N "checking for kqueue... $ECHO_C" >&6; }
18251 cat >conftest.$ac_ext <<_ACEOF
18252 /* confdefs.h. */
18253 _ACEOF
18254 cat confdefs.h >>conftest.$ac_ext
18255 cat >>conftest.$ac_ext <<_ACEOF
18256 /* end confdefs.h. */
18258 #include <sys/types.h>
18259 #include <sys/event.h>
18262 main ()
18264 int x=kqueue()
18266 return 0;
18268 _ACEOF
18269 rm -f conftest.$ac_objext
18270 if { (ac_try="$ac_compile"
18271 case "(($ac_try" in
18272 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18273 *) ac_try_echo=$ac_try;;
18274 esac
18275 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18276 (eval "$ac_compile") 2>conftest.er1
18277 ac_status=$?
18278 grep -v '^ *+' conftest.er1 >conftest.err
18279 rm -f conftest.er1
18280 cat conftest.err >&5
18281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18282 (exit $ac_status); } && {
18283 test -z "$ac_c_werror_flag" ||
18284 test ! -s conftest.err
18285 } && test -s conftest.$ac_objext; then
18287 cat >>confdefs.h <<\_ACEOF
18288 #define HAVE_KQUEUE 1
18289 _ACEOF
18291 { echo "$as_me:$LINENO: result: yes" >&5
18292 echo "${ECHO_T}yes" >&6; }
18293 else
18294 echo "$as_me: failed program was:" >&5
18295 sed 's/^/| /' conftest.$ac_ext >&5
18297 { echo "$as_me:$LINENO: result: no" >&5
18298 echo "${ECHO_T}no" >&6; }
18302 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18303 # On some systems (eg. FreeBSD 5), we would find a definition of the
18304 # functions ctermid_r, setgroups in the library, but no prototype
18305 # (e.g. because we use _XOPEN_SOURCE). See whether we can take their
18306 # address to avoid compiler warnings and potential miscompilations
18307 # because of the missing prototypes.
18309 { echo "$as_me:$LINENO: checking for ctermid_r" >&5
18310 echo $ECHO_N "checking for ctermid_r... $ECHO_C" >&6; }
18311 cat >conftest.$ac_ext <<_ACEOF
18312 /* confdefs.h. */
18313 _ACEOF
18314 cat confdefs.h >>conftest.$ac_ext
18315 cat >>conftest.$ac_ext <<_ACEOF
18316 /* end confdefs.h. */
18318 #include "confdefs.h"
18319 #include <stdio.h>
18322 main ()
18324 void* p = ctermid_r
18326 return 0;
18328 _ACEOF
18329 rm -f conftest.$ac_objext
18330 if { (ac_try="$ac_compile"
18331 case "(($ac_try" in
18332 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18333 *) ac_try_echo=$ac_try;;
18334 esac
18335 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18336 (eval "$ac_compile") 2>conftest.er1
18337 ac_status=$?
18338 grep -v '^ *+' conftest.er1 >conftest.err
18339 rm -f conftest.er1
18340 cat conftest.err >&5
18341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18342 (exit $ac_status); } && {
18343 test -z "$ac_c_werror_flag" ||
18344 test ! -s conftest.err
18345 } && test -s conftest.$ac_objext; then
18347 cat >>confdefs.h <<\_ACEOF
18348 #define HAVE_CTERMID_R 1
18349 _ACEOF
18351 { echo "$as_me:$LINENO: result: yes" >&5
18352 echo "${ECHO_T}yes" >&6; }
18353 else
18354 echo "$as_me: failed program was:" >&5
18355 sed 's/^/| /' conftest.$ac_ext >&5
18357 { echo "$as_me:$LINENO: result: no" >&5
18358 echo "${ECHO_T}no" >&6; }
18362 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18364 { echo "$as_me:$LINENO: checking for flock" >&5
18365 echo $ECHO_N "checking for flock... $ECHO_C" >&6; }
18366 cat >conftest.$ac_ext <<_ACEOF
18367 /* confdefs.h. */
18368 _ACEOF
18369 cat confdefs.h >>conftest.$ac_ext
18370 cat >>conftest.$ac_ext <<_ACEOF
18371 /* end confdefs.h. */
18373 #include "confdefs.h"
18374 #include <sys/file.h>
18377 main ()
18379 void* p = flock
18381 return 0;
18383 _ACEOF
18384 rm -f conftest.$ac_objext
18385 if { (ac_try="$ac_compile"
18386 case "(($ac_try" in
18387 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18388 *) ac_try_echo=$ac_try;;
18389 esac
18390 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18391 (eval "$ac_compile") 2>conftest.er1
18392 ac_status=$?
18393 grep -v '^ *+' conftest.er1 >conftest.err
18394 rm -f conftest.er1
18395 cat conftest.err >&5
18396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18397 (exit $ac_status); } && {
18398 test -z "$ac_c_werror_flag" ||
18399 test ! -s conftest.err
18400 } && test -s conftest.$ac_objext; then
18402 cat >>confdefs.h <<\_ACEOF
18403 #define HAVE_FLOCK 1
18404 _ACEOF
18406 { echo "$as_me:$LINENO: result: yes" >&5
18407 echo "${ECHO_T}yes" >&6; }
18408 else
18409 echo "$as_me: failed program was:" >&5
18410 sed 's/^/| /' conftest.$ac_ext >&5
18412 { echo "$as_me:$LINENO: result: no" >&5
18413 echo "${ECHO_T}no" >&6; }
18417 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18419 { echo "$as_me:$LINENO: checking for getpagesize" >&5
18420 echo $ECHO_N "checking for getpagesize... $ECHO_C" >&6; }
18421 cat >conftest.$ac_ext <<_ACEOF
18422 /* confdefs.h. */
18423 _ACEOF
18424 cat confdefs.h >>conftest.$ac_ext
18425 cat >>conftest.$ac_ext <<_ACEOF
18426 /* end confdefs.h. */
18428 #include "confdefs.h"
18429 #include <unistd.h>
18432 main ()
18434 void* p = getpagesize
18436 return 0;
18438 _ACEOF
18439 rm -f conftest.$ac_objext
18440 if { (ac_try="$ac_compile"
18441 case "(($ac_try" in
18442 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18443 *) ac_try_echo=$ac_try;;
18444 esac
18445 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18446 (eval "$ac_compile") 2>conftest.er1
18447 ac_status=$?
18448 grep -v '^ *+' conftest.er1 >conftest.err
18449 rm -f conftest.er1
18450 cat conftest.err >&5
18451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18452 (exit $ac_status); } && {
18453 test -z "$ac_c_werror_flag" ||
18454 test ! -s conftest.err
18455 } && test -s conftest.$ac_objext; then
18457 cat >>confdefs.h <<\_ACEOF
18458 #define HAVE_GETPAGESIZE 1
18459 _ACEOF
18461 { echo "$as_me:$LINENO: result: yes" >&5
18462 echo "${ECHO_T}yes" >&6; }
18463 else
18464 echo "$as_me: failed program was:" >&5
18465 sed 's/^/| /' conftest.$ac_ext >&5
18467 { echo "$as_me:$LINENO: result: no" >&5
18468 echo "${ECHO_T}no" >&6; }
18472 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18474 for ac_prog in true
18476 # Extract the first word of "$ac_prog", so it can be a program name with args.
18477 set dummy $ac_prog; ac_word=$2
18478 { echo "$as_me:$LINENO: checking for $ac_word" >&5
18479 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
18480 if test "${ac_cv_prog_TRUE+set}" = set; then
18481 echo $ECHO_N "(cached) $ECHO_C" >&6
18482 else
18483 if test -n "$TRUE"; then
18484 ac_cv_prog_TRUE="$TRUE" # Let the user override the test.
18485 else
18486 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18487 for as_dir in $PATH
18489 IFS=$as_save_IFS
18490 test -z "$as_dir" && as_dir=.
18491 for ac_exec_ext in '' $ac_executable_extensions; do
18492 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18493 ac_cv_prog_TRUE="$ac_prog"
18494 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18495 break 2
18497 done
18498 done
18499 IFS=$as_save_IFS
18503 TRUE=$ac_cv_prog_TRUE
18504 if test -n "$TRUE"; then
18505 { echo "$as_me:$LINENO: result: $TRUE" >&5
18506 echo "${ECHO_T}$TRUE" >&6; }
18507 else
18508 { echo "$as_me:$LINENO: result: no" >&5
18509 echo "${ECHO_T}no" >&6; }
18513 test -n "$TRUE" && break
18514 done
18515 test -n "$TRUE" || TRUE="/bin/true"
18518 { echo "$as_me:$LINENO: checking for inet_aton in -lc" >&5
18519 echo $ECHO_N "checking for inet_aton in -lc... $ECHO_C" >&6; }
18520 if test "${ac_cv_lib_c_inet_aton+set}" = set; then
18521 echo $ECHO_N "(cached) $ECHO_C" >&6
18522 else
18523 ac_check_lib_save_LIBS=$LIBS
18524 LIBS="-lc $LIBS"
18525 cat >conftest.$ac_ext <<_ACEOF
18526 /* confdefs.h. */
18527 _ACEOF
18528 cat confdefs.h >>conftest.$ac_ext
18529 cat >>conftest.$ac_ext <<_ACEOF
18530 /* end confdefs.h. */
18532 /* Override any GCC internal prototype to avoid an error.
18533 Use char because int might match the return type of a GCC
18534 builtin and then its argument prototype would still apply. */
18535 #ifdef __cplusplus
18536 extern "C"
18537 #endif
18538 char inet_aton ();
18540 main ()
18542 return inet_aton ();
18544 return 0;
18546 _ACEOF
18547 rm -f conftest.$ac_objext conftest$ac_exeext
18548 if { (ac_try="$ac_link"
18549 case "(($ac_try" in
18550 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18551 *) ac_try_echo=$ac_try;;
18552 esac
18553 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18554 (eval "$ac_link") 2>conftest.er1
18555 ac_status=$?
18556 grep -v '^ *+' conftest.er1 >conftest.err
18557 rm -f conftest.er1
18558 cat conftest.err >&5
18559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18560 (exit $ac_status); } && {
18561 test -z "$ac_c_werror_flag" ||
18562 test ! -s conftest.err
18563 } && test -s conftest$ac_exeext &&
18564 $as_test_x conftest$ac_exeext; then
18565 ac_cv_lib_c_inet_aton=yes
18566 else
18567 echo "$as_me: failed program was:" >&5
18568 sed 's/^/| /' conftest.$ac_ext >&5
18570 ac_cv_lib_c_inet_aton=no
18573 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18574 conftest$ac_exeext conftest.$ac_ext
18575 LIBS=$ac_check_lib_save_LIBS
18577 { echo "$as_me:$LINENO: result: $ac_cv_lib_c_inet_aton" >&5
18578 echo "${ECHO_T}$ac_cv_lib_c_inet_aton" >&6; }
18579 if test $ac_cv_lib_c_inet_aton = yes; then
18580 $ac_cv_prog_TRUE
18581 else
18583 { echo "$as_me:$LINENO: checking for inet_aton in -lresolv" >&5
18584 echo $ECHO_N "checking for inet_aton in -lresolv... $ECHO_C" >&6; }
18585 if test "${ac_cv_lib_resolv_inet_aton+set}" = set; then
18586 echo $ECHO_N "(cached) $ECHO_C" >&6
18587 else
18588 ac_check_lib_save_LIBS=$LIBS
18589 LIBS="-lresolv $LIBS"
18590 cat >conftest.$ac_ext <<_ACEOF
18591 /* confdefs.h. */
18592 _ACEOF
18593 cat confdefs.h >>conftest.$ac_ext
18594 cat >>conftest.$ac_ext <<_ACEOF
18595 /* end confdefs.h. */
18597 /* Override any GCC internal prototype to avoid an error.
18598 Use char because int might match the return type of a GCC
18599 builtin and then its argument prototype would still apply. */
18600 #ifdef __cplusplus
18601 extern "C"
18602 #endif
18603 char inet_aton ();
18605 main ()
18607 return inet_aton ();
18609 return 0;
18611 _ACEOF
18612 rm -f conftest.$ac_objext conftest$ac_exeext
18613 if { (ac_try="$ac_link"
18614 case "(($ac_try" in
18615 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18616 *) ac_try_echo=$ac_try;;
18617 esac
18618 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18619 (eval "$ac_link") 2>conftest.er1
18620 ac_status=$?
18621 grep -v '^ *+' conftest.er1 >conftest.err
18622 rm -f conftest.er1
18623 cat conftest.err >&5
18624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18625 (exit $ac_status); } && {
18626 test -z "$ac_c_werror_flag" ||
18627 test ! -s conftest.err
18628 } && test -s conftest$ac_exeext &&
18629 $as_test_x conftest$ac_exeext; then
18630 ac_cv_lib_resolv_inet_aton=yes
18631 else
18632 echo "$as_me: failed program was:" >&5
18633 sed 's/^/| /' conftest.$ac_ext >&5
18635 ac_cv_lib_resolv_inet_aton=no
18638 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18639 conftest$ac_exeext conftest.$ac_ext
18640 LIBS=$ac_check_lib_save_LIBS
18642 { echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_inet_aton" >&5
18643 echo "${ECHO_T}$ac_cv_lib_resolv_inet_aton" >&6; }
18644 if test $ac_cv_lib_resolv_inet_aton = yes; then
18645 cat >>confdefs.h <<_ACEOF
18646 #define HAVE_LIBRESOLV 1
18647 _ACEOF
18649 LIBS="-lresolv $LIBS"
18657 # On Tru64, chflags seems to be present, but calling it will
18658 # exit Python
18659 { echo "$as_me:$LINENO: checking for chflags" >&5
18660 echo $ECHO_N "checking for chflags... $ECHO_C" >&6; }
18661 if test "${ac_cv_have_chflags+set}" = set; then
18662 echo $ECHO_N "(cached) $ECHO_C" >&6
18663 else
18664 if test "$cross_compiling" = yes; then
18665 ac_cv_have_chflags=no
18666 else
18667 cat >conftest.$ac_ext <<_ACEOF
18668 /* confdefs.h. */
18669 _ACEOF
18670 cat confdefs.h >>conftest.$ac_ext
18671 cat >>conftest.$ac_ext <<_ACEOF
18672 /* end confdefs.h. */
18674 #include <sys/stat.h>
18675 #include <unistd.h>
18676 int main(int argc, char*argv[])
18678 if(chflags(argv[0], 0) != 0)
18679 return 1;
18680 return 0;
18683 _ACEOF
18684 rm -f conftest$ac_exeext
18685 if { (ac_try="$ac_link"
18686 case "(($ac_try" in
18687 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18688 *) ac_try_echo=$ac_try;;
18689 esac
18690 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18691 (eval "$ac_link") 2>&5
18692 ac_status=$?
18693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18694 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18695 { (case "(($ac_try" in
18696 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18697 *) ac_try_echo=$ac_try;;
18698 esac
18699 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18700 (eval "$ac_try") 2>&5
18701 ac_status=$?
18702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18703 (exit $ac_status); }; }; then
18704 ac_cv_have_chflags=yes
18705 else
18706 echo "$as_me: program exited with status $ac_status" >&5
18707 echo "$as_me: failed program was:" >&5
18708 sed 's/^/| /' conftest.$ac_ext >&5
18710 ( exit $ac_status )
18711 ac_cv_have_chflags=no
18713 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18720 { echo "$as_me:$LINENO: result: $ac_cv_have_chflags" >&5
18721 echo "${ECHO_T}$ac_cv_have_chflags" >&6; }
18722 if test $ac_cv_have_chflags = yes
18723 then
18725 cat >>confdefs.h <<\_ACEOF
18726 #define HAVE_CHFLAGS 1
18727 _ACEOF
18731 { echo "$as_me:$LINENO: checking for lchflags" >&5
18732 echo $ECHO_N "checking for lchflags... $ECHO_C" >&6; }
18733 if test "${ac_cv_have_lchflags+set}" = set; then
18734 echo $ECHO_N "(cached) $ECHO_C" >&6
18735 else
18736 if test "$cross_compiling" = yes; then
18737 ac_cv_have_lchflags=no
18738 else
18739 cat >conftest.$ac_ext <<_ACEOF
18740 /* confdefs.h. */
18741 _ACEOF
18742 cat confdefs.h >>conftest.$ac_ext
18743 cat >>conftest.$ac_ext <<_ACEOF
18744 /* end confdefs.h. */
18746 #include <sys/stat.h>
18747 #include <unistd.h>
18748 int main(int argc, char*argv[])
18750 if(lchflags(argv[0], 0) != 0)
18751 return 1;
18752 return 0;
18755 _ACEOF
18756 rm -f conftest$ac_exeext
18757 if { (ac_try="$ac_link"
18758 case "(($ac_try" in
18759 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18760 *) ac_try_echo=$ac_try;;
18761 esac
18762 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18763 (eval "$ac_link") 2>&5
18764 ac_status=$?
18765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18766 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18767 { (case "(($ac_try" in
18768 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18769 *) ac_try_echo=$ac_try;;
18770 esac
18771 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18772 (eval "$ac_try") 2>&5
18773 ac_status=$?
18774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18775 (exit $ac_status); }; }; then
18776 ac_cv_have_lchflags=yes
18777 else
18778 echo "$as_me: program exited with status $ac_status" >&5
18779 echo "$as_me: failed program was:" >&5
18780 sed 's/^/| /' conftest.$ac_ext >&5
18782 ( exit $ac_status )
18783 ac_cv_have_lchflags=no
18785 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18792 { echo "$as_me:$LINENO: result: $ac_cv_have_lchflags" >&5
18793 echo "${ECHO_T}$ac_cv_have_lchflags" >&6; }
18794 if test $ac_cv_have_lchflags = yes
18795 then
18797 cat >>confdefs.h <<\_ACEOF
18798 #define HAVE_LCHFLAGS 1
18799 _ACEOF
18803 case $ac_sys_system/$ac_sys_release in
18804 Darwin/*)
18805 _CUR_CFLAGS="${CFLAGS}"
18806 _CUR_LDFLAGS="${LDFLAGS}"
18807 CFLAGS="${CFLAGS} -Wl,-search_paths_first"
18808 LDFLAGS="${LDFLAGS} -Wl,-search_paths_first -L/usr/local/lib"
18810 esac
18812 { echo "$as_me:$LINENO: checking for inflateCopy in -lz" >&5
18813 echo $ECHO_N "checking for inflateCopy in -lz... $ECHO_C" >&6; }
18814 if test "${ac_cv_lib_z_inflateCopy+set}" = set; then
18815 echo $ECHO_N "(cached) $ECHO_C" >&6
18816 else
18817 ac_check_lib_save_LIBS=$LIBS
18818 LIBS="-lz $LIBS"
18819 cat >conftest.$ac_ext <<_ACEOF
18820 /* confdefs.h. */
18821 _ACEOF
18822 cat confdefs.h >>conftest.$ac_ext
18823 cat >>conftest.$ac_ext <<_ACEOF
18824 /* end confdefs.h. */
18826 /* Override any GCC internal prototype to avoid an error.
18827 Use char because int might match the return type of a GCC
18828 builtin and then its argument prototype would still apply. */
18829 #ifdef __cplusplus
18830 extern "C"
18831 #endif
18832 char inflateCopy ();
18834 main ()
18836 return inflateCopy ();
18838 return 0;
18840 _ACEOF
18841 rm -f conftest.$ac_objext conftest$ac_exeext
18842 if { (ac_try="$ac_link"
18843 case "(($ac_try" in
18844 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18845 *) ac_try_echo=$ac_try;;
18846 esac
18847 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18848 (eval "$ac_link") 2>conftest.er1
18849 ac_status=$?
18850 grep -v '^ *+' conftest.er1 >conftest.err
18851 rm -f conftest.er1
18852 cat conftest.err >&5
18853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18854 (exit $ac_status); } && {
18855 test -z "$ac_c_werror_flag" ||
18856 test ! -s conftest.err
18857 } && test -s conftest$ac_exeext &&
18858 $as_test_x conftest$ac_exeext; then
18859 ac_cv_lib_z_inflateCopy=yes
18860 else
18861 echo "$as_me: failed program was:" >&5
18862 sed 's/^/| /' conftest.$ac_ext >&5
18864 ac_cv_lib_z_inflateCopy=no
18867 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18868 conftest$ac_exeext conftest.$ac_ext
18869 LIBS=$ac_check_lib_save_LIBS
18871 { echo "$as_me:$LINENO: result: $ac_cv_lib_z_inflateCopy" >&5
18872 echo "${ECHO_T}$ac_cv_lib_z_inflateCopy" >&6; }
18873 if test $ac_cv_lib_z_inflateCopy = yes; then
18875 cat >>confdefs.h <<\_ACEOF
18876 #define HAVE_ZLIB_COPY 1
18877 _ACEOF
18882 case $ac_sys_system/$ac_sys_release in
18883 Darwin/*)
18884 CFLAGS="${_CUR_CFLAGS}"
18885 LDFLAGS="${_CUR_LDFLAGS}"
18887 esac
18889 { echo "$as_me:$LINENO: checking for hstrerror" >&5
18890 echo $ECHO_N "checking for hstrerror... $ECHO_C" >&6; }
18891 cat >conftest.$ac_ext <<_ACEOF
18892 /* confdefs.h. */
18893 _ACEOF
18894 cat confdefs.h >>conftest.$ac_ext
18895 cat >>conftest.$ac_ext <<_ACEOF
18896 /* end confdefs.h. */
18898 #include "confdefs.h"
18899 #include <netdb.h>
18902 main ()
18904 void* p = hstrerror; hstrerror(0)
18906 return 0;
18908 _ACEOF
18909 rm -f conftest.$ac_objext conftest$ac_exeext
18910 if { (ac_try="$ac_link"
18911 case "(($ac_try" in
18912 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18913 *) ac_try_echo=$ac_try;;
18914 esac
18915 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18916 (eval "$ac_link") 2>conftest.er1
18917 ac_status=$?
18918 grep -v '^ *+' conftest.er1 >conftest.err
18919 rm -f conftest.er1
18920 cat conftest.err >&5
18921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18922 (exit $ac_status); } && {
18923 test -z "$ac_c_werror_flag" ||
18924 test ! -s conftest.err
18925 } && test -s conftest$ac_exeext &&
18926 $as_test_x conftest$ac_exeext; then
18928 cat >>confdefs.h <<\_ACEOF
18929 #define HAVE_HSTRERROR 1
18930 _ACEOF
18932 { echo "$as_me:$LINENO: result: yes" >&5
18933 echo "${ECHO_T}yes" >&6; }
18934 else
18935 echo "$as_me: failed program was:" >&5
18936 sed 's/^/| /' conftest.$ac_ext >&5
18938 { echo "$as_me:$LINENO: result: no" >&5
18939 echo "${ECHO_T}no" >&6; }
18943 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18944 conftest$ac_exeext conftest.$ac_ext
18946 { echo "$as_me:$LINENO: checking for inet_aton" >&5
18947 echo $ECHO_N "checking for inet_aton... $ECHO_C" >&6; }
18948 cat >conftest.$ac_ext <<_ACEOF
18949 /* confdefs.h. */
18950 _ACEOF
18951 cat confdefs.h >>conftest.$ac_ext
18952 cat >>conftest.$ac_ext <<_ACEOF
18953 /* end confdefs.h. */
18955 #include "confdefs.h"
18956 #include <sys/types.h>
18957 #include <sys/socket.h>
18958 #include <netinet/in.h>
18959 #include <arpa/inet.h>
18962 main ()
18964 void* p = inet_aton;inet_aton(0,0)
18966 return 0;
18968 _ACEOF
18969 rm -f conftest.$ac_objext conftest$ac_exeext
18970 if { (ac_try="$ac_link"
18971 case "(($ac_try" in
18972 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18973 *) ac_try_echo=$ac_try;;
18974 esac
18975 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18976 (eval "$ac_link") 2>conftest.er1
18977 ac_status=$?
18978 grep -v '^ *+' conftest.er1 >conftest.err
18979 rm -f conftest.er1
18980 cat conftest.err >&5
18981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18982 (exit $ac_status); } && {
18983 test -z "$ac_c_werror_flag" ||
18984 test ! -s conftest.err
18985 } && test -s conftest$ac_exeext &&
18986 $as_test_x conftest$ac_exeext; then
18988 cat >>confdefs.h <<\_ACEOF
18989 #define HAVE_INET_ATON 1
18990 _ACEOF
18992 { echo "$as_me:$LINENO: result: yes" >&5
18993 echo "${ECHO_T}yes" >&6; }
18994 else
18995 echo "$as_me: failed program was:" >&5
18996 sed 's/^/| /' conftest.$ac_ext >&5
18998 { echo "$as_me:$LINENO: result: no" >&5
18999 echo "${ECHO_T}no" >&6; }
19003 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19004 conftest$ac_exeext conftest.$ac_ext
19006 { echo "$as_me:$LINENO: checking for inet_pton" >&5
19007 echo $ECHO_N "checking for inet_pton... $ECHO_C" >&6; }
19008 cat >conftest.$ac_ext <<_ACEOF
19009 /* confdefs.h. */
19010 _ACEOF
19011 cat confdefs.h >>conftest.$ac_ext
19012 cat >>conftest.$ac_ext <<_ACEOF
19013 /* end confdefs.h. */
19015 #include "confdefs.h"
19016 #include <sys/types.h>
19017 #include <sys/socket.h>
19018 #include <netinet/in.h>
19019 #include <arpa/inet.h>
19022 main ()
19024 void* p = inet_pton
19026 return 0;
19028 _ACEOF
19029 rm -f conftest.$ac_objext
19030 if { (ac_try="$ac_compile"
19031 case "(($ac_try" in
19032 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19033 *) ac_try_echo=$ac_try;;
19034 esac
19035 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19036 (eval "$ac_compile") 2>conftest.er1
19037 ac_status=$?
19038 grep -v '^ *+' conftest.er1 >conftest.err
19039 rm -f conftest.er1
19040 cat conftest.err >&5
19041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19042 (exit $ac_status); } && {
19043 test -z "$ac_c_werror_flag" ||
19044 test ! -s conftest.err
19045 } && test -s conftest.$ac_objext; then
19047 cat >>confdefs.h <<\_ACEOF
19048 #define HAVE_INET_PTON 1
19049 _ACEOF
19051 { echo "$as_me:$LINENO: result: yes" >&5
19052 echo "${ECHO_T}yes" >&6; }
19053 else
19054 echo "$as_me: failed program was:" >&5
19055 sed 's/^/| /' conftest.$ac_ext >&5
19057 { echo "$as_me:$LINENO: result: no" >&5
19058 echo "${ECHO_T}no" >&6; }
19062 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19064 # On some systems, setgroups is in unistd.h, on others, in grp.h
19065 { echo "$as_me:$LINENO: checking for setgroups" >&5
19066 echo $ECHO_N "checking for setgroups... $ECHO_C" >&6; }
19067 cat >conftest.$ac_ext <<_ACEOF
19068 /* confdefs.h. */
19069 _ACEOF
19070 cat confdefs.h >>conftest.$ac_ext
19071 cat >>conftest.$ac_ext <<_ACEOF
19072 /* end confdefs.h. */
19074 #include "confdefs.h"
19075 #include <unistd.h>
19076 #ifdef HAVE_GRP_H
19077 #include <grp.h>
19078 #endif
19081 main ()
19083 void* p = setgroups
19085 return 0;
19087 _ACEOF
19088 rm -f conftest.$ac_objext
19089 if { (ac_try="$ac_compile"
19090 case "(($ac_try" in
19091 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19092 *) ac_try_echo=$ac_try;;
19093 esac
19094 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19095 (eval "$ac_compile") 2>conftest.er1
19096 ac_status=$?
19097 grep -v '^ *+' conftest.er1 >conftest.err
19098 rm -f conftest.er1
19099 cat conftest.err >&5
19100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19101 (exit $ac_status); } && {
19102 test -z "$ac_c_werror_flag" ||
19103 test ! -s conftest.err
19104 } && test -s conftest.$ac_objext; then
19106 cat >>confdefs.h <<\_ACEOF
19107 #define HAVE_SETGROUPS 1
19108 _ACEOF
19110 { echo "$as_me:$LINENO: result: yes" >&5
19111 echo "${ECHO_T}yes" >&6; }
19112 else
19113 echo "$as_me: failed program was:" >&5
19114 sed 's/^/| /' conftest.$ac_ext >&5
19116 { echo "$as_me:$LINENO: result: no" >&5
19117 echo "${ECHO_T}no" >&6; }
19121 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19123 # check for openpty and forkpty
19126 for ac_func in openpty
19128 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19129 { echo "$as_me:$LINENO: checking for $ac_func" >&5
19130 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
19131 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19132 echo $ECHO_N "(cached) $ECHO_C" >&6
19133 else
19134 cat >conftest.$ac_ext <<_ACEOF
19135 /* confdefs.h. */
19136 _ACEOF
19137 cat confdefs.h >>conftest.$ac_ext
19138 cat >>conftest.$ac_ext <<_ACEOF
19139 /* end confdefs.h. */
19140 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19141 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19142 #define $ac_func innocuous_$ac_func
19144 /* System header to define __stub macros and hopefully few prototypes,
19145 which can conflict with char $ac_func (); below.
19146 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19147 <limits.h> exists even on freestanding compilers. */
19149 #ifdef __STDC__
19150 # include <limits.h>
19151 #else
19152 # include <assert.h>
19153 #endif
19155 #undef $ac_func
19157 /* Override any GCC internal prototype to avoid an error.
19158 Use char because int might match the return type of a GCC
19159 builtin and then its argument prototype would still apply. */
19160 #ifdef __cplusplus
19161 extern "C"
19162 #endif
19163 char $ac_func ();
19164 /* The GNU C library defines this for functions which it implements
19165 to always fail with ENOSYS. Some functions are actually named
19166 something starting with __ and the normal name is an alias. */
19167 #if defined __stub_$ac_func || defined __stub___$ac_func
19168 choke me
19169 #endif
19172 main ()
19174 return $ac_func ();
19176 return 0;
19178 _ACEOF
19179 rm -f conftest.$ac_objext conftest$ac_exeext
19180 if { (ac_try="$ac_link"
19181 case "(($ac_try" in
19182 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19183 *) ac_try_echo=$ac_try;;
19184 esac
19185 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19186 (eval "$ac_link") 2>conftest.er1
19187 ac_status=$?
19188 grep -v '^ *+' conftest.er1 >conftest.err
19189 rm -f conftest.er1
19190 cat conftest.err >&5
19191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19192 (exit $ac_status); } && {
19193 test -z "$ac_c_werror_flag" ||
19194 test ! -s conftest.err
19195 } && test -s conftest$ac_exeext &&
19196 $as_test_x conftest$ac_exeext; then
19197 eval "$as_ac_var=yes"
19198 else
19199 echo "$as_me: failed program was:" >&5
19200 sed 's/^/| /' conftest.$ac_ext >&5
19202 eval "$as_ac_var=no"
19205 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19206 conftest$ac_exeext conftest.$ac_ext
19208 ac_res=`eval echo '${'$as_ac_var'}'`
19209 { echo "$as_me:$LINENO: result: $ac_res" >&5
19210 echo "${ECHO_T}$ac_res" >&6; }
19211 if test `eval echo '${'$as_ac_var'}'` = yes; then
19212 cat >>confdefs.h <<_ACEOF
19213 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19214 _ACEOF
19216 else
19217 { echo "$as_me:$LINENO: checking for openpty in -lutil" >&5
19218 echo $ECHO_N "checking for openpty in -lutil... $ECHO_C" >&6; }
19219 if test "${ac_cv_lib_util_openpty+set}" = set; then
19220 echo $ECHO_N "(cached) $ECHO_C" >&6
19221 else
19222 ac_check_lib_save_LIBS=$LIBS
19223 LIBS="-lutil $LIBS"
19224 cat >conftest.$ac_ext <<_ACEOF
19225 /* confdefs.h. */
19226 _ACEOF
19227 cat confdefs.h >>conftest.$ac_ext
19228 cat >>conftest.$ac_ext <<_ACEOF
19229 /* end confdefs.h. */
19231 /* Override any GCC internal prototype to avoid an error.
19232 Use char because int might match the return type of a GCC
19233 builtin and then its argument prototype would still apply. */
19234 #ifdef __cplusplus
19235 extern "C"
19236 #endif
19237 char openpty ();
19239 main ()
19241 return openpty ();
19243 return 0;
19245 _ACEOF
19246 rm -f conftest.$ac_objext conftest$ac_exeext
19247 if { (ac_try="$ac_link"
19248 case "(($ac_try" in
19249 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19250 *) ac_try_echo=$ac_try;;
19251 esac
19252 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19253 (eval "$ac_link") 2>conftest.er1
19254 ac_status=$?
19255 grep -v '^ *+' conftest.er1 >conftest.err
19256 rm -f conftest.er1
19257 cat conftest.err >&5
19258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19259 (exit $ac_status); } && {
19260 test -z "$ac_c_werror_flag" ||
19261 test ! -s conftest.err
19262 } && test -s conftest$ac_exeext &&
19263 $as_test_x conftest$ac_exeext; then
19264 ac_cv_lib_util_openpty=yes
19265 else
19266 echo "$as_me: failed program was:" >&5
19267 sed 's/^/| /' conftest.$ac_ext >&5
19269 ac_cv_lib_util_openpty=no
19272 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19273 conftest$ac_exeext conftest.$ac_ext
19274 LIBS=$ac_check_lib_save_LIBS
19276 { echo "$as_me:$LINENO: result: $ac_cv_lib_util_openpty" >&5
19277 echo "${ECHO_T}$ac_cv_lib_util_openpty" >&6; }
19278 if test $ac_cv_lib_util_openpty = yes; then
19279 cat >>confdefs.h <<\_ACEOF
19280 #define HAVE_OPENPTY 1
19281 _ACEOF
19282 LIBS="$LIBS -lutil"
19283 else
19284 { echo "$as_me:$LINENO: checking for openpty in -lbsd" >&5
19285 echo $ECHO_N "checking for openpty in -lbsd... $ECHO_C" >&6; }
19286 if test "${ac_cv_lib_bsd_openpty+set}" = set; then
19287 echo $ECHO_N "(cached) $ECHO_C" >&6
19288 else
19289 ac_check_lib_save_LIBS=$LIBS
19290 LIBS="-lbsd $LIBS"
19291 cat >conftest.$ac_ext <<_ACEOF
19292 /* confdefs.h. */
19293 _ACEOF
19294 cat confdefs.h >>conftest.$ac_ext
19295 cat >>conftest.$ac_ext <<_ACEOF
19296 /* end confdefs.h. */
19298 /* Override any GCC internal prototype to avoid an error.
19299 Use char because int might match the return type of a GCC
19300 builtin and then its argument prototype would still apply. */
19301 #ifdef __cplusplus
19302 extern "C"
19303 #endif
19304 char openpty ();
19306 main ()
19308 return openpty ();
19310 return 0;
19312 _ACEOF
19313 rm -f conftest.$ac_objext conftest$ac_exeext
19314 if { (ac_try="$ac_link"
19315 case "(($ac_try" in
19316 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19317 *) ac_try_echo=$ac_try;;
19318 esac
19319 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19320 (eval "$ac_link") 2>conftest.er1
19321 ac_status=$?
19322 grep -v '^ *+' conftest.er1 >conftest.err
19323 rm -f conftest.er1
19324 cat conftest.err >&5
19325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19326 (exit $ac_status); } && {
19327 test -z "$ac_c_werror_flag" ||
19328 test ! -s conftest.err
19329 } && test -s conftest$ac_exeext &&
19330 $as_test_x conftest$ac_exeext; then
19331 ac_cv_lib_bsd_openpty=yes
19332 else
19333 echo "$as_me: failed program was:" >&5
19334 sed 's/^/| /' conftest.$ac_ext >&5
19336 ac_cv_lib_bsd_openpty=no
19339 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19340 conftest$ac_exeext conftest.$ac_ext
19341 LIBS=$ac_check_lib_save_LIBS
19343 { echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_openpty" >&5
19344 echo "${ECHO_T}$ac_cv_lib_bsd_openpty" >&6; }
19345 if test $ac_cv_lib_bsd_openpty = yes; then
19346 cat >>confdefs.h <<\_ACEOF
19347 #define HAVE_OPENPTY 1
19348 _ACEOF
19349 LIBS="$LIBS -lbsd"
19357 done
19360 for ac_func in forkpty
19362 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19363 { echo "$as_me:$LINENO: checking for $ac_func" >&5
19364 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
19365 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19366 echo $ECHO_N "(cached) $ECHO_C" >&6
19367 else
19368 cat >conftest.$ac_ext <<_ACEOF
19369 /* confdefs.h. */
19370 _ACEOF
19371 cat confdefs.h >>conftest.$ac_ext
19372 cat >>conftest.$ac_ext <<_ACEOF
19373 /* end confdefs.h. */
19374 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19375 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19376 #define $ac_func innocuous_$ac_func
19378 /* System header to define __stub macros and hopefully few prototypes,
19379 which can conflict with char $ac_func (); below.
19380 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19381 <limits.h> exists even on freestanding compilers. */
19383 #ifdef __STDC__
19384 # include <limits.h>
19385 #else
19386 # include <assert.h>
19387 #endif
19389 #undef $ac_func
19391 /* Override any GCC internal prototype to avoid an error.
19392 Use char because int might match the return type of a GCC
19393 builtin and then its argument prototype would still apply. */
19394 #ifdef __cplusplus
19395 extern "C"
19396 #endif
19397 char $ac_func ();
19398 /* The GNU C library defines this for functions which it implements
19399 to always fail with ENOSYS. Some functions are actually named
19400 something starting with __ and the normal name is an alias. */
19401 #if defined __stub_$ac_func || defined __stub___$ac_func
19402 choke me
19403 #endif
19406 main ()
19408 return $ac_func ();
19410 return 0;
19412 _ACEOF
19413 rm -f conftest.$ac_objext conftest$ac_exeext
19414 if { (ac_try="$ac_link"
19415 case "(($ac_try" in
19416 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19417 *) ac_try_echo=$ac_try;;
19418 esac
19419 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19420 (eval "$ac_link") 2>conftest.er1
19421 ac_status=$?
19422 grep -v '^ *+' conftest.er1 >conftest.err
19423 rm -f conftest.er1
19424 cat conftest.err >&5
19425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19426 (exit $ac_status); } && {
19427 test -z "$ac_c_werror_flag" ||
19428 test ! -s conftest.err
19429 } && test -s conftest$ac_exeext &&
19430 $as_test_x conftest$ac_exeext; then
19431 eval "$as_ac_var=yes"
19432 else
19433 echo "$as_me: failed program was:" >&5
19434 sed 's/^/| /' conftest.$ac_ext >&5
19436 eval "$as_ac_var=no"
19439 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19440 conftest$ac_exeext conftest.$ac_ext
19442 ac_res=`eval echo '${'$as_ac_var'}'`
19443 { echo "$as_me:$LINENO: result: $ac_res" >&5
19444 echo "${ECHO_T}$ac_res" >&6; }
19445 if test `eval echo '${'$as_ac_var'}'` = yes; then
19446 cat >>confdefs.h <<_ACEOF
19447 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19448 _ACEOF
19450 else
19451 { echo "$as_me:$LINENO: checking for forkpty in -lutil" >&5
19452 echo $ECHO_N "checking for forkpty in -lutil... $ECHO_C" >&6; }
19453 if test "${ac_cv_lib_util_forkpty+set}" = set; then
19454 echo $ECHO_N "(cached) $ECHO_C" >&6
19455 else
19456 ac_check_lib_save_LIBS=$LIBS
19457 LIBS="-lutil $LIBS"
19458 cat >conftest.$ac_ext <<_ACEOF
19459 /* confdefs.h. */
19460 _ACEOF
19461 cat confdefs.h >>conftest.$ac_ext
19462 cat >>conftest.$ac_ext <<_ACEOF
19463 /* end confdefs.h. */
19465 /* Override any GCC internal prototype to avoid an error.
19466 Use char because int might match the return type of a GCC
19467 builtin and then its argument prototype would still apply. */
19468 #ifdef __cplusplus
19469 extern "C"
19470 #endif
19471 char forkpty ();
19473 main ()
19475 return forkpty ();
19477 return 0;
19479 _ACEOF
19480 rm -f conftest.$ac_objext conftest$ac_exeext
19481 if { (ac_try="$ac_link"
19482 case "(($ac_try" in
19483 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19484 *) ac_try_echo=$ac_try;;
19485 esac
19486 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19487 (eval "$ac_link") 2>conftest.er1
19488 ac_status=$?
19489 grep -v '^ *+' conftest.er1 >conftest.err
19490 rm -f conftest.er1
19491 cat conftest.err >&5
19492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19493 (exit $ac_status); } && {
19494 test -z "$ac_c_werror_flag" ||
19495 test ! -s conftest.err
19496 } && test -s conftest$ac_exeext &&
19497 $as_test_x conftest$ac_exeext; then
19498 ac_cv_lib_util_forkpty=yes
19499 else
19500 echo "$as_me: failed program was:" >&5
19501 sed 's/^/| /' conftest.$ac_ext >&5
19503 ac_cv_lib_util_forkpty=no
19506 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19507 conftest$ac_exeext conftest.$ac_ext
19508 LIBS=$ac_check_lib_save_LIBS
19510 { echo "$as_me:$LINENO: result: $ac_cv_lib_util_forkpty" >&5
19511 echo "${ECHO_T}$ac_cv_lib_util_forkpty" >&6; }
19512 if test $ac_cv_lib_util_forkpty = yes; then
19513 cat >>confdefs.h <<\_ACEOF
19514 #define HAVE_FORKPTY 1
19515 _ACEOF
19516 LIBS="$LIBS -lutil"
19517 else
19518 { echo "$as_me:$LINENO: checking for forkpty in -lbsd" >&5
19519 echo $ECHO_N "checking for forkpty in -lbsd... $ECHO_C" >&6; }
19520 if test "${ac_cv_lib_bsd_forkpty+set}" = set; then
19521 echo $ECHO_N "(cached) $ECHO_C" >&6
19522 else
19523 ac_check_lib_save_LIBS=$LIBS
19524 LIBS="-lbsd $LIBS"
19525 cat >conftest.$ac_ext <<_ACEOF
19526 /* confdefs.h. */
19527 _ACEOF
19528 cat confdefs.h >>conftest.$ac_ext
19529 cat >>conftest.$ac_ext <<_ACEOF
19530 /* end confdefs.h. */
19532 /* Override any GCC internal prototype to avoid an error.
19533 Use char because int might match the return type of a GCC
19534 builtin and then its argument prototype would still apply. */
19535 #ifdef __cplusplus
19536 extern "C"
19537 #endif
19538 char forkpty ();
19540 main ()
19542 return forkpty ();
19544 return 0;
19546 _ACEOF
19547 rm -f conftest.$ac_objext conftest$ac_exeext
19548 if { (ac_try="$ac_link"
19549 case "(($ac_try" in
19550 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19551 *) ac_try_echo=$ac_try;;
19552 esac
19553 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19554 (eval "$ac_link") 2>conftest.er1
19555 ac_status=$?
19556 grep -v '^ *+' conftest.er1 >conftest.err
19557 rm -f conftest.er1
19558 cat conftest.err >&5
19559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19560 (exit $ac_status); } && {
19561 test -z "$ac_c_werror_flag" ||
19562 test ! -s conftest.err
19563 } && test -s conftest$ac_exeext &&
19564 $as_test_x conftest$ac_exeext; then
19565 ac_cv_lib_bsd_forkpty=yes
19566 else
19567 echo "$as_me: failed program was:" >&5
19568 sed 's/^/| /' conftest.$ac_ext >&5
19570 ac_cv_lib_bsd_forkpty=no
19573 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19574 conftest$ac_exeext conftest.$ac_ext
19575 LIBS=$ac_check_lib_save_LIBS
19577 { echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_forkpty" >&5
19578 echo "${ECHO_T}$ac_cv_lib_bsd_forkpty" >&6; }
19579 if test $ac_cv_lib_bsd_forkpty = yes; then
19580 cat >>confdefs.h <<\_ACEOF
19581 #define HAVE_FORKPTY 1
19582 _ACEOF
19583 LIBS="$LIBS -lbsd"
19591 done
19594 # Stuff for expat.
19596 for ac_func in memmove
19598 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19599 { echo "$as_me:$LINENO: checking for $ac_func" >&5
19600 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
19601 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19602 echo $ECHO_N "(cached) $ECHO_C" >&6
19603 else
19604 cat >conftest.$ac_ext <<_ACEOF
19605 /* confdefs.h. */
19606 _ACEOF
19607 cat confdefs.h >>conftest.$ac_ext
19608 cat >>conftest.$ac_ext <<_ACEOF
19609 /* end confdefs.h. */
19610 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19611 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19612 #define $ac_func innocuous_$ac_func
19614 /* System header to define __stub macros and hopefully few prototypes,
19615 which can conflict with char $ac_func (); below.
19616 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19617 <limits.h> exists even on freestanding compilers. */
19619 #ifdef __STDC__
19620 # include <limits.h>
19621 #else
19622 # include <assert.h>
19623 #endif
19625 #undef $ac_func
19627 /* Override any GCC internal prototype to avoid an error.
19628 Use char because int might match the return type of a GCC
19629 builtin and then its argument prototype would still apply. */
19630 #ifdef __cplusplus
19631 extern "C"
19632 #endif
19633 char $ac_func ();
19634 /* The GNU C library defines this for functions which it implements
19635 to always fail with ENOSYS. Some functions are actually named
19636 something starting with __ and the normal name is an alias. */
19637 #if defined __stub_$ac_func || defined __stub___$ac_func
19638 choke me
19639 #endif
19642 main ()
19644 return $ac_func ();
19646 return 0;
19648 _ACEOF
19649 rm -f conftest.$ac_objext conftest$ac_exeext
19650 if { (ac_try="$ac_link"
19651 case "(($ac_try" in
19652 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19653 *) ac_try_echo=$ac_try;;
19654 esac
19655 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19656 (eval "$ac_link") 2>conftest.er1
19657 ac_status=$?
19658 grep -v '^ *+' conftest.er1 >conftest.err
19659 rm -f conftest.er1
19660 cat conftest.err >&5
19661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19662 (exit $ac_status); } && {
19663 test -z "$ac_c_werror_flag" ||
19664 test ! -s conftest.err
19665 } && test -s conftest$ac_exeext &&
19666 $as_test_x conftest$ac_exeext; then
19667 eval "$as_ac_var=yes"
19668 else
19669 echo "$as_me: failed program was:" >&5
19670 sed 's/^/| /' conftest.$ac_ext >&5
19672 eval "$as_ac_var=no"
19675 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19676 conftest$ac_exeext conftest.$ac_ext
19678 ac_res=`eval echo '${'$as_ac_var'}'`
19679 { echo "$as_me:$LINENO: result: $ac_res" >&5
19680 echo "${ECHO_T}$ac_res" >&6; }
19681 if test `eval echo '${'$as_ac_var'}'` = yes; then
19682 cat >>confdefs.h <<_ACEOF
19683 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19684 _ACEOF
19687 done
19690 # check for long file support functions
19697 for ac_func in fseek64 fseeko fstatvfs ftell64 ftello statvfs
19699 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19700 { echo "$as_me:$LINENO: checking for $ac_func" >&5
19701 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
19702 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19703 echo $ECHO_N "(cached) $ECHO_C" >&6
19704 else
19705 cat >conftest.$ac_ext <<_ACEOF
19706 /* confdefs.h. */
19707 _ACEOF
19708 cat confdefs.h >>conftest.$ac_ext
19709 cat >>conftest.$ac_ext <<_ACEOF
19710 /* end confdefs.h. */
19711 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19712 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19713 #define $ac_func innocuous_$ac_func
19715 /* System header to define __stub macros and hopefully few prototypes,
19716 which can conflict with char $ac_func (); below.
19717 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19718 <limits.h> exists even on freestanding compilers. */
19720 #ifdef __STDC__
19721 # include <limits.h>
19722 #else
19723 # include <assert.h>
19724 #endif
19726 #undef $ac_func
19728 /* Override any GCC internal prototype to avoid an error.
19729 Use char because int might match the return type of a GCC
19730 builtin and then its argument prototype would still apply. */
19731 #ifdef __cplusplus
19732 extern "C"
19733 #endif
19734 char $ac_func ();
19735 /* The GNU C library defines this for functions which it implements
19736 to always fail with ENOSYS. Some functions are actually named
19737 something starting with __ and the normal name is an alias. */
19738 #if defined __stub_$ac_func || defined __stub___$ac_func
19739 choke me
19740 #endif
19743 main ()
19745 return $ac_func ();
19747 return 0;
19749 _ACEOF
19750 rm -f conftest.$ac_objext conftest$ac_exeext
19751 if { (ac_try="$ac_link"
19752 case "(($ac_try" in
19753 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19754 *) ac_try_echo=$ac_try;;
19755 esac
19756 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19757 (eval "$ac_link") 2>conftest.er1
19758 ac_status=$?
19759 grep -v '^ *+' conftest.er1 >conftest.err
19760 rm -f conftest.er1
19761 cat conftest.err >&5
19762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19763 (exit $ac_status); } && {
19764 test -z "$ac_c_werror_flag" ||
19765 test ! -s conftest.err
19766 } && test -s conftest$ac_exeext &&
19767 $as_test_x conftest$ac_exeext; then
19768 eval "$as_ac_var=yes"
19769 else
19770 echo "$as_me: failed program was:" >&5
19771 sed 's/^/| /' conftest.$ac_ext >&5
19773 eval "$as_ac_var=no"
19776 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19777 conftest$ac_exeext conftest.$ac_ext
19779 ac_res=`eval echo '${'$as_ac_var'}'`
19780 { echo "$as_me:$LINENO: result: $ac_res" >&5
19781 echo "${ECHO_T}$ac_res" >&6; }
19782 if test `eval echo '${'$as_ac_var'}'` = yes; then
19783 cat >>confdefs.h <<_ACEOF
19784 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19785 _ACEOF
19788 done
19794 for ac_func in dup2 getcwd strdup
19796 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19797 { echo "$as_me:$LINENO: checking for $ac_func" >&5
19798 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
19799 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19800 echo $ECHO_N "(cached) $ECHO_C" >&6
19801 else
19802 cat >conftest.$ac_ext <<_ACEOF
19803 /* confdefs.h. */
19804 _ACEOF
19805 cat confdefs.h >>conftest.$ac_ext
19806 cat >>conftest.$ac_ext <<_ACEOF
19807 /* end confdefs.h. */
19808 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19809 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19810 #define $ac_func innocuous_$ac_func
19812 /* System header to define __stub macros and hopefully few prototypes,
19813 which can conflict with char $ac_func (); below.
19814 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19815 <limits.h> exists even on freestanding compilers. */
19817 #ifdef __STDC__
19818 # include <limits.h>
19819 #else
19820 # include <assert.h>
19821 #endif
19823 #undef $ac_func
19825 /* Override any GCC internal prototype to avoid an error.
19826 Use char because int might match the return type of a GCC
19827 builtin and then its argument prototype would still apply. */
19828 #ifdef __cplusplus
19829 extern "C"
19830 #endif
19831 char $ac_func ();
19832 /* The GNU C library defines this for functions which it implements
19833 to always fail with ENOSYS. Some functions are actually named
19834 something starting with __ and the normal name is an alias. */
19835 #if defined __stub_$ac_func || defined __stub___$ac_func
19836 choke me
19837 #endif
19840 main ()
19842 return $ac_func ();
19844 return 0;
19846 _ACEOF
19847 rm -f conftest.$ac_objext conftest$ac_exeext
19848 if { (ac_try="$ac_link"
19849 case "(($ac_try" in
19850 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19851 *) ac_try_echo=$ac_try;;
19852 esac
19853 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19854 (eval "$ac_link") 2>conftest.er1
19855 ac_status=$?
19856 grep -v '^ *+' conftest.er1 >conftest.err
19857 rm -f conftest.er1
19858 cat conftest.err >&5
19859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19860 (exit $ac_status); } && {
19861 test -z "$ac_c_werror_flag" ||
19862 test ! -s conftest.err
19863 } && test -s conftest$ac_exeext &&
19864 $as_test_x conftest$ac_exeext; then
19865 eval "$as_ac_var=yes"
19866 else
19867 echo "$as_me: failed program was:" >&5
19868 sed 's/^/| /' conftest.$ac_ext >&5
19870 eval "$as_ac_var=no"
19873 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19874 conftest$ac_exeext conftest.$ac_ext
19876 ac_res=`eval echo '${'$as_ac_var'}'`
19877 { echo "$as_me:$LINENO: result: $ac_res" >&5
19878 echo "${ECHO_T}$ac_res" >&6; }
19879 if test `eval echo '${'$as_ac_var'}'` = yes; then
19880 cat >>confdefs.h <<_ACEOF
19881 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19882 _ACEOF
19884 else
19885 case " $LIBOBJS " in
19886 *" $ac_func.$ac_objext "* ) ;;
19887 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
19889 esac
19892 done
19896 for ac_func in getpgrp
19898 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19899 { echo "$as_me:$LINENO: checking for $ac_func" >&5
19900 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
19901 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19902 echo $ECHO_N "(cached) $ECHO_C" >&6
19903 else
19904 cat >conftest.$ac_ext <<_ACEOF
19905 /* confdefs.h. */
19906 _ACEOF
19907 cat confdefs.h >>conftest.$ac_ext
19908 cat >>conftest.$ac_ext <<_ACEOF
19909 /* end confdefs.h. */
19910 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19911 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19912 #define $ac_func innocuous_$ac_func
19914 /* System header to define __stub macros and hopefully few prototypes,
19915 which can conflict with char $ac_func (); below.
19916 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19917 <limits.h> exists even on freestanding compilers. */
19919 #ifdef __STDC__
19920 # include <limits.h>
19921 #else
19922 # include <assert.h>
19923 #endif
19925 #undef $ac_func
19927 /* Override any GCC internal prototype to avoid an error.
19928 Use char because int might match the return type of a GCC
19929 builtin and then its argument prototype would still apply. */
19930 #ifdef __cplusplus
19931 extern "C"
19932 #endif
19933 char $ac_func ();
19934 /* The GNU C library defines this for functions which it implements
19935 to always fail with ENOSYS. Some functions are actually named
19936 something starting with __ and the normal name is an alias. */
19937 #if defined __stub_$ac_func || defined __stub___$ac_func
19938 choke me
19939 #endif
19942 main ()
19944 return $ac_func ();
19946 return 0;
19948 _ACEOF
19949 rm -f conftest.$ac_objext conftest$ac_exeext
19950 if { (ac_try="$ac_link"
19951 case "(($ac_try" in
19952 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19953 *) ac_try_echo=$ac_try;;
19954 esac
19955 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19956 (eval "$ac_link") 2>conftest.er1
19957 ac_status=$?
19958 grep -v '^ *+' conftest.er1 >conftest.err
19959 rm -f conftest.er1
19960 cat conftest.err >&5
19961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19962 (exit $ac_status); } && {
19963 test -z "$ac_c_werror_flag" ||
19964 test ! -s conftest.err
19965 } && test -s conftest$ac_exeext &&
19966 $as_test_x conftest$ac_exeext; then
19967 eval "$as_ac_var=yes"
19968 else
19969 echo "$as_me: failed program was:" >&5
19970 sed 's/^/| /' conftest.$ac_ext >&5
19972 eval "$as_ac_var=no"
19975 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19976 conftest$ac_exeext conftest.$ac_ext
19978 ac_res=`eval echo '${'$as_ac_var'}'`
19979 { echo "$as_me:$LINENO: result: $ac_res" >&5
19980 echo "${ECHO_T}$ac_res" >&6; }
19981 if test `eval echo '${'$as_ac_var'}'` = yes; then
19982 cat >>confdefs.h <<_ACEOF
19983 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19984 _ACEOF
19985 cat >conftest.$ac_ext <<_ACEOF
19986 /* confdefs.h. */
19987 _ACEOF
19988 cat confdefs.h >>conftest.$ac_ext
19989 cat >>conftest.$ac_ext <<_ACEOF
19990 /* end confdefs.h. */
19991 #include <unistd.h>
19993 main ()
19995 getpgrp(0);
19997 return 0;
19999 _ACEOF
20000 rm -f conftest.$ac_objext
20001 if { (ac_try="$ac_compile"
20002 case "(($ac_try" in
20003 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20004 *) ac_try_echo=$ac_try;;
20005 esac
20006 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20007 (eval "$ac_compile") 2>conftest.er1
20008 ac_status=$?
20009 grep -v '^ *+' conftest.er1 >conftest.err
20010 rm -f conftest.er1
20011 cat conftest.err >&5
20012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20013 (exit $ac_status); } && {
20014 test -z "$ac_c_werror_flag" ||
20015 test ! -s conftest.err
20016 } && test -s conftest.$ac_objext; then
20018 cat >>confdefs.h <<\_ACEOF
20019 #define GETPGRP_HAVE_ARG 1
20020 _ACEOF
20023 else
20024 echo "$as_me: failed program was:" >&5
20025 sed 's/^/| /' conftest.$ac_ext >&5
20030 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20033 done
20036 for ac_func in setpgrp
20038 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20039 { echo "$as_me:$LINENO: checking for $ac_func" >&5
20040 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
20041 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20042 echo $ECHO_N "(cached) $ECHO_C" >&6
20043 else
20044 cat >conftest.$ac_ext <<_ACEOF
20045 /* confdefs.h. */
20046 _ACEOF
20047 cat confdefs.h >>conftest.$ac_ext
20048 cat >>conftest.$ac_ext <<_ACEOF
20049 /* end confdefs.h. */
20050 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20051 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20052 #define $ac_func innocuous_$ac_func
20054 /* System header to define __stub macros and hopefully few prototypes,
20055 which can conflict with char $ac_func (); below.
20056 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20057 <limits.h> exists even on freestanding compilers. */
20059 #ifdef __STDC__
20060 # include <limits.h>
20061 #else
20062 # include <assert.h>
20063 #endif
20065 #undef $ac_func
20067 /* Override any GCC internal prototype to avoid an error.
20068 Use char because int might match the return type of a GCC
20069 builtin and then its argument prototype would still apply. */
20070 #ifdef __cplusplus
20071 extern "C"
20072 #endif
20073 char $ac_func ();
20074 /* The GNU C library defines this for functions which it implements
20075 to always fail with ENOSYS. Some functions are actually named
20076 something starting with __ and the normal name is an alias. */
20077 #if defined __stub_$ac_func || defined __stub___$ac_func
20078 choke me
20079 #endif
20082 main ()
20084 return $ac_func ();
20086 return 0;
20088 _ACEOF
20089 rm -f conftest.$ac_objext conftest$ac_exeext
20090 if { (ac_try="$ac_link"
20091 case "(($ac_try" in
20092 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20093 *) ac_try_echo=$ac_try;;
20094 esac
20095 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20096 (eval "$ac_link") 2>conftest.er1
20097 ac_status=$?
20098 grep -v '^ *+' conftest.er1 >conftest.err
20099 rm -f conftest.er1
20100 cat conftest.err >&5
20101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20102 (exit $ac_status); } && {
20103 test -z "$ac_c_werror_flag" ||
20104 test ! -s conftest.err
20105 } && test -s conftest$ac_exeext &&
20106 $as_test_x conftest$ac_exeext; then
20107 eval "$as_ac_var=yes"
20108 else
20109 echo "$as_me: failed program was:" >&5
20110 sed 's/^/| /' conftest.$ac_ext >&5
20112 eval "$as_ac_var=no"
20115 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20116 conftest$ac_exeext conftest.$ac_ext
20118 ac_res=`eval echo '${'$as_ac_var'}'`
20119 { echo "$as_me:$LINENO: result: $ac_res" >&5
20120 echo "${ECHO_T}$ac_res" >&6; }
20121 if test `eval echo '${'$as_ac_var'}'` = yes; then
20122 cat >>confdefs.h <<_ACEOF
20123 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20124 _ACEOF
20125 cat >conftest.$ac_ext <<_ACEOF
20126 /* confdefs.h. */
20127 _ACEOF
20128 cat confdefs.h >>conftest.$ac_ext
20129 cat >>conftest.$ac_ext <<_ACEOF
20130 /* end confdefs.h. */
20131 #include <unistd.h>
20133 main ()
20135 setpgrp(0,0);
20137 return 0;
20139 _ACEOF
20140 rm -f conftest.$ac_objext
20141 if { (ac_try="$ac_compile"
20142 case "(($ac_try" in
20143 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20144 *) ac_try_echo=$ac_try;;
20145 esac
20146 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20147 (eval "$ac_compile") 2>conftest.er1
20148 ac_status=$?
20149 grep -v '^ *+' conftest.er1 >conftest.err
20150 rm -f conftest.er1
20151 cat conftest.err >&5
20152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20153 (exit $ac_status); } && {
20154 test -z "$ac_c_werror_flag" ||
20155 test ! -s conftest.err
20156 } && test -s conftest.$ac_objext; then
20158 cat >>confdefs.h <<\_ACEOF
20159 #define SETPGRP_HAVE_ARG 1
20160 _ACEOF
20163 else
20164 echo "$as_me: failed program was:" >&5
20165 sed 's/^/| /' conftest.$ac_ext >&5
20170 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20173 done
20176 for ac_func in gettimeofday
20178 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20179 { echo "$as_me:$LINENO: checking for $ac_func" >&5
20180 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
20181 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20182 echo $ECHO_N "(cached) $ECHO_C" >&6
20183 else
20184 cat >conftest.$ac_ext <<_ACEOF
20185 /* confdefs.h. */
20186 _ACEOF
20187 cat confdefs.h >>conftest.$ac_ext
20188 cat >>conftest.$ac_ext <<_ACEOF
20189 /* end confdefs.h. */
20190 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20191 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20192 #define $ac_func innocuous_$ac_func
20194 /* System header to define __stub macros and hopefully few prototypes,
20195 which can conflict with char $ac_func (); below.
20196 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20197 <limits.h> exists even on freestanding compilers. */
20199 #ifdef __STDC__
20200 # include <limits.h>
20201 #else
20202 # include <assert.h>
20203 #endif
20205 #undef $ac_func
20207 /* Override any GCC internal prototype to avoid an error.
20208 Use char because int might match the return type of a GCC
20209 builtin and then its argument prototype would still apply. */
20210 #ifdef __cplusplus
20211 extern "C"
20212 #endif
20213 char $ac_func ();
20214 /* The GNU C library defines this for functions which it implements
20215 to always fail with ENOSYS. Some functions are actually named
20216 something starting with __ and the normal name is an alias. */
20217 #if defined __stub_$ac_func || defined __stub___$ac_func
20218 choke me
20219 #endif
20222 main ()
20224 return $ac_func ();
20226 return 0;
20228 _ACEOF
20229 rm -f conftest.$ac_objext conftest$ac_exeext
20230 if { (ac_try="$ac_link"
20231 case "(($ac_try" in
20232 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20233 *) ac_try_echo=$ac_try;;
20234 esac
20235 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20236 (eval "$ac_link") 2>conftest.er1
20237 ac_status=$?
20238 grep -v '^ *+' conftest.er1 >conftest.err
20239 rm -f conftest.er1
20240 cat conftest.err >&5
20241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20242 (exit $ac_status); } && {
20243 test -z "$ac_c_werror_flag" ||
20244 test ! -s conftest.err
20245 } && test -s conftest$ac_exeext &&
20246 $as_test_x conftest$ac_exeext; then
20247 eval "$as_ac_var=yes"
20248 else
20249 echo "$as_me: failed program was:" >&5
20250 sed 's/^/| /' conftest.$ac_ext >&5
20252 eval "$as_ac_var=no"
20255 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20256 conftest$ac_exeext conftest.$ac_ext
20258 ac_res=`eval echo '${'$as_ac_var'}'`
20259 { echo "$as_me:$LINENO: result: $ac_res" >&5
20260 echo "${ECHO_T}$ac_res" >&6; }
20261 if test `eval echo '${'$as_ac_var'}'` = yes; then
20262 cat >>confdefs.h <<_ACEOF
20263 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20264 _ACEOF
20265 cat >conftest.$ac_ext <<_ACEOF
20266 /* confdefs.h. */
20267 _ACEOF
20268 cat confdefs.h >>conftest.$ac_ext
20269 cat >>conftest.$ac_ext <<_ACEOF
20270 /* end confdefs.h. */
20271 #include <sys/time.h>
20273 main ()
20275 gettimeofday((struct timeval*)0,(struct timezone*)0);
20277 return 0;
20279 _ACEOF
20280 rm -f conftest.$ac_objext
20281 if { (ac_try="$ac_compile"
20282 case "(($ac_try" in
20283 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20284 *) ac_try_echo=$ac_try;;
20285 esac
20286 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20287 (eval "$ac_compile") 2>conftest.er1
20288 ac_status=$?
20289 grep -v '^ *+' conftest.er1 >conftest.err
20290 rm -f conftest.er1
20291 cat conftest.err >&5
20292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20293 (exit $ac_status); } && {
20294 test -z "$ac_c_werror_flag" ||
20295 test ! -s conftest.err
20296 } && test -s conftest.$ac_objext; then
20298 else
20299 echo "$as_me: failed program was:" >&5
20300 sed 's/^/| /' conftest.$ac_ext >&5
20303 cat >>confdefs.h <<\_ACEOF
20304 #define GETTIMEOFDAY_NO_TZ 1
20305 _ACEOF
20310 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20313 done
20316 { echo "$as_me:$LINENO: checking for major" >&5
20317 echo $ECHO_N "checking for major... $ECHO_C" >&6; }
20318 cat >conftest.$ac_ext <<_ACEOF
20319 /* confdefs.h. */
20320 _ACEOF
20321 cat confdefs.h >>conftest.$ac_ext
20322 cat >>conftest.$ac_ext <<_ACEOF
20323 /* end confdefs.h. */
20325 #if defined(MAJOR_IN_MKDEV)
20326 #include <sys/mkdev.h>
20327 #elif defined(MAJOR_IN_SYSMACROS)
20328 #include <sys/sysmacros.h>
20329 #else
20330 #include <sys/types.h>
20331 #endif
20334 main ()
20337 makedev(major(0),minor(0));
20340 return 0;
20342 _ACEOF
20343 rm -f conftest.$ac_objext conftest$ac_exeext
20344 if { (ac_try="$ac_link"
20345 case "(($ac_try" in
20346 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20347 *) ac_try_echo=$ac_try;;
20348 esac
20349 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20350 (eval "$ac_link") 2>conftest.er1
20351 ac_status=$?
20352 grep -v '^ *+' conftest.er1 >conftest.err
20353 rm -f conftest.er1
20354 cat conftest.err >&5
20355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20356 (exit $ac_status); } && {
20357 test -z "$ac_c_werror_flag" ||
20358 test ! -s conftest.err
20359 } && test -s conftest$ac_exeext &&
20360 $as_test_x conftest$ac_exeext; then
20363 cat >>confdefs.h <<\_ACEOF
20364 #define HAVE_DEVICE_MACROS 1
20365 _ACEOF
20367 { echo "$as_me:$LINENO: result: yes" >&5
20368 echo "${ECHO_T}yes" >&6; }
20370 else
20371 echo "$as_me: failed program was:" >&5
20372 sed 's/^/| /' conftest.$ac_ext >&5
20375 { echo "$as_me:$LINENO: result: no" >&5
20376 echo "${ECHO_T}no" >&6; }
20380 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20381 conftest$ac_exeext conftest.$ac_ext
20383 # On OSF/1 V5.1, getaddrinfo is available, but a define
20384 # for [no]getaddrinfo in netdb.h.
20385 { echo "$as_me:$LINENO: checking for getaddrinfo" >&5
20386 echo $ECHO_N "checking for getaddrinfo... $ECHO_C" >&6; }
20387 cat >conftest.$ac_ext <<_ACEOF
20388 /* confdefs.h. */
20389 _ACEOF
20390 cat confdefs.h >>conftest.$ac_ext
20391 cat >>conftest.$ac_ext <<_ACEOF
20392 /* end confdefs.h. */
20394 #include <sys/types.h>
20395 #include <sys/socket.h>
20396 #include <netdb.h>
20397 #include <stdio.h>
20400 main ()
20402 getaddrinfo(NULL, NULL, NULL, NULL);
20404 return 0;
20406 _ACEOF
20407 rm -f conftest.$ac_objext conftest$ac_exeext
20408 if { (ac_try="$ac_link"
20409 case "(($ac_try" in
20410 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20411 *) ac_try_echo=$ac_try;;
20412 esac
20413 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20414 (eval "$ac_link") 2>conftest.er1
20415 ac_status=$?
20416 grep -v '^ *+' conftest.er1 >conftest.err
20417 rm -f conftest.er1
20418 cat conftest.err >&5
20419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20420 (exit $ac_status); } && {
20421 test -z "$ac_c_werror_flag" ||
20422 test ! -s conftest.err
20423 } && test -s conftest$ac_exeext &&
20424 $as_test_x conftest$ac_exeext; then
20425 have_getaddrinfo=yes
20426 else
20427 echo "$as_me: failed program was:" >&5
20428 sed 's/^/| /' conftest.$ac_ext >&5
20430 have_getaddrinfo=no
20433 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20434 conftest$ac_exeext conftest.$ac_ext
20435 { echo "$as_me:$LINENO: result: $have_getaddrinfo" >&5
20436 echo "${ECHO_T}$have_getaddrinfo" >&6; }
20437 if test $have_getaddrinfo = yes
20438 then
20439 { echo "$as_me:$LINENO: checking getaddrinfo bug" >&5
20440 echo $ECHO_N "checking getaddrinfo bug... $ECHO_C" >&6; }
20441 if test "${ac_cv_buggy_getaddrinfo+set}" = set; then
20442 echo $ECHO_N "(cached) $ECHO_C" >&6
20443 else
20444 if test "$cross_compiling" = yes; then
20445 ac_cv_buggy_getaddrinfo=yes
20446 else
20447 cat >conftest.$ac_ext <<_ACEOF
20448 /* confdefs.h. */
20449 _ACEOF
20450 cat confdefs.h >>conftest.$ac_ext
20451 cat >>conftest.$ac_ext <<_ACEOF
20452 /* end confdefs.h. */
20454 #include <sys/types.h>
20455 #include <netdb.h>
20456 #include <string.h>
20457 #include <sys/socket.h>
20458 #include <netinet/in.h>
20460 int main()
20462 int passive, gaierr, inet4 = 0, inet6 = 0;
20463 struct addrinfo hints, *ai, *aitop;
20464 char straddr[INET6_ADDRSTRLEN], strport[16];
20466 for (passive = 0; passive <= 1; passive++) {
20467 memset(&hints, 0, sizeof(hints));
20468 hints.ai_family = AF_UNSPEC;
20469 hints.ai_flags = passive ? AI_PASSIVE : 0;
20470 hints.ai_socktype = SOCK_STREAM;
20471 hints.ai_protocol = IPPROTO_TCP;
20472 if ((gaierr = getaddrinfo(NULL, "54321", &hints, &aitop)) != 0) {
20473 (void)gai_strerror(gaierr);
20474 goto bad;
20476 for (ai = aitop; ai; ai = ai->ai_next) {
20477 if (ai->ai_addr == NULL ||
20478 ai->ai_addrlen == 0 ||
20479 getnameinfo(ai->ai_addr, ai->ai_addrlen,
20480 straddr, sizeof(straddr), strport, sizeof(strport),
20481 NI_NUMERICHOST|NI_NUMERICSERV) != 0) {
20482 goto bad;
20484 switch (ai->ai_family) {
20485 case AF_INET:
20486 if (strcmp(strport, "54321") != 0) {
20487 goto bad;
20489 if (passive) {
20490 if (strcmp(straddr, "0.0.0.0") != 0) {
20491 goto bad;
20493 } else {
20494 if (strcmp(straddr, "127.0.0.1") != 0) {
20495 goto bad;
20498 inet4++;
20499 break;
20500 case AF_INET6:
20501 if (strcmp(strport, "54321") != 0) {
20502 goto bad;
20504 if (passive) {
20505 if (strcmp(straddr, "::") != 0) {
20506 goto bad;
20508 } else {
20509 if (strcmp(straddr, "::1") != 0) {
20510 goto bad;
20513 inet6++;
20514 break;
20515 case AF_UNSPEC:
20516 goto bad;
20517 break;
20518 default:
20519 /* another family support? */
20520 break;
20525 if (!(inet4 == 0 || inet4 == 2))
20526 goto bad;
20527 if (!(inet6 == 0 || inet6 == 2))
20528 goto bad;
20530 if (aitop)
20531 freeaddrinfo(aitop);
20532 return 0;
20534 bad:
20535 if (aitop)
20536 freeaddrinfo(aitop);
20537 return 1;
20540 _ACEOF
20541 rm -f conftest$ac_exeext
20542 if { (ac_try="$ac_link"
20543 case "(($ac_try" in
20544 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20545 *) ac_try_echo=$ac_try;;
20546 esac
20547 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20548 (eval "$ac_link") 2>&5
20549 ac_status=$?
20550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20551 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20552 { (case "(($ac_try" in
20553 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20554 *) ac_try_echo=$ac_try;;
20555 esac
20556 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20557 (eval "$ac_try") 2>&5
20558 ac_status=$?
20559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20560 (exit $ac_status); }; }; then
20561 ac_cv_buggy_getaddrinfo=no
20562 else
20563 echo "$as_me: program exited with status $ac_status" >&5
20564 echo "$as_me: failed program was:" >&5
20565 sed 's/^/| /' conftest.$ac_ext >&5
20567 ( exit $ac_status )
20568 ac_cv_buggy_getaddrinfo=yes
20570 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20578 if test $have_getaddrinfo = no -o $ac_cv_buggy_getaddrinfo = yes
20579 then
20580 if test $ipv6 = yes
20581 then
20582 echo 'Fatal: You must get working getaddrinfo() function.'
20583 echo ' or you can specify "--disable-ipv6"'.
20584 exit 1
20586 else
20588 cat >>confdefs.h <<\_ACEOF
20589 #define HAVE_GETADDRINFO 1
20590 _ACEOF
20594 for ac_func in getnameinfo
20596 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20597 { echo "$as_me:$LINENO: checking for $ac_func" >&5
20598 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
20599 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20600 echo $ECHO_N "(cached) $ECHO_C" >&6
20601 else
20602 cat >conftest.$ac_ext <<_ACEOF
20603 /* confdefs.h. */
20604 _ACEOF
20605 cat confdefs.h >>conftest.$ac_ext
20606 cat >>conftest.$ac_ext <<_ACEOF
20607 /* end confdefs.h. */
20608 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20609 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20610 #define $ac_func innocuous_$ac_func
20612 /* System header to define __stub macros and hopefully few prototypes,
20613 which can conflict with char $ac_func (); below.
20614 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20615 <limits.h> exists even on freestanding compilers. */
20617 #ifdef __STDC__
20618 # include <limits.h>
20619 #else
20620 # include <assert.h>
20621 #endif
20623 #undef $ac_func
20625 /* Override any GCC internal prototype to avoid an error.
20626 Use char because int might match the return type of a GCC
20627 builtin and then its argument prototype would still apply. */
20628 #ifdef __cplusplus
20629 extern "C"
20630 #endif
20631 char $ac_func ();
20632 /* The GNU C library defines this for functions which it implements
20633 to always fail with ENOSYS. Some functions are actually named
20634 something starting with __ and the normal name is an alias. */
20635 #if defined __stub_$ac_func || defined __stub___$ac_func
20636 choke me
20637 #endif
20640 main ()
20642 return $ac_func ();
20644 return 0;
20646 _ACEOF
20647 rm -f conftest.$ac_objext conftest$ac_exeext
20648 if { (ac_try="$ac_link"
20649 case "(($ac_try" in
20650 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20651 *) ac_try_echo=$ac_try;;
20652 esac
20653 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20654 (eval "$ac_link") 2>conftest.er1
20655 ac_status=$?
20656 grep -v '^ *+' conftest.er1 >conftest.err
20657 rm -f conftest.er1
20658 cat conftest.err >&5
20659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20660 (exit $ac_status); } && {
20661 test -z "$ac_c_werror_flag" ||
20662 test ! -s conftest.err
20663 } && test -s conftest$ac_exeext &&
20664 $as_test_x conftest$ac_exeext; then
20665 eval "$as_ac_var=yes"
20666 else
20667 echo "$as_me: failed program was:" >&5
20668 sed 's/^/| /' conftest.$ac_ext >&5
20670 eval "$as_ac_var=no"
20673 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20674 conftest$ac_exeext conftest.$ac_ext
20676 ac_res=`eval echo '${'$as_ac_var'}'`
20677 { echo "$as_me:$LINENO: result: $ac_res" >&5
20678 echo "${ECHO_T}$ac_res" >&6; }
20679 if test `eval echo '${'$as_ac_var'}'` = yes; then
20680 cat >>confdefs.h <<_ACEOF
20681 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20682 _ACEOF
20685 done
20688 # checks for structures
20689 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
20690 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
20691 if test "${ac_cv_header_time+set}" = set; then
20692 echo $ECHO_N "(cached) $ECHO_C" >&6
20693 else
20694 cat >conftest.$ac_ext <<_ACEOF
20695 /* confdefs.h. */
20696 _ACEOF
20697 cat confdefs.h >>conftest.$ac_ext
20698 cat >>conftest.$ac_ext <<_ACEOF
20699 /* end confdefs.h. */
20700 #include <sys/types.h>
20701 #include <sys/time.h>
20702 #include <time.h>
20705 main ()
20707 if ((struct tm *) 0)
20708 return 0;
20710 return 0;
20712 _ACEOF
20713 rm -f conftest.$ac_objext
20714 if { (ac_try="$ac_compile"
20715 case "(($ac_try" in
20716 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20717 *) ac_try_echo=$ac_try;;
20718 esac
20719 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20720 (eval "$ac_compile") 2>conftest.er1
20721 ac_status=$?
20722 grep -v '^ *+' conftest.er1 >conftest.err
20723 rm -f conftest.er1
20724 cat conftest.err >&5
20725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20726 (exit $ac_status); } && {
20727 test -z "$ac_c_werror_flag" ||
20728 test ! -s conftest.err
20729 } && test -s conftest.$ac_objext; then
20730 ac_cv_header_time=yes
20731 else
20732 echo "$as_me: failed program was:" >&5
20733 sed 's/^/| /' conftest.$ac_ext >&5
20735 ac_cv_header_time=no
20738 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20740 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
20741 echo "${ECHO_T}$ac_cv_header_time" >&6; }
20742 if test $ac_cv_header_time = yes; then
20744 cat >>confdefs.h <<\_ACEOF
20745 #define TIME_WITH_SYS_TIME 1
20746 _ACEOF
20750 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
20751 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
20752 if test "${ac_cv_struct_tm+set}" = set; then
20753 echo $ECHO_N "(cached) $ECHO_C" >&6
20754 else
20755 cat >conftest.$ac_ext <<_ACEOF
20756 /* confdefs.h. */
20757 _ACEOF
20758 cat confdefs.h >>conftest.$ac_ext
20759 cat >>conftest.$ac_ext <<_ACEOF
20760 /* end confdefs.h. */
20761 #include <sys/types.h>
20762 #include <time.h>
20765 main ()
20767 struct tm tm;
20768 int *p = &tm.tm_sec;
20769 return !p;
20771 return 0;
20773 _ACEOF
20774 rm -f conftest.$ac_objext
20775 if { (ac_try="$ac_compile"
20776 case "(($ac_try" in
20777 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20778 *) ac_try_echo=$ac_try;;
20779 esac
20780 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20781 (eval "$ac_compile") 2>conftest.er1
20782 ac_status=$?
20783 grep -v '^ *+' conftest.er1 >conftest.err
20784 rm -f conftest.er1
20785 cat conftest.err >&5
20786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20787 (exit $ac_status); } && {
20788 test -z "$ac_c_werror_flag" ||
20789 test ! -s conftest.err
20790 } && test -s conftest.$ac_objext; then
20791 ac_cv_struct_tm=time.h
20792 else
20793 echo "$as_me: failed program was:" >&5
20794 sed 's/^/| /' conftest.$ac_ext >&5
20796 ac_cv_struct_tm=sys/time.h
20799 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20801 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
20802 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
20803 if test $ac_cv_struct_tm = sys/time.h; then
20805 cat >>confdefs.h <<\_ACEOF
20806 #define TM_IN_SYS_TIME 1
20807 _ACEOF
20811 { echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
20812 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6; }
20813 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
20814 echo $ECHO_N "(cached) $ECHO_C" >&6
20815 else
20816 cat >conftest.$ac_ext <<_ACEOF
20817 /* confdefs.h. */
20818 _ACEOF
20819 cat confdefs.h >>conftest.$ac_ext
20820 cat >>conftest.$ac_ext <<_ACEOF
20821 /* end confdefs.h. */
20822 #include <sys/types.h>
20823 #include <$ac_cv_struct_tm>
20827 main ()
20829 static struct tm ac_aggr;
20830 if (ac_aggr.tm_zone)
20831 return 0;
20833 return 0;
20835 _ACEOF
20836 rm -f conftest.$ac_objext
20837 if { (ac_try="$ac_compile"
20838 case "(($ac_try" in
20839 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20840 *) ac_try_echo=$ac_try;;
20841 esac
20842 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20843 (eval "$ac_compile") 2>conftest.er1
20844 ac_status=$?
20845 grep -v '^ *+' conftest.er1 >conftest.err
20846 rm -f conftest.er1
20847 cat conftest.err >&5
20848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20849 (exit $ac_status); } && {
20850 test -z "$ac_c_werror_flag" ||
20851 test ! -s conftest.err
20852 } && test -s conftest.$ac_objext; then
20853 ac_cv_member_struct_tm_tm_zone=yes
20854 else
20855 echo "$as_me: failed program was:" >&5
20856 sed 's/^/| /' conftest.$ac_ext >&5
20858 cat >conftest.$ac_ext <<_ACEOF
20859 /* confdefs.h. */
20860 _ACEOF
20861 cat confdefs.h >>conftest.$ac_ext
20862 cat >>conftest.$ac_ext <<_ACEOF
20863 /* end confdefs.h. */
20864 #include <sys/types.h>
20865 #include <$ac_cv_struct_tm>
20869 main ()
20871 static struct tm ac_aggr;
20872 if (sizeof ac_aggr.tm_zone)
20873 return 0;
20875 return 0;
20877 _ACEOF
20878 rm -f conftest.$ac_objext
20879 if { (ac_try="$ac_compile"
20880 case "(($ac_try" in
20881 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20882 *) ac_try_echo=$ac_try;;
20883 esac
20884 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20885 (eval "$ac_compile") 2>conftest.er1
20886 ac_status=$?
20887 grep -v '^ *+' conftest.er1 >conftest.err
20888 rm -f conftest.er1
20889 cat conftest.err >&5
20890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20891 (exit $ac_status); } && {
20892 test -z "$ac_c_werror_flag" ||
20893 test ! -s conftest.err
20894 } && test -s conftest.$ac_objext; then
20895 ac_cv_member_struct_tm_tm_zone=yes
20896 else
20897 echo "$as_me: failed program was:" >&5
20898 sed 's/^/| /' conftest.$ac_ext >&5
20900 ac_cv_member_struct_tm_tm_zone=no
20903 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20906 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20908 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
20909 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6; }
20910 if test $ac_cv_member_struct_tm_tm_zone = yes; then
20912 cat >>confdefs.h <<_ACEOF
20913 #define HAVE_STRUCT_TM_TM_ZONE 1
20914 _ACEOF
20919 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
20921 cat >>confdefs.h <<\_ACEOF
20922 #define HAVE_TM_ZONE 1
20923 _ACEOF
20925 else
20926 { echo "$as_me:$LINENO: checking whether tzname is declared" >&5
20927 echo $ECHO_N "checking whether tzname is declared... $ECHO_C" >&6; }
20928 if test "${ac_cv_have_decl_tzname+set}" = set; then
20929 echo $ECHO_N "(cached) $ECHO_C" >&6
20930 else
20931 cat >conftest.$ac_ext <<_ACEOF
20932 /* confdefs.h. */
20933 _ACEOF
20934 cat confdefs.h >>conftest.$ac_ext
20935 cat >>conftest.$ac_ext <<_ACEOF
20936 /* end confdefs.h. */
20937 #include <time.h>
20940 main ()
20942 #ifndef tzname
20943 (void) tzname;
20944 #endif
20947 return 0;
20949 _ACEOF
20950 rm -f conftest.$ac_objext
20951 if { (ac_try="$ac_compile"
20952 case "(($ac_try" in
20953 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20954 *) ac_try_echo=$ac_try;;
20955 esac
20956 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20957 (eval "$ac_compile") 2>conftest.er1
20958 ac_status=$?
20959 grep -v '^ *+' conftest.er1 >conftest.err
20960 rm -f conftest.er1
20961 cat conftest.err >&5
20962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20963 (exit $ac_status); } && {
20964 test -z "$ac_c_werror_flag" ||
20965 test ! -s conftest.err
20966 } && test -s conftest.$ac_objext; then
20967 ac_cv_have_decl_tzname=yes
20968 else
20969 echo "$as_me: failed program was:" >&5
20970 sed 's/^/| /' conftest.$ac_ext >&5
20972 ac_cv_have_decl_tzname=no
20975 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20977 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_tzname" >&5
20978 echo "${ECHO_T}$ac_cv_have_decl_tzname" >&6; }
20979 if test $ac_cv_have_decl_tzname = yes; then
20981 cat >>confdefs.h <<_ACEOF
20982 #define HAVE_DECL_TZNAME 1
20983 _ACEOF
20986 else
20987 cat >>confdefs.h <<_ACEOF
20988 #define HAVE_DECL_TZNAME 0
20989 _ACEOF
20995 { echo "$as_me:$LINENO: checking for tzname" >&5
20996 echo $ECHO_N "checking for tzname... $ECHO_C" >&6; }
20997 if test "${ac_cv_var_tzname+set}" = set; then
20998 echo $ECHO_N "(cached) $ECHO_C" >&6
20999 else
21000 cat >conftest.$ac_ext <<_ACEOF
21001 /* confdefs.h. */
21002 _ACEOF
21003 cat confdefs.h >>conftest.$ac_ext
21004 cat >>conftest.$ac_ext <<_ACEOF
21005 /* end confdefs.h. */
21006 #include <time.h>
21007 #if !HAVE_DECL_TZNAME
21008 extern char *tzname[];
21009 #endif
21012 main ()
21014 return tzname[0][0];
21016 return 0;
21018 _ACEOF
21019 rm -f conftest.$ac_objext conftest$ac_exeext
21020 if { (ac_try="$ac_link"
21021 case "(($ac_try" in
21022 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21023 *) ac_try_echo=$ac_try;;
21024 esac
21025 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21026 (eval "$ac_link") 2>conftest.er1
21027 ac_status=$?
21028 grep -v '^ *+' conftest.er1 >conftest.err
21029 rm -f conftest.er1
21030 cat conftest.err >&5
21031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21032 (exit $ac_status); } && {
21033 test -z "$ac_c_werror_flag" ||
21034 test ! -s conftest.err
21035 } && test -s conftest$ac_exeext &&
21036 $as_test_x conftest$ac_exeext; then
21037 ac_cv_var_tzname=yes
21038 else
21039 echo "$as_me: failed program was:" >&5
21040 sed 's/^/| /' conftest.$ac_ext >&5
21042 ac_cv_var_tzname=no
21045 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21046 conftest$ac_exeext conftest.$ac_ext
21048 { echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
21049 echo "${ECHO_T}$ac_cv_var_tzname" >&6; }
21050 if test $ac_cv_var_tzname = yes; then
21052 cat >>confdefs.h <<\_ACEOF
21053 #define HAVE_TZNAME 1
21054 _ACEOF
21059 { echo "$as_me:$LINENO: checking for struct stat.st_rdev" >&5
21060 echo $ECHO_N "checking for struct stat.st_rdev... $ECHO_C" >&6; }
21061 if test "${ac_cv_member_struct_stat_st_rdev+set}" = set; then
21062 echo $ECHO_N "(cached) $ECHO_C" >&6
21063 else
21064 cat >conftest.$ac_ext <<_ACEOF
21065 /* confdefs.h. */
21066 _ACEOF
21067 cat confdefs.h >>conftest.$ac_ext
21068 cat >>conftest.$ac_ext <<_ACEOF
21069 /* end confdefs.h. */
21070 $ac_includes_default
21072 main ()
21074 static struct stat ac_aggr;
21075 if (ac_aggr.st_rdev)
21076 return 0;
21078 return 0;
21080 _ACEOF
21081 rm -f conftest.$ac_objext
21082 if { (ac_try="$ac_compile"
21083 case "(($ac_try" in
21084 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21085 *) ac_try_echo=$ac_try;;
21086 esac
21087 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21088 (eval "$ac_compile") 2>conftest.er1
21089 ac_status=$?
21090 grep -v '^ *+' conftest.er1 >conftest.err
21091 rm -f conftest.er1
21092 cat conftest.err >&5
21093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21094 (exit $ac_status); } && {
21095 test -z "$ac_c_werror_flag" ||
21096 test ! -s conftest.err
21097 } && test -s conftest.$ac_objext; then
21098 ac_cv_member_struct_stat_st_rdev=yes
21099 else
21100 echo "$as_me: failed program was:" >&5
21101 sed 's/^/| /' conftest.$ac_ext >&5
21103 cat >conftest.$ac_ext <<_ACEOF
21104 /* confdefs.h. */
21105 _ACEOF
21106 cat confdefs.h >>conftest.$ac_ext
21107 cat >>conftest.$ac_ext <<_ACEOF
21108 /* end confdefs.h. */
21109 $ac_includes_default
21111 main ()
21113 static struct stat ac_aggr;
21114 if (sizeof ac_aggr.st_rdev)
21115 return 0;
21117 return 0;
21119 _ACEOF
21120 rm -f conftest.$ac_objext
21121 if { (ac_try="$ac_compile"
21122 case "(($ac_try" in
21123 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21124 *) ac_try_echo=$ac_try;;
21125 esac
21126 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21127 (eval "$ac_compile") 2>conftest.er1
21128 ac_status=$?
21129 grep -v '^ *+' conftest.er1 >conftest.err
21130 rm -f conftest.er1
21131 cat conftest.err >&5
21132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21133 (exit $ac_status); } && {
21134 test -z "$ac_c_werror_flag" ||
21135 test ! -s conftest.err
21136 } && test -s conftest.$ac_objext; then
21137 ac_cv_member_struct_stat_st_rdev=yes
21138 else
21139 echo "$as_me: failed program was:" >&5
21140 sed 's/^/| /' conftest.$ac_ext >&5
21142 ac_cv_member_struct_stat_st_rdev=no
21145 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21148 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21150 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_rdev" >&5
21151 echo "${ECHO_T}$ac_cv_member_struct_stat_st_rdev" >&6; }
21152 if test $ac_cv_member_struct_stat_st_rdev = yes; then
21154 cat >>confdefs.h <<_ACEOF
21155 #define HAVE_STRUCT_STAT_ST_RDEV 1
21156 _ACEOF
21161 { echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5
21162 echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6; }
21163 if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then
21164 echo $ECHO_N "(cached) $ECHO_C" >&6
21165 else
21166 cat >conftest.$ac_ext <<_ACEOF
21167 /* confdefs.h. */
21168 _ACEOF
21169 cat confdefs.h >>conftest.$ac_ext
21170 cat >>conftest.$ac_ext <<_ACEOF
21171 /* end confdefs.h. */
21172 $ac_includes_default
21174 main ()
21176 static struct stat ac_aggr;
21177 if (ac_aggr.st_blksize)
21178 return 0;
21180 return 0;
21182 _ACEOF
21183 rm -f conftest.$ac_objext
21184 if { (ac_try="$ac_compile"
21185 case "(($ac_try" in
21186 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21187 *) ac_try_echo=$ac_try;;
21188 esac
21189 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21190 (eval "$ac_compile") 2>conftest.er1
21191 ac_status=$?
21192 grep -v '^ *+' conftest.er1 >conftest.err
21193 rm -f conftest.er1
21194 cat conftest.err >&5
21195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21196 (exit $ac_status); } && {
21197 test -z "$ac_c_werror_flag" ||
21198 test ! -s conftest.err
21199 } && test -s conftest.$ac_objext; then
21200 ac_cv_member_struct_stat_st_blksize=yes
21201 else
21202 echo "$as_me: failed program was:" >&5
21203 sed 's/^/| /' conftest.$ac_ext >&5
21205 cat >conftest.$ac_ext <<_ACEOF
21206 /* confdefs.h. */
21207 _ACEOF
21208 cat confdefs.h >>conftest.$ac_ext
21209 cat >>conftest.$ac_ext <<_ACEOF
21210 /* end confdefs.h. */
21211 $ac_includes_default
21213 main ()
21215 static struct stat ac_aggr;
21216 if (sizeof ac_aggr.st_blksize)
21217 return 0;
21219 return 0;
21221 _ACEOF
21222 rm -f conftest.$ac_objext
21223 if { (ac_try="$ac_compile"
21224 case "(($ac_try" in
21225 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21226 *) ac_try_echo=$ac_try;;
21227 esac
21228 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21229 (eval "$ac_compile") 2>conftest.er1
21230 ac_status=$?
21231 grep -v '^ *+' conftest.er1 >conftest.err
21232 rm -f conftest.er1
21233 cat conftest.err >&5
21234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21235 (exit $ac_status); } && {
21236 test -z "$ac_c_werror_flag" ||
21237 test ! -s conftest.err
21238 } && test -s conftest.$ac_objext; then
21239 ac_cv_member_struct_stat_st_blksize=yes
21240 else
21241 echo "$as_me: failed program was:" >&5
21242 sed 's/^/| /' conftest.$ac_ext >&5
21244 ac_cv_member_struct_stat_st_blksize=no
21247 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21250 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21252 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5
21253 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6; }
21254 if test $ac_cv_member_struct_stat_st_blksize = yes; then
21256 cat >>confdefs.h <<_ACEOF
21257 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
21258 _ACEOF
21263 { echo "$as_me:$LINENO: checking for struct stat.st_flags" >&5
21264 echo $ECHO_N "checking for struct stat.st_flags... $ECHO_C" >&6; }
21265 if test "${ac_cv_member_struct_stat_st_flags+set}" = set; then
21266 echo $ECHO_N "(cached) $ECHO_C" >&6
21267 else
21268 cat >conftest.$ac_ext <<_ACEOF
21269 /* confdefs.h. */
21270 _ACEOF
21271 cat confdefs.h >>conftest.$ac_ext
21272 cat >>conftest.$ac_ext <<_ACEOF
21273 /* end confdefs.h. */
21274 $ac_includes_default
21276 main ()
21278 static struct stat ac_aggr;
21279 if (ac_aggr.st_flags)
21280 return 0;
21282 return 0;
21284 _ACEOF
21285 rm -f conftest.$ac_objext
21286 if { (ac_try="$ac_compile"
21287 case "(($ac_try" in
21288 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21289 *) ac_try_echo=$ac_try;;
21290 esac
21291 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21292 (eval "$ac_compile") 2>conftest.er1
21293 ac_status=$?
21294 grep -v '^ *+' conftest.er1 >conftest.err
21295 rm -f conftest.er1
21296 cat conftest.err >&5
21297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21298 (exit $ac_status); } && {
21299 test -z "$ac_c_werror_flag" ||
21300 test ! -s conftest.err
21301 } && test -s conftest.$ac_objext; then
21302 ac_cv_member_struct_stat_st_flags=yes
21303 else
21304 echo "$as_me: failed program was:" >&5
21305 sed 's/^/| /' conftest.$ac_ext >&5
21307 cat >conftest.$ac_ext <<_ACEOF
21308 /* confdefs.h. */
21309 _ACEOF
21310 cat confdefs.h >>conftest.$ac_ext
21311 cat >>conftest.$ac_ext <<_ACEOF
21312 /* end confdefs.h. */
21313 $ac_includes_default
21315 main ()
21317 static struct stat ac_aggr;
21318 if (sizeof ac_aggr.st_flags)
21319 return 0;
21321 return 0;
21323 _ACEOF
21324 rm -f conftest.$ac_objext
21325 if { (ac_try="$ac_compile"
21326 case "(($ac_try" in
21327 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21328 *) ac_try_echo=$ac_try;;
21329 esac
21330 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21331 (eval "$ac_compile") 2>conftest.er1
21332 ac_status=$?
21333 grep -v '^ *+' conftest.er1 >conftest.err
21334 rm -f conftest.er1
21335 cat conftest.err >&5
21336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21337 (exit $ac_status); } && {
21338 test -z "$ac_c_werror_flag" ||
21339 test ! -s conftest.err
21340 } && test -s conftest.$ac_objext; then
21341 ac_cv_member_struct_stat_st_flags=yes
21342 else
21343 echo "$as_me: failed program was:" >&5
21344 sed 's/^/| /' conftest.$ac_ext >&5
21346 ac_cv_member_struct_stat_st_flags=no
21349 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21352 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21354 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_flags" >&5
21355 echo "${ECHO_T}$ac_cv_member_struct_stat_st_flags" >&6; }
21356 if test $ac_cv_member_struct_stat_st_flags = yes; then
21358 cat >>confdefs.h <<_ACEOF
21359 #define HAVE_STRUCT_STAT_ST_FLAGS 1
21360 _ACEOF
21365 { echo "$as_me:$LINENO: checking for struct stat.st_gen" >&5
21366 echo $ECHO_N "checking for struct stat.st_gen... $ECHO_C" >&6; }
21367 if test "${ac_cv_member_struct_stat_st_gen+set}" = set; then
21368 echo $ECHO_N "(cached) $ECHO_C" >&6
21369 else
21370 cat >conftest.$ac_ext <<_ACEOF
21371 /* confdefs.h. */
21372 _ACEOF
21373 cat confdefs.h >>conftest.$ac_ext
21374 cat >>conftest.$ac_ext <<_ACEOF
21375 /* end confdefs.h. */
21376 $ac_includes_default
21378 main ()
21380 static struct stat ac_aggr;
21381 if (ac_aggr.st_gen)
21382 return 0;
21384 return 0;
21386 _ACEOF
21387 rm -f conftest.$ac_objext
21388 if { (ac_try="$ac_compile"
21389 case "(($ac_try" in
21390 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21391 *) ac_try_echo=$ac_try;;
21392 esac
21393 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21394 (eval "$ac_compile") 2>conftest.er1
21395 ac_status=$?
21396 grep -v '^ *+' conftest.er1 >conftest.err
21397 rm -f conftest.er1
21398 cat conftest.err >&5
21399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21400 (exit $ac_status); } && {
21401 test -z "$ac_c_werror_flag" ||
21402 test ! -s conftest.err
21403 } && test -s conftest.$ac_objext; then
21404 ac_cv_member_struct_stat_st_gen=yes
21405 else
21406 echo "$as_me: failed program was:" >&5
21407 sed 's/^/| /' conftest.$ac_ext >&5
21409 cat >conftest.$ac_ext <<_ACEOF
21410 /* confdefs.h. */
21411 _ACEOF
21412 cat confdefs.h >>conftest.$ac_ext
21413 cat >>conftest.$ac_ext <<_ACEOF
21414 /* end confdefs.h. */
21415 $ac_includes_default
21417 main ()
21419 static struct stat ac_aggr;
21420 if (sizeof ac_aggr.st_gen)
21421 return 0;
21423 return 0;
21425 _ACEOF
21426 rm -f conftest.$ac_objext
21427 if { (ac_try="$ac_compile"
21428 case "(($ac_try" in
21429 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21430 *) ac_try_echo=$ac_try;;
21431 esac
21432 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21433 (eval "$ac_compile") 2>conftest.er1
21434 ac_status=$?
21435 grep -v '^ *+' conftest.er1 >conftest.err
21436 rm -f conftest.er1
21437 cat conftest.err >&5
21438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21439 (exit $ac_status); } && {
21440 test -z "$ac_c_werror_flag" ||
21441 test ! -s conftest.err
21442 } && test -s conftest.$ac_objext; then
21443 ac_cv_member_struct_stat_st_gen=yes
21444 else
21445 echo "$as_me: failed program was:" >&5
21446 sed 's/^/| /' conftest.$ac_ext >&5
21448 ac_cv_member_struct_stat_st_gen=no
21451 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21454 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21456 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_gen" >&5
21457 echo "${ECHO_T}$ac_cv_member_struct_stat_st_gen" >&6; }
21458 if test $ac_cv_member_struct_stat_st_gen = yes; then
21460 cat >>confdefs.h <<_ACEOF
21461 #define HAVE_STRUCT_STAT_ST_GEN 1
21462 _ACEOF
21467 { echo "$as_me:$LINENO: checking for struct stat.st_birthtime" >&5
21468 echo $ECHO_N "checking for struct stat.st_birthtime... $ECHO_C" >&6; }
21469 if test "${ac_cv_member_struct_stat_st_birthtime+set}" = set; then
21470 echo $ECHO_N "(cached) $ECHO_C" >&6
21471 else
21472 cat >conftest.$ac_ext <<_ACEOF
21473 /* confdefs.h. */
21474 _ACEOF
21475 cat confdefs.h >>conftest.$ac_ext
21476 cat >>conftest.$ac_ext <<_ACEOF
21477 /* end confdefs.h. */
21478 $ac_includes_default
21480 main ()
21482 static struct stat ac_aggr;
21483 if (ac_aggr.st_birthtime)
21484 return 0;
21486 return 0;
21488 _ACEOF
21489 rm -f conftest.$ac_objext
21490 if { (ac_try="$ac_compile"
21491 case "(($ac_try" in
21492 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21493 *) ac_try_echo=$ac_try;;
21494 esac
21495 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21496 (eval "$ac_compile") 2>conftest.er1
21497 ac_status=$?
21498 grep -v '^ *+' conftest.er1 >conftest.err
21499 rm -f conftest.er1
21500 cat conftest.err >&5
21501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21502 (exit $ac_status); } && {
21503 test -z "$ac_c_werror_flag" ||
21504 test ! -s conftest.err
21505 } && test -s conftest.$ac_objext; then
21506 ac_cv_member_struct_stat_st_birthtime=yes
21507 else
21508 echo "$as_me: failed program was:" >&5
21509 sed 's/^/| /' conftest.$ac_ext >&5
21511 cat >conftest.$ac_ext <<_ACEOF
21512 /* confdefs.h. */
21513 _ACEOF
21514 cat confdefs.h >>conftest.$ac_ext
21515 cat >>conftest.$ac_ext <<_ACEOF
21516 /* end confdefs.h. */
21517 $ac_includes_default
21519 main ()
21521 static struct stat ac_aggr;
21522 if (sizeof ac_aggr.st_birthtime)
21523 return 0;
21525 return 0;
21527 _ACEOF
21528 rm -f conftest.$ac_objext
21529 if { (ac_try="$ac_compile"
21530 case "(($ac_try" in
21531 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21532 *) ac_try_echo=$ac_try;;
21533 esac
21534 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21535 (eval "$ac_compile") 2>conftest.er1
21536 ac_status=$?
21537 grep -v '^ *+' conftest.er1 >conftest.err
21538 rm -f conftest.er1
21539 cat conftest.err >&5
21540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21541 (exit $ac_status); } && {
21542 test -z "$ac_c_werror_flag" ||
21543 test ! -s conftest.err
21544 } && test -s conftest.$ac_objext; then
21545 ac_cv_member_struct_stat_st_birthtime=yes
21546 else
21547 echo "$as_me: failed program was:" >&5
21548 sed 's/^/| /' conftest.$ac_ext >&5
21550 ac_cv_member_struct_stat_st_birthtime=no
21553 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21556 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21558 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_birthtime" >&5
21559 echo "${ECHO_T}$ac_cv_member_struct_stat_st_birthtime" >&6; }
21560 if test $ac_cv_member_struct_stat_st_birthtime = yes; then
21562 cat >>confdefs.h <<_ACEOF
21563 #define HAVE_STRUCT_STAT_ST_BIRTHTIME 1
21564 _ACEOF
21569 { echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
21570 echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6; }
21571 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
21572 echo $ECHO_N "(cached) $ECHO_C" >&6
21573 else
21574 cat >conftest.$ac_ext <<_ACEOF
21575 /* confdefs.h. */
21576 _ACEOF
21577 cat confdefs.h >>conftest.$ac_ext
21578 cat >>conftest.$ac_ext <<_ACEOF
21579 /* end confdefs.h. */
21580 $ac_includes_default
21582 main ()
21584 static struct stat ac_aggr;
21585 if (ac_aggr.st_blocks)
21586 return 0;
21588 return 0;
21590 _ACEOF
21591 rm -f conftest.$ac_objext
21592 if { (ac_try="$ac_compile"
21593 case "(($ac_try" in
21594 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21595 *) ac_try_echo=$ac_try;;
21596 esac
21597 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21598 (eval "$ac_compile") 2>conftest.er1
21599 ac_status=$?
21600 grep -v '^ *+' conftest.er1 >conftest.err
21601 rm -f conftest.er1
21602 cat conftest.err >&5
21603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21604 (exit $ac_status); } && {
21605 test -z "$ac_c_werror_flag" ||
21606 test ! -s conftest.err
21607 } && test -s conftest.$ac_objext; then
21608 ac_cv_member_struct_stat_st_blocks=yes
21609 else
21610 echo "$as_me: failed program was:" >&5
21611 sed 's/^/| /' conftest.$ac_ext >&5
21613 cat >conftest.$ac_ext <<_ACEOF
21614 /* confdefs.h. */
21615 _ACEOF
21616 cat confdefs.h >>conftest.$ac_ext
21617 cat >>conftest.$ac_ext <<_ACEOF
21618 /* end confdefs.h. */
21619 $ac_includes_default
21621 main ()
21623 static struct stat ac_aggr;
21624 if (sizeof ac_aggr.st_blocks)
21625 return 0;
21627 return 0;
21629 _ACEOF
21630 rm -f conftest.$ac_objext
21631 if { (ac_try="$ac_compile"
21632 case "(($ac_try" in
21633 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21634 *) ac_try_echo=$ac_try;;
21635 esac
21636 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21637 (eval "$ac_compile") 2>conftest.er1
21638 ac_status=$?
21639 grep -v '^ *+' conftest.er1 >conftest.err
21640 rm -f conftest.er1
21641 cat conftest.err >&5
21642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21643 (exit $ac_status); } && {
21644 test -z "$ac_c_werror_flag" ||
21645 test ! -s conftest.err
21646 } && test -s conftest.$ac_objext; then
21647 ac_cv_member_struct_stat_st_blocks=yes
21648 else
21649 echo "$as_me: failed program was:" >&5
21650 sed 's/^/| /' conftest.$ac_ext >&5
21652 ac_cv_member_struct_stat_st_blocks=no
21655 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21658 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21660 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
21661 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6; }
21662 if test $ac_cv_member_struct_stat_st_blocks = yes; then
21664 cat >>confdefs.h <<_ACEOF
21665 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
21666 _ACEOF
21669 cat >>confdefs.h <<\_ACEOF
21670 #define HAVE_ST_BLOCKS 1
21671 _ACEOF
21673 else
21674 case " $LIBOBJS " in
21675 *" fileblocks.$ac_objext "* ) ;;
21676 *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext"
21678 esac
21684 { echo "$as_me:$LINENO: checking for time.h that defines altzone" >&5
21685 echo $ECHO_N "checking for time.h that defines altzone... $ECHO_C" >&6; }
21686 if test "${ac_cv_header_time_altzone+set}" = set; then
21687 echo $ECHO_N "(cached) $ECHO_C" >&6
21688 else
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 <time.h>
21697 main ()
21699 return altzone;
21701 return 0;
21703 _ACEOF
21704 rm -f conftest.$ac_objext
21705 if { (ac_try="$ac_compile"
21706 case "(($ac_try" in
21707 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21708 *) ac_try_echo=$ac_try;;
21709 esac
21710 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21711 (eval "$ac_compile") 2>conftest.er1
21712 ac_status=$?
21713 grep -v '^ *+' conftest.er1 >conftest.err
21714 rm -f conftest.er1
21715 cat conftest.err >&5
21716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21717 (exit $ac_status); } && {
21718 test -z "$ac_c_werror_flag" ||
21719 test ! -s conftest.err
21720 } && test -s conftest.$ac_objext; then
21721 ac_cv_header_time_altzone=yes
21722 else
21723 echo "$as_me: failed program was:" >&5
21724 sed 's/^/| /' conftest.$ac_ext >&5
21726 ac_cv_header_time_altzone=no
21729 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21732 { echo "$as_me:$LINENO: result: $ac_cv_header_time_altzone" >&5
21733 echo "${ECHO_T}$ac_cv_header_time_altzone" >&6; }
21734 if test $ac_cv_header_time_altzone = yes; then
21736 cat >>confdefs.h <<\_ACEOF
21737 #define HAVE_ALTZONE 1
21738 _ACEOF
21742 was_it_defined=no
21743 { echo "$as_me:$LINENO: checking whether sys/select.h and sys/time.h may both be included" >&5
21744 echo $ECHO_N "checking whether sys/select.h and sys/time.h may both be included... $ECHO_C" >&6; }
21745 cat >conftest.$ac_ext <<_ACEOF
21746 /* confdefs.h. */
21747 _ACEOF
21748 cat confdefs.h >>conftest.$ac_ext
21749 cat >>conftest.$ac_ext <<_ACEOF
21750 /* end confdefs.h. */
21752 #include <sys/types.h>
21753 #include <sys/select.h>
21754 #include <sys/time.h>
21757 main ()
21761 return 0;
21763 _ACEOF
21764 rm -f conftest.$ac_objext
21765 if { (ac_try="$ac_compile"
21766 case "(($ac_try" in
21767 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21768 *) ac_try_echo=$ac_try;;
21769 esac
21770 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21771 (eval "$ac_compile") 2>conftest.er1
21772 ac_status=$?
21773 grep -v '^ *+' conftest.er1 >conftest.err
21774 rm -f conftest.er1
21775 cat conftest.err >&5
21776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21777 (exit $ac_status); } && {
21778 test -z "$ac_c_werror_flag" ||
21779 test ! -s conftest.err
21780 } && test -s conftest.$ac_objext; then
21783 cat >>confdefs.h <<\_ACEOF
21784 #define SYS_SELECT_WITH_SYS_TIME 1
21785 _ACEOF
21787 was_it_defined=yes
21789 else
21790 echo "$as_me: failed program was:" >&5
21791 sed 's/^/| /' conftest.$ac_ext >&5
21796 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21797 { echo "$as_me:$LINENO: result: $was_it_defined" >&5
21798 echo "${ECHO_T}$was_it_defined" >&6; }
21800 { echo "$as_me:$LINENO: checking for addrinfo" >&5
21801 echo $ECHO_N "checking for addrinfo... $ECHO_C" >&6; }
21802 if test "${ac_cv_struct_addrinfo+set}" = set; then
21803 echo $ECHO_N "(cached) $ECHO_C" >&6
21804 else
21805 cat >conftest.$ac_ext <<_ACEOF
21806 /* confdefs.h. */
21807 _ACEOF
21808 cat confdefs.h >>conftest.$ac_ext
21809 cat >>conftest.$ac_ext <<_ACEOF
21810 /* end confdefs.h. */
21812 # include <netdb.h>
21814 main ()
21816 struct addrinfo a
21818 return 0;
21820 _ACEOF
21821 rm -f conftest.$ac_objext
21822 if { (ac_try="$ac_compile"
21823 case "(($ac_try" in
21824 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21825 *) ac_try_echo=$ac_try;;
21826 esac
21827 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21828 (eval "$ac_compile") 2>conftest.er1
21829 ac_status=$?
21830 grep -v '^ *+' conftest.er1 >conftest.err
21831 rm -f conftest.er1
21832 cat conftest.err >&5
21833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21834 (exit $ac_status); } && {
21835 test -z "$ac_c_werror_flag" ||
21836 test ! -s conftest.err
21837 } && test -s conftest.$ac_objext; then
21838 ac_cv_struct_addrinfo=yes
21839 else
21840 echo "$as_me: failed program was:" >&5
21841 sed 's/^/| /' conftest.$ac_ext >&5
21843 ac_cv_struct_addrinfo=no
21846 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21849 { echo "$as_me:$LINENO: result: $ac_cv_struct_addrinfo" >&5
21850 echo "${ECHO_T}$ac_cv_struct_addrinfo" >&6; }
21851 if test $ac_cv_struct_addrinfo = yes; then
21853 cat >>confdefs.h <<\_ACEOF
21854 #define HAVE_ADDRINFO 1
21855 _ACEOF
21859 { echo "$as_me:$LINENO: checking for sockaddr_storage" >&5
21860 echo $ECHO_N "checking for sockaddr_storage... $ECHO_C" >&6; }
21861 if test "${ac_cv_struct_sockaddr_storage+set}" = set; then
21862 echo $ECHO_N "(cached) $ECHO_C" >&6
21863 else
21864 cat >conftest.$ac_ext <<_ACEOF
21865 /* confdefs.h. */
21866 _ACEOF
21867 cat confdefs.h >>conftest.$ac_ext
21868 cat >>conftest.$ac_ext <<_ACEOF
21869 /* end confdefs.h. */
21871 # include <sys/types.h>
21872 # include <sys/socket.h>
21874 main ()
21876 struct sockaddr_storage s
21878 return 0;
21880 _ACEOF
21881 rm -f conftest.$ac_objext
21882 if { (ac_try="$ac_compile"
21883 case "(($ac_try" in
21884 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21885 *) ac_try_echo=$ac_try;;
21886 esac
21887 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21888 (eval "$ac_compile") 2>conftest.er1
21889 ac_status=$?
21890 grep -v '^ *+' conftest.er1 >conftest.err
21891 rm -f conftest.er1
21892 cat conftest.err >&5
21893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21894 (exit $ac_status); } && {
21895 test -z "$ac_c_werror_flag" ||
21896 test ! -s conftest.err
21897 } && test -s conftest.$ac_objext; then
21898 ac_cv_struct_sockaddr_storage=yes
21899 else
21900 echo "$as_me: failed program was:" >&5
21901 sed 's/^/| /' conftest.$ac_ext >&5
21903 ac_cv_struct_sockaddr_storage=no
21906 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21909 { echo "$as_me:$LINENO: result: $ac_cv_struct_sockaddr_storage" >&5
21910 echo "${ECHO_T}$ac_cv_struct_sockaddr_storage" >&6; }
21911 if test $ac_cv_struct_sockaddr_storage = yes; then
21913 cat >>confdefs.h <<\_ACEOF
21914 #define HAVE_SOCKADDR_STORAGE 1
21915 _ACEOF
21919 # checks for compiler characteristics
21922 { echo "$as_me:$LINENO: checking whether char is unsigned" >&5
21923 echo $ECHO_N "checking whether char is unsigned... $ECHO_C" >&6; }
21924 if test "${ac_cv_c_char_unsigned+set}" = set; then
21925 echo $ECHO_N "(cached) $ECHO_C" >&6
21926 else
21927 cat >conftest.$ac_ext <<_ACEOF
21928 /* confdefs.h. */
21929 _ACEOF
21930 cat confdefs.h >>conftest.$ac_ext
21931 cat >>conftest.$ac_ext <<_ACEOF
21932 /* end confdefs.h. */
21933 $ac_includes_default
21935 main ()
21937 static int test_array [1 - 2 * !(((char) -1) < 0)];
21938 test_array [0] = 0
21941 return 0;
21943 _ACEOF
21944 rm -f conftest.$ac_objext
21945 if { (ac_try="$ac_compile"
21946 case "(($ac_try" in
21947 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21948 *) ac_try_echo=$ac_try;;
21949 esac
21950 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21951 (eval "$ac_compile") 2>conftest.er1
21952 ac_status=$?
21953 grep -v '^ *+' conftest.er1 >conftest.err
21954 rm -f conftest.er1
21955 cat conftest.err >&5
21956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21957 (exit $ac_status); } && {
21958 test -z "$ac_c_werror_flag" ||
21959 test ! -s conftest.err
21960 } && test -s conftest.$ac_objext; then
21961 ac_cv_c_char_unsigned=no
21962 else
21963 echo "$as_me: failed program was:" >&5
21964 sed 's/^/| /' conftest.$ac_ext >&5
21966 ac_cv_c_char_unsigned=yes
21969 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21971 { echo "$as_me:$LINENO: result: $ac_cv_c_char_unsigned" >&5
21972 echo "${ECHO_T}$ac_cv_c_char_unsigned" >&6; }
21973 if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then
21974 cat >>confdefs.h <<\_ACEOF
21975 #define __CHAR_UNSIGNED__ 1
21976 _ACEOF
21980 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
21981 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
21982 if test "${ac_cv_c_const+set}" = set; then
21983 echo $ECHO_N "(cached) $ECHO_C" >&6
21984 else
21985 cat >conftest.$ac_ext <<_ACEOF
21986 /* confdefs.h. */
21987 _ACEOF
21988 cat confdefs.h >>conftest.$ac_ext
21989 cat >>conftest.$ac_ext <<_ACEOF
21990 /* end confdefs.h. */
21993 main ()
21995 /* FIXME: Include the comments suggested by Paul. */
21996 #ifndef __cplusplus
21997 /* Ultrix mips cc rejects this. */
21998 typedef int charset[2];
21999 const charset cs;
22000 /* SunOS 4.1.1 cc rejects this. */
22001 char const *const *pcpcc;
22002 char **ppc;
22003 /* NEC SVR4.0.2 mips cc rejects this. */
22004 struct point {int x, y;};
22005 static struct point const zero = {0,0};
22006 /* AIX XL C 1.02.0.0 rejects this.
22007 It does not let you subtract one const X* pointer from another in
22008 an arm of an if-expression whose if-part is not a constant
22009 expression */
22010 const char *g = "string";
22011 pcpcc = &g + (g ? g-g : 0);
22012 /* HPUX 7.0 cc rejects these. */
22013 ++pcpcc;
22014 ppc = (char**) pcpcc;
22015 pcpcc = (char const *const *) ppc;
22016 { /* SCO 3.2v4 cc rejects this. */
22017 char *t;
22018 char const *s = 0 ? (char *) 0 : (char const *) 0;
22020 *t++ = 0;
22021 if (s) return 0;
22023 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
22024 int x[] = {25, 17};
22025 const int *foo = &x[0];
22026 ++foo;
22028 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
22029 typedef const int *iptr;
22030 iptr p = 0;
22031 ++p;
22033 { /* AIX XL C 1.02.0.0 rejects this saying
22034 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
22035 struct s { int j; const int *ap[3]; };
22036 struct s *b; b->j = 5;
22038 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
22039 const int foo = 10;
22040 if (!foo) return 0;
22042 return !cs[0] && !zero.x;
22043 #endif
22046 return 0;
22048 _ACEOF
22049 rm -f conftest.$ac_objext
22050 if { (ac_try="$ac_compile"
22051 case "(($ac_try" in
22052 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22053 *) ac_try_echo=$ac_try;;
22054 esac
22055 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22056 (eval "$ac_compile") 2>conftest.er1
22057 ac_status=$?
22058 grep -v '^ *+' conftest.er1 >conftest.err
22059 rm -f conftest.er1
22060 cat conftest.err >&5
22061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22062 (exit $ac_status); } && {
22063 test -z "$ac_c_werror_flag" ||
22064 test ! -s conftest.err
22065 } && test -s conftest.$ac_objext; then
22066 ac_cv_c_const=yes
22067 else
22068 echo "$as_me: failed program was:" >&5
22069 sed 's/^/| /' conftest.$ac_ext >&5
22071 ac_cv_c_const=no
22074 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22076 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
22077 echo "${ECHO_T}$ac_cv_c_const" >&6; }
22078 if test $ac_cv_c_const = no; then
22080 cat >>confdefs.h <<\_ACEOF
22081 #define const
22082 _ACEOF
22087 works=no
22088 { echo "$as_me:$LINENO: checking for working volatile" >&5
22089 echo $ECHO_N "checking for working volatile... $ECHO_C" >&6; }
22090 cat >conftest.$ac_ext <<_ACEOF
22091 /* confdefs.h. */
22092 _ACEOF
22093 cat confdefs.h >>conftest.$ac_ext
22094 cat >>conftest.$ac_ext <<_ACEOF
22095 /* end confdefs.h. */
22098 main ()
22100 volatile int x; x = 0;
22102 return 0;
22104 _ACEOF
22105 rm -f conftest.$ac_objext
22106 if { (ac_try="$ac_compile"
22107 case "(($ac_try" in
22108 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22109 *) ac_try_echo=$ac_try;;
22110 esac
22111 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22112 (eval "$ac_compile") 2>conftest.er1
22113 ac_status=$?
22114 grep -v '^ *+' conftest.er1 >conftest.err
22115 rm -f conftest.er1
22116 cat conftest.err >&5
22117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22118 (exit $ac_status); } && {
22119 test -z "$ac_c_werror_flag" ||
22120 test ! -s conftest.err
22121 } && test -s conftest.$ac_objext; then
22122 works=yes
22123 else
22124 echo "$as_me: failed program was:" >&5
22125 sed 's/^/| /' conftest.$ac_ext >&5
22128 cat >>confdefs.h <<\_ACEOF
22129 #define volatile
22130 _ACEOF
22135 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22136 { echo "$as_me:$LINENO: result: $works" >&5
22137 echo "${ECHO_T}$works" >&6; }
22139 works=no
22140 { echo "$as_me:$LINENO: checking for working signed char" >&5
22141 echo $ECHO_N "checking for working signed char... $ECHO_C" >&6; }
22142 cat >conftest.$ac_ext <<_ACEOF
22143 /* confdefs.h. */
22144 _ACEOF
22145 cat confdefs.h >>conftest.$ac_ext
22146 cat >>conftest.$ac_ext <<_ACEOF
22147 /* end confdefs.h. */
22150 main ()
22152 signed char c;
22154 return 0;
22156 _ACEOF
22157 rm -f conftest.$ac_objext
22158 if { (ac_try="$ac_compile"
22159 case "(($ac_try" in
22160 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22161 *) ac_try_echo=$ac_try;;
22162 esac
22163 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22164 (eval "$ac_compile") 2>conftest.er1
22165 ac_status=$?
22166 grep -v '^ *+' conftest.er1 >conftest.err
22167 rm -f conftest.er1
22168 cat conftest.err >&5
22169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22170 (exit $ac_status); } && {
22171 test -z "$ac_c_werror_flag" ||
22172 test ! -s conftest.err
22173 } && test -s conftest.$ac_objext; then
22174 works=yes
22175 else
22176 echo "$as_me: failed program was:" >&5
22177 sed 's/^/| /' conftest.$ac_ext >&5
22180 cat >>confdefs.h <<\_ACEOF
22181 #define signed
22182 _ACEOF
22187 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22188 { echo "$as_me:$LINENO: result: $works" >&5
22189 echo "${ECHO_T}$works" >&6; }
22191 have_prototypes=no
22192 { echo "$as_me:$LINENO: checking for prototypes" >&5
22193 echo $ECHO_N "checking for prototypes... $ECHO_C" >&6; }
22194 cat >conftest.$ac_ext <<_ACEOF
22195 /* confdefs.h. */
22196 _ACEOF
22197 cat confdefs.h >>conftest.$ac_ext
22198 cat >>conftest.$ac_ext <<_ACEOF
22199 /* end confdefs.h. */
22200 int foo(int x) { return 0; }
22202 main ()
22204 return foo(10);
22206 return 0;
22208 _ACEOF
22209 rm -f conftest.$ac_objext
22210 if { (ac_try="$ac_compile"
22211 case "(($ac_try" in
22212 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22213 *) ac_try_echo=$ac_try;;
22214 esac
22215 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22216 (eval "$ac_compile") 2>conftest.er1
22217 ac_status=$?
22218 grep -v '^ *+' conftest.er1 >conftest.err
22219 rm -f conftest.er1
22220 cat conftest.err >&5
22221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22222 (exit $ac_status); } && {
22223 test -z "$ac_c_werror_flag" ||
22224 test ! -s conftest.err
22225 } && test -s conftest.$ac_objext; then
22228 cat >>confdefs.h <<\_ACEOF
22229 #define HAVE_PROTOTYPES 1
22230 _ACEOF
22232 have_prototypes=yes
22234 else
22235 echo "$as_me: failed program was:" >&5
22236 sed 's/^/| /' conftest.$ac_ext >&5
22241 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22242 { echo "$as_me:$LINENO: result: $have_prototypes" >&5
22243 echo "${ECHO_T}$have_prototypes" >&6; }
22245 works=no
22246 { echo "$as_me:$LINENO: checking for variable length prototypes and stdarg.h" >&5
22247 echo $ECHO_N "checking for variable length prototypes and stdarg.h... $ECHO_C" >&6; }
22248 cat >conftest.$ac_ext <<_ACEOF
22249 /* confdefs.h. */
22250 _ACEOF
22251 cat confdefs.h >>conftest.$ac_ext
22252 cat >>conftest.$ac_ext <<_ACEOF
22253 /* end confdefs.h. */
22255 #include <stdarg.h>
22256 int foo(int x, ...) {
22257 va_list va;
22258 va_start(va, x);
22259 va_arg(va, int);
22260 va_arg(va, char *);
22261 va_arg(va, double);
22262 return 0;
22266 main ()
22268 return foo(10, "", 3.14);
22270 return 0;
22272 _ACEOF
22273 rm -f conftest.$ac_objext
22274 if { (ac_try="$ac_compile"
22275 case "(($ac_try" in
22276 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22277 *) ac_try_echo=$ac_try;;
22278 esac
22279 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22280 (eval "$ac_compile") 2>conftest.er1
22281 ac_status=$?
22282 grep -v '^ *+' conftest.er1 >conftest.err
22283 rm -f conftest.er1
22284 cat conftest.err >&5
22285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22286 (exit $ac_status); } && {
22287 test -z "$ac_c_werror_flag" ||
22288 test ! -s conftest.err
22289 } && test -s conftest.$ac_objext; then
22292 cat >>confdefs.h <<\_ACEOF
22293 #define HAVE_STDARG_PROTOTYPES 1
22294 _ACEOF
22296 works=yes
22298 else
22299 echo "$as_me: failed program was:" >&5
22300 sed 's/^/| /' conftest.$ac_ext >&5
22305 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22306 { echo "$as_me:$LINENO: result: $works" >&5
22307 echo "${ECHO_T}$works" >&6; }
22309 # check for socketpair
22310 { echo "$as_me:$LINENO: checking for socketpair" >&5
22311 echo $ECHO_N "checking for socketpair... $ECHO_C" >&6; }
22312 cat >conftest.$ac_ext <<_ACEOF
22313 /* confdefs.h. */
22314 _ACEOF
22315 cat confdefs.h >>conftest.$ac_ext
22316 cat >>conftest.$ac_ext <<_ACEOF
22317 /* end confdefs.h. */
22319 #include <sys/types.h>
22320 #include <sys/socket.h>
22323 main ()
22325 void *x=socketpair
22327 return 0;
22329 _ACEOF
22330 rm -f conftest.$ac_objext
22331 if { (ac_try="$ac_compile"
22332 case "(($ac_try" in
22333 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22334 *) ac_try_echo=$ac_try;;
22335 esac
22336 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22337 (eval "$ac_compile") 2>conftest.er1
22338 ac_status=$?
22339 grep -v '^ *+' conftest.er1 >conftest.err
22340 rm -f conftest.er1
22341 cat conftest.err >&5
22342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22343 (exit $ac_status); } && {
22344 test -z "$ac_c_werror_flag" ||
22345 test ! -s conftest.err
22346 } && test -s conftest.$ac_objext; then
22348 cat >>confdefs.h <<\_ACEOF
22349 #define HAVE_SOCKETPAIR 1
22350 _ACEOF
22352 { echo "$as_me:$LINENO: result: yes" >&5
22353 echo "${ECHO_T}yes" >&6; }
22354 else
22355 echo "$as_me: failed program was:" >&5
22356 sed 's/^/| /' conftest.$ac_ext >&5
22358 { echo "$as_me:$LINENO: result: no" >&5
22359 echo "${ECHO_T}no" >&6; }
22363 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22365 # check if sockaddr has sa_len member
22366 { echo "$as_me:$LINENO: checking if sockaddr has sa_len member" >&5
22367 echo $ECHO_N "checking if sockaddr has sa_len member... $ECHO_C" >&6; }
22368 cat >conftest.$ac_ext <<_ACEOF
22369 /* confdefs.h. */
22370 _ACEOF
22371 cat confdefs.h >>conftest.$ac_ext
22372 cat >>conftest.$ac_ext <<_ACEOF
22373 /* end confdefs.h. */
22374 #include <sys/types.h>
22375 #include <sys/socket.h>
22377 main ()
22379 struct sockaddr x;
22380 x.sa_len = 0;
22382 return 0;
22384 _ACEOF
22385 rm -f conftest.$ac_objext
22386 if { (ac_try="$ac_compile"
22387 case "(($ac_try" in
22388 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22389 *) ac_try_echo=$ac_try;;
22390 esac
22391 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22392 (eval "$ac_compile") 2>conftest.er1
22393 ac_status=$?
22394 grep -v '^ *+' conftest.er1 >conftest.err
22395 rm -f conftest.er1
22396 cat conftest.err >&5
22397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22398 (exit $ac_status); } && {
22399 test -z "$ac_c_werror_flag" ||
22400 test ! -s conftest.err
22401 } && test -s conftest.$ac_objext; then
22402 { echo "$as_me:$LINENO: result: yes" >&5
22403 echo "${ECHO_T}yes" >&6; }
22405 cat >>confdefs.h <<\_ACEOF
22406 #define HAVE_SOCKADDR_SA_LEN 1
22407 _ACEOF
22409 else
22410 echo "$as_me: failed program was:" >&5
22411 sed 's/^/| /' conftest.$ac_ext >&5
22413 { echo "$as_me:$LINENO: result: no" >&5
22414 echo "${ECHO_T}no" >&6; }
22417 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22419 va_list_is_array=no
22420 { echo "$as_me:$LINENO: checking whether va_list is an array" >&5
22421 echo $ECHO_N "checking whether va_list is an array... $ECHO_C" >&6; }
22422 cat >conftest.$ac_ext <<_ACEOF
22423 /* confdefs.h. */
22424 _ACEOF
22425 cat confdefs.h >>conftest.$ac_ext
22426 cat >>conftest.$ac_ext <<_ACEOF
22427 /* end confdefs.h. */
22429 #ifdef HAVE_STDARG_PROTOTYPES
22430 #include <stdarg.h>
22431 #else
22432 #include <varargs.h>
22433 #endif
22436 main ()
22438 va_list list1, list2; list1 = list2;
22440 return 0;
22442 _ACEOF
22443 rm -f conftest.$ac_objext
22444 if { (ac_try="$ac_compile"
22445 case "(($ac_try" in
22446 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22447 *) ac_try_echo=$ac_try;;
22448 esac
22449 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22450 (eval "$ac_compile") 2>conftest.er1
22451 ac_status=$?
22452 grep -v '^ *+' conftest.er1 >conftest.err
22453 rm -f conftest.er1
22454 cat conftest.err >&5
22455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22456 (exit $ac_status); } && {
22457 test -z "$ac_c_werror_flag" ||
22458 test ! -s conftest.err
22459 } && test -s conftest.$ac_objext; then
22461 else
22462 echo "$as_me: failed program was:" >&5
22463 sed 's/^/| /' conftest.$ac_ext >&5
22467 cat >>confdefs.h <<\_ACEOF
22468 #define VA_LIST_IS_ARRAY 1
22469 _ACEOF
22471 va_list_is_array=yes
22475 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22476 { echo "$as_me:$LINENO: result: $va_list_is_array" >&5
22477 echo "${ECHO_T}$va_list_is_array" >&6; }
22479 # sigh -- gethostbyname_r is a mess; it can have 3, 5 or 6 arguments :-(
22483 { echo "$as_me:$LINENO: checking for gethostbyname_r" >&5
22484 echo $ECHO_N "checking for gethostbyname_r... $ECHO_C" >&6; }
22485 if test "${ac_cv_func_gethostbyname_r+set}" = set; then
22486 echo $ECHO_N "(cached) $ECHO_C" >&6
22487 else
22488 cat >conftest.$ac_ext <<_ACEOF
22489 /* confdefs.h. */
22490 _ACEOF
22491 cat confdefs.h >>conftest.$ac_ext
22492 cat >>conftest.$ac_ext <<_ACEOF
22493 /* end confdefs.h. */
22494 /* Define gethostbyname_r to an innocuous variant, in case <limits.h> declares gethostbyname_r.
22495 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22496 #define gethostbyname_r innocuous_gethostbyname_r
22498 /* System header to define __stub macros and hopefully few prototypes,
22499 which can conflict with char gethostbyname_r (); below.
22500 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22501 <limits.h> exists even on freestanding compilers. */
22503 #ifdef __STDC__
22504 # include <limits.h>
22505 #else
22506 # include <assert.h>
22507 #endif
22509 #undef gethostbyname_r
22511 /* Override any GCC internal prototype to avoid an error.
22512 Use char because int might match the return type of a GCC
22513 builtin and then its argument prototype would still apply. */
22514 #ifdef __cplusplus
22515 extern "C"
22516 #endif
22517 char gethostbyname_r ();
22518 /* The GNU C library defines this for functions which it implements
22519 to always fail with ENOSYS. Some functions are actually named
22520 something starting with __ and the normal name is an alias. */
22521 #if defined __stub_gethostbyname_r || defined __stub___gethostbyname_r
22522 choke me
22523 #endif
22526 main ()
22528 return gethostbyname_r ();
22530 return 0;
22532 _ACEOF
22533 rm -f conftest.$ac_objext conftest$ac_exeext
22534 if { (ac_try="$ac_link"
22535 case "(($ac_try" in
22536 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22537 *) ac_try_echo=$ac_try;;
22538 esac
22539 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22540 (eval "$ac_link") 2>conftest.er1
22541 ac_status=$?
22542 grep -v '^ *+' conftest.er1 >conftest.err
22543 rm -f conftest.er1
22544 cat conftest.err >&5
22545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22546 (exit $ac_status); } && {
22547 test -z "$ac_c_werror_flag" ||
22548 test ! -s conftest.err
22549 } && test -s conftest$ac_exeext &&
22550 $as_test_x conftest$ac_exeext; then
22551 ac_cv_func_gethostbyname_r=yes
22552 else
22553 echo "$as_me: failed program was:" >&5
22554 sed 's/^/| /' conftest.$ac_ext >&5
22556 ac_cv_func_gethostbyname_r=no
22559 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22560 conftest$ac_exeext conftest.$ac_ext
22562 { echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname_r" >&5
22563 echo "${ECHO_T}$ac_cv_func_gethostbyname_r" >&6; }
22564 if test $ac_cv_func_gethostbyname_r = yes; then
22566 cat >>confdefs.h <<\_ACEOF
22567 #define HAVE_GETHOSTBYNAME_R 1
22568 _ACEOF
22570 { echo "$as_me:$LINENO: checking gethostbyname_r with 6 args" >&5
22571 echo $ECHO_N "checking gethostbyname_r with 6 args... $ECHO_C" >&6; }
22572 OLD_CFLAGS=$CFLAGS
22573 CFLAGS="$CFLAGS $MY_CPPFLAGS $MY_THREAD_CPPFLAGS $MY_CFLAGS"
22574 cat >conftest.$ac_ext <<_ACEOF
22575 /* confdefs.h. */
22576 _ACEOF
22577 cat confdefs.h >>conftest.$ac_ext
22578 cat >>conftest.$ac_ext <<_ACEOF
22579 /* end confdefs.h. */
22581 # include <netdb.h>
22584 main ()
22587 char *name;
22588 struct hostent *he, *res;
22589 char buffer[2048];
22590 int buflen = 2048;
22591 int h_errnop;
22593 (void) gethostbyname_r(name, he, buffer, buflen, &res, &h_errnop)
22596 return 0;
22598 _ACEOF
22599 rm -f conftest.$ac_objext
22600 if { (ac_try="$ac_compile"
22601 case "(($ac_try" in
22602 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22603 *) ac_try_echo=$ac_try;;
22604 esac
22605 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22606 (eval "$ac_compile") 2>conftest.er1
22607 ac_status=$?
22608 grep -v '^ *+' conftest.er1 >conftest.err
22609 rm -f conftest.er1
22610 cat conftest.err >&5
22611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22612 (exit $ac_status); } && {
22613 test -z "$ac_c_werror_flag" ||
22614 test ! -s conftest.err
22615 } && test -s conftest.$ac_objext; then
22617 cat >>confdefs.h <<\_ACEOF
22618 #define HAVE_GETHOSTBYNAME_R 1
22619 _ACEOF
22622 cat >>confdefs.h <<\_ACEOF
22623 #define HAVE_GETHOSTBYNAME_R_6_ARG 1
22624 _ACEOF
22626 { echo "$as_me:$LINENO: result: yes" >&5
22627 echo "${ECHO_T}yes" >&6; }
22629 else
22630 echo "$as_me: failed program was:" >&5
22631 sed 's/^/| /' conftest.$ac_ext >&5
22634 { echo "$as_me:$LINENO: result: no" >&5
22635 echo "${ECHO_T}no" >&6; }
22636 { echo "$as_me:$LINENO: checking gethostbyname_r with 5 args" >&5
22637 echo $ECHO_N "checking gethostbyname_r with 5 args... $ECHO_C" >&6; }
22638 cat >conftest.$ac_ext <<_ACEOF
22639 /* confdefs.h. */
22640 _ACEOF
22641 cat confdefs.h >>conftest.$ac_ext
22642 cat >>conftest.$ac_ext <<_ACEOF
22643 /* end confdefs.h. */
22645 # include <netdb.h>
22648 main ()
22651 char *name;
22652 struct hostent *he;
22653 char buffer[2048];
22654 int buflen = 2048;
22655 int h_errnop;
22657 (void) gethostbyname_r(name, he, buffer, buflen, &h_errnop)
22660 return 0;
22662 _ACEOF
22663 rm -f conftest.$ac_objext
22664 if { (ac_try="$ac_compile"
22665 case "(($ac_try" in
22666 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22667 *) ac_try_echo=$ac_try;;
22668 esac
22669 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22670 (eval "$ac_compile") 2>conftest.er1
22671 ac_status=$?
22672 grep -v '^ *+' conftest.er1 >conftest.err
22673 rm -f conftest.er1
22674 cat conftest.err >&5
22675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22676 (exit $ac_status); } && {
22677 test -z "$ac_c_werror_flag" ||
22678 test ! -s conftest.err
22679 } && test -s conftest.$ac_objext; then
22681 cat >>confdefs.h <<\_ACEOF
22682 #define HAVE_GETHOSTBYNAME_R 1
22683 _ACEOF
22686 cat >>confdefs.h <<\_ACEOF
22687 #define HAVE_GETHOSTBYNAME_R_5_ARG 1
22688 _ACEOF
22690 { echo "$as_me:$LINENO: result: yes" >&5
22691 echo "${ECHO_T}yes" >&6; }
22693 else
22694 echo "$as_me: failed program was:" >&5
22695 sed 's/^/| /' conftest.$ac_ext >&5
22698 { echo "$as_me:$LINENO: result: no" >&5
22699 echo "${ECHO_T}no" >&6; }
22700 { echo "$as_me:$LINENO: checking gethostbyname_r with 3 args" >&5
22701 echo $ECHO_N "checking gethostbyname_r with 3 args... $ECHO_C" >&6; }
22702 cat >conftest.$ac_ext <<_ACEOF
22703 /* confdefs.h. */
22704 _ACEOF
22705 cat confdefs.h >>conftest.$ac_ext
22706 cat >>conftest.$ac_ext <<_ACEOF
22707 /* end confdefs.h. */
22709 # include <netdb.h>
22712 main ()
22715 char *name;
22716 struct hostent *he;
22717 struct hostent_data data;
22719 (void) gethostbyname_r(name, he, &data);
22722 return 0;
22724 _ACEOF
22725 rm -f conftest.$ac_objext
22726 if { (ac_try="$ac_compile"
22727 case "(($ac_try" in
22728 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22729 *) ac_try_echo=$ac_try;;
22730 esac
22731 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22732 (eval "$ac_compile") 2>conftest.er1
22733 ac_status=$?
22734 grep -v '^ *+' conftest.er1 >conftest.err
22735 rm -f conftest.er1
22736 cat conftest.err >&5
22737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22738 (exit $ac_status); } && {
22739 test -z "$ac_c_werror_flag" ||
22740 test ! -s conftest.err
22741 } && test -s conftest.$ac_objext; then
22743 cat >>confdefs.h <<\_ACEOF
22744 #define HAVE_GETHOSTBYNAME_R 1
22745 _ACEOF
22748 cat >>confdefs.h <<\_ACEOF
22749 #define HAVE_GETHOSTBYNAME_R_3_ARG 1
22750 _ACEOF
22752 { echo "$as_me:$LINENO: result: yes" >&5
22753 echo "${ECHO_T}yes" >&6; }
22755 else
22756 echo "$as_me: failed program was:" >&5
22757 sed 's/^/| /' conftest.$ac_ext >&5
22760 { echo "$as_me:$LINENO: result: no" >&5
22761 echo "${ECHO_T}no" >&6; }
22765 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22769 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22773 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22774 CFLAGS=$OLD_CFLAGS
22776 else
22779 for ac_func in gethostbyname
22781 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22782 { echo "$as_me:$LINENO: checking for $ac_func" >&5
22783 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
22784 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
22785 echo $ECHO_N "(cached) $ECHO_C" >&6
22786 else
22787 cat >conftest.$ac_ext <<_ACEOF
22788 /* confdefs.h. */
22789 _ACEOF
22790 cat confdefs.h >>conftest.$ac_ext
22791 cat >>conftest.$ac_ext <<_ACEOF
22792 /* end confdefs.h. */
22793 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22794 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22795 #define $ac_func innocuous_$ac_func
22797 /* System header to define __stub macros and hopefully few prototypes,
22798 which can conflict with char $ac_func (); below.
22799 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22800 <limits.h> exists even on freestanding compilers. */
22802 #ifdef __STDC__
22803 # include <limits.h>
22804 #else
22805 # include <assert.h>
22806 #endif
22808 #undef $ac_func
22810 /* Override any GCC internal prototype to avoid an error.
22811 Use char because int might match the return type of a GCC
22812 builtin and then its argument prototype would still apply. */
22813 #ifdef __cplusplus
22814 extern "C"
22815 #endif
22816 char $ac_func ();
22817 /* The GNU C library defines this for functions which it implements
22818 to always fail with ENOSYS. Some functions are actually named
22819 something starting with __ and the normal name is an alias. */
22820 #if defined __stub_$ac_func || defined __stub___$ac_func
22821 choke me
22822 #endif
22825 main ()
22827 return $ac_func ();
22829 return 0;
22831 _ACEOF
22832 rm -f conftest.$ac_objext conftest$ac_exeext
22833 if { (ac_try="$ac_link"
22834 case "(($ac_try" in
22835 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22836 *) ac_try_echo=$ac_try;;
22837 esac
22838 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22839 (eval "$ac_link") 2>conftest.er1
22840 ac_status=$?
22841 grep -v '^ *+' conftest.er1 >conftest.err
22842 rm -f conftest.er1
22843 cat conftest.err >&5
22844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22845 (exit $ac_status); } && {
22846 test -z "$ac_c_werror_flag" ||
22847 test ! -s conftest.err
22848 } && test -s conftest$ac_exeext &&
22849 $as_test_x conftest$ac_exeext; then
22850 eval "$as_ac_var=yes"
22851 else
22852 echo "$as_me: failed program was:" >&5
22853 sed 's/^/| /' conftest.$ac_ext >&5
22855 eval "$as_ac_var=no"
22858 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22859 conftest$ac_exeext conftest.$ac_ext
22861 ac_res=`eval echo '${'$as_ac_var'}'`
22862 { echo "$as_me:$LINENO: result: $ac_res" >&5
22863 echo "${ECHO_T}$ac_res" >&6; }
22864 if test `eval echo '${'$as_ac_var'}'` = yes; then
22865 cat >>confdefs.h <<_ACEOF
22866 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22867 _ACEOF
22870 done
22881 # checks for system services
22882 # (none yet)
22884 # Linux requires this for correct f.p. operations
22885 { echo "$as_me:$LINENO: checking for __fpu_control" >&5
22886 echo $ECHO_N "checking for __fpu_control... $ECHO_C" >&6; }
22887 if test "${ac_cv_func___fpu_control+set}" = set; then
22888 echo $ECHO_N "(cached) $ECHO_C" >&6
22889 else
22890 cat >conftest.$ac_ext <<_ACEOF
22891 /* confdefs.h. */
22892 _ACEOF
22893 cat confdefs.h >>conftest.$ac_ext
22894 cat >>conftest.$ac_ext <<_ACEOF
22895 /* end confdefs.h. */
22896 /* Define __fpu_control to an innocuous variant, in case <limits.h> declares __fpu_control.
22897 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22898 #define __fpu_control innocuous___fpu_control
22900 /* System header to define __stub macros and hopefully few prototypes,
22901 which can conflict with char __fpu_control (); below.
22902 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22903 <limits.h> exists even on freestanding compilers. */
22905 #ifdef __STDC__
22906 # include <limits.h>
22907 #else
22908 # include <assert.h>
22909 #endif
22911 #undef __fpu_control
22913 /* Override any GCC internal prototype to avoid an error.
22914 Use char because int might match the return type of a GCC
22915 builtin and then its argument prototype would still apply. */
22916 #ifdef __cplusplus
22917 extern "C"
22918 #endif
22919 char __fpu_control ();
22920 /* The GNU C library defines this for functions which it implements
22921 to always fail with ENOSYS. Some functions are actually named
22922 something starting with __ and the normal name is an alias. */
22923 #if defined __stub___fpu_control || defined __stub_____fpu_control
22924 choke me
22925 #endif
22928 main ()
22930 return __fpu_control ();
22932 return 0;
22934 _ACEOF
22935 rm -f conftest.$ac_objext conftest$ac_exeext
22936 if { (ac_try="$ac_link"
22937 case "(($ac_try" in
22938 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22939 *) ac_try_echo=$ac_try;;
22940 esac
22941 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22942 (eval "$ac_link") 2>conftest.er1
22943 ac_status=$?
22944 grep -v '^ *+' conftest.er1 >conftest.err
22945 rm -f conftest.er1
22946 cat conftest.err >&5
22947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22948 (exit $ac_status); } && {
22949 test -z "$ac_c_werror_flag" ||
22950 test ! -s conftest.err
22951 } && test -s conftest$ac_exeext &&
22952 $as_test_x conftest$ac_exeext; then
22953 ac_cv_func___fpu_control=yes
22954 else
22955 echo "$as_me: failed program was:" >&5
22956 sed 's/^/| /' conftest.$ac_ext >&5
22958 ac_cv_func___fpu_control=no
22961 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22962 conftest$ac_exeext conftest.$ac_ext
22964 { echo "$as_me:$LINENO: result: $ac_cv_func___fpu_control" >&5
22965 echo "${ECHO_T}$ac_cv_func___fpu_control" >&6; }
22966 if test $ac_cv_func___fpu_control = yes; then
22968 else
22970 { echo "$as_me:$LINENO: checking for __fpu_control in -lieee" >&5
22971 echo $ECHO_N "checking for __fpu_control in -lieee... $ECHO_C" >&6; }
22972 if test "${ac_cv_lib_ieee___fpu_control+set}" = set; then
22973 echo $ECHO_N "(cached) $ECHO_C" >&6
22974 else
22975 ac_check_lib_save_LIBS=$LIBS
22976 LIBS="-lieee $LIBS"
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. */
22984 /* Override any GCC internal prototype to avoid an error.
22985 Use char because int might match the return type of a GCC
22986 builtin and then its argument prototype would still apply. */
22987 #ifdef __cplusplus
22988 extern "C"
22989 #endif
22990 char __fpu_control ();
22992 main ()
22994 return __fpu_control ();
22996 return 0;
22998 _ACEOF
22999 rm -f conftest.$ac_objext conftest$ac_exeext
23000 if { (ac_try="$ac_link"
23001 case "(($ac_try" in
23002 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23003 *) ac_try_echo=$ac_try;;
23004 esac
23005 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23006 (eval "$ac_link") 2>conftest.er1
23007 ac_status=$?
23008 grep -v '^ *+' conftest.er1 >conftest.err
23009 rm -f conftest.er1
23010 cat conftest.err >&5
23011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23012 (exit $ac_status); } && {
23013 test -z "$ac_c_werror_flag" ||
23014 test ! -s conftest.err
23015 } && test -s conftest$ac_exeext &&
23016 $as_test_x conftest$ac_exeext; then
23017 ac_cv_lib_ieee___fpu_control=yes
23018 else
23019 echo "$as_me: failed program was:" >&5
23020 sed 's/^/| /' conftest.$ac_ext >&5
23022 ac_cv_lib_ieee___fpu_control=no
23025 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23026 conftest$ac_exeext conftest.$ac_ext
23027 LIBS=$ac_check_lib_save_LIBS
23029 { echo "$as_me:$LINENO: result: $ac_cv_lib_ieee___fpu_control" >&5
23030 echo "${ECHO_T}$ac_cv_lib_ieee___fpu_control" >&6; }
23031 if test $ac_cv_lib_ieee___fpu_control = yes; then
23032 cat >>confdefs.h <<_ACEOF
23033 #define HAVE_LIBIEEE 1
23034 _ACEOF
23036 LIBS="-lieee $LIBS"
23044 # Check for --with-fpectl
23045 { echo "$as_me:$LINENO: checking for --with-fpectl" >&5
23046 echo $ECHO_N "checking for --with-fpectl... $ECHO_C" >&6; }
23048 # Check whether --with-fpectl was given.
23049 if test "${with_fpectl+set}" = set; then
23050 withval=$with_fpectl;
23051 if test "$withval" != no
23052 then
23054 cat >>confdefs.h <<\_ACEOF
23055 #define WANT_SIGFPE_HANDLER 1
23056 _ACEOF
23058 { echo "$as_me:$LINENO: result: yes" >&5
23059 echo "${ECHO_T}yes" >&6; }
23060 else { echo "$as_me:$LINENO: result: no" >&5
23061 echo "${ECHO_T}no" >&6; }
23063 else
23064 { echo "$as_me:$LINENO: result: no" >&5
23065 echo "${ECHO_T}no" >&6; }
23069 # check for --with-libm=...
23071 case $ac_sys_system in
23072 Darwin) ;;
23073 BeOS) ;;
23074 *) LIBM=-lm
23075 esac
23076 { echo "$as_me:$LINENO: checking for --with-libm=STRING" >&5
23077 echo $ECHO_N "checking for --with-libm=STRING... $ECHO_C" >&6; }
23079 # Check whether --with-libm was given.
23080 if test "${with_libm+set}" = set; then
23081 withval=$with_libm;
23082 if test "$withval" = no
23083 then LIBM=
23084 { echo "$as_me:$LINENO: result: force LIBM empty" >&5
23085 echo "${ECHO_T}force LIBM empty" >&6; }
23086 elif test "$withval" != yes
23087 then LIBM=$withval
23088 { echo "$as_me:$LINENO: result: set LIBM=\"$withval\"" >&5
23089 echo "${ECHO_T}set LIBM=\"$withval\"" >&6; }
23090 else { { echo "$as_me:$LINENO: error: proper usage is --with-libm=STRING" >&5
23091 echo "$as_me: error: proper usage is --with-libm=STRING" >&2;}
23092 { (exit 1); exit 1; }; }
23094 else
23095 { echo "$as_me:$LINENO: result: default LIBM=\"$LIBM\"" >&5
23096 echo "${ECHO_T}default LIBM=\"$LIBM\"" >&6; }
23100 # check for --with-libc=...
23102 { echo "$as_me:$LINENO: checking for --with-libc=STRING" >&5
23103 echo $ECHO_N "checking for --with-libc=STRING... $ECHO_C" >&6; }
23105 # Check whether --with-libc was given.
23106 if test "${with_libc+set}" = set; then
23107 withval=$with_libc;
23108 if test "$withval" = no
23109 then LIBC=
23110 { echo "$as_me:$LINENO: result: force LIBC empty" >&5
23111 echo "${ECHO_T}force LIBC empty" >&6; }
23112 elif test "$withval" != yes
23113 then LIBC=$withval
23114 { echo "$as_me:$LINENO: result: set LIBC=\"$withval\"" >&5
23115 echo "${ECHO_T}set LIBC=\"$withval\"" >&6; }
23116 else { { echo "$as_me:$LINENO: error: proper usage is --with-libc=STRING" >&5
23117 echo "$as_me: error: proper usage is --with-libc=STRING" >&2;}
23118 { (exit 1); exit 1; }; }
23120 else
23121 { echo "$as_me:$LINENO: result: default LIBC=\"$LIBC\"" >&5
23122 echo "${ECHO_T}default LIBC=\"$LIBC\"" >&6; }
23126 # ************************************
23127 # * Check for mathematical functions *
23128 # ************************************
23130 LIBS_SAVE=$LIBS
23131 LIBS="$LIBS $LIBM"
23133 # Detect whether system arithmetic is subject to x87-style double
23134 # rounding issues. The result of this test has little meaning on non
23135 # IEEE 754 platforms. On IEEE 754, test should return 1 if rounding
23136 # mode is round-to-nearest and double rounding issues are present, and
23137 # 0 otherwise. See http://bugs.python.org/issue2937 for more info.
23138 { echo "$as_me:$LINENO: checking for x87-style double rounding" >&5
23139 echo $ECHO_N "checking for x87-style double rounding... $ECHO_C" >&6; }
23140 if test "${ac_cv_x87_double_rounding+set}" = set; then
23141 echo $ECHO_N "(cached) $ECHO_C" >&6
23142 else
23144 if test "$cross_compiling" = yes; then
23145 ac_cv_x87_double_rounding=no
23146 else
23147 cat >conftest.$ac_ext <<_ACEOF
23148 /* confdefs.h. */
23149 _ACEOF
23150 cat confdefs.h >>conftest.$ac_ext
23151 cat >>conftest.$ac_ext <<_ACEOF
23152 /* end confdefs.h. */
23154 #include <stdlib.h>
23155 #include <math.h>
23156 int main() {
23157 volatile double x, y, z;
23158 /* 1./(1-2**-53) -> 1+2**-52 (correct), 1.0 (double rounding) */
23159 x = 0.99999999999999989; /* 1-2**-53 */
23160 y = 1./x;
23161 if (y != 1.)
23162 exit(0);
23163 /* 1e16+2.99999 -> 1e16+2. (correct), 1e16+4. (double rounding) */
23164 x = 1e16;
23165 y = 2.99999;
23166 z = x + y;
23167 if (z != 1e16+4.)
23168 exit(0);
23169 /* both tests show evidence of double rounding */
23170 exit(1);
23173 _ACEOF
23174 rm -f conftest$ac_exeext
23175 if { (ac_try="$ac_link"
23176 case "(($ac_try" in
23177 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23178 *) ac_try_echo=$ac_try;;
23179 esac
23180 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23181 (eval "$ac_link") 2>&5
23182 ac_status=$?
23183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23184 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23185 { (case "(($ac_try" in
23186 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23187 *) ac_try_echo=$ac_try;;
23188 esac
23189 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23190 (eval "$ac_try") 2>&5
23191 ac_status=$?
23192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23193 (exit $ac_status); }; }; then
23194 ac_cv_x87_double_rounding=no
23195 else
23196 echo "$as_me: program exited with status $ac_status" >&5
23197 echo "$as_me: failed program was:" >&5
23198 sed 's/^/| /' conftest.$ac_ext >&5
23200 ( exit $ac_status )
23201 ac_cv_x87_double_rounding=yes
23203 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23209 { echo "$as_me:$LINENO: result: $ac_cv_x87_double_rounding" >&5
23210 echo "${ECHO_T}$ac_cv_x87_double_rounding" >&6; }
23211 if test "$ac_cv_x87_double_rounding" = yes
23212 then
23214 cat >>confdefs.h <<\_ACEOF
23215 #define X87_DOUBLE_ROUNDING 1
23216 _ACEOF
23220 # Multiprocessing check for broken sem_getvalue
23221 { echo "$as_me:$LINENO: checking for broken sem_getvalue" >&5
23222 echo $ECHO_N "checking for broken sem_getvalue... $ECHO_C" >&6; }
23223 if test "${ac_cv_broken_sem_getvalue+set}" = set; then
23224 echo $ECHO_N "(cached) $ECHO_C" >&6
23225 else
23226 if test "$cross_compiling" = yes; then
23227 ac_cv_broken_sem_getvalue=yes
23228 else
23229 cat >conftest.$ac_ext <<_ACEOF
23230 /* confdefs.h. */
23231 _ACEOF
23232 cat confdefs.h >>conftest.$ac_ext
23233 cat >>conftest.$ac_ext <<_ACEOF
23234 /* end confdefs.h. */
23236 #include <unistd.h>
23237 #include <fcntl.h>
23238 #include <stdio.h>
23239 #include <semaphore.h>
23240 #include <sys/stat.h>
23242 int main(void){
23243 sem_t *a = sem_open("/autoconf", O_CREAT, S_IRUSR|S_IWUSR, 0);
23244 int count;
23245 int res;
23246 if(a==SEM_FAILED){
23247 perror("sem_open");
23248 return 1;
23251 res = sem_getvalue(a, &count);
23252 sem_close(a);
23253 return res==-1 ? 1 : 0;
23256 _ACEOF
23257 rm -f conftest$ac_exeext
23258 if { (ac_try="$ac_link"
23259 case "(($ac_try" in
23260 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23261 *) ac_try_echo=$ac_try;;
23262 esac
23263 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23264 (eval "$ac_link") 2>&5
23265 ac_status=$?
23266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23267 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23268 { (case "(($ac_try" in
23269 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23270 *) ac_try_echo=$ac_try;;
23271 esac
23272 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23273 (eval "$ac_try") 2>&5
23274 ac_status=$?
23275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23276 (exit $ac_status); }; }; then
23277 ac_cv_broken_sem_getvalue=no
23278 else
23279 echo "$as_me: program exited with status $ac_status" >&5
23280 echo "$as_me: failed program was:" >&5
23281 sed 's/^/| /' conftest.$ac_ext >&5
23283 ( exit $ac_status )
23284 ac_cv_broken_sem_getvalue=yes
23286 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23293 { echo "$as_me:$LINENO: result: $ac_cv_broken_sem_getvalue" >&5
23294 echo "${ECHO_T}$ac_cv_broken_sem_getvalue" >&6; }
23295 if test $ac_cv_broken_sem_getvalue = yes
23296 then
23298 cat >>confdefs.h <<\_ACEOF
23299 #define HAVE_BROKEN_SEM_GETVALUE 1
23300 _ACEOF
23304 # On FreeBSD 6.2, it appears that tanh(-0.) returns 0. instead of
23305 # -0. on some architectures.
23306 { echo "$as_me:$LINENO: checking whether tanh preserves the sign of zero" >&5
23307 echo $ECHO_N "checking whether tanh preserves the sign of zero... $ECHO_C" >&6; }
23308 if test "${ac_cv_tanh_preserves_zero_sign+set}" = set; then
23309 echo $ECHO_N "(cached) $ECHO_C" >&6
23310 else
23312 if test "$cross_compiling" = yes; then
23313 ac_cv_tanh_preserves_zero_sign=no
23314 else
23315 cat >conftest.$ac_ext <<_ACEOF
23316 /* confdefs.h. */
23317 _ACEOF
23318 cat confdefs.h >>conftest.$ac_ext
23319 cat >>conftest.$ac_ext <<_ACEOF
23320 /* end confdefs.h. */
23322 #include <math.h>
23323 #include <stdlib.h>
23324 int main() {
23325 /* return 0 if either negative zeros don't exist
23326 on this platform or if negative zeros exist
23327 and tanh(-0.) == -0. */
23328 if (atan2(0., -1.) == atan2(-0., -1.) ||
23329 atan2(tanh(-0.), -1.) == atan2(-0., -1.)) exit(0);
23330 else exit(1);
23333 _ACEOF
23334 rm -f conftest$ac_exeext
23335 if { (ac_try="$ac_link"
23336 case "(($ac_try" in
23337 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23338 *) ac_try_echo=$ac_try;;
23339 esac
23340 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23341 (eval "$ac_link") 2>&5
23342 ac_status=$?
23343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23344 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23345 { (case "(($ac_try" in
23346 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23347 *) ac_try_echo=$ac_try;;
23348 esac
23349 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23350 (eval "$ac_try") 2>&5
23351 ac_status=$?
23352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23353 (exit $ac_status); }; }; then
23354 ac_cv_tanh_preserves_zero_sign=yes
23355 else
23356 echo "$as_me: program exited with status $ac_status" >&5
23357 echo "$as_me: failed program was:" >&5
23358 sed 's/^/| /' conftest.$ac_ext >&5
23360 ( exit $ac_status )
23361 ac_cv_tanh_preserves_zero_sign=no
23363 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23369 { echo "$as_me:$LINENO: result: $ac_cv_tanh_preserves_zero_sign" >&5
23370 echo "${ECHO_T}$ac_cv_tanh_preserves_zero_sign" >&6; }
23371 if test "$ac_cv_tanh_preserves_zero_sign" = yes
23372 then
23374 cat >>confdefs.h <<\_ACEOF
23375 #define TANH_PRESERVES_ZERO_SIGN 1
23376 _ACEOF
23389 for ac_func in acosh asinh atanh copysign expm1 finite hypot log1p round
23391 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
23392 { echo "$as_me:$LINENO: checking for $ac_func" >&5
23393 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
23394 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
23395 echo $ECHO_N "(cached) $ECHO_C" >&6
23396 else
23397 cat >conftest.$ac_ext <<_ACEOF
23398 /* confdefs.h. */
23399 _ACEOF
23400 cat confdefs.h >>conftest.$ac_ext
23401 cat >>conftest.$ac_ext <<_ACEOF
23402 /* end confdefs.h. */
23403 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
23404 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23405 #define $ac_func innocuous_$ac_func
23407 /* System header to define __stub macros and hopefully few prototypes,
23408 which can conflict with char $ac_func (); below.
23409 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23410 <limits.h> exists even on freestanding compilers. */
23412 #ifdef __STDC__
23413 # include <limits.h>
23414 #else
23415 # include <assert.h>
23416 #endif
23418 #undef $ac_func
23420 /* Override any GCC internal prototype to avoid an error.
23421 Use char because int might match the return type of a GCC
23422 builtin and then its argument prototype would still apply. */
23423 #ifdef __cplusplus
23424 extern "C"
23425 #endif
23426 char $ac_func ();
23427 /* The GNU C library defines this for functions which it implements
23428 to always fail with ENOSYS. Some functions are actually named
23429 something starting with __ and the normal name is an alias. */
23430 #if defined __stub_$ac_func || defined __stub___$ac_func
23431 choke me
23432 #endif
23435 main ()
23437 return $ac_func ();
23439 return 0;
23441 _ACEOF
23442 rm -f conftest.$ac_objext conftest$ac_exeext
23443 if { (ac_try="$ac_link"
23444 case "(($ac_try" in
23445 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23446 *) ac_try_echo=$ac_try;;
23447 esac
23448 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23449 (eval "$ac_link") 2>conftest.er1
23450 ac_status=$?
23451 grep -v '^ *+' conftest.er1 >conftest.err
23452 rm -f conftest.er1
23453 cat conftest.err >&5
23454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23455 (exit $ac_status); } && {
23456 test -z "$ac_c_werror_flag" ||
23457 test ! -s conftest.err
23458 } && test -s conftest$ac_exeext &&
23459 $as_test_x conftest$ac_exeext; then
23460 eval "$as_ac_var=yes"
23461 else
23462 echo "$as_me: failed program was:" >&5
23463 sed 's/^/| /' conftest.$ac_ext >&5
23465 eval "$as_ac_var=no"
23468 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23469 conftest$ac_exeext conftest.$ac_ext
23471 ac_res=`eval echo '${'$as_ac_var'}'`
23472 { echo "$as_me:$LINENO: result: $ac_res" >&5
23473 echo "${ECHO_T}$ac_res" >&6; }
23474 if test `eval echo '${'$as_ac_var'}'` = yes; then
23475 cat >>confdefs.h <<_ACEOF
23476 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
23477 _ACEOF
23480 done
23482 { echo "$as_me:$LINENO: checking whether isinf is declared" >&5
23483 echo $ECHO_N "checking whether isinf is declared... $ECHO_C" >&6; }
23484 if test "${ac_cv_have_decl_isinf+set}" = set; then
23485 echo $ECHO_N "(cached) $ECHO_C" >&6
23486 else
23487 cat >conftest.$ac_ext <<_ACEOF
23488 /* confdefs.h. */
23489 _ACEOF
23490 cat confdefs.h >>conftest.$ac_ext
23491 cat >>conftest.$ac_ext <<_ACEOF
23492 /* end confdefs.h. */
23493 #include <math.h>
23496 main ()
23498 #ifndef isinf
23499 (void) isinf;
23500 #endif
23503 return 0;
23505 _ACEOF
23506 rm -f conftest.$ac_objext
23507 if { (ac_try="$ac_compile"
23508 case "(($ac_try" in
23509 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23510 *) ac_try_echo=$ac_try;;
23511 esac
23512 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23513 (eval "$ac_compile") 2>conftest.er1
23514 ac_status=$?
23515 grep -v '^ *+' conftest.er1 >conftest.err
23516 rm -f conftest.er1
23517 cat conftest.err >&5
23518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23519 (exit $ac_status); } && {
23520 test -z "$ac_c_werror_flag" ||
23521 test ! -s conftest.err
23522 } && test -s conftest.$ac_objext; then
23523 ac_cv_have_decl_isinf=yes
23524 else
23525 echo "$as_me: failed program was:" >&5
23526 sed 's/^/| /' conftest.$ac_ext >&5
23528 ac_cv_have_decl_isinf=no
23531 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23533 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_isinf" >&5
23534 echo "${ECHO_T}$ac_cv_have_decl_isinf" >&6; }
23535 if test $ac_cv_have_decl_isinf = yes; then
23537 cat >>confdefs.h <<_ACEOF
23538 #define HAVE_DECL_ISINF 1
23539 _ACEOF
23542 else
23543 cat >>confdefs.h <<_ACEOF
23544 #define HAVE_DECL_ISINF 0
23545 _ACEOF
23549 { echo "$as_me:$LINENO: checking whether isnan is declared" >&5
23550 echo $ECHO_N "checking whether isnan is declared... $ECHO_C" >&6; }
23551 if test "${ac_cv_have_decl_isnan+set}" = set; then
23552 echo $ECHO_N "(cached) $ECHO_C" >&6
23553 else
23554 cat >conftest.$ac_ext <<_ACEOF
23555 /* confdefs.h. */
23556 _ACEOF
23557 cat confdefs.h >>conftest.$ac_ext
23558 cat >>conftest.$ac_ext <<_ACEOF
23559 /* end confdefs.h. */
23560 #include <math.h>
23563 main ()
23565 #ifndef isnan
23566 (void) isnan;
23567 #endif
23570 return 0;
23572 _ACEOF
23573 rm -f conftest.$ac_objext
23574 if { (ac_try="$ac_compile"
23575 case "(($ac_try" in
23576 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23577 *) ac_try_echo=$ac_try;;
23578 esac
23579 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23580 (eval "$ac_compile") 2>conftest.er1
23581 ac_status=$?
23582 grep -v '^ *+' conftest.er1 >conftest.err
23583 rm -f conftest.er1
23584 cat conftest.err >&5
23585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23586 (exit $ac_status); } && {
23587 test -z "$ac_c_werror_flag" ||
23588 test ! -s conftest.err
23589 } && test -s conftest.$ac_objext; then
23590 ac_cv_have_decl_isnan=yes
23591 else
23592 echo "$as_me: failed program was:" >&5
23593 sed 's/^/| /' conftest.$ac_ext >&5
23595 ac_cv_have_decl_isnan=no
23598 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23600 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_isnan" >&5
23601 echo "${ECHO_T}$ac_cv_have_decl_isnan" >&6; }
23602 if test $ac_cv_have_decl_isnan = yes; then
23604 cat >>confdefs.h <<_ACEOF
23605 #define HAVE_DECL_ISNAN 1
23606 _ACEOF
23609 else
23610 cat >>confdefs.h <<_ACEOF
23611 #define HAVE_DECL_ISNAN 0
23612 _ACEOF
23616 { echo "$as_me:$LINENO: checking whether isfinite is declared" >&5
23617 echo $ECHO_N "checking whether isfinite is declared... $ECHO_C" >&6; }
23618 if test "${ac_cv_have_decl_isfinite+set}" = set; then
23619 echo $ECHO_N "(cached) $ECHO_C" >&6
23620 else
23621 cat >conftest.$ac_ext <<_ACEOF
23622 /* confdefs.h. */
23623 _ACEOF
23624 cat confdefs.h >>conftest.$ac_ext
23625 cat >>conftest.$ac_ext <<_ACEOF
23626 /* end confdefs.h. */
23627 #include <math.h>
23630 main ()
23632 #ifndef isfinite
23633 (void) isfinite;
23634 #endif
23637 return 0;
23639 _ACEOF
23640 rm -f conftest.$ac_objext
23641 if { (ac_try="$ac_compile"
23642 case "(($ac_try" in
23643 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23644 *) ac_try_echo=$ac_try;;
23645 esac
23646 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23647 (eval "$ac_compile") 2>conftest.er1
23648 ac_status=$?
23649 grep -v '^ *+' conftest.er1 >conftest.err
23650 rm -f conftest.er1
23651 cat conftest.err >&5
23652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23653 (exit $ac_status); } && {
23654 test -z "$ac_c_werror_flag" ||
23655 test ! -s conftest.err
23656 } && test -s conftest.$ac_objext; then
23657 ac_cv_have_decl_isfinite=yes
23658 else
23659 echo "$as_me: failed program was:" >&5
23660 sed 's/^/| /' conftest.$ac_ext >&5
23662 ac_cv_have_decl_isfinite=no
23665 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23667 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_isfinite" >&5
23668 echo "${ECHO_T}$ac_cv_have_decl_isfinite" >&6; }
23669 if test $ac_cv_have_decl_isfinite = yes; then
23671 cat >>confdefs.h <<_ACEOF
23672 #define HAVE_DECL_ISFINITE 1
23673 _ACEOF
23676 else
23677 cat >>confdefs.h <<_ACEOF
23678 #define HAVE_DECL_ISFINITE 0
23679 _ACEOF
23686 LIBS=$LIBS_SAVE
23688 # determine what size digit to use for Python's longs
23689 { echo "$as_me:$LINENO: checking digit size for Python's longs" >&5
23690 echo $ECHO_N "checking digit size for Python's longs... $ECHO_C" >&6; }
23691 # Check whether --enable-big-digits was given.
23692 if test "${enable_big_digits+set}" = set; then
23693 enableval=$enable_big_digits; case $enable_big_digits in
23694 yes)
23695 enable_big_digits=30 ;;
23697 enable_big_digits=15 ;;
23698 15|30)
23701 { { echo "$as_me:$LINENO: error: bad value $enable_big_digits for --enable-big-digits; value should be 15 or 30" >&5
23702 echo "$as_me: error: bad value $enable_big_digits for --enable-big-digits; value should be 15 or 30" >&2;}
23703 { (exit 1); exit 1; }; } ;;
23704 esac
23705 { echo "$as_me:$LINENO: result: $enable_big_digits" >&5
23706 echo "${ECHO_T}$enable_big_digits" >&6; }
23708 cat >>confdefs.h <<_ACEOF
23709 #define PYLONG_BITS_IN_DIGIT $enable_big_digits
23710 _ACEOF
23713 else
23714 { echo "$as_me:$LINENO: result: no value specified" >&5
23715 echo "${ECHO_T}no value specified" >&6; }
23719 # check for wchar.h
23720 if test "${ac_cv_header_wchar_h+set}" = set; then
23721 { echo "$as_me:$LINENO: checking for wchar.h" >&5
23722 echo $ECHO_N "checking for wchar.h... $ECHO_C" >&6; }
23723 if test "${ac_cv_header_wchar_h+set}" = set; then
23724 echo $ECHO_N "(cached) $ECHO_C" >&6
23726 { echo "$as_me:$LINENO: result: $ac_cv_header_wchar_h" >&5
23727 echo "${ECHO_T}$ac_cv_header_wchar_h" >&6; }
23728 else
23729 # Is the header compilable?
23730 { echo "$as_me:$LINENO: checking wchar.h usability" >&5
23731 echo $ECHO_N "checking wchar.h usability... $ECHO_C" >&6; }
23732 cat >conftest.$ac_ext <<_ACEOF
23733 /* confdefs.h. */
23734 _ACEOF
23735 cat confdefs.h >>conftest.$ac_ext
23736 cat >>conftest.$ac_ext <<_ACEOF
23737 /* end confdefs.h. */
23738 $ac_includes_default
23739 #include <wchar.h>
23740 _ACEOF
23741 rm -f conftest.$ac_objext
23742 if { (ac_try="$ac_compile"
23743 case "(($ac_try" in
23744 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23745 *) ac_try_echo=$ac_try;;
23746 esac
23747 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23748 (eval "$ac_compile") 2>conftest.er1
23749 ac_status=$?
23750 grep -v '^ *+' conftest.er1 >conftest.err
23751 rm -f conftest.er1
23752 cat conftest.err >&5
23753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23754 (exit $ac_status); } && {
23755 test -z "$ac_c_werror_flag" ||
23756 test ! -s conftest.err
23757 } && test -s conftest.$ac_objext; then
23758 ac_header_compiler=yes
23759 else
23760 echo "$as_me: failed program was:" >&5
23761 sed 's/^/| /' conftest.$ac_ext >&5
23763 ac_header_compiler=no
23766 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23767 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23768 echo "${ECHO_T}$ac_header_compiler" >&6; }
23770 # Is the header present?
23771 { echo "$as_me:$LINENO: checking wchar.h presence" >&5
23772 echo $ECHO_N "checking wchar.h presence... $ECHO_C" >&6; }
23773 cat >conftest.$ac_ext <<_ACEOF
23774 /* confdefs.h. */
23775 _ACEOF
23776 cat confdefs.h >>conftest.$ac_ext
23777 cat >>conftest.$ac_ext <<_ACEOF
23778 /* end confdefs.h. */
23779 #include <wchar.h>
23780 _ACEOF
23781 if { (ac_try="$ac_cpp conftest.$ac_ext"
23782 case "(($ac_try" in
23783 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23784 *) ac_try_echo=$ac_try;;
23785 esac
23786 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23787 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23788 ac_status=$?
23789 grep -v '^ *+' conftest.er1 >conftest.err
23790 rm -f conftest.er1
23791 cat conftest.err >&5
23792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23793 (exit $ac_status); } >/dev/null && {
23794 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23795 test ! -s conftest.err
23796 }; then
23797 ac_header_preproc=yes
23798 else
23799 echo "$as_me: failed program was:" >&5
23800 sed 's/^/| /' conftest.$ac_ext >&5
23802 ac_header_preproc=no
23805 rm -f conftest.err conftest.$ac_ext
23806 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23807 echo "${ECHO_T}$ac_header_preproc" >&6; }
23809 # So? What about this header?
23810 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23811 yes:no: )
23812 { echo "$as_me:$LINENO: WARNING: wchar.h: accepted by the compiler, rejected by the preprocessor!" >&5
23813 echo "$as_me: WARNING: wchar.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
23814 { echo "$as_me:$LINENO: WARNING: wchar.h: proceeding with the compiler's result" >&5
23815 echo "$as_me: WARNING: wchar.h: proceeding with the compiler's result" >&2;}
23816 ac_header_preproc=yes
23818 no:yes:* )
23819 { echo "$as_me:$LINENO: WARNING: wchar.h: present but cannot be compiled" >&5
23820 echo "$as_me: WARNING: wchar.h: present but cannot be compiled" >&2;}
23821 { echo "$as_me:$LINENO: WARNING: wchar.h: check for missing prerequisite headers?" >&5
23822 echo "$as_me: WARNING: wchar.h: check for missing prerequisite headers?" >&2;}
23823 { echo "$as_me:$LINENO: WARNING: wchar.h: see the Autoconf documentation" >&5
23824 echo "$as_me: WARNING: wchar.h: see the Autoconf documentation" >&2;}
23825 { echo "$as_me:$LINENO: WARNING: wchar.h: section \"Present But Cannot Be Compiled\"" >&5
23826 echo "$as_me: WARNING: wchar.h: section \"Present But Cannot Be Compiled\"" >&2;}
23827 { echo "$as_me:$LINENO: WARNING: wchar.h: proceeding with the preprocessor's result" >&5
23828 echo "$as_me: WARNING: wchar.h: proceeding with the preprocessor's result" >&2;}
23829 { echo "$as_me:$LINENO: WARNING: wchar.h: in the future, the compiler will take precedence" >&5
23830 echo "$as_me: WARNING: wchar.h: in the future, the compiler will take precedence" >&2;}
23831 ( cat <<\_ASBOX
23832 ## -------------------------------------- ##
23833 ## Report this to http://bugs.python.org/ ##
23834 ## -------------------------------------- ##
23835 _ASBOX
23836 ) | sed "s/^/$as_me: WARNING: /" >&2
23838 esac
23839 { echo "$as_me:$LINENO: checking for wchar.h" >&5
23840 echo $ECHO_N "checking for wchar.h... $ECHO_C" >&6; }
23841 if test "${ac_cv_header_wchar_h+set}" = set; then
23842 echo $ECHO_N "(cached) $ECHO_C" >&6
23843 else
23844 ac_cv_header_wchar_h=$ac_header_preproc
23846 { echo "$as_me:$LINENO: result: $ac_cv_header_wchar_h" >&5
23847 echo "${ECHO_T}$ac_cv_header_wchar_h" >&6; }
23850 if test $ac_cv_header_wchar_h = yes; then
23853 cat >>confdefs.h <<\_ACEOF
23854 #define HAVE_WCHAR_H 1
23855 _ACEOF
23857 wchar_h="yes"
23859 else
23860 wchar_h="no"
23866 # determine wchar_t size
23867 if test "$wchar_h" = yes
23868 then
23869 { echo "$as_me:$LINENO: checking for wchar_t" >&5
23870 echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6; }
23871 if test "${ac_cv_type_wchar_t+set}" = set; then
23872 echo $ECHO_N "(cached) $ECHO_C" >&6
23873 else
23874 cat >conftest.$ac_ext <<_ACEOF
23875 /* confdefs.h. */
23876 _ACEOF
23877 cat confdefs.h >>conftest.$ac_ext
23878 cat >>conftest.$ac_ext <<_ACEOF
23879 /* end confdefs.h. */
23880 #include <wchar.h>
23882 typedef wchar_t ac__type_new_;
23884 main ()
23886 if ((ac__type_new_ *) 0)
23887 return 0;
23888 if (sizeof (ac__type_new_))
23889 return 0;
23891 return 0;
23893 _ACEOF
23894 rm -f conftest.$ac_objext
23895 if { (ac_try="$ac_compile"
23896 case "(($ac_try" in
23897 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23898 *) ac_try_echo=$ac_try;;
23899 esac
23900 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23901 (eval "$ac_compile") 2>conftest.er1
23902 ac_status=$?
23903 grep -v '^ *+' conftest.er1 >conftest.err
23904 rm -f conftest.er1
23905 cat conftest.err >&5
23906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23907 (exit $ac_status); } && {
23908 test -z "$ac_c_werror_flag" ||
23909 test ! -s conftest.err
23910 } && test -s conftest.$ac_objext; then
23911 ac_cv_type_wchar_t=yes
23912 else
23913 echo "$as_me: failed program was:" >&5
23914 sed 's/^/| /' conftest.$ac_ext >&5
23916 ac_cv_type_wchar_t=no
23919 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23921 { echo "$as_me:$LINENO: result: $ac_cv_type_wchar_t" >&5
23922 echo "${ECHO_T}$ac_cv_type_wchar_t" >&6; }
23924 # The cast to long int works around a bug in the HP C Compiler
23925 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23926 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23927 # This bug is HP SR number 8606223364.
23928 { echo "$as_me:$LINENO: checking size of wchar_t" >&5
23929 echo $ECHO_N "checking size of wchar_t... $ECHO_C" >&6; }
23930 if test "${ac_cv_sizeof_wchar_t+set}" = set; then
23931 echo $ECHO_N "(cached) $ECHO_C" >&6
23932 else
23933 if test "$cross_compiling" = yes; then
23934 # Depending upon the size, compute the lo and hi bounds.
23935 cat >conftest.$ac_ext <<_ACEOF
23936 /* confdefs.h. */
23937 _ACEOF
23938 cat confdefs.h >>conftest.$ac_ext
23939 cat >>conftest.$ac_ext <<_ACEOF
23940 /* end confdefs.h. */
23941 #include <wchar.h>
23943 typedef wchar_t ac__type_sizeof_;
23945 main ()
23947 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
23948 test_array [0] = 0
23951 return 0;
23953 _ACEOF
23954 rm -f conftest.$ac_objext
23955 if { (ac_try="$ac_compile"
23956 case "(($ac_try" in
23957 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23958 *) ac_try_echo=$ac_try;;
23959 esac
23960 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23961 (eval "$ac_compile") 2>conftest.er1
23962 ac_status=$?
23963 grep -v '^ *+' conftest.er1 >conftest.err
23964 rm -f conftest.er1
23965 cat conftest.err >&5
23966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23967 (exit $ac_status); } && {
23968 test -z "$ac_c_werror_flag" ||
23969 test ! -s conftest.err
23970 } && test -s conftest.$ac_objext; then
23971 ac_lo=0 ac_mid=0
23972 while :; do
23973 cat >conftest.$ac_ext <<_ACEOF
23974 /* confdefs.h. */
23975 _ACEOF
23976 cat confdefs.h >>conftest.$ac_ext
23977 cat >>conftest.$ac_ext <<_ACEOF
23978 /* end confdefs.h. */
23979 #include <wchar.h>
23981 typedef wchar_t ac__type_sizeof_;
23983 main ()
23985 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
23986 test_array [0] = 0
23989 return 0;
23991 _ACEOF
23992 rm -f conftest.$ac_objext
23993 if { (ac_try="$ac_compile"
23994 case "(($ac_try" in
23995 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23996 *) ac_try_echo=$ac_try;;
23997 esac
23998 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23999 (eval "$ac_compile") 2>conftest.er1
24000 ac_status=$?
24001 grep -v '^ *+' conftest.er1 >conftest.err
24002 rm -f conftest.er1
24003 cat conftest.err >&5
24004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24005 (exit $ac_status); } && {
24006 test -z "$ac_c_werror_flag" ||
24007 test ! -s conftest.err
24008 } && test -s conftest.$ac_objext; then
24009 ac_hi=$ac_mid; break
24010 else
24011 echo "$as_me: failed program was:" >&5
24012 sed 's/^/| /' conftest.$ac_ext >&5
24014 ac_lo=`expr $ac_mid + 1`
24015 if test $ac_lo -le $ac_mid; then
24016 ac_lo= ac_hi=
24017 break
24019 ac_mid=`expr 2 '*' $ac_mid + 1`
24022 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24023 done
24024 else
24025 echo "$as_me: failed program was:" >&5
24026 sed 's/^/| /' conftest.$ac_ext >&5
24028 cat >conftest.$ac_ext <<_ACEOF
24029 /* confdefs.h. */
24030 _ACEOF
24031 cat confdefs.h >>conftest.$ac_ext
24032 cat >>conftest.$ac_ext <<_ACEOF
24033 /* end confdefs.h. */
24034 #include <wchar.h>
24036 typedef wchar_t ac__type_sizeof_;
24038 main ()
24040 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
24041 test_array [0] = 0
24044 return 0;
24046 _ACEOF
24047 rm -f conftest.$ac_objext
24048 if { (ac_try="$ac_compile"
24049 case "(($ac_try" in
24050 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24051 *) ac_try_echo=$ac_try;;
24052 esac
24053 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24054 (eval "$ac_compile") 2>conftest.er1
24055 ac_status=$?
24056 grep -v '^ *+' conftest.er1 >conftest.err
24057 rm -f conftest.er1
24058 cat conftest.err >&5
24059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24060 (exit $ac_status); } && {
24061 test -z "$ac_c_werror_flag" ||
24062 test ! -s conftest.err
24063 } && test -s conftest.$ac_objext; then
24064 ac_hi=-1 ac_mid=-1
24065 while :; do
24066 cat >conftest.$ac_ext <<_ACEOF
24067 /* confdefs.h. */
24068 _ACEOF
24069 cat confdefs.h >>conftest.$ac_ext
24070 cat >>conftest.$ac_ext <<_ACEOF
24071 /* end confdefs.h. */
24072 #include <wchar.h>
24074 typedef wchar_t ac__type_sizeof_;
24076 main ()
24078 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
24079 test_array [0] = 0
24082 return 0;
24084 _ACEOF
24085 rm -f conftest.$ac_objext
24086 if { (ac_try="$ac_compile"
24087 case "(($ac_try" in
24088 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24089 *) ac_try_echo=$ac_try;;
24090 esac
24091 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24092 (eval "$ac_compile") 2>conftest.er1
24093 ac_status=$?
24094 grep -v '^ *+' conftest.er1 >conftest.err
24095 rm -f conftest.er1
24096 cat conftest.err >&5
24097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24098 (exit $ac_status); } && {
24099 test -z "$ac_c_werror_flag" ||
24100 test ! -s conftest.err
24101 } && test -s conftest.$ac_objext; then
24102 ac_lo=$ac_mid; break
24103 else
24104 echo "$as_me: failed program was:" >&5
24105 sed 's/^/| /' conftest.$ac_ext >&5
24107 ac_hi=`expr '(' $ac_mid ')' - 1`
24108 if test $ac_mid -le $ac_hi; then
24109 ac_lo= ac_hi=
24110 break
24112 ac_mid=`expr 2 '*' $ac_mid`
24115 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24116 done
24117 else
24118 echo "$as_me: failed program was:" >&5
24119 sed 's/^/| /' conftest.$ac_ext >&5
24121 ac_lo= ac_hi=
24124 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24127 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24128 # Binary search between lo and hi bounds.
24129 while test "x$ac_lo" != "x$ac_hi"; do
24130 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
24131 cat >conftest.$ac_ext <<_ACEOF
24132 /* confdefs.h. */
24133 _ACEOF
24134 cat confdefs.h >>conftest.$ac_ext
24135 cat >>conftest.$ac_ext <<_ACEOF
24136 /* end confdefs.h. */
24137 #include <wchar.h>
24139 typedef wchar_t ac__type_sizeof_;
24141 main ()
24143 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
24144 test_array [0] = 0
24147 return 0;
24149 _ACEOF
24150 rm -f conftest.$ac_objext
24151 if { (ac_try="$ac_compile"
24152 case "(($ac_try" in
24153 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24154 *) ac_try_echo=$ac_try;;
24155 esac
24156 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24157 (eval "$ac_compile") 2>conftest.er1
24158 ac_status=$?
24159 grep -v '^ *+' conftest.er1 >conftest.err
24160 rm -f conftest.er1
24161 cat conftest.err >&5
24162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24163 (exit $ac_status); } && {
24164 test -z "$ac_c_werror_flag" ||
24165 test ! -s conftest.err
24166 } && test -s conftest.$ac_objext; then
24167 ac_hi=$ac_mid
24168 else
24169 echo "$as_me: failed program was:" >&5
24170 sed 's/^/| /' conftest.$ac_ext >&5
24172 ac_lo=`expr '(' $ac_mid ')' + 1`
24175 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24176 done
24177 case $ac_lo in
24178 ?*) ac_cv_sizeof_wchar_t=$ac_lo;;
24179 '') if test "$ac_cv_type_wchar_t" = yes; then
24180 { { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t)
24181 See \`config.log' for more details." >&5
24182 echo "$as_me: error: cannot compute sizeof (wchar_t)
24183 See \`config.log' for more details." >&2;}
24184 { (exit 77); exit 77; }; }
24185 else
24186 ac_cv_sizeof_wchar_t=0
24187 fi ;;
24188 esac
24189 else
24190 cat >conftest.$ac_ext <<_ACEOF
24191 /* confdefs.h. */
24192 _ACEOF
24193 cat confdefs.h >>conftest.$ac_ext
24194 cat >>conftest.$ac_ext <<_ACEOF
24195 /* end confdefs.h. */
24196 #include <wchar.h>
24198 typedef wchar_t ac__type_sizeof_;
24199 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
24200 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
24201 #include <stdio.h>
24202 #include <stdlib.h>
24204 main ()
24207 FILE *f = fopen ("conftest.val", "w");
24208 if (! f)
24209 return 1;
24210 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
24212 long int i = longval ();
24213 if (i != ((long int) (sizeof (ac__type_sizeof_))))
24214 return 1;
24215 fprintf (f, "%ld\n", i);
24217 else
24219 unsigned long int i = ulongval ();
24220 if (i != ((long int) (sizeof (ac__type_sizeof_))))
24221 return 1;
24222 fprintf (f, "%lu\n", i);
24224 return ferror (f) || fclose (f) != 0;
24227 return 0;
24229 _ACEOF
24230 rm -f conftest$ac_exeext
24231 if { (ac_try="$ac_link"
24232 case "(($ac_try" in
24233 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24234 *) ac_try_echo=$ac_try;;
24235 esac
24236 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24237 (eval "$ac_link") 2>&5
24238 ac_status=$?
24239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24240 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24241 { (case "(($ac_try" in
24242 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24243 *) ac_try_echo=$ac_try;;
24244 esac
24245 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24246 (eval "$ac_try") 2>&5
24247 ac_status=$?
24248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24249 (exit $ac_status); }; }; then
24250 ac_cv_sizeof_wchar_t=`cat conftest.val`
24251 else
24252 echo "$as_me: program exited with status $ac_status" >&5
24253 echo "$as_me: failed program was:" >&5
24254 sed 's/^/| /' conftest.$ac_ext >&5
24256 ( exit $ac_status )
24257 if test "$ac_cv_type_wchar_t" = yes; then
24258 { { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t)
24259 See \`config.log' for more details." >&5
24260 echo "$as_me: error: cannot compute sizeof (wchar_t)
24261 See \`config.log' for more details." >&2;}
24262 { (exit 77); exit 77; }; }
24263 else
24264 ac_cv_sizeof_wchar_t=0
24267 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24269 rm -f conftest.val
24271 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_wchar_t" >&5
24272 echo "${ECHO_T}$ac_cv_sizeof_wchar_t" >&6; }
24276 cat >>confdefs.h <<_ACEOF
24277 #define SIZEOF_WCHAR_T $ac_cv_sizeof_wchar_t
24278 _ACEOF
24283 { echo "$as_me:$LINENO: checking for UCS-4 tcl" >&5
24284 echo $ECHO_N "checking for UCS-4 tcl... $ECHO_C" >&6; }
24285 have_ucs4_tcl=no
24286 cat >conftest.$ac_ext <<_ACEOF
24287 /* confdefs.h. */
24288 _ACEOF
24289 cat confdefs.h >>conftest.$ac_ext
24290 cat >>conftest.$ac_ext <<_ACEOF
24291 /* end confdefs.h. */
24293 #include <tcl.h>
24294 #if TCL_UTF_MAX != 6
24295 # error "NOT UCS4_TCL"
24296 #endif
24298 main ()
24302 return 0;
24304 _ACEOF
24305 rm -f conftest.$ac_objext
24306 if { (ac_try="$ac_compile"
24307 case "(($ac_try" in
24308 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24309 *) ac_try_echo=$ac_try;;
24310 esac
24311 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24312 (eval "$ac_compile") 2>conftest.er1
24313 ac_status=$?
24314 grep -v '^ *+' conftest.er1 >conftest.err
24315 rm -f conftest.er1
24316 cat conftest.err >&5
24317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24318 (exit $ac_status); } && {
24319 test -z "$ac_c_werror_flag" ||
24320 test ! -s conftest.err
24321 } && test -s conftest.$ac_objext; then
24324 cat >>confdefs.h <<\_ACEOF
24325 #define HAVE_UCS4_TCL 1
24326 _ACEOF
24328 have_ucs4_tcl=yes
24330 else
24331 echo "$as_me: failed program was:" >&5
24332 sed 's/^/| /' conftest.$ac_ext >&5
24337 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24338 { echo "$as_me:$LINENO: result: $have_ucs4_tcl" >&5
24339 echo "${ECHO_T}$have_ucs4_tcl" >&6; }
24341 # check whether wchar_t is signed or not
24342 if test "$wchar_h" = yes
24343 then
24344 # check whether wchar_t is signed or not
24345 { echo "$as_me:$LINENO: checking whether wchar_t is signed" >&5
24346 echo $ECHO_N "checking whether wchar_t is signed... $ECHO_C" >&6; }
24347 if test "${ac_cv_wchar_t_signed+set}" = set; then
24348 echo $ECHO_N "(cached) $ECHO_C" >&6
24349 else
24351 if test "$cross_compiling" = yes; then
24352 ac_cv_wchar_t_signed=yes
24353 else
24354 cat >conftest.$ac_ext <<_ACEOF
24355 /* confdefs.h. */
24356 _ACEOF
24357 cat confdefs.h >>conftest.$ac_ext
24358 cat >>conftest.$ac_ext <<_ACEOF
24359 /* end confdefs.h. */
24361 #include <wchar.h>
24362 int main()
24364 /* Success: exit code 0 */
24365 exit((((wchar_t) -1) < ((wchar_t) 0)) ? 0 : 1);
24368 _ACEOF
24369 rm -f conftest$ac_exeext
24370 if { (ac_try="$ac_link"
24371 case "(($ac_try" in
24372 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24373 *) ac_try_echo=$ac_try;;
24374 esac
24375 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24376 (eval "$ac_link") 2>&5
24377 ac_status=$?
24378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24379 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24380 { (case "(($ac_try" in
24381 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24382 *) ac_try_echo=$ac_try;;
24383 esac
24384 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24385 (eval "$ac_try") 2>&5
24386 ac_status=$?
24387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24388 (exit $ac_status); }; }; then
24389 ac_cv_wchar_t_signed=yes
24390 else
24391 echo "$as_me: program exited with status $ac_status" >&5
24392 echo "$as_me: failed program was:" >&5
24393 sed 's/^/| /' conftest.$ac_ext >&5
24395 ( exit $ac_status )
24396 ac_cv_wchar_t_signed=no
24398 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24404 { echo "$as_me:$LINENO: result: $ac_cv_wchar_t_signed" >&5
24405 echo "${ECHO_T}$ac_cv_wchar_t_signed" >&6; }
24408 { echo "$as_me:$LINENO: checking what type to use for unicode" >&5
24409 echo $ECHO_N "checking what type to use for unicode... $ECHO_C" >&6; }
24410 # Check whether --enable-unicode was given.
24411 if test "${enable_unicode+set}" = set; then
24412 enableval=$enable_unicode;
24413 else
24414 enable_unicode=yes
24418 if test $enable_unicode = yes
24419 then
24420 # Without any arguments, Py_UNICODE defaults to two-byte mode
24421 case "$have_ucs4_tcl" in
24422 yes) enable_unicode="ucs4"
24424 *) enable_unicode="ucs2"
24426 esac
24431 case "$enable_unicode" in
24432 ucs2) unicode_size="2"
24433 cat >>confdefs.h <<\_ACEOF
24434 #define Py_UNICODE_SIZE 2
24435 _ACEOF
24438 ucs4) unicode_size="4"
24439 cat >>confdefs.h <<\_ACEOF
24440 #define Py_UNICODE_SIZE 4
24441 _ACEOF
24444 esac
24450 if test "$enable_unicode" = "no"
24451 then
24452 UNICODE_OBJS=""
24453 { echo "$as_me:$LINENO: result: not used" >&5
24454 echo "${ECHO_T}not used" >&6; }
24455 else
24456 UNICODE_OBJS="Objects/unicodeobject.o Objects/unicodectype.o"
24458 cat >>confdefs.h <<\_ACEOF
24459 #define Py_USING_UNICODE 1
24460 _ACEOF
24463 # wchar_t is only usable if it maps to an unsigned type
24464 if test "$unicode_size" = "$ac_cv_sizeof_wchar_t" \
24465 -a "$ac_cv_wchar_t_signed" = "no"
24466 then
24467 PY_UNICODE_TYPE="wchar_t"
24469 cat >>confdefs.h <<\_ACEOF
24470 #define HAVE_USABLE_WCHAR_T 1
24471 _ACEOF
24473 cat >>confdefs.h <<\_ACEOF
24474 #define PY_UNICODE_TYPE wchar_t
24475 _ACEOF
24477 elif test "$ac_cv_sizeof_short" = "$unicode_size"
24478 then
24479 PY_UNICODE_TYPE="unsigned short"
24480 cat >>confdefs.h <<\_ACEOF
24481 #define PY_UNICODE_TYPE unsigned short
24482 _ACEOF
24484 elif test "$ac_cv_sizeof_long" = "$unicode_size"
24485 then
24486 PY_UNICODE_TYPE="unsigned long"
24487 cat >>confdefs.h <<\_ACEOF
24488 #define PY_UNICODE_TYPE unsigned long
24489 _ACEOF
24491 else
24492 PY_UNICODE_TYPE="no type found"
24494 { echo "$as_me:$LINENO: result: $PY_UNICODE_TYPE" >&5
24495 echo "${ECHO_T}$PY_UNICODE_TYPE" >&6; }
24498 # check for endianness
24499 { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
24500 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
24501 if test "${ac_cv_c_bigendian+set}" = set; then
24502 echo $ECHO_N "(cached) $ECHO_C" >&6
24503 else
24504 # See if sys/param.h defines the BYTE_ORDER macro.
24505 cat >conftest.$ac_ext <<_ACEOF
24506 /* confdefs.h. */
24507 _ACEOF
24508 cat confdefs.h >>conftest.$ac_ext
24509 cat >>conftest.$ac_ext <<_ACEOF
24510 /* end confdefs.h. */
24511 #include <sys/types.h>
24512 #include <sys/param.h>
24515 main ()
24517 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN && defined LITTLE_ENDIAN \
24518 && BYTE_ORDER && BIG_ENDIAN && LITTLE_ENDIAN)
24519 bogus endian macros
24520 #endif
24523 return 0;
24525 _ACEOF
24526 rm -f conftest.$ac_objext
24527 if { (ac_try="$ac_compile"
24528 case "(($ac_try" in
24529 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24530 *) ac_try_echo=$ac_try;;
24531 esac
24532 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24533 (eval "$ac_compile") 2>conftest.er1
24534 ac_status=$?
24535 grep -v '^ *+' conftest.er1 >conftest.err
24536 rm -f conftest.er1
24537 cat conftest.err >&5
24538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24539 (exit $ac_status); } && {
24540 test -z "$ac_c_werror_flag" ||
24541 test ! -s conftest.err
24542 } && test -s conftest.$ac_objext; then
24543 # It does; now see whether it defined to BIG_ENDIAN or not.
24544 cat >conftest.$ac_ext <<_ACEOF
24545 /* confdefs.h. */
24546 _ACEOF
24547 cat confdefs.h >>conftest.$ac_ext
24548 cat >>conftest.$ac_ext <<_ACEOF
24549 /* end confdefs.h. */
24550 #include <sys/types.h>
24551 #include <sys/param.h>
24554 main ()
24556 #if BYTE_ORDER != BIG_ENDIAN
24557 not big endian
24558 #endif
24561 return 0;
24563 _ACEOF
24564 rm -f conftest.$ac_objext
24565 if { (ac_try="$ac_compile"
24566 case "(($ac_try" in
24567 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24568 *) ac_try_echo=$ac_try;;
24569 esac
24570 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24571 (eval "$ac_compile") 2>conftest.er1
24572 ac_status=$?
24573 grep -v '^ *+' conftest.er1 >conftest.err
24574 rm -f conftest.er1
24575 cat conftest.err >&5
24576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24577 (exit $ac_status); } && {
24578 test -z "$ac_c_werror_flag" ||
24579 test ! -s conftest.err
24580 } && test -s conftest.$ac_objext; then
24581 ac_cv_c_bigendian=yes
24582 else
24583 echo "$as_me: failed program was:" >&5
24584 sed 's/^/| /' conftest.$ac_ext >&5
24586 ac_cv_c_bigendian=no
24589 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24590 else
24591 echo "$as_me: failed program was:" >&5
24592 sed 's/^/| /' conftest.$ac_ext >&5
24594 # It does not; compile a test program.
24595 if test "$cross_compiling" = yes; then
24596 # try to guess the endianness by grepping values into an object file
24597 ac_cv_c_bigendian=unknown
24598 cat >conftest.$ac_ext <<_ACEOF
24599 /* confdefs.h. */
24600 _ACEOF
24601 cat confdefs.h >>conftest.$ac_ext
24602 cat >>conftest.$ac_ext <<_ACEOF
24603 /* end confdefs.h. */
24604 short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
24605 short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
24606 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
24607 short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
24608 short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
24609 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
24611 main ()
24613 _ascii (); _ebcdic ();
24615 return 0;
24617 _ACEOF
24618 rm -f conftest.$ac_objext
24619 if { (ac_try="$ac_compile"
24620 case "(($ac_try" in
24621 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24622 *) ac_try_echo=$ac_try;;
24623 esac
24624 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24625 (eval "$ac_compile") 2>conftest.er1
24626 ac_status=$?
24627 grep -v '^ *+' conftest.er1 >conftest.err
24628 rm -f conftest.er1
24629 cat conftest.err >&5
24630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24631 (exit $ac_status); } && {
24632 test -z "$ac_c_werror_flag" ||
24633 test ! -s conftest.err
24634 } && test -s conftest.$ac_objext; then
24635 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
24636 ac_cv_c_bigendian=yes
24638 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
24639 if test "$ac_cv_c_bigendian" = unknown; then
24640 ac_cv_c_bigendian=no
24641 else
24642 # finding both strings is unlikely to happen, but who knows?
24643 ac_cv_c_bigendian=unknown
24646 else
24647 echo "$as_me: failed program was:" >&5
24648 sed 's/^/| /' conftest.$ac_ext >&5
24653 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24654 else
24655 cat >conftest.$ac_ext <<_ACEOF
24656 /* confdefs.h. */
24657 _ACEOF
24658 cat confdefs.h >>conftest.$ac_ext
24659 cat >>conftest.$ac_ext <<_ACEOF
24660 /* end confdefs.h. */
24661 $ac_includes_default
24663 main ()
24666 /* Are we little or big endian? From Harbison&Steele. */
24667 union
24669 long int l;
24670 char c[sizeof (long int)];
24671 } u;
24672 u.l = 1;
24673 return u.c[sizeof (long int) - 1] == 1;
24676 return 0;
24678 _ACEOF
24679 rm -f conftest$ac_exeext
24680 if { (ac_try="$ac_link"
24681 case "(($ac_try" in
24682 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24683 *) ac_try_echo=$ac_try;;
24684 esac
24685 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24686 (eval "$ac_link") 2>&5
24687 ac_status=$?
24688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24689 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24690 { (case "(($ac_try" in
24691 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24692 *) ac_try_echo=$ac_try;;
24693 esac
24694 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24695 (eval "$ac_try") 2>&5
24696 ac_status=$?
24697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24698 (exit $ac_status); }; }; then
24699 ac_cv_c_bigendian=no
24700 else
24701 echo "$as_me: program exited with status $ac_status" >&5
24702 echo "$as_me: failed program was:" >&5
24703 sed 's/^/| /' conftest.$ac_ext >&5
24705 ( exit $ac_status )
24706 ac_cv_c_bigendian=yes
24708 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24714 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24716 { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
24717 echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
24718 case $ac_cv_c_bigendian in
24719 yes)
24721 cat >>confdefs.h <<\_ACEOF
24722 #define WORDS_BIGENDIAN 1
24723 _ACEOF
24728 { { echo "$as_me:$LINENO: error: unknown endianness
24729 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
24730 echo "$as_me: error: unknown endianness
24731 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
24732 { (exit 1); exit 1; }; } ;;
24733 esac
24736 # Check whether right shifting a negative integer extends the sign bit
24737 # or fills with zeros (like the Cray J90, according to Tim Peters).
24738 { echo "$as_me:$LINENO: checking whether right shift extends the sign bit" >&5
24739 echo $ECHO_N "checking whether right shift extends the sign bit... $ECHO_C" >&6; }
24740 if test "${ac_cv_rshift_extends_sign+set}" = set; then
24741 echo $ECHO_N "(cached) $ECHO_C" >&6
24742 else
24744 if test "$cross_compiling" = yes; then
24745 ac_cv_rshift_extends_sign=yes
24746 else
24747 cat >conftest.$ac_ext <<_ACEOF
24748 /* confdefs.h. */
24749 _ACEOF
24750 cat confdefs.h >>conftest.$ac_ext
24751 cat >>conftest.$ac_ext <<_ACEOF
24752 /* end confdefs.h. */
24754 int main()
24756 exit(((-1)>>3 == -1) ? 0 : 1);
24759 _ACEOF
24760 rm -f conftest$ac_exeext
24761 if { (ac_try="$ac_link"
24762 case "(($ac_try" in
24763 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24764 *) ac_try_echo=$ac_try;;
24765 esac
24766 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24767 (eval "$ac_link") 2>&5
24768 ac_status=$?
24769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24770 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24771 { (case "(($ac_try" in
24772 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24773 *) ac_try_echo=$ac_try;;
24774 esac
24775 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24776 (eval "$ac_try") 2>&5
24777 ac_status=$?
24778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24779 (exit $ac_status); }; }; then
24780 ac_cv_rshift_extends_sign=yes
24781 else
24782 echo "$as_me: program exited with status $ac_status" >&5
24783 echo "$as_me: failed program was:" >&5
24784 sed 's/^/| /' conftest.$ac_ext >&5
24786 ( exit $ac_status )
24787 ac_cv_rshift_extends_sign=no
24789 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24795 { echo "$as_me:$LINENO: result: $ac_cv_rshift_extends_sign" >&5
24796 echo "${ECHO_T}$ac_cv_rshift_extends_sign" >&6; }
24797 if test "$ac_cv_rshift_extends_sign" = no
24798 then
24800 cat >>confdefs.h <<\_ACEOF
24801 #define SIGNED_RIGHT_SHIFT_ZERO_FILLS 1
24802 _ACEOF
24806 # check for getc_unlocked and related locking functions
24807 { echo "$as_me:$LINENO: checking for getc_unlocked() and friends" >&5
24808 echo $ECHO_N "checking for getc_unlocked() and friends... $ECHO_C" >&6; }
24809 if test "${ac_cv_have_getc_unlocked+set}" = set; then
24810 echo $ECHO_N "(cached) $ECHO_C" >&6
24811 else
24813 cat >conftest.$ac_ext <<_ACEOF
24814 /* confdefs.h. */
24815 _ACEOF
24816 cat confdefs.h >>conftest.$ac_ext
24817 cat >>conftest.$ac_ext <<_ACEOF
24818 /* end confdefs.h. */
24819 #include <stdio.h>
24821 main ()
24824 FILE *f = fopen("/dev/null", "r");
24825 flockfile(f);
24826 getc_unlocked(f);
24827 funlockfile(f);
24830 return 0;
24832 _ACEOF
24833 rm -f conftest.$ac_objext conftest$ac_exeext
24834 if { (ac_try="$ac_link"
24835 case "(($ac_try" in
24836 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24837 *) ac_try_echo=$ac_try;;
24838 esac
24839 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24840 (eval "$ac_link") 2>conftest.er1
24841 ac_status=$?
24842 grep -v '^ *+' conftest.er1 >conftest.err
24843 rm -f conftest.er1
24844 cat conftest.err >&5
24845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24846 (exit $ac_status); } && {
24847 test -z "$ac_c_werror_flag" ||
24848 test ! -s conftest.err
24849 } && test -s conftest$ac_exeext &&
24850 $as_test_x conftest$ac_exeext; then
24851 ac_cv_have_getc_unlocked=yes
24852 else
24853 echo "$as_me: failed program was:" >&5
24854 sed 's/^/| /' conftest.$ac_ext >&5
24856 ac_cv_have_getc_unlocked=no
24859 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24860 conftest$ac_exeext conftest.$ac_ext
24863 { echo "$as_me:$LINENO: result: $ac_cv_have_getc_unlocked" >&5
24864 echo "${ECHO_T}$ac_cv_have_getc_unlocked" >&6; }
24865 if test "$ac_cv_have_getc_unlocked" = yes
24866 then
24868 cat >>confdefs.h <<\_ACEOF
24869 #define HAVE_GETC_UNLOCKED 1
24870 _ACEOF
24874 # check where readline lives
24875 # save the value of LIBS so we don't actually link Python with readline
24876 LIBS_no_readline=$LIBS
24878 # On some systems we need to link readline to a termcap compatible
24879 # library. NOTE: Keep the precedence of listed libraries synchronised
24880 # with setup.py.
24881 py_cv_lib_readline=no
24882 { echo "$as_me:$LINENO: checking how to link readline libs" >&5
24883 echo $ECHO_N "checking how to link readline libs... $ECHO_C" >&6; }
24884 for py_libtermcap in "" ncursesw ncurses curses termcap; do
24885 if test -z "$py_libtermcap"; then
24886 READLINE_LIBS="-lreadline"
24887 else
24888 READLINE_LIBS="-lreadline -l$py_libtermcap"
24890 LIBS="$READLINE_LIBS $LIBS_no_readline"
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 /* Override any GCC internal prototype to avoid an error.
24899 Use char because int might match the return type of a GCC
24900 builtin and then its argument prototype would still apply. */
24901 #ifdef __cplusplus
24902 extern "C"
24903 #endif
24904 char readline ();
24906 main ()
24908 return readline ();
24910 return 0;
24912 _ACEOF
24913 rm -f conftest.$ac_objext conftest$ac_exeext
24914 if { (ac_try="$ac_link"
24915 case "(($ac_try" in
24916 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24917 *) ac_try_echo=$ac_try;;
24918 esac
24919 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24920 (eval "$ac_link") 2>conftest.er1
24921 ac_status=$?
24922 grep -v '^ *+' conftest.er1 >conftest.err
24923 rm -f conftest.er1
24924 cat conftest.err >&5
24925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24926 (exit $ac_status); } && {
24927 test -z "$ac_c_werror_flag" ||
24928 test ! -s conftest.err
24929 } && test -s conftest$ac_exeext &&
24930 $as_test_x conftest$ac_exeext; then
24931 py_cv_lib_readline=yes
24932 else
24933 echo "$as_me: failed program was:" >&5
24934 sed 's/^/| /' conftest.$ac_ext >&5
24939 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24940 conftest$ac_exeext conftest.$ac_ext
24941 if test $py_cv_lib_readline = yes; then
24942 break
24944 done
24945 # Uncomment this line if you want to use READINE_LIBS in Makefile or scripts
24946 #AC_SUBST([READLINE_LIBS])
24947 if test $py_cv_lib_readline = no; then
24948 { echo "$as_me:$LINENO: result: none" >&5
24949 echo "${ECHO_T}none" >&6; }
24950 else
24951 { echo "$as_me:$LINENO: result: $READLINE_LIBS" >&5
24952 echo "${ECHO_T}$READLINE_LIBS" >&6; }
24954 cat >>confdefs.h <<\_ACEOF
24955 #define HAVE_LIBREADLINE 1
24956 _ACEOF
24960 # check for readline 2.1
24961 { echo "$as_me:$LINENO: checking for rl_callback_handler_install in -lreadline" >&5
24962 echo $ECHO_N "checking for rl_callback_handler_install in -lreadline... $ECHO_C" >&6; }
24963 if test "${ac_cv_lib_readline_rl_callback_handler_install+set}" = set; then
24964 echo $ECHO_N "(cached) $ECHO_C" >&6
24965 else
24966 ac_check_lib_save_LIBS=$LIBS
24967 LIBS="-lreadline $READLINE_LIBS $LIBS"
24968 cat >conftest.$ac_ext <<_ACEOF
24969 /* confdefs.h. */
24970 _ACEOF
24971 cat confdefs.h >>conftest.$ac_ext
24972 cat >>conftest.$ac_ext <<_ACEOF
24973 /* end confdefs.h. */
24975 /* Override any GCC internal prototype to avoid an error.
24976 Use char because int might match the return type of a GCC
24977 builtin and then its argument prototype would still apply. */
24978 #ifdef __cplusplus
24979 extern "C"
24980 #endif
24981 char rl_callback_handler_install ();
24983 main ()
24985 return rl_callback_handler_install ();
24987 return 0;
24989 _ACEOF
24990 rm -f conftest.$ac_objext conftest$ac_exeext
24991 if { (ac_try="$ac_link"
24992 case "(($ac_try" in
24993 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24994 *) ac_try_echo=$ac_try;;
24995 esac
24996 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24997 (eval "$ac_link") 2>conftest.er1
24998 ac_status=$?
24999 grep -v '^ *+' conftest.er1 >conftest.err
25000 rm -f conftest.er1
25001 cat conftest.err >&5
25002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25003 (exit $ac_status); } && {
25004 test -z "$ac_c_werror_flag" ||
25005 test ! -s conftest.err
25006 } && test -s conftest$ac_exeext &&
25007 $as_test_x conftest$ac_exeext; then
25008 ac_cv_lib_readline_rl_callback_handler_install=yes
25009 else
25010 echo "$as_me: failed program was:" >&5
25011 sed 's/^/| /' conftest.$ac_ext >&5
25013 ac_cv_lib_readline_rl_callback_handler_install=no
25016 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25017 conftest$ac_exeext conftest.$ac_ext
25018 LIBS=$ac_check_lib_save_LIBS
25020 { echo "$as_me:$LINENO: result: $ac_cv_lib_readline_rl_callback_handler_install" >&5
25021 echo "${ECHO_T}$ac_cv_lib_readline_rl_callback_handler_install" >&6; }
25022 if test $ac_cv_lib_readline_rl_callback_handler_install = yes; then
25024 cat >>confdefs.h <<\_ACEOF
25025 #define HAVE_RL_CALLBACK 1
25026 _ACEOF
25031 # check for readline 2.2
25032 cat >conftest.$ac_ext <<_ACEOF
25033 /* confdefs.h. */
25034 _ACEOF
25035 cat confdefs.h >>conftest.$ac_ext
25036 cat >>conftest.$ac_ext <<_ACEOF
25037 /* end confdefs.h. */
25038 #include <readline/readline.h>
25039 _ACEOF
25040 if { (ac_try="$ac_cpp conftest.$ac_ext"
25041 case "(($ac_try" in
25042 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25043 *) ac_try_echo=$ac_try;;
25044 esac
25045 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25046 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
25047 ac_status=$?
25048 grep -v '^ *+' conftest.er1 >conftest.err
25049 rm -f conftest.er1
25050 cat conftest.err >&5
25051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25052 (exit $ac_status); } >/dev/null && {
25053 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
25054 test ! -s conftest.err
25055 }; then
25056 have_readline=yes
25057 else
25058 echo "$as_me: failed program was:" >&5
25059 sed 's/^/| /' conftest.$ac_ext >&5
25061 have_readline=no
25064 rm -f conftest.err conftest.$ac_ext
25065 if test $have_readline = yes
25066 then
25067 cat >conftest.$ac_ext <<_ACEOF
25068 /* confdefs.h. */
25069 _ACEOF
25070 cat confdefs.h >>conftest.$ac_ext
25071 cat >>conftest.$ac_ext <<_ACEOF
25072 /* end confdefs.h. */
25073 #include <readline/readline.h>
25075 _ACEOF
25076 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
25077 $EGREP "extern int rl_completion_append_character;" >/dev/null 2>&1; then
25079 cat >>confdefs.h <<\_ACEOF
25080 #define HAVE_RL_COMPLETION_APPEND_CHARACTER 1
25081 _ACEOF
25084 rm -f conftest*
25088 # check for readline 4.0
25089 { echo "$as_me:$LINENO: checking for rl_pre_input_hook in -lreadline" >&5
25090 echo $ECHO_N "checking for rl_pre_input_hook in -lreadline... $ECHO_C" >&6; }
25091 if test "${ac_cv_lib_readline_rl_pre_input_hook+set}" = set; then
25092 echo $ECHO_N "(cached) $ECHO_C" >&6
25093 else
25094 ac_check_lib_save_LIBS=$LIBS
25095 LIBS="-lreadline $READLINE_LIBS $LIBS"
25096 cat >conftest.$ac_ext <<_ACEOF
25097 /* confdefs.h. */
25098 _ACEOF
25099 cat confdefs.h >>conftest.$ac_ext
25100 cat >>conftest.$ac_ext <<_ACEOF
25101 /* end confdefs.h. */
25103 /* Override any GCC internal prototype to avoid an error.
25104 Use char because int might match the return type of a GCC
25105 builtin and then its argument prototype would still apply. */
25106 #ifdef __cplusplus
25107 extern "C"
25108 #endif
25109 char rl_pre_input_hook ();
25111 main ()
25113 return rl_pre_input_hook ();
25115 return 0;
25117 _ACEOF
25118 rm -f conftest.$ac_objext conftest$ac_exeext
25119 if { (ac_try="$ac_link"
25120 case "(($ac_try" in
25121 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25122 *) ac_try_echo=$ac_try;;
25123 esac
25124 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25125 (eval "$ac_link") 2>conftest.er1
25126 ac_status=$?
25127 grep -v '^ *+' conftest.er1 >conftest.err
25128 rm -f conftest.er1
25129 cat conftest.err >&5
25130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25131 (exit $ac_status); } && {
25132 test -z "$ac_c_werror_flag" ||
25133 test ! -s conftest.err
25134 } && test -s conftest$ac_exeext &&
25135 $as_test_x conftest$ac_exeext; then
25136 ac_cv_lib_readline_rl_pre_input_hook=yes
25137 else
25138 echo "$as_me: failed program was:" >&5
25139 sed 's/^/| /' conftest.$ac_ext >&5
25141 ac_cv_lib_readline_rl_pre_input_hook=no
25144 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25145 conftest$ac_exeext conftest.$ac_ext
25146 LIBS=$ac_check_lib_save_LIBS
25148 { echo "$as_me:$LINENO: result: $ac_cv_lib_readline_rl_pre_input_hook" >&5
25149 echo "${ECHO_T}$ac_cv_lib_readline_rl_pre_input_hook" >&6; }
25150 if test $ac_cv_lib_readline_rl_pre_input_hook = yes; then
25152 cat >>confdefs.h <<\_ACEOF
25153 #define HAVE_RL_PRE_INPUT_HOOK 1
25154 _ACEOF
25159 # also in 4.0
25160 { echo "$as_me:$LINENO: checking for rl_completion_display_matches_hook in -lreadline" >&5
25161 echo $ECHO_N "checking for rl_completion_display_matches_hook in -lreadline... $ECHO_C" >&6; }
25162 if test "${ac_cv_lib_readline_rl_completion_display_matches_hook+set}" = set; then
25163 echo $ECHO_N "(cached) $ECHO_C" >&6
25164 else
25165 ac_check_lib_save_LIBS=$LIBS
25166 LIBS="-lreadline $READLINE_LIBS $LIBS"
25167 cat >conftest.$ac_ext <<_ACEOF
25168 /* confdefs.h. */
25169 _ACEOF
25170 cat confdefs.h >>conftest.$ac_ext
25171 cat >>conftest.$ac_ext <<_ACEOF
25172 /* end confdefs.h. */
25174 /* Override any GCC internal prototype to avoid an error.
25175 Use char because int might match the return type of a GCC
25176 builtin and then its argument prototype would still apply. */
25177 #ifdef __cplusplus
25178 extern "C"
25179 #endif
25180 char rl_completion_display_matches_hook ();
25182 main ()
25184 return rl_completion_display_matches_hook ();
25186 return 0;
25188 _ACEOF
25189 rm -f conftest.$ac_objext conftest$ac_exeext
25190 if { (ac_try="$ac_link"
25191 case "(($ac_try" in
25192 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25193 *) ac_try_echo=$ac_try;;
25194 esac
25195 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25196 (eval "$ac_link") 2>conftest.er1
25197 ac_status=$?
25198 grep -v '^ *+' conftest.er1 >conftest.err
25199 rm -f conftest.er1
25200 cat conftest.err >&5
25201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25202 (exit $ac_status); } && {
25203 test -z "$ac_c_werror_flag" ||
25204 test ! -s conftest.err
25205 } && test -s conftest$ac_exeext &&
25206 $as_test_x conftest$ac_exeext; then
25207 ac_cv_lib_readline_rl_completion_display_matches_hook=yes
25208 else
25209 echo "$as_me: failed program was:" >&5
25210 sed 's/^/| /' conftest.$ac_ext >&5
25212 ac_cv_lib_readline_rl_completion_display_matches_hook=no
25215 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25216 conftest$ac_exeext conftest.$ac_ext
25217 LIBS=$ac_check_lib_save_LIBS
25219 { echo "$as_me:$LINENO: result: $ac_cv_lib_readline_rl_completion_display_matches_hook" >&5
25220 echo "${ECHO_T}$ac_cv_lib_readline_rl_completion_display_matches_hook" >&6; }
25221 if test $ac_cv_lib_readline_rl_completion_display_matches_hook = yes; then
25223 cat >>confdefs.h <<\_ACEOF
25224 #define HAVE_RL_COMPLETION_DISPLAY_MATCHES_HOOK 1
25225 _ACEOF
25230 # check for readline 4.2
25231 { echo "$as_me:$LINENO: checking for rl_completion_matches in -lreadline" >&5
25232 echo $ECHO_N "checking for rl_completion_matches in -lreadline... $ECHO_C" >&6; }
25233 if test "${ac_cv_lib_readline_rl_completion_matches+set}" = set; then
25234 echo $ECHO_N "(cached) $ECHO_C" >&6
25235 else
25236 ac_check_lib_save_LIBS=$LIBS
25237 LIBS="-lreadline $READLINE_LIBS $LIBS"
25238 cat >conftest.$ac_ext <<_ACEOF
25239 /* confdefs.h. */
25240 _ACEOF
25241 cat confdefs.h >>conftest.$ac_ext
25242 cat >>conftest.$ac_ext <<_ACEOF
25243 /* end confdefs.h. */
25245 /* Override any GCC internal prototype to avoid an error.
25246 Use char because int might match the return type of a GCC
25247 builtin and then its argument prototype would still apply. */
25248 #ifdef __cplusplus
25249 extern "C"
25250 #endif
25251 char rl_completion_matches ();
25253 main ()
25255 return rl_completion_matches ();
25257 return 0;
25259 _ACEOF
25260 rm -f conftest.$ac_objext conftest$ac_exeext
25261 if { (ac_try="$ac_link"
25262 case "(($ac_try" in
25263 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25264 *) ac_try_echo=$ac_try;;
25265 esac
25266 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25267 (eval "$ac_link") 2>conftest.er1
25268 ac_status=$?
25269 grep -v '^ *+' conftest.er1 >conftest.err
25270 rm -f conftest.er1
25271 cat conftest.err >&5
25272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25273 (exit $ac_status); } && {
25274 test -z "$ac_c_werror_flag" ||
25275 test ! -s conftest.err
25276 } && test -s conftest$ac_exeext &&
25277 $as_test_x conftest$ac_exeext; then
25278 ac_cv_lib_readline_rl_completion_matches=yes
25279 else
25280 echo "$as_me: failed program was:" >&5
25281 sed 's/^/| /' conftest.$ac_ext >&5
25283 ac_cv_lib_readline_rl_completion_matches=no
25286 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25287 conftest$ac_exeext conftest.$ac_ext
25288 LIBS=$ac_check_lib_save_LIBS
25290 { echo "$as_me:$LINENO: result: $ac_cv_lib_readline_rl_completion_matches" >&5
25291 echo "${ECHO_T}$ac_cv_lib_readline_rl_completion_matches" >&6; }
25292 if test $ac_cv_lib_readline_rl_completion_matches = yes; then
25294 cat >>confdefs.h <<\_ACEOF
25295 #define HAVE_RL_COMPLETION_MATCHES 1
25296 _ACEOF
25301 # also in readline 4.2
25302 cat >conftest.$ac_ext <<_ACEOF
25303 /* confdefs.h. */
25304 _ACEOF
25305 cat confdefs.h >>conftest.$ac_ext
25306 cat >>conftest.$ac_ext <<_ACEOF
25307 /* end confdefs.h. */
25308 #include <readline/readline.h>
25309 _ACEOF
25310 if { (ac_try="$ac_cpp conftest.$ac_ext"
25311 case "(($ac_try" in
25312 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25313 *) ac_try_echo=$ac_try;;
25314 esac
25315 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25316 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
25317 ac_status=$?
25318 grep -v '^ *+' conftest.er1 >conftest.err
25319 rm -f conftest.er1
25320 cat conftest.err >&5
25321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25322 (exit $ac_status); } >/dev/null && {
25323 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
25324 test ! -s conftest.err
25325 }; then
25326 have_readline=yes
25327 else
25328 echo "$as_me: failed program was:" >&5
25329 sed 's/^/| /' conftest.$ac_ext >&5
25331 have_readline=no
25334 rm -f conftest.err conftest.$ac_ext
25335 if test $have_readline = yes
25336 then
25337 cat >conftest.$ac_ext <<_ACEOF
25338 /* confdefs.h. */
25339 _ACEOF
25340 cat confdefs.h >>conftest.$ac_ext
25341 cat >>conftest.$ac_ext <<_ACEOF
25342 /* end confdefs.h. */
25343 #include <readline/readline.h>
25345 _ACEOF
25346 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
25347 $EGREP "extern int rl_catch_signals;" >/dev/null 2>&1; then
25349 cat >>confdefs.h <<\_ACEOF
25350 #define HAVE_RL_CATCH_SIGNAL 1
25351 _ACEOF
25354 rm -f conftest*
25358 # End of readline checks: restore LIBS
25359 LIBS=$LIBS_no_readline
25361 { echo "$as_me:$LINENO: checking for broken nice()" >&5
25362 echo $ECHO_N "checking for broken nice()... $ECHO_C" >&6; }
25363 if test "${ac_cv_broken_nice+set}" = set; then
25364 echo $ECHO_N "(cached) $ECHO_C" >&6
25365 else
25367 if test "$cross_compiling" = yes; then
25368 ac_cv_broken_nice=no
25369 else
25370 cat >conftest.$ac_ext <<_ACEOF
25371 /* confdefs.h. */
25372 _ACEOF
25373 cat confdefs.h >>conftest.$ac_ext
25374 cat >>conftest.$ac_ext <<_ACEOF
25375 /* end confdefs.h. */
25377 int main()
25379 int val1 = nice(1);
25380 if (val1 != -1 && val1 == nice(2))
25381 exit(0);
25382 exit(1);
25385 _ACEOF
25386 rm -f conftest$ac_exeext
25387 if { (ac_try="$ac_link"
25388 case "(($ac_try" in
25389 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25390 *) ac_try_echo=$ac_try;;
25391 esac
25392 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25393 (eval "$ac_link") 2>&5
25394 ac_status=$?
25395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25396 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25397 { (case "(($ac_try" in
25398 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25399 *) ac_try_echo=$ac_try;;
25400 esac
25401 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25402 (eval "$ac_try") 2>&5
25403 ac_status=$?
25404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25405 (exit $ac_status); }; }; then
25406 ac_cv_broken_nice=yes
25407 else
25408 echo "$as_me: program exited with status $ac_status" >&5
25409 echo "$as_me: failed program was:" >&5
25410 sed 's/^/| /' conftest.$ac_ext >&5
25412 ( exit $ac_status )
25413 ac_cv_broken_nice=no
25415 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25421 { echo "$as_me:$LINENO: result: $ac_cv_broken_nice" >&5
25422 echo "${ECHO_T}$ac_cv_broken_nice" >&6; }
25423 if test "$ac_cv_broken_nice" = yes
25424 then
25426 cat >>confdefs.h <<\_ACEOF
25427 #define HAVE_BROKEN_NICE 1
25428 _ACEOF
25432 { echo "$as_me:$LINENO: checking for broken poll()" >&5
25433 echo $ECHO_N "checking for broken poll()... $ECHO_C" >&6; }
25434 if test "${ac_cv_broken_poll+set}" = set; then
25435 echo $ECHO_N "(cached) $ECHO_C" >&6
25436 else
25437 if test "$cross_compiling" = yes; then
25438 ac_cv_broken_poll=no
25439 else
25440 cat >conftest.$ac_ext <<_ACEOF
25441 /* confdefs.h. */
25442 _ACEOF
25443 cat confdefs.h >>conftest.$ac_ext
25444 cat >>conftest.$ac_ext <<_ACEOF
25445 /* end confdefs.h. */
25447 #include <poll.h>
25449 int main()
25451 struct pollfd poll_struct = { 42, POLLIN|POLLPRI|POLLOUT, 0 };
25452 int poll_test;
25454 close (42);
25456 poll_test = poll(&poll_struct, 1, 0);
25457 if (poll_test < 0)
25458 return 0;
25459 else if (poll_test == 0 && poll_struct.revents != POLLNVAL)
25460 return 0;
25461 else
25462 return 1;
25465 _ACEOF
25466 rm -f conftest$ac_exeext
25467 if { (ac_try="$ac_link"
25468 case "(($ac_try" in
25469 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25470 *) ac_try_echo=$ac_try;;
25471 esac
25472 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25473 (eval "$ac_link") 2>&5
25474 ac_status=$?
25475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25476 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25477 { (case "(($ac_try" in
25478 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25479 *) ac_try_echo=$ac_try;;
25480 esac
25481 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25482 (eval "$ac_try") 2>&5
25483 ac_status=$?
25484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25485 (exit $ac_status); }; }; then
25486 ac_cv_broken_poll=yes
25487 else
25488 echo "$as_me: program exited with status $ac_status" >&5
25489 echo "$as_me: failed program was:" >&5
25490 sed 's/^/| /' conftest.$ac_ext >&5
25492 ( exit $ac_status )
25493 ac_cv_broken_poll=no
25495 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25501 { echo "$as_me:$LINENO: result: $ac_cv_broken_poll" >&5
25502 echo "${ECHO_T}$ac_cv_broken_poll" >&6; }
25503 if test "$ac_cv_broken_poll" = yes
25504 then
25506 cat >>confdefs.h <<\_ACEOF
25507 #define HAVE_BROKEN_POLL 1
25508 _ACEOF
25512 # Before we can test tzset, we need to check if struct tm has a tm_zone
25513 # (which is not required by ISO C or UNIX spec) and/or if we support
25514 # tzname[]
25515 { echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
25516 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6; }
25517 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
25518 echo $ECHO_N "(cached) $ECHO_C" >&6
25519 else
25520 cat >conftest.$ac_ext <<_ACEOF
25521 /* confdefs.h. */
25522 _ACEOF
25523 cat confdefs.h >>conftest.$ac_ext
25524 cat >>conftest.$ac_ext <<_ACEOF
25525 /* end confdefs.h. */
25526 #include <sys/types.h>
25527 #include <$ac_cv_struct_tm>
25531 main ()
25533 static struct tm ac_aggr;
25534 if (ac_aggr.tm_zone)
25535 return 0;
25537 return 0;
25539 _ACEOF
25540 rm -f conftest.$ac_objext
25541 if { (ac_try="$ac_compile"
25542 case "(($ac_try" in
25543 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25544 *) ac_try_echo=$ac_try;;
25545 esac
25546 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25547 (eval "$ac_compile") 2>conftest.er1
25548 ac_status=$?
25549 grep -v '^ *+' conftest.er1 >conftest.err
25550 rm -f conftest.er1
25551 cat conftest.err >&5
25552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25553 (exit $ac_status); } && {
25554 test -z "$ac_c_werror_flag" ||
25555 test ! -s conftest.err
25556 } && test -s conftest.$ac_objext; then
25557 ac_cv_member_struct_tm_tm_zone=yes
25558 else
25559 echo "$as_me: failed program was:" >&5
25560 sed 's/^/| /' conftest.$ac_ext >&5
25562 cat >conftest.$ac_ext <<_ACEOF
25563 /* confdefs.h. */
25564 _ACEOF
25565 cat confdefs.h >>conftest.$ac_ext
25566 cat >>conftest.$ac_ext <<_ACEOF
25567 /* end confdefs.h. */
25568 #include <sys/types.h>
25569 #include <$ac_cv_struct_tm>
25573 main ()
25575 static struct tm ac_aggr;
25576 if (sizeof ac_aggr.tm_zone)
25577 return 0;
25579 return 0;
25581 _ACEOF
25582 rm -f conftest.$ac_objext
25583 if { (ac_try="$ac_compile"
25584 case "(($ac_try" in
25585 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25586 *) ac_try_echo=$ac_try;;
25587 esac
25588 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25589 (eval "$ac_compile") 2>conftest.er1
25590 ac_status=$?
25591 grep -v '^ *+' conftest.er1 >conftest.err
25592 rm -f conftest.er1
25593 cat conftest.err >&5
25594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25595 (exit $ac_status); } && {
25596 test -z "$ac_c_werror_flag" ||
25597 test ! -s conftest.err
25598 } && test -s conftest.$ac_objext; then
25599 ac_cv_member_struct_tm_tm_zone=yes
25600 else
25601 echo "$as_me: failed program was:" >&5
25602 sed 's/^/| /' conftest.$ac_ext >&5
25604 ac_cv_member_struct_tm_tm_zone=no
25607 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25610 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25612 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
25613 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6; }
25614 if test $ac_cv_member_struct_tm_tm_zone = yes; then
25616 cat >>confdefs.h <<_ACEOF
25617 #define HAVE_STRUCT_TM_TM_ZONE 1
25618 _ACEOF
25623 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
25625 cat >>confdefs.h <<\_ACEOF
25626 #define HAVE_TM_ZONE 1
25627 _ACEOF
25629 else
25630 { echo "$as_me:$LINENO: checking whether tzname is declared" >&5
25631 echo $ECHO_N "checking whether tzname is declared... $ECHO_C" >&6; }
25632 if test "${ac_cv_have_decl_tzname+set}" = set; then
25633 echo $ECHO_N "(cached) $ECHO_C" >&6
25634 else
25635 cat >conftest.$ac_ext <<_ACEOF
25636 /* confdefs.h. */
25637 _ACEOF
25638 cat confdefs.h >>conftest.$ac_ext
25639 cat >>conftest.$ac_ext <<_ACEOF
25640 /* end confdefs.h. */
25641 #include <time.h>
25644 main ()
25646 #ifndef tzname
25647 (void) tzname;
25648 #endif
25651 return 0;
25653 _ACEOF
25654 rm -f conftest.$ac_objext
25655 if { (ac_try="$ac_compile"
25656 case "(($ac_try" in
25657 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25658 *) ac_try_echo=$ac_try;;
25659 esac
25660 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25661 (eval "$ac_compile") 2>conftest.er1
25662 ac_status=$?
25663 grep -v '^ *+' conftest.er1 >conftest.err
25664 rm -f conftest.er1
25665 cat conftest.err >&5
25666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25667 (exit $ac_status); } && {
25668 test -z "$ac_c_werror_flag" ||
25669 test ! -s conftest.err
25670 } && test -s conftest.$ac_objext; then
25671 ac_cv_have_decl_tzname=yes
25672 else
25673 echo "$as_me: failed program was:" >&5
25674 sed 's/^/| /' conftest.$ac_ext >&5
25676 ac_cv_have_decl_tzname=no
25679 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25681 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_tzname" >&5
25682 echo "${ECHO_T}$ac_cv_have_decl_tzname" >&6; }
25683 if test $ac_cv_have_decl_tzname = yes; then
25685 cat >>confdefs.h <<_ACEOF
25686 #define HAVE_DECL_TZNAME 1
25687 _ACEOF
25690 else
25691 cat >>confdefs.h <<_ACEOF
25692 #define HAVE_DECL_TZNAME 0
25693 _ACEOF
25699 { echo "$as_me:$LINENO: checking for tzname" >&5
25700 echo $ECHO_N "checking for tzname... $ECHO_C" >&6; }
25701 if test "${ac_cv_var_tzname+set}" = set; then
25702 echo $ECHO_N "(cached) $ECHO_C" >&6
25703 else
25704 cat >conftest.$ac_ext <<_ACEOF
25705 /* confdefs.h. */
25706 _ACEOF
25707 cat confdefs.h >>conftest.$ac_ext
25708 cat >>conftest.$ac_ext <<_ACEOF
25709 /* end confdefs.h. */
25710 #include <time.h>
25711 #if !HAVE_DECL_TZNAME
25712 extern char *tzname[];
25713 #endif
25716 main ()
25718 return tzname[0][0];
25720 return 0;
25722 _ACEOF
25723 rm -f conftest.$ac_objext conftest$ac_exeext
25724 if { (ac_try="$ac_link"
25725 case "(($ac_try" in
25726 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25727 *) ac_try_echo=$ac_try;;
25728 esac
25729 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25730 (eval "$ac_link") 2>conftest.er1
25731 ac_status=$?
25732 grep -v '^ *+' conftest.er1 >conftest.err
25733 rm -f conftest.er1
25734 cat conftest.err >&5
25735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25736 (exit $ac_status); } && {
25737 test -z "$ac_c_werror_flag" ||
25738 test ! -s conftest.err
25739 } && test -s conftest$ac_exeext &&
25740 $as_test_x conftest$ac_exeext; then
25741 ac_cv_var_tzname=yes
25742 else
25743 echo "$as_me: failed program was:" >&5
25744 sed 's/^/| /' conftest.$ac_ext >&5
25746 ac_cv_var_tzname=no
25749 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25750 conftest$ac_exeext conftest.$ac_ext
25752 { echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
25753 echo "${ECHO_T}$ac_cv_var_tzname" >&6; }
25754 if test $ac_cv_var_tzname = yes; then
25756 cat >>confdefs.h <<\_ACEOF
25757 #define HAVE_TZNAME 1
25758 _ACEOF
25764 # check tzset(3) exists and works like we expect it to
25765 { echo "$as_me:$LINENO: checking for working tzset()" >&5
25766 echo $ECHO_N "checking for working tzset()... $ECHO_C" >&6; }
25767 if test "${ac_cv_working_tzset+set}" = set; then
25768 echo $ECHO_N "(cached) $ECHO_C" >&6
25769 else
25771 if test "$cross_compiling" = yes; then
25772 ac_cv_working_tzset=no
25773 else
25774 cat >conftest.$ac_ext <<_ACEOF
25775 /* confdefs.h. */
25776 _ACEOF
25777 cat confdefs.h >>conftest.$ac_ext
25778 cat >>conftest.$ac_ext <<_ACEOF
25779 /* end confdefs.h. */
25781 #include <stdlib.h>
25782 #include <time.h>
25783 #include <string.h>
25785 #if HAVE_TZNAME
25786 extern char *tzname[];
25787 #endif
25789 int main()
25791 /* Note that we need to ensure that not only does tzset(3)
25792 do 'something' with localtime, but it works as documented
25793 in the library reference and as expected by the test suite.
25794 This includes making sure that tzname is set properly if
25795 tm->tm_zone does not exist since it is the alternative way
25796 of getting timezone info.
25798 Red Hat 6.2 doesn't understand the southern hemisphere
25799 after New Year's Day.
25802 time_t groundhogday = 1044144000; /* GMT-based */
25803 time_t midyear = groundhogday + (365 * 24 * 3600 / 2);
25805 putenv("TZ=UTC+0");
25806 tzset();
25807 if (localtime(&groundhogday)->tm_hour != 0)
25808 exit(1);
25809 #if HAVE_TZNAME
25810 /* For UTC, tzname[1] is sometimes "", sometimes " " */
25811 if (strcmp(tzname[0], "UTC") ||
25812 (tzname[1][0] != 0 && tzname[1][0] != ' '))
25813 exit(1);
25814 #endif
25816 putenv("TZ=EST+5EDT,M4.1.0,M10.5.0");
25817 tzset();
25818 if (localtime(&groundhogday)->tm_hour != 19)
25819 exit(1);
25820 #if HAVE_TZNAME
25821 if (strcmp(tzname[0], "EST") || strcmp(tzname[1], "EDT"))
25822 exit(1);
25823 #endif
25825 putenv("TZ=AEST-10AEDT-11,M10.5.0,M3.5.0");
25826 tzset();
25827 if (localtime(&groundhogday)->tm_hour != 11)
25828 exit(1);
25829 #if HAVE_TZNAME
25830 if (strcmp(tzname[0], "AEST") || strcmp(tzname[1], "AEDT"))
25831 exit(1);
25832 #endif
25834 #if HAVE_STRUCT_TM_TM_ZONE
25835 if (strcmp(localtime(&groundhogday)->tm_zone, "AEDT"))
25836 exit(1);
25837 if (strcmp(localtime(&midyear)->tm_zone, "AEST"))
25838 exit(1);
25839 #endif
25841 exit(0);
25844 _ACEOF
25845 rm -f conftest$ac_exeext
25846 if { (ac_try="$ac_link"
25847 case "(($ac_try" in
25848 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25849 *) ac_try_echo=$ac_try;;
25850 esac
25851 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25852 (eval "$ac_link") 2>&5
25853 ac_status=$?
25854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25855 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25856 { (case "(($ac_try" in
25857 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25858 *) ac_try_echo=$ac_try;;
25859 esac
25860 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25861 (eval "$ac_try") 2>&5
25862 ac_status=$?
25863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25864 (exit $ac_status); }; }; then
25865 ac_cv_working_tzset=yes
25866 else
25867 echo "$as_me: program exited with status $ac_status" >&5
25868 echo "$as_me: failed program was:" >&5
25869 sed 's/^/| /' conftest.$ac_ext >&5
25871 ( exit $ac_status )
25872 ac_cv_working_tzset=no
25874 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25880 { echo "$as_me:$LINENO: result: $ac_cv_working_tzset" >&5
25881 echo "${ECHO_T}$ac_cv_working_tzset" >&6; }
25882 if test "$ac_cv_working_tzset" = yes
25883 then
25885 cat >>confdefs.h <<\_ACEOF
25886 #define HAVE_WORKING_TZSET 1
25887 _ACEOF
25891 # Look for subsecond timestamps in struct stat
25892 { echo "$as_me:$LINENO: checking for tv_nsec in struct stat" >&5
25893 echo $ECHO_N "checking for tv_nsec in struct stat... $ECHO_C" >&6; }
25894 if test "${ac_cv_stat_tv_nsec+set}" = set; then
25895 echo $ECHO_N "(cached) $ECHO_C" >&6
25896 else
25897 cat >conftest.$ac_ext <<_ACEOF
25898 /* confdefs.h. */
25899 _ACEOF
25900 cat confdefs.h >>conftest.$ac_ext
25901 cat >>conftest.$ac_ext <<_ACEOF
25902 /* end confdefs.h. */
25903 #include <sys/stat.h>
25905 main ()
25908 struct stat st;
25909 st.st_mtim.tv_nsec = 1;
25912 return 0;
25914 _ACEOF
25915 rm -f conftest.$ac_objext
25916 if { (ac_try="$ac_compile"
25917 case "(($ac_try" in
25918 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25919 *) ac_try_echo=$ac_try;;
25920 esac
25921 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25922 (eval "$ac_compile") 2>conftest.er1
25923 ac_status=$?
25924 grep -v '^ *+' conftest.er1 >conftest.err
25925 rm -f conftest.er1
25926 cat conftest.err >&5
25927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25928 (exit $ac_status); } && {
25929 test -z "$ac_c_werror_flag" ||
25930 test ! -s conftest.err
25931 } && test -s conftest.$ac_objext; then
25932 ac_cv_stat_tv_nsec=yes
25933 else
25934 echo "$as_me: failed program was:" >&5
25935 sed 's/^/| /' conftest.$ac_ext >&5
25937 ac_cv_stat_tv_nsec=no
25940 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25943 { echo "$as_me:$LINENO: result: $ac_cv_stat_tv_nsec" >&5
25944 echo "${ECHO_T}$ac_cv_stat_tv_nsec" >&6; }
25945 if test "$ac_cv_stat_tv_nsec" = yes
25946 then
25948 cat >>confdefs.h <<\_ACEOF
25949 #define HAVE_STAT_TV_NSEC 1
25950 _ACEOF
25954 # Look for BSD style subsecond timestamps in struct stat
25955 { echo "$as_me:$LINENO: checking for tv_nsec2 in struct stat" >&5
25956 echo $ECHO_N "checking for tv_nsec2 in struct stat... $ECHO_C" >&6; }
25957 if test "${ac_cv_stat_tv_nsec2+set}" = set; then
25958 echo $ECHO_N "(cached) $ECHO_C" >&6
25959 else
25960 cat >conftest.$ac_ext <<_ACEOF
25961 /* confdefs.h. */
25962 _ACEOF
25963 cat confdefs.h >>conftest.$ac_ext
25964 cat >>conftest.$ac_ext <<_ACEOF
25965 /* end confdefs.h. */
25966 #include <sys/stat.h>
25968 main ()
25971 struct stat st;
25972 st.st_mtimespec.tv_nsec = 1;
25975 return 0;
25977 _ACEOF
25978 rm -f conftest.$ac_objext
25979 if { (ac_try="$ac_compile"
25980 case "(($ac_try" in
25981 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25982 *) ac_try_echo=$ac_try;;
25983 esac
25984 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25985 (eval "$ac_compile") 2>conftest.er1
25986 ac_status=$?
25987 grep -v '^ *+' conftest.er1 >conftest.err
25988 rm -f conftest.er1
25989 cat conftest.err >&5
25990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25991 (exit $ac_status); } && {
25992 test -z "$ac_c_werror_flag" ||
25993 test ! -s conftest.err
25994 } && test -s conftest.$ac_objext; then
25995 ac_cv_stat_tv_nsec2=yes
25996 else
25997 echo "$as_me: failed program was:" >&5
25998 sed 's/^/| /' conftest.$ac_ext >&5
26000 ac_cv_stat_tv_nsec2=no
26003 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26006 { echo "$as_me:$LINENO: result: $ac_cv_stat_tv_nsec2" >&5
26007 echo "${ECHO_T}$ac_cv_stat_tv_nsec2" >&6; }
26008 if test "$ac_cv_stat_tv_nsec2" = yes
26009 then
26011 cat >>confdefs.h <<\_ACEOF
26012 #define HAVE_STAT_TV_NSEC2 1
26013 _ACEOF
26017 # On HP/UX 11.0, mvwdelch is a block with a return statement
26018 { echo "$as_me:$LINENO: checking whether mvwdelch is an expression" >&5
26019 echo $ECHO_N "checking whether mvwdelch is an expression... $ECHO_C" >&6; }
26020 if test "${ac_cv_mvwdelch_is_expression+set}" = set; then
26021 echo $ECHO_N "(cached) $ECHO_C" >&6
26022 else
26023 cat >conftest.$ac_ext <<_ACEOF
26024 /* confdefs.h. */
26025 _ACEOF
26026 cat confdefs.h >>conftest.$ac_ext
26027 cat >>conftest.$ac_ext <<_ACEOF
26028 /* end confdefs.h. */
26029 #include <curses.h>
26031 main ()
26034 int rtn;
26035 rtn = mvwdelch(0,0,0);
26038 return 0;
26040 _ACEOF
26041 rm -f conftest.$ac_objext
26042 if { (ac_try="$ac_compile"
26043 case "(($ac_try" in
26044 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26045 *) ac_try_echo=$ac_try;;
26046 esac
26047 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26048 (eval "$ac_compile") 2>conftest.er1
26049 ac_status=$?
26050 grep -v '^ *+' conftest.er1 >conftest.err
26051 rm -f conftest.er1
26052 cat conftest.err >&5
26053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26054 (exit $ac_status); } && {
26055 test -z "$ac_c_werror_flag" ||
26056 test ! -s conftest.err
26057 } && test -s conftest.$ac_objext; then
26058 ac_cv_mvwdelch_is_expression=yes
26059 else
26060 echo "$as_me: failed program was:" >&5
26061 sed 's/^/| /' conftest.$ac_ext >&5
26063 ac_cv_mvwdelch_is_expression=no
26066 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26069 { echo "$as_me:$LINENO: result: $ac_cv_mvwdelch_is_expression" >&5
26070 echo "${ECHO_T}$ac_cv_mvwdelch_is_expression" >&6; }
26072 if test "$ac_cv_mvwdelch_is_expression" = yes
26073 then
26075 cat >>confdefs.h <<\_ACEOF
26076 #define MVWDELCH_IS_EXPRESSION 1
26077 _ACEOF
26081 { echo "$as_me:$LINENO: checking whether WINDOW has _flags" >&5
26082 echo $ECHO_N "checking whether WINDOW has _flags... $ECHO_C" >&6; }
26083 if test "${ac_cv_window_has_flags+set}" = set; then
26084 echo $ECHO_N "(cached) $ECHO_C" >&6
26085 else
26086 cat >conftest.$ac_ext <<_ACEOF
26087 /* confdefs.h. */
26088 _ACEOF
26089 cat confdefs.h >>conftest.$ac_ext
26090 cat >>conftest.$ac_ext <<_ACEOF
26091 /* end confdefs.h. */
26092 #include <curses.h>
26094 main ()
26097 WINDOW *w;
26098 w->_flags = 0;
26101 return 0;
26103 _ACEOF
26104 rm -f conftest.$ac_objext
26105 if { (ac_try="$ac_compile"
26106 case "(($ac_try" in
26107 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26108 *) ac_try_echo=$ac_try;;
26109 esac
26110 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26111 (eval "$ac_compile") 2>conftest.er1
26112 ac_status=$?
26113 grep -v '^ *+' conftest.er1 >conftest.err
26114 rm -f conftest.er1
26115 cat conftest.err >&5
26116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26117 (exit $ac_status); } && {
26118 test -z "$ac_c_werror_flag" ||
26119 test ! -s conftest.err
26120 } && test -s conftest.$ac_objext; then
26121 ac_cv_window_has_flags=yes
26122 else
26123 echo "$as_me: failed program was:" >&5
26124 sed 's/^/| /' conftest.$ac_ext >&5
26126 ac_cv_window_has_flags=no
26129 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26132 { echo "$as_me:$LINENO: result: $ac_cv_window_has_flags" >&5
26133 echo "${ECHO_T}$ac_cv_window_has_flags" >&6; }
26136 if test "$ac_cv_window_has_flags" = yes
26137 then
26139 cat >>confdefs.h <<\_ACEOF
26140 #define WINDOW_HAS_FLAGS 1
26141 _ACEOF
26145 { echo "$as_me:$LINENO: checking for is_term_resized" >&5
26146 echo $ECHO_N "checking for is_term_resized... $ECHO_C" >&6; }
26147 cat >conftest.$ac_ext <<_ACEOF
26148 /* confdefs.h. */
26149 _ACEOF
26150 cat confdefs.h >>conftest.$ac_ext
26151 cat >>conftest.$ac_ext <<_ACEOF
26152 /* end confdefs.h. */
26153 #include <curses.h>
26155 main ()
26157 void *x=is_term_resized
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 "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26169 (eval "$ac_compile") 2>conftest.er1
26170 ac_status=$?
26171 grep -v '^ *+' conftest.er1 >conftest.err
26172 rm -f conftest.er1
26173 cat conftest.err >&5
26174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26175 (exit $ac_status); } && {
26176 test -z "$ac_c_werror_flag" ||
26177 test ! -s conftest.err
26178 } && test -s conftest.$ac_objext; then
26180 cat >>confdefs.h <<\_ACEOF
26181 #define HAVE_CURSES_IS_TERM_RESIZED 1
26182 _ACEOF
26184 { echo "$as_me:$LINENO: result: yes" >&5
26185 echo "${ECHO_T}yes" >&6; }
26186 else
26187 echo "$as_me: failed program was:" >&5
26188 sed 's/^/| /' conftest.$ac_ext >&5
26190 { echo "$as_me:$LINENO: result: no" >&5
26191 echo "${ECHO_T}no" >&6; }
26195 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26197 { echo "$as_me:$LINENO: checking for resize_term" >&5
26198 echo $ECHO_N "checking for resize_term... $ECHO_C" >&6; }
26199 cat >conftest.$ac_ext <<_ACEOF
26200 /* confdefs.h. */
26201 _ACEOF
26202 cat confdefs.h >>conftest.$ac_ext
26203 cat >>conftest.$ac_ext <<_ACEOF
26204 /* end confdefs.h. */
26205 #include <curses.h>
26207 main ()
26209 void *x=resize_term
26211 return 0;
26213 _ACEOF
26214 rm -f conftest.$ac_objext
26215 if { (ac_try="$ac_compile"
26216 case "(($ac_try" in
26217 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26218 *) ac_try_echo=$ac_try;;
26219 esac
26220 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26221 (eval "$ac_compile") 2>conftest.er1
26222 ac_status=$?
26223 grep -v '^ *+' conftest.er1 >conftest.err
26224 rm -f conftest.er1
26225 cat conftest.err >&5
26226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26227 (exit $ac_status); } && {
26228 test -z "$ac_c_werror_flag" ||
26229 test ! -s conftest.err
26230 } && test -s conftest.$ac_objext; then
26232 cat >>confdefs.h <<\_ACEOF
26233 #define HAVE_CURSES_RESIZE_TERM 1
26234 _ACEOF
26236 { echo "$as_me:$LINENO: result: yes" >&5
26237 echo "${ECHO_T}yes" >&6; }
26238 else
26239 echo "$as_me: failed program was:" >&5
26240 sed 's/^/| /' conftest.$ac_ext >&5
26242 { echo "$as_me:$LINENO: result: no" >&5
26243 echo "${ECHO_T}no" >&6; }
26247 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26249 { echo "$as_me:$LINENO: checking for resizeterm" >&5
26250 echo $ECHO_N "checking for resizeterm... $ECHO_C" >&6; }
26251 cat >conftest.$ac_ext <<_ACEOF
26252 /* confdefs.h. */
26253 _ACEOF
26254 cat confdefs.h >>conftest.$ac_ext
26255 cat >>conftest.$ac_ext <<_ACEOF
26256 /* end confdefs.h. */
26257 #include <curses.h>
26259 main ()
26261 void *x=resizeterm
26263 return 0;
26265 _ACEOF
26266 rm -f conftest.$ac_objext
26267 if { (ac_try="$ac_compile"
26268 case "(($ac_try" in
26269 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26270 *) ac_try_echo=$ac_try;;
26271 esac
26272 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26273 (eval "$ac_compile") 2>conftest.er1
26274 ac_status=$?
26275 grep -v '^ *+' conftest.er1 >conftest.err
26276 rm -f conftest.er1
26277 cat conftest.err >&5
26278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26279 (exit $ac_status); } && {
26280 test -z "$ac_c_werror_flag" ||
26281 test ! -s conftest.err
26282 } && test -s conftest.$ac_objext; then
26284 cat >>confdefs.h <<\_ACEOF
26285 #define HAVE_CURSES_RESIZETERM 1
26286 _ACEOF
26288 { echo "$as_me:$LINENO: result: yes" >&5
26289 echo "${ECHO_T}yes" >&6; }
26290 else
26291 echo "$as_me: failed program was:" >&5
26292 sed 's/^/| /' conftest.$ac_ext >&5
26294 { echo "$as_me:$LINENO: result: no" >&5
26295 echo "${ECHO_T}no" >&6; }
26299 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26301 { echo "$as_me:$LINENO: checking for /dev/ptmx" >&5
26302 echo $ECHO_N "checking for /dev/ptmx... $ECHO_C" >&6; }
26304 if test -r /dev/ptmx
26305 then
26306 { echo "$as_me:$LINENO: result: yes" >&5
26307 echo "${ECHO_T}yes" >&6; }
26309 cat >>confdefs.h <<\_ACEOF
26310 #define HAVE_DEV_PTMX 1
26311 _ACEOF
26313 else
26314 { echo "$as_me:$LINENO: result: no" >&5
26315 echo "${ECHO_T}no" >&6; }
26318 { echo "$as_me:$LINENO: checking for /dev/ptc" >&5
26319 echo $ECHO_N "checking for /dev/ptc... $ECHO_C" >&6; }
26321 if test -r /dev/ptc
26322 then
26323 { echo "$as_me:$LINENO: result: yes" >&5
26324 echo "${ECHO_T}yes" >&6; }
26326 cat >>confdefs.h <<\_ACEOF
26327 #define HAVE_DEV_PTC 1
26328 _ACEOF
26330 else
26331 { echo "$as_me:$LINENO: result: no" >&5
26332 echo "${ECHO_T}no" >&6; }
26335 { echo "$as_me:$LINENO: checking for %zd printf() format support" >&5
26336 echo $ECHO_N "checking for %zd printf() format support... $ECHO_C" >&6; }
26337 if test "${ac_cv_have_size_t_format+set}" = set; then
26338 echo $ECHO_N "(cached) $ECHO_C" >&6
26339 else
26340 if test "$cross_compiling" = yes; then
26341 ac_cv_have_size_t_format=no
26342 else
26343 cat >conftest.$ac_ext <<_ACEOF
26344 /* confdefs.h. */
26345 _ACEOF
26346 cat confdefs.h >>conftest.$ac_ext
26347 cat >>conftest.$ac_ext <<_ACEOF
26348 /* end confdefs.h. */
26350 #include <stdio.h>
26351 #include <stddef.h>
26352 #include <string.h>
26354 #ifdef HAVE_SYS_TYPES_H
26355 #include <sys/types.h>
26356 #endif
26358 #ifdef HAVE_SSIZE_T
26359 typedef ssize_t Py_ssize_t;
26360 #elif SIZEOF_VOID_P == SIZEOF_LONG
26361 typedef long Py_ssize_t;
26362 #else
26363 typedef int Py_ssize_t;
26364 #endif
26366 int main()
26368 char buffer[256];
26370 if(sprintf(buffer, "%zd", (size_t)123) < 0)
26371 return 1;
26373 if (strcmp(buffer, "123"))
26374 return 1;
26376 if (sprintf(buffer, "%zd", (Py_ssize_t)-123) < 0)
26377 return 1;
26379 if (strcmp(buffer, "-123"))
26380 return 1;
26382 return 0;
26385 _ACEOF
26386 rm -f conftest$ac_exeext
26387 if { (ac_try="$ac_link"
26388 case "(($ac_try" in
26389 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26390 *) ac_try_echo=$ac_try;;
26391 esac
26392 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26393 (eval "$ac_link") 2>&5
26394 ac_status=$?
26395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26396 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26397 { (case "(($ac_try" in
26398 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26399 *) ac_try_echo=$ac_try;;
26400 esac
26401 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26402 (eval "$ac_try") 2>&5
26403 ac_status=$?
26404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26405 (exit $ac_status); }; }; then
26406 ac_cv_have_size_t_format=yes
26407 else
26408 echo "$as_me: program exited with status $ac_status" >&5
26409 echo "$as_me: failed program was:" >&5
26410 sed 's/^/| /' conftest.$ac_ext >&5
26412 ( exit $ac_status )
26413 ac_cv_have_size_t_format=no
26415 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26422 { echo "$as_me:$LINENO: result: $ac_cv_have_size_t_format" >&5
26423 echo "${ECHO_T}$ac_cv_have_size_t_format" >&6; }
26424 if test $ac_cv_have_size_t_format = yes
26425 then
26427 cat >>confdefs.h <<\_ACEOF
26428 #define PY_FORMAT_SIZE_T "z"
26429 _ACEOF
26433 { echo "$as_me:$LINENO: checking for socklen_t" >&5
26434 echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6; }
26435 if test "${ac_cv_type_socklen_t+set}" = set; then
26436 echo $ECHO_N "(cached) $ECHO_C" >&6
26437 else
26438 cat >conftest.$ac_ext <<_ACEOF
26439 /* confdefs.h. */
26440 _ACEOF
26441 cat confdefs.h >>conftest.$ac_ext
26442 cat >>conftest.$ac_ext <<_ACEOF
26443 /* end confdefs.h. */
26445 #ifdef HAVE_SYS_TYPES_H
26446 #include <sys/types.h>
26447 #endif
26448 #ifdef HAVE_SYS_SOCKET_H
26449 #include <sys/socket.h>
26450 #endif
26453 typedef socklen_t ac__type_new_;
26455 main ()
26457 if ((ac__type_new_ *) 0)
26458 return 0;
26459 if (sizeof (ac__type_new_))
26460 return 0;
26462 return 0;
26464 _ACEOF
26465 rm -f conftest.$ac_objext
26466 if { (ac_try="$ac_compile"
26467 case "(($ac_try" in
26468 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26469 *) ac_try_echo=$ac_try;;
26470 esac
26471 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26472 (eval "$ac_compile") 2>conftest.er1
26473 ac_status=$?
26474 grep -v '^ *+' conftest.er1 >conftest.err
26475 rm -f conftest.er1
26476 cat conftest.err >&5
26477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26478 (exit $ac_status); } && {
26479 test -z "$ac_c_werror_flag" ||
26480 test ! -s conftest.err
26481 } && test -s conftest.$ac_objext; then
26482 ac_cv_type_socklen_t=yes
26483 else
26484 echo "$as_me: failed program was:" >&5
26485 sed 's/^/| /' conftest.$ac_ext >&5
26487 ac_cv_type_socklen_t=no
26490 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26492 { echo "$as_me:$LINENO: result: $ac_cv_type_socklen_t" >&5
26493 echo "${ECHO_T}$ac_cv_type_socklen_t" >&6; }
26494 if test $ac_cv_type_socklen_t = yes; then
26496 else
26498 cat >>confdefs.h <<\_ACEOF
26499 #define socklen_t int
26500 _ACEOF
26507 for h in `(cd $srcdir;echo Python/thread_*.h)`
26509 THREADHEADERS="$THREADHEADERS \$(srcdir)/$h"
26510 done
26513 SRCDIRS="Parser Grammar Objects Python Modules Mac"
26514 { echo "$as_me:$LINENO: checking for build directories" >&5
26515 echo $ECHO_N "checking for build directories... $ECHO_C" >&6; }
26516 for dir in $SRCDIRS; do
26517 if test ! -d $dir; then
26518 mkdir $dir
26520 done
26521 { echo "$as_me:$LINENO: result: done" >&5
26522 echo "${ECHO_T}done" >&6; }
26524 # generate output files
26525 ac_config_files="$ac_config_files Makefile.pre Modules/Setup.config Misc/python.pc"
26527 cat >confcache <<\_ACEOF
26528 # This file is a shell script that caches the results of configure
26529 # tests run on this system so they can be shared between configure
26530 # scripts and configure runs, see configure's option --config-cache.
26531 # It is not useful on other systems. If it contains results you don't
26532 # want to keep, you may remove or edit it.
26534 # config.status only pays attention to the cache file if you give it
26535 # the --recheck option to rerun configure.
26537 # `ac_cv_env_foo' variables (set or unset) will be overridden when
26538 # loading this file, other *unset* `ac_cv_foo' will be assigned the
26539 # following values.
26541 _ACEOF
26543 # The following way of writing the cache mishandles newlines in values,
26544 # but we know of no workaround that is simple, portable, and efficient.
26545 # So, we kill variables containing newlines.
26546 # Ultrix sh set writes to stderr and can't be redirected directly,
26547 # and sets the high bit in the cache file unless we assign to the vars.
26549 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
26550 eval ac_val=\$$ac_var
26551 case $ac_val in #(
26552 *${as_nl}*)
26553 case $ac_var in #(
26554 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
26555 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
26556 esac
26557 case $ac_var in #(
26558 _ | IFS | as_nl) ;; #(
26559 *) $as_unset $ac_var ;;
26560 esac ;;
26561 esac
26562 done
26564 (set) 2>&1 |
26565 case $as_nl`(ac_space=' '; set) 2>&1` in #(
26566 *${as_nl}ac_space=\ *)
26567 # `set' does not quote correctly, so add quotes (double-quote
26568 # substitution turns \\\\ into \\, and sed turns \\ into \).
26569 sed -n \
26570 "s/'/'\\\\''/g;
26571 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
26572 ;; #(
26574 # `set' quotes correctly as required by POSIX, so do not add quotes.
26575 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
26577 esac |
26578 sort
26580 sed '
26581 /^ac_cv_env_/b end
26582 t clear
26583 :clear
26584 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
26585 t end
26586 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
26587 :end' >>confcache
26588 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
26589 if test -w "$cache_file"; then
26590 test "x$cache_file" != "x/dev/null" &&
26591 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
26592 echo "$as_me: updating cache $cache_file" >&6;}
26593 cat confcache >$cache_file
26594 else
26595 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
26596 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
26599 rm -f confcache
26601 test "x$prefix" = xNONE && prefix=$ac_default_prefix
26602 # Let make expand exec_prefix.
26603 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
26605 DEFS=-DHAVE_CONFIG_H
26607 ac_libobjs=
26608 ac_ltlibobjs=
26609 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
26610 # 1. Remove the extension, and $U if already installed.
26611 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
26612 ac_i=`echo "$ac_i" | sed "$ac_script"`
26613 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
26614 # will be set to the directory where LIBOBJS objects are built.
26615 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
26616 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
26617 done
26618 LIBOBJS=$ac_libobjs
26620 LTLIBOBJS=$ac_ltlibobjs
26624 : ${CONFIG_STATUS=./config.status}
26625 ac_clean_files_save=$ac_clean_files
26626 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
26627 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
26628 echo "$as_me: creating $CONFIG_STATUS" >&6;}
26629 cat >$CONFIG_STATUS <<_ACEOF
26630 #! $SHELL
26631 # Generated by $as_me.
26632 # Run this file to recreate the current configuration.
26633 # Compiler output produced by configure, useful for debugging
26634 # configure, is in config.log if it exists.
26636 debug=false
26637 ac_cs_recheck=false
26638 ac_cs_silent=false
26639 SHELL=\${CONFIG_SHELL-$SHELL}
26640 _ACEOF
26642 cat >>$CONFIG_STATUS <<\_ACEOF
26643 ## --------------------- ##
26644 ## M4sh Initialization. ##
26645 ## --------------------- ##
26647 # Be more Bourne compatible
26648 DUALCASE=1; export DUALCASE # for MKS sh
26649 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
26650 emulate sh
26651 NULLCMD=:
26652 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
26653 # is contrary to our usage. Disable this feature.
26654 alias -g '${1+"$@"}'='"$@"'
26655 setopt NO_GLOB_SUBST
26656 else
26657 case `(set -o) 2>/dev/null` in
26658 *posix*) set -o posix ;;
26659 esac
26666 # PATH needs CR
26667 # Avoid depending upon Character Ranges.
26668 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
26669 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
26670 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
26671 as_cr_digits='0123456789'
26672 as_cr_alnum=$as_cr_Letters$as_cr_digits
26674 # The user is always right.
26675 if test "${PATH_SEPARATOR+set}" != set; then
26676 echo "#! /bin/sh" >conf$$.sh
26677 echo "exit 0" >>conf$$.sh
26678 chmod +x conf$$.sh
26679 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
26680 PATH_SEPARATOR=';'
26681 else
26682 PATH_SEPARATOR=:
26684 rm -f conf$$.sh
26687 # Support unset when possible.
26688 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
26689 as_unset=unset
26690 else
26691 as_unset=false
26695 # IFS
26696 # We need space, tab and new line, in precisely that order. Quoting is
26697 # there to prevent editors from complaining about space-tab.
26698 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
26699 # splitting by setting IFS to empty value.)
26700 as_nl='
26702 IFS=" "" $as_nl"
26704 # Find who we are. Look in the path if we contain no directory separator.
26705 case $0 in
26706 *[\\/]* ) as_myself=$0 ;;
26707 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26708 for as_dir in $PATH
26710 IFS=$as_save_IFS
26711 test -z "$as_dir" && as_dir=.
26712 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
26713 done
26714 IFS=$as_save_IFS
26717 esac
26718 # We did not find ourselves, most probably we were run as `sh COMMAND'
26719 # in which case we are not to be found in the path.
26720 if test "x$as_myself" = x; then
26721 as_myself=$0
26723 if test ! -f "$as_myself"; then
26724 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
26725 { (exit 1); exit 1; }
26728 # Work around bugs in pre-3.0 UWIN ksh.
26729 for as_var in ENV MAIL MAILPATH
26730 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
26731 done
26732 PS1='$ '
26733 PS2='> '
26734 PS4='+ '
26736 # NLS nuisances.
26737 for as_var in \
26738 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
26739 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
26740 LC_TELEPHONE LC_TIME
26742 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
26743 eval $as_var=C; export $as_var
26744 else
26745 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
26747 done
26749 # Required to use basename.
26750 if expr a : '\(a\)' >/dev/null 2>&1 &&
26751 test "X`expr 00001 : '.*\(...\)'`" = X001; then
26752 as_expr=expr
26753 else
26754 as_expr=false
26757 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
26758 as_basename=basename
26759 else
26760 as_basename=false
26764 # Name of the executable.
26765 as_me=`$as_basename -- "$0" ||
26766 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
26767 X"$0" : 'X\(//\)$' \| \
26768 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
26769 echo X/"$0" |
26770 sed '/^.*\/\([^/][^/]*\)\/*$/{
26771 s//\1/
26774 /^X\/\(\/\/\)$/{
26775 s//\1/
26778 /^X\/\(\/\).*/{
26779 s//\1/
26782 s/.*/./; q'`
26784 # CDPATH.
26785 $as_unset CDPATH
26789 as_lineno_1=$LINENO
26790 as_lineno_2=$LINENO
26791 test "x$as_lineno_1" != "x$as_lineno_2" &&
26792 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
26794 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
26795 # uniformly replaced by the line number. The first 'sed' inserts a
26796 # line-number line after each line using $LINENO; the second 'sed'
26797 # does the real work. The second script uses 'N' to pair each
26798 # line-number line with the line containing $LINENO, and appends
26799 # trailing '-' during substitution so that $LINENO is not a special
26800 # case at line end.
26801 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
26802 # scripts with optimization help from Paolo Bonzini. Blame Lee
26803 # E. McMahon (1931-1989) for sed's syntax. :-)
26804 sed -n '
26806 /[$]LINENO/=
26807 ' <$as_myself |
26808 sed '
26809 s/[$]LINENO.*/&-/
26810 t lineno
26812 :lineno
26814 :loop
26815 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
26816 t loop
26817 s/-\n.*//
26818 ' >$as_me.lineno &&
26819 chmod +x "$as_me.lineno" ||
26820 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
26821 { (exit 1); exit 1; }; }
26823 # Don't try to exec as it changes $[0], causing all sort of problems
26824 # (the dirname of $[0] is not the place where we might find the
26825 # original and so on. Autoconf is especially sensitive to this).
26826 . "./$as_me.lineno"
26827 # Exit status is that of the last command.
26828 exit
26832 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
26833 as_dirname=dirname
26834 else
26835 as_dirname=false
26838 ECHO_C= ECHO_N= ECHO_T=
26839 case `echo -n x` in
26840 -n*)
26841 case `echo 'x\c'` in
26842 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
26843 *) ECHO_C='\c';;
26844 esac;;
26846 ECHO_N='-n';;
26847 esac
26849 if expr a : '\(a\)' >/dev/null 2>&1 &&
26850 test "X`expr 00001 : '.*\(...\)'`" = X001; then
26851 as_expr=expr
26852 else
26853 as_expr=false
26856 rm -f conf$$ conf$$.exe conf$$.file
26857 if test -d conf$$.dir; then
26858 rm -f conf$$.dir/conf$$.file
26859 else
26860 rm -f conf$$.dir
26861 mkdir conf$$.dir
26863 echo >conf$$.file
26864 if ln -s conf$$.file conf$$ 2>/dev/null; then
26865 as_ln_s='ln -s'
26866 # ... but there are two gotchas:
26867 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
26868 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
26869 # In both cases, we have to default to `cp -p'.
26870 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
26871 as_ln_s='cp -p'
26872 elif ln conf$$.file conf$$ 2>/dev/null; then
26873 as_ln_s=ln
26874 else
26875 as_ln_s='cp -p'
26877 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
26878 rmdir conf$$.dir 2>/dev/null
26880 if mkdir -p . 2>/dev/null; then
26881 as_mkdir_p=:
26882 else
26883 test -d ./-p && rmdir ./-p
26884 as_mkdir_p=false
26887 if test -x / >/dev/null 2>&1; then
26888 as_test_x='test -x'
26889 else
26890 if ls -dL / >/dev/null 2>&1; then
26891 as_ls_L_option=L
26892 else
26893 as_ls_L_option=
26895 as_test_x='
26896 eval sh -c '\''
26897 if test -d "$1"; then
26898 test -d "$1/.";
26899 else
26900 case $1 in
26901 -*)set "./$1";;
26902 esac;
26903 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
26904 ???[sx]*):;;*)false;;esac;fi
26905 '\'' sh
26908 as_executable_p=$as_test_x
26910 # Sed expression to map a string onto a valid CPP name.
26911 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
26913 # Sed expression to map a string onto a valid variable name.
26914 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
26917 exec 6>&1
26919 # Save the log message, to keep $[0] and so on meaningful, and to
26920 # report actual input values of CONFIG_FILES etc. instead of their
26921 # values after options handling.
26922 ac_log="
26923 This file was extended by python $as_me 2.7, which was
26924 generated by GNU Autoconf 2.61. Invocation command line was
26926 CONFIG_FILES = $CONFIG_FILES
26927 CONFIG_HEADERS = $CONFIG_HEADERS
26928 CONFIG_LINKS = $CONFIG_LINKS
26929 CONFIG_COMMANDS = $CONFIG_COMMANDS
26930 $ $0 $@
26932 on `(hostname || uname -n) 2>/dev/null | sed 1q`
26935 _ACEOF
26937 cat >>$CONFIG_STATUS <<_ACEOF
26938 # Files that config.status was made for.
26939 config_files="$ac_config_files"
26940 config_headers="$ac_config_headers"
26942 _ACEOF
26944 cat >>$CONFIG_STATUS <<\_ACEOF
26945 ac_cs_usage="\
26946 \`$as_me' instantiates files from templates according to the
26947 current configuration.
26949 Usage: $0 [OPTIONS] [FILE]...
26951 -h, --help print this help, then exit
26952 -V, --version print version number and configuration settings, then exit
26953 -q, --quiet do not print progress messages
26954 -d, --debug don't remove temporary files
26955 --recheck update $as_me by reconfiguring in the same conditions
26956 --file=FILE[:TEMPLATE]
26957 instantiate the configuration file FILE
26958 --header=FILE[:TEMPLATE]
26959 instantiate the configuration header FILE
26961 Configuration files:
26962 $config_files
26964 Configuration headers:
26965 $config_headers
26967 Report bugs to <bug-autoconf@gnu.org>."
26969 _ACEOF
26970 cat >>$CONFIG_STATUS <<_ACEOF
26971 ac_cs_version="\\
26972 python config.status 2.7
26973 configured by $0, generated by GNU Autoconf 2.61,
26974 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
26976 Copyright (C) 2006 Free Software Foundation, Inc.
26977 This config.status script is free software; the Free Software Foundation
26978 gives unlimited permission to copy, distribute and modify it."
26980 ac_pwd='$ac_pwd'
26981 srcdir='$srcdir'
26982 INSTALL='$INSTALL'
26983 _ACEOF
26985 cat >>$CONFIG_STATUS <<\_ACEOF
26986 # If no file are specified by the user, then we need to provide default
26987 # value. By we need to know if files were specified by the user.
26988 ac_need_defaults=:
26989 while test $# != 0
26991 case $1 in
26992 --*=*)
26993 ac_option=`expr "X$1" : 'X\([^=]*\)='`
26994 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
26995 ac_shift=:
26998 ac_option=$1
26999 ac_optarg=$2
27000 ac_shift=shift
27002 esac
27004 case $ac_option in
27005 # Handling of the options.
27006 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
27007 ac_cs_recheck=: ;;
27008 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
27009 echo "$ac_cs_version"; exit ;;
27010 --debug | --debu | --deb | --de | --d | -d )
27011 debug=: ;;
27012 --file | --fil | --fi | --f )
27013 $ac_shift
27014 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
27015 ac_need_defaults=false;;
27016 --header | --heade | --head | --hea )
27017 $ac_shift
27018 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
27019 ac_need_defaults=false;;
27020 --he | --h)
27021 # Conflict between --help and --header
27022 { echo "$as_me: error: ambiguous option: $1
27023 Try \`$0 --help' for more information." >&2
27024 { (exit 1); exit 1; }; };;
27025 --help | --hel | -h )
27026 echo "$ac_cs_usage"; exit ;;
27027 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
27028 | -silent | --silent | --silen | --sile | --sil | --si | --s)
27029 ac_cs_silent=: ;;
27031 # This is an error.
27032 -*) { echo "$as_me: error: unrecognized option: $1
27033 Try \`$0 --help' for more information." >&2
27034 { (exit 1); exit 1; }; } ;;
27036 *) ac_config_targets="$ac_config_targets $1"
27037 ac_need_defaults=false ;;
27039 esac
27040 shift
27041 done
27043 ac_configure_extra_args=
27045 if $ac_cs_silent; then
27046 exec 6>/dev/null
27047 ac_configure_extra_args="$ac_configure_extra_args --silent"
27050 _ACEOF
27051 cat >>$CONFIG_STATUS <<_ACEOF
27052 if \$ac_cs_recheck; then
27053 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
27054 CONFIG_SHELL=$SHELL
27055 export CONFIG_SHELL
27056 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
27059 _ACEOF
27060 cat >>$CONFIG_STATUS <<\_ACEOF
27061 exec 5>>config.log
27063 echo
27064 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
27065 ## Running $as_me. ##
27066 _ASBOX
27067 echo "$ac_log"
27068 } >&5
27070 _ACEOF
27071 cat >>$CONFIG_STATUS <<_ACEOF
27072 _ACEOF
27074 cat >>$CONFIG_STATUS <<\_ACEOF
27076 # Handling of arguments.
27077 for ac_config_target in $ac_config_targets
27079 case $ac_config_target in
27080 "pyconfig.h") CONFIG_HEADERS="$CONFIG_HEADERS pyconfig.h" ;;
27081 "Mac/Makefile") CONFIG_FILES="$CONFIG_FILES Mac/Makefile" ;;
27082 "Mac/PythonLauncher/Makefile") CONFIG_FILES="$CONFIG_FILES Mac/PythonLauncher/Makefile" ;;
27083 "Mac/IDLE/Makefile") CONFIG_FILES="$CONFIG_FILES Mac/IDLE/Makefile" ;;
27084 "Mac/Resources/framework/Info.plist") CONFIG_FILES="$CONFIG_FILES Mac/Resources/framework/Info.plist" ;;
27085 "Mac/Resources/app/Info.plist") CONFIG_FILES="$CONFIG_FILES Mac/Resources/app/Info.plist" ;;
27086 "Makefile.pre") CONFIG_FILES="$CONFIG_FILES Makefile.pre" ;;
27087 "Modules/Setup.config") CONFIG_FILES="$CONFIG_FILES Modules/Setup.config" ;;
27088 "Misc/python.pc") CONFIG_FILES="$CONFIG_FILES Misc/python.pc" ;;
27090 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
27091 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
27092 { (exit 1); exit 1; }; };;
27093 esac
27094 done
27097 # If the user did not use the arguments to specify the items to instantiate,
27098 # then the envvar interface is used. Set only those that are not.
27099 # We use the long form for the default assignment because of an extremely
27100 # bizarre bug on SunOS 4.1.3.
27101 if $ac_need_defaults; then
27102 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
27103 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
27106 # Have a temporary directory for convenience. Make it in the build tree
27107 # simply because there is no reason against having it here, and in addition,
27108 # creating and moving files from /tmp can sometimes cause problems.
27109 # Hook for its removal unless debugging.
27110 # Note that there is a small window in which the directory will not be cleaned:
27111 # after its creation but before its name has been assigned to `$tmp'.
27112 $debug ||
27114 tmp=
27115 trap 'exit_status=$?
27116 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
27118 trap '{ (exit 1); exit 1; }' 1 2 13 15
27120 # Create a (secure) tmp directory for tmp files.
27123 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
27124 test -n "$tmp" && test -d "$tmp"
27125 } ||
27127 tmp=./conf$$-$RANDOM
27128 (umask 077 && mkdir "$tmp")
27129 } ||
27131 echo "$me: cannot create a temporary directory in ." >&2
27132 { (exit 1); exit 1; }
27136 # Set up the sed scripts for CONFIG_FILES section.
27139 # No need to generate the scripts if there are no CONFIG_FILES.
27140 # This happens for instance when ./config.status config.h
27141 if test -n "$CONFIG_FILES"; then
27143 _ACEOF
27147 ac_delim='%!_!# '
27148 for ac_last_try in false false false false false :; do
27149 cat >conf$$subs.sed <<_ACEOF
27150 SHELL!$SHELL$ac_delim
27151 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
27152 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
27153 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
27154 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
27155 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
27156 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
27157 exec_prefix!$exec_prefix$ac_delim
27158 prefix!$prefix$ac_delim
27159 program_transform_name!$program_transform_name$ac_delim
27160 bindir!$bindir$ac_delim
27161 sbindir!$sbindir$ac_delim
27162 libexecdir!$libexecdir$ac_delim
27163 datarootdir!$datarootdir$ac_delim
27164 datadir!$datadir$ac_delim
27165 sysconfdir!$sysconfdir$ac_delim
27166 sharedstatedir!$sharedstatedir$ac_delim
27167 localstatedir!$localstatedir$ac_delim
27168 includedir!$includedir$ac_delim
27169 oldincludedir!$oldincludedir$ac_delim
27170 docdir!$docdir$ac_delim
27171 infodir!$infodir$ac_delim
27172 htmldir!$htmldir$ac_delim
27173 dvidir!$dvidir$ac_delim
27174 pdfdir!$pdfdir$ac_delim
27175 psdir!$psdir$ac_delim
27176 libdir!$libdir$ac_delim
27177 localedir!$localedir$ac_delim
27178 mandir!$mandir$ac_delim
27179 DEFS!$DEFS$ac_delim
27180 ECHO_C!$ECHO_C$ac_delim
27181 ECHO_N!$ECHO_N$ac_delim
27182 ECHO_T!$ECHO_T$ac_delim
27183 LIBS!$LIBS$ac_delim
27184 build_alias!$build_alias$ac_delim
27185 host_alias!$host_alias$ac_delim
27186 target_alias!$target_alias$ac_delim
27187 VERSION!$VERSION$ac_delim
27188 SOVERSION!$SOVERSION$ac_delim
27189 CONFIG_ARGS!$CONFIG_ARGS$ac_delim
27190 UNIVERSALSDK!$UNIVERSALSDK$ac_delim
27191 ARCH_RUN_32BIT!$ARCH_RUN_32BIT$ac_delim
27192 PYTHONFRAMEWORK!$PYTHONFRAMEWORK$ac_delim
27193 PYTHONFRAMEWORKIDENTIFIER!$PYTHONFRAMEWORKIDENTIFIER$ac_delim
27194 PYTHONFRAMEWORKDIR!$PYTHONFRAMEWORKDIR$ac_delim
27195 PYTHONFRAMEWORKPREFIX!$PYTHONFRAMEWORKPREFIX$ac_delim
27196 PYTHONFRAMEWORKINSTALLDIR!$PYTHONFRAMEWORKINSTALLDIR$ac_delim
27197 FRAMEWORKINSTALLFIRST!$FRAMEWORKINSTALLFIRST$ac_delim
27198 FRAMEWORKINSTALLLAST!$FRAMEWORKINSTALLLAST$ac_delim
27199 FRAMEWORKALTINSTALLFIRST!$FRAMEWORKALTINSTALLFIRST$ac_delim
27200 FRAMEWORKALTINSTALLLAST!$FRAMEWORKALTINSTALLLAST$ac_delim
27201 FRAMEWORKUNIXTOOLSPREFIX!$FRAMEWORKUNIXTOOLSPREFIX$ac_delim
27202 MACHDEP!$MACHDEP$ac_delim
27203 SGI_ABI!$SGI_ABI$ac_delim
27204 EXTRAPLATDIR!$EXTRAPLATDIR$ac_delim
27205 EXTRAMACHDEPPATH!$EXTRAMACHDEPPATH$ac_delim
27206 CONFIGURE_MACOSX_DEPLOYMENT_TARGET!$CONFIGURE_MACOSX_DEPLOYMENT_TARGET$ac_delim
27207 EXPORT_MACOSX_DEPLOYMENT_TARGET!$EXPORT_MACOSX_DEPLOYMENT_TARGET$ac_delim
27208 CC!$CC$ac_delim
27209 CFLAGS!$CFLAGS$ac_delim
27210 LDFLAGS!$LDFLAGS$ac_delim
27211 CPPFLAGS!$CPPFLAGS$ac_delim
27212 ac_ct_CC!$ac_ct_CC$ac_delim
27213 EXEEXT!$EXEEXT$ac_delim
27214 OBJEXT!$OBJEXT$ac_delim
27215 CXX!$CXX$ac_delim
27216 MAINCC!$MAINCC$ac_delim
27217 CPP!$CPP$ac_delim
27218 GREP!$GREP$ac_delim
27219 EGREP!$EGREP$ac_delim
27220 BUILDEXEEXT!$BUILDEXEEXT$ac_delim
27221 LIBRARY!$LIBRARY$ac_delim
27222 LDLIBRARY!$LDLIBRARY$ac_delim
27223 DLLLIBRARY!$DLLLIBRARY$ac_delim
27224 BLDLIBRARY!$BLDLIBRARY$ac_delim
27225 LDLIBRARYDIR!$LDLIBRARYDIR$ac_delim
27226 INSTSONAME!$INSTSONAME$ac_delim
27227 RUNSHARED!$RUNSHARED$ac_delim
27228 LINKCC!$LINKCC$ac_delim
27229 GNULD!$GNULD$ac_delim
27230 RANLIB!$RANLIB$ac_delim
27231 AR!$AR$ac_delim
27232 ARFLAGS!$ARFLAGS$ac_delim
27233 SVNVERSION!$SVNVERSION$ac_delim
27234 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
27235 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
27236 INSTALL_DATA!$INSTALL_DATA$ac_delim
27237 LN!$LN$ac_delim
27238 OPT!$OPT$ac_delim
27239 BASECFLAGS!$BASECFLAGS$ac_delim
27240 UNIVERSAL_ARCH_FLAGS!$UNIVERSAL_ARCH_FLAGS$ac_delim
27241 OTHER_LIBTOOL_OPT!$OTHER_LIBTOOL_OPT$ac_delim
27242 LIBTOOL_CRUFT!$LIBTOOL_CRUFT$ac_delim
27243 SO!$SO$ac_delim
27244 LDSHARED!$LDSHARED$ac_delim
27245 BLDSHARED!$BLDSHARED$ac_delim
27246 CCSHARED!$CCSHARED$ac_delim
27247 _ACEOF
27249 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
27250 break
27251 elif $ac_last_try; then
27252 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
27253 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
27254 { (exit 1); exit 1; }; }
27255 else
27256 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
27258 done
27260 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
27261 if test -n "$ac_eof"; then
27262 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
27263 ac_eof=`expr $ac_eof + 1`
27266 cat >>$CONFIG_STATUS <<_ACEOF
27267 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
27268 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
27269 _ACEOF
27270 sed '
27271 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
27272 s/^/s,@/; s/!/@,|#_!!_#|/
27275 s/'"$ac_delim"'$/,g/; t
27276 s/$/\\/; p
27277 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
27278 ' >>$CONFIG_STATUS <conf$$subs.sed
27279 rm -f conf$$subs.sed
27280 cat >>$CONFIG_STATUS <<_ACEOF
27281 CEOF$ac_eof
27282 _ACEOF
27285 ac_delim='%!_!# '
27286 for ac_last_try in false false false false false :; do
27287 cat >conf$$subs.sed <<_ACEOF
27288 LINKFORSHARED!$LINKFORSHARED$ac_delim
27289 CFLAGSFORSHARED!$CFLAGSFORSHARED$ac_delim
27290 SHLIBS!$SHLIBS$ac_delim
27291 USE_SIGNAL_MODULE!$USE_SIGNAL_MODULE$ac_delim
27292 SIGNAL_OBJS!$SIGNAL_OBJS$ac_delim
27293 USE_THREAD_MODULE!$USE_THREAD_MODULE$ac_delim
27294 LDLAST!$LDLAST$ac_delim
27295 THREADOBJ!$THREADOBJ$ac_delim
27296 DLINCLDIR!$DLINCLDIR$ac_delim
27297 DYNLOADFILE!$DYNLOADFILE$ac_delim
27298 MACHDEP_OBJS!$MACHDEP_OBJS$ac_delim
27299 TRUE!$TRUE$ac_delim
27300 LIBOBJS!$LIBOBJS$ac_delim
27301 HAVE_GETHOSTBYNAME_R_6_ARG!$HAVE_GETHOSTBYNAME_R_6_ARG$ac_delim
27302 HAVE_GETHOSTBYNAME_R_5_ARG!$HAVE_GETHOSTBYNAME_R_5_ARG$ac_delim
27303 HAVE_GETHOSTBYNAME_R_3_ARG!$HAVE_GETHOSTBYNAME_R_3_ARG$ac_delim
27304 HAVE_GETHOSTBYNAME_R!$HAVE_GETHOSTBYNAME_R$ac_delim
27305 HAVE_GETHOSTBYNAME!$HAVE_GETHOSTBYNAME$ac_delim
27306 LIBM!$LIBM$ac_delim
27307 LIBC!$LIBC$ac_delim
27308 UNICODE_OBJS!$UNICODE_OBJS$ac_delim
27309 THREADHEADERS!$THREADHEADERS$ac_delim
27310 SRCDIRS!$SRCDIRS$ac_delim
27311 LTLIBOBJS!$LTLIBOBJS$ac_delim
27312 _ACEOF
27314 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 24; then
27315 break
27316 elif $ac_last_try; then
27317 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
27318 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
27319 { (exit 1); exit 1; }; }
27320 else
27321 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
27323 done
27325 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
27326 if test -n "$ac_eof"; then
27327 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
27328 ac_eof=`expr $ac_eof + 1`
27331 cat >>$CONFIG_STATUS <<_ACEOF
27332 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
27333 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
27334 _ACEOF
27335 sed '
27336 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
27337 s/^/s,@/; s/!/@,|#_!!_#|/
27340 s/'"$ac_delim"'$/,g/; t
27341 s/$/\\/; p
27342 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
27343 ' >>$CONFIG_STATUS <conf$$subs.sed
27344 rm -f conf$$subs.sed
27345 cat >>$CONFIG_STATUS <<_ACEOF
27346 :end
27347 s/|#_!!_#|//g
27348 CEOF$ac_eof
27349 _ACEOF
27352 # VPATH may cause trouble with some makes, so we remove $(srcdir),
27353 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
27354 # trailing colons and then remove the whole line if VPATH becomes empty
27355 # (actually we leave an empty line to preserve line numbers).
27356 if test "x$srcdir" = x.; then
27357 ac_vpsub='/^[ ]*VPATH[ ]*=/{
27358 s/:*\$(srcdir):*/:/
27359 s/:*\${srcdir}:*/:/
27360 s/:*@srcdir@:*/:/
27361 s/^\([^=]*=[ ]*\):*/\1/
27362 s/:*$//
27363 s/^[^=]*=[ ]*$//
27367 cat >>$CONFIG_STATUS <<\_ACEOF
27368 fi # test -n "$CONFIG_FILES"
27371 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS
27373 case $ac_tag in
27374 :[FHLC]) ac_mode=$ac_tag; continue;;
27375 esac
27376 case $ac_mode$ac_tag in
27377 :[FHL]*:*);;
27378 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
27379 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
27380 { (exit 1); exit 1; }; };;
27381 :[FH]-) ac_tag=-:-;;
27382 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
27383 esac
27384 ac_save_IFS=$IFS
27385 IFS=:
27386 set x $ac_tag
27387 IFS=$ac_save_IFS
27388 shift
27389 ac_file=$1
27390 shift
27392 case $ac_mode in
27393 :L) ac_source=$1;;
27394 :[FH])
27395 ac_file_inputs=
27396 for ac_f
27398 case $ac_f in
27399 -) ac_f="$tmp/stdin";;
27400 *) # Look for the file first in the build tree, then in the source tree
27401 # (if the path is not absolute). The absolute path cannot be DOS-style,
27402 # because $ac_f cannot contain `:'.
27403 test -f "$ac_f" ||
27404 case $ac_f in
27405 [\\/$]*) false;;
27406 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
27407 esac ||
27408 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
27409 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
27410 { (exit 1); exit 1; }; };;
27411 esac
27412 ac_file_inputs="$ac_file_inputs $ac_f"
27413 done
27415 # Let's still pretend it is `configure' which instantiates (i.e., don't
27416 # use $as_me), people would be surprised to read:
27417 # /* config.h. Generated by config.status. */
27418 configure_input="Generated from "`IFS=:
27419 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
27420 if test x"$ac_file" != x-; then
27421 configure_input="$ac_file. $configure_input"
27422 { echo "$as_me:$LINENO: creating $ac_file" >&5
27423 echo "$as_me: creating $ac_file" >&6;}
27426 case $ac_tag in
27427 *:-:* | *:-) cat >"$tmp/stdin";;
27428 esac
27430 esac
27432 ac_dir=`$as_dirname -- "$ac_file" ||
27433 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27434 X"$ac_file" : 'X\(//\)[^/]' \| \
27435 X"$ac_file" : 'X\(//\)$' \| \
27436 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
27437 echo X"$ac_file" |
27438 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
27439 s//\1/
27442 /^X\(\/\/\)[^/].*/{
27443 s//\1/
27446 /^X\(\/\/\)$/{
27447 s//\1/
27450 /^X\(\/\).*/{
27451 s//\1/
27454 s/.*/./; q'`
27455 { as_dir="$ac_dir"
27456 case $as_dir in #(
27457 -*) as_dir=./$as_dir;;
27458 esac
27459 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
27460 as_dirs=
27461 while :; do
27462 case $as_dir in #(
27463 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
27464 *) as_qdir=$as_dir;;
27465 esac
27466 as_dirs="'$as_qdir' $as_dirs"
27467 as_dir=`$as_dirname -- "$as_dir" ||
27468 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27469 X"$as_dir" : 'X\(//\)[^/]' \| \
27470 X"$as_dir" : 'X\(//\)$' \| \
27471 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
27472 echo X"$as_dir" |
27473 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
27474 s//\1/
27477 /^X\(\/\/\)[^/].*/{
27478 s//\1/
27481 /^X\(\/\/\)$/{
27482 s//\1/
27485 /^X\(\/\).*/{
27486 s//\1/
27489 s/.*/./; q'`
27490 test -d "$as_dir" && break
27491 done
27492 test -z "$as_dirs" || eval "mkdir $as_dirs"
27493 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
27494 echo "$as_me: error: cannot create directory $as_dir" >&2;}
27495 { (exit 1); exit 1; }; }; }
27496 ac_builddir=.
27498 case "$ac_dir" in
27499 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
27501 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
27502 # A ".." for each directory in $ac_dir_suffix.
27503 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
27504 case $ac_top_builddir_sub in
27505 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
27506 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
27507 esac ;;
27508 esac
27509 ac_abs_top_builddir=$ac_pwd
27510 ac_abs_builddir=$ac_pwd$ac_dir_suffix
27511 # for backward compatibility:
27512 ac_top_builddir=$ac_top_build_prefix
27514 case $srcdir in
27515 .) # We are building in place.
27516 ac_srcdir=.
27517 ac_top_srcdir=$ac_top_builddir_sub
27518 ac_abs_top_srcdir=$ac_pwd ;;
27519 [\\/]* | ?:[\\/]* ) # Absolute name.
27520 ac_srcdir=$srcdir$ac_dir_suffix;
27521 ac_top_srcdir=$srcdir
27522 ac_abs_top_srcdir=$srcdir ;;
27523 *) # Relative name.
27524 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
27525 ac_top_srcdir=$ac_top_build_prefix$srcdir
27526 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
27527 esac
27528 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
27531 case $ac_mode in
27534 # CONFIG_FILE
27537 case $INSTALL in
27538 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
27539 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
27540 esac
27541 _ACEOF
27543 cat >>$CONFIG_STATUS <<\_ACEOF
27544 # If the template does not know about datarootdir, expand it.
27545 # FIXME: This hack should be removed a few years after 2.60.
27546 ac_datarootdir_hack=; ac_datarootdir_seen=
27548 case `sed -n '/datarootdir/ {
27552 /@datadir@/p
27553 /@docdir@/p
27554 /@infodir@/p
27555 /@localedir@/p
27556 /@mandir@/p
27557 ' $ac_file_inputs` in
27558 *datarootdir*) ac_datarootdir_seen=yes;;
27559 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
27560 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
27561 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
27562 _ACEOF
27563 cat >>$CONFIG_STATUS <<_ACEOF
27564 ac_datarootdir_hack='
27565 s&@datadir@&$datadir&g
27566 s&@docdir@&$docdir&g
27567 s&@infodir@&$infodir&g
27568 s&@localedir@&$localedir&g
27569 s&@mandir@&$mandir&g
27570 s&\\\${datarootdir}&$datarootdir&g' ;;
27571 esac
27572 _ACEOF
27574 # Neutralize VPATH when `$srcdir' = `.'.
27575 # Shell code in configure.ac might set extrasub.
27576 # FIXME: do we really want to maintain this feature?
27577 cat >>$CONFIG_STATUS <<_ACEOF
27578 sed "$ac_vpsub
27579 $extrasub
27580 _ACEOF
27581 cat >>$CONFIG_STATUS <<\_ACEOF
27583 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
27584 s&@configure_input@&$configure_input&;t t
27585 s&@top_builddir@&$ac_top_builddir_sub&;t t
27586 s&@srcdir@&$ac_srcdir&;t t
27587 s&@abs_srcdir@&$ac_abs_srcdir&;t t
27588 s&@top_srcdir@&$ac_top_srcdir&;t t
27589 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
27590 s&@builddir@&$ac_builddir&;t t
27591 s&@abs_builddir@&$ac_abs_builddir&;t t
27592 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
27593 s&@INSTALL@&$ac_INSTALL&;t t
27594 $ac_datarootdir_hack
27595 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
27597 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
27598 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
27599 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
27600 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
27601 which seems to be undefined. Please make sure it is defined." >&5
27602 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
27603 which seems to be undefined. Please make sure it is defined." >&2;}
27605 rm -f "$tmp/stdin"
27606 case $ac_file in
27607 -) cat "$tmp/out"; rm -f "$tmp/out";;
27608 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
27609 esac
27613 # CONFIG_HEADER
27615 _ACEOF
27617 # Transform confdefs.h into a sed script `conftest.defines', that
27618 # substitutes the proper values into config.h.in to produce config.h.
27619 rm -f conftest.defines conftest.tail
27620 # First, append a space to every undef/define line, to ease matching.
27621 echo 's/$/ /' >conftest.defines
27622 # Then, protect against being on the right side of a sed subst, or in
27623 # an unquoted here document, in config.status. If some macros were
27624 # called several times there might be several #defines for the same
27625 # symbol, which is useless. But do not sort them, since the last
27626 # AC_DEFINE must be honored.
27627 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
27628 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
27629 # NAME is the cpp macro being defined, VALUE is the value it is being given.
27630 # PARAMS is the parameter list in the macro definition--in most cases, it's
27631 # just an empty string.
27632 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
27633 ac_dB='\\)[ (].*,\\1define\\2'
27634 ac_dC=' '
27635 ac_dD=' ,'
27637 uniq confdefs.h |
27638 sed -n '
27639 t rset
27640 :rset
27641 s/^[ ]*#[ ]*define[ ][ ]*//
27642 t ok
27645 s/[\\&,]/\\&/g
27646 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
27647 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
27648 ' >>conftest.defines
27650 # Remove the space that was appended to ease matching.
27651 # Then replace #undef with comments. This is necessary, for
27652 # example, in the case of _POSIX_SOURCE, which is predefined and required
27653 # on some systems where configure will not decide to define it.
27654 # (The regexp can be short, since the line contains either #define or #undef.)
27655 echo 's/ $//
27656 s,^[ #]*u.*,/* & */,' >>conftest.defines
27658 # Break up conftest.defines:
27659 ac_max_sed_lines=50
27661 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
27662 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
27663 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
27664 # et cetera.
27665 ac_in='$ac_file_inputs'
27666 ac_out='"$tmp/out1"'
27667 ac_nxt='"$tmp/out2"'
27669 while :
27671 # Write a here document:
27672 cat >>$CONFIG_STATUS <<_ACEOF
27673 # First, check the format of the line:
27674 cat >"\$tmp/defines.sed" <<\\CEOF
27675 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
27676 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
27678 :def
27679 _ACEOF
27680 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
27681 echo 'CEOF
27682 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
27683 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
27684 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
27685 grep . conftest.tail >/dev/null || break
27686 rm -f conftest.defines
27687 mv conftest.tail conftest.defines
27688 done
27689 rm -f conftest.defines conftest.tail
27691 echo "ac_result=$ac_in" >>$CONFIG_STATUS
27692 cat >>$CONFIG_STATUS <<\_ACEOF
27693 if test x"$ac_file" != x-; then
27694 echo "/* $configure_input */" >"$tmp/config.h"
27695 cat "$ac_result" >>"$tmp/config.h"
27696 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
27697 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
27698 echo "$as_me: $ac_file is unchanged" >&6;}
27699 else
27700 rm -f $ac_file
27701 mv "$tmp/config.h" $ac_file
27703 else
27704 echo "/* $configure_input */"
27705 cat "$ac_result"
27707 rm -f "$tmp/out12"
27711 esac
27713 done # for ac_tag
27716 { (exit 0); exit 0; }
27717 _ACEOF
27718 chmod +x $CONFIG_STATUS
27719 ac_clean_files=$ac_clean_files_save
27722 # configure is writing to config.log, and then calls config.status.
27723 # config.status does its own redirection, appending to config.log.
27724 # Unfortunately, on DOS this fails, as config.log is still kept open
27725 # by configure, so config.status won't be able to write to it; its
27726 # output is simply discarded. So we exec the FD to /dev/null,
27727 # effectively closing config.log, so it can be properly (re)opened and
27728 # appended to by config.status. When coming back to configure, we
27729 # need to make the FD available again.
27730 if test "$no_create" != yes; then
27731 ac_cs_success=:
27732 ac_config_status_args=
27733 test "$silent" = yes &&
27734 ac_config_status_args="$ac_config_status_args --quiet"
27735 exec 5>/dev/null
27736 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
27737 exec 5>>config.log
27738 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
27739 # would make configure fail if this is the last instruction.
27740 $ac_cs_success || { (exit 1); exit 1; }
27744 echo "creating Modules/Setup"
27745 if test ! -f Modules/Setup
27746 then
27747 cp $srcdir/Modules/Setup.dist Modules/Setup
27750 echo "creating Modules/Setup.local"
27751 if test ! -f Modules/Setup.local
27752 then
27753 echo "# Edit this file for local setup changes" >Modules/Setup.local
27756 echo "creating Makefile"
27757 $SHELL $srcdir/Modules/makesetup -c $srcdir/Modules/config.c.in \
27758 -s Modules Modules/Setup.config \
27759 Modules/Setup.local Modules/Setup
27761 case $ac_sys_system in
27762 BeOS)
27763 { echo "$as_me:$LINENO: WARNING:
27765 Support for BeOS is deprecated as of Python 2.6.
27766 See PEP 11 for the gory details.
27767 " >&5
27768 echo "$as_me: WARNING:
27770 Support for BeOS is deprecated as of Python 2.6.
27771 See PEP 11 for the gory details.
27772 " >&2;}
27774 *) ;;
27775 esac
27777 mv config.c Modules